mdn-css-unicode-bidi-isolate-override.js 77628cf8bf first comm 3 years ago mdn-css-unicode-bidi-isolate.js 77628cf8bf first comm 3 years ago mdn-css-unicode-bidi-plaintext.js 77628cf8bf first comm 3 years ago mdn-text-decoration-color.js 77628cf8bf first comm 3 years ago mdn-text-decoration-line.js 77628cf8bf first comm 3 years ago mdn-text-decoration-shorthand.js 77628cf8bf first comm 3 years ago mdn-text-decoration-style.js 77628cf8bf first comm 3 years ago media-fragments.js 77628cf8bf first comm 3 years ago mediacapture-fromelement.js 77628cf8bf first comm 3 years ago mediarecorder.js 77628cf8bf first comm 3 years ago mediasource.js 77628cf8bf first comm 3 years ago menu.js 77628cf8bf first comm 3 years ago meta-theme-color.js 77628cf8bf first comm 3 years ago meter.js 77628cf8bf first comm 3 years ago midi.js 77628cf8bf first comm 3 years ago minmaxwh.js 77628cf8bf first comm 3 years ago mp3.js 77628cf8bf first comm 3 years ago mpeg-dash.js 77628cf8bf first comm 3 years ago mpeg4.js 77628cf8bf first comm 3 years ago multibackgrounds.js 77628cf8bf first comm 3 years ago multicolumn.js 77628cf8bf first comm 3 years ago mutation-events.js 77628cf8bf first comm 3 years ago mutationobserver.js 77628cf8bf first comm 3 years ago namevalue-storage.js 77628cf8bf first comm 3 years ago native-filesystem-api.js 77628cf8bf first comm 3 years ago nav-timing.js 77628cf8bf first comm 3 years ago netinfo.js 77628cf8bf first comm 3 years ago notifications.js 77628cf8bf first comm 3 years ago object-entries.js 77628cf8bf first comm 3 years ago object-fit.js 77628cf8bf first comm 3 years ago object-observe.js 77628cf8bf first comm 3 years ago object-values.js 77628cf8bf first comm 3 years ago objectrtc.js 77628cf8bf first comm 3 years ago offline-apps.js 77628cf8bf first comm 3 years ago offscreencanvas.js 77628cf8bf first comm 3 years ago ogg-vorbis.js 77628cf8bf first comm 3 years ago ogv.js 77628cf8bf first comm 3 years ago ol-reversed.js 77628cf8bf first comm 3 years ago once-event-listener.js 77628cf8bf first comm 3 years ago online-status.js 77628cf8bf first comm 3 years ago opus.js 77628cf8bf first comm 3 years ago orientation-sensor.js 77628cf8bf first comm 3 years ago outline.js 77628cf8bf first comm 3 years ago pad-start-end.js 77628cf8bf first comm 3 years ago page-transition-events.js 77628cf8bf first comm 3 years ago pagevisibility.js 77628cf8bf first comm 3 years ago passive-event-listener.js 77628cf8bf first comm 3 years ago passwordrules.js 77628cf8bf first comm 3 years ago path2d.js 77628cf8bf first comm 3 years ago payment-request.js 77628cf8bf first comm 3 years ago pdf-viewer.js 77628cf8bf first comm 3 years ago permissions-api.js 77628cf8bf first comm 3 years ago permissions-policy.js 77628cf8bf first comm 3 years ago picture-in-picture.js 77628cf8bf first comm 3 years ago picture.js 77628cf8bf first comm 3 years ago ping.js 77628cf8bf first comm 3 years ago png-alpha.js 77628cf8bf first comm 3 years ago pointer-events.js 77628cf8bf first comm 3 years ago pointer.js 77628cf8bf first comm 3 years ago pointerlock.js 77628cf8bf first comm 3 years ago portals.js 77628cf8bf first comm 3 years ago prefers-color-scheme.js 77628cf8bf first comm 3 years ago prefers-reduced-motion.js 77628cf8bf first comm 3 years ago progress.js 77628cf8bf first comm 3 years ago promise-finally.js 77628cf8bf first comm 3 years ago promises.js 77628cf8bf first comm 3 years ago proximity.js 77628cf8bf first comm 3 years ago proxy.js 77628cf8bf first comm 3 years ago publickeypinning.js 77628cf8bf first comm 3 years ago push-api.js 77628cf8bf first comm 3 years ago queryselector.js 77628cf8bf first comm 3 years ago readonly-attr.js 77628cf8bf first comm 3 years ago referrer-policy.js 77628cf8bf first comm 3 years ago registerprotocolhandler.js 77628cf8bf first comm 3 years ago rel-noopener.js 77628cf8bf first comm 3 years ago rel-noreferrer.js 77628cf8bf first comm 3 years ago rellist.js 77628cf8bf first comm 3 years ago rem.js 77628cf8bf first comm 3 years ago requestanimationframe.js 77628cf8bf first comm 3 years ago requestidlecallback.js 77628cf8bf first comm 3 years ago resizeobserver.js 77628cf8bf first comm 3 years ago resource-timing.js 77628cf8bf first comm 3 years ago rest-parameters.js 77628cf8bf first comm 3 years ago rtcpeerconnection.js 77628cf8bf first comm 3 years ago ruby.js 77628cf8bf first comm 3 years ago run-in.js 77628cf8bf first comm 3 years ago same-site-cookie-attribute.js 77628cf8bf first comm 3 years ago screen-orientation.js 77628cf8bf first comm 3 years ago script-async.js 77628cf8bf first comm 3 years ago script-defer.js 77628cf8bf first comm 3 years ago scrollintoview.js 77628cf8bf first comm 3 years ago scrollintoviewifneeded.js 77628cf8bf first comm 3 years ago sdch.js 77628cf8bf first comm 3 years ago selection-api.js 77628cf8bf first comm 3 years ago server-timing.js 77628cf8bf first comm 3 years ago serviceworkers.js 77628cf8bf first comm 3 years ago setimmediate.js 77628cf8bf first comm 3 years ago shadowdom.js 77628cf8bf first comm 3 years ago shadowdomv1.js 77628cf8bf first comm 3 years ago sharedarraybuffer.js 77628cf8bf first comm 3 years ago sharedworkers.js 77628cf8bf first comm 3 years ago sni.js 77628cf8bf first comm 3 years ago spdy.js 77628cf8bf first comm 3 years ago speech-recognition.js 77628cf8bf first comm 3 years ago speech-synthesis.js 77628cf8bf first comm 3 years ago spellcheck-attribute.js 77628cf8bf first comm 3 years ago sql-storage.js 77628cf8bf first comm 3 years ago srcset.js 77628cf8bf first comm 3 years ago stream.js 77628cf8bf first comm 3 years ago streams.js 77628cf8bf first comm 3 years ago stricttransportsecurity.js 77628cf8bf first comm 3 years ago style-scoped.js 77628cf8bf first comm 3 years ago subresource-bundling.js 77628cf8bf first comm 3 years ago subresource-integrity.js 77628cf8bf first comm 3 years ago svg-css.js 77628cf8bf first comm 3 years ago svg-filters.js 77628cf8bf first comm 3 years ago svg-fonts.js 77628cf8bf first comm 3 years ago svg-fragment.js 77628cf8bf first comm 3 years ago svg-html.js 77628cf8bf first comm 3 years ago svg-html5.js 77628cf8bf first comm 3 years ago svg-img.js 77628cf8bf first comm 3 years ago svg-smil.js 77628cf8bf first comm 3 years ago svg.js 77628cf8bf first comm 3 years ago sxg.js 77628cf8bf first comm 3 years ago tabindex-attr.js 77628cf8bf first comm 3 years ago template-literals.js 77628cf8bf first comm 3 years ago template.js 77628cf8bf first comm 3 years ago temporal.js 77628cf8bf first comm 3 years ago testfeat.js 77628cf8bf first comm 3 years ago text-decoration.js 77628cf8bf first comm 3 years ago text-emphasis.js 77628cf8bf first comm 3 years ago text-overflow.js 77628cf8bf first comm 3 years ago text-size-adjust.js 77628cf8bf first comm 3 years ago text-stroke.js 77628cf8bf first comm 3 years ago textcontent.js 77628cf8bf first comm 3 years ago textencoder.js 77628cf8bf first comm 3 years ago tls1-1.js 77628cf8bf first comm 3 years ago tls1-2.js 77628cf8bf first comm 3 years ago tls1-3.js 77628cf8bf first comm 3 years ago touch.js 77628cf8bf first comm 3 years ago transforms2d.js 77628cf8bf first comm 3 years ago transforms3d.js 77628cf8bf first comm 3 years ago trusted-types.js 77628cf8bf first comm 3 years ago ttf.js 77628cf8bf first comm 3 years ago typedarrays.js 77628cf8bf first comm 3 years ago u2f.js 77628cf8bf first comm 3 years ago unhandledrejection.js 77628cf8bf first comm 3 years ago upgradeinsecurerequests.js 77628cf8bf first comm 3 years ago url-scroll-to-text-fragment.js 77628cf8bf first comm 3 years ago url.js 77628cf8bf first comm 3 years ago urlsearchparams.js 77628cf8bf first comm 3 years ago use-strict.js 77628cf8bf first comm 3 years ago user-select-none.js 77628cf8bf first comm 3 years ago user-timing.js 77628cf8bf first comm 3 years ago variable-fonts.js 77628cf8bf first comm 3 years ago vector-effect.js 77628cf8bf first comm 3 years ago vibration.js 77628cf8bf first comm 3 years ago video.js 77628cf8bf first comm 3 years ago videotracks.js 77628cf8bf first comm 3 years ago viewport-unit-variants.js 77628cf8bf first comm 3 years ago viewport-units.js 77628cf8bf first comm 3 years ago wai-aria.js 77628cf8bf first comm 3 years ago wake-lock.js 77628cf8bf first comm 3 years ago wasm.js 77628cf8bf first comm 3 years ago wav.js 77628cf8bf first comm 3 years ago wbr-element.js 77628cf8bf first comm 3 years ago web-animation.js 77628cf8bf first comm 3 years ago web-app-manifest.js 77628cf8bf first comm 3 years ago web-bluetooth.js 77628cf8bf first comm 3 years ago web-serial.js 77628cf8bf first comm 3 years ago web-share.js 77628cf8bf first comm 3 years ago webauthn.js 77628cf8bf first comm 3 years ago webcodecs.js 77628cf8bf first comm 3 years ago webgl.js 77628cf8bf first comm 3 years ago webgl2.js 77628cf8bf first comm 3 years ago webgpu.js 77628cf8bf first comm 3 years ago webhid.js 77628cf8bf first comm 3 years ago webkit-user-drag.js 77628cf8bf first comm 3 years ago webm.js 77628cf8bf first comm 3 years ago webnfc.js 77628cf8bf first comm 3 years ago webp.js 77628cf8bf first comm 3 years ago websockets.js 77628cf8bf first comm 3 years ago webtransport.js 77628cf8bf first comm 3 years ago webusb.js 77628cf8bf first comm 3 years ago webvr.js 77628cf8bf first comm 3 years ago webvtt.js 77628cf8bf first comm 3 years ago webworkers.js 77628cf8bf first comm 3 years ago webxr.js 77628cf8bf first comm 3 years ago will-change.js 77628cf8bf first comm 3 years ago woff.js 77628cf8bf first comm 3 years ago woff2.js 77628cf8bf first comm 3 years ago word-break.js 77628cf8bf first comm 3 years ago wordwrap.js 77628cf8bf first comm 3 years ago x-doc-messaging.js 77628cf8bf first comm 3 years ago x-frame-options.js 77628cf8bf first comm 3 years ago xhr2.js 77628cf8bf first comm 3 years ago xhtml.js 77628cf8bf first comm 3 years ago xhtmlsmil.js 77628cf8bf first comm 3 years ago xml-serializer.js 77628cf8bf first comm 3 years ago tum/whitesports - Gogs: Simplico Git Service

Нет описания

StatisticsClicks.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace MailPoet\Models;
  3. if (!defined('ABSPATH')) exit;
  4. use DateTimeInterface;
  5. /**
  6. * @property int $newsletterId
  7. * @property int $subscriberId
  8. * @property int $queueId
  9. * @property int $linkId
  10. * @property int $count
  11. */
  12. class StatisticsClicks extends Model {
  13. public static $_table = MP_STATISTICS_CLICKS_TABLE; // phpcs:ignore PSR2.Classes.PropertyDeclaration
  14. public static function findLatestPerNewsletterBySubscriber(Subscriber $subscriber, DateTimeInterface $from, DateTimeInterface $to) {
  15. // subquery to find latest click IDs for each newsletter
  16. $table = self::$_table;
  17. $latestClickIdsPerNewsletterQuery = "
  18. SELECT MAX(id)
  19. FROM $table
  20. WHERE subscriber_id = :subscriber_id
  21. AND updated_at > :from
  22. AND updated_at < :to
  23. GROUP BY newsletter_id
  24. ";
  25. return static::tableAlias('clicks')
  26. ->whereRaw("clicks.id IN ($latestClickIdsPerNewsletterQuery)", [
  27. 'subscriber_id' => $subscriber->id,
  28. 'from' => $from->format('Y-m-d H:i:s'),
  29. 'to' => $to->format('Y-m-d H:i:s'),
  30. ])
  31. ->findMany();
  32. }
  33. }