Checks the given string for valid site IDs and returns them as an array.
public static getIdSitesFromIdSitesString ( string | array $ids, boolean | string $_restrictSitesToLogin = false ) : array | ||
$ids | string | array | Comma separated idSite list, eg, `'1,2,3,4'` or an array of IDs, eg, `array(1, 2, 3, 4)`. |
$_restrictSitesToLogin | boolean | string | Implementation detail. Used only when running as a scheduled task. |
Résultat | array | An array of valid, unique integers. |