Beispiel #1
0
 /**
  * @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;
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 /**
  * @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);
 }