本文整理汇总了PHP中Problem::allForTable方法的典型用法代码示例。如果您正苦于以下问题:PHP Problem::allForTable方法的具体用法?PHP Problem::allForTable怎么用?PHP Problem::allForTable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Problem
的用法示例。
在下文中一共展示了Problem::allForTable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: all
/**
* Get all problem to show in error_log page
* @return mixed
*/
public function all()
{
$params = Input::all();
$output['cols'] = $this->getCols();
$output['rows'] = $this->getRows(Problem::allForTable($params));
return Response::json($output);
}
示例2: index
/**
* View all problems
* @param string $status status of problem ("all", "marked", "unmarked")
* @param string $data_type WATER / RAIN
* @return mixed
*/
public function index($status, $data_type)
{
$params = $this->getParams($status, $data_type);
$data = $this->dataForForm($status, $data_type);
$data['selectDate'] = true;
$data['title'] = 'Error Log';
Log::info($params);
$data['problems'] = Problem::allForTable($params);
return View::make('errorlog/index', $data);
}
示例3: index
public function index($status, $data_type)
{
$params = $this->getParams($status, $data_type);
$data = $this->dataForForm($status, $data_type);
// $params['start_date'] = date('Y-m-d', getTime());
// $params['start_time'] = '07:01';
$params['end_date_after'] = date('Y-m-d', getTime());
$params['end_time_after'] = '07:01';
$data['selectDate'] = false;
$data['title'] = 'Daily Operations';
$data['problems'] = Problem::allForTable($params);
return View::make('dailyop/index', $data);
}