dbXapp
2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Toggle main menu visibility
Loading...
Searching...
No Matches
dbxContentLng.class.php
Go to the documentation of this file.
1
<?php
2
namespace
dbx\dbxContent;
3
4
class
dbxContentLng
{
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
}
dbx\dbxContent\dbxContentLng
Definition
dbxContentLng.class.php:4
dbx\dbxContent\dbxContentLng\current
static current()
Definition
dbxContentLng.class.php:6
dbx\dbxContent\dbxContentLng\ddFolder
static ddFolder(string $lng='')
Definition
dbxContentLng.class.php:14
dbx\dbxContent\dbxContentLng\ddContent
static ddContent(string $lng='')
Definition
dbxContentLng.class.php:10
dbx\dbxContent\dbxContentLng\permalinkMode
static permalinkMode()
Definition
dbxContentLng.class.php:18
dbx\dbxContent\dbxContentLng\isCmsPermalinkMode
static isCmsPermalinkMode()
Definition
dbxContentLng.class.php:27
dbx
DBX schema administration.
dbx
modules
dbxContent
include
dbxContentLng.class.php
Generated by
1.17.0