PHP Class OpenGraph\Opengraph

Inheritance: implements Iterato\Iterator, implements Serializabl\Serializable, implements Countabl\Countable
Afficher le fichier Open project: euskadi31/opengraph

Protected Properties

Свойство Type Description
$_position integer
$storage ArrayObject

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
_normalizeContent ( String $property, Mixed $content ) : Mixed Normalize content

Method Details

__construct() public méthode

public __construct ( )

_normalizeContent() protected méthode

Normalize content
protected _normalizeContent ( String $property, Mixed $content ) : Mixed
$property String
$content Mixed
Résultat Mixed

addMeta() public méthode

Add meta
public addMeta ( String $property, Mixed $content, String $position ) : Opengraph
$property String
$content Mixed
$position String
Résultat Opengraph

clear() public méthode

Clear elements of storage
public clear ( ) : void
Résultat void

count() public méthode

Count elements of an object
public count ( ) : integer
Résultat integer

current() public méthode

Return the current element
public current ( ) : mixed
Résultat mixed

getArrayCopy() public méthode

Get array
public getArrayCopy ( ) : Array
Résultat Array

getMeta() public méthode

Get meta by property name
public getMeta ( String $property ) : Meta
$property String
Résultat Meta

getMetas() public méthode

public getMetas ( ) : ArrayObject
Résultat ArrayObject

hasMeta() public méthode

Check is meta exists
public hasMeta ( String $property ) : boolean
$property String
Résultat boolean

key() public méthode

Return the key of the current element
public key ( ) : scalar
Résultat scalar

next() public méthode

Move forward to next element
public next ( ) : void
Résultat void

removeMeta() public méthode

Remove meta
public removeMeta ( String $property ) : boolean
$property String
Résultat boolean

rewind() public méthode

Rewind the Iterator to the first element
public rewind ( ) : void
Résultat void

serialize() public méthode

String representation of object
public serialize ( ) : string
Résultat string

unserialize() public méthode

Constructs the object form string
public unserialize ( string $data ) : void
$data string The string representation of the object.
Résultat void

valid() public méthode

Checks if current position is valid
public valid ( ) : boolean
Résultat boolean

Property Details

$_position protected_oe property

protected int $_position
Résultat integer

$storage protected_oe static_oe property

protected static ArrayObject $storage
Résultat ArrayObject