for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* Advertisement management. An extension for the phpBB Forum Software package.
* @copyright (c) 2017 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*/
namespace phpbb\admanagement\migrations;
class install_acp_module extends \phpbb\db\migration\migration
{
public function effectively_installed()
return isset($this->config['acme_demo_goodbye']);
}
static public function depends_on()
static
return array('\phpbb\db\migration\data\v310\gold');
public function update_data()
return array(
array('config.add', array('acme_demo_goodbye', 0)),
array('module.add', array(
'acp',
'ACP_CAT_DOT_MODS',
'ACP_DEMO_TITLE'
)),
'ACP_DEMO_TITLE',
array(
'module_basename' => '\phpbb\admanagement\acp\main_module',
'modes' => array('settings'),
),
);