/** * Please implement getMIBTree in subclasses to provide a tree of OIDs that * are managed by this handler * * OR (deprecated) * * override this in subclasses to provide directly a mib (textual) description of * the oids managed b y the handler, so that automated mib parsing tools can * be used by monitoring plugins. */ public function getMIB() { if (is_callable(array($this, 'getMIBTree'))) { $out = ''; $out .= eZMIBTree::toMIB($this->getMIBTree()); return $out; } return ''; }
/** * Return the eZ Publish MIB as a flattened php array (only tree leaves left) * @param bool $indexByName if false, index by oid, else by name * @return array */ public function getMIBArray($indexByName = false) { if ($indexByName) { return eZMIBTree::toNamedArray($this->getHandlerMIBs(true), substr($this->prefix, 0, -1)); } else { $array = eZMIBTree::toArray($this->getHandlerMIBs(true), substr($this->prefix, 0, -1)); uksort($array, 'version_compare'); return $array; } }