public function getAvailableResources()
    {
        $cache = Cache::getTransientCache();
        $cacheId = 'transifex_resources_' . $this->projectSlug;
        $resources = $cache->fetch($cacheId);

        if (empty($resources)) {
            $apiPath = 'project/' . $this->projectSlug . '/resources';
            $resources = $this->getApiResults($apiPath);
            $cache->save($cacheId, $resources);
        }

        return $resources;
    }
public function getAvailableResources()
    {
        $cache = Cache::getTransientCache();
        $cacheId = 'transifex_resources_' . $this->projectSlug;
        $resources = $cache->fetch($cacheId);

        if (empty($resources)) {
            $apiPath = 'project/' . $this->projectSlug . '/resources';
            $resources = $this->getApiResults($apiPath);
            $cache->save($cacheId, $resources);
        }

        return $resources;
    }
public function getAvailableResources ( ) { $ cache = Cache :: getTransientCache ( ) ; $ cacheId = 'transifex_resources_' . $ this -> projectSlug ; $ resources = $ cache -> fetch ( $ cacheId ) ; if ( empty ( $ resources ) ) { $ apiPath = 'project/' . $ this -> projectSlug . '/resources' ; $ resources = $ this -> getApiResults ( $ apiPath ) ; $ cache -> save ( $ cacheId , $ resources ) ; } return $ resources ; }
Returns all resources available on Transifex project

@return array
Returns all resources available on Transifex project