Skip to content
Troy Davisson edited this page Mar 5, 2016 · 3 revisions

Note: This page documents capabilities available in the older 1.x version. Please see this repository's README file for the new 2.x version documentation.

GetMetadataTypes

GetMetadataTypes ( )

Gets information about the classes on the server. Smaller and combined version of GetMetadataResources() and GetMetadataClasses() but done in 1 request.

Parameters

None

Return Value

Array

Array returned is 2 deep. First level contains the Resource name. 'Data' key (second level) contains Class information. Returns FALSE if request for information failed.

Usage Examples
<?php
$types = $rets->GetMetadataTypes();
foreach ($types as $type) {
        echo "+ Resource {$type['Resource']}\n";

        foreach ($type['Data'] as $class) {
                echo "  + Class {$class['ClassName']}\n";
        }
}
+ Resource Property
  + Class COM
  + Class RES
+ Resource Agent
  + Class AGT
Related To

GetMetadataResources, GetMetadataClasses