/**
  * @see parent::getProps()
  */
 function getProps()
 {
     $props = parent::getProps();
     $props["name"] = "str notNull confidential";
     $props["finess"] = "numchar length|9 confidential mask|9xS9S99999S9 control|luhn";
     $props["rmess"] = "numchar length|9 confidential mask|9xS9S99999S9 control|luhn";
     $props["address"] = "text confidential";
     $props["zip_code"] = "str minLength|4 maxLength|10";
     $props["city"] = "str maxLength|50 confidential";
     $props["country"] = "num length|3";
     $props["insee"] = "numchar length|3";
     $props["siren"] = "numchar length|9 confidential mask|9xS9S99999S9 control|luhn";
     $props["nic"] = "num length|5";
     $props["legal_status_code"] = "ref class|CLegalStatus autocomplete|description show|0";
     return $props;
 }
 /**
  * @see parent::store()
  */
 function store()
 {
     $is_new = !$this->_id;
     if ($msg = parent::store()) {
         return $msg;
     }
     if ($is_new) {
         CConfiguration::clearDataCache();
         if (CModule::getActive("dPprescription")) {
             CConfigService::emptySHM();
             CConfigMomentUnitaire::emptySHM();
         }
     }
     return null;
 }
 /**
  * @see parent::getProps()
  */
 function getProps()
 {
     $props = parent::getProps();
     $props["typologie"] = "str";
     return $props;
 }
Exemple #4
0
 /**
  * 注册一个实体
  * @param CEntity $entity
  */
 public function register($entity)
 {
     $cacheKey = $entity->getCackeKey();
     $item[$cacheKey] = $entity;
     $entity->getDbConnection()->beginTransaction();
 }