Skip to main content

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

MethodDescription
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

NameTypeDefaultDescription
$form_idstring

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

NameTypeDefaultDescription
$feedarray
$entries?arraynull

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

NameTypeDefaultDescription
$feedarrayThe feed object.

Returns

  • int — The source feed id.

Source: add-ons/save/src/Service/StorageService.php:116