File¶
-
class
OC\Search\Result\
File
¶ - A found file
Source: lib/private/Search/Result/File.php#39 Parent: OCP\Search\Result
Properties¶
-
public static property
OC\Search\Result\File::$
type
¶ - Type name; translated in templates
Source: lib/private/Search/Result/File.php#46 Type: string Deprecated: 20.0.0
-
public static property
OC\Search\Result\File::$
path
¶ - Path to file
Source: lib/private/Search/Result/File.php#53 Type: string Deprecated: 20.0.0
-
public static property
OC\Search\Result\File::$
size
¶ - Size, in bytes
Source: lib/private/Search/Result/File.php#60 Type: int Deprecated: 20.0.0
-
public static property
OC\Search\Result\File::$
modified
¶ - Date modified, in human readable form
Source: lib/private/Search/Result/File.php#67 Type: string Deprecated: 20.0.0
-
public static property
OC\Search\Result\File::$
mime_type
¶ - File mime type
Source: lib/private/Search/Result/File.php#74 Type: string Deprecated: 20.0.0
-
public static property
OC\Search\Result\File::$
permissions
¶ - File permissions:
Source: lib/private/Search/Result/File.php#82 Type: string Deprecated: 20.0.0
-
public static property
OC\Search\Result\File::$
has_preview
¶ - Has a preview
Source: lib/private/Search/Result/File.php#90 Type: string Deprecated: 20.0.0
-
protected property
OC\Search\Result\File::$
userFolderCache
¶ Source: lib/private/Search/Result/File.php#121 Type: \OCP\Files\Folder
Deprecated: 20.0.0
Methods¶
-
public
OC\Search\Result\File::
__construct
($data)¶ - Create a new file search result
Source: Parameters: - $data (
OCP\Files\FileInfo
) file data given by provider
Deprecated: 20.0.0
- $data (
-
protected
OC\Search\Result\File::
getRelativePath
($path)¶ - converts a path relative to the users files foldereg /user/files/foo.txt -> /foo.txt
Source: Parameters: - $path (string)
Returns: string relative path
Deprecated: 20.0.0
-
protected
OC\Search\Result\File::
hasPreview
($data)¶ - Is the preview available
Source: Parameters: - $data (
OCP\Files\FileInfo
)
Returns: bool
Deprecated: 20.0.0
- $data (