phpDocumentor
[ class tree: phpDocumentor ] [ index: phpDocumentor ] [ all elements ]

Class: parserSourceInlineTag

Source Location: /PhpDocumentor-1.5.0a1/phpDocumentor/InlineTags.inc

Class Overview

parserBase
   |
   --parserInlineTag
      |
      --parserSourceInlineTag

represents inline source tag, used for function/method source


Author(s):

Version:

  • Release: 1.5.0a1

Copyright:

  • 2002-2008 Gregory Beaver

Variables

Methods


Child classes:

parserExampleInlineTag
Represents the example inline tag, used to display an example file inside a docblock or tutorial

Inherited Variables

Inherited Methods

Class: parserInlineTag

parserInlineTag::parserInlineTag()
sets up the tag
parserInlineTag::getString()
always gets an empty string
parserInlineTag::Strlen()
get length of the tag

Class: parserBase

parserBase::getType()
gets the type
parserBase::getValue()
gets the value
parserBase::setValue()
sets the given value

Class Details

[line 377]
represents inline source tag, used for function/method source


[ Top ]


Class Variables

$end =  '*'

[line 395]

Last line to display
  • Var: If '*' then the whole source will be used, otherwise the $start to $end line numbers will be displayed

Type:   '*'|integer


[ Top ]

$inlinetype =  'source'

[line 383]

always 'source'

Type:   string
Overrides:   Array


[ Top ]

$source =  false

[line 401]

tokenized source organized by line numbers for php 4.3.0+, the old

{@source} tag used a string


Type:   string|array


[ Top ]

$start =  1

[line 389]

First line of source code to display

Type:   integer


[ Top ]



Method Detail

parserSourceInlineTag (Constructor)   [line 414]

parserSourceInlineTag parserSourceInlineTag( string $value)

constructor

Parameters:

string   $value   —  format "start [end]", where start and end are line numbers with the end line number optional

[ Top ]

arrayConvert   [line 497]

string arrayConvert( Converter &$c)

converter helper used in PHP 4.3.0+

Overridden in child classes as:

parserExampleInlineTag::arrayConvert()
converter helper for PHP 4.3.0+

Parameters:

Converter   &$c   —  the output converter object

[ Top ]

Convert   [line 481]

string Convert( Converter &$c)

convert the tag

Parameters:

Converter   &$c   —  the output converter object

[ Top ]

getString   [line 444]

string getString( )

gets the source string

Overrides parserInlineTag::getString() (always gets an empty string)
[ Top ]

setSource   [line 459]

void setSource( string|array $source, [string|bool $class = false])

sets the source tag's value

Overridden in child classes as:

parserExampleInlineTag::setSource()
sets the source

Parameters:

string|array   $source   —  source code
string|bool   $class   —  class name if this is a method, boolean in php 4.3.0, if this is a method this will be true

[ Top ]

stringConvert   [line 520]

string stringConvert( Converter &$c)

converter helper used in PHP 4.2.3-

Parameters:

Converter   &$c   —  the output converter object

[ Top ]

Strlen   [line 434]

int Strlen( )

only used to determine blank lines. {@source} will not be blank, probably

Overrides parserInlineTag::Strlen() (get length of the tag)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:50:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.