Source for file WCallbackButton.class.php

Documentation is available at WCallbackButton.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: WCallbackButton.class.php,v 1.2 2007/09/19 14:04:51 adamfranco Exp $
  10. */
  11.  
  12. /**
  13. * This class simply evaluates its event as a callback function when pressed.
  14. *
  15. * @since Jul 20, 2005
  16. * @package polyphony.wizard.components
  17. *
  18. * @copyright Copyright &copy; 2005, Middlebury College
  19. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  20. *
  21. * @version $Id: WCallbackButton.class.php,v 1.2 2007/09/19 14:04:51 adamfranco Exp $
  22. */
  23. class WCallbackButton
  24. extends WEventButton
  25. {
  26. /**
  27. * Tells the wizard component to update itself - this may include getting
  28. * form post data or validation - whatever this particular component wants to
  29. * do every pageload.
  30. * @param string $fieldName The field name to use when outputting form data or
  31. * similar parameters/information.
  32. * @access public
  33. * @return boolean - TRUE if everything is OK
  34. */
  35. function update ($fieldName) {
  36. $val = RequestContext::value($fieldName);
  37. if ($val) {
  38. return eval($this->_event);
  39. }
  40. return true;
  41. }
  42. }
  43.  
  44. ?>

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