public function validateLimitations(array $limitations)
    {
        $allErrors = array();
        foreach ($limitations as $limitation) {
            $errors = $this->validateLimitation($limitation);
            if (!empty($errors)) {
                $allErrors[$limitation->getIdentifier()] = $errors;
            }
        }

        return $allErrors;
    }
public function validateLimitations(array $limitations)
    {
        $allErrors = array();
        foreach ($limitations as $limitation) {
            $errors = $this->validateLimitation($limitation);
            if (!empty($errors)) {
                $allErrors[$limitation->getIdentifier()] = $errors;
            }
        }

        return $allErrors;
    }
public function validateLimitations ( array $ limitations ) { $ allErrors = array ( ) ; foreach ( $ limitations as $ limitation ) { $ errors = $ this -> validateLimitation ( $ limitation ) ; if ( ! empty ( $ errors ) ) { $ allErrors [ $ limitation -> getIdentifier ( ) ] = $ errors ; } } return $ allErrors ; }
Validates an array of Limitations.

@uses ::validateLimitation()

@param \eZ\Publish\API\Repository\Values\User\Limitation[] $limitations

@return \eZ\Publish\Core\FieldType\ValidationError[][]
Validates an array of Limitations .