Description Usage Arguments Format Details Methods Private fields
Class to manage different types of resources.
1 2 3 | ResourceHandler$new(propertyName,
alwaysBeforeDeps,
notAfterDeps)
|
propertyName |
(character) Name of the property associated with the pipe. |
alwaysBeforeDeps |
(list) The dependences alwaysBefore (pipes that must be executed before this one). |
notAfterDeps |
(list) The dependences notAfter (pipes that cannot be executed after this one). |
An object of class R6ClassGenerator
of length 24.
It is a class that allows you to store the resources that are needed in the pipes to avoid having to repeatedly read from the file. File resources of type json are read and stored in memory.
isLoadResource From the resource path, it is checked if they have already been loaded. In this case, the list of the requested resource is returned. Otherwise, the resource variable is added to the list of resources, and the resource list is returned. In the event that the resource file does not exist, NULL is returned.
Usage
isLoadResource(pathResource)
Arguments
pathResource (character) Resource file path.
getResources Getter of resources variable.
Usage
getResources()
Value
Value of resources variable.
setResources Setter of resources.
Usage
setResources(resources)
Arguments
resources (list) The new value of resources.
getNamesResources Getter of names of resources.
Usage
getNamesResources()
Value
Value of names of resources.
resources (list) Variable that stores the lists of the different types of resources.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.