hashTableObj
final class hashTableObj (View source)
Instance of hashTableObj is always embedded inside the classObj
,
layerObj
, mapObj
and webObj
. It is uses a read only.
$hashTable = $oLayer->metadata;
$key = null;
while ($key = $hashTable->nextkey($key))
echo "Key: ".$key." value: ".$hashTable->get($key)."
";
Methods
Clear all items in the hashTable (To NULL).
Fetch class metadata entry by name. Returns "" if no entry matches the name. Note that the search is case sensitive.
Return the next key or first key if previousKey = NULL.
Remove a metadata entry in the hashTable. Returns MS_SUCCESS/MS_FAILURE.
Set a metadata entry in the hashTable. Returns MS_SUCCESS/MS_FAILURE.
Details
final void
clear()
Clear all items in the hashTable (To NULL).
final string
get(string $key)
Fetch class metadata entry by name. Returns "" if no entry matches the name. Note that the search is case sensitive.
final string
nextkey(string $previousKey)
Return the next key or first key if previousKey = NULL.
Return NULL if no item is in the hashTable or end of hashTable is reached
final int
remove(string $key)
Remove a metadata entry in the hashTable. Returns MS_SUCCESS/MS_FAILURE.
final int
set(string $key, string $value)
Set a metadata entry in the hashTable. Returns MS_SUCCESS/MS_FAILURE.