Added missing phpdoc

This commit is contained in:
Alexander Makarov
2013-05-25 21:56:40 +04:00
parent 01f74b3cab
commit cb0d741281
4 changed files with 39 additions and 0 deletions

View File

@ -16,6 +16,13 @@ namespace yii\helpers\base;
*/
class HtmlPurifier
{
/**
* Passes markup through HTMLPurifier making it safe to output to end user
*
* @param string $content
* @param array|null $config
* @return string
*/
public static function process($content, $config = null)
{
$purifier=\HTMLPurifier::instance($config);

View File

@ -37,6 +37,13 @@ class Markdown
*/
protected static $markdown;
/**
* Converts markdown into HTML
*
* @param string $content
* @param array $config
* @return string
*/
public static function process($content, $config = array())
{
if (static::$markdown === null) {