/** * Initiate an object and other parameters * * @param object Main Object * @param string $role Current role to work with * @param string $rser Current user to work with */ public function __construct($parent, $role = FALSE, $user = FALSE) { $templatePath = WPACCESS_TEMPLATE_DIR . 'admin_options.html'; $this->template = mvb_Model_Template::readTemplate($templatePath); $this->roles = mvb_Model_API::getRoleList(); $this->setCurrentRole($role); $this->setCurrentUser($user); $this->initConfig(); mvb_Model_Label::initAllLabels(); }
/** * Main Constructor * * @param object */ public function __construct($pObj) { $this->pObj = $pObj; $this->action = $this->get_action(); mvb_Model_Label::initAllLabels(); }