public function __construct($data = null)
 {
     parent::__construct($data);
     $exploded = explode('\\', get_class($this));
     $classMap = '\\ws\\komerci\\typemaps\\' . array_pop($exploded) . 'Map';
     if (class_exists($classMap)) {
         $map = new $classMap();
         $validator = new GenericValidator($this, $map, true);
         $validator->isValid();
     }
 }
Пример #2
0
 public function __construct($data = array())
 {
     parent::__construct($data);
 }