51 self::$sourceRegistrations[$id] =
$source;
64 $url = parse_url( $path );
67 if ( !isset( self::$sourceRegistrations[$id] ) ) {
71 $this->mSource = self::$sourceRegistrations[$id];
84 while ( !$leave && !$this->mSource->atEnd() &&
85 strlen( $this->mBuffer ) < $count ) {
86 $read = $this->mSource->readChunk();
88 if ( !strlen( $read ) ) {
92 $this->mBuffer .= $read;
95 if ( strlen( $this->mBuffer ) ) {
96 $return = substr( $this->mBuffer, 0, $count );
97 $this->mBuffer = substr( $this->mBuffer, $count );
100 $this->mPosition += strlen( $return );
124 return $this->mSource->atEnd();
133 $result[
'dev'] = $result[0] = 0;
134 $result[
'ino'] = $result[1] = 0;
135 $result[
'mode'] = $result[2] = 0;
136 $result[
'nlink'] = $result[3] = 0;
137 $result[
'uid'] = $result[4] = 0;
138 $result[
'gid'] = $result[5] = 0;
139 $result[
'rdev'] = $result[6] = 0;
140 $result[
'size'] = $result[7] = 0;
141 $result[
'atime'] = $result[8] = 0;
142 $result[
'mtime'] = $result[9] = 0;
143 $result[
'ctime'] = $result[10] = 0;
144 $result[
'blksize'] = $result[11] = 0;
145 $result[
'blocks'] = $result[12] = 0;
wfRandomString( $length=32)
Get a random string containing a number of pseudo-random hex characters.
This is a horrible hack used to keep source compatibility.
stream_open( $path, $mode, $options, &$opened_path)
static registerSource(ImportSource $source)
static array $sourceRegistrations
namespace being checked & $result
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Source interface for XML import.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))