Lines Matching refs:namespace

39      * @param string $namespace Namespace (empty for default)
42 private static function getNamespaceDir($namespace = '') { argument
44 if ($namespace) {
45 $dir .= str_replace(':', '/', $namespace) . '/';
54 * @param string $namespace Namespace
59 private static function getEventFile($namespace, $year, $month) { argument
60 $dir = self::getNamespaceDir($namespace);
67 * @param string $namespace Namespace filter
73 public static function loadMonth($namespace, $year, $month, $useCache = true) { argument
76 $cached = CalendarEventCache::getMonthEvents($namespace, $year, $month);
85 if (strpos($namespace, '*') !== false || strpos($namespace, ';') !== false) {
86 $events = self::loadMonthMultiNamespace($namespace, $year, $month);
88 $eventFile = self::getEventFile($namespace, $year, $month);
94 CalendarEventCache::setMonthEvents($namespace, $year, $month, $events);
208 $namespace = $eventData['namespace'] ?? '';
229 $namespaceChanged = $oldNamespace !== null && $oldNamespace !== $namespace;
238 … $oldEventFile = self::getEventFile($oldNamespace ?? $namespace, (int)$oldYear, (int)$oldMonth);
257 … CalendarEventCache::invalidateMonth($oldNamespace ?? $namespace, (int)$oldYear, (int)$oldMonth);
262 $eventFile = self::getEventFile($namespace, $year, $month);
290 CalendarEventCache::invalidateMonth($namespace, $year, $month);
300 * @param string $namespace Namespace
303 public static function deleteEvent($eventId, $date, $namespace = '') { argument
311 $eventFile = self::getEventFile($namespace, $year, $month);
339 CalendarEventCache::invalidateMonth($namespace, $year, $month);
349 * @param string $namespace Namespace (use * for all)
352 public static function getEvent($eventId, $date, $namespace = '') { argument
358 $events = self::loadMonth($namespace, (int)$year, (int)$month);
413 $namespace = $options['namespace'] ?? '*';
429 $events = self::loadMonth($namespace, $year, $month);