コード例 #1
0
 function __construct($id, $name = NULL)
 {
     $id = $this->clean_id($id);
     CrayonUtil::str($this->id, $id);
     empty($name) ? $this->name(self::clean_name($this->id)) : $this->name($name);
 }
コード例 #2
0
 function title($title = NULL)
 {
     if (!CrayonUtil::str($this->title, $title)) {
         return $this->title;
     }
 }
コード例 #3
0
 function name($name = NULL)
 {
     if (!CrayonUtil::str($this->name, $name)) {
         return $this->name;
     }
 }