Source for file content.php

Documentation is available at content.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_content
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Content component helper.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_content
  17.  * @since       1.6
  18.  */
  19. class ContentHelper extends JHelperContent
  20. {
  21.     public static $extension 'com_content';
  22.  
  23.     /**
  24.      * Configure the Linkbar.
  25.      *
  26.      * @param   string  $vName  The name of the active view.
  27.      *
  28.      * @return  void 
  29.      *
  30.      * @since   1.6
  31.      */
  32.     public static function addSubmenu($vName)
  33.     {
  34.         JHtmlSidebar::addEntry(
  35.             JText::_('JGLOBAL_ARTICLES'),
  36.             'index.php?option=com_content&view=articles',
  37.             $vName == 'articles'
  38.         );
  39.         JHtmlSidebar::addEntry(
  40.             JText::_('COM_CONTENT_SUBMENU_CATEGORIES'),
  41.             'index.php?option=com_categories&extension=com_content',
  42.             $vName == 'categories');
  43.         JHtmlSidebar::addEntry(
  44.             JText::_('COM_CONTENT_SUBMENU_FEATURED'),
  45.             'index.php?option=com_content&view=featured',
  46.             $vName == 'featured'
  47.         );
  48.     }
  49.  
  50.     /**
  51.      * Applies the content tag filters to arbitrary text as per settings for current user group
  52.      *
  53.      * @param   text  $text  The string to filter
  54.      *
  55.      * @return  string  The filtered string
  56.      *
  57.      * @deprecated  4.0  Use JComponentHelper::filterText() instead.
  58.     */
  59.     public static function filterText($text)
  60.     {
  61.         JLog::add('ContentHelper::filterText() is deprecated. Use JComponentHelper::filterText() instead.'JLog::WARNING'deprecated');
  62.  
  63.         return JComponentHelper::filterText($text);
  64.     }
  65. }

Documentation generated on Tue, 19 Nov 2013 14:56:55 +0100 by phpDocumentor 1.4.3