add piwik installation
This commit is contained in:
parent
90aa4ef157
commit
8c5d4f0c31
3197 changed files with 563902 additions and 0 deletions
96
www/analytics/core/Db/SchemaInterface.php
Normal file
96
www/analytics/core/Db/SchemaInterface.php
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Piwik\Db;
|
||||
|
||||
/**
|
||||
* Database schema interface
|
||||
*/
|
||||
interface SchemaInterface
|
||||
{
|
||||
/**
|
||||
* Is this schema available?
|
||||
*
|
||||
* @return bool True if schema is available; false otherwise
|
||||
*/
|
||||
static public function isAvailable();
|
||||
|
||||
/**
|
||||
* Get the SQL to create a specific Piwik table
|
||||
*
|
||||
* @param string $tableName
|
||||
* @return string SQL
|
||||
*/
|
||||
public function getTableCreateSql($tableName);
|
||||
|
||||
/**
|
||||
* Get the SQL to create Piwik tables
|
||||
*
|
||||
* @return array array of strings containing SQL
|
||||
*/
|
||||
public function getTablesCreateSql();
|
||||
|
||||
/**
|
||||
* Creates a new table in the database.
|
||||
*
|
||||
* @param string $nameWithoutPrefix The name of the table without any piwik prefix.
|
||||
* @param string $createDefinition The table create definition
|
||||
*/
|
||||
public function createTable($nameWithoutPrefix, $createDefinition);
|
||||
|
||||
/**
|
||||
* Create database
|
||||
*
|
||||
* @param string $dbName Name of the database to create
|
||||
*/
|
||||
public function createDatabase($dbName = null);
|
||||
|
||||
/**
|
||||
* Drop database
|
||||
*/
|
||||
public function dropDatabase();
|
||||
|
||||
/**
|
||||
* Create all tables
|
||||
*/
|
||||
public function createTables();
|
||||
|
||||
/**
|
||||
* Creates an entry in the User table for the "anonymous" user.
|
||||
*/
|
||||
public function createAnonymousUser();
|
||||
|
||||
/**
|
||||
* Truncate all tables
|
||||
*/
|
||||
public function truncateAllTables();
|
||||
|
||||
/**
|
||||
* Names of all the prefixed tables in piwik
|
||||
* Doesn't use the DB
|
||||
*
|
||||
* @return array Table names
|
||||
*/
|
||||
public function getTablesNames();
|
||||
|
||||
/**
|
||||
* Get list of tables installed
|
||||
*
|
||||
* @param bool $forceReload Invalidate cache
|
||||
* @return array installed Tables
|
||||
*/
|
||||
public function getTablesInstalled($forceReload = true);
|
||||
|
||||
/**
|
||||
* Checks whether any table exists
|
||||
*
|
||||
* @return bool True if tables exist; false otherwise
|
||||
*/
|
||||
public function hasTables();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue