RSAddonYUI Class
Item Index
Methods
_captureYUIModuleDetails
-
res
If the resource is a YUI module, augments its metadata with metadata about the YUI module.
Parameters:
-
resObjectresource metadata
Returns:
_getYUIDependencies
-
env -
poslKey -
lang -
module
Returns precomputed dependencies saved by _setYuiSorted.
Parameters:
-
envStringruntime environment (either
client, orserver) -
poslKeyStringkey (representing the POSL) under which to save the moduldes
-
langStringYUI language code
-
moduleStringYUI module name for which the precomputed dependencies are for
Returns:
_makeYUIModuleConfig
-
env -
res
Generates the YUI configuration for the resource.
Parameters:
-
envStringruntime environment (either
client, orserver) -
resObjectthe resource metadata
Returns:
_precomputeYUIDependencies
-
lang -
env -
mojit -
modules -
required
Precomputes a set of dependencies.
Parameters:
-
langStringYUI language code
-
envStringruntime environment (either
client, orserver) -
mojitStringname of the mojit
-
modulesObjectYUI module metadata
-
requiredObjectlookup hash of YUI module names that are required
Returns:
_setYUIDependencies
-
env -
poslKey -
lang -
module -
sorted
Saves the precomputed YUI module dependencies for later.
Parameters:
-
envStringruntime environment (either
client, orserver) -
poslKeyStringkey (representing the POSL) under which to save the moduldes
-
langStringYUI language code
-
moduleStringYUI module name for which the precomputed dependencies are for
-
sortedObjectthe precomputed dependencies
Returns:
addResourceVersion
-
res
Using AOP, this is called before the ResourceStore's version. If the resource is a YUI module, augments the metadata with details about the YUI module.
Parameters:
-
resObjectresource version metadata
Returns:
findResourceVersionByConvention
-
source -
mojitType
Using AOP, this is called after the ResourceStore's version.
Parameters:
-
sourceObjectmetadata about where the resource is located
-
mojitTypeStringname of mojit to which the resource likely belongs
Returns:
getConfigAllMojits
-
env -
ctx
Returns a datastructure which tells a YUI instance where to find the YUI modules that are in all the mojits.
Parameters:
-
envStringruntime environment (either
client, orserver) -
ctxObjectruntime context
Returns:
initializer
-
config
This methods is part of Y.Plugin.Base. See documentation for that for details.
Parameters:
-
configObjectConfiguration object as per Y.Plugin.Base
Returns:
onGetMojitTypeDetails
-
evt
This is called when the ResourceStore fires this event. It augments the mojit type details with the precomputed YUI module dependencies.
Parameters:
-
evtObjectThe fired event.
Returns:
onMojitResourcesResolved
-
evt
This is called when the ResourceStore fires this event. It precomputes the YUI module dependencies, to be used later during onGetMojitTypeDetails.
Parameters:
-
evtObjectThe fired event
Returns:
parseResourceVersion
-
source -
type -
subtype -
mojitType
Using AOP, this is called before the ResourceStore's version.
Parameters:
-
sourceObjectmetadata about where the resource is located
-
typeStringtype of the resource
-
subtypeStringsubtype of the resource
-
mojitTypeStringname of mojit to which the resource likely belongs
