Пример #1
0
 public function __construct($_declaration)
 {
     $this->unsigned = false;
     //not accepted by PostgreSQL
     $this->_setField($_declaration);
     parent::__construct($_declaration);
 }
Пример #2
0
 /**
  * constructor of this class
  *
  * @param string|SimpleXMLElement $_declaration the xml definition of the field
  */
 public function __construct($_declaration = NULL)
 {
     if ($_declaration instanceof SimpleXMLElement) {
         $this->_setField($_declaration);
     } elseif ($_declaration !== NULL) {
         $declaration = new SimpleXMLElement($_declaration);
         $this->_setField($declaration);
     }
     parent::__construct($_declaration);
 }
 public function __construct($_declaration)
 {
     $this->_setField($_declaration);
     parent::__construct($_declaration);
 }