PATH:
home
/
lab2454c
/
veritserv.com
/
wp-content
/
plugins
/
contact-form-7
/
includes
/
swv
/
php
/
rules
<?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; } }
[-] any.php
[edit]
[-] mindate.php
[edit]
[-] minitems.php
[edit]
[+]
..
[-] email.php
[edit]
[-] required.php
[edit]
[-] maxitems.php
[edit]
[-] minlength.php
[edit]
[-] dayofweek.php
[edit]
[-] number.php
[edit]
[-] maxlength.php
[edit]
[-] url.php
[edit]
[-] maxdate.php
[edit]
[-] enum.php
[edit]
[-] file.php
[edit]
[-] minfilesize.php
[edit]
[-] .htaccess
[edit]
[-] all.php
[edit]
[-] time.php
[edit]
[-] maxfilesize.php
[edit]
[-] minnumber.php
[edit]
[-] maxnumber.php
[edit]
[-] date.php
[edit]
[-] tel.php
[edit]
[-] requiredfile.php
[edit]