application/Espo/Core/Utils/Config.php
public function set($name, $value = null, $dontMarkDirty = false)
    {
        if (is_object($name)) {
            $name = get_object_vars($name);
        }

        if (!is_array($name)) {
            $name = array($name => $value);
        }

        foreach ($name as $key => $value) {
            if (in_array($key, $this->associativeArrayAttributeList) && is_object($value)) {
                $value = (array) $value;
            }
            $this->data[$key] = $value;
            if (!$dontMarkDirty) {
                $this->changedData[$key] = $value;
            }
        }
    }
public function set($name, $value = null, $dontMarkDirty = false)
    {
        if (is_object($name)) {
            $name = get_object_vars($name);
        }

        if (!is_array($name)) {
            $name = array($name => $value);
        }

        foreach ($name as $key => $value) {
            if (in_array($key, $this->associativeArrayAttributeList) && is_object($value)) {
                $value = (array) $value;
            }
            $this->data[$key] = $value;
            if (!$dontMarkDirty) {
                $this->changedData[$key] = $value;
            }
        }
    }
public function set ( $ name , $ value = null , $ dontMarkDirty = false ) { if ( is_object ( $ name ) ) { $ name = get_object_vars ( $ name ) ; } if ( ! is_array ( $ name ) ) { $ name = array ( $ name => $ value ) ; } foreach ( $ name as $ key => $ value ) { if ( in_array ( $ key , $ this -> associativeArrayAttributeList ) && is_object ( $ value ) ) { $ value = ( array ) $ value ; } $ this -> data [ $ key ] = $ value ; if ( ! $ dontMarkDirty ) { $ this -> changedData [ $ key ] = $ value ; } } }
Set an option to the config

@param string $name
@param string $value
@return bool
Set an option to the config