Source for file Image.php
Documentation is available at Image.php
* Parse for images in the source text.
* @author Tomaiuolo Michele <tomamic@yahoo.it>
* @version $Id: Image.php,v 1.3 2007/07/30 14:22:05 mic Exp $
* The regular expression used to parse the source text and find
* matches conforming to this rule. Used by the parse() method.
var $regex = '/{{(.*)(\|(.*))?}}/U';
* Generates a replacement token for the matched text.
* @param array &$matches The array of matches from parse().
* @return string A token marking the horizontal rule.
$src = trim($matches[1 ]);
$alt = trim($matches[3 ]);
return $this->wiki->addToken (
'attr' => array ('alt' => $alt, 'title' => $alt)
Documentation generated on Mon, 11 Mar 2019 14:44:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|