public function __construct($options = array()) { parent::__construct($options); if ($this->getAction() == 'create') { return; } $this->validateForumId(); }
/** * 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(); }