SDO_DataObject::getType

(no version information, might be only in CVS)

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

Beskrivelse

array SDO_DataObject::getType ( void )

Advarsel

Denne funktion er EKSPERIMENTABEL. Virkemåden af denne funktion, navnet på funktionen, og andet ellers dokumenteret om denne funktion, ændres muligvis uden advarsel i en fremtidig version af PHP. Brug af denne funktion er på ejet ansvar.

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.

Parameterliste

None.

Returneringsværdier

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

Eksempler

Eksempel 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]";
?>

Ovenstående eksempel vil udskrive:

Namespace: CompanyNS, Type Name: CompanyType