Back to InstallerScript class

Method getParam

public string
getParam
(mixed $name, mixed $id = 0)
Gets parameter value in the extensions row of the extension table
Parameters
  • string $name The name of the parameter to be retrieved
  • int $id The id of the item in the Param Table
Returns
  • string The parameter desired
Since
  • 3.6

Method getParam - Source code

/**
 * Gets parameter value in the extensions row of the extension table
 *
 * @param   string   $name  The name of the parameter to be retrieved
 * @param   integer  $id    The id of the item in the Param Table
 *
 * @return  string  The parameter desired
 *
 * @since   3.6
 */
public function getParam($name, $id = 0)
{
    if (!\is_int($id) || $id == 0) {
        // Return false if there is no item given
        return false;
    }
    $params = $this->getItemArray('params', $this->paramTable, 'id', $id);
    return $params[$name];
}