PHP Class Newscoop\Storage\Item

显示文件 Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$key string
$metadata array
$storage Newscoop\Storage

Public Methods

Method Description
__construct ( string $key, Storage $storage )
__toString ( ) : string
getChangeTime ( ) : integer Get change time
getKey ( ) : string Get key
getName ( ) : string Get name
getSize ( ) : integer Get size
getType ( ) : string Get type
isDir ( ) : boolean Test if item is dir

Private Methods

Method Description
getMetadata ( ) : object Get metadata

Method Details

__construct() public method

public __construct ( string $key, Storage $storage )
$key string
$storage Newscoop\Storage

__toString() public method

public __toString ( ) : string
return string

getChangeTime() public method

Get change time
public getChangeTime ( ) : integer
return integer

getKey() public method

Get key
public getKey ( ) : string
return string

getName() public method

Get name
public getName ( ) : string
return string

getSize() public method

Get size
public getSize ( ) : integer
return integer

getType() public method

Get type
public getType ( ) : string
return string

isDir() public method

Test if item is dir
public isDir ( ) : boolean
return boolean

Property Details

$key protected_oe property

protected string $key
return string

$metadata protected_oe property

protected array $metadata
return array

$storage protected_oe property

protected Newscoop\Storage $storage
return Newscoop\Storage