rialto.lang
| Name space |
rialto.lang |
| FILE |
rialtoEngine\javascript\core\baseRialto.js |
| NAME |
rialto.lang |
| INHERITS |
|
| VERSION |
0.86 |
| update |
|
| DESCRIPTION |
methods to manipulate data |
CONSTRUCTOR
Example:
this is an abstract object and all the method must be call using the rialto.lang prefix
PUBLIC METHODS
| Method |
Arguments list |
Return value |
Inherits |
To redefine |
|
addMethods
|
object proto,object methodList |
void |
no |
no |
|
extendObject and extend
|
object class,object methodList |
void |
no |
no |
|
isArray
|
object object |
boolean |
no |
no |
|
isBoolean
|
object object |
boolean |
no |
no |
|
isDate
|
object object |
boolean |
no |
no |
|
isFunction
|
object object |
boolean |
no |
no |
|
isNumber
|
object object |
boolean |
no |
no |
|
isString
|
object object,boolean notEmpty |
boolean |
no |
no |
|
isStringIn
|
object object,array listValue |
boolean |
no |
no |
|
link
|
object object,function function |
function |
no |
no |
addMethods
to add a set of functions to an object
Parameters:
object proto:object on which we want to add the methods
object methodList:array of method to add
Example:
rialto.lang.addMethods(myObject, {function1: function() {...},function2:function(){...}})
extendObject and extend
to add a set of functions to the prototype of a class
Parameters:
object class:class on which we want to add the methods on the prototype
object methodList:array of method to add
Example:
rialto.lang.extendObject(myClass, {function1: function() {...},function2:function(){...}})
isArray
test if the object is an array
Parameters:
object object:object to test
isBoolean
test if the object is a boolean
Parameters:
object object:object to test
isDate
test if the object is a date
Parameters:
object object:object to test
isFunction
test if the object is a function
Parameters:
object object:object to test
isNumber
test if the object is a number
Parameters:
object object:object to test
isString
test if the object is a string
Parameters:
object object:object to test
boolean notEmpty:if true we want that the string is not empty
isStringIn
test if the object is a string an if the value is one of the list
Parameters:
object object:object to test
array listValue:list of value we want to test
link
to execute the given function apply to the given object
Parameters:
object object:object to re presrent this in the function context
function function:function to execute