PHP 클래스 ModuleConfiguration

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$m_directory
$m_moduleName
$m_variables
$m_variablesList

공개 메소드들

메소드 설명
ModuleConfiguration ( $module_name = "", $directory = "" )
configurationFileName ( string $p_moduleName = "" ) : string Return configuration file name of a given module
configurationFilePath ( string $p_moduleName = "", string $p_directory = "" ) : string Return configuration file path of a given module, directory
create ( string $p_moduleName, array $p_variables ) Create a module configuration object for a given module name and array of variables
moduleName ( ) : string Return the module name
read ( string $p_moduleName, string $p_directory ) Read the configuration file corresponding to a specific module
save ( string $p_destDirectory = "" ) Save the configuration file corresponding to module object
setValueOf ( string $p_variableName, string $p_value ) : boolean Set the value of a given variable
validModuleName ( string &$p_moduleName ) : boolean Return the true if the module name was valid
valueOf ( string $p_variableName ) : string Return the value of a given variable
variablesList ( ) : array Return the variables list as array

메소드 상세

ModuleConfiguration() 공개 메소드

public ModuleConfiguration ( $module_name = "", $directory = "" )

configurationFileName() 공개 메소드

Return configuration file name of a given module
public configurationFileName ( string $p_moduleName = "" ) : string
$p_moduleName string
리턴 string or false in case of error

configurationFilePath() 공개 메소드

Return configuration file path of a given module, directory
public configurationFilePath ( string $p_moduleName = "", string $p_directory = "" ) : string
$p_moduleName string
$p_directory string
리턴 string or false in case of error

create() 공개 메소드

Create a module configuration object for a given module name and array of variables
public create ( string $p_moduleName, array $p_variables )
$p_moduleName string
$p_variables array

moduleName() 공개 메소드

Return the module name
public moduleName ( ) : string
리턴 string

read() 공개 메소드

Read the configuration file corresponding to a specific module
public read ( string $p_moduleName, string $p_directory )
$p_moduleName string
$p_directory string

save() 공개 메소드

Save the configuration file corresponding to module object
public save ( string $p_destDirectory = "" )
$p_destDirectory string

setValueOf() 공개 메소드

Set the value of a given variable
public setValueOf ( string $p_variableName, string $p_value ) : boolean
$p_variableName string
$p_value string
리턴 boolean

validModuleName() 공개 메소드

Return the true if the module name was valid
public validModuleName ( string &$p_moduleName ) : boolean
$p_moduleName string
리턴 boolean

valueOf() 공개 메소드

Return the value of a given variable
public valueOf ( string $p_variableName ) : string
$p_variableName string
리턴 string or false in case of error

variablesList() 공개 메소드

Return the variables list as array
public variablesList ( ) : array
리턴 array or false in case of error

프로퍼티 상세

$m_directory 공개적으로 프로퍼티

public $m_directory

$m_moduleName 공개적으로 프로퍼티

public $m_moduleName

$m_variables 공개적으로 프로퍼티

public $m_variables

$m_variablesList 공개적으로 프로퍼티

public $m_variablesList