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


add a note add a note User Contributed Notes
There are no user contributed notes for this page.