PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.1.4
Independent Analytics – WordPress Analytics Plugin v2.1.4
2.15.5 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 All 120 releases
independent-analytics / IAWP / Models / Page_Not_Found.php
Page_Not_Found.php
70 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IAWP_SCOPED\IAWP\Models;
4
5 class Page_Not_Found extends Page
6 {
7 private $not_found_url;
8 public function __construct($row)
9 {
10 $this->not_found_url = $row->not_found_url;
11 parent::__construct($row);
12 }
13 public function most_popular_subtitle() : string
14 {
15 return $this->url();
16 }
17 protected function resource_key() : string
18 {
19 return 'not_found_url';
20 }
21 protected function resource_value() : string
22 {
23 return $this->not_found_url;
24 }
25 protected function calculate_is_deleted() : bool
26 {
27 return \false;
28 }
29 protected function calculate_url()
30 {
31 return \site_url($this->not_found_url);
32 }
33 protected function calculate_title()
34 {
35 return '404';
36 }
37 protected function calculate_type()
38 {
39 return 'not-found';
40 }
41 protected function calculate_type_label()
42 {
43 return '404';
44 }
45 protected function calculate_icon()
46 {
47 return '<span class="dashicons dashicons-warning"></span>';
48 }
49 protected function calculate_author_id()
50 {
51 return null;
52 }
53 protected function calculate_author()
54 {
55 return null;
56 }
57 protected function calculate_avatar()
58 {
59 return null;
60 }
61 protected function calculate_date()
62 {
63 return null;
64 }
65 protected function calculate_category()
66 {
67 return [];
68 }
69 }
70