Source for file clicks.php

Documentation is available at clicks.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_banners
  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('JPATH_BASE'or die;
  11.  
  12. /**
  13.  * Clicks Field class for the Joomla Framework.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_banners
  17.  * @since       1.6
  18.  */
  19. class JFormFieldClicks extends JFormField
  20. {
  21.     /**
  22.      * The form field type.
  23.      *
  24.      * @var        string 
  25.      * @since   1.6
  26.      */
  27.     protected $type = 'Clicks';
  28.  
  29.     /**
  30.      * Method to get the field input markup.
  31.      *
  32.      * @return  string    The field input markup.
  33.      * @since   1.6
  34.      */
  35.     protected function getInput()
  36.     {
  37.         $onclick    ' onclick="document.id(\''.$this->id.'\').value=\'0\';"';
  38.  
  39.         return '<input class="input-small" type="text" name="' $this->name . '" id="' $this->id . '" value="' htmlspecialchars($this->valueENT_COMPAT'UTF-8''" readonly="readonly" /> <a class="btn" ' $onclick '><i class="icon-refresh"></i> ' JText::_('COM_BANNERS_RESET_CLICKS''</a>';
  40.     }
  41. }

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