コード例 #1
0
function M_ping_leftsub($fromsub_id, $fromlevel_id, $user_id)
{
    // Leaving the level
    M_ping_leftlevel($fromlevel_id, $user_id);
    // Leaving the sub
    $sub =& new M_Subscription($fromsub_id);
    $subleavingping_id = $sub->get_meta('leaving_ping');
    if (!empty($subleavingping_id)) {
        $ping =& new M_Ping($subleavingping_id);
        $ping->send_ping($fromsub_id, false, $user_id);
    }
}
コード例 #2
0
ファイル: class.ping.php プロジェクト: vilmark/vilmark_main
function M_ping_expiresub($sub_id, $from_level, $user_id)
{
    if (!empty($from_level)) {
        M_ping_leftlevel($from_level, $user_id);
    }
    $sub = Membership_Plugin::factory()->get_subscription($sub_id);
    $subleavingping_id = $sub->get_meta('leaving_ping');
    if (!empty($subleavingping_id)) {
        $ping = new M_Ping($subleavingping_id);
        membership_debug_log("M_ping_expiresub: LINE 548" . print_r($ping, true));
        $ping->send_ping($sub_id, false, $user_id);
    }
}