Engine for Web Applications

package

version 1.9.6

Global utilities.

This class resides in the global namespace. This class participates in the engine library.

Index

Example Index

Object Index

Method Index

Examples

Using a Package

Shows how to create and use a new package.

Example Code

Package("MyCompany.Products.Widgets");
MyCompany.Products.Widgets.TheWidget = {
   this.CustomFunction = function(){
      /* ... */
   };
};
var MyWidget = new MyCompany.Products.Widgets.TheWidget();

VerifyPackage

Demonstrates how to verify if a package exists.

Example Code

if( VerifyPackage("MyCompany.Products.Widgets") ){
   /* ... */
};

Objects

DATATYPES

Enumeration of object types.

Properties

Methods

GetPackage

Creates an object hierarchy based on the supplied name.

Syntax

v = GetPackage( sPath )

Parameters

Returns

v as object: Returns the object corresponding to the specified hierarchy.

Package

Creates an object hierarchy based on the supplied name.

Syntax

void Package( sPath )

Parameters

ValidatePackage

Verifies the specified hierarchy exists.

Syntax

v = ValidatePackage( sPath, bObjOut )

Parameters

Returns

v as boolean: Returns true if the hierachy exists, or the matching object if bObjOut is set to true.