示例#1
0
 /**
  * Instantiates a new instance of the current object. Defaults to MALE
  * @param int $id Integer value representing this gender (1=Male, 2=Female, 3=Transgender)
  * @param int $value Integer value representing this gender (1=Male, 2=Female, 3=Transgender)
  * @param string $name Label for the this gender. Defaults to "Male"
  */
 function __construct($id = 1, $value = 1, $name = "Male")
 {
     parent::__construct();
     $this->id = $id;
     $this->value = $value;
     $this->name = "Male";
 }
示例#2
0
 /**
  * Instantiates a new instance of the current object
  * @method __construct
  * @param  integer     $id    [description]
  * @param  integer     $value [description]
  * @param  string      $name  [description]
  */
 public function __construct($id = 1, $value = 1, $name = "Created")
 {
     parent::__construct();
     $this->id = $id;
     $this->value = $value;
     $this->name = $name;
 }
示例#3
0
 /**
  * Instantiates a new instance of the GFObject class
  * @param integer $id       integer representation for the current object
  * @param string  $value    value representation for the current object
  * @param string  $name     name for the current object
  * @param integer $parentID integer parentID for the current object
  */
 public function __construct($id = 0, $value = "", $name = "", $parentID = 0)
 {
     parent::__construct($id, $value, $name);
     $this->parentID = $parentID;
 }