Ejemplo n.º 1
0
 public static function countQuery($params)
 {
     $model = AuditTrail::model()->findByAttributes(['key' => @$_GET['key']]);
     $where = AuditTrail::queryWhere($params, $model);
     $sql = "SELECT count(1) FROM p_audit_trail {$where}";
     return $sql;
 }