Пример #1
0
 function __construct()
 {
     $this->Map = new \IO\Filter\Map();
     $args = func_get_args();
     foreach ($args as $arg) {
         if (is_array($arg)) {
             $params = $arg;
         } elseif ($arg instanceof \IO\Filter) {
             $this->Map->register($arg);
         }
     }
     if (!is_array($params)) {
         $params = array();
     }
     parent::__construct($params);
 }
Пример #2
0
 function register(\IO\Filter $filter)
 {
     $c = count($this->Keys);
     $this->Keys[$c] = $filter->getName();
     $this->Data[$c] = $filter;
 }
Пример #3
0
 function __construct(array $params = array(), array $mapping = array())
 {
     parent::__construct($params);
     $this->mapping = new \DBAL\Data\Mapping($mapping, $this);
 }