Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • P3pagesModule
  • RAssignmentDataProvider

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
Extended by CDataProvider implements IDataProvider
Extended by CActiveDataProvider
Extended by RAssignmentDataProvider
Package: system\web
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. Post::model(), Post::model()->published()).

Constructor. (e.g. Post::model(), Post::model()->published()).

Parameters

$config
array
$config configuration (name=>value) to be applied as the initial property values of this class.

Overrides

CActiveDataProvider::__construct
protected array
# fetchData( )

Fetches the data from the persistent data storage.

Fetches the data from the persistent data storage.

Returns

array
list of data items

Overrides

CActiveDataProvider::fetchData

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

Phundament App Class Reference API documentation generated by ApiGen 2.8.0