コード例 #1
0
ファイル: MY_ORM.php プロジェクト: hiwilson/gallery3
 public function save()
 {
     model_cache::clear();
     $result = parent::save();
     $this->original = $this->object;
     return $result;
 }
コード例 #2
0
ファイル: MY_ORM.php プロジェクト: xafr/gallery3
 public function save()
 {
     model_cache::clear($this->object_name, $this->{$this->primary_key}, $this->primary_key);
     return parent::save();
 }
コード例 #3
0
ファイル: MY_ORM.php プロジェクト: andyst/gallery3
 public function save()
 {
     model_cache::clear();
     return parent::save();
 }
コード例 #4
0
ファイル: MY_ORM.php プロジェクト: ready4god2513/scs
 /**
  * Save the store id
  * @developer Brandon Hansen
  * @date Oct 18, 2010
  */
 public function save()
 {
     // Set the store id
     if (array_key_exists('store_id', $this->table_columns)) {
         $this->store_id = Kohana::config('store.id');
     }
     // Set the created at on new entries
     if (array_key_exists('created_at', $this->table_columns) && !$this->loaded) {
         $this->created_at = date('Y-m-d H:i:s');
     }
     // Update the "updated_at" column
     if (array_key_exists('updated_at', $this->table_columns)) {
         $this->updated_at = date('Y-m-d H:i:s');
     }
     parent::save();
 }