delete-form-record-endpoint.php
2 years ago
fetch-filters-endpoint.php
2 years ago
fetch-records-count-endpoint.php
2 years ago
fetch-records-fields-box-endpoint.php
2 years ago
fetch-records-page-endpoint.php
2 years ago
mark-as-not-viewed-record-endpoint.php
2 years ago
mark-as-viewed-record-endpoint.php
2 years ago
mark-view-record-base-endpoint.php
2 years ago
mark-as-viewed-record-endpoint.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Modules\Form_Record\Rest_Endpoints; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | class Mark_As_Viewed_Record_Endpoint extends Mark_View_Record_Base_Endpoint { |
| 12 | |
| 13 | public static function get_rest_base() { |
| 14 | return 'records-table/view'; |
| 15 | } |
| 16 | |
| 17 | protected function is_viewed(): bool { |
| 18 | return true; |
| 19 | } |
| 20 | } |
| 21 |