[RSArrayUtil] element index

Package indexes

All elements
a c g h r t _
_
top
$_ignoreOrder
Whether to ignore the order of the elements. Gets set inside the constructor method.
$_subComparator
Holds the boolean value false or an instance of the cass RSComperator or a class that extends it. Gets initialized in the construtor method.
a
top
addElement
RSArrayUtil::addElement() in RSArrayUtil.php
Returns the array passed as first argument with the element passed as second argument added.
addElements
RSArrayUtil::addElements() in RSArrayUtil.php
Returns the array passed as first argument with the elements contained in the array passed as second argument added.
allTrue
RSArrayUtil::allTrue() in RSArrayUtil.php
Returns true if all elements of the array passed as argument evaluate true.
c
top
compare
Returns 0 if both objects implement the method toString and the return values of both methods is equal (==). Otherwise -1 is returned.
compare
Returns 0 if the two arguments are equal (===), otherwise -1.
compare
RSComparator::compare() in RSArrayUtil.php
Returns 0 if objects passed as first and second argument are equal. They have to implement the method hashCode.
compare
RSArrayComparator::compare() in RSArrayUtil.php
Returns 0 if both arrays contain the same elements.
countElement
RSArrayUtil::countElement() in RSArrayUtil.php
Returns the number of occurrences of a value in an array.
g
top
getAllCombinations
Returns all possible combinations of the elements of an array.
getElementsFromMultiDimArrayByKey
Returns an array containing all elements from the multidimensional array that where referenced by a key equal to $key.
h
top
hasElement
RSArrayUtil::hasElement() in RSArrayUtil.php
Returns true if the the array passed as first argument contains the element passed as second argument.
hasElements
RSArrayUtil::hasElements() in RSArrayUtil.php
Returns true if the the array passed as first argument contains all elements of the array passed as second argument.
r
top
RSArrayUtil.php
RSArrayUtil.php in RSArrayUtil.php
removeDuplicates
Removes all duplicates from an array.
RSArrayComparator
Constructor method that initializes the private field _subComparator.
RSArrayComparator
RSArrayComparator in RSArrayUtil.php
A comparator for arrays.
RSArrayUtil
RSArrayUtil in RSArrayUtil.php
A Utility Class for Simple and Advanced Arrays Operations.
RSARRAYUTIL_IGNORE_ORDER
RSARRAYUTIL_IGNORE_ORDER in RSArrayUtil.php
The comparator class RSArrayComparator accepts a constructor argument that defines if it should ignore the order of the elements. RSArrayUtil::getAllCombinations does the same - but in contrast to RSArrayComparator ignoring the order is the default.
RSARRAYUTIL_LAZY_COMPARISONS
RSARRAYUTIL_LAZY_COMPARISONS in RSArrayUtil.php
Some methods accept an argument to change the comparison operator. Pass this constant to force 'lazy' comparison using '=='.
RSARRAYUTIL_RESPECT_ORDER
RSARRAYUTIL_RESPECT_ORDER in RSArrayUtil.php
The comparator class RSArrayComparator accepts a constructor argument that defines if it should ignore the order of the elements. RSArrayUtil::getAllCombinations does the same - but in contrast to RSArrayComparator ignoring the order is the default.
RSARRAYUTIL_STRICT_COMPARISONS
Some methods accept an argument to change the comparison operator. Pass this constant to force strict comparison using '==='.
RSComparator
RSComparator in RSArrayUtil.php
Base class for all implementations of comparators.
RSPrimitiveComparator
RSPrimitiveComparator in RSArrayUtil.php
A Comparator for comparing primitives.
RSToStringComparator
RSToStringComparator in RSArrayUtil.php
A Comparator for comparing objects by the return values of their toString methods.
t
top
toString
RSArrayUtil::toString() in RSArrayUtil.php
Returns a literal representation of an array.
a c g h r t _