mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Update StatusAbstract.php
This commit is contained in:
parent
a0fbf00580
commit
99a9153a60
|
|
@ -35,4 +35,22 @@ use phpOMS\Utils\Parser\Php\ArrayParser;
|
|||
*/
|
||||
abstract class StatusAbstract
|
||||
{
|
||||
/**
|
||||
* Deactivate module in database.
|
||||
*
|
||||
* @param DatabasePool $dbPool Database instance
|
||||
* @param ModuleInfo $info Module info
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function deactivateInDatabase(DatabasePool $dbPool, ModuleInfo $info) : void
|
||||
{
|
||||
$query = new Builder($dbPool->get('update'));
|
||||
$query->update('app')
|
||||
->sets('app.app_active', ModuleStatus::INACTIVE)
|
||||
->where('app.app_id', '=', $info->getInternalName())
|
||||
->execute();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user