WorkflowDefinitionExporter
class WorkflowDefinitionExporter (View source)
Allows workflow definitions to be exported from one SilverStripe install, ready for import into another.
YAML is used for export as it's native to SilverStripe's config system and we're using WorkflowTemplate for some of the import-specific heavy lifting, which is already heavily predicated on YAML.
Traits
Provides extensions to this object to integrate it with standard config API methods.
Config options
export_filename_prefix | string | The base filename of the file to the exported |
Properties
protected | Member | $member | ||
protected | WorkflowDefinition | $workflowDefinition |
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
Gets the uninherited value for the given config option
Details
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
mixed
stat(string $name)
deprecated
deprecated
Get inherited config value
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
$this
set_stat(string $name, mixed $value)
deprecated
deprecated
Update the config value for a given property
void
__construct(number $definitionID)
No description
setMember(Member $member)
No description
WorkflowDefinition
getDefinition()
No description
string
export()
Runs the export
void
format(ArrayData $templateData)
Format the exported data as YAML.
number
getExportSize(string $str)
Returns the size of the current export in bytes.
Used for pushing data to the browser to prompt for download
ArrayData
ExportMetaData()
Generate template vars for metadata
HTTPResponse
sendFile(array $filedata)
Prompt the client for file download.
We're "overriding" SS_HTTPRequest::send_file() for more robust cross-browser support