mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-09 09:05:23 +02:00
The enable or purge operation of an extension could take a long time if an expensive operation needs to be executed on a large set of data. To allow this to succeed from a web interface with max_execution_time set in the webserver's php configuration, subsequent requests must continue the operation started earlier. So individual enable and purge implementations must be able to spread their work across multiple steps. PHPBB3-10323
54 lines
804 B
PHP
54 lines
804 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @package extension
|
|
* @copyright (c) 2011 phpBB Group
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* @ignore
|
|
*/
|
|
if (!defined('IN_PHPBB'))
|
|
{
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* A base class for extensions without custom enable/disbale/purge code.
|
|
*
|
|
* @package extension
|
|
*/
|
|
class phpbb_extension_base implements phpbb_extension_interface
|
|
{
|
|
/**
|
|
* Single enable step that does nothing
|
|
*
|
|
* @return false Indicates no further steps are required
|
|
*/
|
|
public function enable_step($old_state)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Empty disable method
|
|
*
|
|
* @return null
|
|
*/
|
|
public function disable()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Single purge step that does nothing
|
|
*
|
|
* @return false Indicates no further steps are required
|
|
*/
|
|
public function purge_step($old_state)
|
|
{
|
|
return false;
|
|
}
|
|
}
|