Property | 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 |
Method | 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 |
Method | Description | |
---|---|---|
getDatabase ( ) : |
Provides a pointer to the database object. | |
initializeAttributes ( ) : void | Initialize the attributes array. |
protected getDatabase ( ) : |
||
return | The database where this data is (will be) stored. |
public getTimeCreated ( ) : integer | ||
return | integer | UNIX epoch time |
protected initializeAttributes ( ) : void | ||
return | void |
public offsetExists ( integer $offset ) : integer | ||
$offset | integer | Offset |
return | integer |
public offsetUnset ( mixed $key ) : void | ||
$key | mixed | Name |
return | void |
abstract public toObject ( ) : stdClass | ||
return | stdClass |
protected $attributes |