pictcode / lib / Cake / Test / Fixture / TranslateWithPrefixFixture.php @ 635eef61
履歴 | 表示 | アノテート | ダウンロード (3.838 KB)
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* Short description for file.
|
4 |
*
|
5 |
* Long description for file
|
6 |
*
|
7 |
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
|
8 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
9 |
*
|
10 |
* Licensed under The MIT License
|
11 |
* For full copyright and license information, please see the LICENSE.txt
|
12 |
* Redistributions of files must retain the above copyright notice
|
13 |
*
|
14 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
|
15 |
* @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
|
16 |
* @package Cake.Test.Fixture
|
17 |
* @since CakePHP(tm) v 1.2.0.5669
|
18 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
19 |
*/
|
20 |
/**
|
21 |
* Class TranslateWithPrefixFixture
|
22 |
*
|
23 |
* @package Cake.Test.Fixture
|
24 |
*/
|
25 |
class TranslateWithPrefixFixture extends CakeTestFixture { |
26 |
|
27 |
/**
|
28 |
* table property
|
29 |
*
|
30 |
* @var string
|
31 |
*/
|
32 |
public $table = 'i18n_translate_with_prefixes'; |
33 |
|
34 |
/**
|
35 |
* fields property
|
36 |
*
|
37 |
* @var array
|
38 |
*/
|
39 |
public $fields = array( |
40 |
'id' => array('type' => 'integer', 'key' => 'primary'), |
41 |
'locale' => array('type' => 'string', 'length' => 6, 'null' => false), |
42 |
'model' => array('type' => 'string', 'null' => false), |
43 |
'foreign_key' => array('type' => 'integer', 'null' => false), |
44 |
'field' => array('type' => 'string', 'null' => false), |
45 |
'content' => array('type' => 'text') |
46 |
); |
47 |
|
48 |
/**
|
49 |
* records property
|
50 |
*
|
51 |
* @var array
|
52 |
*/
|
53 |
public $records = array( |
54 |
array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title #1'), |
55 |
array('id' => 2, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Content #1'), |
56 |
array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titel #1'), |
57 |
array('id' => 4, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Inhalt #1'), |
58 |
array('id' => 5, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titulek #1'), |
59 |
array('id' => 6, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Obsah #1'), |
60 |
array('id' => 7, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title #2'), |
61 |
array('id' => 8, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Content #2'), |
62 |
array('id' => 9, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Titel #2'), |
63 |
array('id' => 10, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Inhalt #2'), |
64 |
array('id' => 11, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Titulek #2'), |
65 |
array('id' => 12, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Obsah #2'), |
66 |
array('id' => 13, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title #3'), |
67 |
array('id' => 14, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Content #3'), |
68 |
array('id' => 15, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Titel #3'), |
69 |
array('id' => 16, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Inhalt #3'), |
70 |
array('id' => 17, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Titulek #3'), |
71 |
array('id' => 18, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Obsah #3') |
72 |
); |
73 |
} |