mirror of
https://github.com/brmlab/brmsklad.git
synced 2025-08-04 07:03:41 +02:00
Backup of current cakephp version
This commit is contained in:
parent
b8f82da6f8
commit
5a580df460
925 changed files with 238041 additions and 1 deletions
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
App::uses('DboSource', 'Model/Datasource');
|
||||
|
||||
class DboDummy extends DboSource {
|
||||
|
||||
public function connect() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
class TestDriver extends TestSource {
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
/**
|
||||
* Test suite plugin session handler
|
||||
*/
|
||||
|
||||
App::uses('CakeSessionHandlerInterface', 'Model/Datasource/Session');
|
||||
|
||||
class TestPluginSession implements CakeSessionHandlerInterface {
|
||||
|
||||
public function open() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function close() {
|
||||
}
|
||||
|
||||
public function read($id) {
|
||||
}
|
||||
|
||||
public function write($id, $data) {
|
||||
}
|
||||
|
||||
public function destroy($id) {
|
||||
}
|
||||
|
||||
public function gc($expires = null) {
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
class TestOtherSource extends DataSource {
|
||||
|
||||
public function describe($model) {
|
||||
return compact('model');
|
||||
}
|
||||
|
||||
public function listSources($data = null) {
|
||||
return array('test_source');
|
||||
}
|
||||
|
||||
public function create(Model $model, $fields = null, $values = array()) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function read(Model $model, $queryData = array(), $recursive = null) {
|
||||
return compact('model', 'queryData');
|
||||
}
|
||||
|
||||
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function delete(Model $model, $id = null) {
|
||||
return compact('model', 'id');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
App::uses('DataSource', 'Model/Datasource');
|
||||
|
||||
class TestSource extends DataSource {
|
||||
|
||||
public function describe($model) {
|
||||
return compact('model');
|
||||
}
|
||||
|
||||
public function listSources($data = null) {
|
||||
return array('test_source');
|
||||
}
|
||||
|
||||
public function create(Model $model, $fields = array(), $values = array()) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function read(Model $model, $queryData = array(), $recursive = null) {
|
||||
return compact('model', 'queryData');
|
||||
}
|
||||
|
||||
public function update(Model $model, $fields = array(), $values = array(), $conditions = null) {
|
||||
return compact('model', 'fields', 'values');
|
||||
}
|
||||
|
||||
public function delete(Model $model, $id = null) {
|
||||
return compact('model', 'id');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue