function move($change, $where = '') { $move = parent::move($change, $where); // now, load the parent item for this menutype, and move it $table = JTable::getInstance('Items', 'MysiteTable'); $table->load(array('menutype' => $this->menutype, 'parent' => 0)); if (!empty($table->item_id)) { // move $table->ordering = $this->ordering; $table->save(); } return $move; }
function move($change, $where = '') { $where = 'parent = ' . $this->_db->Quote($this->parent); return parent::move($change, $where); }