[ Index ]

PHP Cross Reference of Joomla 1.5.25

title

Body

[close]

/components/com_user/views/remind/ -> view.html.php (source)

   1  <?php
   2  /**
   3   * @version        $Id: view.html.php 14401 2010-01-26 14:10:00Z louis $
   4   * @package        Joomla
   5   * @subpackage    User
   6   * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7   * @license        GNU/GPL, see LICENSE.php
   8   * Joomla! is free software. This version may have been modified pursuant to the
   9   * GNU General Public License, and as distributed it includes or is derivative
  10   * of works licensed under the GNU General Public License or other free or open
  11   * source software licenses. See COPYRIGHT.php for copyright notices and
  12   * details.
  13   */
  14  
  15  // No direct access
  16  defined('_JEXEC') or die;
  17  
  18  jimport('joomla.application.component.view');
  19  
  20  /**
  21   * HTML View class for the Users component
  22   *
  23   * @package        Joomla
  24   * @subpackage    User
  25   * @since        1.5
  26   */
  27  class UserViewRemind extends JView
  28  {
  29      /**
  30       * Registry namespace prefix
  31       *
  32       * @var    string
  33       */
  34      var $_namespace    = 'members.remind.';
  35  
  36      /**
  37       * Display function
  38       *
  39       * @since 1.5
  40       */
  41  	function display($tpl = null)
  42      {
  43          jimport('joomla.html.html');
  44          $mainframe = &JFactory::getApplication();
  45  
  46          // Get the page/component configuration
  47          $params = &$mainframe->getParams();
  48  
  49          $menus    = &JSite::getMenu();
  50          $menu    = $menus->getActive();
  51  
  52          // because the application sets a default page title, we need to get it
  53          // right from the menu item itself
  54          if (is_object( $menu )) {
  55              $menu_params = new JParameter( $menu->params );
  56              if (!$menu_params->get( 'page_title')) {
  57                  $params->set('page_title',    JText::_( 'FORGOT_YOUR_USERNAME' ));
  58              }
  59          } else {
  60              $params->set('page_title',    JText::_( 'FORGOT_YOUR_USERNAME' ));
  61          }
  62          $document    = &JFactory::getDocument();
  63          $document->setTitle( $params->get( 'page_title' ) );
  64  
  65  
  66          // Load the form validation behavior
  67          JHTML::_('behavior.formvalidation');
  68  
  69          // Add the tooltip behavior
  70          JHTML::_('behavior.tooltip');
  71  
  72          $this->assignRef('params',        $params);
  73  
  74          parent::display($tpl);
  75      }
  76  }


Generated: Mon Nov 14 16:47:20 2011 Cross-referenced by PHPXref 0.7.1