PageRenderTime 134ms CodeModel.GetById 64ms app.highlight 16ms RepoModel.GetById 51ms app.codeStats 0ms

/Menus/Test/Fixture/LinkFixture.php

https://github.com/kareypowell/croogo
PHP | 266 lines | 262 code | 4 blank | 0 comment | 0 complexity | 47b221bf6e09b82b7b4afae24e49f4b9 MD5 | raw file
  1<?php
  2
  3class LinkFixture extends CroogoTestFixture {
  4
  5	public $name = 'Link';
  6
  7	public $fields = array(
  8		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 20, 'key' => 'primary'),
  9		'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 20),
 10		'menu_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 20),
 11		'title' => array('type' => 'string', 'null' => false, 'default' => null),
 12		'class' => array('type' => 'string', 'null' => false, 'default' => null),
 13		'description' => array('type' => 'text', 'null' => true, 'default' => null),
 14		'link' => array('type' => 'string', 'null' => false, 'default' => null),
 15		'target' => array('type' => 'string', 'null' => true, 'default' => null),
 16		'rel' => array('type' => 'string', 'null' => true, 'default' => null),
 17		'status' => array('type' => 'integer', 'length' => 1, 'null' => false, 'default' => '1'),
 18		'lft' => array('type' => 'integer', 'null' => true, 'default' => null),
 19		'rght' => array('type' => 'integer', 'null' => true, 'default' => null),
 20		'visibility_roles' => array('type' => 'text', 'null' => true, 'default' => null),
 21		'params' => array('type' => 'text', 'null' => true, 'default' => null),
 22		'publish_start' => array('type' => 'datetime', 'null' => true, 'default' => null),
 23		'publish_end' => array('type' => 'datetime', 'null' => true, 'default' => null),
 24		'updated' => array('type' => 'datetime', 'null' => false, 'default' => null),
 25		'created' => array('type' => 'datetime', 'null' => false, 'default' => null),
 26		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
 27		'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'InnoDB')
 28	);
 29
 30	public $records = array(
 31		array(
 32			'id' => 5,
 33			'parent_id' => null,
 34			'menu_id' => 4,
 35			'title' => 'About',
 36			'class' => 'about',
 37			'description' => '',
 38			'link' => 'controller:nodes/action:view/type:page/slug:about',
 39			'target' => '',
 40			'rel' => '',
 41			'status' => 1,
 42			'lft' => 3,
 43			'rght' => 4,
 44			'visibility_roles' => '',
 45			'params' => '',
 46			'updated' => '2009-10-06 23:14:21',
 47			'created' => '2009-08-19 12:23:33'
 48		),
 49		array(
 50			'id' => 6,
 51			'parent_id' => null,
 52			'menu_id' => 4,
 53			'title' => 'Contact',
 54			'class' => 'contact',
 55			'description' => '',
 56			'link' => 'controller:contacts/action:view/contact',
 57			'target' => '',
 58			'rel' => '',
 59			'status' => 1,
 60			'lft' => 5,
 61			'rght' => 6,
 62			'visibility_roles' => '',
 63			'params' => '',
 64			'updated' => '2009-10-06 23:14:45',
 65			'created' => '2009-08-19 12:34:56'
 66		),
 67		array(
 68			'id' => 7,
 69			'parent_id' => null,
 70			'menu_id' => 3,
 71			'title' => 'Home',
 72			'class' => 'home',
 73			'description' => '',
 74			'link' => '/',
 75			'target' => '',
 76			'rel' => '',
 77			'status' => 1,
 78			'lft' => 1,
 79			'rght' => 2,
 80			'visibility_roles' => '',
 81			'params' => '',
 82			'updated' => '2009-10-06 21:17:06',
 83			'created' => '2009-09-06 21:32:54'
 84		),
 85		array(
 86			'id' => 8,
 87			'parent_id' => null,
 88			'menu_id' => 3,
 89			'title' => 'About',
 90			'class' => 'about',
 91			'description' => '',
 92			'link' => '/about',
 93			'target' => '',
 94			'rel' => '',
 95			'status' => 1,
 96			'lft' => 3,
 97			'rght' => 6,
 98			'visibility_roles' => '',
 99			'params' => '',
100			'updated' => '2009-09-12 03:45:53',
101			'created' => '2009-09-06 21:34:57'
102		),
103		array(
104			'id' => 9,
105			'parent_id' => 8,
106			'menu_id' => 3,
107			'title' => 'Child link',
108			'class' => 'child-link',
109			'description' => '',
110			'link' => '#',
111			'target' => '',
112			'rel' => '',
113			'status' => 0,
114			'lft' => 4,
115			'rght' => 5,
116			'visibility_roles' => '',
117			'params' => '',
118			'updated' => '2009-10-06 23:13:06',
119			'created' => '2009-09-12 03:52:23'
120		),
121		array(
122			'id' => 10,
123			'parent_id' => null,
124			'menu_id' => 5,
125			'title' => 'Site Admin',
126			'class' => 'site-admin',
127			'description' => '',
128			'link' => '/admin',
129			'target' => '',
130			'rel' => '',
131			'status' => 1,
132			'lft' => 1,
133			'rght' => 2,
134			'visibility_roles' => '',
135			'params' => '',
136			'updated' => '2009-09-12 06:34:09',
137			'created' => '2009-09-12 06:34:09'
138		),
139		array(
140			'id' => 11,
141			'parent_id' => null,
142			'menu_id' => 5,
143			'title' => 'Log out',
144			'class' => 'log-out',
145			'description' => '',
146			'link' => '/users/logout',
147			'target' => '',
148			'rel' => '',
149			'status' => 1,
150			'lft' => 7,
151			'rght' => 8,
152			'visibility_roles' => '[\"1\",\"2\"]',
153			'params' => '',
154			'updated' => '2009-09-12 06:35:22',
155			'created' => '2009-09-12 06:34:41'
156		),
157		array(
158			'id' => 12,
159			'parent_id' => null,
160			'menu_id' => 6,
161			'title' => 'Croogo',
162			'class' => 'croogo',
163			'description' => '',
164			'link' => 'http://www.croogo.org',
165			'target' => '',
166			'rel' => '',
167			'status' => 1,
168			'lft' => 3,
169			'rght' => 4,
170			'visibility_roles' => '',
171			'params' => '',
172			'updated' => '2009-09-12 23:31:59',
173			'created' => '2009-09-12 23:31:59'
174		),
175		array(
176			'id' => 14,
177			'parent_id' => null,
178			'menu_id' => 6,
179			'title' => 'CakePHP',
180			'class' => 'cakephp',
181			'description' => '',
182			'link' => 'http://www.cakephp.org',
183			'target' => '',
184			'rel' => '',
185			'status' => 1,
186			'lft' => 1,
187			'rght' => 2,
188			'visibility_roles' => '',
189			'params' => '',
190			'updated' => '2009-10-07 03:25:25',
191			'created' => '2009-09-12 23:38:43'
192		),
193		array(
194			'id' => 15,
195			'parent_id' => null,
196			'menu_id' => 3,
197			'title' => 'Contact',
198			'class' => 'contact',
199			'description' => '',
200			'link' => '/controller:contacts/action:view/contact',
201			'target' => '',
202			'rel' => '',
203			'status' => 1,
204			'lft' => 7,
205			'rght' => 8,
206			'visibility_roles' => '',
207			'params' => '',
208			'updated' => '2009-09-16 07:54:13',
209			'created' => '2009-09-16 07:53:33'
210		),
211		array(
212			'id' => 16,
213			'parent_id' => null,
214			'menu_id' => 5,
215			'title' => 'Entries (RSS)',
216			'class' => 'entries-rss',
217			'description' => '',
218			'link' => '/nodes/promoted.rss',
219			'target' => '',
220			'rel' => '',
221			'status' => 1,
222			'lft' => 3,
223			'rght' => 4,
224			'visibility_roles' => '',
225			'params' => '',
226			'updated' => '2009-10-27 17:46:22',
227			'created' => '2009-10-27 17:46:22'
228		),
229		array(
230			'id' => 17,
231			'parent_id' => null,
232			'menu_id' => 5,
233			'title' => 'Comments (RSS)',
234			'class' => 'comments-rss',
235			'description' => '',
236			'link' => '/comments.rss',
237			'target' => '',
238			'rel' => '',
239			'status' => 1,
240			'lft' => 5,
241			'rght' => 6,
242			'visibility_roles' => '',
243			'params' => '',
244			'updated' => '2009-10-27 17:46:54',
245			'created' => '2009-10-27 17:46:54'
246		),
247		array(
248			'id' => 18,
249			'parent_id' => null,
250			'menu_id' => 4,
251			'title' => 'Public Link Only',
252			'class' => 'public-link-only',
253			'description' => '',
254			'link' => '/public-link-only',
255			'target' => '',
256			'rel' => '',
257			'status' => 1,
258			'lft' => 7,
259			'rght' => 8,
260			'visibility_roles' => '["3"]',
261			'params' => '',
262			'updated' => '2009-10-27 17:46:54',
263			'created' => '2009-10-27 17:46:54'
264		),
265	);
266}