Skip to content
Permalink
Browse files

Split I18nModel into a separate file.

Refs #2514
  • Loading branch information...
markstory committed Jan 29, 2012
1 parent 0fb6f88 commit b9053161f4a995f4a561a3daf48793390838d0ba
Showing with 45 additions and 31 deletions.
  1. +1 −31 lib/Cake/Model/Behavior/TranslateBehavior.php
  2. +44 −0 lib/Cake/Model/I18nModel.php
@@ -1,9 +1,5 @@
<?php
/**
* Translate behavior
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -18,6 +14,7 @@
*/
App::uses('I18n', 'I18n');
App::uses('I18nModel', 'Model');
/**
* Translate behavior
@@ -575,30 +572,3 @@ public function unbindTranslation($model, $fields = null) {
}
}
/**
* @package Cake.Model.Behavior
*/
class I18nModel extends AppModel {
/**
* Model name
*
* @var string
*/
public $name = 'I18nModel';
/**
* Table name
*
* @var string
*/
public $useTable = 'i18n';
/**
* Display field
*
* @var string
*/
public $displayField = 'field';
}
@@ -0,0 +1,44 @@
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package Cake.Model.Behavior
* @since CakePHP(tm) v 1.2.0.4525
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* A model used by TranslateBehavior to access the translation tables.
*
* @package Cake.Model
*/
class I18nModel extends AppModel {
/**
* Model name
*
* @var string
*/
public $name = 'I18nModel';
/**
* Table name
*
* @var string
*/
public $useTable = 'i18n';
/**
* Display field
*
* @var string
*/
public $displayField = 'field';
}

0 comments on commit b905316

Please sign in to comment.
You can’t perform that action at this time.