PHP Class Airship\Cabin\Bridge\Landing\Admin

Inheritance: extends AdminOnly
Show file Open project: paragonie/airship

Protected Properties

Property Type Description
$acct Airship\Cabin\Bridge\Blueprint\UserAccounts

Public Methods

Method Description
airshipLand ( ) This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
index ( )
manageDatabase ( )
manageExtensions ( ) Landing page for the Administrative > Extensions section
manageNotaries ( ) Landing page for the Administrative > Extensions section
manageSettings ( )

Protected Methods

Method Description
addNotary ( array $channels, array $post ) : boolean Add a new notary
deleteNotary ( array $channels, array $post ) : boolean Add a new notary
loadJSONConfigFile ( string $name, string $ds = DIRECTORY_SEPARATOR ) : array Load a JSON configuration file
notaryDiscovery ( string $url ) : array Discover a new notary, grab its public key, channels, and URL
saveDatabase ( array $post = [], array $old = [] ) : boolean Write the updated JSON configuration file.
saveSettings ( array $post = [] ) : boolean Save universal settings

Method Details

addNotary() protected method

Add a new notary
protected addNotary ( array $channels, array $post ) : boolean
$channels array
$post array
return boolean

airshipLand() public method

This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
public airshipLand ( )

deleteNotary() protected method

Add a new notary
protected deleteNotary ( array $channels, array $post ) : boolean
$channels array
$post array
return boolean

index() public method

public index ( )

loadJSONConfigFile() protected method

Load a JSON configuration file
protected loadJSONConfigFile ( string $name, string $ds = DIRECTORY_SEPARATOR ) : array
$name string
$ds string
return array

manageDatabase() public method

public manageDatabase ( )

manageExtensions() public method

Landing page for the Administrative > Extensions section
public manageExtensions ( )

manageNotaries() public method

Landing page for the Administrative > Extensions section
public manageNotaries ( )

manageSettings() public method

public manageSettings ( )

notaryDiscovery() protected method

Discover a new notary, grab its public key, channels, and URL
protected notaryDiscovery ( string $url ) : array
$url string
return array

saveDatabase() protected method

Write the updated JSON configuration file.
protected saveDatabase ( array $post = [], array $old = [] ) : boolean
$post array
$old array
return boolean

saveSettings() protected method

Save universal settings
protected saveSettings ( array $post = [] ) : boolean
$post array
return boolean

Property Details

$acct protected property

protected UserAccounts,Airship\Cabin\Bridge\Blueprint $acct
return Airship\Cabin\Bridge\Blueprint\UserAccounts