|
@ -36,6 +36,15 @@ class mWeiboBehavior extends mBase { |
|
|
return $this->obj->delete($this->tbl_delta, array('sql' => "`date`<?", 'vals' => array($date)));
|
|
|
return $this->obj->delete($this->tbl_delta, array('sql' => "`date`<?", 'vals' => array($date)));
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getSpiderBehavior($date, $page_num, $page_size) { |
|
|
|
|
|
$offset = ($page_num - 1) * $page_size; |
|
|
|
|
|
return $this->obj->selectAll($this->tbl_data, array('sql' => "`date`=?", 'vals' => array($date)), 'created_at desc', array($offset, $page_size)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getSpiderBehaviorTotal($date) { |
|
|
|
|
|
return $this->obj->count($this->tbl_data, array('sql' => "`date`=?", 'vals' => array($date))); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function getHotBehavior($type, $sdate, $edate, $page_num, $page_size) { |
|
|
public function getHotBehavior($type, $sdate, $edate, $page_num, $page_size) { |
|
|
$offset = ($page_num - 1) * $page_size; |
|
|
$offset = ($page_num - 1) * $page_size; |
|
|
|
|
|
|
|
|