protected function validateMoveRequest()
    {
        if (!$this->isRequestPost()) {
            throw new common_exception_MethodNotAllowed('Only POST method is allowed to move instances.');
        }

        if (!$this->hasRequestParameter('destinationClassUri')) {
            throw new InvalidArgumentException('Destination class must be specified');
        }

        $destinationClass = new \core_kernel_classes_Class($this->getRequestParameter('destinationClassUri'));
        if (!$destinationClass->isClass()) {
            throw new InvalidArgumentException('Destination class must be a valid class');
        }
    }
protected function validateMoveRequest()
    {
        if (!$this->isRequestPost()) {
            throw new common_exception_MethodNotAllowed('Only POST method is allowed to move instances.');
        }

        if (!$this->hasRequestParameter('destinationClassUri')) {
            throw new InvalidArgumentException('Destination class must be specified');
        }

        $destinationClass = new \core_kernel_classes_Class($this->getRequestParameter('destinationClassUri'));
        if (!$destinationClass->isClass()) {
            throw new InvalidArgumentException('Destination class must be a valid class');
        }
    }
protected function validateMoveRequest ( ) { if ( ! $ this -> isRequestPost ( ) ) { throw new common_exception_MethodNotAllowed ( 'Only POST method is allowed to move instances.' ) ; } if ( ! $ this -> hasRequestParameter ( 'destinationClassUri' ) ) { throw new InvalidArgumentException ( 'Destination class must be specified' ) ; } $ destinationClass = new \ core_kernel_classes_Class ( $ this -> getRequestParameter ( 'destinationClassUri' ) ) ; if ( ! $ destinationClass -> isClass ( ) ) { throw new InvalidArgumentException ( 'Destination class must be a valid class' ) ; } }
Validate request with all required parameters

@throws common_exception_Error
@throws common_exception_MethodNotAllowed If it is not POST method
@throws InvalidArgumentException If parameters are not correct
Validate request with all required parameters