init commit
This commit is contained in:
18
plugins/xframework/common/DatabaseInterface.php
Normal file
18
plugins/xframework/common/DatabaseInterface.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace XFramework;
|
||||
|
||||
/**
|
||||
* Roundcube Plus Framework plugin.
|
||||
*
|
||||
* Copyright 2016, Tecorama LLC.
|
||||
*
|
||||
* @license Commercial. See the LICENSE file for details.
|
||||
*/
|
||||
|
||||
interface DatabaseInterface
|
||||
{
|
||||
public function getColumns(string $table, bool $addPrefix = true): array;
|
||||
public function getTables(): array;
|
||||
public function hasTable(string $table): bool;
|
||||
public function removeOld(string $table, string $dateField = "created_at", int $seconds = 3600, bool $addPrefix = true): bool;
|
||||
}
|
Reference in New Issue
Block a user