1: <?php
2:
3:
4: define('REDBEANPHP_MAIN_DIR', 'phar://rb.phar/RedBeanPHP/');
5:
6:
7: require( REDBEANPHP_MAIN_DIR . 'Logger.php' );
8: require( REDBEANPHP_MAIN_DIR . 'Logger/RDefault.php' );
9: require( REDBEANPHP_MAIN_DIR . 'Logger/RDefault/Debug.php' );
10: require( REDBEANPHP_MAIN_DIR . 'Driver.php' );
11: require( REDBEANPHP_MAIN_DIR . 'Driver/RPDO.php' );
12:
13:
14: require( REDBEANPHP_MAIN_DIR . 'OODBBean.php' );
15: require( REDBEANPHP_MAIN_DIR . 'Observable.php' );
16: require( REDBEANPHP_MAIN_DIR . 'Observer.php' );
17:
18:
19: require( REDBEANPHP_MAIN_DIR . 'Adapter.php' );
20: require( REDBEANPHP_MAIN_DIR . 'Adapter/DBAdapter.php' );
21: require( REDBEANPHP_MAIN_DIR . 'Cursor.php');
22: require( REDBEANPHP_MAIN_DIR . 'Cursor/PDOCursor.php');
23: require( REDBEANPHP_MAIN_DIR . 'Cursor/NullCursor.php');
24: require( REDBEANPHP_MAIN_DIR . 'BeanCollection.php' );
25:
26:
27: require( REDBEANPHP_MAIN_DIR . 'QueryWriter.php' );
28: require( REDBEANPHP_MAIN_DIR . 'QueryWriter/AQueryWriter.php' );
29: require( REDBEANPHP_MAIN_DIR . 'QueryWriter/MySQL.php' );
30: require( REDBEANPHP_MAIN_DIR . 'QueryWriter/SQLiteT.php' );
31: require( REDBEANPHP_MAIN_DIR . 'QueryWriter/PostgreSQL.php' );
32:
33:
34: require( REDBEANPHP_MAIN_DIR . 'RedException.php' );
35: require( REDBEANPHP_MAIN_DIR . 'RedException/SQL.php' );
36:
37:
38: require( REDBEANPHP_MAIN_DIR . 'Repository.php' );
39: require( REDBEANPHP_MAIN_DIR . 'Repository/Fluid.php' );
40: require( REDBEANPHP_MAIN_DIR . 'Repository/Frozen.php' );
41:
42:
43: require( REDBEANPHP_MAIN_DIR . 'OODB.php' );
44: require( REDBEANPHP_MAIN_DIR . 'ToolBox.php' );
45: require( REDBEANPHP_MAIN_DIR . 'Finder.php' );
46:
47:
48: require( REDBEANPHP_MAIN_DIR . 'AssociationManager.php' );
49: require( REDBEANPHP_MAIN_DIR . 'BeanHelper.php' );
50: require( REDBEANPHP_MAIN_DIR . 'BeanHelper/SimpleFacadeBeanHelper.php' );
51:
52:
53: require( REDBEANPHP_MAIN_DIR . 'SimpleModel.php' );
54: require( REDBEANPHP_MAIN_DIR . 'SimpleModelHelper.php' );
55: require( REDBEANPHP_MAIN_DIR . 'TagManager.php' );
56: require( REDBEANPHP_MAIN_DIR . 'LabelMaker.php' );
57: require( REDBEANPHP_MAIN_DIR . 'Facade.php' );
58: require( REDBEANPHP_MAIN_DIR . 'DuplicationManager.php' );
59: require( REDBEANPHP_MAIN_DIR . 'Plugin.php' );
60: require( REDBEANPHP_MAIN_DIR . 'Functions.php' );
61:
62:
63: require( REDBEANPHP_MAIN_DIR . 'Util/ArrayTool.php' );
64: require( REDBEANPHP_MAIN_DIR . 'Util/DispenseHelper.php' );
65: require( REDBEANPHP_MAIN_DIR . 'Util/Dump.php' );
66: require( REDBEANPHP_MAIN_DIR . 'Util/MultiLoader.php' );
67: require( REDBEANPHP_MAIN_DIR . 'Util/Transaction.php' );
68:
69:
70: if ( defined( 'REDBEANPHP_PLUGINS' ) ) {
71: Phar::mount( 'RedBeanPHP/Plugin', REDBEANPHP_PLUGINS );
72: }
73:
74:
75: class RedBean_SimpleModel extends \RedBeanPHP\SimpleModel {};
76:
77: if (!class_exists('R')) {
78: class R extends \RedBeanPHP\Facade{};
79: }
80: