public function getPrmForUrl(Form $form)
    {
        $ret = array();
        foreach ($form->getData() as $k => $data) {
            if (isset($data['value'])) {
                $data['value'] = $this->prepareDataForUrl($data['value'], $form->get($k)->get('value'));
                $ret[$k] = $data;
            }
        }

        return count($ret) ? array($form->getName() => $ret) : array();
    }
public function getPrmForUrl(Form $form)
    {
        $ret = array();
        foreach ($form->getData() as $k => $data) {
            if (isset($data['value'])) {
                $data['value'] = $this->prepareDataForUrl($data['value'], $form->get($k)->get('value'));
                $ret[$k] = $data;
            }
        }

        return count($ret) ? array($form->getName() => $ret) : array();
    }
public function getPrmForUrl ( Form $ form ) { $ ret = array ( ) ; foreach ( $ form -> getData ( ) as $ k => $ data ) { if ( isset ( $ data [ 'value' ] ) ) { $ data [ 'value' ] = $ this -> prepareDataForUrl ( $ data [ 'value' ] , $ form -> get ( $ k ) -> get ( 'value' ) ) ; $ ret [ $ k ] = $ data ; } } return count ( $ ret ) ? array ( $ form -> getName ( ) => $ ret ) : array ( ) ; }
Get parameter from a form for creating a pager URL.

@param Form $form

@return array
Get parameter from a form for creating a pager URL .