| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* @since 5.3 |
| 8 |
*/ |
| 9 |
class FrmApplicationApi extends FrmFormApi { |
| 10 |
|
| 11 |
/** |
| 12 |
* @var string $base_api_url |
| 13 |
*/ |
| 14 |
private static $base_api_url = 'https://formidableforms.com/wp-json/view-templates/v1/list'; |
| 15 |
|
| 16 |
/** |
| 17 |
* @var int $new_days |
| 18 |
*/ |
| 19 |
protected $new_days = 60; |
| 20 |
|
| 21 |
/** |
| 22 |
* @return string |
| 23 |
*/ |
| 24 |
protected function api_url() { |
| 25 |
return self::$base_api_url; |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* @return void |
| 30 |
*/ |
| 31 |
protected function set_cache_key() { |
| 32 |
$this->cache_key = 'frm_applications_l' . ( empty( $this->license ) ? '' : md5( $this->license ) ); |
| 33 |
} |
| 34 |
} |
| 35 |
|