CategoriesModelCategory::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,
[integer
$lft_array = null]] )
Parameters
-
$idArray
- An array of primary key ids.
-
$lft_array
- The lft value
Returns
- boolean
- False on failure or error, True otherwise