Java Doc for ArrayModule.java in  » EJB-Server-resin-3.1.5 » quercus » com » caucho » quercus » lib » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » quercus » com.caucho.quercus.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.quercus.module.AbstractQuercusModule
      com.caucho.quercus.lib.ArrayModule

ArrayModule
public class ArrayModule extends AbstractQuercusModule (Code)
PHP array routines.


Field Summary
final public static  booleanCASE_INSENSITIVE
    
final public static  intCASE_LOWER
    
final public static  booleanCASE_SENSITIVE
    
final public static  intCASE_UPPER
    
final public static  intEXTR_IF_EXISTS
    
final public static  intEXTR_OVERWRITE
    
final public static  intEXTR_PREFIX_ALL
    
final public static  intEXTR_PREFIX_IF_EXISTS
    
final public static  intEXTR_PREFIX_INVALID
    
final public static  intEXTR_PREFIX_SAME
    
final public static  intEXTR_REFS
    
final public static  intEXTR_SKIP
    
final public static  booleanKEY_RESET
    
final public static  booleanNOT_STRICT
    
final public static  booleanNO_KEY_RESET
    
final public static  intSORT_ASC
    
final public static  intSORT_DESC
    
final public static  intSORT_LOCALE_STRING
    
final public static  intSORT_NORMAL
    
final public static  intSORT_NUMERIC
    
final public static  intSORT_REGULAR
    
final public static  intSORT_REVERSE
    
final public static  intSORT_STRING
    
final public static  booleanSTRICT
    


Method Summary
public  Valuearray_change_key_case(Env env, ArrayValue array, int toCase)
    
public  Valuearray_chunk(Env env, ArrayValue array, int size, boolean preserveKeys)
    
public  Valuearray_combine(Env env, ArrayValue keys, ArrayValue values)
    
public  Valuearray_count_values(Env env, ArrayValue array)
    
public  Valuearray_diff(Env env, ArrayValue array, Value[] arrays)
    
public  Valuearray_diff_assoc(Env env, ArrayValue array, Value[] arrays)
    
public  Valuearray_diff_key(Env env, ArrayValue array, Value[] arrays)
    
public  Valuearray_diff_uassoc(Env env, ArrayValue array, Value[] arrays)
     Returns an array with everything that is in array and not in the other arrays, keys used for comparison aswell
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst.
public  Valuearray_diff_ukey(Env env, ArrayValue array, Value[] arrays)
     Returns an array with everything that is in array and not in the other arrays, keys used for comparison only
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst.
public  Valuearray_fill(Env env, long start, long num, Value value)
     Returns an array with a number of indices filled with the given value, starting at the start index.
public  ArrayValuearray_fill_keys(Env env, ArrayValue keyArray, Value value)
    
public  Valuearray_filter(Env env, ArrayValue array, Callback callback)
     Returns an array that filters out any values that do not hold true when used in the callback function.
public  Valuearray_flip(Env env, ArrayValue array)
     Returns an array with the given array's keys as values and its values as keys.
public  Valuearray_intersect(Env env, ArrayValue array, Value[] arrays)
     Returns an array with everything that is in array and also in the other arrays
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst.
public  Valuearray_intersect_assoc(Env env, ArrayValue array, Value[] arrays)
     Returns an array with everything that is in array and also in the other arrays, keys are also used in the comparison
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst.
public  Valuearray_intersect_key(Env env, ArrayValue array, Value[] arrays)
     Returns an array with everything that is in array and also in the other arrays, keys are only used in the comparison
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst.
public  Valuearray_intersect_uassoc(Env env, ArrayValue array, Value[] arrays)
     Returns an array with everything that is in array and also in the other arrays, keys are also used in the comparison.
public  Valuearray_intersect_ukey(Env env, ArrayValue array, Value[] arrays)
     Returns an array with everything that is in array and also in the other arrays, keys are only used in the comparison.
public static  booleanarray_key_exists(Env env, Value key, Value searchArray)
    
public  Valuearray_keys(Env env, ArrayValue array, Value searchValue, boolean isStrict)
    
public  Valuearray_map(Env env, Callback fun, ArrayValue arg, Value[] args)
     Maps the given function with the array arguments.
public  Valuearray_merge(Value[] args)
     Maps the given function with the array arguments.
public  Valuearray_merge_recursive(Value[] args)
     Maps the given function with the array arguments.
public static  booleanarray_multisort(Env env, Value[] arrays)
     Sort the arrays like rows in a database.
public  Valuearray_pad(Env env, ArrayValue input, long padSize, Value padValue)
     Returns an array with either the front/end padded with the pad value.
public  Valuearray_pop(Env env, Value value)
    
public  Valuearray_product(Env env, ArrayValue array)
     Returns the product of the input array's elements as a double.
public  intarray_push(Env env, ArrayValue array, Value[] values)
    
public  Valuearray_rand(Env env, ArrayValue array, long num)
    
public  Valuearray_reduce(Env env, ArrayValue array, Callback callback, Value initialValue)
     Returns the value of the array when its elements have been reduced using the callback function.
public  Valuearray_reverse(Env env, ArrayValue inputArray, boolean keyed)
    
public  Valuearray_search(Env env, Value needle, ArrayValue array, boolean strict)
    
public  Valuearray_shift(Env env, ArrayValue array)
    
public  Valuearray_slice(Env env, ArrayValue array, long offset, Value elements, boolean presKeys)
     Returns a chunk of the array.
public  Valuearray_splice(Env env, Value arrayVar, int offset, Value length, Value replace)
     Returns the removed chunk of the arrayV and splices in replace.
public  Valuearray_sum(Env env, ArrayValue array)
    
public  Valuearray_udiff(Env env, Value[] arrays)
     Creates an array with all the values of the first array that are not present in the other arrays, using a provided callback function to determine equivalence.
Parameters:
  arrays - first array is checked against the rest.
public  Valuearray_udiff_assoc(Env env, Value[] arrays)
     Creates an array with all the values of the first array that are not present in the other arrays, using a provided callback function to determine equivalence.
public  Valuearray_udiff_uassoc(Env env, Value[] arrays)
     Creates an array with all the values of the first array that are not present in the other arrays, using a provided callback function to determine equivalence.
public  Valuearray_uintersect(Env env, Value[] arrays)
     Creates an array with all the values of the first array that are present in the other arrays, using a provided callback function to determine equivalence. XXX: callback modifying arrays?
Parameters:
  arrays - first array is checked against the rest.
public  Valuearray_uintersect_assoc(Env env, Value[] arrays)
     Creates an array with all the values of the first array that are present in the other arrays, using a provided callback function to determine equivalence.
public  Valuearray_uintersect_uassoc(Env env, Value[] arrays)
     Creates an array with all the values of the first array that are present in the other arrays, using a provided callback function to determine equivalence.
public  Valuearray_unique(Env env, ArrayValue array)
    
public  Valuearray_unshift(Env env, ArrayValue array, Value[] values)
    
public  Valuearray_values(Env env, ArrayValue array)
     Returns the values in the passed array with numerical indices.
public  booleanarray_walk(Env env, ArrayValue array, Callback callback, Value userData)
     Executes a callback on each of the elements in the array.
public  booleanarray_walk_recursive(Env env, ArrayValue array, Callback callback, Value extra)
     Recursively executes a callback function on all elements in the array, including elements of elements (i.e., arrays within arrays).
public  booleanarsort(Env env, ArrayValue array, long sortFlag)
    
public static  booleanasort(Env env, ArrayValue array, long sortFlag)
    
public  ArrayValuecompact(Env env, Value[] variables)
     Creates an array of corresponding values to variables in the symbol name.
public static  Valuecount(Env env, Value value, boolean recursive)
     Returns the size of the array.
public static  Valuecurrent(Value value)
     Returns the current value of the array.
public static  Valueeach(Env env, Value value)
     Returns the next value of the array.
public static  Valueend(Value value)
    
public static  Valueextract(Env env, ArrayValue array, long rawType, Value valuePrefix)
    
public  String[]getLoadedExtensions()
     Returns true for the mysql extension.
public  booleanin_array(Value needle, ArrayValue stack, boolean strict)
    
public static  Valuekey(Value value)
     Returns the current key of the array.
public static  booleankey_exists(Env env, Value key, Value searchArray)
     Undocumented alias for ArrayModule.array_key_exists .
public  booleankrsort(Env env, ArrayValue array, long sortFlag)
    
public static  booleanksort(Env env, ArrayValue array, long sortFlag)
    
public static  Valuenatcasesort(ArrayValue array)
    
public static  Valuenatsort(ArrayValue array)
    
public static  Valuenext(Value value)
     Returns the next value of the array.
public static  Valuepos(Value value)
     Returns the current value of the array.
public static  Valueprev(Value value)
     Returns the previous value of the array.
public  Valuerange(Env env, Value start, Value end, long step)
    
public static  Valuereset(Value value)
    
public  booleanrsort(Env env, ArrayValue array, long sortFlag)
    
public static  Valueshuffle(ArrayValue array)
     Returns the current value of the array.
public static  Valuesizeof(Env env, Value value, boolean recursive)
     Returns the size of the array.
public  booleansort(Env env, ArrayValue array, long sortFlag)
    
public  ValuespliceImpl(Value var, ArrayValue array, int start, int end, ArrayValue replace)
    
public static  booleanuasort(Env env, ArrayValue array, Callback func, long sortFlag)
    
public static  booleanuksort(Env env, ArrayValue array, Callback func, long sortFlag)
    
public  booleanusort(Env env, ArrayValue array, Callback func, long sortFlag)
    

Field Detail
CASE_INSENSITIVE
final public static boolean CASE_INSENSITIVE(Code)



CASE_LOWER
final public static int CASE_LOWER(Code)



CASE_SENSITIVE
final public static boolean CASE_SENSITIVE(Code)



CASE_UPPER
final public static int CASE_UPPER(Code)



EXTR_IF_EXISTS
final public static int EXTR_IF_EXISTS(Code)



EXTR_OVERWRITE
final public static int EXTR_OVERWRITE(Code)



EXTR_PREFIX_ALL
final public static int EXTR_PREFIX_ALL(Code)



EXTR_PREFIX_IF_EXISTS
final public static int EXTR_PREFIX_IF_EXISTS(Code)



EXTR_PREFIX_INVALID
final public static int EXTR_PREFIX_INVALID(Code)



EXTR_PREFIX_SAME
final public static int EXTR_PREFIX_SAME(Code)



EXTR_REFS
final public static int EXTR_REFS(Code)



EXTR_SKIP
final public static int EXTR_SKIP(Code)



KEY_RESET
final public static boolean KEY_RESET(Code)



NOT_STRICT
final public static boolean NOT_STRICT(Code)



NO_KEY_RESET
final public static boolean NO_KEY_RESET(Code)



SORT_ASC
final public static int SORT_ASC(Code)



SORT_DESC
final public static int SORT_DESC(Code)



SORT_LOCALE_STRING
final public static int SORT_LOCALE_STRING(Code)



SORT_NORMAL
final public static int SORT_NORMAL(Code)



SORT_NUMERIC
final public static int SORT_NUMERIC(Code)



SORT_REGULAR
final public static int SORT_REGULAR(Code)



SORT_REVERSE
final public static int SORT_REVERSE(Code)



SORT_STRING
final public static int SORT_STRING(Code)



STRICT
final public static boolean STRICT(Code)





Method Detail
array_change_key_case
public Value array_change_key_case(Env env, ArrayValue array, int toCase)(Code)
Changes the key case



array_chunk
public Value array_chunk(Env env, ArrayValue array, int size, boolean preserveKeys)(Code)
Chunks the array



array_combine
public Value array_combine(Env env, ArrayValue keys, ArrayValue values)(Code)
Combines array



array_count_values
public Value array_count_values(Env env, ArrayValue array)(Code)
Counts the values



array_diff
public Value array_diff(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and not in the other arrays using a passed callback function for comparing
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst an array with all of the values that are in the primary array butnot in the other arrays



array_diff_assoc
public Value array_diff_assoc(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and not in the other arrays, keys also used
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst an array with all of the values that are in the primary array butnot in the other arrays



array_diff_key
public Value array_diff_key(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and not in the other arrays, keys used for comparison
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst an array with all of the values that are in the primary array butnot in the other arrays



array_diff_uassoc
public Value array_diff_uassoc(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and not in the other arrays, keys used for comparison aswell
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array butnot in the other arrays



array_diff_ukey
public Value array_diff_ukey(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and not in the other arrays, keys used for comparison only
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array butnot in the other arrays



array_fill
public Value array_fill(Env env, long start, long num, Value value)(Code)
Returns an array with a number of indices filled with the given value, starting at the start index.
Parameters:
  start - the index to start filling the array
Parameters:
  num - the number of entries to fill
Parameters:
  value - the value to fill the entries with an array filled with the given value starting from the given startindex



array_fill_keys
public ArrayValue array_fill_keys(Env env, ArrayValue keyArray, Value value)(Code)



array_filter
public Value array_filter(Env env, ArrayValue array, Callback callback)(Code)
Returns an array that filters out any values that do not hold true when used in the callback function.
Parameters:
  array - the array to filter
Parameters:
  callback - the function name for filtering a filtered array



array_flip
public Value array_flip(Env env, ArrayValue array)(Code)
Returns an array with the given array's keys as values and its values as keys. If the given array has matching values, the latest value will be transfered and the others will be lost.
Parameters:
  array - the array to flip an array with it's keys and values swapped



array_intersect
public Value array_intersect(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and also in the other arrays
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays



array_intersect_assoc
public Value array_intersect_assoc(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and also in the other arrays, keys are also used in the comparison
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays



array_intersect_key
public Value array_intersect_key(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and also in the other arrays, keys are only used in the comparison
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays



array_intersect_uassoc
public Value array_intersect_uassoc(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and also in the other arrays, keys are also used in the comparison. Uses a callback function for evalutation the keys.
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays



array_intersect_ukey
public Value array_intersect_ukey(Env env, ArrayValue array, Value[] arrays)(Code)
Returns an array with everything that is in array and also in the other arrays, keys are only used in the comparison. Uses a callback function for evalutation the keys.
Parameters:
  array - the primary array
Parameters:
  arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays



array_key_exists
public static boolean array_key_exists(Env env, Value key, Value searchArray)(Code)
Checks if the key is in the given array
Parameters:
  key - a key to check for in the array
Parameters:
  searchArray - the array to search for the key in true if the key is in the array, and false otherwise



array_keys
public Value array_keys(Env env, ArrayValue array, Value searchValue, boolean isStrict)(Code)
Returns an array of the keys in the given array
Parameters:
  array - the array to obtain the keys for
Parameters:
  searchValue - the corresponding value of the returned key array an array containing the keys



array_map
public Value array_map(Env env, Callback fun, ArrayValue arg, Value[] args)(Code)
Maps the given function with the array arguments. XXX: callback modifying array?
Parameters:
  fun - the function name
Parameters:
  args - the vector of array arguments an array with all of the mapped values



array_merge
public Value array_merge(Value[] args)(Code)
Maps the given function with the array arguments.
Parameters:
  args - the vector of array arguments an array with all of the mapped values



array_merge_recursive
public Value array_merge_recursive(Value[] args)(Code)
Maps the given function with the array arguments.
Parameters:
  args - the vector of array arguments an array with all of the mapped values



array_multisort
public static boolean array_multisort(Env env, Value[] arrays)(Code)
Sort the arrays like rows in a database.
Parameters:
  arrays - arrays to sort true on success, and false on failure



array_pad
public Value array_pad(Env env, ArrayValue input, long padSize, Value padValue)(Code)
Returns an array with either the front/end padded with the pad value. If the pad size is positive, the padding is performed on the end. If negative, then the array is padded on the front. The pad size is the new array size. If this size is not greater than the current array size, then the original input array is returned.
Parameters:
  input - the array to pad
Parameters:
  padSize - the amount to pad the array by
Parameters:
  padValue - determines front/back padding and the value to place in thepadded space a padded array



array_pop
public Value array_pop(Env env, Value value)(Code)
Pops off the top element



array_product
public Value array_product(Env env, ArrayValue array)(Code)
Returns the product of the input array's elements as a double.
Parameters:
  array - the array for who's product is to be found the produce of the array's elements



array_push
public int array_push(Env env, ArrayValue array, Value[] values)(Code)
Appends a value to the array the number of elements in the final array



array_rand
public Value array_rand(Env env, ArrayValue array, long num)(Code)
Returns num sized array of random keys from the given array
Parameters:
  array - the array from which the keys will come from
Parameters:
  num - the number of random keys to return the produce of the array's elements



array_reduce
public Value array_reduce(Env env, ArrayValue array, Callback callback, Value initialValue)(Code)
Returns the value of the array when its elements have been reduced using the callback function.
Parameters:
  array - the array to reduce
Parameters:
  callback - the function to use for reducing the array
Parameters:
  initialValue - used as the element before the first element of thearray for purposes of using the callback function the result from reducing the input array with the callbackfunction



array_reverse
public Value array_reverse(Env env, ArrayValue inputArray, boolean keyed)(Code)
Returns the inputted array reversed, preserving the keys if keyed is true
Parameters:
  inputArray - the array to reverse
Parameters:
  keyed - true if the keys are to be preservered the array in reverse



array_search
public Value array_search(Env env, Value needle, ArrayValue array, boolean strict)(Code)
Returns the key of the needle being searched for or false if it's not found
Parameters:
  needle - the value to search for
Parameters:
  array - the array to search
Parameters:
  strict - checks for type aswell the key of the needle



array_shift
public Value array_shift(Env env, ArrayValue array)(Code)
Shifts the elements in the array left by one, returning the leftmost value
Parameters:
  array - the array to shift the left most value in the array



array_slice
public Value array_slice(Env env, ArrayValue array, long offset, Value elements, boolean presKeys)(Code)
Returns a chunk of the array. The offset is the start index, elements is the number of values to take, and presKeys is if the keys are to be preserved. If offset is negative, then it's that number from the end of the array. If elements is negative, then the new array will have from offset to elements number of values.
Parameters:
  array - the array to take the chunk from
Parameters:
  offset - the start index for the new array chunk
Parameters:
  elements - the number of elements in the array chunk
Parameters:
  presKeys - true if the keys of the elements are to be preserved, falseotherwise the array chunk



array_splice
public Value array_splice(Env env, Value arrayVar, int offset, Value length, Value replace)(Code)
Returns the removed chunk of the arrayV and splices in replace. If offset is negative, then the start index is that far from the end. Otherwise, it is the start index. If length is not given then from start index to the end is removed. If length is negative, that is the index to stop removing elements. Otherwise that is the number of elements to remove. If replace is given, replace will be inserted into the arrayV at offset.
Parameters:
  array - the arrayV to splice
Parameters:
  offset - the start index for the new arrayV chunk
Parameters:
  length - the number of elements to remove / stop index
Parameters:
  replace - the elements to add to the arrayV the part of the arrayV removed from input



array_sum
public Value array_sum(Env env, ArrayValue array)(Code)
Returns the sum of the elements in the array
Parameters:
  array - the array to sum the sum of the elements



array_udiff
public Value array_udiff(Env env, Value[] arrays)(Code)
Creates an array with all the values of the first array that are not present in the other arrays, using a provided callback function to determine equivalence.
Parameters:
  arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are not in therest



array_udiff_assoc
public Value array_udiff_assoc(Env env, Value[] arrays)(Code)
Creates an array with all the values of the first array that are not present in the other arrays, using a provided callback function to determine equivalence. Also checks the key for equality using an internal comparison function.
Parameters:
  arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are not in therest



array_udiff_uassoc
public Value array_udiff_uassoc(Env env, Value[] arrays)(Code)
Creates an array with all the values of the first array that are not present in the other arrays, using a provided callback function to determine equivalence. Also checks keys using a provided callback function.
Parameters:
  arrays - first array is checked against the rest. Last two elementarethe callback functions. an array with all the values of the first array that are not in therest



array_uintersect
public Value array_uintersect(Env env, Value[] arrays)(Code)
Creates an array with all the values of the first array that are present in the other arrays, using a provided callback function to determine equivalence. XXX: callback modifying arrays?
Parameters:
  arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are in therest



array_uintersect_assoc
public Value array_uintersect_assoc(Env env, Value[] arrays)(Code)
Creates an array with all the values of the first array that are present in the other arrays, using a provided callback function to determine equivalence. Also checks the keys for equivalence using an internal comparison. XXX: callback modifying arrays?
Parameters:
  arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are in therest



array_uintersect_uassoc
public Value array_uintersect_uassoc(Env env, Value[] arrays)(Code)
Creates an array with all the values of the first array that are present in the other arrays, using a provided callback function to determine equivalence. Also checks the keys for equivalence using a pass callback function XXX: callback modifying arrays?
Parameters:
  arrays - first array is checked against the rest. Last two elementsare the callback functions. an array with all the values of the first array that are in therest



array_unique
public Value array_unique(Env env, ArrayValue array)(Code)
Returns the inputted array without duplicates
Parameters:
  array - the array to get rid of the duplicates from an array without duplicates



array_unshift
public Value array_unshift(Env env, ArrayValue array, Value[] values)(Code)
Prepends the elements to the array
Parameters:
  array - the array to shift
Parameters:
  values - the left most value in the array



array_values
public Value array_values(Env env, ArrayValue array)(Code)
Returns the values in the passed array with numerical indices.
Parameters:
  array - the array to get the values from an array with the values of the passed array



array_walk
public boolean array_walk(Env env, ArrayValue array, Callback callback, Value userData)(Code)
Executes a callback on each of the elements in the array.
Parameters:
  array - the array to walk along
Parameters:
  callback - the callback function
Parameters:
  userData - extra parameter required by the callback function true if the walk succedded, false otherwise



array_walk_recursive
public boolean array_walk_recursive(Env env, ArrayValue array, Callback callback, Value extra)(Code)
Recursively executes a callback function on all elements in the array, including elements of elements (i.e., arrays within arrays). Returns true if the process succeeded, otherwise false.
Parameters:
  array - the array to walk
Parameters:
  call - the name of the callback function
Parameters:
  extra - extra parameter required by the callback function true if the walk succedded, false otherwise



arsort
public boolean arsort(Env env, ArrayValue array, long sortFlag)(Code)
Sorts the array based on values in reverse order, preserving keys
Parameters:
  array - the array to sort
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



asort
public static boolean asort(Env env, ArrayValue array, long sortFlag)(Code)
Sorts the array based on values in ascending order, preserving keys
Parameters:
  array - the array to sort
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



compact
public ArrayValue compact(Env env, Value[] variables)(Code)
Creates an array of corresponding values to variables in the symbol name. The passed parameters are the names of the variables to be added to the array.
Parameters:
  variables - contains the names of variables to add to the array an array with the values of variables that match those passed



count
public static Value count(Env env, Value value, boolean recursive)(Code)
Returns the size of the array.



current
public static Value current(Value value)(Code)
Returns the current value of the array.



each
public static Value each(Env env, Value value)(Code)
Returns the next value of the array.



end
public static Value end(Value value)(Code)
Resets the pointer to the end



extract
public static Value extract(Env env, ArrayValue array, long rawType, Value valuePrefix)(Code)
Inputs new variables into the symbol table from the passed array
Parameters:
  array - the array contained the new variables
Parameters:
  rawType - flag to determine how to handle collisions
Parameters:
  valuePrefix - used along with the flag the number of new variables added from the array to the symboltable



getLoadedExtensions
public String[] getLoadedExtensions()(Code)
Returns true for the mysql extension.



in_array
public boolean in_array(Value needle, ArrayValue stack, boolean strict)(Code)
Determines if the key is in the array
Parameters:
  needle - the array to sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



key
public static Value key(Value value)(Code)
Returns the current key of the array.



key_exists
public static boolean key_exists(Env env, Value key, Value searchArray)(Code)
Undocumented alias for ArrayModule.array_key_exists .



krsort
public boolean krsort(Env env, ArrayValue array, long sortFlag)(Code)
Sorts the array based on keys in reverse order, preserving keys
Parameters:
  array - the array to sort
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



ksort
public static boolean ksort(Env env, ArrayValue array, long sortFlag)(Code)
Sorts the array based on keys in ascending order, preserving keys
Parameters:
  array - the array to sort
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



natcasesort
public static Value natcasesort(ArrayValue array)(Code)
Sorts the array based on string values using natural order, preserving keys, case insensitive
Parameters:
  array - the array to sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



natsort
public static Value natsort(ArrayValue array)(Code)
Sorts the array based on string values using natural order, preserving keys, case sensitive
Parameters:
  array - the array to sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



next
public static Value next(Value value)(Code)
Returns the next value of the array.



pos
public static Value pos(Value value)(Code)
Returns the current value of the array.



prev
public static Value prev(Value value)(Code)
Returns the previous value of the array.



range
public Value range(Env env, Value start, Value end, long step)(Code)
Creates an array using the start and end values provided
Parameters:
  start - the 0 index element
Parameters:
  end - the length - 1 index element
Parameters:
  step - the new value is increased by this to determine the value forthe next element the new array



reset
public static Value reset(Value value)(Code)
Resets the pointer



rsort
public boolean rsort(Env env, ArrayValue array, long sortFlag)(Code)
Sorts the array based on values in reverse order
Parameters:
  array - the array to sort
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



shuffle
public static Value shuffle(ArrayValue array)(Code)
Returns the current value of the array.



sizeof
public static Value sizeof(Env env, Value value, boolean recursive)(Code)
Returns the size of the array.



sort
public boolean sort(Env env, ArrayValue array, long sortFlag)(Code)
Sorts the array based on values in ascending order
Parameters:
  array - the array to sort
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



spliceImpl
public Value spliceImpl(Value var, ArrayValue array, int start, int end, ArrayValue replace)(Code)



uasort
public static boolean uasort(Env env, ArrayValue array, Callback func, long sortFlag)(Code)
Sorts the array based on values in ascending order using a callback function
Parameters:
  array - the array to sort
Parameters:
  func - the name of the callback function
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



uksort
public static boolean uksort(Env env, ArrayValue array, Callback func, long sortFlag)(Code)
Sorts the array based on values in ascending order using a callback function
Parameters:
  array - the array to sort
Parameters:
  func - the name of the callback function
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



usort
public boolean usort(Env env, ArrayValue array, Callback func, long sortFlag)(Code)
Sorts the array based on values in ascending order using a callback function
Parameters:
  array - the array to sort
Parameters:
  func - the name of the callback function
Parameters:
  sortFlag - provides optional methods to process the sort true if the sort works, false otherwise
throws:
  ClassCastException - if the elements are not mutually comparable



Fields inherited from com.caucho.quercus.module.AbstractQuercusModule
final protected static int PHP_INI_ALL(Code)(Java Doc)
final protected static int PHP_INI_PERDIR(Code)(Java Doc)
final protected static int PHP_INI_SYSTEM(Code)(Java Doc)
final protected static int PHP_INI_USER(Code)(Java Doc)

Methods inherited from com.caucho.quercus.module.AbstractQuercusModule
public Map<String, Value> getConstMap()(Code)(Java Doc)
public IniDefinitions getIniDefinitions()(Code)(Java Doc)
public String[] getLoadedExtensions()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.