classes/storage/AbstractUserStorage.php
public function addToList($sKey, $sValue)
    {
        if (empty($sKey) || empty($sValue)) {
            return;
        }

        //Get value from storage
        $arValueList = $this->getList($sKey);

        array_unshift($arValueList, $sValue);
        $arValueList = array_unique($arValueList);

        $this->put($sKey, $arValueList);
    }
public function addToList($sKey, $sValue)
    {
        if (empty($sKey) || empty($sValue)) {
            return;
        }

        //Get value from storage
        $arValueList = $this->getList($sKey);

        array_unshift($arValueList, $sValue);
        $arValueList = array_unique($arValueList);

        $this->put($sKey, $arValueList);
    }
public function addToList ( $ sKey , $ sValue ) { if ( empty ( $ sKey ) || empty ( $ sValue ) ) { return ; } //Get value from storage $ arValueList = $ this -> getList ( $ sKey ) ; array_unshift ( $ arValueList , $ sValue ) ; $ arValueList = array_unique ( $ arValueList ) ; $ this -> put ( $ sKey , $ arValueList ) ; }
Add value to list
@param string $sKey
@param string $sValue
Add value to list