| 1 | <?php |
||
| 19 | abstract class AdminPageFramework_Utility_Array extends AdminPageFramework_Utility_String { |
||
|
1 ignored issue
–
show
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * Checks if the given array is an associative array or not. |
||
| 23 | * @since DEVVER |
||
| 24 | * @return boolean |
||
| 25 | */ |
||
| 26 | static public function isAssociative( array $aArray ) { |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Determines whether the element is the last element of an array by the given key. |
||
| 32 | * |
||
| 33 | * @since 3.0.0 |
||
| 34 | * @return boolean |
||
| 35 | */ |
||
| 36 | static public function isLastElement( array $aArray, $sKey ) { |
||
| 40 | /** |
||
| 41 | * Determines whether element is the first element of an array by the given key. |
||
| 42 | * |
||
| 43 | * @since 3.4.0 |
||
| 44 | * @return boolean |
||
| 45 | */ |
||
| 46 | static public function isFirstElement( array $aArray, $sKey ) { |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Returns a readable list of the given array contents. |
||
| 53 | * |
||
| 54 | * @remark If the second dimension element is an array, it will be enclosed in parenthesis. |
||
| 55 | * @since 3.3.0 |
||
| 56 | * @return string A readable list generated from the given array. |
||
| 57 | */ |
||
| 58 | static public function getReadableListOfArray( array $aArray ) { |
||
| 67 | /** |
||
| 68 | * Generates readable array contents. |
||
| 69 | * |
||
| 70 | * @since 3.3.0 |
||
| 71 | * @return string The generated human readable array contents. |
||
| 72 | */ |
||
| 73 | static public function getReadableArrayContents( $sKey, $vValue, $sLabelCharLengths=16, $iOffset=0 ) { |
||
| 108 | /** |
||
| 109 | * Returns the readable list of the given array contents as HTML. |
||
| 110 | * |
||
| 111 | * @since 3.3.0 |
||
| 112 | * @return string The HTML list generated from the given array. |
||
| 113 | */ |
||
| 114 | static public function getReadableListOfArrayAsHTML( array $aArray ) { |
||
| 125 | /** |
||
| 126 | * Returns the readable array contents. |
||
| 127 | * |
||
| 128 | * @since 3.3.0 |
||
| 129 | * @return string The HTML output generated from the given array. |
||
| 130 | */ |
||
| 131 | static public function getReadableArrayContentsHTML( $sKey, $vValue ) { |
||
| 158 | |||
| 159 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.