Lithron
[ class tree: Lithron ] [ index: Lithron ] [ all elements ]

Source for file LPoweredBy.php

Documentation is available at LPoweredBy.php

  1. <?php
  2.  
  3.  
  4. /**
  5. * class file.
  6. *
  7. * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
  8. * @copyright 2005, diemeisterei GmbH. All rights reserved.
  9. * @author $Author: tobias $
  10. * @version $Revision: 1.5 $ $Date: 2006/01/03 19:08:05 $
  11. * @package Lithron
  12. * @subpackage none
  13. */
  14.  
  15. /**
  16. *
  17. *
  18. * @package Lithron
  19. * @subpackage none
  20. */
  21.  
  22. class LPoweredBy extends TTemplateControl
  23. {
  24. function setSize($value)
  25. {
  26. $this->setViewState("Size", $value);
  27. }
  28. function getSize()
  29. {
  30. return $this->getViewState("Size", "Small");
  31. }
  32. function onPreRender($param)
  33. {
  34. parent :: onPreRender($param);
  35. if ($this->getSize() == "Large")
  36. {
  37. $this->Small->setVisible(false);
  38. }
  39. else
  40. {
  41. $this->Large->setVisible(false);
  42. }
  43.  
  44. }
  45. }
  46. ?>

Documentation generated on Tue, 20 Jun 2006 05:15:23 +0200 by phpDocumentor 1.3.0RC4