lib/ezutils/classes/ezmodule.php
function hasActionParameter( $parameterName, $view = '' )
    {
        if ( $view == '' )
            $view = self::currentView();
        if ( isset( $this->ViewActionParameters[$view][$parameterName] ) )
            return true;
        $currentAction = $this->currentAction( $view );
        $http = eZHTTPTool::instance();
        if ( isset( $this->Functions[$view]['post_action_parameters'][$currentAction] ) )
        {
            $postParameters = $this->Functions[$view]['post_action_parameters'][$currentAction];
            if ( isset( $postParameters[$parameterName] ) and
                 $http->hasPostVariable( $postParameters[$parameterName] ) )
            {
                return true;
            }
        }
        if ( isset( $this->Functions[$view]['post_value_action_parameters'][$currentAction] ) )
        {
            $postParameters = $this->Functions[$view]['post_value_action_parameters'][$currentAction];
            if ( isset( $postParameters[$parameterName] ) )
            {
                $postVariables = $http->attribute( 'post' );
                $postVariableNameMatch = $postParameters[$parameterName];
                $regMatch = "/^" . $postVariableNameMatch . "_(.+)$/";
                foreach ( $postVariables as $postVariableName => $postVariableValue )
                {
                    if ( preg_match( $regMatch, $postVariableName, $matches ) )
                    {
                        $parameterValue = $matches[1];
                        $this->ViewActionParameters[$view][$parameterName] = $parameterValue;
                        return true;
                    }
                }
            }
        }
        return false;
    }
function hasActionParameter( $parameterName, $view = '' )
    {
        if ( $view == '' )
            $view = self::currentView();
        if ( isset( $this->ViewActionParameters[$view][$parameterName] ) )
            return true;
        $currentAction = $this->currentAction( $view );
        $http = eZHTTPTool::instance();
        if ( isset( $this->Functions[$view]['post_action_parameters'][$currentAction] ) )
        {
            $postParameters = $this->Functions[$view]['post_action_parameters'][$currentAction];
            if ( isset( $postParameters[$parameterName] ) and
                 $http->hasPostVariable( $postParameters[$parameterName] ) )
            {
                return true;
            }
        }
        if ( isset( $this->Functions[$view]['post_value_action_parameters'][$currentAction] ) )
        {
            $postParameters = $this->Functions[$view]['post_value_action_parameters'][$currentAction];
            if ( isset( $postParameters[$parameterName] ) )
            {
                $postVariables = $http->attribute( 'post' );
                $postVariableNameMatch = $postParameters[$parameterName];
                $regMatch = "/^" . $postVariableNameMatch . "_(.+)$/";
                foreach ( $postVariables as $postVariableName => $postVariableValue )
                {
                    if ( preg_match( $regMatch, $postVariableName, $matches ) )
                    {
                        $parameterValue = $matches[1];
                        $this->ViewActionParameters[$view][$parameterName] = $parameterValue;
                        return true;
                    }
                }
            }
        }
        return false;
    }
function hasActionParameter ( $ parameterName , $ view = '' ) { if ( $ view == '' ) $ view = self :: currentView ( ) ; if ( isset ( $ this -> ViewActionParameters [ $ view ] [ $ parameterName ] ) ) return true ; $ currentAction = $ this -> currentAction ( $ view ) ; $ http = eZHTTPTool :: instance ( ) ; if ( isset ( $ this -> Functions [ $ view ] [ 'post_action_parameters' ] [ $ currentAction ] ) ) { $ postParameters = $ this -> Functions [ $ view ] [ 'post_action_parameters' ] [ $ currentAction ] ; if ( isset ( $ postParameters [ $ parameterName ] ) and $ http -> hasPostVariable ( $ postParameters [ $ parameterName ] ) ) { return true ; } } if ( isset ( $ this -> Functions [ $ view ] [ 'post_value_action_parameters' ] [ $ currentAction ] ) ) { $ postParameters = $ this -> Functions [ $ view ] [ 'post_value_action_parameters' ] [ $ currentAction ] ; if ( isset ( $ postParameters [ $ parameterName ] ) ) { $ postVariables = $ http -> attribute ( 'post' ) ; $ postVariableNameMatch = $ postParameters [ $ parameterName ] ; $ regMatch = "/^" . $ postVariableNameMatch . "_(.+)$/" ; foreach ( $ postVariables as $ postVariableName => $ postVariableValue ) { if ( preg_match ( $ regMatch , $ postVariableName , $ matches ) ) { $ parameterValue = $ matches [ 1 ] ; $ this -> ViewActionParameters [ $ view ] [ $ parameterName ] = $ parameterValue ; return true ; } } } } return false ; }
Checks if an action parameter is defined for a view

@param string $parameterName
@param string $view
The view to check the parameter for. If omited, uses the current view

@return bool

@see setActionParameter(), actionParameter()
Checks if an action parameter is defined for a view