|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/irtiweb/careers_old/vendor/FormGuide/PHPFormValidator/src/ |
Upload File : |
<?php
namespace FormGuide\PHPFormValidator;
class FieldValidatorCollection
{
public $fields;
private $validator;
public function __construct()
{
$this->fields = array();
$this->validator_map = include('ValidatorMap.php');
}
public function __call($function, $arguments)
{
if(isset($this->validator_map[$function]))
{
foreach($this->fields as $field)
{
$field->initValidator($function, $arguments);
}
return $this;
}
else
{
trigger_error('Call to undefined method '.__CLASS__.'::'.$name.'()', E_USER_ERROR);
}
}
}