Campaign.php
10 months ago
Campaign_Landing_Page.php
9 months ago
Campaign_UTM_Campaign.php
9 months ago
Campaign_UTM_Medium.php
9 months ago
Campaign_UTM_Source.php
9 months ago
ClickWhale_Link_Page.php
1 year ago
Current_Traffic.php
2 years ago
Device.php
10 months ago
Form.php
1 year ago
Geo.php
10 months ago
Journey.php
5 months ago
Link.php
8 months ago
Link_Pattern.php
10 months ago
Model.php
6 months ago
Page.php
10 months ago
Page_Author_Archive.php
2 years ago
Page_Date_Archive.php
2 years ago
Page_Home.php
2 years ago
Page_Not_Found.php
1 year ago
Page_Post_Type_Archive.php
1 year ago
Page_Search.php
2 years ago
Page_Singular.php
1 year ago
Page_Term_Archive.php
2 years ago
Page_Virtual.php
1 year ago
Referrer.php
6 months ago
Referrer_Type.php
9 months ago
Universal_Model_Columns.php
1 year ago
Visitor.php
9 months ago
Referrer_Type.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP\Models; |
| 4 | |
| 5 | /** @internal */ |
| 6 | class Referrer_Type extends \IAWP\Models\Model |
| 7 | { |
| 8 | use \IAWP\Models\Universal_Model_Columns; |
| 9 | protected $row; |
| 10 | private $is_direct; |
| 11 | private $referrer; |
| 12 | private $domain; |
| 13 | private $referrer_type; |
| 14 | public function __construct($row) |
| 15 | { |
| 16 | $this->row = $row; |
| 17 | $this->referrer_type = $row->referrer_type; |
| 18 | } |
| 19 | public function id() : int |
| 20 | { |
| 21 | return $this->row->referrer_type_id; |
| 22 | } |
| 23 | public function table_type() : string |
| 24 | { |
| 25 | return 'referrers'; |
| 26 | } |
| 27 | /** |
| 28 | * Return group referrer type, referrer, or direct. |
| 29 | * |
| 30 | * @return string Referrer type |
| 31 | */ |
| 32 | public function referrer_type() : string |
| 33 | { |
| 34 | return $this->referrer_type; |
| 35 | } |
| 36 | public function examiner_title() : ?string |
| 37 | { |
| 38 | return $this->referrer_type(); |
| 39 | } |
| 40 | public function examiner_url() : string |
| 41 | { |
| 42 | return \IAWPSCOPED\iawp_dashboard_url(['tab' => 'referrers', 'examiner' => $this->id()]); |
| 43 | } |
| 44 | } |
| 45 |