[ Index ]

PHP Cross Reference of phpBB-3.3.11-deutsch

title

Body

[close]

/ext/phpbb/viglink/migrations/ -> viglink_data.php (source)

   1  <?php
   2  /**
   3  *
   4  * VigLink extension for the phpBB Forum Software package.
   5  *
   6  * @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  */
  10  
  11  namespace phpbb\viglink\migrations;
  12  
  13  /**
  14   * Migration to install VigLink data
  15   */
  16  class viglink_data extends \phpbb\db\migration\migration
  17  {
  18  	public static function depends_on()
  19      {
  20          return array('\phpbb\db\migration\data\v31x\v312');
  21      }
  22  
  23  	public function effectively_installed()
  24      {
  25          return isset($this->config['phpbb_viglink_api_key']);
  26      }
  27  
  28  	public function update_data()
  29      {
  30          return array(
  31              // Basic config options
  32              array('config.add', array('viglink_enabled', 0)),
  33              array('config.add', array('viglink_api_key', '')),
  34  
  35              // Special config options for phpBB use
  36              array('config.add', array('allow_viglink_phpbb', 1)),
  37              array('config.add', array('allow_viglink_global', 1)),
  38              array('config.add', array('phpbb_viglink_api_key', 'e4fd14f5d7f2bb6d80b8f8da1354718c')),
  39              array('config.add', array('viglink_convert_account_url', '')),
  40              array('config.add', array('viglink_api_siteid', md5($this->config['server_name']))),
  41  
  42              // Add the ACP module to Board Configuration
  43              array('module.add', array(
  44                  'acp',
  45                  'ACP_BOARD_CONFIGURATION',
  46                  array(
  47                      'module_basename'    => '\phpbb\viglink\acp\viglink_module',
  48                      'modes'                => array('settings'),
  49                  ),
  50              )),
  51          );
  52      }
  53  }


Generated: Sat Nov 4 14:26:03 2023 Cross-referenced by PHPXref 0.7.1