| 1 | <?php |
||
| 12 | abstract class Type { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * type |
||
| 16 | * Type of objects we'll be dealing with i.e.: post or term. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | * @access protected |
||
| 20 | */ |
||
| 21 | protected $type; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * connected |
||
| 25 | * Whether or not we're successfully connected to the Internet. |
||
| 26 | * |
||
| 27 | * @var boolean |
||
| 28 | * @access private |
||
| 29 | */ |
||
| 30 | protected $connected; |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * Registers the type with the rest of the plugin |
||
| 35 | */ |
||
| 36 | public function register_type() { |
||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * Sets the type in the type array for use by the rest of the plugin. |
||
| 45 | * |
||
| 46 | * @param array $types Original types array |
||
| 47 | * @return array Modified types array with our current type |
||
| 48 | */ |
||
| 49 | public function set_type( $types ) { |
||
| 55 | |||
| 56 | } |
||
| 57 |