Methods summary
protected
|
#
initializeAttributes( )
Initialize the attributes array.
Initialize the attributes array.
This is vital to distinguish between metadata and base parameters.
|
public
mixed
|
#
__get( string $name )
Return an attribute or a piece of metadata.
Return an attribute or a piece of metadata.
Parameters
Returns
mixed
|
public
mixed
|
#
__set( string $name, mixed $value )
Set an attribute or a piece of metadata.
Set an attribute or a piece of metadata.
Parameters
- $name
string $name Name
- $value
mixed $value Value
Returns
mixed
|
public
boolean
|
#
__isset( string $name )
Test if property is set either as an attribute or metadata.
Test if property is set either as an attribute or metadata.
Parameters
- $name
string $name The name of the attribute or metadata.
Returns
boolean
Tip
Use isset($entity->property)
|
abstract protected
mixed
|
#
get( string $name )
Fetch the specified attribute
Fetch the specified attribute
Parameters
- $name
string $name The attribute to fetch
Returns
mixed The attribute, if it exists. Otherwise, null.
|
abstract protected
boolean
|
#
set( string $name, mixed $value )
Set the specified attribute
Set the specified attribute
Parameters
- $name
string $name The attribute to set
- $value
mixed $value The value to set it to
Returns
boolean The success of your set function?
|
abstract public
string
|
#
getURL( )
Get a URL for this object
Get a URL for this object
Returns
string
|
abstract public
boolean
|
#
save( )
Save this data to the appropriate database table.
Save this data to the appropriate database table.
Returns
boolean
|
abstract public
boolean
|
#
delete( )
Delete this data.
Returns
boolean
|
public
integer
|
#
getTimeCreated( )
Returns the UNIX epoch time that this entity was created
Returns the UNIX epoch time that this entity was created
Returns
integer UNIX epoch time
|
public
string
|
#
getClassName( )
Return the class name of the object.
Return the class name of the object.
Returns
string
Implementation of
|
public
|
#
rewind( )
Iterator interface
See
Implementation of
|
public
mixed
|
#
current( )
Iterator interface
Returns
mixed
See
Implementation of
|
public
string
|
#
key( )
Iterator interface
Returns
string
See
Implementation of
|
public
|
#
next( )
Iterator interface
See
Implementation of
|
public
boolean
|
#
valid( )
Iterator interface
Returns
boolean
See
Implementation of
|
public
|
#
offsetSet( mixed $key, mixed $value )
Array access interface
Parameters
- $key
mixed $key Name
- $value
mixed $value Value
See
Implementation of
|
public
mixed
|
#
offsetGet( mixed $key )
Array access interface
Parameters
Returns
mixed
See
Implementation of
|
public
|
#
offsetUnset( mixed $key )
Array access interface
Parameters
See
Implementation of
|
public
integer
|
#
offsetExists( integer $offset )
Array access interface
Parameters
- $offset
integer $offset Offset
Returns
integer
See
Implementation of
|