/**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_title = 'Dashboard';
     if ($this->_user['dashboard']) {
         $this->get_activity();
         $this->get_recent_comments();
         $this->get_draft();
         Helper::get_categories($this->_categories, $this->_action_msg, 'post');
         if (Helper::check_update() === true) {
             $this->_action_msg = ActionMessages::ws_update_check(true, true);
         }
     }
 }
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_title = 'Manage Post';
     if ($this->_user['post']) {
         $this->get_post();
         Helper::get_categories($this->_categories, $this->_action_msg, 'post');
         $this->get_setting();
         $this->get_medias();
         if (VPost::action() == 'to_insert') {
             $this->create();
         } elseif (VPost::action() == 'to_update') {
             $this->update();
         }
     }
 }
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_title = 'Albums';
     if ($this->_user['album_photo']) {
         if (VPost::search_button(false) || VGet::search()) {
             $this->_search = trim(VRequest::search('Lynxpress'));
             $this->_title .= ' > Search for "' . $this->_search . '"';
         }
         $this->create();
         $this->update();
         $this->delete();
         $this->get_albums();
         Helper::get_categories($this->_categories, $this->_action_msg, 'album');
     }
 }
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     if (VGet::view() && in_array(VGet::view(), array('upload', 'linkage', 'album', 'video'))) {
         $this->_view_type = VGet::view();
     } else {
         $this->_view_type = 'upload';
     }
     if ($this->_view_type == 'album') {
         Helper::get_categories($this->_categories, $this->_action_msg, 'album');
     }
     $this->build_title();
     $this->_media = new Media();
     if ($this->_user['media']) {
         $this->create();
     }
 }
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     if (VRequest::type() && in_array(VRequest::type(), array('image', 'video', 'alien'))) {
         $this->_view_type = VRequest::type();
     } else {
         $this->_view_type = 'image';
     }
     $this->build_title();
     if ($this->_user['media']) {
         if (VPost::search_button(false) || VGet::search()) {
             $this->_search = trim(VRequest::search('Lynxpress'));
             $this->_title .= ' > Search for "' . $this->_search . '"';
         }
         if ($this->_view_type == 'video') {
             Helper::get_categories($this->_categories, $this->_action_msg, 'video');
         }
         $this->update();
         $this->delete();
         $this->get_medias();
     }
 }
 /**
  * Class constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     if (VPost::search_button(false) || VGet::search()) {
         $this->_search = trim(VRequest::search('Lynxpress'));
     }
     //set the status in the attribute for more readability
     if (VRequest::post_status(false) && !VPost::empty_trash(false)) {
         switch (VRequest::post_status()) {
             case 'publish':
                 $this->_status = 'publish';
                 break;
             case 'draft':
                 $this->_status = 'draft';
                 break;
             case 'trash':
                 $this->_status = 'trash';
                 break;
             default:
                 $this->_status = 'all';
         }
     } else {
         $this->_status = 'all';
     }
     $this->build_title();
     if ($this->_user['post']) {
         Helper::get_categories($this->_categories, $this->_action_msg, 'post');
         $this->trash();
         $this->untrash();
         $this->delete();
         $this->get_posts();
     }
 }