mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-18 09:28:41 +00:00
update
This commit is contained in:
parent
a966cb91cd
commit
126a0cf004
|
|
@ -58,7 +58,7 @@ final class BackendController extends Controller implements DashboardElementInte
|
|||
|
||||
/** @var \Modules\Calendar\Models\Calendar $calendar */
|
||||
$calendar = CalendarMapper::get()->where('id', 1)->execute();
|
||||
$calendar->date = new SmartDateTime((string) ($request->getData('date') ?? 'now'));
|
||||
$calendar->date = new SmartDateTime($request->getDataString('date') ?? 'now');
|
||||
$view->data['calendar'] = $calendar;
|
||||
|
||||
$calendarEventPopup = new \Modules\Calendar\Theme\Backend\Components\Event\BaseView($this->app->l11nManager, $request, $response);
|
||||
|
|
@ -86,7 +86,7 @@ final class BackendController extends Controller implements DashboardElementInte
|
|||
|
||||
/** @var \Modules\Calendar\Models\Calendar $calendar */
|
||||
$calendar = CalendarMapper::get()->where('id', 1)->execute();
|
||||
$calendar->date = new SmartDateTime((string) ($request->getData('date') ?? 'now'));
|
||||
$calendar->date = new SmartDateTime($request->getDataString('date') ?? 'now');
|
||||
$view->data['cal'] = $calendar;
|
||||
|
||||
return $view;
|
||||
|
|
|
|||
|
|
@ -160,7 +160,9 @@ class Schedule
|
|||
/**
|
||||
* @param int $status Schedule status
|
||||
*
|
||||
* @return $this
|
||||
* @return self
|
||||
*
|
||||
* @throws InvalidEnumValue
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
@ -188,7 +190,9 @@ class Schedule
|
|||
/**
|
||||
* @param int $freqType Frequency type
|
||||
*
|
||||
* @return $this
|
||||
* @return self
|
||||
*
|
||||
* @throws InvalidEnumValue
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
@ -216,7 +220,9 @@ class Schedule
|
|||
/**
|
||||
* @param int $patternInterval Interval type
|
||||
*
|
||||
* @return $this
|
||||
* @return self
|
||||
*
|
||||
* @throws InvalidEnumValue
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -71,14 +71,12 @@ final class Autoloader
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws AutoloadException Throws this exception if the class to autoload doesn't exist. This could also be related to a wrong namespace/file path correlation.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function defaultAutoloader(string $class) : void
|
||||
{
|
||||
$class = \ltrim($class, '\\');
|
||||
$class = \str_replace(['_', '\\'], '/', $class);
|
||||
$class = \strtr($class, '_\\', '//');
|
||||
|
||||
foreach (self::$paths as $path) {
|
||||
$file = $path . $class . '.php';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user