コード例 #1
0
ファイル: MY_ORM.php プロジェクト: hiwilson/gallery3
 public function __unset($column)
 {
     if (!isset($this->original)) {
         $this->original = $this->object;
     }
     return parent::__unset($column);
 }
コード例 #2
0
ファイル: MY_ORM.php プロジェクト: BirenRathod/indicia-code
 /**
  * Override the ORM clear method to clean up errors and identifier tracking.
  */
 public function clear()
 {
     parent::clear();
     $this->errors = array();
     $this->identifiers = array('website_id' => null, 'survey_id' => null);
 }
コード例 #3
0
ファイル: MY_ORM.php プロジェクト: andyst/gallery3
 public function save()
 {
     model_cache::clear();
     return parent::save();
 }
コード例 #4
0
ファイル: ORM.php プロジェクト: Juuro/Dreamapp-Website
 /**
  * Proxy method to Database field_data.
  *
  * @chainable
  * @param   string  SQL query to clear
  * @return  ORM
  */
 public function clear_cache($sql = NULL)
 {
     // Proxy to database
     $this->db->clear_cache($sql);
     self::$column_cache = array();
     return $this;
 }
コード例 #5
0
ファイル: MY_ORM.php プロジェクト: ready4god2513/Journal
 /**
  * Find ALL objects
  * @developer Brandon Hansen
  * @date May 25, 2010
  */
 public function find_all_no_limit()
 {
     return parent::find_all();
 }
コード例 #6
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();
 }
コード例 #7
0
ファイル: MY_ORM.php プロジェクト: ready4god2513/scs
 /**
  * Delete method overload.  Make sure that users can't delete products not in their store
  * @developer Brandon Hansen
  * @date Oct 19, 2010
  */
 public function delete_all($ids = NULL)
 {
     if (array_key_exists('store_id', $this->table_columns)) {
         $this->where('store_id', Kohana::config('store.id'));
     }
     parent::delete_all($ids);
 }