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

Source for file LBrickAdminMenu.php

Documentation is available at LBrickAdminMenu.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: schmunk $
  10. * @version $Revision: 237 $ $Date: 2006-05-31 01:45:51 +0200 (Mi, 31 Mai 2006) $
  11. * @package Lithron.LContainer
  12. * @subpackage WebControls
  13. */
  14.  
  15. /**
  16. * Displays brick admin buttons for edit, parameters, up, down and delete
  17. *
  18. * @package System.Web.UI.WebControls
  19. * @subpackage BrickSupport
  20. */
  21.  
  22. class LBrickAdminMenu extends TTemplateControl
  23. {
  24. /**
  25. * manages admin display
  26. */
  27. function onInit($param)
  28. {
  29. if ($this->User->IsInRole("admin"))
  30. $this->setVisible(true);
  31. else
  32. $this->setVisible(false);
  33.  
  34. parent::onInit($param);
  35. }
  36.  
  37. }
  38. ?>

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