-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.php
97 lines (78 loc) · 3.3 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/**
* This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php
*
* This is an application wide file to load any function that is not used within a class
* define. You can also use this to include or require any files in your application.
*
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.app.config
* @since CakePHP(tm) v 0.10.8.2117
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* The settings below can be used to set additional paths to models, views and controllers.
* This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
*
* App::build(array(
* 'plugins' => array('/full/path/to/plugins/', '/next/full/path/to/plugins/'),
* 'models' => array('/full/path/to/models/', '/next/full/path/to/models/'),
* 'views' => array('/full/path/to/views/', '/next/full/path/to/views/'),
* 'controllers' => array('/full/path/to/controllers/', '/next/full/path/to/controllers/'),
* 'datasources' => array('/full/path/to/datasources/', '/next/full/path/to/datasources/'),
* 'behaviors' => array('/full/path/to/behaviors/', '/next/full/path/to/behaviors/'),
* 'components' => array('/full/path/to/components/', '/next/full/path/to/components/'),
* 'helpers' => array('/full/path/to/helpers/', '/next/full/path/to/helpers/'),
* 'vendors' => array('/full/path/to/vendors/', '/next/full/path/to/vendors/'),
* 'shells' => array('/full/path/to/shells/', '/next/full/path/to/shells/'),
* 'locales' => array('/full/path/to/locale/', '/next/full/path/to/locale/')
* ));
*
*/
/**
* As of 1.3, additional rules for the inflector are added below
*
* Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
* Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
*
*/
Inflector::rules("singular", array(
"rules" => array(
'/^(sina)is_(vita)is$/i' => '\1l_\2l',
'/^(sina)is(vita)is$/i' => '\1l\2l',
'/^(internacao_internac)oes$/i' => '\1ao',
'/^(internacaointernac)oes$/i' => '\1ao',
'/^(acesso_permiss)oes$/i' => '\1ao',
'/^(acessopermiss)oes$/i' => '\1ao',
'/(laudo_padr)oes$/i' => '\1ao',
'/(laudopadr)oes$/i' => '\1ao',
'/^(hospitalar_profissiona)is$/' => '\1l',
'/^(hospitalarprofissiona)is$/' => '\1l'
)
));
Inflector::rules("plural", array(
"rules" => array(
'/(sina)l_(vita)l$/i' => '\1is_\2is',
'/(sina)l(vita)l$/i' => '\1is\2is',
'/(internacao_internac)ao$/i' => '\1oes',
'/(internacaointernac)ao$/i' => '\1oes',
'/(acesso_permiss)ao$/i' => '\1oes',
'/(acessopermiss)ao$/i' => '\1oes',
'/(laudo_padr)ao$/i' => '\1oes',
'/(laudopadr)ao$/i' => '\1oes',
'/(hospitalar_profissiona)l$/i' => '\1is',
'/(hospitalarprofissiona)l$/i' => '\1is'
)
));
/** Some constants */
define("ADSGithub", "ADSGithub");