Lines Matching refs:namespace

40      * @param string $namespace Namespace (empty for default)
43 private static function getNamespaceDir($namespace = '') { argument
45 if ($namespace) {
46 $dir .= str_replace(':', '/', $namespace) . '/';
55 * @param string $namespace Namespace
60 private static function getEventFile($namespace, $year, $month) { argument
61 $dir = self::getNamespaceDir($namespace);
68 * @param string $namespace Namespace filter
74 public static function loadMonth($namespace, $year, $month, $useCache = true) { argument
77 $cached = CalendarEventCache::getMonthEvents($namespace, $year, $month);
86 if (strpos($namespace, '*') !== false || strpos($namespace, ';') !== false) {
87 $events = self::loadMonthMultiNamespace($namespace, $year, $month);
89 $eventFile = self::getEventFile($namespace, $year, $month);
95 CalendarEventCache::setMonthEvents($namespace, $year, $month, $events);
209 $namespace = $eventData['namespace'] ?? '';
230 $namespaceChanged = $oldNamespace !== null && $oldNamespace !== $namespace;
239 … $oldEventFile = self::getEventFile($oldNamespace ?? $namespace, (int)$oldYear, (int)$oldMonth);
258 … CalendarEventCache::invalidateMonth($oldNamespace ?? $namespace, (int)$oldYear, (int)$oldMonth);
263 $eventFile = self::getEventFile($namespace, $year, $month);
291 CalendarEventCache::invalidateMonth($namespace, $year, $month);
301 * @param string $namespace Namespace
304 public static function deleteEvent($eventId, $date, $namespace = '') { argument
312 $eventFile = self::getEventFile($namespace, $year, $month);
340 CalendarEventCache::invalidateMonth($namespace, $year, $month);
350 * @param string $namespace Namespace (use * for all)
353 public static function getEvent($eventId, $date, $namespace = '') { argument
359 $events = self::loadMonth($namespace, (int)$year, (int)$month);
414 $namespace = $options['namespace'] ?? '*';
430 $events = self::loadMonth($namespace, $year, $month);