<?php

/*
 * Copyright 2004-2015, AfterLogic Corp.
 * Licensed under AGPLv3 license or AfterLogic license
 * if commercial version of the product was purchased.
 * See the LICENSE file for a full license statement.
 */

/**
 * @package Db
 */
class CApiDbStorage extends AApiManagerStorage
{
	/**
	 * @param CApiGlobalManager &$oManager
	 */
	public function __construct($sStorageName, CApiGlobalManager &$oManager)
	{
		parent::__construct('db', $sStorageName, $oManager);
	}

	/**
	 * @return bool
	 */
	public function TestConnection()
	{
		return false;
	}

	/**
	 * @return bool
	 */
	public function TryToCreateDatabase()
	{
		return false;
	}

	/**
	 * @param mixed $fVerboseCallback
	 * @return bool
	 */
	public function SyncTables($fVerboseCallback)
	{
		return false;
	}

	/**
	 * @return bool
	 */
	public function AUsersTableExists()
	{
		return false;
	}

	/**
	 * @return bool
	 */
	public function CreateTables()
	{
		return false;
	}

	/**
	 * @param bool $bAddDropTable = false
	 * @return string
	 */
	public function GetSqlSchemaAsString($bAddDropTable = false)
	{
		return '';
	}

	/**
	 * @param bool $bAddDropTable = false
	 * @return array
	 */
	public function GetSqlSchemaAsArray($bAddDropTable = false)
	{
		return array();
	}

	/**
	 * @param bool $bAddDropFunction = false
	 * @return array
	 */
	public function GetSqlFunctionsAsArray($bAddDropFunction = false)
	{
		return array();
	}
}