PHP 클래스 Contao\Config

Custom settings above or below the ### INSTALL SCRIPT ### markers will be preserved.
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$Files Files Files object
$arrCache array Cache
$arrData array Data
$blnHasLcf boolean Local file existance
$blnIsModified boolean Modification indicator
$objInstance Config Object instance (Singleton)
$strBottom string Bottom content
$strTop string Top content

공개 메소드들

메소드 설명
__clone ( ) Prevent cloning of the object (Singleton)
__destruct ( ) Automatically save the local configuration
add ( string $strKey, mixed $varValue ) Add a configuration variable to the local configuration file
delete ( string $strKey ) Remove a configuration variable
get ( string $strKey ) : mixed | null Return a configuration value
getActiveModules ( ) : array Return all active modules as array
getInstance ( ) : static Return the current object instance (Singleton)
has ( string $strKey ) : boolean Check whether a configuration value exists
isComplete ( ) : boolean Return true if the installation is complete
persist ( string $strKey, mixed $varValue ) Permanently set a configuration value
preload ( ) Preload the default and local configuration
remove ( string $strKey ) Permanently remove a configuration value
save ( ) Save the local configuration file
set ( string $strKey, string $varValue ) Temporarily set a configuration value
update ( string $strKey, mixed $varValue ) Alias for Config::add()

보호된 메소드들

메소드 설명
__construct ( ) Prevent direct instantiation (Singleton)
escape ( mixed $varValue ) : mixed Escape a value depending on its type
initialize ( ) Load all configuration files
loadParameters ( ) Override the database and SMTP parameters
markModified ( ) Mark the object as modified

메소드 상세

__clone() 최종 공개 메소드

Prevent cloning of the object (Singleton)
final public __clone ( )

__construct() 보호된 메소드

Prevent direct instantiation (Singleton)
protected __construct ( )

__destruct() 공개 메소드

Automatically save the local configuration
public __destruct ( )

add() 공개 메소드

Add a configuration variable to the local configuration file
public add ( string $strKey, mixed $varValue )
$strKey string The full variable name
$varValue mixed The configuration value

delete() 공개 메소드

Remove a configuration variable
public delete ( string $strKey )
$strKey string The full variable name

escape() 보호된 메소드

Escape a value depending on its type
protected escape ( mixed $varValue ) : mixed
$varValue mixed The value
리턴 mixed The escaped value

get() 공개 정적인 메소드

Return a configuration value
public static get ( string $strKey ) : mixed | null
$strKey string The short key
리턴 mixed | null The configuration value

getActiveModules() 공개 메소드

Return all active modules as array
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use the container parameter "kernel.bundles" instead.
public getActiveModules ( ) : array
리턴 array An array of active modules

getInstance() 공개 정적인 메소드

Return the current object instance (Singleton)
public static getInstance ( ) : static
리턴 static The object instance

has() 공개 정적인 메소드

Check whether a configuration value exists
public static has ( string $strKey ) : boolean
$strKey string The short key
리턴 boolean True if the configuration value exists

initialize() 보호된 메소드

Load all configuration files
protected initialize ( )

isComplete() 공개 정적인 메소드

Return true if the installation is complete
public static isComplete ( ) : boolean
리턴 boolean True if the installation is complete

loadParameters() 보호된 정적인 메소드

Override the database and SMTP parameters
protected static loadParameters ( )

markModified() 보호된 메소드

Mark the object as modified
protected markModified ( )

persist() 공개 정적인 메소드

Permanently set a configuration value
public static persist ( string $strKey, mixed $varValue )
$strKey string The short key or full variable name
$varValue mixed The configuration value

preload() 공개 정적인 메소드

Preload the default and local configuration
public static preload ( )

remove() 공개 정적인 메소드

Permanently remove a configuration value
public static remove ( string $strKey )
$strKey string The short key or full variable name

save() 공개 메소드

Save the local configuration file
public save ( )

set() 공개 정적인 메소드

Temporarily set a configuration value
public static set ( string $strKey, string $varValue )
$strKey string The short key
$varValue string The configuration value

update() 공개 메소드

Alias for Config::add()
public update ( string $strKey, mixed $varValue )
$strKey string The full variable name
$varValue mixed The configuration value

프로퍼티 상세

$Files 보호되어 있는 프로퍼티

Files object
protected Files,contao $Files
리턴 Files

$arrCache 보호되어 있는 프로퍼티

Cache
protected array $arrCache
리턴 array

$arrData 보호되어 있는 프로퍼티

Data
protected array $arrData
리턴 array

$blnHasLcf 보호되어 있는 정적으로 프로퍼티

Local file existance
protected static bool $blnHasLcf
리턴 boolean

$blnIsModified 보호되어 있는 프로퍼티

Modification indicator
protected bool $blnIsModified
리턴 boolean

$objInstance 보호되어 있는 정적으로 프로퍼티

Object instance (Singleton)
protected static Config,contao $objInstance
리턴 Config

$strBottom 보호되어 있는 프로퍼티

Bottom content
protected string $strBottom
리턴 string

$strTop 보호되어 있는 프로퍼티

Top content
protected string $strTop
리턴 string