original_string: public function get_file($file, $title = '') {
          global $CFG;
          $file = ltrim($file, '/');
          if (!$this->is_in_repository($file)) {
              throw new repository_exception('Invalid file requested.');
          }
          $file = $this->get_rootpath() . $file;
  
          // This is a hack to prevent move_to_file deleting files in local repository.
          $CFG->repository_no_delete = true;
          return array('path' => $file, 'url' => '');
      }
code: public function get_file($file, $title = '') {
          global $CFG;
          $file = ltrim($file, '/');
          if (!$this->is_in_repository($file)) {
              throw new repository_exception('Invalid file requested.');
          }
          $file = $this->get_rootpath() . $file;
  
          // This is a hack to prevent move_to_file deleting files in local repository.
          $CFG->repository_no_delete = true;
          return array('path' => $file, 'url' => '');
      }
code_tokens: public function get_file ( $ file , $ title = '' ) { global $ CFG ; $ file = ltrim ( $ file , '/' ) ; if ( ! $ this -> is_in_repository ( $ file ) ) { throw new repository_exception ( 'Invalid file requested.' ) ; } $ file = $ this -> get_rootpath ( ) . $ file ; // This is a hack to prevent move_to_file deleting files in local repository. $ CFG -> repository_no_delete = true ; return array ( 'path' => $ file , 'url' => '' ) ; }
docstring: Return file path.
  @return array
docstring_tokens: Return file path .