Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 20
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3/*
4 | --------------------------------------------------------------------
5 | App Namespace
6 | --------------------------------------------------------------------
7 |
8 | This defines the default Namespace that is used throughout
9 | CodeIgniter to refer to the Application directory. Change
10 | this constant to change the namespace that all application
11 | classes should use.
12 |
13 | NOTE: changing this will require manually modifying the
14 | existing namespaces of App\* namespaced-classes.
15 */
16defined('APP_NAMESPACE') || define('APP_NAMESPACE', 'App');
17
18/*
19 | --------------------------------------------------------------------------
20 | Composer Path
21 | --------------------------------------------------------------------------
22 |
23 | The path that Composer's autoload file is expected to live. By default,
24 | the vendor folder is in the Root directory, but you can customize that here.
25 */
26defined('COMPOSER_PATH') || define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php');
27
28/*
29 |--------------------------------------------------------------------------
30 | Timing Constants
31 |--------------------------------------------------------------------------
32 |
33 | Provide simple ways to work with the myriad of PHP functions that
34 | require information to be in seconds.
35 */
36defined('SECOND') || define('SECOND', 1);
37defined('MINUTE') || define('MINUTE', 60);
38defined('HOUR')   || define('HOUR', 3600);
39defined('DAY')    || define('DAY', 86400);
40defined('WEEK')   || define('WEEK', 604800);
41defined('MONTH')  || define('MONTH', 2_592_000);
42defined('YEAR')   || define('YEAR', 31_536_000);
43defined('DECADE') || define('DECADE', 315_360_000);
44
45/*
46 | --------------------------------------------------------------------------
47 | Exit Status Codes
48 | --------------------------------------------------------------------------
49 |
50 | Used to indicate the conditions under which the script is exit()ing.
51 | While there is no universal standard for error codes, there are some
52 | broad conventions.  Three such conventions are mentioned below, for
53 | those who wish to make use of them.  The CodeIgniter defaults were
54 | chosen for the least overlap with these conventions, while still
55 | leaving room for others to be defined in future versions and user
56 | applications.
57 |
58 | The three main conventions used for determining exit status codes
59 | are as follows:
60 |
61 |    Standard C/C++ Library (stdlibc):
62 |       http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
63 |       (This link also contains other GNU-specific conventions)
64 |    BSD sysexits.h:
65 |       http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
66 |    Bash scripting:
67 |       http://tldp.org/LDP/abs/html/exitcodes.html
68 |
69 */
70defined('EXIT_SUCCESS')        || define('EXIT_SUCCESS', 0);        // no errors
71defined('EXIT_ERROR')          || define('EXIT_ERROR', 1);          // generic error
72defined('EXIT_CONFIG')         || define('EXIT_CONFIG', 3);         // configuration error
73defined('EXIT_UNKNOWN_FILE')   || define('EXIT_UNKNOWN_FILE', 4);   // file not found
74defined('EXIT_UNKNOWN_CLASS')  || define('EXIT_UNKNOWN_CLASS', 5);  // unknown class
75defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
76defined('EXIT_USER_INPUT')     || define('EXIT_USER_INPUT', 7);     // invalid user input
77defined('EXIT_DATABASE')       || define('EXIT_DATABASE', 8);       // database error
78defined('EXIT__AUTO_MIN')      || define('EXIT__AUTO_MIN', 9);      // lowest automatically-assigned error code
79defined('EXIT__AUTO_MAX')      || define('EXIT__AUTO_MAX', 125);    // highest automatically-assigned error code