model.php
Go to the documentation of this file.00001 <?php 00002 /* SVN FILE: $Id: model_8php-source.html 675 2008-12-26 00:27:14Z gwoo $ */ 00003 /** 00004 * Object-relational mapper. 00005 * 00006 * DBO-backed object data model, for mapping database tables to Cake objects. 00007 * 00008 * PHP versions 4 and 5 00009 * 00010 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 00011 * Copyright 2005-2008, Cake Software Foundation, Inc. 00012 * 1785 E. Sahara Avenue, Suite 490-204 00013 * Las Vegas, Nevada 89104 00014 * 00015 * Licensed under The MIT License 00016 * Redistributions of files must retain the above copyright notice. 00017 * 00018 * @filesource 00019 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. 00020 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 00021 * @package cake 00022 * @subpackage cake.cake.libs.model 00023 * @since CakePHP(tm) v 0.10.0.0 00024 * @version $Revision: 675 $ 00025 * @modifiedby $LastChangedBy: gwoo $ 00026 * @lastmodified $Date: 2008-12-25 16:27:14 -0800 (Thu, 25 Dec 2008) $ 00027 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 00028 */ 00029 /** 00030 * Load the model class based on the version of PHP. 00031 * 00032 */ 00033 if (phpversion() < 5) { 00034 require(LIBS . 'model' . DS . 'model_php4.php'); 00035 00036 if (function_exists("overload")) { 00037 overload("Model"); 00038 } 00039 } else { 00040 require(LIBS . 'model' . DS . 'model_php5.php'); 00041 } 00042 ?>