Пример #1
0
function handleEvent($postObj)
{
    if ($postObj->Event == "subscribe") {
        handleSubscribe($postObj);
    } else {
        if ($postObj->Event == "unsubscribe") {
            handleUnsubscribe($postObj);
        } else {
            if ($postObj->Event == "SCAN") {
                handleScan($postObj);
            } else {
                if ($postObj->Event == "CLICK") {
                    handleClick($postObj);
                } else {
                    if ($postObj->Event == "VIEW") {
                        log_file("view test");
                    } else {
                        if ($postObj->Event == "TEMPLATESENDJOBFINISH") {
                            log_file("template msg send finished");
                        } else {
                            if ($postObj->Event == "LOCATION") {
                                handleLocation($postObj);
                            }
                        }
                    }
                }
            }
        }
    }
}
Пример #2
0
function handleEvent($postObj)
{
    if ($postObj->Event == "subscribe") {
        handleSubscribe($postObj);
    } else {
        if ($postObj->Event == "unsubscribe") {
            handleUnsubscribe($postObj);
        } else {
            if ($postObj->Event == "SCAN") {
                handleScan($postObj);
            } else {
                if ($postObj->Event == "CLICK") {
                    handleClick($postObj);
                } else {
                    if ($postObj->Event == "VIEW") {
                    } else {
                        if ($postObj->Event == "TEMPLATESENDJOBFINISH") {
                        } else {
                            if ($postObj->Event == "LOCATION") {
                            }
                        }
                    }
                }
            }
        }
    }
}