Skip to content

Commit f2cd067

Browse files
committed
Purpose and Category Purpose to the check method
1 parent f6cdddd commit f2cd067

24 files changed

+115
-152
lines changed

CHANGE_LOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Sephpa - Change Log
22
===============
33

4+
##1.0.2 - Oct 18, '14##
5+
- added to `check()`:
6+
- `purp`: Purpose
7+
- `ctgypurp`: Category Purpose
8+
49
##1.0.1 - Oct 18, '14##
510
- added `sanitizeShortText()` and `sanitizeLongText()`
611
- added `checkAndSanitizeAll()`

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities.html

+14-2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ <h2 id="synopsis">Synopsis</h2>
7979
</li><li>public static string|false <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkBIC.html">checkBIC</a>()
8080
</li><li>public static bool <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/isNationalTransaction.html">isNationalTransaction</a>()
8181
</li><li>public static bool <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/crossCheckIbanBic.html">crossCheckIbanBic</a>()
82+
</li><li>private static void <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkDateFormat.html">checkDateFormat</a>()
8283
</li><li>public static string|false <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/getDate.html">getDate</a>()
8384
</li><li>public static string|false <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/getDateWithOffset.html">getDateWithOffset</a>()
8485
</li><li>public static string <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/getDateWithMinOffsetFromToday.html">getDateWithMinOffsetFromToday</a>()
@@ -90,7 +91,7 @@ <h2 id="synopsis">Synopsis</h2>
9091
</li><li>public static void <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/sanitizeLongText.html">sanitizeLongText</a>()
9192
</li><li>public static void <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkRequiredCollectionKeys.html">checkRequiredCollectionKeys</a>()
9293
</li><li>public static void <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkRequiredPaymentKeys.html">checkRequiredPaymentKeys</a>()
93-
</li><li>public static bool <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsNotAllKeys.html">containsNotAllKeys</a>()
94+
</li><li>public static bool <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsAllKeys.html">containsAllKeys</a>()
9495
</li><li>public static bool <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsNotAnyKey.html">containsNotAnyKey</a>()
9596
</li><li>private static string|false <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkActiveOrHistoricCurrencyCode.html">checkActiveOrHistoricCurrencyCode</a>()
9697
</li><li>private static string|false <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkBoolean.html">checkBoolean</a>()
@@ -104,6 +105,8 @@ <h2 id="synopsis">Synopsis</h2>
104105
</li><li>private static float|false <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkAmountFormat.html">checkAmountFormat</a>()
105106
</li><li>private string|false <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkSeqType.html">checkSeqType</a>()
106107
</li><li>private static bool|string <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkLocalInstrument.html">checkLocalInstrument</a>()
108+
</li><li>private static void <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkCategoryPurpose.html">checkCategoryPurpose</a>()
109+
</li><li>private static void <a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkPurpose.html">checkPurpose</a>()
107110
</li></ul>
108111

109112
}<br/></div>
@@ -229,14 +232,23 @@ <h4>private</h4>
229232
— Checks if the amount fits the format: A float with only two decimals, not lower than 0.01, not greater than 999,999,999.99.</li>
230233
<li id="checkBoolean"><a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkBoolean.html">checkBoolean()</a>
231234
— Checks if $bbi is a valid batch booking indicator. Returns 'true' for "1", "true", "on" and "yes", returns 'false' for "0", "false", "off", "no", and ""</li>
235+
<li id="checkCategoryPurpose">
236+
<a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkCategoryPurpose.html">checkCategoryPurpose()</a>
237+
</li>
232238
<li id="checkCharset">
233239
<a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkCharset.html">checkCharset()</a>
234240
</li>
241+
<li id="checkDateFormat">
242+
<a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkDateFormat.html">checkDateFormat()</a>
243+
</li>
235244
<li id="checkLength"><a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkLength.html">checkLength()</a>
236245
— Checks if the length of the input string not longer than the entered length</li>
237246
<li id="checkLocalInstrument">
238247
<a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkLocalInstrument.html">checkLocalInstrument()</a>
239248
</li>
249+
<li id="checkPurpose">
250+
<a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkPurpose.html">checkPurpose()</a>
251+
</li>
240252
<li id="checkRestrictedIdentificationSEPA1">
241253
<a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkRestrictedIdentificationSEPA1.html">checkRestrictedIdentificationSEPA1()</a>
242254
</li>
@@ -274,7 +286,7 @@ <h4>public</h4>
274286
<li id="checkRequiredPaymentKeys">
275287
<a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkRequiredPaymentKeys.html">checkRequiredPaymentKeys()</a>
276288
</li>
277-
<li id="containsNotAllKeys"><a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsNotAllKeys.html">containsNotAllKeys()</a>
289+
<li id="containsAllKeys"><a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsAllKeys.html">containsAllKeys()</a>
278290
— Checks if $arr misses one of the given $keys</li>
279291
<li id="containsNotAnyKey"><a title="AbcAeffchen\SepaUtilities\SepaUtilities" href="../classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsNotAnyKey.html">containsNotAnyKey()</a>
280292
— Checks if $arr not contains any key of $keys</li>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/check.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line310">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line319">Source</a>
6363
</li>
6464
</ul>
6565
</nav>
@@ -83,7 +83,7 @@ <h2 id="parameterlist">Parameters</h2>
8383
<dt><code>$field</code>
8484
8585
string</dt>
86-
<dd>Valid fields are: 'orgnlcdtrschmeid_id','ci','msgid','pmtid','pmtinfid',<br/>'orgnlmndtid','mndtid','initgpty','cdtr','dbtr','orgnlcdtrschmeid_nm',<br/>'ultmtcdrt','ultmtdebtr','rmtinf','orgnldbtracct_iban','iban','bic',<br/> 'ccy','amendment', 'btchbookg','instdamt','seqtp','lclinstrm','elctrncsgntr'</dd>
86+
<dd>Valid fields are: 'orgnlcdtrschmeid_id','ci','msgid','pmtid','pmtinfid',<br/>'orgnlmndtid','mndtid','initgpty','cdtr','dbtr','orgnlcdtrschmeid_nm',<br/>'ultmtcdrt','ultmtdebtr','rmtinf','orgnldbtracct_iban','iban','bic',<br/>'ccy','amendment', 'btchbookg','instdamt','seqtp','lclinstrm',<br/> 'elctrncsgntr','reqdexctndt','purp','ctgypurp','orgnldbtragt'</dd>
8787
<dt><code>$input</code>
8888
8989
mixed</dt>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkActiveOrHistoricCurrencyCode.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line516">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line531">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkAmountFormat.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line661">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line676">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkAndSanitize.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line379">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line394">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkCharset.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<a href="#parameter">Parameter</a>
5757
</li>
5858
<li>
59-
<a href="../../source/SepaUtilities.php.xhtml#line646">Source</a>
59+
<a href="../../source/SepaUtilities.php.xhtml#line661">Source</a>
6060
</li>
6161
</ul>
6262
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkLength.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line590">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line605">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkRestrictedIdentificationSEPA1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line551">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line566">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkRestrictedIdentificationSEPA2.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line563">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line578">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/checkRestrictedPersonIdentifierSEPA.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line575">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line590">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsNotAllKeys.html

-102
This file was deleted.

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/containsNotAnyKey.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line500">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line515">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/getDate.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line221">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line229">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/getDateWithMinOffsetFromToday.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line278">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line286">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/getDateWithOffset.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line243">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line251">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/replaceSpecialChars.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line621">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line636">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/sanitize.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line353">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line368">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

docs/html/classes/AbcAeffchen_SepaUtilities_SepaUtilities/sanitizeLength.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<a href="#return">Return</a>
6060
</li>
6161
<li>
62-
<a href="../../source/SepaUtilities.php.xhtml#line601">Source</a>
62+
<a href="../../source/SepaUtilities.php.xhtml#line616">Source</a>
6363
</li>
6464
</ul>
6565
</nav>

0 commit comments

Comments
 (0)