concrete/src/Config/ConfigStore.php
public function get($cfKey, $pkgID = null)
    {
        if ($pkgID > 0 && isset($this->rows["{$cfKey}.{$pkgID}"])) {
            return $this->rowToConfigValue($this->rows["{$cfKey}.{$pkgID}"]);
        } else {
            foreach ($this->rows as $row) {
                if ($row['cfKey'] == $cfKey) {
                    return $this->rowToConfigValue($row);
                }
            }
        }

        return null;
    }
public function get($cfKey, $pkgID = null)
    {
        if ($pkgID > 0 && isset($this->rows["{$cfKey}.{$pkgID}"])) {
            return $this->rowToConfigValue($this->rows["{$cfKey}.{$pkgID}"]);
        } else {
            foreach ($this->rows as $row) {
                if ($row['cfKey'] == $cfKey) {
                    return $this->rowToConfigValue($row);
                }
            }
        }

        return null;
    }
public function get ( $ cfKey , $ pkgID = null ) { if ( $ pkgID > 0 && isset ( $ this -> rows [ "{$cfKey}.{$pkgID}" ] ) ) { return $ this -> rowToConfigValue ( $ this -> rows [ "{$cfKey}.{$pkgID}" ] ) ; } else { foreach ( $ this -> rows as $ row ) { if ( $ row [ 'cfKey' ] == $ cfKey ) { return $ this -> rowToConfigValue ( $ row ) ; } } } return null ; }
Get a config item.

@param string $cfKey
@param int $pkgID optional

@return ConfigValue|void
Get a config item .