PHP Class Prado\Data\SqlMap\DataMapper\TLazyLoadList

Since: 3.1
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
hasMethod ( $method ) : boolean Try to fetch the data when any of the proxy collection method is called.
intercept ( $method, $arguments ) Relay the method call to the underlying collection.
newInstance ( $mappedStatement, $param, $target, $propertyName ) : TObjectProxy Create a new instance of a lazy collection.

Méthodes protégées

Méthode Description
__construct ( $mappedStatement, $param, $target, $propertyName ) Create a new proxy list that will execute the mapped statement when any of the list's method are accessed for the first time.
fetchListData ( ) Load the data by executing the mapped statement.

Method Details

__construct() protected méthode

Create a new proxy list that will execute the mapped statement when any of the list's method are accessed for the first time.
protected __construct ( $mappedStatement, $param, $target, $propertyName )

fetchListData() protected méthode

Load the data by executing the mapped statement.
protected fetchListData ( )

hasMethod() public méthode

Try to fetch the data when any of the proxy collection method is called.
public hasMethod ( $method ) : boolean
Résultat boolean true if the underlying collection has the corresponding method name.

intercept() public méthode

Relay the method call to the underlying collection.
public intercept ( $method, $arguments )

newInstance() public static méthode

Create a new instance of a lazy collection.
public static newInstance ( $mappedStatement, $param, $target, $propertyName ) : TObjectProxy
Résultat TObjectProxy proxied collection object.