Cheetah
ChSoundsConfig.php
Go to the documentation of this file.
1 <?php
2 
8 require_once(CH_DIRECTORY_PATH_CLASSES . 'ChWsbFilesConfig.php');
9 require_once(CH_DIRECTORY_PATH_ROOT . "flash/modules/mp3/inc/constants.inc.php");
10 
12 {
16  function __construct (&$aModule)
17  {
18  parent::__construct($aModule);
19 
20  // only image files can added/removed here, changing list of sound files requires source code modification
21  // image files support square resizing, just specify 'square' => true
22  $this->aFilesConfig = array (
23  'browse' => array('postfix' => SCREENSHOT_EXT, 'fallback' => 'default.png', 'image' => true, 'w' => 240, 'h' => 240, 'square' => true),
24  'browse2x' => array('postfix' => '-2x' . SCREENSHOT_EXT, 'fallback' => 'default.png', 'image' => true, 'w' => 480, 'h' => 480, 'square' => true),
25  'file' => array('postfix' => MP3_EXTENSION),
26  );
27 
28  $this->aGlParams = array(
29  'mode_top_index' => 'ch_sounds_mode_index',
30  'category_auto_approve' => 'category_auto_activation_ch_sounds',
31  );
32 
33  $this->initConfig();
34  }
35 
36  function getFilesPath ()
37  {
38  return CH_DIRECTORY_PATH_ROOT . 'flash/modules/mp3/files/';
39  }
40 
41  function getFilesUrl ()
42  {
43  return CH_WSB_URL_ROOT . 'flash/modules/mp3/files/';
44  }
45 }
$aModule
$aModule
Definition: classifieds.php:21
ChSoundsConfig\getFilesPath
getFilesPath()
Definition: ChSoundsConfig.php:36
ChSoundsConfig\getFilesUrl
getFilesUrl()
Definition: ChSoundsConfig.php:41
php
ChWsbFilesConfig\initConfig
initConfig()
Definition: ChWsbFilesConfig.php:41
ChSoundsConfig\__construct
__construct(&$aModule)
Definition: ChSoundsConfig.php:16
ChSoundsConfig
Definition: ChSoundsConfig.php:12
ChWsbFilesConfig
Definition: ChWsbFilesConfig.php:11