/** * 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(); } }