Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
client_console.php
1 <?php
2 /**
3  *
4  */
5 Yii::setPathOfAlias('site', dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..');
6 
7 return array(
8  'components' => array(
9  'db' => array(
10  //DB connection string
11  'connectionString' => 'mysql:host=qa-db-mysql.office;port=35521;dbname=gportal_unittests',
12  //whether to turn on prepare emulation. Defaults to false, meaning PDO will use the native prepare support if available.
13  'emulatePrepare' => true,
14  //the default prefix for table names. Defaults to null, meaning no table prefix.
15  'tablePrefix' => 'gportal_',
16  //DB username
17  'username' => 'root',
18  //DB Password
19  'password' => '',
20  'charset' => 'utf8',
21  //whether the database connection should be automatically established the component is being initialized.
22  'autoConnect' => false,
23  //number of seconds that table metadata can remain valid in cache. 86400, 0 - disabled
24  'schemaCachingDuration' => 0,
25  ),
26  'log' => array(
27  'class' => 'CLogRouter',
28  'routes' => array(
29  array(
30  'class' => 'CFileLogRoute',
31  'levels' => 'error, warning',
32  'logPath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'common/runtime',
33  ),
34  ),
35  ),
36  ),
37  //common directory path
38  'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
39  // preloading 'log' component
40  'preload' => array('log'),
41  'charset' => 'UTF-8',
42  //import folders with files, classes
43  'import' => array(
44  'site.common.models.*',
45  'site.common.components.*',
46  'site.common.extensions.*',
47  'site.common.components.content.*',
48  'application.components.*',
49  'application.controllers.*',
50  'ext.*',
51  'system.caching.*'
52  ),
53  //mapping from command name to command configurations
54  'commandMap' => array(
55  'migrate' => array(
56  'class' => 'system.cli.commands.MigrateCommand',
57  //folder contained migrations
58  'migrationPath' => 'site.common.migrations',
59  //migration tablename
60  'migrationTable' => 'gportal_migration',
61  ),
62  ),
63 
64 );