Changeset 247
- Timestamp:
- 10/16/07 21:09:37 (1 year ago)
- Files:
-
- branches/2.3/classes/phing/filters/StripPhpComments.php (modified) (2 diffs)
- branches/2.3/classes/phing/filters/StripWhitespace.php (copied) (copied from trunk/classes/phing/filters/StripWhitespace.php)
- branches/2.3/classes/phing/types/FilterChain.php (modified) (2 diffs)
- branches/2.3/docs/phing_guide/book/chapters/appendixes/AppendixD-CoreTypes.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.3/classes/phing/filters/StripPhpComments.php
r123 r247 37 37 * @see FilterReader 38 38 * @package phing.filters 39 * @todo -c use new PHP functions to perform this instead of regex.40 39 */ 41 40 class StripPhpComments extends BaseFilterReader implements ChainableReader { … … 172 171 173 172 /** 174 * Creates a new Strip JavaComments using the passed in173 * Creates a new StripPhpComments using the passed in 175 174 * Reader for instantiation. 176 175 * branches/2.3/classes/phing/types/FilterChain.php
r139 r247 32 32 include_once 'phing/filters/StripLineBreaks.php'; 33 33 include_once 'phing/filters/StripLineComments.php'; 34 include_once 'phing/filters/StripWhitespace.php'; 34 35 include_once 'phing/filters/TabToSpaces.php'; 35 36 include_once 'phing/filters/TidyFilter.php'; … … 117 118 } 118 119 120 function addStripWhitespace(StripWhitespace $o) { 121 $o->setProject($this->project); 122 $this->filterReaders[] = $o; 123 } 124 119 125 function addTidyFilter(TidyFilter $o) { 120 126 $o->setProject($this->project); branches/2.3/docs/phing_guide/book/chapters/appendixes/AppendixD-CoreTypes.html
r182 r247 531 531 <h2><a name="StripPhpComments"></a>StripPhpComments</h2> 532 532 <p> 533 The <em>StripPhpComment </em> filter removes all PHP comments from533 The <em>StripPhpComments</em> filter removes all PHP comments from 534 534 the stream passed through the filter. 535 535 </p> … … 537 537 <filterchain> 538 538 <stripphpcomments /> 539 </filterchain> 540 </pre> 541 542 <h2><a name="StripWhitespace"></a>StripWhitespace</h2> 543 <p> 544 The <em>StripWhitespace</em> filter removes all PHP comments and whitespace from 545 the stream passed through the filter. Internally, this filter uses the php_strip_whitespace() function. 546 </p> 547 <pre> 548 <filterchain> 549 <stripwhitespace /> 539 550 </filterchain> 540 551 </pre>
