Class: HTRatings

Source Location: /HTRatings.php

Class Overview [line 26]


This class is usually used passing the whole HTClient cache as argument. Every provided function will extend the amount of stored information with ratings composed parsing available data.

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

This class is usually used passing the whole HTClient cache as argument. Every provided function will extend the amount of stored information with ratings composed parsing available data.

This will be useful for further analisys or to compare team and player values.

[ Top ]


Class Variables

$cache =  false

[line 30]

Internal cache array

Tags:

  • access - protected

Type: mixed

Overrides:

[ Top ]


Class Methods

__construct

HTRatings __construct( [array $params = false])

[line 37]

Constructor

Tags:

  • access - public

Parameters:

  • array $params - Client information, used also as internal cache.

[ Top ]

htAddPlayerRatings

array htAddPlayerRatings( [array $player = false], [array $params = false])

[line 51]

Add provided player to the specified position list.

Tags:

  • return - Requested information, or false on error
  • access - protected

Parameters:

  • array $player - Player to add
  • array $params - Request paramaters as key/value pairs

[ Top ]

htCache

array htCache( [array $params = false])

[line 117]

Set or retrieve internal cache, required by interface 'HT_Module'.

Tags:

  • return - Current value, or the updated one
  • access - public

Parameters:

  • array $params - New value

[ Top ]

htFillupPlayerRatings

array htFillupPlayerRatings( [array $params = false])

[line 130]

Update player ratings in every role/position inserting null values where no data is already present.

Tags:

  • return - Requested information, or false on error
  • access - public

Parameters:

  • array $params - Request paramaters as key/value pairs

[ Top ]

htLineupCompare

array htLineupCompare( array $arr1, array $arr2)

[line 173]

Check if provided lineups are compatible.

Tags:

  • return - True for compatible lineups
  • access - protected

Parameters:

  • array $arr1 - 1st lineup as key/value pairs
  • array $arr2 - 2nd lineup as key/value pairs

[ Top ]

htLineupFlip

array htLineupFlip( array $params)

[line 209]

Flip provided lineup.

Tags:

  • return - Flipped lineup
  • access - protected

Parameters:

  • array $params - Original lineup

[ Top ]

htLineupRatings

array htLineupRatings( [array $params = false])

[line 256]

Search inside every stored match for a lineup that is compatible with the passed one to see how it can perform.

This goal is achived comparing players rating stars, usually filled-in by htPlayerRatings(), with evaluations retrieved from matches.

Tags:

  • return - Requested information, or false on error
  • access - public

Parameters:

  • array $params - Request paramaters as key/value pairs

[ Top ]

htPlayerRatings

array htPlayerRatings( [array $params = false])

[line 285]

Update player ratings in every role/position, parsing stored matches for specified team.

Tags:

  • return - Requested information, or false on error
  • access - public

Parameters:

  • array $params - Request paramaters as key/value pairs

[ Top ]

htTeamRatings

array htTeamRatings( [array $params = false])

[line 377]

Returns an array with every position that can be filled by a player of specified team.

Every position contains all of the behaviours that players used for the position: this is a list that contains every player who can fit this role, ordered by rating stars.

Tags:

  • return - Requested information, or false on error
  • access - public

Parameters:

  • array $params - Request paramaters as key/value pairs

[ Top ]

htTeamRatingsFlip

array htTeamRatingsFlip( [array $params = false])

[line 407]

Flip provided team ratings.

Tags:

  • return - Flipped team ratings
  • access - protected

Parameters:

  • array $params - Original team ratings

[ Top ]


Class Constants


Documentation generated on Wed, 15 Oct 2008 04:16:14 +0200 by phpDocumentor 1.4.1