[ Index ] |
PHP Cross Reference of Yamoon 0.9.0 |
[Source view] [Print]
(no description)
File Size: | 113 lines (3 kb) |
Included or required: | 2 times |
Referenced: | 0 times |
Includes or requires: | 1 file Yamoon/Config.php |
Host($config, $id="") X-Ref |
Host Constructor $host = new Host($config, $id); param $config Configuration class param $id When provided, grab all info for that host |
create($company_id, $name, $ip="") X-Ref |
Create a new host if there's no host with that name yet. Construct object first. $host->create("my company", "myserver.mycompany.com", "127.0.0.1"); param $company_id The company this host is part param $name The hostname param $ip Its IP, if not provided try to check it return $id Newly created host's ID |
update() X-Ref |
Update the current host on the database using the current parameters. If IP is empty try again to determine it automatically. This can be used to change IPs when DNS has changed. $host->name = "changedname.mycompany.com"; $host->update() |
getIP() X-Ref |
Get the host's IP using system("host hostname") and automatically update $this->ip. $host->getIP() |
delete() X-Ref |
Delete the current host IF and only IF there's no probe using it. $host->delete(); |
dump() X-Ref |
Dumper. $host->dump(); |
Generated: Sat Feb 19 17:29:53 2005 | Cross-referenced by PHPXref 0.6 |