Source for file WCancelButton.class.php

Documentation is available at WCancelButton.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: WCancelButton.class.php,v 1.8 2007/09/19 14:04:51 adamfranco Exp $
  10. */
  11.  
  12. require_once(POLYPHONY."/main/library/Wizard/Components/WEventButton.class.php");
  13.  
  14. /**
  15. * This adds a cancel button to a wizard. It will automatically trigger the Wizard's cancel
  16. * event.
  17. *
  18. * @since Jul 20, 2005
  19. * @package polyphony.wizard.components
  20. *
  21. * @copyright Copyright &copy; 2005, Middlebury College
  22. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  23. *
  24. * @version $Id: WCancelButton.class.php,v 1.8 2007/09/19 14:04:51 adamfranco Exp $
  25. */
  26. class WCancelButton extends WEventButton {
  27. function WCancelButton($label=null) {
  28. if(is_null($label)){
  29. $label = dgettext("polyphony", "Cancel");
  30. }
  31. $this->setEventAndLabel("edu.middlebury.polyphony.wizard.cancel", $label);
  32. $this->addOnClick("ignoreValidation(this.form);");
  33. }
  34.  
  35. }
  36.  
  37. ?>

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