Код: Выделить всё
public function removeList($collection_id, $ids){
$list=[];
foreach ($ids as $ind) {
$v = static::NormalizeNumber($ind);
if ($v) {
$list[] = $v;
}
}
try {
self::deleteAll(['and',['id'=> $list,'collection_id'=>$collection_id]]);
}catch (\Exception $e) {
return $e->getMessage();
}
return 'ok';
}