mirror of
				https://github.com/brmlab/brmbiolab_sklad.git
				synced 2025-10-31 07:24:02 +01:00 
			
		
		
		
	Initial commit
This commit is contained in:
		
						commit
						3b93da31de
					
				
					 1004 changed files with 265840 additions and 0 deletions
				
			
		|  | @ -0,0 +1,31 @@ | |||
| <?php | ||||
| /** | ||||
|  * Behavior for binding management. | ||||
|  * | ||||
|  * Behavior to simplify manipulating a model's bindings when doing a find operation | ||||
|  * | ||||
|  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP(tm) Project | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model.Behavior | ||||
|  * @since         CakePHP(tm) v 1.2.0.5669 | ||||
|  * @version       $Revision$ | ||||
|  * @modifiedby    $LastChangedBy$ | ||||
|  * @lastmodified  $Date$ | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting | ||||
|  * the amount of associations and data returned. | ||||
|  * | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model.Behavior | ||||
|  */ | ||||
| class TestPluginPersisterOneBehavior extends ModelBehavior { | ||||
| } | ||||
|  | @ -0,0 +1,31 @@ | |||
| <?php | ||||
| /** | ||||
|  * Behavior for binding management. | ||||
|  * | ||||
|  * Behavior to simplify manipulating a model's bindings when doing a find operation | ||||
|  * | ||||
|  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP(tm) Project | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model.Behavior | ||||
|  * @since         CakePHP(tm) v 1.2.0.5669 | ||||
|  * @version       $Revision$ | ||||
|  * @modifiedby    $LastChangedBy$ | ||||
|  * @lastmodified  $Date$ | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Behavior to allow for dynamic and atomic manipulation of a Model's associations used for a find call. Most useful for limiting | ||||
|  * the amount of associations and data returned. | ||||
|  * | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model.Behavior | ||||
|  */ | ||||
| class TestPluginPersisterTwoBehavior extends ModelBehavior { | ||||
| } | ||||
|  | @ -0,0 +1,11 @@ | |||
| <?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,30 @@ | |||
| <?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'); | ||||
| 	} | ||||
| } | ||||
|  | @ -0,0 +1,25 @@ | |||
| <?php | ||||
| /** | ||||
|  * Test Suite TestPlugin AppModel | ||||
|  * | ||||
|  * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice | ||||
|  * | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  * @since         CakePHP(tm) v 1.2.0.5432 | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Class TestPluginAppModel | ||||
|  * | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  */ | ||||
| class TestPluginAppModel extends CakeTestModel { | ||||
| } | ||||
|  | @ -0,0 +1,46 @@ | |||
| <?php | ||||
| /** | ||||
|  * Test Plugin Auth User Model | ||||
|  * | ||||
|  * CakePHP : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP Project | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  * @since         CakePHP v 1.2.0.4487 | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Class TestPluginAuthUser | ||||
|  * | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  */ | ||||
| class TestPluginAuthUser extends TestPluginAppModel { | ||||
| 
 | ||||
| /** | ||||
|  * Name property | ||||
|  * | ||||
|  * @var string | ||||
|  */ | ||||
| 	public $name = 'TestPluginAuthUser'; | ||||
| 
 | ||||
| /** | ||||
|  * useTable property | ||||
|  * | ||||
|  * @var string | ||||
|  */ | ||||
| 	public $useTable = 'auth_users'; | ||||
| 
 | ||||
| /** | ||||
|  * useDbConfig property | ||||
|  * | ||||
|  * @var string | ||||
|  */ | ||||
| 	public $useDbConfig = 'test'; | ||||
| } | ||||
|  | @ -0,0 +1,42 @@ | |||
| <?php | ||||
| /** | ||||
|  * Test App Comment Model | ||||
|  * | ||||
|  * CakePHP :  Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakefoundation.org/projects/info/cakephp CakePHP Project | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  * @since         CakePHP v 1.2.0.7726 | ||||
|  * @version       $Revision$ | ||||
|  * @modifiedby    $LastChangedBy$ | ||||
|  * @lastmodified  $Date$ | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Class TestPluginAuthors | ||||
|  * | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  */ | ||||
| class TestPluginAuthors extends TestPluginAppModel { | ||||
| 
 | ||||
| 	public $useTable = 'authors'; | ||||
| 
 | ||||
| 	public $name = 'TestPluginAuthors'; | ||||
| 
 | ||||
| 	public $validate = array( | ||||
| 		'field' => array( | ||||
| 			'notEmpty' => array( | ||||
| 				'rule' => 'notEmpty', | ||||
| 				'message' => 'I can haz plugin model validation message', | ||||
| 			), | ||||
| 		), | ||||
| 	); | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,33 @@ | |||
| <?php | ||||
| /** | ||||
|  * Test App Comment Model | ||||
|  * | ||||
|  * CakePHP :  Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakefoundation.org/projects/info/cakephp CakePHP Project | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  * @since         CakePHP v 1.2.0.7726 | ||||
|  * @version       $Revision$ | ||||
|  * @modifiedby    $LastChangedBy$ | ||||
|  * @lastmodified  $Date$ | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Class TestPluginComment | ||||
|  * | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  */ | ||||
| class TestPluginComment extends TestPluginAppModel { | ||||
| 
 | ||||
| 	public $useTable = 'test_plugin_comments'; | ||||
| 
 | ||||
| 	public $name = 'TestPluginComment'; | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,74 @@ | |||
| <?php | ||||
| /** | ||||
|  * Test Plugin Post Model | ||||
|  * | ||||
|  * CakePHP : Rapid Development Framework (http://cakephp.org) | ||||
|  * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * | ||||
|  * Licensed under The MIT License | ||||
|  * For full copyright and license information, please see the LICENSE.txt | ||||
|  * Redistributions of files must retain the above copyright notice. | ||||
|  * | ||||
|  * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||||
|  * @link          http://cakephp.org CakePHP Project | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  * @since         CakePHP v 1.2.0.4487 | ||||
|  * @license       http://www.opensource.org/licenses/mit-license.php MIT License | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Class TestPluginPost | ||||
|  * | ||||
|  * @package       Cake.Test.TestApp.Plugin.TestPlugin.Model | ||||
|  */ | ||||
| class TestPluginPost extends TestPluginAppModel { | ||||
| 
 | ||||
| /** | ||||
|  * Name property | ||||
|  * | ||||
|  * @var string | ||||
|  */ | ||||
| 	public $name = 'Post'; | ||||
| 
 | ||||
| /** | ||||
|  * useTable property | ||||
|  * | ||||
|  * @var string | ||||
|  */ | ||||
| 	public $useTable = 'posts'; | ||||
| 
 | ||||
| /** | ||||
|  * Validation rules | ||||
|  * | ||||
|  * @var array | ||||
|  */ | ||||
| 	public $validate = array( | ||||
| 		'title' => array( | ||||
| 			'rule' => array('custom', '.*'), | ||||
| 			'allowEmpty' => true, | ||||
| 			'required' => false, | ||||
| 			'message' => 'Post title is required' | ||||
| 		), | ||||
| 		'body' => array( | ||||
| 			'first_rule' => array( | ||||
| 				'rule' => array('custom', '.*'), | ||||
| 				'allowEmpty' => true, | ||||
| 				'required' => false, | ||||
| 				'message' => 'Post body is required' | ||||
| 			), | ||||
| 			'Post body is super required' => array( | ||||
| 				'rule' => array('custom', '.*'), | ||||
| 				'allowEmpty' => true, | ||||
| 				'required' => false, | ||||
| 			) | ||||
| 		), | ||||
| 	); | ||||
| 
 | ||||
| /** | ||||
|  * Translation domain to use for validation messages | ||||
|  * | ||||
|  * @var string | ||||
|  */ | ||||
| 	public $validationDomain = 'test_plugin'; | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 mareksebera
						mareksebera