getByStatusID( [ 10, 20, 23 ], null, [ 'a.id' => 'asc' ] ); if ( $clf->getRecordCount() > 0 ) { foreach ( $clf as $c_obj ) { if ( in_array( $c_obj->getStatus(), [ 10, 20, 23 ] ) ) { //10=Active, 20=Hold, 23=Expired CurrencyFactory::updateCurrencyRates( $c_obj->getId() ); } } } ?>