本文整理汇总了PHP中Events::load方法的典型用法代码示例。如果您正苦于以下问题:PHP Events::load方法的具体用法?PHP Events::load怎么用?PHP Events::load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Events
的用法示例。
在下文中一共展示了Events::load方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: events
public function events($page = 'events')
{
$data = array();
$this->load->model('Events');
$events = new Events();
$events->load(1);
$data['events'] = $events;
//$this->Events->msg='k'; //insert
//$this->Events->save();
// echo '<div>' . var_export($this->Events, TRUE) . '</div>';
}
开发者ID:jithurjacob,项目名称:Semester-7-CS-CUSAT-New-Scheme-Student-Registration-CodeIgniter,代码行数:11,代码来源:placement+-+Copy.php
示例2: find_dupes
function find_dupes($f3, $event)
{
if ($_SESSION['admin'] && $event->state == 'imported') {
$n = Events::load("date(startdt) IS date('" . $event->startdt->format("Y-m-d") . "')" . " AND id IS NOT " . $event->id . " AND time(startdt) >= time('" . $event->startdt->format("H:i") . "', '-1 hour')" . " AND time(startdt) <= time('" . $event->startdt->format("H:i") . "', '+1 hour')");
/* Try to find duplicate events */
/* For now just make an array with this event in */
if (count($n) > 0) {
$f3->set("dupes", $n);
}
}
}