I'm usign TeemIP extension and trying to figure out how to make IPv4Usage a Typology, this is to have an unique usage global for all Organizations (as the rest of typologies) instead of the TeemIP approch which sets a new Usage for each organization.
I reviewd the implementation code of the extension, and the most easy part is to extend/redefine the IPv4Usage class and its code in _ipv4usage.class.php.
Although I found that the extension makes use of some static code in global functions inside main.teemip-ip-mgmt.php and ui.teemip-ip-mgmt.php.
As the only method called from class definitions is calling static global function GetIpUsagebyID inside main.teem-ip-mgmt.php I can simply make modify the class definitions on the datamodel to call my own GetIPUsage instead of the TeemIP one (so not making necessary to modify main.teem-ip-mgmt.php). My big problem is that ui.teemp-ip-mgmt.php also calls this function and I don't know how to modify it or overwrite the call.
Any clues?
Thanks much.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all
I'm usign TeemIP extension and trying to figure out how to make IPv4Usage a Typology, this is to have an unique usage global for all Organizations (as the rest of typologies) instead of the TeemIP approch which sets a new Usage for each organization.
I reviewd the implementation code of the extension, and the most easy part is to extend/redefine the IPv4Usage class and its code in _ipv4usage.class.php.
Although I found that the extension makes use of some static code in global functions inside main.teemip-ip-mgmt.php and ui.teemip-ip-mgmt.php.
As the only method called from class definitions is calling static global function GetIpUsagebyID inside main.teem-ip-mgmt.php I can simply make modify the class definitions on the datamodel to call my own GetIPUsage instead of the TeemIP one (so not making necessary to modify main.teem-ip-mgmt.php). My big problem is that ui.teemp-ip-mgmt.php also calls this function and I don't know how to modify it or overwrite the call.
Any clues?
Thanks much.