/** * class constructor * @param integer $dbID the database id of the role **/ function __construct($dbID = null) { parent::__construct($dbID); $this->object_table = $this->tables['roles']; $this->replacementRoleID = config_get('role_replace_for_deleted_roles'); $this->activateCaching = true; }
/** * Class constructor * * @param $dbID integer the database identifier of the attachment */ function __construct($dbID = null) { parent::__construct(); $this->compressionType = tlAttachmentRepository::getCompression(); $this->repositoryPath = tlAttachmentRepository::getPathToRepository(); $this->attachmentCfg = config_get('attachments'); $this->_clean(); $this->dbID = $dbID; }
/** * constructor * * @param resource $db database handler */ function __construct($dbID = null) { parent::__construct($dbID); $this->activateCaching = true; }
/** * Class constructor * * @param integer $dbID the database identifier of the keywords */ function __construct($dbID = null) { parent::__construct($dbID); }
/** * Constructor, creates the user object * * @param resource $db database handler */ function __construct($dbID = null) { parent::__construct($dbID); $this->object_table = $this->tables['users']; $authCfg = config_get('authentication'); $this->usernameFormat = config_get('username_format'); $this->loginRegExp = config_get('validation_cfg')->user_login_valid_regex; $this->maxLoginLength = 30; $this->loginMethod = $authCfg['method']; $this->globalRoleID = config_get('default_roleid'); $this->locale = config_get('default_language'); $this->isActive = 1; $this->tprojectRoles = null; $this->tplanRoles = null; }