本文整理匯總了PHP中Attachments::getAttachLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP Attachments::getAttachLink方法的具體用法?PHP Attachments::getAttachLink怎麽用?PHP Attachments::getAttachLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Attachments
的用法示例。
在下文中一共展示了Attachments::getAttachLink方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: df
}
}
if ($do == "del" && !empty($id)) {
$deleted = false;
$deleted = $standard->del($id);
}
if ($do == "edit") {
if (!empty($id)) {
$item = $standard->read("*", $id);
if (!empty($item['publish_time'])) {
$item['publish_date'] = df($item['publish_time']);
}
if (!empty($item['force_time'])) {
$item['force_date'] = df($item['force_time']);
}
if (!empty($item['attachment_id'])) {
$item['attach'] = $attachment_model->getAttachLink($item['attachment_id']);
}
setvar("item", $item);
}
setvar("StandardTypes", $_PB_CACHE['standardtype']);
$tpl_file = "standard.edit";
template($tpl_file, true);
}
}
$amount = $standard->findCount(null, $conditions);
$page->setPagenav($amount);
$result = $standard->findAll("Standard.*,t.name AS typename", array("LEFT JOIN {$tb_prefix}standardtypes t ON Standard.type_id=t.id"), $conditions, "Standard.id DESC", $page->firstcount, $page->displaypg);
setvar("Items", $result);
setvar("ByPages", $page->pagenav);
template($tpl_file);