This commit is contained in:
stubbfel
2013-06-27 10:55:07 +02:00
parent c03db748bc
commit 98b83dbfe3
15 changed files with 78 additions and 43 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace utiliy;
include_once "../../global.inc.php";
@@ -10,9 +11,9 @@ include_once PATH_UTILITTY . "/StringManager.php";
* @since 26.06.2013
*/
class ArrayManager {
/**
* Method remove all empty itmes
* Method remove all empty itmes of an array
* @param array $queryArgs
* @return array
*/
@@ -24,9 +25,9 @@ class ArrayManager {
}
return $array;
}
/**
* Method convert a pidList to a where-string
* Method convert an array to a where-string like $fieldname = $array[i] $operator
* @param array $pidList
* @return string
*/
@@ -38,9 +39,9 @@ class ArrayManager {
$result = substr($arrayStr, 0, strlen($arrayStr) - strlen($operator));
return $result;
}
/**
* Method check if all items of the pidlist are only digits
/**
* Method check if all items of the array are only digits and < PHP_INT_MAX
* @param array $poly
* @return boolean
*/
@@ -53,6 +54,7 @@ class ArrayManager {
}
return TRUE;
}
}
?>