Méthode | Description | |
---|---|---|
__construct ( string $path = '' ) | Path constructor. | |
createItem ( array $detail = [] ) | Creates the path based upon the type of it | |
getDetail ( ) : array | Gets the detail about the currently set path | |
getFileContent ( ) : string | If the set path is file, it returns the contents of the file | |
getGroup ( ) : array | Returns the detail of the path group | |
getLastModified ( ) : string | Gets the last date when the path was modified | |
getMode ( ) : string | Returns the permission that the path has | |
getName ( ) : mixed | Gets the name of the currently set path | |
getOwner ( ) : array | Returns the detail of the path owner | |
getPath ( ) : string | Gets the path which is being operated | |
getRealPath ( ) : string | Gets the real path for the path | |
getSize ( ) : integer | Returns the size of the path in bytes | |
getType ( ) : string | Gets the type of path i.e. whether it is file, link or dir | |
saveFileContent ( $content ) : integer | Writes content to the specified path | |
setPath ( $path ) | Sets the path to operate on | |
validate ( ) : boolean | Validates whether the path exists or not |
public __construct ( string $path = '' ) | ||
$path | string |
public createItem ( array $detail = [] ) | ||
$detail | array |
public getFileContent ( ) : string | ||
Résultat | string |
public getLastModified ( ) : string | ||
Résultat | string |
public getRealPath ( ) : string | ||
Résultat | string |
public saveFileContent ( $content ) : integer | ||
$content | ||
Résultat | integer |