Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
addDataSource ( string $name, |
Adds a new data source. | |
clearDataSource ( ) | Clears all data sources registered. | |
getDataSource ( $name ) : |
Gets a data source. | |
getDataSourceNames ( ) : string[] | Gets the name of the registered data sources. | |
getIncludes ( ) : array | Returns the list of items with type "include". | |
getItems ( ) : array | Returns the list of items. | |
getLayouts ( ) : array | Returns the list of items with type "layout". | |
hasDataSource ( string $name ) : boolean | Checks if a data source exists. | |
load ( ) | Load the items from the registered data sources. | |
removeDataSource ( string $name ) | Removes a data source. | |
setDataSource ( string $name, |
Sets a data source. |
Method | Description | |
---|---|---|
initialize ( ) | ||
processIncludes ( array $items, $dataSourceName ) | ||
processItems ( array $items, $dataSourceName ) | ||
processLayouts ( array $items, $dataSourceName ) |
public addDataSource ( string $name, |
||
$name | string | The name of the data source |
$dataSource |
public getDataSource ( $name ) : |
||
return |
public getDataSourceNames ( ) : string[] | ||
return | string[] |
public getIncludes ( ) : array | ||
return | array |
public getLayouts ( ) : array | ||
return | array |
public hasDataSource ( string $name ) : boolean | ||
$name | string | The name of the data source |
return | boolean |
public removeDataSource ( string $name ) | ||
$name | string | The name of the data source |
public setDataSource ( string $name, |
||
$name | string | The name of the data source |
$dataSource |