1. Script object OG.Module

    Article: AN0002180Updated:

    The object is used for work with modules.

    Object properties

    Název Popis
    object this[string code] Method returns object that provides module.
    bool IsExistActive(string code) Function checks, whether module with the given code exists.
    string GetModuleCode(string name) Function returns module code according to the defined code regardless version.
    string GetModuleCode(string name, string version) Function returns module code according to the defined code and version.
    void SendSMS(string phone, string message) Method sends SMS message.
    bool IsAllowSendSMS Indication, whether module can send SMS.

    Examples

    Getting an object from module:

    var o = OG.Module['code'];

×