code/CMSBatchActionHandler.php
protected function cleanIDs($csvIDs)
    {
        $ids = preg_split('/ *, */', trim($csvIDs));
        foreach ($ids as $k => $id) {
            $ids[$k] = (int)$id;
        }
        return array_filter($ids);
    }
protected function cleanIDs($csvIDs)
    {
        $ids = preg_split('/ *, */', trim($csvIDs));
        foreach ($ids as $k => $id) {
            $ids[$k] = (int)$id;
        }
        return array_filter($ids);
    }
protected function cleanIDs ( $ csvIDs ) { $ ids = preg_split ( '/ *, */' , trim ( $ csvIDs ) ) ; foreach ( $ ids as $ k => $ id ) { $ ids [ $ k ] = ( int ) $ id ; } return array_filter ( $ ids ) ; }
Sanitise ID list from string input

@param string $csvIDs
@return array List of IDs as ints
Sanitise ID list from string input