Ejemplo n.º 1
0
 /**
  * Utility method to wipe submitted data after it is
  * processed. This allows the form to return to the same page
  * without the form being repopulated with old data
  * @version 2012092101
  * @since 2012092101
  */
 public function clearSubmittedValues()
 {
     $this->get_element('firstName')->setValue('');
     $this->get_element('lastName')->setValue('');
     $this->get_element('company')->setValue('');
     $this->get_element('phoneNumber')->setValue('');
     $this->get_element('groups')->setValue('');
     parent::clearSubmittedValues();
 }
Ejemplo n.º 2
0
 /**
  * Utility method to wipe submitted data after it is
  * processed. This allows the form to return to the same page
  * without the form being repopulated with old data
  * @version 2012092401
  * @since 2012092201
  */
 public function clearSubmittedValues()
 {
     $this->get_element('newGroupName')->setValue('');
     //        $this->get_element('newGroupDesc')->setValue('');
     parent::clearSubmittedValues();
 }
Ejemplo n.º 3
0
 /**
  * Utility method to wipe submitted data after it is
  * processed. This allows the form to return to the same page
  * without the form being repopulated with old data
  * @version 2012092201
  * @since 2012092201
  */
 public function clearSubmittedValues()
 {
     $this->get_element('editExistingGroup')->setValue('');
     $this->get_element('editGroupMembers')->setValue('');
     parent::clearSubmittedValues();
 }
 /**
  * Initialises the field types used
  * within the addressbook form, then sets up
  * the form as usual
  * @param string $action Form destination
  * @param array $customdata Custom data for pre-populating form fields
  * @param string $method Method of form submission - GET or POST
  * @param string $target Form's target
  * @param array $attributes HTML form attributes
  * @param boolean $editable Whether the form can be edited
  * @version 2012091201
  * @since 2012091201
  */
 public function __construct($action = null, $customdata = null, $method = 'post', $target = '', $attributes = null, $editable = true)
 {
     parent::moodleform($action, $customdata, $method, $target, $attributes, $editable);
 }
 /**
  * Utility method to wipe submitted data after it is
  * processed. This allows the form to return to the same page
  * without the form being repopulated with old data
  * @version 2012092101
  * @since 2012090301
  */
 public function clearSubmittedValues()
 {
     $this->get_element('newAddressbookName')->setValue('');
     parent::clearSubmittedValues();
 }
Ejemplo n.º 6
0
 /**
  * Utility method to wipe submitted data after it is
  * processed. This allows the form to return to the same page
  * without the form being repopulated with old data
  * @version 2012092101
  * @since 2011080401
  */
 public function clearSubmittedValues()
 {
     $this->get_element('templateText')->setValue('');
     parent::clearSubmittedValues();
 }
 /**
  * Utility method to wipe submitted data after it is
  * processed. This allows the form to return to the same page
  * without the form being repopulated with old data
  * @version 2012092301
  * @since 2012092201
  */
 public function clearSubmittedValues()
 {
     $this->get_element('groupToDelete')->setValue('');
     $this->get_element('deleteGroupAction')->setValue('preserve');
     $this->get_element('groupToMerge')->setValue('');
     parent::clearSubmittedValues();
 }