Class RAssignmentDataProvider
CActiveDataProvider implements a data provider based on ActiveRecord.
CActiveDataProvider provides data in terms of ActiveRecord objects which are
of class CActiveDataProvider::$modelClass. It uses the AR CActiveRecord::findAll
method to retrieve the data from database. The criteria property can be
used to specify various query options.
CActiveDataProvider may be used in the following way:
$dataProvider=new CActiveDataProvider('Post', array(
'criteria'=>array(
'condition'=>'status=1',
'order'=>'create_time DESC',
'with'=>array('author'),
),
'pagination'=>array(
'pageSize'=>20,
),
));
// $dataProvider->getData() will return a list of Post objects
- CComponent
-
CDataProvider
implements
IDataProvider
-
CActiveDataProvider
-
RAssignmentDataProvider
Author: Qiang Xue <qiang.xue@gmail.com>
Version: $Id$
Since: 1.1
Located at crisu83/yii-rights/components/dataproviders/RAssignmentDataProvider.php
Methods summary
public
|
#
__construct( array $config = array() )
Constructor. (e.g. |
protected
array
|
Methods inherited from CActiveDataProvider
calculateTotalItemCount(),
fetchKeys(),
getCriteria(),
getSort(),
setCriteria()
Methods inherited from CDataProvider
getData(),
getId(),
getItemCount(),
getKeys(),
getPagination(),
getTotalItemCount(),
setData(),
setId(),
setKeys(),
setPagination(),
setSort(),
setTotalItemCount()
Methods inherited from CComponent
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
Magic methods summary
Properties summary
Properties inherited from CActiveDataProvider
$keyAttribute,
$model,
$modelClass
Magic properties inherited from CActiveDataProvider
$criteria,
$sort
Magic properties inherited from CDataProvider
$data,
$id,
$itemCount,
$keys,
$pagination,
$totalItemCount