Open Source Content Management System

PHP midgard_collector method remove_key

  1. Example

Removes key from collection.

bool remove_key(string 'key');

midgard_collector method remove_key takes one parameter:

  • key, name of the collector's key

Returns TRUE if key and its corresponding subkeys' array has been removed from collection, FALSE otherwise. FALSE is also returned when key has no corresponding subkeys' array.

Example

<?php 

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

$mc->execute();

$mc->remove_key("ROOT");

?>
Designed by Nemein, hosted by Anykey