/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); if (VGet::action() == 'edit' && VGet::id()) { $this->_view_type = 'edit'; $this->_title = 'Edit Link'; } else { $this->_view_type = 'new'; $this->_title = 'New Link'; } if ($this->_user['settings']) { $this->get_link(); if (VPost::new_link(false)) { $this->create(); } elseif (VPost::update_link(false)) { $this->update(); } } }