/** * 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(); } }
/** * 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 (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(); //set the status in the attribute for more readability if (VRequest::comment_status(false) && !isset($_POST['empty'])) { switch (VRequest::comment_status()) { case 'approved': $this->_status = 'approved'; break; case 'spam': $this->_status = 'spam'; break; case 'trash': $this->_status = 'trash'; break; default: $this->_status = 'pending'; break; } } else { $this->_status = 'pending'; } if (VPost::search_button(false) || VGet::search()) { $this->_search = trim(VRequest::search('Lynxpress')); } $this->_title = $this->build_title(); if ($this->_user['comments']) { $this->create(); $this->update(); $this->delete(); if (VGet::action() != 'reply') { $this->get_comments(); } } }