| 1 | <?php namespace Bedard\Shop\Models; |
||
| 8 | class ApiSettings extends Model |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var array Behaviors |
||
| 12 | */ |
||
| 13 | public $implement = ['System.Behaviors.SettingsModel']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string Settings code |
||
| 17 | */ |
||
| 18 | public $settingsCode = 'bedard_shop_settings_api'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string Settings fields |
||
| 22 | */ |
||
| 23 | public $settingsFields = 'fields.yaml'; |
||
| 24 | |||
| 25 | public static function categoriesHideEmpty() |
||
| 29 | |||
| 30 | public static function categoriesLoadThumbnails() |
||
| 34 | |||
| 35 | public static function categoryLoadThumbnails() |
||
| 36 | { |
||
| 37 | return self::get('category_load_thumbnails', false); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Determines if the HTTP API is enabled. |
||
| 42 | * |
||
| 43 | * @return bool |
||
| 44 | */ |
||
| 45 | public static function isEnabled() |
||
| 49 | } |
||
| 50 |