getTablesCreateSql() public static method

Get the SQL to create Piwik tables
public static getTablesCreateSql ( ) : array
return array array of strings containing SQL
Exemplo n.º 1
0
 /**
  * Get the SQL to create a specific Piwik table
  *
  * @param string $tableName
  * @throws Exception
  * @return string  SQL
  */
 public function getTableCreateSql($tableName)
 {
     $tables = DbHelper::getTablesCreateSql();
     if (!isset($tables[$tableName])) {
         throw new Exception("The table '{$tableName}' SQL creation code couldn't be found.");
     }
     return $tables[$tableName];
 }