BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
DPL\LST Class Reference

Static Public Member Functions

static open ($parser, $part1)
 
static close ($parser, $part1)
 
static text ($parser, $page, &$title, &$text)
 
static includeSection ($parser, $page= '', $sec= '', $to= '', $recursionCheck=true, $trim=false, $skipPattern=array())
 section inclusion - include all matching sections
 
static limitTranscludedText ($text, $limit, $link= '')
 
static includeHeading ($parser, $page= '', $sec= '', $to= '', &$sectionHeading, $recursionCheck=true, $maxLength=-1, $link= 'default', $trim=false, $skipPattern=array())
 
static extractHeadingFromText ($parser, $page, $title, $text, $sec= '', $to= '', &$sectionHeading, $recursionCheck=true, $maxLength=-1, $cLink= 'default', $trim=false, $skipPattern=array())
 
static includeTemplate ($parser, &$dpl, $dplNr, $article, $template1= '', $template2= '', $defaultTemplate, $mustMatch, $mustNotMatch, $matchParsed, $iTitleMaxLen, $catlist)
 
static spaceOrUnderscore ($pattern)
 

Member Function Documentation

static DPL\LST::close (   $parser,
  $part1 
)
static

Finish processing the function.

Parameters
$parserParser
$part1
Returns
bool
static DPL\LST::limitTranscludedText (   $text,
  $limit,
  $link = '' 
)
static

Truncate a portion of wikitext so that .. ... does not contain (open) html comments ... it is not larger that $lim characters ... it is balanced in terms of braces, brackets and tags ... it is cut at a word boundary (white space) if possible ... can be used as content of a wikitable field without spoiling the whole surrounding wikitext structure

Parameters
$limlimit of character count for the result
$textthe wikitext to be truncated
$linkan optional link which will be appended to the text if it was truncatedt
Returns
the truncated text; note that the returned text may be longer than the limit if this is necessary to return something at all. We do not want to return an empty string if the input is not empty if the text is already shorter than the limit, the text will be returned without any checks for balance of tags
static DPL\LST::open (   $parser,
  $part1 
)
static

Register what we're working on in the parser, so we don't fall into a trap.

Parameters
$parserParser
$part1
Returns
bool

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