ModuleConfiguration::setValueOf PHP Method

setValueOf() public method

Set the value of a given variable
public setValueOf ( string $p_variableName, string $p_value ) : boolean
$p_variableName string
$p_value string
return boolean
    public function setValueOf($p_variableName, $p_value)
    {
        if (!is_array($this->m_variables) || !is_array($this->m_variablesList)) {
            return false;
        }
        if (!in_array($p_variableName, $this->m_variablesList)) {
            return false;
        }
        $this->m_variables[$p_variableName] = $p_value;
        return true;
    }