Exemplo n.º 1
0
 /**
  *
  * @param String $name
  * @param String $type
  * @return Morph_Property_HasMany
  */
 public function __construct($name, $type)
 {
     $this->Type = $type;
     $this->Value = new Morph_Collection();
     $this->Value->setPermissableType($type);
     parent::__construct($name);
 }
Exemplo n.º 2
0
 /**
  *
  * @param string $name
  * @param string $type the classname this property should hold
  * @param $default
  * @return Morph_Property_hasOne
  */
 public function __construct($name)
 {
     parent::__construct($name, null);
 }
Exemplo n.º 3
0
 /**
  * @param string $name
  * @param float $default
  * @param float $minimum
  * @param float $maximum
  */
 public function __construct($name, $default = null, $minimum = null, $maximum = null)
 {
     parent::__construct($name, $default);
     $this->Minimum = $minimum;
     $this->Maximum = $maximum;
 }
Exemplo n.º 4
0
 /**
  * @param string $Name
  * @param string $Default
  * @param integer $MaximumLength
  */
 public function __construct($name, $default = null, $maximumLength = null)
 {
     parent::__construct($name, $default);
     $this->MaximumLength = $maximumLength;
 }
Exemplo n.º 5
0
 /**
  *
  * @param string $name
  * @param mixed $default
  * @param array $enums An array of valid enum values
  * @return ar_Property_Enum
  */
 public function __construct($name, $default, array $enums)
 {
     $this->Enums = $enums;
     parent::__construct($name, $default);
 }
Exemplo n.º 6
0
 /**
  * Creates a property to contain a reference to another Morph_Object
  *
  * @param string $name The name to associate with this property
  * @param string $type The class that this property should contain
  * @return Morph_Object
  */
 public function __construct($name, $type)
 {
     $this->Type = $type;
     parent::__construct($name);
 }
Exemplo n.º 7
0
 /**
  *
  * @param string $name
  * @param string $type the classname this property should hold
  * @param $default
  * @return Morph_Property_hasOne
  */
 public function __construct($name, $type, Morph_Object $default = null)
 {
     $this->Type = $type;
     $this->isPermissableType($default);
     parent::__construct($name, $default);
 }