Utility class for displaying google drive content that matched a given search criteria.  
 More...
|  | 
|  | get_content_nodes (string $query, callable $isaccepted) | 
|  | Generate and return an array containing all repository node (files and folders) arrays for the existing content based on the path or search query. 
 | 
|  | 
|  | get_navigation () | 
|  | Build the navigation (breadcrumb) from a given path. 
 | 
|  | 
|  | 
|  | get_contents (string $query) | 
|  | Returns all relevant contents based on the given path and/or search query. 
 | 
|  | 
|  | 
| string | $path | 
|  | The current path. 
 | 
|  | 
| rest | $service | 
|  | The rest API object. 
 | 
|  | 
| bool | $sortcontent | 
|  | Whether sorting should be applied to the fetched content. 
 | 
|  | 
Utility class for displaying google drive content that matched a given search criteria. 
This class is responsible for generating the content that is returned based on a given search query.
- Copyright
- 2021 Mihail Geshoski mihai.nosp@m.l@mo.nosp@m.odle..nosp@m.com 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ get_content_nodes()
  
  | 
        
          | repository_googledocs\googledocs_content::get_content_nodes | ( | string | $query, |  
          |  |  | callable | $isaccepted ) |  | inherited | 
 
Generate and return an array containing all repository node (files and folders) arrays for the existing content based on the path or search query. 
- Parameters
- 
  
    | string | $query | The search query |  | callable | $isaccepted | The callback function which determines whether a given file should be displayed or filtered based on the existing file restrictions |  
 
- Return values
- 
  
    | array | The array containing the repository content node arrays |  
 
 
 
◆ get_contents()
  
  | 
        
          | repository_googledocs\googledocs_content_search::get_contents | ( | string | $query | ) |  |  | protected | 
 
Returns all relevant contents based on the given path and/or search query. 
The method fetches all content (files) through an API call that matches a given search criteria.
- Parameters
- 
  
    | string | $query | The search query |  
 
- Return values
- 
  
    | array | The array containing the contents |  
 
Reimplemented from repository_googledocs\googledocs_content.
 
 
◆ get_navigation()
  
  | 
        
          | repository_googledocs\googledocs_content::get_navigation | ( |  | ) |  |  | inherited | 
 
Build the navigation (breadcrumb) from a given path. 
- Return values
- 
  
    | array | Array containing name and path of each navigation node |  
 
 
 
The documentation for this class was generated from the following file: