actionsList[$group][$actionid] = $Action; } else { $this->actionsList[$group][] = $Action; } } public function getActionsByGroup($group = "All") { $A = array(); foreach ($this->actionsList[$group] AS $group => $Action) { $A[] = $Action; } return $A; } public function saveActions() { if (count($this->actionsList) > 0) { foreach ($this->actionsList AS $group => $Actions) { foreach ($Actions AS $Action) { $this->AllActionsList[] = $Action; } } } $this->actionsList = array(); } public function getAllActions() { return $this->AllActionsList; } }