2011-06-09 05:13:26 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @package extension
|
|
|
|
* @copyright (c) 2011 phpBB Group
|
2011-12-31 13:32:52 +00:00
|
|
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
2011-06-09 05:13:26 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ignore
|
|
|
|
*/
|
|
|
|
if (!defined('IN_PHPBB'))
|
|
|
|
{
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2011-11-18 13:07:14 +01:00
|
|
|
* A base class for extensions without custom enable/disable/purge code.
|
2011-06-09 05:13:26 +02:00
|
|
|
*
|
|
|
|
* @package extension
|
|
|
|
*/
|
|
|
|
class phpbb_extension_base implements phpbb_extension_interface
|
|
|
|
{
|
2011-08-29 17:17:40 -04:00
|
|
|
/**
|
|
|
|
* Single enable step that does nothing
|
|
|
|
*
|
2011-11-18 18:15:39 +01:00
|
|
|
* @param mixed $old_state State returned by previous call of this method
|
2011-08-29 17:17:40 -04:00
|
|
|
* @return false Indicates no further steps are required
|
|
|
|
*/
|
|
|
|
public function enable_step($old_state)
|
2011-06-09 05:13:26 +02:00
|
|
|
{
|
2011-08-29 17:17:40 -04:00
|
|
|
return false;
|
2011-06-09 05:13:26 +02:00
|
|
|
}
|
|
|
|
|
2011-08-29 17:17:40 -04:00
|
|
|
/**
|
2011-11-18 18:15:39 +01:00
|
|
|
* Single disable step that does nothing
|
2011-08-29 17:17:40 -04:00
|
|
|
*
|
2011-11-18 18:15:39 +01:00
|
|
|
* @param mixed $old_state State returned by previous call of this method
|
|
|
|
* @return false Indicates no further steps are required
|
2011-08-29 17:17:40 -04:00
|
|
|
*/
|
2011-11-18 18:15:39 +01:00
|
|
|
public function disable_step($old_state)
|
2011-06-09 05:13:26 +02:00
|
|
|
{
|
2011-11-18 18:15:39 +01:00
|
|
|
return false;
|
2011-06-09 05:13:26 +02:00
|
|
|
}
|
|
|
|
|
2011-08-29 17:17:40 -04:00
|
|
|
/**
|
|
|
|
* Single purge step that does nothing
|
|
|
|
*
|
2011-11-18 18:15:39 +01:00
|
|
|
* @param mixed $old_state State returned by previous call of this method
|
2011-08-29 17:17:40 -04:00
|
|
|
* @return false Indicates no further steps are required
|
|
|
|
*/
|
|
|
|
public function purge_step($old_state)
|
2011-06-09 05:13:26 +02:00
|
|
|
{
|
2011-08-29 17:17:40 -04:00
|
|
|
return false;
|
2011-06-09 05:13:26 +02:00
|
|
|
}
|
|
|
|
}
|