ParserOutput Class Reference
[Parser]

List of all members.

Public Member Functions

 ParserOutput ($text= '', $languageLinks=array(), $categoryLinks=array(), $containsOldMagic=false, $titletext= '')
 getText ()
getLanguageLinks ()
 getCategoryLinks ()
getCategories ()
 getCacheTime ()
 getTitleText ()
 getSections ()
getLinks ()
getTemplates ()
getImages ()
getExternalLinks ()
 getNoGallery ()
 getSubtitle ()
 getOutputHooks ()
 getWarnings ()
 getIndexPolicy ()
 containsOldMagic ()
 setText ($text)
 setLanguageLinks ($ll)
 setCategoryLinks ($cl)
 setContainsOldMagic ($com)
 setCacheTime ($t)
 setTitleText ($t)
 setSections ($toc)
 setIndexPolicy ($policy)
 addCategory ($c, $sort)
 addLanguageLink ($t)
 addExternalLink ($url)
 addWarning ($s)
 addOutputHook ($hook, $data=false)
 setNewSection ($value)
 getNewSection ()
 addLink ($title, $id=null)
 addImage ($name)
 addTemplate ($title, $page_id, $rev_id)
 expired ($touched)
 Return true if this cached output object predates the global or per-article cache invalidation timestamps, or if it comes from an incompatible older version.
 addHeadItem ($section, $tag=false)
 Add some text to the <head>.
 setDisplayTitle ($text)
 Override the title to be used for display -- this is assumed to have been validated (check equal normalisation, etc.
 getDisplayTitle ()
 Get the title to be used for display.
 setFlag ($flag)
 Fairly generic flag setter thingy.
 getFlag ($flag)
 setProperty ($name, $value)
 Set a property to be cached in the DB.
 getProperty ($name)
 getProperties ()

Public Attributes

 $mText
 $mLanguageLinks
 $mCategories
 $mContainsOldMagic
 $mTitleText
 $mCacheTime = ''
 $mVersion = Parser::VERSION
 $mLinks = array()
 $mTemplates = array()
 $mTemplateIds = array()
 $mImages = array()
 $mExternalLinks = array()
 $mNewSection = false
 $mNoGallery = false
 $mHeadItems = array()
 $mOutputHooks = array()
 $mWarnings = array()
 $mSections = array()
 $mProperties = array()

Private Attributes

 $mIndexPolicy = ''
 $displayTitle = false
 Overridden title for display.


Detailed Description

Todo:
document

Definition at line 6 of file ParserOutput.php.


Member Function Documentation

ParserOutput::ParserOutput ( text = '',
languageLinks = array(),
categoryLinks = array(),
containsOldMagic = false,
titletext = '' 
)

Definition at line 34 of file ParserOutput.php.

References $text.

ParserOutput::getText (  ) 

Definition at line 44 of file ParserOutput.php.

& ParserOutput::getLanguageLinks (  ) 

Definition at line 45 of file ParserOutput.php.

ParserOutput::getCategoryLinks (  ) 

Definition at line 46 of file ParserOutput.php.

& ParserOutput::getCategories (  ) 

Definition at line 47 of file ParserOutput.php.

ParserOutput::getCacheTime (  ) 

Definition at line 48 of file ParserOutput.php.

Referenced by expired().

ParserOutput::getTitleText (  ) 

Definition at line 49 of file ParserOutput.php.

ParserOutput::getSections (  ) 

Definition at line 50 of file ParserOutput.php.

& ParserOutput::getLinks (  ) 

Definition at line 51 of file ParserOutput.php.

& ParserOutput::getTemplates (  ) 

Definition at line 52 of file ParserOutput.php.

& ParserOutput::getImages (  ) 

Definition at line 53 of file ParserOutput.php.

& ParserOutput::getExternalLinks (  ) 

Definition at line 54 of file ParserOutput.php.

ParserOutput::getNoGallery (  ) 

Definition at line 55 of file ParserOutput.php.

ParserOutput::getSubtitle (  ) 

Definition at line 56 of file ParserOutput.php.

ParserOutput::getOutputHooks (  ) 

Definition at line 57 of file ParserOutput.php.

ParserOutput::getWarnings (  ) 

Definition at line 58 of file ParserOutput.php.

ParserOutput::getIndexPolicy (  ) 

Definition at line 59 of file ParserOutput.php.

ParserOutput::containsOldMagic (  ) 

Definition at line 61 of file ParserOutput.php.

ParserOutput::setText ( text  ) 

Definition at line 62 of file ParserOutput.php.

References $text, and wfSetVar().

ParserOutput::setLanguageLinks ( ll  ) 

Definition at line 63 of file ParserOutput.php.

References wfSetVar().

ParserOutput::setCategoryLinks ( cl  ) 

Definition at line 64 of file ParserOutput.php.

References wfSetVar().

ParserOutput::setContainsOldMagic ( com  ) 

Definition at line 65 of file ParserOutput.php.

References wfSetVar().

ParserOutput::setCacheTime ( t  ) 

Definition at line 66 of file ParserOutput.php.

References $t, and wfSetVar().

ParserOutput::setTitleText ( t  ) 

Definition at line 67 of file ParserOutput.php.

References $t, and wfSetVar().

ParserOutput::setSections ( toc  ) 

Definition at line 68 of file ParserOutput.php.

References wfSetVar().

ParserOutput::setIndexPolicy ( policy  ) 

Definition at line 69 of file ParserOutput.php.

References wfSetVar().

ParserOutput::addCategory ( c,
sort 
)

Definition at line 71 of file ParserOutput.php.

References $sort.

ParserOutput::addLanguageLink ( t  ) 

Definition at line 72 of file ParserOutput.php.

References $t.

ParserOutput::addExternalLink ( url  ) 

Definition at line 73 of file ParserOutput.php.

References $url.

ParserOutput::addWarning ( s  ) 

Definition at line 74 of file ParserOutput.php.

ParserOutput::addOutputHook ( hook,
data = false 
)

Definition at line 76 of file ParserOutput.php.

References $data.

ParserOutput::setNewSection ( value  ) 

Definition at line 80 of file ParserOutput.php.

ParserOutput::getNewSection (  ) 

Definition at line 83 of file ParserOutput.php.

ParserOutput::addLink ( title,
id = null 
)

Definition at line 87 of file ParserOutput.php.

References $ns, and $title.

ParserOutput::addImage ( name  ) 

Definition at line 99 of file ParserOutput.php.

References $name.

ParserOutput::addTemplate ( title,
page_id,
rev_id 
)

Definition at line 103 of file ParserOutput.php.

References $ns, and $title.

ParserOutput::expired ( touched  ) 

Return true if this cached output object predates the global or per-article cache invalidation timestamps, or if it comes from an incompatible older version.

Parameters:
string $touched the affected article's last touched timestamp
Returns:
bool

Definition at line 125 of file ParserOutput.php.

References getCacheTime(), and Parser::VERSION.

ParserOutput::addHeadItem ( section,
tag = false 
)

Add some text to the <head>.

If $tag is set, the section with that tag will only be included once in a given page.

Definition at line 139 of file ParserOutput.php.

ParserOutput::setDisplayTitle ( text  ) 

Override the title to be used for display -- this is assumed to have been validated (check equal normalisation, etc.

)

Parameters:
string $text Desired title text

Definition at line 154 of file ParserOutput.php.

References $text.

ParserOutput::getDisplayTitle (  ) 

Get the title to be used for display.

Returns:
string

Definition at line 163 of file ParserOutput.php.

ParserOutput::setFlag ( flag  ) 

Fairly generic flag setter thingy.

Definition at line 170 of file ParserOutput.php.

ParserOutput::getFlag ( flag  ) 

Definition at line 174 of file ParserOutput.php.

ParserOutput::setProperty ( name,
value 
)

Set a property to be cached in the DB.

Definition at line 181 of file ParserOutput.php.

References $name.

ParserOutput::getProperty ( name  ) 

Definition at line 185 of file ParserOutput.php.

References $name.

ParserOutput::getProperties (  ) 

Definition at line 189 of file ParserOutput.php.


Member Data Documentation

ParserOutput::$mText

Definition at line 8 of file ParserOutput.php.

ParserOutput::$mLanguageLinks

Definition at line 8 of file ParserOutput.php.

ParserOutput::$mCategories

Definition at line 8 of file ParserOutput.php.

ParserOutput::$mContainsOldMagic

Definition at line 8 of file ParserOutput.php.

ParserOutput::$mTitleText

Definition at line 8 of file ParserOutput.php.

ParserOutput::$mCacheTime = ''

Definition at line 13 of file ParserOutput.php.

ParserOutput::$mVersion = Parser::VERSION

Definition at line 14 of file ParserOutput.php.

ParserOutput::$mLinks = array()

Definition at line 15 of file ParserOutput.php.

ParserOutput::$mTemplates = array()

Definition at line 16 of file ParserOutput.php.

ParserOutput::$mTemplateIds = array()

Definition at line 17 of file ParserOutput.php.

ParserOutput::$mImages = array()

Definition at line 18 of file ParserOutput.php.

ParserOutput::$mExternalLinks = array()

Definition at line 19 of file ParserOutput.php.

ParserOutput::$mNewSection = false

Definition at line 20 of file ParserOutput.php.

ParserOutput::$mNoGallery = false

Definition at line 21 of file ParserOutput.php.

ParserOutput::$mHeadItems = array()

Definition at line 22 of file ParserOutput.php.

ParserOutput::$mOutputHooks = array()

Definition at line 23 of file ParserOutput.php.

ParserOutput::$mWarnings = array()

Definition at line 24 of file ParserOutput.php.

ParserOutput::$mSections = array()

Definition at line 25 of file ParserOutput.php.

ParserOutput::$mProperties = array()

Definition at line 26 of file ParserOutput.php.

ParserOutput::$mIndexPolicy = '' [private]

Definition at line 27 of file ParserOutput.php.

ParserOutput::$displayTitle = false [private]

Overridden title for display.

Definition at line 32 of file ParserOutput.php.


The documentation for this class was generated from the following file:

Generated on Tue Nov 18 00:30:53 2008 for MediaWiki by  doxygen 1.5.5