Changeset View
Changeset View
Standalone View
Standalone View
core/install/install_toolkit.php
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Installator instance | * Installator instance | ||||
* | * | ||||
* @var kInstallator | * @var kInstallator | ||||
*/ | */ | ||||
var $_installator = null; | var $_installator = null; | ||||
function kInstallToolkit() | function kInstallToolkit() | ||||
alex: Please revert changes to this file. | |||||
{ | { | ||||
$this->defaultWritablePath = DIRECTORY_SEPARATOR . 'system'; | $this->defaultWritablePath = DIRECTORY_SEPARATOR . 'system'; | ||||
if ( class_exists('kApplication') ) { | if ( class_exists('kApplication') ) { | ||||
// auto-setup in case of separate module install | // auto-setup in case of separate module install | ||||
$this->Application =& kApplication::Instance(); | $this->Application =& kApplication::Instance(); | ||||
$this->Application->Init(); // needed for standalone module install | $this->Application->Init(); // needed for standalone module install | ||||
▲ Show 20 Lines • Show All 314 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
/** | /** | ||||
* Performs clean language import from given xml file | * Performs clean language import from given xml file | ||||
* | * | ||||
* @param string $lang_file | * @param string $lang_file | ||||
* @param bool $upgrade | * @param bool $upgrade | ||||
* @todo Import for "core/install/english.lang" (322KB) takes 18 seconds to work on Windows | * @todo Import for "core/install/english.lang" (322KB) takes 18 seconds to work on Windows | ||||
*/ | */ | ||||
Missing @return tag in function comment Lint: CodingStandard.Commenting.FunctionComment.MissingReturn: Missing @return tag in function comment | |||||
function ImportLanguage($lang_file, $upgrade = false) | public function ImportLanguage($lang_file, $upgrade = true) | ||||
Public method name "kInstallToolkit::ImportLanguage" is not in camel caps format Lint: CodingStandard.NamingConventions.ValidFunctionName.ScopeNotCamelCaps: Public method name "kInstallToolkit::ImportLanguage" is not in camel caps format | |||||
{ | { | ||||
$lang_file = FULL_PATH.$lang_file.'.lang'; | $lang_file = FULL_PATH.$lang_file.'.lang'; | ||||
if (!file_exists($lang_file)) { | if (!file_exists($lang_file)) { | ||||
return ; | return ; | ||||
} | } | ||||
$language_import_helper = $this->Application->recallObject('LanguageImportHelper'); | $language_import_helper = $this->Application->recallObject('LanguageImportHelper'); | ||||
/* @var $language_import_helper LanguageImportHelper */ | /* @var $language_import_helper LanguageImportHelper */ | ||||
▲ Show 20 Lines • Show All 748 Lines • Show Last 20 Lines |
Please revert changes to this file.