/** * Gets a list of the actions that can be performed. * * @return JObject * * @since 1.6 * @todo Refactor to work with notes */ public static function getActions() { if (empty(self::$actions)) { $user = JFactory::getUser(); self::$actions = new JObject(); $actions = JAccess::getActions('com_openhrm'); foreach ($actions as $action) { self::$actions->set($action->name, $user->authorise($action->name, 'com_openhrm')); } } return self::$actions; }