Admin
8 years ago
Column
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
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
Addon.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | abstract class AC_Addon { |
| 8 | |
| 9 | /** |
| 10 | * Return the file from this plugin |
| 11 | * |
| 12 | * @return string |
| 13 | */ |
| 14 | abstract protected function get_file(); |
| 15 | |
| 16 | /** |
| 17 | * @return string |
| 18 | */ |
| 19 | public function get_basename() { |
| 20 | return plugin_basename( $this->get_file() ); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @return string |
| 25 | */ |
| 26 | public function get_plugin_dir() { |
| 27 | return plugin_dir_path( $this->get_file() ); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * @return string |
| 32 | */ |
| 33 | public function get_plugin_url() { |
| 34 | return plugin_dir_url( $this->get_file() ); |
| 35 | } |
| 36 | |
| 37 | } |
| 38 |