PHP Class Prado\Data\SqlMap\DataMapper\TLazyLoadList

Since: 3.1
ファイルを表示 Open project: pradosoft/prado Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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 method

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

hasMethod() public method

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

intercept() public method

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

newInstance() public static method

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