Global

Members


module:Core/Acl


module:Core/Controller


<constant> module:Core/Error


<constant> module:Core/Events


module:Core/Language


<constant> module:Core/Logger


<constant> module:Core/PluginManager


<constant> module:Core/Routing


<constant> module:Data/DataManager


<constant> module:Data/Validation


<constant> module:Utils/Cookie


<constant> module:Utils/Utils


<constant> module:View/Alert


<constant> module:View/HbsHelpers


<constant> module:View/Template


<constant> module:View/ViewManager

Methods


hasDelta()

Checks if at least one of the linked collections has a delta.

Returns:

true if at least 1 linked collection has a delta.

Type
boolean

hasDelta()

Checks if there is anything in the deltas.

Returns:

true if some records are to be created, linked or unlinked to the bean.

Type
boolean

paginate( [options])

Paginates the collection. In the use case of a collection field, we pass collectionField option in order to hit the collection API.

Parameters:
Name Type Argument Description
options Object <optional>

A hash of options.

Properties
Name Type Argument Description
storedFilter Array.<string> <optional>

An array of existing filters to be applied.

view string <optional>

If you are paginating a collection field, passing the view option will make sure we read the field definition specified in the view defs. It is especially important in order to use the same order_by value that was used for the first fetch of the collection.

Returns:

The created fetch request.

Type
SUGAR.HttpRequest

resetPagination()

In a use case of a collection field, we set the offset and next_offset to an empty object. In other use cases, we call the parent.