PHP Class Newscoop\Storage

Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Свойство Type Description
$root string

Méthodes publiques

Méthode Description
__construct ( string $root )
copyItem ( string $src, string $dest ) : boolean Copy item
createDir ( string $key ) : void Create dir
createFile ( string $key ) : void Create file
deleteItem ( string $key ) : void Delete item
fetchItem ( string $key ) : mixed Fetch item
fetchMetadata ( string $key ) : array Fetch item metadata
getItem ( string $key ) : Newscoop\StorageItem Get storage item
getMimeType ( string $key ) : string Get mime type
getRealpath ( string $key ) : string Get realpath
isDir ( string $key ) : boolean Test if item is dir
isUsed ( string $key, object $searchEngine = null ) : mixed Test is used
isWritable ( string $key ) : boolean Test is writable
listItems ( string $key ) : mixed List items
listPaths ( $dir )
moveItem ( string $src, string $dest ) : void Move item
nrListItems ( $dir )
renameItem ( string $src, string $dest ) : void Rename item
storeItem ( string $dest, string $data ) : integer Store item

Private Methods

Méthode Description
getPath ( string $key, $isRealpath = FALSE ) : mixed Get path
replace ( string $old, string $new, object $replaceEngine = null ) : void Replace key in storage

Method Details

__construct() public méthode

public __construct ( string $root )
$root string

copyItem() public méthode

Copy item
public copyItem ( string $src, string $dest ) : boolean
$src string
$dest string
Résultat boolean

createDir() public méthode

Create dir
public createDir ( string $key ) : void
$key string
Résultat void

createFile() public méthode

Create file
public createFile ( string $key ) : void
$key string
Résultat void

deleteItem() public méthode

Delete item
public deleteItem ( string $key ) : void
$key string
Résultat void

fetchItem() public méthode

Fetch item
public fetchItem ( string $key ) : mixed
$key string
Résultat mixed

fetchMetadata() public méthode

Fetch item metadata
public fetchMetadata ( string $key ) : array
$key string
Résultat array

getItem() public méthode

Get storage item
public getItem ( string $key ) : Newscoop\StorageItem
$key string
Résultat Newscoop\StorageItem

getMimeType() public méthode

Get mime type
public getMimeType ( string $key ) : string
$key string
Résultat string

getRealpath() public méthode

Get realpath
public getRealpath ( string $key ) : string
$key string
Résultat string

isDir() public méthode

Test if item is dir
public isDir ( string $key ) : boolean
$key string
Résultat boolean

isUsed() public méthode

Test is used
public isUsed ( string $key, object $searchEngine = null ) : mixed
$key string
$searchEngine object
Résultat mixed

isWritable() public méthode

Test is writable
public isWritable ( string $key ) : boolean
$key string
Résultat boolean

listItems() public méthode

List items
public listItems ( string $key ) : mixed
$key string
Résultat mixed

listPaths() public méthode

public listPaths ( $dir )

moveItem() public méthode

Move item
public moveItem ( string $src, string $dest ) : void
$src string
$dest string
Résultat void

nrListItems() public méthode

public nrListItems ( $dir )

renameItem() public méthode

Rename item
public renameItem ( string $src, string $dest ) : void
$src string
$dest string
Résultat void

storeItem() public méthode

Store item
public storeItem ( string $dest, string $data ) : integer
$dest string
$data string
Résultat integer

Property Details

$root protected_oe property

protected string $root
Résultat string