Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
var/www/jonas-eriksen.dk/wiki/inc/Parsing/ParserMode/Entity.php 0000644 00000001735 15233612720 0020501 0 ustar 00 entities = $entities;
}
/** @inheritdoc */
public function preConnect()
{
if (!count($this->entities) || $this->pattern != '') return;
$sep = '';
foreach ($this->entities as $entity) {
$this->pattern .= $sep. Lexer::escape($entity);
$sep = '|';
}
}
/** @inheritdoc */
public function connectTo($mode)
{
if (!count($this->entities)) return;
if (strlen($this->pattern) > 0) {
$this->Lexer->addSpecialPattern($this->pattern, $mode, 'entity');
}
}
/** @inheritdoc */
public function getSort()
{
return 260;
}
}