This method uses an array of Period instances and a Segment instance, instead of strings
like {@link build()}.
If you want to create an Archive instance using data found in query parameters,
use {@link build()}.
public static factory ( |
||
$segment | The segment to use. For no segment, use `new Segment('', $idSites)`. | |
$periods | array | An array of Period instances. |
$idSites | array | An array of site IDs (eg, `array(1, 2, 3)`). |
$idSiteIsAll | boolean | Whether `'all'` sites are being queried or not. If true, then the result of querying functions will be indexed by site, regardless of whether `count($idSites) == 1`. |
$isMultipleDate | boolean | Whether multiple dates are being queried or not. If true, then the result of querying functions will be indexed by period, regardless of whether `count($periods) == 1`. |
Résultat |