getObject()
Overview
public any function getObject(
required string objectName
)
Returns an 'auto service' object instance of the given Preside Object.
Arguments
Name | Type | Required | Description |
---|---|---|---|
objectName | string | Yes | The name of the object to get |
Example
eventObject = presideObjectService.getObject( "event" );
eventId = eventObject.insertData( data={ title="Christmas", startDate="2014-12-25", endDate="2015-01-06" } );
event = eventObject.selectData( id=eventId )