Admin
8 years ago
Column
8 years ago
Form
8 years ago
Helper
8 years ago
ListScreen
8 years ago
Meta
8 years ago
Notice
8 years ago
Plugin
8 years ago
Relation
8 years ago
Settings
8 years ago
ThirdParty
8 years ago
API.php
8 years ago
Addon.php
8 years ago
Admin.php
8 years ago
Autoloader.php
8 years ago
Collection.php
8 years ago
Column.php
8 years ago
Groups.php
8 years ago
Helper.php
8 years ago
ListScreen.php
8 years ago
ListScreenPost.php
8 years ago
ListScreenWP.php
8 years ago
Plugin.php
8 years ago
PluginInformation.php
8 years ago
Preferences.php
8 years ago
Relation.php
8 years ago
TableScreen.php
8 years ago
View.php
8 years ago
ViewInterface.php
8 years ago
Relation.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | abstract class AC_Relation { |
| 8 | |
| 9 | /** |
| 10 | * @var string |
| 11 | */ |
| 12 | protected $id; |
| 13 | |
| 14 | /** |
| 15 | * @param string $id |
| 16 | */ |
| 17 | public function __construct( $id ) { |
| 18 | $this->id = $id; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * @return string |
| 23 | */ |
| 24 | public function get_id() { |
| 25 | return $this->id; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * @return string |
| 30 | */ |
| 31 | abstract public function get_type(); |
| 32 | |
| 33 | /** |
| 34 | * @return false|stdClass |
| 35 | */ |
| 36 | abstract public function get_labels(); |
| 37 | |
| 38 | } |
| 39 |