print wurflDevice

Provides access to records in wurfl.devices

Creating a new record:

$oWurflDevice = new wurflDevice();
$oWurflDevice->setDeviceID($inDeviceID);
$oWurflDevice->setManufacturerID($inManufacturerID);
$oWurflDevice->setModelName($inModelName);
$oWurflDevice->setUserAgent($inUserAgent);
$oWurflDevice->setWurflID($inWurflID);
$oWurflDevice->setFallBackID($inFallBackID);
$oWurflDevice->setRootDevice($inRootDevice);
$oWurflDevice->save();

Accessing a record by primary key on constructor:

$oWurflDevice = new wurflDevice($inDeviceID);

Access by manually calling load:

$oWurflDevice = new wurflDevice();
$oWurflDevice->setDeviceID($inDeviceID);
$oWurflDevice->load();

Accessing a record by instance:

$oWurflDevice = wurflDevice::getInstance($inDeviceID);

If there are other unique keys, separate methods should exist for each key.


Methods

public __construct([$inDeviceID = null])

Returns a new instance of wurflDevice

public static factory([$inManufacturerID = null], [$inModelName = null], [$inUserAgent = null], [$inWurflID = null], [$inFallBackID = null], [$inRootDevice = null])

Creates a new wurflDevice containing non-unique properties

public static getInstance($inDeviceID)

Get an instance of wurflDevice by primary key

public static listOfObjects([$inOffset = null], [$inLimit = 30])

Returns an array of objects of wurflDevice

public load()

Loads a record from the database systemd 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([$message = ''])

Returns true if object is valid

protected checkDeviceID([$inMessage = ''])

Checks that $_DeviceID has a valid value

protected checkUserAgent([$inMessage = ''])

Checks that $_UserAgent has a valid value

protected checkWurflID([$inMessage = ''])

Checks that $_WurflID has a valid value

protected checkFallBackID([$inMessage = ''])

Checks that $_FallBackID has a valid value

protected checkRootDevice([$inMessage = ''])

Checks that $_RootDevice has a valid value

public isModified()

Returns true if object has been modified

public setModified([$status = 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 getManufacturerID()

Return value of $_ManufacturerID

public getManufacturer()

Returns the wurflManufacturer object

public setManufacturerID($inManufacturerID)

Set $_ManufacturerID to ManufacturerID

public getModelName()

Return value of $_ModelName

public setModelName($inModelName)

Set $_ModelName to ModelName

public getUserAgent()

Return value of $_UserAgent

public setUserAgent($inUserAgent)

Set $_UserAgent to UserAgent

public getWurflID()

Return value of $_WurflID

public setWurflID($inWurflID)

Set $_WurflID to WurflID

public getFallBackID()

Return value of $_FallBackID

public setFallBackID($inFallBackID)

Set $_FallBackID to FallBackID

public getRootDevice()

Return value of $_RootDevice

public setRootDevice($inRootDevice)

Set $_RootDevice to RootDevice

public getCreateDate()

Returns CreateDate

public setCreateDate($inCreateDate)

Set CreateDate property

public getUpdateDate()

Returns UpdateDate

public setUpdateDate($inUpdateDate)

Set UpdateDate property

public getCapabilities()

Returns Capabilities

public setCapabilities($inCapabilities)

Set Capabilities property

public getCapability($inCapability)

Returns the capability value for $inCapability

public getDevicePath()

Returns the array of devices

public setDevicePath($path)

Sets an array of deviceIDs to use as the device path, this function should not be used in normal operation Path is an array of deviceIDs from generic to specific

protected buildDevicePath()

Builds the device path for the current device, always returns root -> selected

<  1  >