Documentation

DatabaseController extends AbstractController
in package

Console database controller class

Tags
category

Pop\Kettle

author

Nick Sagona, III nick@nolainteractive.com

copyright

Copyright (c) 2012-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
2.3.2

Table of Contents

Properties

$application  : Application|null
Application object
$bypassMaintenance  : bool
Bypass maintenance false
$console  : Console|null
Console object
$defaultAction  : string
Default action
$maintenanceAction  : string
Maintenance action

Methods

__construct()  : mixed
Constructor for the controller
application()  : Application
Get application object
bypassMaintenance()  : bool
Check the bypass maintenance check
clear()  : void
Clear command
config()  : void
Config command
console()  : Console
Get request object
createSeed()  : void
Create seed command
dispatch()  : void
Dispatch the controller based on the action
error()  : void
Default error action method
export()  : void
Export command
getDefaultAction()  : string
Get the default action
getMaintenanceAction()  : string
Get the maintenance action
import()  : void
Import command
install()  : void
Install command
reset()  : void
Reset command
seed()  : void
Seed command
setBypassMaintenance()  : static
Check the bypass maintenance check
setDefaultAction()  : AbstractController
Set the default action
setMaintenanceAction()  : AbstractController
Set the maintenance action
test()  : void
Test command

Properties

$bypassMaintenance

Bypass maintenance false

protected bool $bypassMaintenance = false

$maintenanceAction

Maintenance action

protected string $maintenanceAction = 'maintenance'

Methods

bypassMaintenance()

Check the bypass maintenance check

public bypassMaintenance() : bool
Return values
bool

clear()

Clear command

public clear([string|null $database = 'default' ]) : void
Parameters
$database : string|null = 'default'

config()

Config command

public config([string|null $database = 'default' ]) : void
Parameters
$database : string|null = 'default'

createSeed()

Create seed command

public createSeed(string $seed[, string|null $database = 'default' ]) : void
Parameters
$seed : string
$database : string|null = 'default'

dispatch()

Dispatch the controller based on the action

public dispatch([string|null $action = null ][, array<string|int, mixed>|null $params = null ]) : void
Parameters
$action : string|null = null
$params : array<string|int, mixed>|null = null
Tags
throws
Exception

export()

Export command

public export([string|null $database = 'default' ]) : void
Parameters
$database : string|null = 'default'

getDefaultAction()

Get the default action

public getDefaultAction() : string
Return values
string

getMaintenanceAction()

Get the maintenance action

public getMaintenanceAction() : string
Return values
string

import()

Import command

public import(string $importFile[, string|null $database = 'default' ]) : void
Parameters
$importFile : string
$database : string|null = 'default'

install()

Install command

public install([string|null $database = 'default' ]) : void
Parameters
$database : string|null = 'default'

reset()

Reset command

public reset([string|null $database = 'default' ]) : void
Parameters
$database : string|null = 'default'

seed()

Seed command

public seed([string|null $database = 'default' ]) : void
Parameters
$database : string|null = 'default'

setBypassMaintenance()

Check the bypass maintenance check

public setBypassMaintenance([bool $bypass = true ]) : static
Parameters
$bypass : bool = true
Return values
static

test()

Test command

public test([string|null $database = 'default' ]) : void
Parameters
$database : string|null = 'default'

        
On this page

Search results