Source for file WSaveButton.class.php

Documentation is available at WSaveButton.class.php

  1. <?php
  2. /**
  3. * @since Jul 20, 2005
  4. * @package polyphony.wizard.components
  5. *
  6. * @copyright Copyright &copy; 2005, Middlebury College
  7. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  8. *
  9. * @version $Id: WSaveButton.class.php,v 1.5 2007/09/19 14:04:51 adamfranco Exp $
  10. */
  11. require_once(POLYPHONY."/main/library/Wizard/Components/WEventButton.class.php");
  12.  
  13. /**
  14. * This adds a save button to a wizard. It will automatically trigger the Wizard's save
  15. * event
  16. *
  17. * @since Jul 20, 2005
  18. * @package polyphony.wizard.components
  19. *
  20. * @copyright Copyright &copy; 2005, Middlebury College
  21. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  22. *
  23. * @version $Id: WSaveButton.class.php,v 1.5 2007/09/19 14:04:51 adamfranco Exp $
  24. */
  25. class WSaveButton extends WEventButton {
  26. function WSaveButton() {
  27. $this->setEventAndLabel("edu.middlebury.polyphony.wizard.save", dgettext("polyphony","Save"));
  28. }
  29. /**
  30. * Virtual constructor for a custom label
  31. *
  32. * @param string $label
  33. * @return object WSaveButton
  34. * @access public
  35. * @since 7/27/05
  36. */
  37. function withLabel($label) {
  38. $button = new WSaveButton();
  39. $button->setLabel($label);
  40. return $button;
  41. }
  42. }
  43.  
  44. ?>

Documentation generated on Wed, 19 Sep 2007 10:28:16 -0400 by phpDocumentor 1.3.0RC3