PHP 클래스 M1\Vars\Resource\AbstractResource

부터: 0.1.0
상속: implements ArrayAccess
파일 보기 프로젝트 열기: m1/Vars

보호된 프로퍼티들

프로퍼티 타입 설명
$content array The resource content

공개 메소드들

메소드 설명
arrayKeyExists ( mixed $key ) : boolean Port of array_key_exists to \ArrayAccess
get ( mixed $key ) : array | boolean | null Object oriented get access for the array
getContent ( ) : array Returns the content of the resource
offsetExists ( mixed $key ) : boolean Checks whether the key exists
offsetGet ( mixed $key ) : array | boolean | null Normal $example[$key] access for the array
offsetSet ( mixed $key, mixed $value ) Normal $example[$key] = 'hello' access for the array
offsetUnset ( mixed $key ) Unsets the key
set ( string $key, string $value ) Object oriented set access for the array
setContent ( array $content ) Sets the resource contents

보호된 메소드들

메소드 설명
internalUnset ( array &$array, mixed $key ) Internal unset for the key

비공개 메소드들

메소드 설명
internalGet ( array $array, mixed $key, boolean $exists = false ) : array | boolean | null The internal get function for getting values by their key
internalSet ( array &$array, mixed $key, mixed $value ) : array Object oriented set access for the array

메소드 상세

arrayKeyExists() 공개 메소드

Port of array_key_exists to \ArrayAccess
public arrayKeyExists ( mixed $key ) : boolean
$key mixed The key to check if exists
리턴 boolean Does the key exist

get() 공개 메소드

Object oriented get access for the array
public get ( mixed $key ) : array | boolean | null
$key mixed The key to get the value for
리턴 array | boolean | null The resource key value

getContent() 공개 메소드

Returns the content of the resource
public getContent ( ) : array
리턴 array The content

internalUnset() 보호된 메소드

Internal unset for the key
protected internalUnset ( array &$array, mixed $key )
$array array The array to use -- will always be based on $this->content but can be used recursively
$key mixed The key to unset

offsetExists() 공개 메소드

Checks whether the key exists
public offsetExists ( mixed $key ) : boolean
$key mixed The key to check
리턴 boolean Does the key exist

offsetGet() 공개 메소드

Normal $example[$key] access for the array
public offsetGet ( mixed $key ) : array | boolean | null
$key mixed The key to get the value for
리턴 array | boolean | null The resource key value

offsetSet() 공개 메소드

Normal $example[$key] = 'hello' access for the array
public offsetSet ( mixed $key, mixed $value )
$key mixed The key to set the value for
$value mixed The value to set

offsetUnset() 공개 메소드

Unsets the key
public offsetUnset ( mixed $key )
$key mixed The key to unset

set() 공개 메소드

Object oriented set access for the array
public set ( string $key, string $value )
$key string The key to set the value for
$value string The value to set

setContent() 공개 메소드

Sets the resource contents
public setContent ( array $content )
$content array

프로퍼티 상세

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

The resource content
protected array $content
리턴 array