finish #64
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user