public function useExtension($mib, $args) {
        $mib = '\\Cityware\\Snmp\\MIBS\\' . str_replace('_', '\\', $mib);
        $m = new $mib();
        $m->setSNMP($this);
        return $m;
    }
public function useExtension($mib, $args) {
        $mib = '\\Cityware\\Snmp\\MIBS\\' . str_replace('_', '\\', $mib);
        $m = new $mib();
        $m->setSNMP($this);
        return $m;
    }
public function useExtension ( $ mib , $ args ) { $ mib = '\\Cityware\\Snmp\\MIBS\\' . str_replace ( '_' , '\\' , $ mib ) ; $ m = new $ mib ( ) ; $ m -> setSNMP ( $ this ) ; return $ m ; }
This is the MIB Extension magic

Calling $this->useXXX_YYY_ZZZ()->fn() will instantiate
an extension MIB class is the given name and this $this SNMP
instance and then call fn().

See the examples for more information.

@param string $mib The extension class to use
@param array $args
@return \Cityware\Snmp\MIBS
This is the MIB Extension magic