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