new Builder()
- Source:
Extends
Classes
Methods
bind(event, callbackopt, listenersConfigopt) → {string}
- Source:
- Inherited From:
returns listener Id
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | function | event name of function with name |
|
callback |
function | ApplicationPrototype.Instance.BindListenerConfig |
<optional> |
function that will listen data |
listenersConfig |
ApplicationPrototype.Instance.BindListenerConfig | string |
<optional> |
of lis event name of function with name |
Returns:
- Type
- string
consoleOptions(optionsopt) → {ApplicationPrototype.Builder.ConsoleOptions}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
ApplicationPrototype.Builder.ConsoleOptions |
<optional> |
Returns:
crudEvents(context, publicMethods, privateMethods) → {ApplicationPrototype.Instance}
- Source:
- Inherited From:
returns listener Id
Parameters:
Name | Type | Description |
---|---|---|
context |
Object.<string, any> | will be used as a base for ApplicationPrototype instance that will be returned |
publicMethods |
Object.<string, function()> | list of public methods available from returned instance |
privateMethods |
Object.<string, function()> | list of private methods available only for instance's methods |
Returns:
debugEnabled(statusopt) → {boolean}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
status |
boolean |
<optional> |
Returns:
- Type
- boolean
emit(event, argsopt, trackopt, noSkipStopReturnopt)
- Source:
- Inherited From:
emits an application event
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
event |
string | event name |
||
args |
Array.<any> |
<optional> |
arguments passed with event |
|
track |
boolean |
<optional> |
false
|
indicate if to use tracked handler or internal |
noSkipStopReturn |
boolean |
<optional> |
false
|
indicate if event flow can be stopped by a |
isBrowser() → {boolean}
- Source:
Returns:
- Type
- boolean
isNode() → {boolean}
- Source:
Returns:
- Type
- boolean
modulePath(pathopt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
string |
<optional> |
Returns:
- Type
- string
moduleRegister(path, modules) → {ApplicationPrototype.Builder.ModuleStore}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
path |
string | path that will be used as |
modules |
Array.<string> | list of modules names that should be registered |
Returns:
off(event, specifiedEventIdopt) → {boolean}
- Source:
- Inherited From:
remove all event listeners
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | event or events names separated by comma |
|
specifiedEventId |
string |
<optional> |
event name of function with name |
Returns:
- Type
- boolean
on(event, callbackopt, specifiedEventIdopt) → {string}
- Source:
- Inherited From:
returns listener Id
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | function | event name of function with name |
|
callback |
function |
<optional> |
function that will listen data |
specifiedEventId |
string |
<optional> |
event name of function with name |
Returns:
- Type
- string
once(event, callbackopt, specifiedEventIdopt) → {string}
- Source:
- Inherited From:
returns listener Id
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | function | event name of function with name |
|
callback |
function |
<optional> |
function that will listen data |
specifiedEventId |
string |
<optional> |
event name of function with name |
Returns:
- Type
- string
property(propertyName, getter, setteropt, configopt)
- Source:
- Overrides:
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
propertyName |
string | |||||||||||||||||
getter |
ApplicationPrototype.Instance.PropertyHandler | |||||||||||||||||
setter |
ApplicationPrototype.Instance.PropertyHandler |
<optional> |
||||||||||||||||
config |
object |
<optional> |
Properties
|
Fires:
- ApplicationPrototype.Instance.event:__onSet
- ApplicationPrototype.Instance.event:__onGet
- ApplicationPrototype.Instance.event:__afterGet
- ApplicationPrototype.Instance.event:__afterGet
- ApplicationPrototype.Instance.event:__onSet::propName
- ApplicationPrototype.Instance.event:__onGet::propName
- ApplicationPrototype.Instance.event:__afterGet::propName
- ApplicationPrototype.Instance.event:__afterGet::propName
require(events, callbackopt) → {PromiseLike.<any>}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
events |
string | Array.<string> | List of Events Names or Array of Events Mapping like [ "uriLoad :: uri-load", "ePrototype :: ExtensionsPrototype" ] |
|
callback |
function |
<optional> |
Callback that will receive Module |
Returns:
- Type
- PromiseLike.<any>
runModulesInFiles(statusopt) → {boolean}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
status |
boolean |
<optional> |
Returns:
- Type
- boolean
Type Definitions
ApplicationModule
- Source:
Properties:
Name | Type | Description |
---|---|---|
$request |
PromiseLike.<XMLHttpRequest> | resolves module exports |
exports |
function | module exports handler |
atime |
number | unix time in milliseconds |
Application |
function | returns current application |
cache |
function | returns module's reserved cache object |
require |
function | require modules from module's folder |
resourceUrl |
function | returns module's resource URL |
meta |
ApplicationPrototype.Builder.ModuleMeta | module's meta information |
Type:
- Object
ConsoleOptions
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
file |
boolean |
<optional> |
enable/disable showing filename in console log. default value is |
contextName |
boolean |
<optional> |
enable/disable showing context Execution info in console log. default value is |
timestamp |
boolean |
<optional> |
enable/disable showing current timestamp in console log. default value is |
logType |
boolean |
<optional> |
enable/disable showing log type in console log. default value is `true |
Type:
- object
ModuleMeta
- Source:
Properties:
Name | Type | Description |
---|---|---|
store |
ApplicationPrototype.Builder.ModuleStore | same as |
$requestQuery |
PromiseLike.<string> | XMLHttpRequest used for obtaining Module's Content |
module_path |
string | module's path |
path |
string | module's internal path used as identifier of module |
name |
string | module's name |
__dirname |
string | module's dirname |
Type:
- object
ModuleResourceUrl
- Source:
resources url is composed from module's plath
+ resource path
Type:
- string
ModuleStore
- Source:
modules store where are indexed modules
Type:
- object
moduleResolve(module, pathopt) → {ApplicationPrototype.Builder.ModuleMeta}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
module |
string | module name |
|
path |
string |
<optional> |
module path |