Source for file custom.php

Documentation is available at custom.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Libraries
  4.  * @subpackage  Toolbar
  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
  8.  */
  9.  
  10. defined('JPATH_PLATFORM'or die;
  11.  
  12. /**
  13.  * Renders a custom button
  14.  *
  15.  * @package     Joomla.Libraries
  16.  * @subpackage  Toolbar
  17.  * @since       3.0
  18.  */
  19. {
  20.     /**
  21.      * Button type
  22.      *
  23.      * @var    string 
  24.      */
  25.     protected $_name = 'Custom';
  26.  
  27.     /**
  28.      * Fetch the HTML for the button
  29.      *
  30.      * @param   string  $type  Button type, unused string.
  31.      * @param   string  $html  HTML strng for the button
  32.      * @param   string  $id    CSS id for the button
  33.      *
  34.      * @return  string   HTML string for the button
  35.      *
  36.      * @since   3.0
  37.      */
  38.     public function fetchButton($type 'Custom'$html ''$id 'custom')
  39.     {
  40.         return $html;
  41.     }
  42.  
  43.     /**
  44.      * Get the button CSS Id
  45.      *
  46.      * @param   string  $type  Not used.
  47.      * @param   string  $html  Not used.
  48.      * @param   string  $id    The id prefix for the button.
  49.      *
  50.      * @return  string  Button CSS Id
  51.      *
  52.      * @since   3.0
  53.      */
  54.     public function fetchId($type 'Custom'$html ''$id 'custom')
  55.     {
  56.         return $this->_parent->getName('-' $id;
  57.     }
  58. }

Documentation generated on Tue, 19 Nov 2013 14:57:41 +0100 by phpDocumentor 1.4.3