PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/pdf/code/trunk/administrator/components/com_artofpdf/helpers/elements/dummy.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 64 lines | 16 code | 5 blank | 43 comment | 0 complexity | a9a01a7ba3de0e3e9a9ecb7d074b6c0e MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: dummy.php 278 2010-09-14 11:11:09Z eddieajau $
  4. * @package NewLifeInIT
  5. * @subpackage com_artofpdf
  6. * @copyright Copyright 2010 New Life in IT Pty Ltd. All rights reserved.
  7. * @license GNU General Public License version 2 or later.
  8. * @link http://www.theartofjoomla.com
  9. */
  10. // No direct access.
  11. defined('JPATH_BASE') or die();
  12. /**
  13. * This is a dummy JHtml element that sneakily loads the language file
  14. * for the backend module.
  15. *
  16. * @package NewLifeInIT
  17. * @subpackage com_artofpdf
  18. * @since 1.0
  19. */
  20. class JElementDummy extends JElement
  21. {
  22. /**
  23. * Element name
  24. */
  25. public $_name = 'Dummy';
  26. /**
  27. * Fetch the elements.
  28. *
  29. * @param string $name The name of the variable.
  30. * @param string $value The value of the variable.
  31. * @param object $node The XML node defining the variable.
  32. * @param string $controlName The name of the HTML control that stores this variable.
  33. *
  34. * @return string The HTML representation of the control.
  35. * @since 1.0.0
  36. */
  37. function fetchElement($name, $value, &$node, $control_name)
  38. {
  39. $lang = JFactory::getLanguage();
  40. $lang->load('com_artofpdf', JPATH_ADMINISTRATOR.'/components/com_artofpdf');
  41. return false;
  42. }
  43. /**
  44. * Fetch the tooltip for the variable label.
  45. *
  46. * @param string $label The text for the label.
  47. * @param string $description The description associated with the label.
  48. * @param object $xmlElement The XML node defining the variable.
  49. * @param string $controlName The name of the HTML control that stores this variable (optional).
  50. * @param string $name The name of the variable (optional).
  51. *
  52. * @return string The HTML representation of the label including the tooltip.
  53. * @since 1.0.0
  54. */
  55. function fetchTooltip($label, $description, &$xmlElement, $control_name='', $name='')
  56. {
  57. return false;
  58. }
  59. }