Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
console.php
1 <?php
2 /**
3  *
4  */
5 Yii::setPathOfAlias('site', dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..');
6 Yii::setPathOfAlias('unit', dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'unit');
7 return array(
8  'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
9  'sourceLanguage' => 'en_us',
10  // preloading 'log' component
11  'preload' => array('log'),
12  'charset' => 'UTF-8',
13  //import folders with files, classes
14  'import' => array(
15  'site.common.models.*',
16  'site.common.components.*',
17  'site.common.extensions.*',
18  'site.common.components.content.*',
19  'application.components.*',
20  'application.controllers.*',
21  'ext.*',
22  'system.caching.*',
23  ),
24  //mapping from command name to command configurations
25  'commandMap' => array(
26 
27  'migrate' => array(
28  'class' => 'system.cli.commands.MigrateCommand',
29  //folder contained migrations
30  'migrationPath' => 'site.common.migrations',
31  //migration tablename
32  'migrationTable' => 'gportal_migration',
33  ),
34  'processAPA' => array(
35  'class' => 'site.common.modules.apalines.commands.processAPACommand',
36  ),
37  ),
38  'modules' => array(
39  'apalines' => array(
40  'class' => 'site.common.modules.apalines.APALinesModule',
41  'customer_number' => 'CB86E6F1-1847-4BD9-8FA7-E5606B97BCE8',
42  'video_url' => 'http://videoservice.apa.at/Player/UniversalPlayer.aspx',
43  'cacheTime' => 60,
44  'total_max_age_of_news' => 24*30*5, //about 5 months
45  'total_max_count_of_news' => 50,
46  'channels' =>
47  array(
48  'unit_test' => array(
49  'delivery_path' => 'unit.apalines.content.work',
50  ),
51  ),
52  ),
53  ),
54  'components' => array(
55  'db' => array(
56  //DB connection string
57  //'connectionString' => 'mysql:host=qa-db-mysql55.office;port=3306;dbname=gpnphp_unittests_random_15502910420909',
58  'connectionString' => 'mysql:host=qa-db-mysql55.office;port=3306;dbname=gpnphp_unittests_random_15502910420909',
59  //whether to turn on prepare emulation. Defaults to false, meaning PDO will use the native prepare support if available.
60  'emulatePrepare' => true,
61  //the default prefix for table names. Defaults to null, meaning no table prefix.
62  'tablePrefix' => 'gportal_',
63  //DB username
64  'username' => 'root',
65  //DB Password
66  'password' => '',
67  'charset' => 'utf8',
68  //whether the database connection should be automatically established the component is being initialized.
69  'autoConnect' => false,
70  //number of seconds that table metadata can remain valid in cache. 86400, 0 - disabled
71  'schemaCachingDuration' => 0,
72  ),
73  'log' => array(
74  'class' => 'CLogRouter',
75  'routes' => array(
76  array(
77  'class' => 'CProfileLogRoute',
78  'levels' => 'profile',
79  ),
80  'file'=>array(
81  'class' => 'CFileLogRoute',
82  'levels' => 'error, warning, info',
83  'logPath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'common/runtime',
84  ),
85  ),
86  ),
87  )
88 );