Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
RAssignmentDataProvider Class Reference

Public Member Functions

 __construct ($config=array())

Protected Member Functions

 fetchData ()

Detailed Description

Definition at line 3 of file RAssignmentDataProvider.php.

Constructor & Destructor Documentation

RAssignmentDataProvider::__construct (   $config = array())

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

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

Definition at line 16 of file RAssignmentDataProvider.php.

References Rights\module().

{
$module = Rights::module();
$userClass = $module->userClass;
parent::__construct($userClass, $config);
$this->_authorizer = $module->getAuthorizer();
}

Member Function Documentation

RAssignmentDataProvider::fetchData ( )
protected

Fetches the data from the persistent data storage.

Returns
array list of data items

Definition at line 30 of file RAssignmentDataProvider.php.

{
$data = parent::fetchData();
foreach ($data as $model) {
$this->_authorizer->attachUserBehavior($model);
}
return $data;
}

The documentation for this class was generated from the following file: