本文整理匯總了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'));