Esempio n. 1
0
 public function __construct($default = false)
 {
     parent::__construct();
     if (!is_bool($default)) {
         throw new Exception('Property default must be boolean.');
     }
     $this->default = $default;
 }
Esempio n. 2
0
 public function __construct($autoUpdate = false, $autoInsert = false)
 {
     parent::__construct();
     $this->autoUpdate = $autoUpdate;
     $this->autoInsert = $autoInsert;
     if ($this->autoUpdate) {
         $this->default = date(self::FORMAT);
     }
 }
Esempio n. 3
0
 public function __construct($relation)
 {
     parent::__construct();
     if (!is_string($relation)) {
         throw new Exception('Relation must be the Model class name.');
     } elseif (!class_exists($relation)) {
         include_once 'application/models/' . str_replace('_', '/', $relation) . '.php';
     }
     $this->relation = $relation;
     $this->length = 8;
 }
Esempio n. 4
0
 public function __construct($length, $default = 0)
 {
     parent::__construct();
     if (!is_integer($length)) {
         throw new Exception('Property length must be integer.');
     }
     if (0 >= $length) {
         throw new Exception('Property length must be grater than zero.');
     }
     if (!is_integer($default)) {
         throw new Exception('Property default must be integer.');
     }
     $this->length = $length;
     $this->default = $default;
 }
Esempio n. 5
0
 public function __construct($varName)
 {
     $this->visibility = false;
     $this->isStatic = false;
     parent::__construct($varName);
 }
Esempio n. 6
0
 /**
  * Constructor
  * @param mixed $data
  * @param string $encoding
  */
 public function __construct($data = null, $encoding = 'UTF-8')
 {
     $this->encoding = $encoding;
     parent::__construct($data);
 }
Esempio n. 7
0
	public function __construct($name, $options)
	{
		parent::__construct($name);
		$this->_options = $options;
	}
Esempio n. 8
0
	public function __construct($name)
	{
		parent::__construct($name);
		$this->_value = array();
	}
Esempio n. 9
0
 public function __construct($name, $type, $size, $autoIncrement)
 {
     parent::__construct($name, $type, $size);
     $this->autoIncrement = $autoIncrement;
 }
Esempio n. 10
0
	public function __construct($name, $max = null)
	{
		parent::__construct($name);
		$this->_maxInt = $max;
	}
Esempio n. 11
0
 public function __construct()
 {
     parent::__construct();
     $this->length = 8;
     $this->extras = 'AUTO_INCREMENT PRIMARY KEY';
 }
Esempio n. 12
0
	public function __construct($name, $maxLength = -1)
	{
		parent::__construct($name);
		$this->_maxLength = $maxLength;
	}
Esempio n. 13
0
	public function __construct($name, $dataPath)
	{
		parent::__construct($name);
		$this->_dataPath = $dataPath;
	}