src/acdhOeaw/schema/redmine/Redmine.php
static protected function fetchData(string $url): array {
        $url  .= '.json?key=' . urlencode(RC::get('redmineApiKey'));
        $data = file_get_contents($url);
        if ($data) {
            $data = (array) json_decode($data);
            $data = array_pop($data);
            return (array) $data;
        }
        throw new RuntimeException('Fetching data failed');
    }
static protected function fetchData(string $url): array {
        $url  .= '.json?key=' . urlencode(RC::get('redmineApiKey'));
        $data = file_get_contents($url);
        if ($data) {
            $data = (array) json_decode($data);
            $data = array_pop($data);
            return (array) $data;
        }
        throw new RuntimeException('Fetching data failed');
    }
static protected function fetchData ( string $ url ) : array { $ url .= '.json?key=' . urlencode ( RC :: get ( 'redmineApiKey' ) ) ; $ data = file_get_contents ( $ url ) ; if ( $ data ) { $ data = ( array ) json_decode ( $ data ) ; $ data = array_pop ( $ data ) ; return ( array ) $ data ; } throw new RuntimeException ( 'Fetching data failed' ) ; }
Fetches given Redmine entity description from the Redmine API URI.
@param string $url
@return array
@throws RuntimeException
Fetches given Redmine entity description from the Redmine API URI .