Example #1
0
 function __construct(array $params = null)
 {
     parent::__construct();
     if (is_array($params)) {
         $this->setParameters($params);
     }
 }
Example #2
0
 function __construct($name = null, \DBAL\Data\Entity $entity = null)
 {
     $this->Name = $name;
     if (!is_null($entity)) {
         $this->setEntity($entity);
     }
     parent::__construct();
 }
Example #3
0
 function __construct(Driver $driver, Configuration $config = null)
 {
     $this->_driver = $driver;
     if (is_null($config)) {
         $config = new Configuration();
     }
     $this->_configuration = $config;
     $this->_name = $config['database']['name'];
     parent::__construct();
 }
Example #4
0
 function getBase(&$result = null)
 {
     if (get_class() !== 'DataType') {
         if ($result == null) {
             $result = array();
         }
         $result[] = $this->toBase();
         return parent::getBase($result);
     }
     return $result;
 }
Example #5
0
 function __construct($username, $password)
 {
     $this->_username = $username;
     $this->_password = $password;
     parent::__construct();
 }
Example #6
0
 function __construct(array $params = array())
 {
     parent::__construct();
     $this->setParameters($params);
 }
Example #7
0
 function __construct($version, $encoding = 'UTF-8')
 {
     parent::__construct();
     $this->_version = $version;
     $this->_encoding = $encoding;
 }