Open Source Content Management System

PHP midgard_collector method get

  1. Example

Gets an array of subkey,value pair for the given key.

array __get(string 'key_name');__

midgard_collector method get takes one parameter:

  • key_name, name of the collector's key

Returns array of subkeys and its values for the given key_name if it exists in collection. Otherwise value returnig by this method is set to FALSE.

Example

<?php 

$mc = new midgard_collector("midgard_element", "style", $id);
$mc->set_key_property("name");
$mc->add_value_property("value");

$mc->execute();

$ret_array = $mc->get("ROOT");

?>
Designed by Nemein, hosted by Anykey