public function __construct()
 {
     parent::__construct();
     $this->model = new Models\Statistics();
     $this->title = 'Site stats';
     $this->icon = 'bar-chart';
 }
 public function __construct($modelId)
 {
     parent::__construct($modelId);
     $this->model = new Models\TagCollection($modelId);
     $this->title = $this->model->query;
     $this->icon = 'tags';
 }
Пример #3
0
 public function __construct($modelId)
 {
     parent::__construct();
     $this->model = new Models\Search($modelId);
     $this->title = $this->model->query;
     $this->icon = 'search';
     $this->url = self::getUrlForID($modelId);
 }
Пример #4
0
 public function __construct($path = '/')
 {
     parent::__construct();
     $this->model = new Models\Folder($path);
     $this->title = basename($this->model->path);
     $this->icon = 'folder';
     $this->url = self::getUrlForID($this->model->path);
     $this->image = constant('BASE_URL') . '/assets/folder.png';
     $this->imageType = 'image/png';
 }
Пример #5
0
 public function __construct($modelId)
 {
     parent::__construct($modelId);
     $this->model = new Models\Tag($modelId);
     $this->title = $this->model->query;
     $this->icon = 'tag';
     $photo = $this->model->getPoster();
     $this->image = $photo->getMediaURL('thumbnail');
     $this->imageType = 'image/jpeg';
     $this->imageWidth = $photo->get('tn_width');
     $this->imageHeight = $photo->get('tn_height');
 }
Пример #6
0
 public function __construct($modelId)
 {
     parent::__construct();
     if (!Models\Photo::photoExists(intval($modelId))) {
         header("HTTP/1.0 404 Not Found");
         throw new \Exception('Photo #' . intval($modelId) . ' not found.');
     }
     $this->model = Models\Photo::getPhotoWithID($modelId);
     $this->title = $this->model->get('description');
     $this->icon = 'photo';
     $this->url = self::getUrlForID($this->model->id);
     //todo: done by parent?
     $this->imageType = 'image/jpeg';
     $this->image = $this->model->getMediaURL('thumbnail');
     $this->imageType = 'image/jpeg';
     $this->imageWidth = $this->model->get('tn_width');
     $this->imageHeight = $this->model->get('tn_height');
 }
 public function __construct()
 {
     parent::__construct();
     $this->title = 'Comments viewer';
     $this->icon = 'list';
 }
 public function __construct()
 {
     parent::__construct();
     $this->title = 'Admin Thumbnails';
     $this->icon = 'list';
 }
 public function __construct()
 {
     parent::__construct();
     $this->title = 'Rescan photos';
     $this->icon = 'search';
 }
Пример #10
0
 public function __construct($modelId)
 {
     parent::__construct();
     $this->title = 'Login';
 }
 public function __construct()
 {
     parent::__construct();
     $this->title = 'Admin File Store';
     $this->icon = 'bar-chart';
 }
Пример #12
0
 public function __construct()
 {
     parent::__construct();
     $this->title = 'Site administration';
     $this->icon = 'bar-chart';
 }
 public function __construct()
 {
     parent::__construct();
     $this->title = 'Review New photos';
     $this->icon = 'list';
 }
 public function __construct()
 {
     parent::__construct();
     $this->title = 'Admin Appearance';
     $this->icon = 'bar-chart';
 }