src/Control/Session.php
protected function markChanged($name)
    {
        $diffVar = &$this->changedData;
        foreach (explode('.', $name) as $namePart) {
            if (!isset($diffVar[$namePart])) {
                $diffVar[$namePart] = [];
            }
            $diffVar = &$diffVar[$namePart];

            // Already diffed
            if ($diffVar === true) {
                return;
            }
        }
        // Mark changed
        $diffVar = true;
    }
protected function markChanged($name)
    {
        $diffVar = &$this->changedData;
        foreach (explode('.', $name) as $namePart) {
            if (!isset($diffVar[$namePart])) {
                $diffVar[$namePart] = [];
            }
            $diffVar = &$diffVar[$namePart];

            // Already diffed
            if ($diffVar === true) {
                return;
            }
        }
        // Mark changed
        $diffVar = true;
    }
protected function markChanged ( $ name ) { $ diffVar = & $ this -> changedData ; foreach ( explode ( '.' , $ name ) as $ namePart ) { if ( ! isset ( $ diffVar [ $ namePart ] ) ) { $ diffVar [ $ namePart ] = [ ] ; } $ diffVar = & $ diffVar [ $ namePart ] ; // Already diffed if ( $ diffVar === true ) { return ; } } // Mark changed $ diffVar = true ; }
Mark key as changed

@internal
@param string $name
Mark key as changed