Overview
  • Namespace
  • Class

Namespaces

  • Omines
    • DirectAdmin
      • Context
      • Objects
        • Database
        • Domains
        • Email
        • Users
      • Utility

Classes

  • BaseObject
  • Database
  • Domain
  • DomainObject

Class Database

Database.

Omines\DirectAdmin\Objects\BaseObject
Extended by Omines\DirectAdmin\Objects\Database
Namespace: Omines\DirectAdmin\Objects
Author: Niels Keurentjes niels.keurentjes@omines.com
Located at DirectAdmin/Objects/Database.php

Methods summary

public
# __construct( string $name, Omines\DirectAdmin\Objects\Users\User $owner, Omines\DirectAdmin\Context\UserContext $context )

Database constructor.

Database constructor.

Parameters

$name
Name of the database
$owner
Database owner
$context
Context within which the object is valid

Overrides

Omines\DirectAdmin\Objects\BaseObject::__construct
public static Omines\DirectAdmin\Objects\Database
# create( Omines\DirectAdmin\Objects\Users\User $user, string $name, string $username, string|null $password )

Creates a new database under the specified user.

Creates a new database under the specified user.

Parameters

$user
Owner of the database
$name
Database name, without _ prefix
$username
Username to access the database with, without _ prefix
$password
Password, or null if database user already exists

Returns

Omines\DirectAdmin\Objects\Database
Newly created database
public
# delete( )

Deletes this database from the user.

Deletes this database from the user.

public Omines\DirectAdmin\Objects\Database\AccessHost[]
# getAccessHosts( )

Returns

Omines\DirectAdmin\Objects\Database\AccessHost[]
public Omines\DirectAdmin\Objects\Database\AccessHost
# createAccessHost( string $name )

Parameters

$name

Returns

Omines\DirectAdmin\Objects\Database\AccessHost
public string
# getDatabaseName( )

Returns

string
Name of the database
public Omines\DirectAdmin\Objects\Users\User
# getOwner( )

Returns

Omines\DirectAdmin\Objects\Users\User

Methods inherited from Omines\DirectAdmin\Objects\BaseObject

clearCache(), getCache(), getCacheItem(), getContext(), getName(), setCache(), toObjectArray(), toRichObjectArray()

Constants summary

string CACHE_ACCESS_HOSTS
# 'access_hosts'
API documentation generated by ApiGen