Beispiel #1
0
 public function computeMenuId()
 {
     $this->menuId = strtolower(strtr(KLib\STR::toAlNum($this->label), array(' ' => '_')));
 }
Beispiel #2
0
 public function setLabel($data)
 {
     if (!is_string($data) || empty($data)) {
         throw new Exception('INVALID LABEL BLOCK PARAMETER', 500);
     }
     $this->label = $data;
     if (empty($this->key)) {
         $this->key = strtr(KLib\STR::toAlNum(strtolower($data)), array(' ' => '_'));
     }
 }