original_string: function is_cancelled(){
          $mform =& $this->_form;
          if ($mform->isSubmitted()){
              foreach ($mform->_cancelButtons as $cancelbutton){
                  if (optional_param($cancelbutton, 0, PARAM_RAW)){
                      return true;
                  }
              }
          }
          return false;
      }
code: function is_cancelled(){
          $mform =& $this->_form;
          if ($mform->isSubmitted()){
              foreach ($mform->_cancelButtons as $cancelbutton){
                  if (optional_param($cancelbutton, 0, PARAM_RAW)){
                      return true;
                  }
              }
          }
          return false;
      }
code_tokens: function is_cancelled ( ) { $ mform = & $ this -> _form ; if ( $ mform -> isSubmitted ( ) ) { foreach ( $ mform -> _cancelButtons as $ cancelbutton ) { if ( optional_param ( $ cancelbutton , 0 , PARAM_RAW ) ) { return true ; } } } return false ; }
docstring: Return true if a cancel button has been pressed resulting in the form being submitted.
  
  @return bool true if a cancel button has been pressed
docstring_tokens: Return true if a cancel button has been pressed resulting in the form being submitted .