app/Http/Controllers/vua__RegionController.php
/**
     * nestedSortable serialize info about reordering in a little strange way
     * so i have to deserilize it by myself
     * @param $string
     * @return array
     */
nestedSortable serialize info about reordering in a little strange way
so i have to deserilize it by myself
@param $string
@return array
nestedSortable serialize info about reordering in a little strange way so i have to deserilize it by myself @param $string @return array
private function unserializaOrderString($string){
        $pieces = explode("&", $string);
        $result = array();
        foreach ($pieces as $peace){
            $pic = explode('=',$peace);
            $pic[0] = str_replace('list[', '', $pic[0]);
            $pic[0] = str_replace(']', '', $pic[0]);
            if(is_numeric($pic[0])){
                $result[$pic[0]] = $pic[1];
            }
        }
        return $result;
    }
private function unserializaOrderString ( $ string ) { $ pieces = explode ( " & " , $ string ) ; $ result = array ( ) ; foreach ( $ pieces as $ peace ) { $ pic = explode ( '=' , $ peace ) ; $ pic [ 0 ] = str_replace ( 'list[' , '' , $ pic [ 0 ] ) ; $ pic [ 0 ] = str_replace ( ']' , '' , $ pic [ 0 ] ) ; if ( is_numeric ( $ pic [ 0 ] ) ) { $ result [ $ pic [ 0 ] ] = $ pic [ 1 ] ; } } return $ result ; }
nestedSortable serialize info about reordering in a little strange way
 so i have to deserilize it by myself
 @param $string
 @return array
nestedSortable serialize info about reordering in a little strange way so i have to deserilize it by myself @param $string @return array