Get list value
@param string $sKey
@return array
166034
public function getList($sKey)
    {
        if (empty($sKey)) {
            return [];
        }

        //Get value from storage
        $arValueList = $this->get($sKey);
        if (empty($arValueList) || !is_array($arValueList)) {
            $arValueList = [];
        }

        return $arValueList;
    }
1233840
protected static function getItemValue($list, $key) {
    foreach ($list as $item) {
      // strict comparison for null value
      if (($key === null && $item['key'] === $key) || ($key !== null && strval($item['key']) === strval($key))) {
        return $item['value'];
      }
    }
    return $key;
  }
1345938
public static function getChildren(SKU $sku) {
    $children = [];

    foreach ($sku->get('field_configured_skus')->getValue() as $child) {
      if (empty($child['value'])) {
        continue;
      }

      $child_sku = SKU::loadFromSku($child['value']);
      if ($child_sku instanceof SKU) {
        $children[$child_sku->getSKU()] = $child_sku;
      }
    }

    return $children;
  }
1224332
public function fromPhpFileCache($sKey)
    {
        // setting meta
        $this->setCacheMeta($sKey, ["include" => true, "cachepath" => $this->getCacheFilePath($sKey, false, 'php')]);

        return $this->fromFileCache($sKey);
    }
459673
public static function GetArray($sKey, $sKeyInArray, $mDefault = false){
            $oThis = self::CreateInstanceIfNotExists();
            return (array_key_exists($sKey, $oThis->aList)) ? ((array_key_exists($sKeyInArray, $oThis->aList[$sKey]) ? $oThis->aList[$sKey][$sKeyInArray] : $mDefault)) : $mDefault;
        }
332823
public function read(string $sKey): ?Item
    {
        return $this->exists($sKey) ? $this->newItem($sKey) : null;
    }
1174301
public function get($sKey = '')
    {
        if (empty($sKey)) {
            return $this->store;
        } else {
            return isset($this->store[$sKey]) ? $this->store[$sKey] : null;
        }
    }
1164699
protected static function _checkKey($sKey) {
		if ($sKey === '_id') {
			return FALSE;
		}
		if ($sKey === static::$_mKey) {
			return FALSE;
		}
		if (strpos($sKey, '.') !== FALSE) {
			return FALSE;
		}
		if (substr($sKey, 0, 1) === '$') {
			return FALSE;
		}
		return TRUE;
	}
1326305
protected function arrayGet($key, $default = null)
    {
        if (isset($this->list[$key])) {
            return $this->list[$key];
        }

        foreach (explode('.', $key) as $segment) {
            if (! is_array($this->list) || ! array_key_exists($segment, $this->list)) {
                return (is_callable($default)) ? $default() : $default;
            }

            $this->list = $this->list[$segment];
        }

        return $this->list;
    }
772889
protected function unsetCache($sKey)
    {
        if (!static::$CACHING_ENABLED) {
            return false;
        } elseif (empty($sKey)) {
            return false;
        }

        $iCacheIndex = $this->getCache($sKey, false);
        if (is_null($iCacheIndex)) {
            return false;
        }

        unset($this->aCache[$iCacheIndex]);

        return true;
    }
1081081
public static function getList($data)
    {
        // Return Null if Null
        if ($data === null) {
            return null;
        }

        if (is_a($data, get_class(new \stdClass()))) {
            //This means, root element is object
            return new static(json_encode($data));
        }

        $list = array();

        if (is_array($data)) {
            $data = json_encode($data);
        }

        if (JsonValidator::validate($data)) {
            // It is valid JSON
            $decoded = json_decode($data);
            if ($decoded === null) {
                return $list;
            }
            if (is_array($decoded)) {
                foreach ($decoded as $k => $v) {
                    $list[] = self::getList($v);
                }
            }
            if (is_a($decoded, get_class(new \stdClass()))) {
                //This means, root element is object
                $list[] = new static(json_encode($decoded));
            }
        }

        return $list;
    }
414049
public static function Get($sKey, $mDefault = false){
            $oThis = self::CreateInstanceIfNotExists();
            return (array_key_exists($sKey, $oThis->aList)) ? $oThis->aList[$sKey] : $mDefault;
        }
997657
public function fetch($key) : Collection
    {
        $extr = [];
        foreach ($this->list as $list) {
            if (is_array($list) && key_exists($key, $list)) {
                $extr[] = $list[$key];
            }
        }

        return self::from(...$extr);
    }
1209268
protected function getListValues($values)
    {
        // Empty values
        if (empty($values)) {
            return array();
        }

        // Direct array
        if (is_array($values)) {
            return array_values($values);
        }

        // Extract lists
        if ($values instanceof SS_List) {
            return $values->column('ID');
        }

        return array(trim($values));
    }
838345
public function getList($msgno = null)
    {
        if ($msgno !== null) {
            $result = $this->request("LIST $msgno");

            list(, $result) = explode(' ', $result);
            return (int)$result;
        }

        $result = $this->request('LIST', true);
        $messages = array();
        $line = strtok($result, "\n");
        while ($line) {
            list($no, $size) = explode(' ', trim($line));
            $messages[(int)$no] = (int)$size;
            $line = strtok("\n");
        }

        return $messages;
    }
827800
protected function listQueryParams(array $list)
    {
        $result = [];
        $params = $this->getRequest()->getQueryParams();
        
        foreach ($list as $key => $value) {
            if (is_int($key)) {
                $key = $value;
                $value = null;
            }
            
            $result[] = isset($params[$key]) ? $params[$key] : $value;
        }
        
        return $result;
    }
14630
protected function getListifyConfigValue($key)
    {
        return array_key_exists($key, $this->listifyConfig) ? $this->listifyConfig[ $key ] : null;
    }