Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 6
Hooks
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 6
 onParserFirstCallInit
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
 onParserAfterParse
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 3
<?php
/**
 * Graph extension Hooks
 *
 * @file
 * @ingroup Extensions
 */
namespace Graph;
use Parser;
class Hooks {
    /**
     * ParserFirstCallInit hook handler.
     * Registers the <graph> tag
     *
     * @param Parser $parser
     * @return bool
     */
    public static function onParserFirstCallInit( Parser $parser ) {
        $parser->setHook( 'graph', 'Graph\ParserTag::onGraphTag' );
        return true;
    }
    /**
     * ParserAfterParse hook handler.
     *
     * @param Parser $parser
     * @return bool
     */
    public static function onParserAfterParse( Parser $parser ) {
        ParserTag::finalizeParserOutput( $parser, $parser->getTitle(), $parser->getOutput() );
        return true;
    }
}