PageRenderTime 55ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/Install/Config/Data/SettingData.php

https://github.com/kareypowell/croogo
PHP | 361 lines | 357 code | 4 blank | 0 comment | 0 complexity | 052d50c54ec9801a9241b1644173464e MD5 | raw file
  1. <?php
  2. class SettingData {
  3. public $table = 'settings';
  4. public $uniqueFields = 'key';
  5. public $records = array(
  6. array(
  7. 'id' => '6',
  8. 'key' => 'Site.title',
  9. 'value' => 'Croogo',
  10. 'title' => '',
  11. 'description' => '',
  12. 'input_type' => '',
  13. 'editable' => '1',
  14. 'weight' => '1',
  15. 'params' => ''
  16. ),
  17. array(
  18. 'id' => '7',
  19. 'key' => 'Site.tagline',
  20. 'value' => 'A CakePHP powered Content Management System.',
  21. 'title' => '',
  22. 'description' => '',
  23. 'input_type' => 'textarea',
  24. 'editable' => '1',
  25. 'weight' => '2',
  26. 'params' => ''
  27. ),
  28. array(
  29. 'id' => '8',
  30. 'key' => 'Site.email',
  31. 'value' => 'you@your-site.com',
  32. 'title' => '',
  33. 'description' => '',
  34. 'input_type' => '',
  35. 'editable' => '1',
  36. 'weight' => '3',
  37. 'params' => ''
  38. ),
  39. array(
  40. 'id' => '9',
  41. 'key' => 'Site.status',
  42. 'value' => '1',
  43. 'title' => '',
  44. 'description' => '',
  45. 'input_type' => 'checkbox',
  46. 'editable' => '1',
  47. 'weight' => '6',
  48. 'params' => ''
  49. ),
  50. array(
  51. 'id' => '12',
  52. 'key' => 'Meta.robots',
  53. 'value' => 'index, follow',
  54. 'title' => '',
  55. 'description' => '',
  56. 'input_type' => '',
  57. 'editable' => '1',
  58. 'weight' => '6',
  59. 'params' => ''
  60. ),
  61. array(
  62. 'id' => '13',
  63. 'key' => 'Meta.keywords',
  64. 'value' => 'croogo, Croogo',
  65. 'title' => '',
  66. 'description' => '',
  67. 'input_type' => 'textarea',
  68. 'editable' => '1',
  69. 'weight' => '7',
  70. 'params' => ''
  71. ),
  72. array(
  73. 'id' => '14',
  74. 'key' => 'Meta.description',
  75. 'value' => 'Croogo - A CakePHP powered Content Management System',
  76. 'title' => '',
  77. 'description' => '',
  78. 'input_type' => 'textarea',
  79. 'editable' => '1',
  80. 'weight' => '8',
  81. 'params' => ''
  82. ),
  83. array(
  84. 'id' => '15',
  85. 'key' => 'Meta.generator',
  86. 'value' => 'Croogo - Content Management System',
  87. 'title' => '',
  88. 'description' => '',
  89. 'input_type' => '',
  90. 'editable' => '0',
  91. 'weight' => '9',
  92. 'params' => ''
  93. ),
  94. array(
  95. 'id' => '16',
  96. 'key' => 'Service.akismet_key',
  97. 'value' => 'your-key',
  98. 'title' => '',
  99. 'description' => '',
  100. 'input_type' => '',
  101. 'editable' => '1',
  102. 'weight' => '11',
  103. 'params' => ''
  104. ),
  105. array(
  106. 'id' => '17',
  107. 'key' => 'Service.recaptcha_public_key',
  108. 'value' => 'your-public-key',
  109. 'title' => '',
  110. 'description' => '',
  111. 'input_type' => '',
  112. 'editable' => '1',
  113. 'weight' => '12',
  114. 'params' => ''
  115. ),
  116. array(
  117. 'id' => '18',
  118. 'key' => 'Service.recaptcha_private_key',
  119. 'value' => 'your-private-key',
  120. 'title' => '',
  121. 'description' => '',
  122. 'input_type' => '',
  123. 'editable' => '1',
  124. 'weight' => '13',
  125. 'params' => ''
  126. ),
  127. array(
  128. 'id' => '19',
  129. 'key' => 'Service.akismet_url',
  130. 'value' => 'http://your-blog.com',
  131. 'title' => '',
  132. 'description' => '',
  133. 'input_type' => '',
  134. 'editable' => '1',
  135. 'weight' => '10',
  136. 'params' => ''
  137. ),
  138. array(
  139. 'id' => '20',
  140. 'key' => 'Site.theme',
  141. 'value' => '',
  142. 'title' => '',
  143. 'description' => '',
  144. 'input_type' => '',
  145. 'editable' => '0',
  146. 'weight' => '14',
  147. 'params' => ''
  148. ),
  149. array(
  150. 'id' => '21',
  151. 'key' => 'Site.feed_url',
  152. 'value' => '',
  153. 'title' => '',
  154. 'description' => '',
  155. 'input_type' => '',
  156. 'editable' => '0',
  157. 'weight' => '15',
  158. 'params' => ''
  159. ),
  160. array(
  161. 'id' => '22',
  162. 'key' => 'Reading.nodes_per_page',
  163. 'value' => '5',
  164. 'title' => '',
  165. 'description' => '',
  166. 'input_type' => '',
  167. 'editable' => '1',
  168. 'weight' => '16',
  169. 'params' => ''
  170. ),
  171. array(
  172. 'id' => '23',
  173. 'key' => 'Writing.wysiwyg',
  174. 'value' => '1',
  175. 'title' => 'Enable WYSIWYG editor',
  176. 'description' => '',
  177. 'input_type' => 'checkbox',
  178. 'editable' => '1',
  179. 'weight' => '17',
  180. 'params' => ''
  181. ),
  182. array(
  183. 'id' => '24',
  184. 'key' => 'Comment.level',
  185. 'value' => '1',
  186. 'title' => '',
  187. 'description' => 'levels deep (threaded comments)',
  188. 'input_type' => '',
  189. 'editable' => '1',
  190. 'weight' => '18',
  191. 'params' => ''
  192. ),
  193. array(
  194. 'id' => '25',
  195. 'key' => 'Comment.feed_limit',
  196. 'value' => '10',
  197. 'title' => '',
  198. 'description' => 'number of comments to show in feed',
  199. 'input_type' => '',
  200. 'editable' => '1',
  201. 'weight' => '19',
  202. 'params' => ''
  203. ),
  204. array(
  205. 'id' => '26',
  206. 'key' => 'Site.locale',
  207. 'value' => 'eng',
  208. 'title' => '',
  209. 'description' => '',
  210. 'input_type' => 'text',
  211. 'editable' => '1',
  212. 'weight' => '20',
  213. 'params' => ''
  214. ),
  215. array(
  216. 'id' => '27',
  217. 'key' => 'Reading.date_time_format',
  218. 'value' => 'D, M d Y H:i:s',
  219. 'title' => '',
  220. 'description' => '',
  221. 'input_type' => '',
  222. 'editable' => '1',
  223. 'weight' => '21',
  224. 'params' => ''
  225. ),
  226. array(
  227. 'id' => '28',
  228. 'key' => 'Comment.date_time_format',
  229. 'value' => 'M d, Y',
  230. 'title' => '',
  231. 'description' => '',
  232. 'input_type' => '',
  233. 'editable' => '1',
  234. 'weight' => '22',
  235. 'params' => ''
  236. ),
  237. array(
  238. 'id' => '29',
  239. 'key' => 'Site.timezone',
  240. 'value' => 'UTC',
  241. 'title' => '',
  242. 'description' => 'Provide a valid timezone identifier as specified in https://php.net/manual/en/timezones.php',
  243. 'input_type' => '',
  244. 'editable' => '1',
  245. 'weight' => '4',
  246. 'params' => ''
  247. ),
  248. array(
  249. 'id' => '32',
  250. 'key' => 'Hook.bootstraps',
  251. 'value' => 'Settings,Comments,Contacts,Nodes,Meta,Menus,Users,Blocks,Taxonomy,FileManager,Wysiwyg,Ckeditor',
  252. 'title' => '',
  253. 'description' => '',
  254. 'input_type' => '',
  255. 'editable' => '0',
  256. 'weight' => '23',
  257. 'params' => ''
  258. ),
  259. array(
  260. 'id' => '33',
  261. 'key' => 'Comment.email_notification',
  262. 'value' => '1',
  263. 'title' => 'Enable email notification',
  264. 'description' => '',
  265. 'input_type' => 'checkbox',
  266. 'editable' => '1',
  267. 'weight' => '24',
  268. 'params' => ''
  269. ),
  270. array(
  271. 'id' => '34',
  272. 'key' => 'Access Control.multiRole',
  273. 'value' => '0',
  274. 'title' => 'Enable Multiple Roles',
  275. 'description' => '',
  276. 'input_type' => 'checkbox',
  277. 'editable' => '1',
  278. 'weight' => '25',
  279. 'params' => ''
  280. ),
  281. array(
  282. 'id' => '35',
  283. 'key' => 'Access Control.rowLevel',
  284. 'value' => '0',
  285. 'title' => 'Row Level Access Control',
  286. 'description' => '',
  287. 'input_type' => 'checkbox',
  288. 'editable' => '1',
  289. 'weight' => '26',
  290. 'params' => ''
  291. ),
  292. array(
  293. 'id' => '36',
  294. 'key' => 'Access Control.autoLoginDuration',
  295. 'value' => '+1 week',
  296. 'title' => '"Remember Me" Duration',
  297. 'description' => 'Eg: +1 day, +1 week. Leave empty to disable.',
  298. 'input_type' => 'text',
  299. 'editable' => '1',
  300. 'weight' => '27',
  301. 'params' => ''
  302. ),
  303. array(
  304. 'id' => '37',
  305. 'key' => 'Access Control.models',
  306. 'value' => '',
  307. 'title' => 'Models with Row Level Acl',
  308. 'description' => 'Select models to activate Row Level Access Control on',
  309. 'input_type' => 'multiple',
  310. 'editable' => '1',
  311. 'weight' => '26',
  312. 'params' => 'multiple=checkbox
  313. options={"Nodes.Node": "Node", "Blocks.Block": "Block", "Menus.Menu": "Menu", "Menus.Link": "Link"}'
  314. ),
  315. array(
  316. 'id' => '38',
  317. 'key' => 'Site.ipWhitelist',
  318. 'value' => '127.0.0.1',
  319. 'title' => 'Whitelisted IP Addresses',
  320. 'description' => 'Separate multiple IP addresses with comma',
  321. 'input_type' => 'text',
  322. 'editable' => '1',
  323. 'weight' => '27',
  324. 'params' => ''
  325. ),
  326. array(
  327. 'key' => 'Site.asset_timestamp',
  328. 'value' => 'force',
  329. 'title' => 'Asset timestamp',
  330. 'description' => 'Appends a timestamp which is last modified time of the particular file at the end of asset files URLs (CSS, JavaScript, Image). Useful to prevent visitors to visit the site with an outdated version of these files in their browser cache.',
  331. 'editable' => 1,
  332. 'input_type' => 'radio',
  333. 'weight' => 28,
  334. 'params' => 'options={"0": "Disabled", "1": "Enabled in debug mode only", "force": "Always enabled"}',
  335. ),
  336. array(
  337. 'key' => 'Site.admin_theme',
  338. 'value' => '',
  339. 'title' => 'Administration Theme',
  340. 'description' => '',
  341. 'input_type' => 'text',
  342. 'editable' => '1',
  343. 'weight' => '29',
  344. 'params' => ''
  345. ),
  346. array(
  347. 'key' => 'Site.home_url',
  348. 'value' => '',
  349. 'title' => 'Home Url',
  350. 'description' => 'Default action for home page in link string format.',
  351. 'input_type' => 'text',
  352. 'editable' => '1',
  353. 'weight' => '30',
  354. 'params' => ''
  355. ),
  356. );
  357. }