예제 #1
0
 /**
  * defaultni getter
  * @param string $name
  * @return mixed
  */
 public function __get($name)
 {
     try {
         switch ($name) {
             case "getSelected":
                 return $this->isSelected() ? "selected" : "";
                 break;
             case "getChecked":
                 return $this->isSelected() ? "checked" : "";
                 break;
             default:
                 return parent::__get($name);
         }
     } catch (Exception $e) {
         throw $e;
     }
 }