SDO_DataObject::getType

(no version information, might be only in CVS)

SDO_DataObject::getType --  Get the type of a data object.

說明

array SDO_DataObject::getType ( void )

警示

本函數是實驗性的。本函數的行為,內含函數名稱以及其它任何關於本函數的文件可能會在沒有知會的情況下隨 PHP 以後的發佈而改變。使用本函數風險自擔。

Return an array containing the type information for an SDO_DataObject. The first element contains the namespace URI string and the second contains the type name string.

參數

None.

返回值

An array containing the namespace URI string and the type name string for the data object.

範例

例子 1. A SDO_DataObject::getType() example

For example, if the SDO_DataObject were of type 'CompanyType' from the namespace 'CompanyNS', then getType() would return the equivalent to array('CompanyNS', 'CompanyType'):

<?php
  $do_type 
$company_do->getType();
  echo 
"Namespace: $do_type[0], Type Name: $do_type[1]";
?>

上例將輸出:

Namespace: CompanyNS, Type Name: CompanyType