*/ public const BLOCKS = array( self::BLOCK_STATUS, self::BLOCK_MESSAGE, self::BLOCK_TOOLS, self::BLOCK_ABILITIES, self::BLOCK_ACCESS, self::BLOCK_CONNECTORS, ); /** * Where a server came from — and therefore whether an import may CREATE it. * * Not whether it may be exported: a plugin-registered server stores its * settings in exactly the same places as any other, and on this codebase's * own dev site it is the only server with all three protocol tools * switched on. Its settings travel; its existence does not. * * @since 0.4.9 * @var string */ public const ORIGIN_DATABASE = 'database'; public const ORIGIN_PLUGIN = 'plugin'; /** * Tool-state names, mirroring the Tools tab's three bulk buttons. * * The buttons leave no stored mode — only rows — so the exporter works out * which state the rows match and records that, plus any delta. Recording * the absolute slug list instead would pin an imported server to one * release's type defaults, silently undoing a later release's changes. * * @since 0.4.9 * @var string */ public const TOOLS_TYPE_DEFAULTS = 'type-defaults'; public const TOOLS_ALL = 'all'; public const TOOLS_NONE = 'none'; public const TOOLS_CUSTOM = 'custom'; /** * Access-control rule key that names individual users. * * Refused by the exporter. A user id means a different person on another * site, so carrying one would silently grant access to whoever happens to * hold that id — the same reason `connector_approved_users` never travels. * * @since 0.4.9 * @var string */ public const ACCESS_RULE_USER = 'wp_user'; /** * Not instantiable. * * @since 0.4.9 */ private function __construct() {} }