Docs »

Plugins »

Extension Points »

Storage Engine

Name: Storage Engine
Identifier (ID): devblocks.storage.engine

Manifest


		<extension point="devblocks.storage.engine">
			<id>devblocks.storage.engine.disk</id>
			<name>Disk</name>
			<class>
				<file>api/services/storage.php</file>
				<name>DevblocksStorageEngineDisk</name>
			</class>
			<params>
			</params>
		</extension>

Code



class ExampleExtension extends Extension_DevblocksStorageEngine {
	public function batchDelete($namespace, $keys) {
	}

	public function delete($namespace, $key) {
	}

	public function exists($namespace, $key) {
	}

	public function get($namespace, $key, $fp) {
	}

	public function put($namespace, $id, $data) {
	}

	public function renderConfig(Model_DevblocksStorageProfile $profile) {
	}

	public function saveConfig(Model_DevblocksStorageProfile $profile) {
	}

	public function testConfig(Model_DevblocksStorageProfile $profile) {
	}
}


Extensions

Amazon S3 devblocks.storage.engine.s3
Cerb Cloud cerb.cloud.storage.engine.s3
Database devblocks.storage.engine.database
Disk devblocks.storage.engine.disk
S3 Gatekeeper devblocks.storage.engine.gatekeeper