mirror of
				https://github.com/brmlab/brmbiolab_sklad.git
				synced 2025-10-30 23:14:01 +01:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
						commit
						3b93da31de
					
				
					 1004 changed files with 265840 additions and 0 deletions
				
			
		|  | @ -0,0 +1,6 @@ | |||
| <?php | ||||
| 
 | ||||
| App::uses('TestSource', 'TestPlugin.Model/Datasource'); | ||||
| 
 | ||||
| class TestLocalDriver extends TestSource { | ||||
| } | ||||
|  | @ -0,0 +1,30 @@ | |||
| <?php | ||||
| /** | ||||
|  * Test suite app/Model/Datasource/Session session handler | ||||
|  * | ||||
|  */ | ||||
| 
 | ||||
| App::uses('CakeSessionHandlerInterface', 'Model/Datasource/Session'); | ||||
| 
 | ||||
| class TestAppLibSession 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) { | ||||
| 	} | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										27
									
								
								lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								lib/Cake/Test/test_app/Model/Datasource/Test2OtherSource.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,27 @@ | |||
| <?php | ||||
| class Test2OtherSource 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 = null) { | ||||
| 		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'); | ||||
| 	} | ||||
| } | ||||
							
								
								
									
										27
									
								
								lib/Cake/Test/test_app/Model/Datasource/Test2Source.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								lib/Cake/Test/test_app/Model/Datasource/Test2Source.php
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,27 @@ | |||
| <?php | ||||
| class Test2Source 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 = null) { | ||||
| 		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
	
	 mareksebera
						mareksebera