private function _setMenuParameters(array $data)
    {
        $source = $this->menu->getParameterSource();
        $source['script'] = $data['script'] ? true : false;
        $source['exists'] = $data['exists'] ? true : false;
    }
private function _setMenuParameters(array $data)
    {
        $source = $this->menu->getParameterSource();
        $source['script'] = $data['script'] ? true : false;
        $source['exists'] = $data['exists'] ? true : false;
    }
private function _setMenuParameters ( array $ data ) { $ source = $ this -> menu -> getParameterSource ( ) ; $ source [ 'script' ] = $ data [ 'script' ] ? true : false ; $ source [ 'exists' ] = $ data [ 'exists' ] ? true : false ; }
Set the parameters needed by the menu.

@param array $data The current model item
Set the parameters needed by the menu .