private function byJid($filter, $extra, $extensive)
 {
     try {
         $data = SourceLogs::filterByJid(intval($filter), intval($extra));
     } catch (DatabaseException $de) {
         throw $de;
     } catch (Exception $e) {
         throw $e;
     }
     return $this->doShow($data, $extensive);
 }
 public static function filterByJid($params)
 {
     $jid = $params->get('jid');
     $rows = $params->get('rows');
     try {
         $data = Logs::filterByJid($jid, $rows);
     } catch (Exception $e) {
         throw new RpcException($e->getMessage(), -31001);
     }
     return $data;
 }