Esempio n. 1
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     if ($this->getAction() == 'create') {
         return;
     }
     $this->validateForumId();
 }
Esempio n. 2
0
 /**
  * constructor for the class
  * @access private (not realy, but should be)
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     if (isset($options['id'])) {
         $this->_id = $options['id'];
     }
     if (isset($options['debug'])) {
         $this->_debug = $options['debug'];
     }
     if (!$this->doesUserExist($this->getId())) {
         throw new TFUserMException('invalid user id');
     }
     $this->retrieveUserInfo();
     $this->retrievePermissionIds();
 }
Esempio n. 3
0
 /**
  * @see <Model.class.php>
  */
 public function execute()
 {
     $this->validateInputIds();
     parent::execute();
 }