Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once(TOOLKIT . '/class.datasource.php');
- Class datasourceget_child_contentpages extends Datasource{
- public $dsParamROOTELEMENT = 'sub-content-pages';
- public function about(){
- return array(
- 'name' => 'Get Child Contentpages',
- 'author' => array(
- 'name' => 'David Hund',
- 'email' => 'david@valuedstandards.com'),
- );
- }
- public function allowEditorToParse(){
- return false;
- }
- public function getSource(){
- return '1';
- }
- public function grab(&$param_pool){
- $param_pool['child-content-pages'] = Symphony::Database()->fetchCol('handle', 'SELECT `handle` FROM `sym_pages` WHERE `parent` = '.$this->_env['param']['current-page-id'].';');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement