本文整理汇总了PHP中Logs::whereraw方法的典型用法代码示例。如果您正苦于以下问题:PHP Logs::whereraw方法的具体用法?PHP Logs::whereraw怎么用?PHP Logs::whereraw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logs
的用法示例。
在下文中一共展示了Logs::whereraw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show2
public function show2($LogKey1 = NULL, $LogKey2 = NULL)
{
$clause = "LogKey1 = " . $LogKey1;
$filters = array();
if (Input::get('FILTERS-ALL') != "T") {
$filters = $this->ArrayOfFilters(Input::all());
$clause = $this->GetFilterClause($filters) . "LogKey1 = " . $LogKey1;
} else {
foreach (LogType::all() as $logType) {
array_unshift($filters, $logType->ID);
}
}
if ($LogKey2) {
$clause = $clause . " and LogKey2 = " . $LogKey2;
}
$logs = Logs::whereraw($clause)->get();
$kTyp = KitTypes::find($LogKey1);
$kit = Kits::find($LogKey2);
$title = "Log for " . $kTyp->Name . " -> " . $kit->Name;
if ((int) $kit->Specialized == 1) {
$title = $title . ' + ' . $kit->SecializedName;
}
return CheckIfAuthenticated('Logs.show', ['ID' => $LogKey2, 'logs' => $logs, 'logTitle' => $title, 'logTypes' => LogType::all(), 'filters' => $filters], 'home.index', [], true);
}