%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/t/r/a/tradesc/www/albanie/wp-content/plugins/contact-form-7/includes/swv/php/rules/
Upload File :
Create Path :
Current File : /home/t/r/a/tradesc/www/albanie/wp-content/plugins/contact-form-7/includes/swv/php/rules/all.php

<?php

namespace Contactable\SWV;

class AllRule extends CompositeRule {

	const rule_name = 'all';

	public function matches( $context ) {
		if ( false === parent::matches( $context ) ) {
			return false;
		}

		return true;
	}

	public function validate( $context ) {
		foreach ( $this->rules() as $rule ) {
			if ( $rule->matches( $context ) ) {
				$result = $rule->validate( $context );

				if ( is_wp_error( $result ) ) {
					if ( $result->get_error_message() ) {
						return $result;
					} else {
						return $this->create_error();
					}
				}
			}
		}

		return true;
	}

}

Zerion Mini Shell 1.0