PHP Class ElggData, Elgg

Inheritance: implements Loggable, implements Iterator, implements ArrayAccess, implements Exportable
Afficher le fichier Open project: elgg/elgg Class Usage Examples

Protected Properties

Свойство Type Description
$attributes Holds attributes to save to database Blank entries for all database fields should be created by the constructor. Subclasses should add to this in their constructors. Any field not appearing in this will be viewed as metadata
$valid * ITERATOR INTERFACE

Méthodes publiques

Méthode Description
__isset ( string $name ) : boolean Test if property is set either as an attribute or metadata.
current ( ) : mixed Iterator interface
delete ( ) : boolean Delete this data.
getTimeCreated ( ) : integer Returns the UNIX epoch time that this entity was created
getURL ( ) : string Get a URL for this object
key ( ) : string Iterator interface
next ( ) : void Iterator interface
offsetExists ( integer $offset ) : integer Array access interface
offsetGet ( mixed $key ) : mixed Array access interface
offsetSet ( mixed $key, mixed $value ) : void Array access interface
offsetUnset ( mixed $key ) : void Array access interface
rewind ( ) : void Iterator interface
save ( ) : boolean Save this data to the appropriate database table.
toObject ( ) : stdClass Get a plain old object copy for public consumption
valid ( ) : boolean Iterator interface

Méthodes protégées

Méthode Description
getDatabase ( ) : Database Provides a pointer to the database object.
initializeAttributes ( ) : void Initialize the attributes array.

Method Details

__isset() public méthode

Test if property is set either as an attribute or metadata.
public __isset ( string $name ) : boolean
$name string The name of the attribute or metadata.
Résultat boolean

current() public méthode

Iterator interface
See also: Iterator::current()
public current ( ) : mixed
Résultat mixed

delete() abstract public méthode

Delete this data.
abstract public delete ( ) : boolean
Résultat boolean

getDatabase() protected méthode

Provides a pointer to the database object.
protected getDatabase ( ) : Database
Résultat Elgg\Database The database where this data is (will be) stored.

getTimeCreated() public méthode

Returns the UNIX epoch time that this entity was created
public getTimeCreated ( ) : integer
Résultat integer UNIX epoch time

getURL() abstract public méthode

Get a URL for this object
abstract public getURL ( ) : string
Résultat string

initializeAttributes() protected méthode

This is vital to distinguish between metadata and base parameters.
protected initializeAttributes ( ) : void
Résultat void

key() public méthode

Iterator interface
See also: Iterator::key()
public key ( ) : string
Résultat string

next() public méthode

Iterator interface
See also: Iterator::next()
public next ( ) : void
Résultat void

offsetExists() public méthode

Array access interface
See also: ArrayAccess::offsetExists()
public offsetExists ( integer $offset ) : integer
$offset integer Offset
Résultat integer

offsetGet() public méthode

Array access interface
See also: ArrayAccess::offsetGet()
public offsetGet ( mixed $key ) : mixed
$key mixed Name
Résultat mixed

offsetSet() public méthode

Array access interface
See also: ArrayAccess::offsetSet()
public offsetSet ( mixed $key, mixed $value ) : void
$key mixed Name
$value mixed Value
Résultat void

offsetUnset() public méthode

Array access interface
See also: ArrayAccess::offsetUnset()
public offsetUnset ( mixed $key ) : void
$key mixed Name
Résultat void

rewind() public méthode

Iterator interface
See also: Iterator::rewind()
public rewind ( ) : void
Résultat void

save() abstract public méthode

Save this data to the appropriate database table.
abstract public save ( ) : boolean
Résultat boolean

toObject() abstract public méthode

Get a plain old object copy for public consumption
abstract public toObject ( ) : stdClass
Résultat stdClass

valid() public méthode

Iterator interface
See also: Iterator::valid()
public valid ( ) : boolean
Résultat boolean

Property Details

$attributes protected_oe property

Holds attributes to save to database Blank entries for all database fields should be created by the constructor. Subclasses should add to this in their constructors. Any field not appearing in this will be viewed as metadata
protected $attributes

$valid protected_oe property

* ITERATOR INTERFACE
protected $valid