* @ingroup Parser
*/
class LinkHolderArray {
- /** @var array */
- public $internals = array();
-
- /** @var array */
- public $interwikis = array();
-
- /** @var int */
- protected $size = 0;
-
- /** @var Parser */
- protected $parent;
-
- /** @var int */
+ var $internals = array(), $interwikis = array();
+ var $size = 0;
+ var $parent;
protected $tempIdOffset;
function __construct( $parent ) {
/**
* Get a subset of the current LinkHolderArray which is sufficient to
* interpret the given text.
+ * @param string $text
* @return LinkHolderArray
*/
function getSubArray( $text ) {
/**
* Replace <!--LINK--> link placeholders with actual links, in the buffer
*
+ * @param $text
* @return array Array of link CSS classes, indexed by PDBK.
*/
function replace( &$text ) {
wfProfileIn( __METHOD__ );
- $colours = $this->replaceInternal( $text ); // FIXME: replaceInternal doesn't return a value
+ /** @todo FIXME: replaceInternal doesn't return a value */
+ $colours = $this->replaceInternal( $text );
$this->replaceInterwiki( $text );
wfProfileOut( __METHOD__ );