PHP Class Jarves\Filesystem\Adapter\Local

Inheritance: extends AbstractAdapter
Mostra file Open project: jarves/jarves

Public Properties

Property Type Description
$changeMode boolean Defines whether we chmod the edited file or not.
$dirMode integer Default permission modes for directories.
$fileMode integer Default permission modes for files.
$groupName string Default group owner name.

Public Methods

Method Description
__construct ( $mountPoint, $params = null ) {@inheritDoc}
copy ( $pathSource, $pathTarget ) {@inheritDoc}
copyr ( $source, $dest, $overwrite = true )
createFile ( $path, $content = null ) {@inheritDoc}
delDir ( $dirName )
delete ( $path ) {@inheritDoc}
filemtime ( $path ) {@inheritDoc}
getCount ( $folderPath ) {@inheritDoc}
getFile ( $path ) {@inheritDoc}
getFiles ( $path ) {@inheritDoc}
getFullPath ( $path )
getPublicAccess ( $path ) {@inheritDoc}
getPublicUrl ( $path ) {@inheritDoc}
getRoot ( ) : string Sets current root folder for this local layer.
getSize ( $path ) {@inheritDoc}
handle ( string $path, string $mode = 'r+' ) : resource
has ( $path ) {@inheritDoc}
hash ( $path ) {@inheritDoc}
loadConfig ( ) Loads and converts the configuration to appropriate modes.
mkdir ( $path ) {@inheritDoc}
move ( $pathSource, $pathTarget ) {@inheritDoc}
read ( $path ) {@inheritDoc}
search ( $path, $pattern, $depth = 1, $currentDepth = 1 ) {@inheritDoc}
setParams ( $params )
setPermission ( string $path ) : boolean Sets file permissions on file/folder recursively.
setPublicAccess ( $path, $access = false ) {@inheritDoc}
setRoot ( string $root ) Gets current root folder for this local layer.
write ( $path, $content = '' ) {@inheritDoc}

Private Methods

Method Description
_mkdir ( string $path ) : boolean

Method Details

__construct() public method

{@inheritDoc}
public __construct ( $mountPoint, $params = null )

copy() public method

{@inheritDoc}
public copy ( $pathSource, $pathTarget )

copyr() public method

public copyr ( $source, $dest, $overwrite = true )

createFile() public method

{@inheritDoc}
public createFile ( $path, $content = null )

delDir() public method

public delDir ( $dirName )

delete() public method

{@inheritDoc}
public delete ( $path )

filemtime() public method

{@inheritDoc}
public filemtime ( $path )

getCount() public method

{@inheritDoc}
public getCount ( $folderPath )

getFile() public method

{@inheritDoc}
public getFile ( $path )

getFiles() public method

{@inheritDoc}
public getFiles ( $path )

getFullPath() public method

public getFullPath ( $path )

getPublicAccess() public method

{@inheritDoc}
public getPublicAccess ( $path )

getPublicUrl() public method

{@inheritDoc}
public getPublicUrl ( $path )

getRoot() public method

Sets current root folder for this local layer.
public getRoot ( ) : string
return string

getSize() public method

{@inheritDoc}
public getSize ( $path )

handle() public method

public handle ( string $path, string $mode = 'r+' ) : resource
$path string
$mode string
return resource

has() public method

{@inheritDoc}
public has ( $path )

hash() public method

{@inheritDoc}
public hash ( $path )

loadConfig() public method

Loads and converts the configuration to appropriate modes.
public loadConfig ( )

mkdir() public method

{@inheritDoc}
public mkdir ( $path )

move() public method

{@inheritDoc}
public move ( $pathSource, $pathTarget )

read() public method

{@inheritDoc}
public read ( $path )

setParams() public method

public setParams ( $params )

setPermission() public method

Sets file permissions on file/folder recursively.
public setPermission ( string $path ) : boolean
$path string
return boolean

setPublicAccess() public method

{@inheritDoc}
public setPublicAccess ( $path, $access = false )

setRoot() public method

Gets current root folder for this local layer.
public setRoot ( string $root )
$root string

write() public method

{@inheritDoc}
public write ( $path, $content = '' )

Property Details

$changeMode public_oe property

Defines whether we chmod the edited file or not.
public bool $changeMode
return boolean

$dirMode public_oe property

Default permission modes for directories.
public int $dirMode
return integer

$fileMode public_oe property

Default permission modes for files.
public int $fileMode
return integer

$groupName public_oe property

Default group owner name.
public string $groupName
return string