[ Index ]

PHP Cross Reference of Yamoon 0.9.0

title

Body

[close]

/Yamoon/ -> Service.php (summary)

(no description)

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

Defines 1 class

Service:: (5 methods):
  Service()
  create()
  update()
  delete()
  dump()


Class: Service  - X-Ref

Service.php - manage service creation, update and deletes.

Service($config, $id="")   X-Ref
Service Constructor
$service = new Service($config, $id);

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

create($name, $language, $code, $result="", $quality="")   X-Ref
Create a new service if there's no service with that name yet.
Construct object first.
$service->create();

param $name The service name
param $language The language ID it's service uses
param $code The code to run
param $result The result regular expression, if match status is UP, else is DOWN
param $quality The quality regular expression, the first match will be the quality
return $id Newly created service's ID

update()   X-Ref
Update the current service on the database using the current parameters.
$service->name = "new service's name";
$service->update()


delete()   X-Ref
Delete the current service IF and only IF there's no probe using it.
$service->delete();


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




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