本文整理匯總了PHP中Finder::find_by_association方法的典型用法代碼示例。如果您正苦於以下問題:PHP Finder::find_by_association方法的具體用法?PHP Finder::find_by_association怎麽用?PHP Finder::find_by_association使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Finder
的用法示例。
在下文中一共展示了Finder::find_by_association方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: url
<?php
// Calculate what the header will be.
$sess = Context::session();
if (!($agency = Finder::find_by_association('Agency', get_user(), 'agency_student'))) {
$background = "background-image: url('" . AccessHelper::get_path() . "/public/images/event_manager.png');_background-image: none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . AccessHelper::get_path() . "/public/images/event_manager.png',sizingMethod='image');";
} else {
$agency = $agency[0];
$background = "background-repeat: no-repeat; background-image: url('" . Agency::get_theme_image($agency->attrib($agency->id_field), 'header_logo.png') . "');_background-image: none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" . Agency::get_theme_image($agency->attrib($agency->id_field), 'header_logo.png') . "',sizingMethod='image');";
}
echo "<" . "?xml version=\"1.0\" encoding=\"utf-8\"?" . ">";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Event Registration <?php
echo ($t = get("page_title")) ? ": " . $t : "";
?>
</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="<?php
echo AccessHelper::get_path();
?>
/public/style/screen.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php
echo AccessHelper::get_path();
?>
/public/style/print.css" media="print" />