Split I18nModel into a separate file.

Refs #2514
This commit is contained in:
mark_story 2012-01-29 13:27:05 -05:00
parent 0fb6f88a2e
commit b9053161f4
2 changed files with 45 additions and 31 deletions

View file

@ -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 @@ class TranslateBehavior extends ModelBehavior {
}
}
/**
* @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';
}

View file

@ -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';
}