dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Loading...
Searching...
No Matches
dbxContentLng.class.php
Go to the documentation of this file.
1<?php
2namespace dbx\dbxContent;
3
5
6 public static function current(): string {
7 return function_exists('dbx_lng_current') ? dbx_lng_current() : 'de';
8 }
9
10 public static function ddContent(string $lng = ''): string {
11 return function_exists('dbx_lng_name') ? dbx_lng_name('content', $lng) : 'content_de';
12 }
13
14 public static function ddFolder(string $lng = ''): string {
15 return function_exists('dbx_lng_name') ? dbx_lng_name('content_folder', $lng) : 'content_folder_de';
16 }
17
18 public static function permalinkMode(): string {
19 $mode = strtolower(trim((string) dbx()->get_config('dbxContent', 'permalink_mode')));
20 if ($mode === 'undef' || $mode === '') {
21 $mode = strtolower(trim((string) dbx()->get_config('dbxContent', 'mode')));
22 }
23
24 return $mode === 'cms' ? 'cms' : 'content';
25 }
26
27 public static function isCmsPermalinkMode(): bool {
28 return self::permalinkMode() === 'cms';
29 }
30}
static ddFolder(string $lng='')
static ddContent(string $lng='')
DBX schema administration.