Class vhost

Description

BuddyServ IRC Services

Main program daemon

Located in /includes/class/Class.vhost.php (line 25)


	
			
Method Summary
void addRequest (vhost $vhost)
bool approveRequest (string $owner)
bool delete ()
bool deleteByUser ()
bool findById ($id $id, [[id|userid] $typeId = 'id'])
bool findByUser (string $username)
vhost|array getRequests ([string $owner = false])
bool removeRequest (string $owner)
bool save ()
mixed __get (string $what)
unknown_type __set (string $what, mixed $value)
Methods
addRequest (line 43)

Add a virtual host request to the pending array list.

void addRequest (vhost $vhost)
approveRequest (line 73)

Approvate a requested vhost, and remove it from the pending list.

Returns true or false.

bool approveRequest (string $owner)
  • string $owner
delete (line 228)

Delete the current virtual host from the database.

bool delete ()
deleteByUser (line 253)

Delete a virtual host using

the vhosts owner as the search criteria.

bool deleteByUser ()
findById (line 148)

Find a virtual host by either its own id, or the id of its owner.

bool findById ($id $id, [[id|userid] $typeId = 'id'])
  • [id|userid] $typeId
  • $id $id
findByUser (line 195)

Looks for a virtual host

using a username as its search method.

  • return: unknown_type
bool findByUser (string $username)
  • string $username
getRequests (line 91)

Get the vhost object for the requested userid, or, returns an array of all requests.

vhost|array getRequests ([string $owner = false])
  • string $owner
removeRequest (line 55)

Remove a request from the pending list. Returns true on success, false on failure.

bool removeRequest (string $owner)
  • string $owner
save (line 281)

Saves the current virtual host

to the database as a new entry, or updating the previous entry if exists.

bool save ()
__get (line 117)

Magic getter function.

Returns null if the variable doesnt exist.

mixed __get (string $what)
  • string $what
__set (line 132)

Magic setter

unknown_type __set (string $what, mixed $value)
  • string $what
  • mixed $value

Documentation generated on Thu, 17 Dec 2009 22:41:35 -0700 by phpDocumentor 1.4.1