PHP Класс StripLineComments, symfony-1.4

Example:

  
  
  
  
  
Or:

  
  
  
  
  
См. также: BaseParamFilterReader
Автор: hans lellelid, [email protected]
Наследование: extends BaseParamFilterReader, implements ChainableReader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
chain ( Reader $reader ) * Creates a new StripLineComments using the passed in Reader for instantiation.
createComment ( ) * Adds a comment element to the list of prefixes.
getComments ( ) * Returns the list of comment prefixes to strip.
read ( $len = null ) : mixed Returns stream only including lines from the original stream which don't start with any of the specified comment prefixes.
setComments ( $lineBreaks ) * Sets the list of comment prefixes to strip.

Приватные методы

Метод Описание
_initialize ( ) * Parses the parameters to set the comment prefixes.

Описание методов

chain() публичный Метод

* Creates a new StripLineComments using the passed in Reader for instantiation.
public chain ( Reader $reader )
$reader Reader

createComment() публичный Метод

* Adds a comment element to the list of prefixes.
public createComment ( )

getComments() публичный Метод

* Returns the list of comment prefixes to strip.
public getComments ( )

read() публичный Метод

Returns stream only including lines from the original stream which don't start with any of the specified comment prefixes.
public read ( $len = null ) : mixed
Результат mixed the resulting stream, or -1 if the end of the resulting stream has been reached.

setComments() публичный Метод

* Sets the list of comment prefixes to strip.
public setComments ( $lineBreaks )