Example #1
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     if (isset($this->description)) {
         $details = explode(",", $this->description);
         $this->name = $details[0];
         $this->lightID = $details[1];
     }
 }
Example #2
0
 public function __construct($id = null)
 {
     parent::__construct($id);
     $details = explode(",", $this->description);
     $this->name = $details[0];
     $this->handler = $details[1];
     if (isset($details[2])) {
         $this->lock_img = $details[2];
     }
     if (isset($details[3])) {
         $this->unlock_img = $details[3];
     }
 }