2006-06-14 19:06:14 +00:00
|
|
|
<?php
|
2006-11-27 18:15:36 +00:00
|
|
|
/* SVN FILE: $Id$ */
|
2006-06-14 19:06:14 +00:00
|
|
|
/**
|
|
|
|
* Short description for file.
|
|
|
|
*
|
|
|
|
* Long description for file
|
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2007-02-02 10:39:45 +00:00
|
|
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
|
|
|
* Copyright 2005-2007, Cake Software Foundation, Inc.
|
2006-11-27 18:15:36 +00:00
|
|
|
* 1785 E. Sahara Avenue, Suite 490-204
|
|
|
|
* Las Vegas, Nevada 89104
|
2006-06-14 19:06:14 +00:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
|
|
|
* @filesource
|
2007-02-02 10:39:45 +00:00
|
|
|
* @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
|
|
|
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
2006-11-27 18:15:36 +00:00
|
|
|
* @package cake
|
2007-02-18 13:10:11 +00:00
|
|
|
* @subpackage cake.cake.libs.model.behaviors
|
|
|
|
* @since CakePHP(tm) v 1.2.0.4525
|
2006-11-27 18:15:36 +00:00
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
2006-06-14 19:06:14 +00:00
|
|
|
*/
|
2007-02-18 13:10:11 +00:00
|
|
|
/**
|
|
|
|
* Included libraries.
|
|
|
|
*/
|
|
|
|
uses('l10n');
|
2006-06-14 19:06:14 +00:00
|
|
|
/**
|
|
|
|
* Short description for file.
|
|
|
|
*
|
|
|
|
* Long description for file
|
|
|
|
*
|
2006-11-27 18:15:36 +00:00
|
|
|
* @package cake
|
2007-02-18 13:10:11 +00:00
|
|
|
* @subpackage cake.cake.libs.model.behaviors
|
2006-06-14 19:06:14 +00:00
|
|
|
*
|
|
|
|
*/
|
2007-02-18 13:10:11 +00:00
|
|
|
class TranslateBehavior extends ModelBehavior {
|
2006-12-22 20:30:09 +00:00
|
|
|
var $locale = null;
|
2006-06-14 19:06:14 +00:00
|
|
|
|
2007-02-18 13:10:11 +00:00
|
|
|
function setup(&$model, $config = array()) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function beforeFind(&$model, $query) {
|
|
|
|
|
2006-11-27 18:15:36 +00:00
|
|
|
}
|
2006-06-14 19:06:14 +00:00
|
|
|
|
2007-02-18 13:10:11 +00:00
|
|
|
function afterFind(&$model, $results, $primary) {
|
|
|
|
|
2006-11-27 18:15:36 +00:00
|
|
|
}
|
2006-06-14 19:06:14 +00:00
|
|
|
|
2007-02-18 13:10:11 +00:00
|
|
|
function beforeSave(&$model) {
|
|
|
|
|
2006-11-27 18:15:36 +00:00
|
|
|
}
|
2006-06-14 19:06:14 +00:00
|
|
|
|
2007-02-18 13:10:11 +00:00
|
|
|
function afterSave(&$model, $created) {
|
|
|
|
|
2006-11-27 18:15:36 +00:00
|
|
|
}
|
2006-06-14 19:06:14 +00:00
|
|
|
|
2007-02-18 13:10:11 +00:00
|
|
|
function beforeDelete(&$model) {
|
|
|
|
|
2006-11-27 18:15:36 +00:00
|
|
|
}
|
2006-06-14 19:06:14 +00:00
|
|
|
|
2007-02-18 13:10:11 +00:00
|
|
|
function afterDelete(&$model) {
|
2006-06-14 19:06:14 +00:00
|
|
|
|
2007-02-18 13:10:11 +00:00
|
|
|
}
|
2006-06-14 19:06:14 +00:00
|
|
|
}
|
|
|
|
?>
|