Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Block Class Reference

List of all members.

Public Member Functions

 Block ($address= '', $user= '', $by=0, $reason= '', $timestamp= '', $auto=0, $expiry= '')
 newFromDB ($address, $user=0, $killExpired=true)
 clear ()
 load ($address="", $user=0, $killExpired=true)
 initFromRow ($row)
 initialiseRange ()
 enumBlocks ($callback, $tag, $killExpired=true)
 delete ()
 insert ()
 deleteIfExpired ()
 isExpired ()
 isValid ()
 updateTimestamp ()
 clearCache ()
 getIntegerAddr ()
 getNetworkBits ()
 getAutoblockExpiry ($timestamp)
 normaliseRange ($range)

Public Attributes

 $mAddress
 $mUser
 $mBy
 $mReason
 $mTimestamp
 $mAuto
 $mId
 $mExpiry
 $mNetworkBits
 $mIntegerAddr

Constructor & Destructor Documentation

Block::Block address = '',
user = '',
by = 0,
reason = '',
timestamp = '',
auto = 0,
expiry = ''
 

Definition at line 18 of file Block.php.

References $user, and initialiseRange().


Member Function Documentation

Block::clear  ) 
 

Definition at line 39 of file Block.php.

References $mAddress, $mBy, $mReason, $mTimestamp, and $mUser.

Referenced by load().

Block::clearCache  ) 
 

Definition at line 213 of file Block.php.

References $wgBlockCache.

Referenced by delete(), insert(), and updateTimestamp().

Block::delete  ) 
 

Definition at line 149 of file Block.php.

References $sql, clearCache(), DB_WRITE, delete(), wfQuery(), and wfStrencode().

Referenced by delete().

Block::deleteIfExpired  ) 
 

Definition at line 174 of file Block.php.

References isExpired().

Referenced by load().

Block::enumBlocks callback,
tag,
killExpired = true
 

Definition at line 130 of file Block.php.

References $res, $row, $sql, DB_READ, enumBlocks(), wfFetchObject(), wfFreeResult(), and wfQuery().

Referenced by enumBlocks().

Block::getAutoblockExpiry timestamp  ) 
 

Definition at line 231 of file Block.php.

References $wgAutoblockExpiry, getAutoblockExpiry(), wfTimestamp2Unix(), and wfUnix2Timestamp().

Referenced by getAutoblockExpiry(), and updateTimestamp().

Block::getIntegerAddr  ) 
 

Definition at line 221 of file Block.php.

Block::getNetworkBits  ) 
 

Definition at line 226 of file Block.php.

Block::initFromRow row  ) 
 

Definition at line 99 of file Block.php.

References $row, initFromRow(), and initialiseRange().

Referenced by initFromRow(), and load().

Block::initialiseRange  ) 
 

Definition at line 113 of file Block.php.

Referenced by Block(), and initFromRow().

Block::insert  ) 
 

Definition at line 163 of file Block.php.

References $sql, clearCache(), DB_WRITE, insert(), wfQuery(), and wfStrencode().

Referenced by insert().

Block::isExpired  ) 
 

Definition at line 184 of file Block.php.

References wfTimestampNow().

Referenced by deleteIfExpired().

Block::isValid  ) 
 

Definition at line 193 of file Block.php.

Block::load address = "",
user = 0,
killExpired = true
 

Definition at line 46 of file Block.php.

References $res, $row, $sql, $user, clear(), DB_READ, deleteIfExpired(), initFromRow(), load(), user, wfFetchObject(), wfFreeResult(), wfNumRows(), wfQuery(), and wfStrencode().

Referenced by load().

Block::newFromDB address,
user = 0,
killExpired = true
 

Definition at line 32 of file Block.php.

References newFromDB(), and user.

Referenced by newFromDB().

Block::normaliseRange range  ) 
 

Definition at line 237 of file Block.php.

References normaliseRange().

Referenced by normaliseRange().

Block::updateTimestamp  ) 
 

Definition at line 198 of file Block.php.

References clearCache(), DB_WRITE, getAutoblockExpiry(), updateTimestamp(), wfQuery(), wfStrencode(), and wfTimestampNow().

Referenced by updateTimestamp().


Member Data Documentation

Block::$mAddress
 

Definition at line 15 of file Block.php.

Referenced by clear().

Block::$mAuto
 

Definition at line 15 of file Block.php.

Block::$mBy
 

Definition at line 15 of file Block.php.

Referenced by clear().

Block::$mExpiry
 

Definition at line 15 of file Block.php.

Block::$mId
 

Definition at line 15 of file Block.php.

Block::$mIntegerAddr
 

Definition at line 16 of file Block.php.

Block::$mNetworkBits
 

Definition at line 16 of file Block.php.

Block::$mReason
 

Definition at line 15 of file Block.php.

Referenced by clear().

Block::$mTimestamp
 

Definition at line 15 of file Block.php.

Referenced by clear().

Block::$mUser
 

Definition at line 15 of file Block.php.

Referenced by clear().


The documentation for this class was generated from the following file:
Generated on Tue Jun 29 23:40:20 2004 for Mediawiki by doxygen 1.3.7