Beispiel #1
0
 /**
  * Overrides update to set position to last when changing parent tab
  *
  * @see ObjectModel::update
  * @param bool $null_values
  * @return bool
  */
 public function update($null_values = false)
 {
     $current_tab = new Tab($this->id);
     if ($current_tab->id_parent != $this->id_parent) {
         $this->position = Tab::getNewLastPosition($this->id_parent);
     }
     self::$_cache_tabs = array();
     return parent::update($null_values);
 }