Ejemplo n.º 1
0
 public function computeMenuId()
 {
     $this->menuId = strtolower(strtr(KLib\STR::toAlNum($this->label), array(' ' => '_')));
 }
Ejemplo n.º 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(' ' => '_'));
     }
 }