Forum und email

SDO_DataObject::createDataObject

(No version information available, might be only in CVS)

SDO_DataObject::createDataObject — Create a child SDO_DataObject

說明

SDO_DataObject SDO_DataObject::createDataObject ( mixed $identifier )
Warning

本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。

Create a child SDO_DataObject of the default type for the property identified. The data object is automatically inserted into the tree and a reference to it is returned.

參數

identifier

Identifies the property for the data object type to be created. Can be either a property name (string), a property index (int), or an SDO_Model_Property.

Return值

Returns the newly created SDO_DataObject.

錯誤/例外

SDO_PropertyNotFoundException

Thrown if the identifier does not correspond to a property of the data object.