_label = V::get('label', '', $configData); $this->_description = V::get('description', '', $configData); $this->_perms = V::get('perms', '', $configData); $this->_sort_prio = V::get('sort_prio', 0, $configData, 'int'); return true; } public function addPerms($perms) { $perms .= $this->_perms; $perms = str_split($perms); $perms = array_unique($perms); $perms = implode('', $perms); $this->_perms = $perms; } public function getTableName() { $uriParts = explode('/', $this->_uri); array_pop($uriParts); return array_pop($uriParts); } public function getTableUri() { $uriParts = explode('/', $this->_uri); array_pop($uriParts); return implode('/', $uriParts); } public function getLabel() { return $this->_label; } public function getDescription() { return $this->_description; } public function getPerms() { return $this->_perms; } public function getSortPrio() { return $this->_sort_prio; } }