/** * 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 = array('core.admin', 'core.manage', 'core.create', 'core.edit', 'core.edit.state', 'core.delete'); foreach ($actions as $action) { self::$actions->set($action, $user->authorise($action, 'com_tz_pinboard')); } } return self::$actions; }