print wurflManufacturer

Provides access to records in wurfl.manufacturers

Creating a new record:

$oWurflManufacturer = new wurflManufacturer();
$oWurflManufacturer->setManufacturerID($inManufacturerID);
$oWurflManufacturer->setDescription($inDescription);
$oWurflManufacturer->setActive($inActive);
$oWurflManufacturer->save();

Accessing a record by primary key on constructor:

$oWurflManufacturer = new wurflManufacturer($inManufacturerID);

Access by manually calling load:

$oWurflManufacturer = new wurflManufacturer();
$oWurflManufacturer->setManufacturerID($inManufacturerID);
$oWurflManufacturer->load();

Accessing a record by instance:

$oWurflManufacturer = wurflManufacturer::getInstance($inManufacturerID);

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


Methods

public __construct([$inManufacturerID = null])

Returns a new instance of wurflManufacturer

public static factory([$inDescription = null], [$inActive = null])

Creates a new wurflManufacturer containing non-unique properties

public static getInstance($inManufacturerID)

Get an instance of wurflManufacturer by primary key

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

Returns an array of objects of wurflManufacturer, if $inActive is true, gets only active manufacturers

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([$message = ''])

Returns true if object is valid

protected checkManufacturerID([$inMessage = ''])

Checks that $_ManufacturerID has a valid value

protected checkDescription([$inMessage = ''])

Checks that $_Description has a valid value

protected checkActive([$inMessage = ''])

Checks that $_Active 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 getManufacturerID()

Return value of $_ManufacturerID

public setManufacturerID($inManufacturerID)

Set $_ManufacturerID to ManufacturerID

public getDescription()

Return value of $_Description

public setDescription($inDescription)

Set $_Description to Description

public getActive()

Return value of $_Active

public setActive($inActive)

Set $_Active to Active

<  1  >