src/Service/Cdn.php
public function getBucketsFlat($page = null, $perPage = null, $data = [])
    {
        $aBuckets = $this->getBuckets($page, $perPage, $data);
        $aOut     = [];

        foreach ($aBuckets as $oBucket) {
            $aOut[$oBucket->id] = $oBucket->label;
        }

        return $aOut;
    }
public function getBucketsFlat($page = null, $perPage = null, $data = [])
    {
        $aBuckets = $this->getBuckets($page, $perPage, $data);
        $aOut     = [];

        foreach ($aBuckets as $oBucket) {
            $aOut[$oBucket->id] = $oBucket->label;
        }

        return $aOut;
    }
public function getBucketsFlat ( $ page = null , $ perPage = null , $ data = [ ] ) { $ aBuckets = $ this -> getBuckets ( $ page , $ perPage , $ data ) ; $ aOut = [ ] ; foreach ( $ aBuckets as $ oBucket ) { $ aOut [ $ oBucket -> id ] = $ oBucket -> label ; } return $ aOut ; }
Returns an array of buckets as a flat array

@param integer $page    The page to return
@param integer $perPage The number of items to return per page
@param array   $data    An array of data to pass to getCountCommonBuckets()

@return array
Returns an array of buckets as a flat array