Source for file note.php

Documentation is available at note.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_users
  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.  * User note controller class.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_users
  17.  * @since       2.5
  18.  */
  19. {
  20.     /**
  21.      * The prefix to use with controller messages.
  22.      *
  23.      * @var    string 
  24.      * @since  2.5
  25.      */
  26.     protected $text_prefix = 'COM_USERS_NOTE';
  27.  
  28.     /**
  29.      * Gets the URL arguments to append to an item redirect.
  30.      *
  31.      * @param   integer  $recordId  The primary key id for the item.
  32.      * @param   string   $key       The name of the primary key variable.
  33.      *
  34.      * @return  string  The arguments to append to the redirect URL.
  35.      *
  36.      * @since   2.5
  37.      */
  38.     protected function getRedirectToItemAppend($recordId null$key 'id')
  39.     {
  40.         $append parent::getRedirectToItemAppend($recordId$key);
  41.  
  42.         $userId JFactory::getApplication()->input->get('u_id'0'int');
  43.         if ($userId)
  44.         {
  45.             $append .= '&u_id=' $userId;
  46.         }
  47.  
  48.         return $append;
  49.     }
  50. }

Documentation generated on Tue, 19 Nov 2013 15:09:35 +0100 by phpDocumentor 1.4.3