GravityKit\GravityExport\Save\Service\StorageService
A service that handles the rendering and storing of the files.
Since: 1.0
Source: add-ons/save/src/Service/StorageService.php:14
Details
- Kind:
class - Namespace:
GravityKit\GravityExport\Save\Service
Methods
| Method | Description |
|---|---|
getForm() | |
renderFile() | |
clearHistory() | Removes files, and clears history. |
getSourceFeedId() | Returns the source feed id. |
Method Reference
getForm()
public function getForm( string $form_id ): array
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$form_id | string |
Returns
array
Since: 1.0
Source: add-ons/save/src/Service/StorageService.php:27
renderFile()
public function renderFile( array $feed, ?array $entries=null ): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$feed | array | ||
$entries | ?array | null |
Returns
string
Since: 1.0
Source: add-ons/save/src/Service/StorageService.php:35
clearHistory()
public function clearHistory(): void
Removes files, and clears history.
Returns
void
Since: 1.0
Source: add-ons/save/src/Service/StorageService.php:98
getSourceFeedId()
public static function getSourceFeedId( array $feed ): int
Returns the source feed id.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$feed | array | The feed object. |
Returns
int— The source feed id.
Source: add-ons/save/src/Service/StorageService.php:116