/** * @see parent::getProps() */ function getProps() { $props = parent::getProps(); $props["group_id"] = "ref notNull class|CGroups"; $props["nom"] = "str notNull"; $props["description"] = "text seekable"; return $props; }
function loadListWithPerms($permType = PERM_READ, $where = array(), $order = "nom", $limit = null, $group = null, $ljoin = null) { if ($where !== null && !isset($where["group_id"])) { $where["group_id"] = "='" . CGroups::loadCurrent()->_id . "'"; } return parent::loadListWithPerms($permType, $where, $order, $limit, $group, $ljoin); }
/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->_shortview = self::$_prefixe . $this->nom; $this->_view = $this->_shortview; }
/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->_shortview = $this->_view = self::$_prefixe . ($this->nom_complet ? $this->nom_complet : $this->nom); }