phpdoc
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 25 Apr 2010 07:58:02 +0000 (01:58 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 26 Apr 2010 04:51:15 +0000 (22:51 -0600)
framework/Stream_Filter/lib/Horde/Stream/Filter/Eol.php

index db90e3d..acb3610 100644 (file)
  */
 class Horde_Stream_Filter_Eol extends php_user_filter
 {
+    /**
+     * Search array.
+     *
+     * @param mixed
+     */
     protected $_search;
+
+    /**
+     * Replacement data
+     *
+     * @param mixed
+     */
     protected $_replace;
 
+    /**
+     * @see stream_filter_register()
+     */
     public function onCreate()
     {
         $eol = isset($this->params['eol']) ? $this->params['eol'] : "\r\n";
+
         if (!strlen($eol)) {
             $this->_search = array("\r", "\n");
             $this->_replace = '';
@@ -42,6 +57,9 @@ class Horde_Stream_Filter_Eol extends php_user_filter
         return true;
     }
 
+    /**
+     * @see stream_filter_register()
+     */
     public function filter($in, $out, &$consumed, $closing)
     {
         while ($bucket = stream_bucket_make_writeable($in)) {