PHP 클래스 Newscoop\Storage

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$root string

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
getPath ( string $key, $isRealpath = FALSE ) : mixed Get path
replace ( string $old, string $new, object $replaceEngine = null ) : void Replace key in storage

메소드 상세

__construct() 공개 메소드

public __construct ( string $root )
$root string

copyItem() 공개 메소드

Copy item
public copyItem ( string $src, string $dest ) : boolean
$src string
$dest string
리턴 boolean

createDir() 공개 메소드

Create dir
public createDir ( string $key ) : void
$key string
리턴 void

createFile() 공개 메소드

Create file
public createFile ( string $key ) : void
$key string
리턴 void

deleteItem() 공개 메소드

Delete item
public deleteItem ( string $key ) : void
$key string
리턴 void

fetchItem() 공개 메소드

Fetch item
public fetchItem ( string $key ) : mixed
$key string
리턴 mixed

fetchMetadata() 공개 메소드

Fetch item metadata
public fetchMetadata ( string $key ) : array
$key string
리턴 array

getItem() 공개 메소드

Get storage item
public getItem ( string $key ) : Newscoop\StorageItem
$key string
리턴 Newscoop\StorageItem

getMimeType() 공개 메소드

Get mime type
public getMimeType ( string $key ) : string
$key string
리턴 string

getRealpath() 공개 메소드

Get realpath
public getRealpath ( string $key ) : string
$key string
리턴 string

isDir() 공개 메소드

Test if item is dir
public isDir ( string $key ) : boolean
$key string
리턴 boolean

isUsed() 공개 메소드

Test is used
public isUsed ( string $key, object $searchEngine = null ) : mixed
$key string
$searchEngine object
리턴 mixed

isWritable() 공개 메소드

Test is writable
public isWritable ( string $key ) : boolean
$key string
리턴 boolean

listItems() 공개 메소드

List items
public listItems ( string $key ) : mixed
$key string
리턴 mixed

listPaths() 공개 메소드

public listPaths ( $dir )

moveItem() 공개 메소드

Move item
public moveItem ( string $src, string $dest ) : void
$src string
$dest string
리턴 void

nrListItems() 공개 메소드

public nrListItems ( $dir )

renameItem() 공개 메소드

Rename item
public renameItem ( string $src, string $dest ) : void
$src string
$dest string
리턴 void

storeItem() 공개 메소드

Store item
public storeItem ( string $dest, string $data ) : integer
$dest string
$data string
리턴 integer

프로퍼티 상세

$root 보호되어 있는 프로퍼티

protected string $root
리턴 string