Provides access to records in wurfl.deviceCache
Creating a new record:
$oWurflDeviceCache = new wurflDeviceCache(); $oWurflDeviceCache->setDeviceID($inDeviceID); $oWurflDeviceCache->setCreateDate($inCreateDate); $oWurflDeviceCache->setUpdateDate($inUpdateDate); $oWurflDeviceCache->setData($inData); $oWurflDeviceCache->save();
Accessing a record by primary key on constructor:
$oWurflDeviceCache = new wurflDeviceCache($inDeviceID);
Access by manually calling load:
$oWurflDeviceCache = new wurflDeviceCache(); $oWurflDeviceCache->setDeviceID($inDeviceID); $oWurflDeviceCache->load();
Accessing a record by instance:
$oWurflDeviceCache = wurflDeviceCache::getInstance($inDeviceID);
If there are other unique keys, separate methods should exist for each key.
public __construct([$inDeviceID = null])
Returns a new instance of wurflDeviceCache
public static factory([$inCreateDate = null], [$inUpdateDate = null], [$inData = null])
Creates a new wurflDeviceCache containing non-unique properties
public static getInstance($inDeviceID)
Get an instance of wurflDeviceCache by primary key
public static getInstanceByDeviceID($inDeviceID)
Get instance of wurflDeviceCache by unique key (deviceID)
public static listOfObjects([$inOffset = null], [$inLimit = 30])
Returns an array of objects of wurflDeviceCache
public load()
Loads a record from the database based on the primary key or first unique index
public loadFromArray($inArray)
Loads a record by array
public save()
Saves object to the table
public delete()
Deletes the object from the table
public reset()
Resets object properties to defaults
public toString([$newLine = ' '])
Returns object as a string with each property separated by $newLine
public toXml([$newLine = ' '])
Returns object as XML with each property separated by $newLine
public toArray()
Returns properties of object as an array
public isValid([$inMessage = ''])
Returns true if object is valid
protected checkDeviceID([$inMessage = ''])
Checks that $_DeviceID has a valid value
protected checkCreateDate([$inMessage = ''])
Checks that $_CreateDate has a valid value
protected checkUpdateDate([$inMessage = ''])
Checks that $_UpdateDate has a valid value
public isModified()
Returns true if object has been modified
public setModified([$inStatus = true])
Set the status of the object if it has been changed
public getPrimaryKey()
Returns the primary key value
public getDeviceID()
Return value of $_DeviceID
public setDeviceID($inDeviceID)
Set $_DeviceID to DeviceID
public getCreateDate()
Return value of $_CreateDate
public setCreateDate($inCreateDate)
Set $_CreateDate to CreateDate
public getUpdateDate()
Return value of $_UpdateDate
public setUpdateDate($inUpdateDate)
Set $_UpdateDate to UpdateDate
public getData()
Return value of $_Data
public setData($inData)
Set $_Data to Data
Posted by: Scorpio Documentor (Writer), in Wurfl on 19 Nov 2009 @ 20:39
Tags: systemdaointerface, systemdaovalidatorinterface, wurfl, wurfldevicecache,
This
work is licenced under a
Creative Commons Licence.