PHP Класс OpenGraph\Opengraph

Наследование: implements Iterato\Iterator, implements Serializabl\Serializable, implements Countabl\Countable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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