public function saveOrder($serialize)
    {
        $tree = json_decode($serialize, true);

        if (JSON_ERROR_NONE !== json_last_error()) {
            throw new \InvalidArgumentException(json_last_error_msg());
        }

        $this->model->saveOrder($tree);

        return true;
    }
public function saveOrder($serialize)
    {
        $tree = json_decode($serialize, true);

        if (JSON_ERROR_NONE !== json_last_error()) {
            throw new \InvalidArgumentException(json_last_error_msg());
        }

        $this->model->saveOrder($tree);

        return true;
    }
public function saveOrder ( $ serialize ) { $ tree = json_decode ( $ serialize , true ) ; if ( JSON_ERROR_NONE !== json_last_error ( ) ) { throw new \ InvalidArgumentException ( json_last_error_msg ( ) ) ; } $ this -> model -> saveOrder ( $ tree ) ; return true ; }
Save tree order from a input.

@param string $serialize

@return bool
Save tree order from a input .