[ Index ]

PHP Cross Reference of Yamoon 0.9.0

title

Body

[close]

/Yamoon/ -> Company.php (summary)

(no description)

File Size: 153 lines (4 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 2 files
 Yamoon/Config.php
 Yamoon/Probe.php

Defines 1 class

Company:: (8 methods):
  Company()
  getProbes()
  getHosts()
  create()
  update()
  delete()
  clone()
  dump()


Class: Company  - X-Ref

Company.php - manage company creation, update and deletes.

Company($config, $id="")   X-Ref
Company Constructor
$company = new Company($config, $id);

param $config Configuration class
param $id When provided, grab all info for that company

getProbes()   X-Ref
Get all probes of this company.

$probeList = $company->getProbes();
return $probeList A list of all probes of this company

getHosts()   X-Ref
Get all hosts of this company.

$probeList = $company->getHosts();
return $hostList A list of all hosts of this company

create($name, $contact="")   X-Ref
Create a new company 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 company's ID

update()   X-Ref
Update the current company on the database using the current parameters.
$company->name = "changedname.mycompany.com";
$company->update()


delete()   X-Ref
Delete the current company and it's probes and hosts.
$company->delete();


clone()   X-Ref
Clone the current company and all it's probes and hosts.
$company = new Company($config, $id);
$newCompany = $company->clone();


dump()   X-Ref
Dumper.
$company->dump();




Generated: Sat Feb 19 17:29:53 2005 Cross-referenced by PHPXref 0.6