PHP 클래스 OpenGraph\Opengraph

상속: implements Iterato\Iterator, implements Serializabl\Serializable, implements Countabl\Countable
파일 보기 프로젝트 열기: euskadi31/opengraph

보호된 프로퍼티들

프로퍼티 타입 설명
$_position integer
$storage ArrayObject

공개 메소드들

메소드 설명
__construct ( )
addMeta ( String $property, Mixed $content, String $position ) : Opengraph Add meta
clear ( ) : void Clear elements of storage
count ( ) : integer Count elements of an object
current ( ) : mixed Return the current element
getArrayCopy ( ) : Array Get array
getMeta ( String $property ) : Meta Get meta by property name
getMetas ( ) : ArrayObject
hasMeta ( String $property ) : boolean Check is meta exists
key ( ) : scalar Return the key of the current element
next ( ) : void Move forward to next element
removeMeta ( String $property ) : boolean Remove meta
rewind ( ) : void Rewind the Iterator to the first element
serialize ( ) : string String representation of object
unserialize ( string $data ) : void Constructs the object form string
valid ( ) : boolean Checks if current position is valid

보호된 메소드들

메소드 설명
_normalizeContent ( String $property, Mixed $content ) : Mixed Normalize content

메소드 상세

__construct() 공개 메소드

public __construct ( )

_normalizeContent() 보호된 메소드

Normalize content
protected _normalizeContent ( String $property, Mixed $content ) : Mixed
$property String
$content Mixed
리턴 Mixed

addMeta() 공개 메소드

Add meta
public addMeta ( String $property, Mixed $content, String $position ) : Opengraph
$property String
$content Mixed
$position String
리턴 Opengraph

clear() 공개 메소드

Clear elements of storage
public clear ( ) : void
리턴 void

count() 공개 메소드

Count elements of an object
public count ( ) : integer
리턴 integer

current() 공개 메소드

Return the current element
public current ( ) : mixed
리턴 mixed

getArrayCopy() 공개 메소드

Get array
public getArrayCopy ( ) : Array
리턴 Array

getMeta() 공개 메소드

Get meta by property name
public getMeta ( String $property ) : Meta
$property String
리턴 Meta

getMetas() 공개 메소드

public getMetas ( ) : ArrayObject
리턴 ArrayObject

hasMeta() 공개 메소드

Check is meta exists
public hasMeta ( String $property ) : boolean
$property String
리턴 boolean

key() 공개 메소드

Return the key of the current element
public key ( ) : scalar
리턴 scalar

next() 공개 메소드

Move forward to next element
public next ( ) : void
리턴 void

removeMeta() 공개 메소드

Remove meta
public removeMeta ( String $property ) : boolean
$property String
리턴 boolean

rewind() 공개 메소드

Rewind the Iterator to the first element
public rewind ( ) : void
리턴 void

serialize() 공개 메소드

String representation of object
public serialize ( ) : string
리턴 string

unserialize() 공개 메소드

Constructs the object form string
public unserialize ( string $data ) : void
$data string The string representation of the object.
리턴 void

valid() 공개 메소드

Checks if current position is valid
public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

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

protected int $_position
리턴 integer

$storage 보호되어 있는 정적으로 프로퍼티

protected static ArrayObject $storage
리턴 ArrayObject