PHP 클래스 StripLineComments, symfony-1.4

Example:

  
  
  
  
  
Or:

  
  
  
  
  
또한 보기: BaseParamFilterReader
저자: hans lellelid, [email protected]
상속: extends BaseParamFilterReader, implements ChainableReader
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들

공개 메소드들

메소드 설명
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 )