Class user

Description

BuddyServ IRC Services

User class that holds session information for users connecting to the IRC network. Also contains commands to manipulate database user accounts.

Located in /includes/class/Class.user.php (line 27)


	
			
Method Summary
user __construct (string $nick, string $username, string $host, string $name, string $server, string $modes)
void addchannel (string $channel, bit $binmode)
mixed adduser (user $object)
void binary_modes ( $modes)
int count_guests ()
int count_online ()
bool disable (string $by, string $who, string $reason)
bool enable (string $who, string $reason)
void fullMask ([ $vhost = false])
mixed getuser (string $username)
bool identified ()
bool ismember (string $username)
bool iswait ()
void removeChannel (string $channel)
bool remuser (user $object)
void rename (string $nick, string $newname)
void setwait (bool $true)
mixed sql_single (string $nick)
bool verified ()
void __get ( $what)
void __set ( $what,  $value)
Methods
Constructor __construct (line 264)

Create a new user object

user __construct (string $nick, string $username, string $host, string $name, string $server, string $modes)
  • string $nick
  • string $username
  • string $host
  • string $name
  • string $server
  • string $modes
addchannel (line 459)

Add user to a channel

void addchannel (string $channel, bit $binmode)
  • string $channel
  • bit $binmode
adduser (line 208)

Add a user to our userlist.

Returns a pointer to the object, or false.

mixed adduser (user $object)
binary_modes (line 411)
void binary_modes ( $modes)
  • $modes
count_guests (line 79)

Returns amount of non-identified guests on irc.

int count_guests ()
count_online (line 68)

Returns amount of online users

int count_online ()
disable (line 333)

Disable a user permanently

bool disable (string $by, string $who, string $reason)
  • string $by
  • string $who
  • string $reason
enable (line 356)

Enables a user permanently

bool enable (string $who, string $reason)
  • string $who
  • string $reason
fullMask (line 373)
void fullMask ([ $vhost = false])
  • $vhost
getuser (line 120)

Gets an instance of the user class for the given nickname, or returns false.

mixed getuser (string $username)
  • string $username
identified (line 444)

User is identified?

bool identified ()
ismember (line 101)

Check if a username is a registered member

bool ismember (string $username)
  • string $username
iswait (line 315)

Is in the timed kill queue?

bool iswait ()
removeChannel (line 472)

Remove a channel from our records.

void removeChannel (string $channel)
  • string $channel
remuser (line 228)

Remove a user from memory

bool remuser (user $object)
rename (line 145)

Rename a user, probably from a NICK commad

void rename (string $nick, string $newname)
  • string $nick
  • string $newname
setwait (line 299)

Not identified, timed kill queue.

true to add, false to remove

void setwait (bool $true)
  • bool $true
sql_single (line 392)

Gets a user from the database.

Returns array or false on failure.

mixed sql_single (string $nick)
  • string $nick
verified (line 497)

Verified account?

bool verified ()
__get (line 481)
void __get ( $what)
  • $what
__set (line 487)
void __set ( $what,  $value)
  • $what
  • $value

Documentation generated on Thu, 19 Nov 2009 20:25:22 -0700 by phpDocumentor 1.4.1