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); }
function title($title = NULL) { if (!CrayonUtil::str($this->title, $title)) { return $this->title; } }
function name($name = NULL) { if (!CrayonUtil::str($this->name, $name)) { return $this->name; } }