Path: blob/master/src/infrastructure/markup/PhutilMarkupEngine.php
12241 views
<?php12abstract class PhutilMarkupEngine extends Phobject {34/**5* Set a configuration parameter which the engine can read to customize how6* the text is marked up. This is a generic interface; consult the7* documentation for specific rules and blocks for what options are available8* for configuration.9*10* @param string Key to set in the configuration dictionary.11* @param string Value to set.12* @return this13*/14abstract public function setConfig($key, $value);1516/**17* After text has been marked up with @{method:markupText}, you can retrieve18* any metadata the markup process generated by calling this method. This is19* a generic interface that allows rules to export extra information about20* text; consult the documentation for specific rules and blocks to see what21* metadata may be available in your configuration.22*23* @param string Key to retrieve from metadata.24* @param mixed Default value to return if the key is not available.25* @return mixed Metadata property, or default value.26*/27abstract public function getTextMetadata($key, $default = null);2829abstract public function markupText($text);3031}323334