You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
994 B
PHTML
27 lines
994 B
PHTML
8 months ago
|
<?php
|
||
|
|
||
|
class ET_Theme_Builder_Api_Errors {
|
||
|
const UNKNOWN = 'unknown';
|
||
|
const PORTABILITY_INCORRECT_CONTEXT = 'incorrect_context';
|
||
|
const PORTABILITY_REQUIRE_INCOMING_LAYOUT_DUPLICATE_DECISION = 'require_incoming_layout_duplicate_decision';
|
||
|
const PORTABILITY_IMPORT_PRESETS_FAILURE = 'import_presets_failure';
|
||
|
const PORTABILITY_IMPORT_INVALID_FILE = 'invalid_file';
|
||
|
|
||
|
/**
|
||
|
* Get map of all error codes.
|
||
|
*
|
||
|
* @since 4.0
|
||
|
*
|
||
|
* @return string[]
|
||
|
*/
|
||
|
public static function getMap() {
|
||
|
return array(
|
||
|
'unknown' => self::UNKNOWN,
|
||
|
'portabilityIncorrectContext' => self::PORTABILITY_INCORRECT_CONTEXT,
|
||
|
'portabilityRequireIncomingLayoutDuplicateDecision' => self::PORTABILITY_REQUIRE_INCOMING_LAYOUT_DUPLICATE_DECISION,
|
||
|
'portabilityImportPresetsFailure' => self::PORTABILITY_IMPORT_PRESETS_FAILURE,
|
||
|
'portabilityImportInvalidFile' => self::PORTABILITY_IMPORT_INVALID_FILE,
|
||
|
);
|
||
|
}
|
||
|
}
|