original_string: public function save_controller() {
          if ($this->progress >= self::PROGRESS_SAVED) {
              throw new base_ui_exception('backupuialreadysaved');
          }
          $this->progress = self::PROGRESS_SAVED;
          // First enforce dependencies.
          $this->enforce_dependencies();
          // Process UI event after to check any changes are valid.
          $this->controller->process_ui_event();
          // Save the controller.
          $this->controller->save_controller();
          return true;
      }
code: public function save_controller() {
          if ($this->progress >= self::PROGRESS_SAVED) {
              throw new base_ui_exception('backupuialreadysaved');
          }
          $this->progress = self::PROGRESS_SAVED;
          // First enforce dependencies.
          $this->enforce_dependencies();
          // Process UI event after to check any changes are valid.
          $this->controller->process_ui_event();
          // Save the controller.
          $this->controller->save_controller();
          return true;
      }
code_tokens: public function save_controller ( ) { if ( $ this -> progress >= self :: PROGRESS_SAVED ) { throw new base_ui_exception ( 'backupuialreadysaved' ) ; } $ this -> progress = self :: PROGRESS_SAVED ; // First enforce dependencies. $ this -> enforce_dependencies ( ) ; // Process UI event after to check any changes are valid. $ this -> controller -> process_ui_event ( ) ; // Save the controller. $ this -> controller -> save_controller ( ) ; return true ; }
docstring: Saves the backup controller.
  
  Once this has been called nothing else can be changed in the controller.
  
  @throws base_ui_exception
  @return bool
docstring_tokens: Saves the backup controller .