Ejemplo n.º 1
0
 public function __construct()
 {
     $doc = DBSimple::get(IndexPageModel::TableName, '');
     $doc = new IndexPageModel($doc);
     $this->sitemapInfo = $doc->getSiteMapData();
     $this->title = self::title;
     $this->begin = array(self::title => '#');
     $this->parent = intval($this->sitemapInfo['id']);
     $this->paging_size = self::pagingSize;
     parent::__construct();
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     if (empty($this->modelName)) {
         throw new \RuntimeException('Please specify `modelName` property to be defined');
     }
     $sitemapInfo = $this->seekIndexDocument();
     if (!empty($sitemapInfo)) {
         $title = call_user_func([$this->modelName, 'getLabel'], Model::labelName);
         $this->title = $title;
         $this->begin = array($title => '#');
         $this->parent = intval($sitemapInfo['id']);
         $this->paging_size = static::PagingSize;
     } else {
         throw new \NotFoundException(sprintf('Instance of model `%s` not found', $this->modelName));
     }
     parent::__construct();
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->autoConfigure();
 }