Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
Fluent
set_force_is_frontend
Fluent::set_force_is_frontend PHP Method
Fluent Class Documentation
ファイルを表示
Open project: tractorcow/silverstripe-fluent
set_force_is_frontend()
public
static
method
Sets whether to force "is_frontend" to return true or false. This can be used for situations where the frontend controllers are not involved, e.g. API modules, unit testing or retrieving data programmatically.
public
static
set_force_is_frontend
(
boolean
$force
= true )
$force
boolean
public static function set_force_is_frontend($force = true) { self::$force_is_frontend = $force; }
Fluent
alias
any_match
current_locale
db_field_for_locale
default_locale
detect_browser_locale
disable_default_prefix
domain_for_locale
domains
get_persist_locale
get_request_locale
get_template_global_variables
init
install_locale
isFieldModified
is_domain_mode
is_frontend
is_locale
locale_baseurl
locale_names
locale_native_name
locales
regenerate_routes
search_adapter
set_force_is_frontend
set_persist_locale
with_locale