Method | 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 createItem ( array $detail = [] ) | ||
$detail | array |
public getFileContent ( ) : string | ||
return | string |
public getLastModified ( ) : string | ||
return | string |
public getRealPath ( ) : string | ||
return | string |
public saveFileContent ( $content ) : integer | ||
$content | ||
return | integer |