| 1 | <?php |
||
| 8 | class Wordlift_Thumbnail_Service { |
||
|
1 ignored issue
–
show
|
|||
| 9 | |||
| 10 | /** |
||
| 11 | * The Thumbnail id meta key. |
||
| 12 | * |
||
| 13 | * @since 3.1.5 |
||
| 14 | */ |
||
| 15 | const THUMBNAIL_ID_META_KEY = '_thumbnail_id'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The predicate used in RDF to describe the thumbnail. |
||
| 19 | * |
||
| 20 | * @since 3.1.5 |
||
| 21 | */ |
||
| 22 | const THUMBNAIL_RDF_PREDICATE = 'http://schema.org/image'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The Log service. |
||
| 26 | * |
||
| 27 | * @since 3.1.5 |
||
| 28 | * @access private |
||
| 29 | * @var \Wordlift_Log_Service The Log service. |
||
| 30 | */ |
||
| 31 | private $log_service; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Create an instance of the Thumbnail service. |
||
| 35 | * |
||
| 36 | * @since 3.1.5 |
||
| 37 | */ |
||
| 38 | public function __construct() { |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Receive post meta events immediately after a post metadata has been deleted. |
||
| 46 | * |
||
| 47 | * @since 3.1.5 |
||
| 48 | * |
||
| 49 | * @param array $meta_ids An array of deleted metadata entry IDs. |
||
| 50 | * @param int $object_id Object ID. |
||
| 51 | * @param string $meta_key Meta key. |
||
| 52 | * @param mixed $_meta_value Meta value. |
||
| 53 | */ |
||
| 54 | public function deleted_post_meta( $meta_ids, $object_id, $meta_key, $_meta_value ) { |
||
| 80 | |||
| 81 | /** |
||
| 82 | * Receive post meta events immediately after a post metadata has been added. |
||
| 83 | * |
||
| 84 | * @since 3.1.5 |
||
| 85 | * |
||
| 86 | * @param int $mid The meta ID after successful update. |
||
| 87 | * @param int $object_id Object ID. |
||
| 88 | * @param string $meta_key Meta key. |
||
| 89 | * @param mixed $_meta_value Meta value. |
||
| 90 | */ |
||
| 91 | public function added_post_meta( $mid, $object_id, $meta_key, $_meta_value ) { |
||
| 129 | |||
| 130 | } |
||
|
1 ignored issue
–
show
|
|||
| 131 |