~tsep-dev/tsep/0.9-beta

« back to all changes in this revision

Viewing changes to branches/symfony/cake/tests/fixtures/translate_with_prefix_fixture.php

  • Committer: geoffreyfishing
  • Date: 2011-01-11 23:46:12 UTC
  • Revision ID: svn-v4:ae0de26e-ed09-4cbe-9a20-e40b4c60ac6c::125
Created a symfony branch for future migration to symfony

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/* SVN FILE: $Id$ */
 
3
/**
 
4
 * Short description for file.
 
5
 *
 
6
 * Long description for file
 
7
 *
 
8
 * PHP versions 4 and 5
 
9
 *
 
10
 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
 
11
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 
12
 *
 
13
 *  Licensed under The Open Group Test Suite License
 
14
 *  Redistributions of files must retain the above copyright notice.
 
15
 *
 
16
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 
17
 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
 
18
 * @package       cake
 
19
 * @subpackage    cake.tests.fixtures
 
20
 * @since         CakePHP(tm) v 1.2.0.5669
 
21
 * @version       $Revision$
 
22
 * @modifiedby    $LastChangedBy$
 
23
 * @lastmodified  $Date$
 
24
 * @license       http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
 
25
 */
 
26
/**
 
27
 * Short description for class.
 
28
 *
 
29
 * @package       cake
 
30
 * @subpackage    cake.tests.fixtures
 
31
 */
 
32
class TranslateWithPrefixFixture extends CakeTestFixture {
 
33
/**
 
34
 * name property
 
35
 *
 
36
 * @var string 'Translate'
 
37
 * @access public
 
38
 */
 
39
        var $name = 'TranslateWithPrefix';
 
40
/**
 
41
 * table property
 
42
 *
 
43
 * @var string 'i18n'
 
44
 * @access public
 
45
 */
 
46
        var $table = 'i18n_translate_with_prefixes';
 
47
/**
 
48
 * fields property
 
49
 *
 
50
 * @var array
 
51
 * @access public
 
52
 */
 
53
        var $fields = array(
 
54
                'id' => array('type' => 'integer', 'key' => 'primary'),
 
55
                'locale' => array('type' => 'string', 'length' => 6, 'null' => false),
 
56
                'model' => array('type' => 'string', 'null' => false),
 
57
                'foreign_key' => array('type' => 'integer', 'null' => false),
 
58
                'field' => array('type' => 'string', 'null' => false),
 
59
                'content' => array('type' => 'text')
 
60
        );
 
61
/**
 
62
 * records property
 
63
 *
 
64
 * @var array
 
65
 * @access public
 
66
 */
 
67
        var $records = array(
 
68
                array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title #1'),
 
69
                array('id' => 2, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Content #1'),
 
70
                array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titel #1'),
 
71
                array('id' => 4, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Inhalt #1'),
 
72
                array('id' => 5, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titulek #1'),
 
73
                array('id' => 6, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'content', 'content' => 'Obsah #1'),
 
74
                array('id' => 7, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title #2'),
 
75
                array('id' => 8, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Content #2'),
 
76
                array('id' => 9, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Titel #2'),
 
77
                array('id' => 10, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Inhalt #2'),
 
78
                array('id' => 11, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Titulek #2'),
 
79
                array('id' => 12, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 2, 'field' => 'content', 'content' => 'Obsah #2'),
 
80
                array('id' => 13, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title #3'),
 
81
                array('id' => 14, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Content #3'),
 
82
                array('id' => 15, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Titel #3'),
 
83
                array('id' => 16, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Inhalt #3'),
 
84
                array('id' => 17, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Titulek #3'),
 
85
                array('id' => 18, 'locale' => 'cze', 'model' => 'TranslatedItem', 'foreign_key' => 3, 'field' => 'content', 'content' => 'Obsah #3')
 
86
        );
 
87
}