|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Collection
Defined in structures.js
| Method Summary | |
Array
|
accept(<Function> filter, <Object> scope)
Applies a filter function on all the elements of the collection. |
Boolean
|
contains(<Object> obj)
Verify if the collection contains a given object |
Boolean
|
every(<Function> filter, <Object> scope)
Applies a filter function on all elements of the collection. |
Array
|
extract(<String> property)
Reads the value of the property 'property' in each element of the collection, and return the results in an Array object |
Array
|
grep(<RegExp> pattern)
Collect the collection members that satisfy a given regexp pattern. |
Object
|
inject(<Object> memo, <Function> iterator, <Object> scope)
Injects the results of an iterator over all collection elements. |
void
|
invoke(<String> method)
Call a given method of the collection items, using the provided arguments. |
Array
|
map(<Function> iterator, <Object> scope)
Returns a new copy of the collection applying a given iterator to every element |
Array
|
reject(<Function> filter, <Object> scope)
Applies a filter function on the collection's elements, returning back an array of elements that DON'T satisfy the filter |
Boolean
|
some(<Function> filter, <Object> scope)
Applies a filter function on all elements of the collection. |
Array
|
valid(<Function> filter, <Object> scope)
Applies a filter function on the collection's element, pushing the not null return values to a resulting array |
void
|
walk(<Function> iterator)
Applies an iterator function to all the members of the collection. |
| Method Detail |
Array accept(<Function> filter, <Object> scope)
filter - Filter function
scope - Scope object
Boolean contains(<Object> obj)
obj - Object to be searched
Boolean every(<Function> filter, <Object> scope)
filter - Filter function
scope - Scope object
Array extract(<String> property)
property - Property name
Array grep(<RegExp> pattern)
pattern - Regexp pattern
Object inject(<Object> memo, <Function> iterator, <Object> scope)
memo - Object to inject collection members
iterator - Iterator function
scope - Scope object
void invoke(<String> method)
method - Method name
Array map(<Function> iterator, <Object> scope)
iterator - Iterator function
scope - Scope object
Array reject(<Function> filter, <Object> scope)
filter - Filter function
scope - Scope object
Boolean some(<Function> filter, <Object> scope)
filter - Filter function
scope - Scope object
Array valid(<Function> filter, <Object> scope)
filter - Filter function
scope - Scope object
void walk(<Function> iterator)
iterator - Iterator function
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||