Doku_Handler_Block::__construct PHP Метод

__construct() публичный Метод

Constructor. Adds loaded syntax plugins to the block and stack arrays
Автор: Andreas Gohr ([email protected])
public __construct ( )
    function __construct()
    {
        global $DOKU_PLUGINS;
        //check if syntax plugins were loaded
        if (empty($DOKU_PLUGINS['syntax'])) {
            return;
        }
        foreach ($DOKU_PLUGINS['syntax'] as $n => $p) {
            $ptype = $p->getPType();
            if ($ptype == 'block') {
                $this->blockOpen[] = 'plugin_' . $n;
                $this->blockClose[] = 'plugin_' . $n;
            } elseif ($ptype == 'stack') {
                $this->stackOpen[] = 'plugin_' . $n;
                $this->stackClose[] = 'plugin_' . $n;
            }
        }
    }