Back to InstallerAdapter class

Method getScriptClassName

protected string
getScriptClassName
()
Get the class name for the install adapter script.
Returns
  • string The class name.
Since
  • 3.4

Method getScriptClassName - Source code

/**
 * Get the class name for the install adapter script.
 *
 * @return  string  The class name.
 *
 * @since   3.4
 */
protected function getScriptClassName()
{
    // Support element names like 'en-GB'
    $className = InputFilter::getInstance()->clean($this->element, 'cmd') . 'InstallerScript';
    // Cannot have - in class names
    $className = str_replace('-', '', $className);
    return $className;
}