PHP 클래스 org\bovigo\vfs\vfsStreamAbstractContent

상속: implements org\bovigo\vfs\vfsStreamContent
파일 보기 프로젝트 열기: mikey179/vfsstream 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$group owner group of the file
$lastAccessed timestamp of last access
$lastAttributeModified timestamp of last attribute modification
$lastModified timestamp of last modification
$name name of the container
$permissions permissions for content
$type type of the container
$user owner of the file

공개 메소드들

메소드 설명
__construct ( string $name, integer $permissions = null ) constructor
appliesTo ( string $name ) : boolean checks whether the container can be applied to given name
at ( org\bovigo\vfs\vfsStreamContainer $container ) adds content to given container
chgrp ( integer $group ) change owner group of file to given group
chmod ( integer $permissions ) change file mode to given permissions
chown ( integer $user ) change owner of file to given user
fileatime ( ) : integer returns the last access time of the stream content
filectime ( ) : integer returns the last attribute modification time of the stream content
filemtime ( ) : integer returns the last modification time of the stream content
getGroup ( ) : integer returns owner group of file
getName ( ) : string returns the file name of the content
getPermissions ( ) : integer returns permissions
getType ( ) : integer returns the type of the container
getUser ( ) : integer returns owner of file
isExecutable ( integer $user, integer $group ) : boolean checks whether content is executable
isOwnedByGroup ( integer $group ) : boolean checks whether file is owned by group
isOwnedByUser ( integer $user ) : boolean checks whether file is owned by given user
isReadable ( integer $user, integer $group ) : boolean checks whether content is readable
isWritable ( integer $user, integer $group ) : boolean checks whether content is writable
lastAccessed ( integer $fileatime ) sets last access time of the stream content
lastAttributeModified ( integer $filectime ) sets the last attribute modification time of the stream content
lastModified ( integer $filemtime ) sets the last modification time of the stream content
path ( ) : string returns path to this content
rename ( string $newName ) renames the content
setParentPath ( string $parentPath ) sets parent path
url ( ) : string returns complete vfsStream url for this content

보호된 메소드들

메소드 설명
getDefaultPermissions ( ) : integer returns default permissions for concrete implementation

메소드 상세

__construct() 공개 메소드

constructor
public __construct ( string $name, integer $permissions = null )
$name string
$permissions integer optional

appliesTo() 공개 메소드

checks whether the container can be applied to given name
public appliesTo ( string $name ) : boolean
$name string
리턴 boolean

at() 공개 메소드

adds content to given container
public at ( org\bovigo\vfs\vfsStreamContainer $container )
$container org\bovigo\vfs\vfsStreamContainer

chgrp() 공개 메소드

change owner group of file to given group
public chgrp ( integer $group )
$group integer

chmod() 공개 메소드

change file mode to given permissions
public chmod ( integer $permissions )
$permissions integer

chown() 공개 메소드

change owner of file to given user
public chown ( integer $user )
$user integer

fileatime() 공개 메소드

returns the last access time of the stream content
부터: 0.9
public fileatime ( ) : integer
리턴 integer

filectime() 공개 메소드

returns the last attribute modification time of the stream content
부터: 0.9
public filectime ( ) : integer
리턴 integer

filemtime() 공개 메소드

returns the last modification time of the stream content
public filemtime ( ) : integer
리턴 integer

getDefaultPermissions() 추상적인 보호된 메소드

returns default permissions for concrete implementation
부터: 0.8.0
abstract protected getDefaultPermissions ( ) : integer
리턴 integer

getGroup() 공개 메소드

returns owner group of file
public getGroup ( ) : integer
리턴 integer

getName() 공개 메소드

returns the file name of the content
public getName ( ) : string
리턴 string

getPermissions() 공개 메소드

returns permissions
public getPermissions ( ) : integer
리턴 integer

getType() 공개 메소드

returns the type of the container
public getType ( ) : integer
리턴 integer

getUser() 공개 메소드

returns owner of file
public getUser ( ) : integer
리턴 integer

isExecutable() 공개 메소드

checks whether content is executable
public isExecutable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
리턴 boolean

isOwnedByGroup() 공개 메소드

checks whether file is owned by group
public isOwnedByGroup ( integer $group ) : boolean
$group integer
리턴 boolean

isOwnedByUser() 공개 메소드

checks whether file is owned by given user
public isOwnedByUser ( integer $user ) : boolean
$user integer
리턴 boolean

isReadable() 공개 메소드

checks whether content is readable
public isReadable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
리턴 boolean

isWritable() 공개 메소드

checks whether content is writable
public isWritable ( integer $user, integer $group ) : boolean
$user integer id of user to check for
$group integer id of group to check for
리턴 boolean

lastAccessed() 공개 메소드

sets last access time of the stream content
부터: 0.9
public lastAccessed ( integer $fileatime )
$fileatime integer

lastAttributeModified() 공개 메소드

sets the last attribute modification time of the stream content
부터: 0.9
public lastAttributeModified ( integer $filectime )
$filectime integer

lastModified() 공개 메소드

sets the last modification time of the stream content
public lastModified ( integer $filemtime )
$filemtime integer

path() 공개 메소드

returns path to this content
부터: 1.2.0
public path ( ) : string
리턴 string

rename() 공개 메소드

renames the content
public rename ( string $newName )
$newName string

setParentPath() 공개 메소드

sets parent path
부터: 1.2.0
public setParentPath ( string $parentPath )
$parentPath string

url() 공개 메소드

returns complete vfsStream url for this content
부터: 1.2.0
public url ( ) : string
리턴 string

프로퍼티 상세

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

owner group of the file
protected $group

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

timestamp of last access
protected $lastAccessed

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

timestamp of last attribute modification
protected $lastAttributeModified

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

timestamp of last modification
protected $lastModified

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

name of the container
protected $name

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

permissions for content
protected $permissions

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

type of the container
protected $type

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

owner of the file
protected $user