Exemple #1
0
 /**
  * Get stats (pmu, ct, wt) on a url or c_url
  *
  * @param array $data An associative array containing the limit you'd like to set for the queyr, as well as either c_url or url for the desired element.
  * @return resource result set from the database query
  */
 public function getUrlStats($data)
 {
     $data['select'] = '`id`, ' . $this->db->unixTimestamp(`timestamp`) . ' as `timestamp`, `pmu`, `wt`, `cpu`';
     $rs = $this->getRuns($data);
     return $rs;
 }
 /**
  * Get stats (pmu, ct, wt) on a url or c_url
  * 
  * @param array $data An associative array containing the limit you'd like to set for the queyr, as well as either c_url or url for the desired element. 
  * @return resource result set from the database query
  */
 public function getUrlStats($data)
 {
     $data['select'] = 'id, ' . $this->db->unixTimestamp('timestamp') . ' as timestamp, pmu, wt, cpu';
     $rs = $this->getRuns($data);
     return $rs;
 }