public function updateListItem($key, $itemKey, $itemValue, $listDefaultValue = array()) {
        if (!isset($_SESSION[$key])) {
            $_SESSION[$key] = $listDefaultValue;
        }
        $_SESSION[$key][$itemKey] = $itemValue;
        return $this;
    }
public function updateListItem($key, $itemKey, $itemValue, $listDefaultValue = array()) {
        if (!isset($_SESSION[$key])) {
            $_SESSION[$key] = $listDefaultValue;
        }
        $_SESSION[$key][$itemKey] = $itemValue;
        return $this;
    }
public function updateListItem ( $ key , $ itemKey , $ itemValue , $ listDefaultValue = array ( ) ) { if ( ! isset ( $ _SESSION [ $ key ] ) ) { $ _SESSION [ $ key ] = $ listDefaultValue ; } $ _SESSION [ $ key ] [ $ itemKey ] = $ itemValue ; return $ this ; }
Updates a single item from list. If that list is not found then it will have the selected default value that will
then be updated with the selected options.
@param string $key
@param string $itemKey
@param $itemValue
@param array $listDefaultValue
@return $this
Updates a single item from list . If that list is not found then it will have the selected default value that will then be updated with the selected options .