本文整理汇总了PHP中Calendar::make方法的典型用法代码示例。如果您正苦于以下问题:PHP Calendar::make方法的具体用法?PHP Calendar::make怎么用?PHP Calendar::make使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Calendar
的用法示例。
在下文中一共展示了Calendar::make方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: edit_profile
public function edit_profile()
{
$data['user'] = Users::find(Session::get('user_id'));
$data['minat'] = Kategori::get();
$data['cal'] = Calendar::make();
$data['cal']->setDayLabels(array('Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'));
$data['cal']->setMonthLabels(array('Januari', 'Februari', 'Maret', 'April', 'Mei', 'Jeni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'));
return View::make('edit_profile', $data);
}
示例2: getGuardiaCalendar
private function getGuardiaCalendar($events, $date, $navigation = FALSE, $basepath = '/guardia')
{
$cal = Calendar::make();
$cal->setDayLabels(array('Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', 'Domingo'));
$cal->setBasePath($basepath);
// Base path for navigation URLs
$cal->setDate($date);
//Set starting date
$cal->showNav($navigation);
// Show or hide navigation
$cal->setEventsWrap(array('', ''));
$cal->setMonthLabels(array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'));
//Month names
$cal->setEvents($events);
// Receives the events array
$cal->setTableClass('table_cal');
//Set the table's class name
return $cal->generate();
}
示例3: configCal
public function configCal($date, $id)
{
$events = $this->reservation->getMaterialStatus($id);
$cal = Calendar::make();
$cal->setDate($date);
//Set starting date
$cal->setBasePath('/materials/' . $id . '/cal');
// Base path for navigation URLs
$cal->showNav(true);
// Show or hide navigation
$cal->setView('week');
//'day' or 'week' or null
$cal->setStartEndHours(8, 22);
// Set the hour range for day and week view
$cal->setTimeClass('ctime');
//Class Name for times column on day and week views
$cal->setEventsWrap(array("<div class='reserved'><p>", '</p></div>'));
// Set the event's content wrapper
$cal->setDayWrap(array('<div>', '</div>'));
//Set the day's number wrapper
$cal->setNextIcon('Volgende Week');
//Can also be html: <i class='fa fa-chevron-right'></i>
$cal->setPrevIcon('Vorige Week');
// Same as above
$cal->setDayLabels(array('Zon', 'Man', 'Din', 'Woe', 'Don', 'Vrij', 'Zat'));
//Label names for week days
$cal->setMonthLabels(array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'));
//Month names
$cal->setDateWrap(array('<div data-id="' . $id . '">', '</div>'));
//Set cell inner content wrapper
$cal->setTableClass('table calendar ' . $id);
//Set the table's class name
$cal->setHeadClass('table-header');
//Set top header's class name
$cal->setNextClass('btn');
// Set next btn class name
$cal->setPrevClass('btn');
// Set Prev btn class name
$cal->setEvents($events);
return $cal;
}
示例4: getTurnoCalendar
private function getTurnoCalendar($events, $date, $basepath = '/turno')
{
$cal = Calendar::make();
$cal->setDayLabels(array('Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', 'Domingo'));
$cal->setBasePath(Input::get('cdate'));
// Base path for navigation URLs
$cal->setDate($date);
//Set starting date
$cal->showNav(true);
// Show or hide navigation
//$cal->setView('week');
$cal->setEventsWrap(array('', ''));
//$cal->setEventsWrap(array('<div><p>', '</p></div>'));
$cal->setMonthLabels(array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'));
//Month names
$cal->setEvents($events);
// Receives the events array
$cal->setTableClass('table_cal');
//Set the table's class name
return $cal->generate();
}