protected function validateInputArguments(array $argumentsRequired, Doozr_Request_Arguments $argumentsSent)
    {
        $valid = true;
        $requestBody = $this->getStateObject()->getRequestBody();

        // ... and iterate them to find missing elements
        foreach ($argumentsRequired as $requiredArgument => $requiredValue) {
            // Can the required value be retrieved from GET, POST, ...
            if (!isset($argumentsSent->{$requiredArgument}) && (!isset($requestBody->{$requiredArgument}))) {
                $valid = false;
            }
        }

        return $valid;
    }
protected function validateInputArguments(array $argumentsRequired, Doozr_Request_Arguments $argumentsSent)
    {
        $valid = true;
        $requestBody = $this->getStateObject()->getRequestBody();

        // ... and iterate them to find missing elements
        foreach ($argumentsRequired as $requiredArgument => $requiredValue) {
            // Can the required value be retrieved from GET, POST, ...
            if (!isset($argumentsSent->{$requiredArgument}) && (!isset($requestBody->{$requiredArgument}))) {
                $valid = false;
            }
        }

        return $valid;
    }
protected function validateInputArguments ( array $ argumentsRequired , Doozr_Request_Arguments $ argumentsSent ) { $ valid = true ; $ requestBody = $ this -> getStateObject ( ) -> getRequestBody ( ) ; // ... and iterate them to find missing elements foreach ( $ argumentsRequired as $ requiredArgument => $ requiredValue ) { // Can the required value be retrieved from GET, POST, ... if ( ! isset ( $ argumentsSent -> { $ requiredArgument } ) && ( ! isset ( $ requestBody -> { $ requiredArgument } ) ) ) { $ valid = false ; } } return $ valid ; }
Checks if all required fields where passed with request.

@param array                   $argumentsRequired The arguments required
@param Doozr_Request_Arguments $argumentsSent     The arguments send with request

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE if all required fields where sent, otherwise FALSE
Checks if all required fields where passed with request .