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