cvs: pear /PHP_Parser/Parser/DocBlock/InlineTags Base.php Example.php Inheritdoc.php Link.php Source.php Tutorial.php

From: Date: Sat, 13 Mar 2004 20:50:06 +0000
Subject: cvs: pear /PHP_Parser/Parser/DocBlock/InlineTags Base.php Example.php Inheritdoc.php Link.php Source.php Tutorial.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-17375@lists.php.net to get a copy of this message
cellog Sat Mar 13 15:50:06 2004 EDT Added files: /pear/PHP_Parser/Parser/DocBlock/InlineTags Base.php Example.php Inheritdoc.php Link.php Source.php Tutorial.php Log: new inline tag classes http://cvs.php.net/co.php/pear/PHP_Parser/Parser/DocBlock/InlineTags/Base.php?r=1.1&p=1 Index: pear/PHP_Parser/Parser/DocBlock/InlineTags/Base.php +++ pear/PHP_Parser/Parser/DocBlock/InlineTags/Base.php <?php /** * @package PHP_Parser */ class PHP_Parser_DocBlock_InlineTags_Base { } ?> http://cvs.php.net/co.php/pear/PHP_Parser/Parser/DocBlock/InlineTags/Example.php?r=1.1&p=1 Index: pear/PHP_Parser/Parser/DocBlock/InlineTags/Example.php +++ pear/PHP_Parser/Parser/DocBlock/InlineTags/Example.php <?php /** * @package PHP_Parser */ class PHP_Parser_DocBlock_InlineTags_Example extends PHP_Parser_DocBlock_InlineTags_Source { /** * @var string * @access private */ var $_file; function structure() { return array('params' => array( array('type' => 'word', 'required' => true, 'name' => 'file'), array('type' => 'word', 'required' => false, 'name' => 'startline'), array('type' => 'word', 'required' => false, 'name' => 'length') ) ); } /** * @param array */ function setFile($file) { $this->_file = $file; } function getLexerOptions() { return array(); } } ?> http://cvs.php.net/co.php/pear/PHP_Parser/Parser/DocBlock/InlineTags/Inheritdoc.php?r=1.1&p=1 Index: pear/PHP_Parser/Parser/DocBlock/InlineTags/Inheritdoc.php +++ pear/PHP_Parser/Parser/DocBlock/InlineTags/Inheritdoc.php <?php /** * @package PHP_Parser */ class PHP_Parser_DocBlock_InlineTags_Inheritdoc extends PHP_Parser_DocBlock_InlineTags_Base { function structure() { return array('params' => array( ) ); } function getLexerOptions() { return array(); } } ?> http://cvs.php.net/co.php/pear/PHP_Parser/Parser/DocBlock/InlineTags/Link.php?r=1.1&p=1 Index: pear/PHP_Parser/Parser/DocBlock/InlineTags/Link.php +++ pear/PHP_Parser/Parser/DocBlock/InlineTags/Link.php <?php /** * @package PHP_Parser */ class PHP_Parser_DocBlock_InlineTags_Link extends PHP_Parser_DocBlock_InlineTags_Base { /** * @access protected */ var $_link = array(); /** * @access protected */ var $_description = array(); function structure() { return array('params' => array( array('type' => 'link', 'required' => true, 'name' => 'link'), array('type' => 'allwords', 'required' => false, 'name' => 'description') ) ); } function setLink($link) { $this->_link[] = $link; } function setDescription($description) { $this->_description[count($this->_link) - 1] = $description; } function getLexerOptions() { return array('separator' => ','); } } ?> http://cvs.php.net/co.php/pear/PHP_Parser/Parser/DocBlock/InlineTags/Source.php?r=1.1&p=1 Index: pear/PHP_Parser/Parser/DocBlock/InlineTags/Source.php +++ pear/PHP_Parser/Parser/DocBlock/InlineTags/Source.php <?php /** * @package PHP_Parser */ class PHP_Parser_DocBlock_InlineTags_Source extends PHP_Parser_DocBlock_InlineTags_Base { /** * @access protected */ var $_startline = 1; /** * @access protected */ var $_length = -1; function structure() { return array('params' => array( array('type' => 'word', 'required' => false, 'name' => 'startline'), array('type' => 'word', 'required' => false, 'name' => 'length') ) ); } /** * @todo throw exception if $line isn't a number */ function setStartLine($line) { if (is_numeric($line)) { $this->_startline = $line + 0; } else { // throw exception } } function setLength($length) { if (is_numeric($line)) { $this->_length = $length + 0; } else { // throw exception } } function getLexerOptions() { return array(); } } ?> http://cvs.php.net/co.php/pear/PHP_Parser/Parser/DocBlock/InlineTags/Tutorial.php?r=1.1&p=1 Index: pear/PHP_Parser/Parser/DocBlock/InlineTags/Tutorial.php +++ pear/PHP_Parser/Parser/DocBlock/InlineTags/Tutorial.php <?php /** * @package phpDocumentor */ class PHP_Parser_DocBlock_InlineTags_Tutorial extends PHP_Parser_DocBlock_InlineTags_Base { /** * @access protected */ var $_link; /** * @access protected */ var $_title = array(); function structure() { return array('params' => array( array('type' => 'word', 'required' => true, 'name' => 'link'), array('type' => 'allwords', 'required' => false, 'name' => 'title') ) ); } function setLink($link) { $this->_link = $link; } function setTitle($title) { $this->_title[count($this->_link) - 1] = $title; } function getLexerOptions() { return array('separator' => ','); } } ?>

« previous php.pear.cvs (#17375) next »