本文整理汇总了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" />