mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
parent
0fb6f88a2e
commit
b9053161f4
2 changed files with 45 additions and 31 deletions
|
@ -1,9 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Translate behavior
|
|
||||||
*
|
|
||||||
* PHP 5
|
|
||||||
*
|
|
||||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||||
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||||
*
|
*
|
||||||
|
@ -18,6 +14,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
App::uses('I18n', 'I18n');
|
App::uses('I18n', 'I18n');
|
||||||
|
App::uses('I18nModel', 'Model');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translate behavior
|
* 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';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
44
lib/Cake/Model/I18nModel.php
Normal file
44
lib/Cake/Model/I18nModel.php
Normal 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';
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue