PHP midgard_collector method get_subkey
Gets subkey's value.
mixed get_subkey(string 'key', string 'subkey');
midgard_collector method get_subkey takes two parameters:
- key, collector's key value
- subkey, name of the subkey
Returns value of an subkey if found, NULL otherwise.
Example
<?php
$mc = new midgard_collector("midgard_element", "style", $id);
$mc->set_key_property("name");
$mc->add_value_property("value");
$mc->add_value_property("guid");
$mc->execute();
$val = $mc->get_subkey("ROOT", "guid");
?>
