| 1 | <?php |
||
| 8 | abstract class Entity_List { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | protected $term_id; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Entity constructor. |
||
| 16 | * |
||
| 17 | * @param $term_id int |
||
| 18 | */ |
||
| 19 | public function __construct( $term_id ) { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Return a structure of jsonld data. |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | abstract public function get_jsonld_data(); |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param $entity_data array |
||
| 31 | * |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | abstract public function save_jsonld_data( $entity_data ); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Clear the data on the meta. |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | abstract public function clear_data(); |
||
| 41 | |||
| 42 | abstract public function remove_entity_by_id( $entity_id ); |
||
| 43 | } |