Exemple #1
0
 /**
  * @Author: ANH DUNG Aug 06, 2014
  * @Todo: save company listing
  * @Param: $model model Listing
  */
 public static function SaveCompanyListing($model)
 {
     $model->last_update_time = date('Y-m-d');
     $model->listing_type_transaction = ProTransactionsPropertyDetail::VAR_COMPANY;
     $aAttributes = array('house_blk_no', 'building_name', 'company_owner_name', 'contact_name_no', 'remark', 'company_storey', 'company_utility_room', 'company_built_up', 'tenure', 'company_availability');
     MyFormat::RemoveScriptOfModelField($model, $aAttributes);
     $model->save();
 }
 protected function beforeSave()
 {
     $aAttributes = array('tenure', 'address', 'postal_code', 'name', 'email', 'phone', 'description', 'remark', 'occupation');
     MyFormat::RemoveScriptOfModelField($this, $aAttributes);
     return parent::beforeSave();
 }