english/administrator/components/com_menus/models/item.php
/**
	 * Method to save the reordered nested set tree.
	 * First we save the new order values in the lft values of the changed ids.
	 * Then we invoke the table rebuild to implement the new ordering.
	 *
	 * @param	array	$idArray	id's of rows to be reordered
	 * @param	array	$lft_array	lft values of rows to be reordered
	 *
	 * @return	boolean false on failuer or error, true otherwise
	 * @since	1.6
	 */
Method to save the reordered nested set tree.
First we save the new order values in the lft values of the changed ids.
Then we invoke the table rebuild to implement the new ordering.

@param       array   $idArray        id's of rows to be reordered
@param       array   $lft_array      lft values of rows to be reordered

@return      boolean false on failuer or error, true otherwise
@since       1.6
Method to save the reordered nested set tree . First we save the new order values in the lft values of the changed ids . Then we invoke the table rebuild to implement the new ordering . @param array $idArray id ' s of rows to be reordered @param array $lft_array lft values of rows to be reordered @return boolean false on failuer or error true otherwise @since 1 . 6
public function saveorder($idArray = null, $lft_array = null)
	{
		$table = $this->getTable();
		if (!$table->saveorder($idArray, $lft_array)) {
			$this->setError($table->getError());
			return false;
		}
		$this->cleanCache();
		return true;
	}
public function saveorder ( $ idArray = null , $ lft_array = null ) { $ table = $ this -> getTable ( ) ; if ( ! $ table -> saveorder ( $ idArray , $ lft_array ) ) { $ this -> setError ( $ table -> getError ( ) ) ; return false ; } $ this -> cleanCache ( ) ; return true ; }
Method to save the reordered nested set tree.
Method to save the reordered nested set tree .
// Get an instance of the table object. // Clean the cache