cvs: pear /Payment_Clieop clieop.php
| From: | Walter Hop | Date: | Sat, 29 Mar 2008 01:25:05 +0000 |
| Subject: | cvs: pear /Payment_Clieop clieop.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-51732@lists.php.net to get a copy of this message | ||
walter Sat Mar 29 01:25:05 2008 UTC
Modified files:
/pear/Payment_Clieop clieop.php
Log:
Fixed Bug #13476 New line character must be selectable
http://cvs.php.net/viewvc.cgi/pear/Payment_Clieop/clieop.php?r1=1.18&r2=1.19&diff_format=u
Index: pear/Payment_Clieop/clieop.php
diff -u pear/Payment_Clieop/clieop.php:1.18 pear/Payment_Clieop/clieop.php:1.19
--- pear/Payment_Clieop/clieop.php:1.18 Sat Mar 29 00:52:29 2008
+++ pear/Payment_Clieop/clieop.php Sat Mar 29 01:25:05 2008
@@ -16,7 +16,7 @@
// | Authors: Dave Mertens <dmertens@zyprexia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: clieop.php,v 1.18 2008/03/29 00:52:29 walter Exp $
+// $Id: clieop.php,v 1.19 2008/03/29 01:25:05 walter Exp $
/*
Please note that public function names are partly in Dutch. This is because
also the clieop data strings has dutch names. (batchvoorloopinfo, transactieinfo, etc).
@@ -34,7 +34,7 @@
/**
* Main clieop class
*
- * @version $Revision: 1.18 $
+ * @version $Revision: 1.19 $
* @access public
* @author Dave Mertens <dmertens@zyprexia.com>
* @package Payment_Clieop
@@ -626,14 +626,34 @@
/**
* master object for clieop objects
*
-* @version $Revision: 1.18 $
+* @version $Revision: 1.19 $
* @access private
* @author Dave Mertens <dmertens@zyprexia.com>
* @package Payment_Clieop
*/
class clieop_baseobject
{
-
+ /**
+ * @var string
+ * @access private
+ */
+ var $_NewLine = "\n";
+
+ /**
+ * property NewLine
+ * @param string Value - New line character to use in Clieop output (defaults to "\n";
some banks require "\r\n")
+ * @return string
+ * @access public
+ */
+ function getNewLine()
+ {
+ return $this->_NewLine;
+ }
+ function setNewLine($Value)
+ {
+ $this->_NewLine = $Value;
+ }
+
/**
* Alfa numeric filler
* @param string text - Text which needs to filled up
@@ -675,7 +695,7 @@
*/
function filler($Length)
{
- return str_repeat(" ", $Length) . "\n";
+ return str_repeat(" ", $Length) . $this->_NewLine;
}
}