23 throw new ArgumentException(
'Options providerType must be specified',
'providerType');
34 public function add(array $params)
37 return ExchangeLogTable::add($params);
49 $params[
'filter'] = isset($params[
'filter']) ? $params[
'filter']:[];
52 return ExchangeLogTable::getList($params);
70 $r = ExchangeLogTable::getList(array(
76 'ENTITY_TYPE_ID'=>$entityTypeId,
77 '=ENTITY_DATE_UPDATE'=>$timeUpdate,
78 '=DIRECTION'=>$direction,
79 '=PROVIDER'=>$this->providerType,
81 'order'=>array(
'ID'=>
'ASC'),
84 while ($order = $r->fetch())
85 $result[$order[
'ENTITY_DATE_UPDATE']->toString()][]=$order[
'ENTITY_ID'];
92 $dateUpdate = $list[
"DATE_UPDATE"]->toString();
94 $result = (isset($logs[$dateUpdate]) &&
95 in_array($list[
'ID'], $logs[$dateUpdate]));
static deleteOldRecords($direction, $provider, $interval)
getEffectedRows($timeUpdate, $entityTypeId, $direction)
__construct($providerType)
isEffected($list, array $logs)
deleteOldRecords($direction, $interval)