Advertisement
Guest User

Untitled

a guest
Apr 4th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php
  2.  
  3. require_once(TOOLKIT . '/class.datasource.php');
  4.  
  5. Class datasourceget_child_contentpages extends Datasource{
  6.  
  7.     public $dsParamROOTELEMENT = 'sub-content-pages';
  8.  
  9.     public function about(){
  10.         return array(
  11.                  'name' => 'Get Child Contentpages',
  12.                  'author' => array(
  13.                         'name' => 'David Hund',
  14.                         'email' => 'david@valuedstandards.com'),
  15.                 );
  16.     }
  17.  
  18.     public function allowEditorToParse(){
  19.         return false;
  20.     }
  21.  
  22.     public function getSource(){
  23.         return '1';
  24.     }
  25.  
  26.     public function grab(&$param_pool){
  27.         $param_pool['child-content-pages'] = Symphony::Database()->fetchCol('handle', 'SELECT `handle` FROM `sym_pages` WHERE `parent` = '.$this->_env['param']['current-page-id'].';');
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement