Пример #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 __construct(array $params = array(), array $mapping = array())
 {
     parent::__construct($params);
     $this->mapping = new \DBAL\Data\Mapping($mapping, $this);
 }