mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
48 lines
1022 B
PHP
48 lines
1022 B
PHP
<?php
|
|
|
|
use Alchemy\Phrasea\Application;
|
|
|
|
interface patchInterface
|
|
{
|
|
/**
|
|
* Returns the release version.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_release();
|
|
|
|
/**
|
|
* Returns whether the patch concerns the Application Box or
|
|
* the Data Box.
|
|
*
|
|
* It accepts base::APPLICATION_BOX or base::DATA_BOX value.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function concern();
|
|
|
|
/**
|
|
* Tells whether the patch must be run after the others or not.
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function require_all_upgrades();
|
|
|
|
/**
|
|
* Apply patch.
|
|
*
|
|
* @param base $base The Application Box or the Data Boxes where the patch is applied.
|
|
* @param Application $app
|
|
*
|
|
* @return boolean returns true if the patch succeed.
|
|
*/
|
|
public function apply(base $base, Application $app);
|
|
|
|
/**
|
|
* Returns doctrine migrations needed for the patch.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getDoctrineMigrations();
|
|
}
|