示例#1
0
 public function __construct($id)
 {
     parent::__construct($id);
     $img = array('Parsimony.png' => array('name' => 'core/files/Parsimony.png', 'title' => 'Parsimony A new Generation of CMS', 'alt' => 'Parsimony A new Generation of CMS', 'url' => 'core/files/Parsimony.png', 'description' => 'Helps the web to have talent and share it'));
     $this->setConfig('img', $img);
     $this->setConfig('width', '500');
     $this->setConfig('height', '250');
 }
示例#2
0
 /**
  * Build a page object
  * @param integer $id page id
  * 
  */
 public function __construct($id, $module = FALSE)
 {
     parent::__construct($id);
     if ($module === FALSE) {
         $module = \app::$config['defaultModule'];
     }
     $this->moduleName = $module;
 }
示例#3
0
 public function __construct($id)
 {
     parent::__construct($id);
     $this->setConfig('adress', '12 rue Louis Courtois de Viçose');
     $this->setConfig('town', 'Toulouse');
     $this->setConfig('country', 'France');
     $this->setConfig('language', 'fr');
     $this->setConfig('view', 'm');
     $this->setConfig('zoom', '15');
 }
示例#4
0
 public function __construct($id)
 {
     parent::__construct($id);
     $menu = array(array('id' => 1, 'title' => 'Home', 'url' => 'index'));
     $this->setConfig('menu', json_encode($menu));
 }
示例#5
0
 public function __construct($id)
 {
     parent::__construct($id);
     $this->setConfig('imgPath', 'core/files/Parsimony.png');
     $this->setConfig('title', 'parsimony');
     $this->setConfig('alt', 'Parsimony');
     $this->setConfig('lightbox', '0');
 }