set($action, $user->authorise($action, $assetName)); } return $result; } public static function getCategoryActions($extension, $categoryId = 0) { $user = JFactory::getUser(); $result = new JObject; $parts = explode('.',$extension); $component = $parts[0]; if (empty($categoryId)) { $assetName = $component; } else { $assetName = $component.'.category.'.(int) $categoryId; } $actions = array( 'core.admin', 'core.manage', 'core.create', 'core.edit', 'core.edit.own', 'core.edit.state', 'core.delete' ); foreach ($actions as $action) { $result->set($action, $user->authorise($action, $assetName)); } return $result; } public static function filterText($text) { JLog::add('AbookHelper::filterText() is deprecated. Use JComponentHelper::filterText() instead.', JLog::WARNING, 'deprecated'); return JComponentHelper::filterText($text); } }