⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbo_source.test.php

📁 Cake Framwork , Excellent
💻 PHP
📖 第 1 页 / 共 5 页
字号:
 * @var bool false * @access public */	var $useTable = false;/** * schema method * * @access public * @return void */	function schema() {		if (!isset($this->_schema)) {			$this->_schema = array(				'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),				'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),				'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),				'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)			);		}		return $this->_schema;	}}/** * Short description for class. * * @package		cake.tests * @subpackage	cake.tests.cases.libs.model.datasources */class TestModel8 extends CakeTestModel {/** * name property * * @var string 'TestModel8' * @access public */	var $name = 'TestModel8';/** * table property * * @var string 'test_model8' * @access public */	var $table = 'test_model8';/** * useTable property * * @var bool false * @access public */	var $useTable = false;/** * hasOne property * * @var array * @access public */	var $hasOne = array(		'TestModel9' => array(			'className' => 'TestModel9',			'foreignKey' => 'test_model8_id',			'conditions' => 'TestModel9.name != \'mariano\''		)	);/** * schema method * * @access public * @return void */	function schema() {		if (!isset($this->_schema)) {			$this->_schema = array(				'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),				'test_model9_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),				'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),				'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),				'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)			);		}		return $this->_schema;	}}/** * Short description for class. * * @package		cake.tests * @subpackage	cake.tests.cases.libs.model.datasources */class TestModel9 extends CakeTestModel {/** * name property * * @var string 'TestModel9' * @access public */	var $name = 'TestModel9';/** * table property * * @var string 'test_model9' * @access public */	var $table = 'test_model9';/** * useTable property * * @var bool false * @access public */	var $useTable = false;/** * belongsTo property * * @var array * @access public */	var $belongsTo = array('TestModel8' => array(		'className' => 'TestModel8',		'foreignKey' => 'test_model8_id',		'conditions' => 'TestModel8.name != \'larry\''	));/** * schema method * * @access public * @return void */	function schema() {		if (!isset($this->_schema)) {			$this->_schema = array(				'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),				'test_model8_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '11'),				'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),				'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),				'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)			);		}		return $this->_schema;	}}/** * Level class * * @package              cake * @subpackage           cake.tests.cases.libs.model.datasources */class Level extends CakeTestModel {/** * name property * * @var string 'Level' * @access public */	var $name = 'Level';/** * table property * * @var string 'level' * @access public */	var $table = 'level';/** * useTable property * * @var bool false * @access public */	var $useTable = false;/** * hasMany property * * @var array * @access public */	var $hasMany = array(		'Group'=> array(			'className' => 'Group'		),		'User2' => array(			'className' => 'User2'		)	);/** * schema method * * @access public * @return void */	function schema() {		if (!isset($this->_schema)) {			$this->_schema = array(				'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),				'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20'),			);		}		return $this->_schema;	}}/** * Group class * * @package              cake * @subpackage           cake.tests.cases.libs.model.datasources */class Group extends CakeTestModel {/** * name property * * @var string 'Group' * @access public */	var $name = 'Group';/** * table property * * @var string 'group' * @access public */	var $table = 'group';/** * useTable property * * @var bool false * @access public */	var $useTable = false;/** * belongsTo property * * @var array * @access public */	var $belongsTo = array('Level');/** * hasMany property * * @var array * @access public */	var $hasMany = array('Category2', 'User2');/** * schema method * * @access public * @return void */	function schema() {		if (!isset($this->_schema)) {			$this->_schema = array(				'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),				'level_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),				'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20'),			);		}		return $this->_schema;	}}/** * User2 class * * @package              cake * @subpackage           cake.tests.cases.libs.model.datasources */class User2 extends CakeTestModel {/** * name property * * @var string 'User2' * @access public */	var $name = 'User2';/** * table property * * @var string 'user' * @access public */	var $table = 'user';/** * useTable property * * @var bool false * @access public */	var $useTable = false;/** * belongsTo property * * @var array * @access public */	var $belongsTo = array(		'Group' => array(			'className' => 'Group'		),		'Level' => array(			'className' => 'Level'		)	);/** * hasMany property * * @var array * @access public */	var $hasMany = array(		'Article2' => array(			'className' => 'Article2'		),	);/** * schema method * * @access public * @return void */	function schema() {		if (!isset($this->_schema)) {			$this->_schema = array(				'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),				'group_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),				'level_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),				'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20'),			);		}		return $this->_schema;	}}/** * Category2 class * * @package              cake * @subpackage           cake.tests.cases.libs.model.datasources */class Category2 extends CakeTestModel {/** * name property * * @var string 'Category2' * @access public */	var $name = 'Category2';/** * table property * * @var string 'category' * @access public */	var $table = 'category';/** * useTable property * * @var bool false * @access public */	var $useTable = false;/** * belongsTo property * * @var array * @access public */	var $belongsTo = array(		'Group' => array(			'className' => 'Group',			'foreignKey' => 'group_id'		),		'ParentCat' => array(			'className' => 'Category2',			'foreignKey' => 'parent_id'		)	);/** * hasMany property * * @var array * @access public */	var $hasMany = array(		'ChildCat' => array(			'className' => 'Category2',			'foreignKey' => 'parent_id'		),		'Article2' => array(

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -