* @license PHP License * @package wb * @subpackage Markup */ WBClass::load('WBMarkup_Handler'); /** * Markup Scanner Listener * * * @version 0.1.0 * @package wb * @subpackage Markup */ class WBMarkup_Listener extends WBStdClass { /** * configuration * @var array */ protected $config = array(); /** * configure * * Usualy configure listenerer wich node's attributes * * @param array $config */ public function configure($config) { $this->config = array_merge($this->config, $config); } /** * handler on start beginning of scan * * @param string $content */ public function onScanStart(&$content) { } /** * handler on start element * */ public function onStartElement($node) { } /** * test handler on end element * */ public function onEndElement($node) { } /** * called right after scan is complete * * @param string $content */ public function onScanComplete(&$content) { } } ?>