Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
simplify logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Aug 30, 2014
1 parent e373d02 commit 0b750ae
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 87 deletions.
1 change: 0 additions & 1 deletion application/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
'track.event' => '\MongoAdvertDb\Track\\Event',
'track.click' => '\MongoAdvertDb\Track\\Click',
'track.impression' => '\MongoAdvertDb\Track\\Impression',
'log' => '\MongoAdvertDb\Log',
'apikeys' => '\MongoAdvertDb\Apikeys',
)
),
Expand Down
4 changes: 2 additions & 2 deletions application/models/LogForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public function getDataSource() {
}
switch ($name) {
case 'dateFrom':
$log->fromDate($this->$name);
$log->whereGreaterOrEqual('logtime', new \MongoDate(strtotime($this->$name . ' 00:00:00')));
break;
case 'dateTo':
$log->toDate($this->$name);
$this->whereLessOrEqual('logtime', new \MongoDate(strtotime($this->$name . ' 23:59:59')));
break;
default:
$log->whereLike($name, $this->$name);
Expand Down
15 changes: 0 additions & 15 deletions application/models/MongoAdvertDb/Log.php

This file was deleted.

20 changes: 0 additions & 20 deletions application/models/MongoAdvertDb/Log/QueryExpression.php

This file was deleted.

49 changes: 0 additions & 49 deletions application/models/MongoAdvertDb/Log/Record.php

This file was deleted.

0 comments on commit 0b750ae

Please sign in to comment.