Gentics Portal.Node PHP API
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
All
Classes
Namespaces
Functions
Variables
Pages
common
modules
rights
components
dataproviders
RAuthItemChildDataProvider.php
1
<?php
2
/**
3
* Authorization item child data provider class file.
4
*
5
* @author Christoffer Niska <cniska@live.com>
6
* @copyright Copyright © 2010 Christoffer Niska
7
* @since 0.9.10
8
*/
9
class
RAuthItemChildDataProvider
extends
RAuthItemDataProvider
{
10
11
/**
12
* Constructs the data provider.
13
*
14
* @param string $parent the data provider identifier.
15
* @param array $config configuration (name=>value) to be applied as the initial property values of this class.
16
*
17
* @return \RAuthItemChildDataProvider
18
*/
19
public
function
__construct
($parent, $config = array())
20
{
21
$this->parent = $parent;
22
$this->setId($parent->name);
23
24
foreach
($config as $key => $value) {
25
$this->$key = $value;
26
}
27
}
28
29
/**
30
* Fetches the data from the persistent data storage.
31
*
32
* @return array list of data items
33
*/
34
public
function
fetchData
()
35
{
36
$this->items =
Rights::getAuthorizer
()->getAuthItemChildren($this->parent->name, $this->type);
37
return
parent::fetchData
();
38
}
39
}
Generated on Thu Feb 6 2014 15:47:54 for Gentics Portal.Node PHP API by
1.8.1.2