MenusModelItem::saveorder
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.
Signature
public function saveorder([array
$idArray = null,
[array
$lft_array = null]] )
Parameters
-
$idArray
- id's of rows to be reordered
-
$lft_array
- lft values of rows to be reordered
Returns
- boolean
- false on failuer or error, true otherwise