當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Companies::setId方法代碼示例

本文整理匯總了PHP中Companies::setId方法的典型用法代碼示例。如果您正苦於以下問題:PHP Companies::setId方法的具體用法?PHP Companies::setId怎麽用?PHP Companies::setId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Companies的用法示例。


在下文中一共展示了Companies::setId方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: VALUE

        }
        $push_data['company'] = $company->info;
        $push_data['member'] = $member->info;
        if (!empty($company->info)) {
            $pdb->Execute("REPLACE INTO {$tb_prefix}spacecaches (cache_spacename,company_id,data1,data2,expiration) VALUE ('" . $userid . "','" . $company->info['id'] . "','" . @serialize($push_data) . "',''," . ($time_stamp + $space_cache_cycle) . ")");
        }
    }
} elseif (!empty($_GET['id'])) {
    $id = intval($_GET['id']);
    $cache_data = $pdb->GetRow("SELECT data1 info FROM {$tb_prefix}spacecaches WHERE company_id='" . $id . "'");
    if (!empty($result)) {
        $info = @unserialize($cache_data['info']);
        $company->info = $info['company'];
        $member->info = $info['member'];
    } else {
        $company->setId($id);
        if (!empty($company->info['member_id'])) {
            $member->setId($company->info['member_id']);
        }
        $push_data['company'] = $company->info;
        $push_data['member'] = $member->info;
        if (!empty($company->info)) {
            $pdb->Execute("REPLACE INTO {$tb_prefix}spacecaches (cache_spacename,company_id,data1,data2,expiration) VALUE ('" . $company->info['cache_spacename'] . "','" . $id . "','" . @serialize($push_data) . "',''," . ($time_stamp + $space_cache_cycle) . ")");
        }
    }
}
if (isset($company->info['status']) && $company->info['status'] === 0) {
    header_sent(L('company_checking'));
    exit;
} elseif (empty($company->info) || !$company->info) {
    header_sent(L('data_not_exists'));
開發者ID:renduples,項目名稱:alibtob,代碼行數:31,代碼來源:common.inc.php


注:本文中的Companies::setId方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。