PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TLazyLoadList

TLazyLoadList executes mapped statements when the proxy collection is first accessed.

Package: System\Data\SqlMap
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizho[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/DataMapper/TLazyLoadList.php
Methods summary
protected
# __construct( TMappedStatement $mappedStatement, mixed $param, object $target, string $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.

Create a new proxy list that will execute the mapped statement when any of the list's method are accessed for the first time.

Parameters

$mappedStatement
TMappedStatement
statement to be executed to load the data.
$param
mixed
parameter value for the statement.
$target
object
result object that contains the lazy collection.
$propertyName
string
property of the result object to set the loaded collection.
public static TObjectProxy
# newInstance( TMappedStatement $mappedStatement, mixed $param, object $target, string $propertyName )

Create a new instance of a lazy collection.

Create a new instance of a lazy collection.

Parameters

$mappedStatement
TMappedStatement
statement to be executed to load the data.
$param
mixed
parameter value for the statement.
$target
object
result object that contains the lazy collection.
$propertyName
string
property of the result object to set the loaded collection.

Returns

TObjectProxy
proxied collection object.
public
# intercept( string $method, array $arguments )

Relay the method call to the underlying collection.

Relay the method call to the underlying collection.

Parameters

$method
string
method name.
$arguments
array
method parameters.
protected
# fetchListData( )

Load the data by executing the mapped statement.

Load the data by executing the mapped statement.

public boolean
# hasMethod( string $method )

Try to fetch the data when any of the proxy collection method is called.

Try to fetch the data when any of the proxy collection method is called.

Parameters

$method
string
method name.

Returns

boolean
true if the underlying collection has the corresponding method name.
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO