diff --git a/metagen.inc.php b/metagen.inc.php index e1ff14b..0d7fd47 100644 --- a/metagen.inc.php +++ b/metagen.inc.php @@ -103,6 +103,11 @@ class mtgMetaInfo $this->units[$unit->object->getMetaId()] = $unit; } + function delUnit(mtgMetaInfoUnit $unit) + { + unset($this->units[$unit->object->getMetaId()]); + } + function getUnits() { return $this->units; @@ -152,6 +157,11 @@ abstract class mtgMetaUnit $this->tokens[$name] = $val; } + function delToken($name) + { + unset($this->tokens[$name]); + } + function getToken($name) { return $this->hasToken($name) ? $this->tokens[$name] : null;