original_string: public function save_changes() {
          // Set the permissions.
          foreach ($this->changed as $changedcap) {
              assign_capability($changedcap, $this->permissions[$changedcap],
                  $this->roleid, $this->context->id, true);
          }
      }
code: public function save_changes() {
          // Set the permissions.
          foreach ($this->changed as $changedcap) {
              assign_capability($changedcap, $this->permissions[$changedcap],
                  $this->roleid, $this->context->id, true);
          }
      }
code_tokens: public function save_changes ( ) { // Set the permissions. foreach ( $ this -> changed as $ changedcap ) { assign_capability ( $ changedcap , $ this -> permissions [ $ changedcap ] , $ this -> roleid , $ this -> context -> id , true ) ; } }
docstring: Save the new values of any permissions that have been changed.
docstring_tokens: Save the new values of any permissions that have been changed .