original_string: public function filemanager_js_templates() {
          $class_methods = get_class_methods($this);
          $templates = array();
          foreach ($class_methods as $method_name) {
              if (preg_match('/^fm_js_template_(.*)$/', $method_name, $matches))
              $templates[$matches[1]] = $this->$method_name();
          }
          return $templates;
      }
code: public function filemanager_js_templates() {
          $class_methods = get_class_methods($this);
          $templates = array();
          foreach ($class_methods as $method_name) {
              if (preg_match('/^fm_js_template_(.*)$/', $method_name, $matches))
              $templates[$matches[1]] = $this->$method_name();
          }
          return $templates;
      }
code_tokens: public function filemanager_js_templates ( ) { $ class_methods = get_class_methods ( $ this ) ; $ templates = array ( ) ; foreach ( $ class_methods as $ method_name ) { if ( preg_match ( '/^fm_js_template_(.*)$/' , $ method_name , $ matches ) ) $ templates [ $ matches [ 1 ] ] = $ this -> $ method_name ( ) ; } return $ templates ; }
docstring: Returns all FileManager JavaScript templates as an array.
  
  @return array
docstring_tokens: Returns all FileManager JavaScript templates as an array .