Property | Type | Description | |
---|---|---|---|
$_project_cache | array | ||
$data | DNData |
Method | Description | |
---|---|---|
AmbientMenu ( ) : ArrayList | Get items for the ambient menu that should be accessible from all pages. | |
CanViewArchives ( Member $member = null ) : boolean | null | Helper method to allow templates to know whether they should show the 'Archive List' include or not. | |
CompleteDataArchives ( ) : PaginatedList | Returns a list of all archive files that can be accessed by the currently logged-in {@link Member} | |
CreateEnvironmentList ( ) : PaginatedList | Returns a list of attempted environment creations. | |
DNData ( ) : DNData | Get the DNData object. | |
DNProjectList ( ) : SS_List | Provide a list of all projects. | |
DataTransferLogs ( ) : PaginatedList | ||
DeployHistory ( ) : null | PaginatedList | ||
Link ( ) : string | ||
NavLink ( ) : string | Return a link to the navigation template used for AJAX requests. | |
Navigation ( integer $limit = 5 ) : ArrayList | Returns top level navigation of projects. | |
PendingDataArchives ( ) : PaginatedList | ||
RedisUnavailable ( ) : string | Returns an error message if redis is unavailable | |
RedisWorkersCount ( ) : integer | Returns the number of connected Redis workers | |
UploadLimit ( ) : string | Return the upload limit for snapshot uploads | |
abortDeploy ( SS_HTTPRequest $request ) : string | ||
branch ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
canCreateProjects ( $member = null ) : boolean | Checks whether the user can create a project. | |
createenv ( SS_HTTPRequest $request ) : string | Shows the creation log. | |
createenvlog ( SS_HTTPRequest $request ) | ||
createsnapshot ( SS_HTTPRequest $request ) : string | Action | |
deletesnapshot ( SS_HTTPRequest $request ) : HTMLText | View a form to delete a specific {@link DataArchive}. | |
deploy ( SS_HTTPRequest $request ) : SS_HTTPResponse | string | ||
deploySummary ( SS_HTTPRequest $request ) : string | ||
deploylog ( SS_HTTPRequest $request ) : string | ||
doCreateEnvironment ( array $data, Form $form ) : boolean | HTMLText | SS_HTTPResponse | ||
doDataTransfer ( array $data, Form $form ) : SS_HTTPResponse | ||
doDelete ( array $data, Form $form ) : boolean | SS_HTTPResponse | ||
doMove ( array $data, Form $form ) : boolean | SS_HTTPResponse | ||
doPostSnapshot ( array $data, Form $form ) : SS_HTTPResponse | ||
doUploadSnapshot ( array $data, Form $form ) : boolean | HTMLText | SS_HTTPResponse | ||
environment ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
getCreateEnvironmentForm ( SS_HTTPRequest $request = null ) : Form | ||
getCurrentActionType ( ) : string | This will return a const that indicates the class of action currently being performed | |
getCurrentEnvironment ( DNProject $project = null ) : DNEnvironment | null | ||
getCurrentProject ( ) : DNProject | null | ||
getDataTransferForm ( SS_HTTPRequest $request = null ) : Form | ||
getDataTransferRestoreForm ( SS_HTTPRequest $request, DNDataArchive $dataArchive = null ) : Form | Note: Submits to the same action as {@link getDataTransferForm()}, but with a Direction=push and an archive reference. | |
getDeleteForm ( SS_HTTPRequest $request, DNDataArchive $dataArchive = null ) : Form | ||
getDeployForm ( $request = null ) : Form | Construct the deployment form | |
getMoveForm ( SS_HTTPRequest $request, DNDataArchive $dataArchive = null ) : Form | SS_HTTPResponse | Build snapshot move form. | |
getPlatformSpecificStrings ( ) : ArrayList | ||
getPostSnapshotForm ( SS_HTTPRequest $request ) : Form | ||
getStarredProjects ( ) : SS_List | Provide a list of all starred projects for the currently logged in member | |
getUploadSnapshotForm ( SS_HTTPRequest $request ) : Form | Construct the upload form. | |
get_support_links ( ) : ArrayList | ||
get_template_global_variables ( ) : array | ||
gitRevisions ( SS_HTTPRequest $request ) : SS_HTTPResponse | string | ||
include_requirements ( ) | Include requirements that deploynaut needs, such as javascript. | |
index ( SS_HTTPRequest $request ) : SS_HTTPResponse | Actions | |
init ( ) | ||
movesnapshot ( SS_HTTPRequest $request ) : HTMLText | View a form to move a specific {@link DataArchive}. | |
nav ( SS_HTTPRequest $request ) : HTMLText | ||
postsnapshotsuccess ( SS_HTTPRequest $request ) : SS_HTTPResponse | string | ||
project ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
projects ( SS_HTTPRequest $request ) : string | Action | |
providePermissions ( ) : array | ||
restoresnapshot ( SS_HTTPRequest $request ) : HTMLText | View a form to restore a specific {@link DataArchive}. | |
sendResponse ( string $status, string $content ) : string | ||
setCurrentActionType ( string $actionType ) | Sets the current action type | |
snapshots ( SS_HTTPRequest $request ) : SS_HTTPResponse | Action | |
snapshotslog ( SS_HTTPRequest $request ) : SS_HTTPResponse | Action | |
startDeploy ( SS_HTTPRequest $request ) : SS_HTTPResponse | Deployment form submission handler. | |
toggleprojectstar ( SS_HTTPRequest $request ) : SS_HTTPResponse | This action will star / unstar a project for the current member | |
transfer ( SS_HTTPRequest $request ) : SS_HTTPResponse | string | View into the log for a {@link DNDataTransfer}. | |
transferlog ( SS_HTTPRequest $request ) : string | Action - Get the latest deploy log | |
uploadsnapshot ( SS_HTTPRequest $request ) : string | Action |
Method | Description | |
---|---|---|
applyRedeploy ( SS_HTTPRequest $request, &$data ) | ||
environment404Response ( ) : SS_HTTPResponse | ||
getCustomisedViewSection ( string $sectionName, string $title = '', $data = [] ) : SS_HTTPResponse | ||
project404Response ( ) : SS_HTTPResponse | ||
validateSnapshotMode ( string $mode ) | Validate the snapshot mode |
public AmbientMenu ( ) : ArrayList | ||
return | ArrayList |
public CanViewArchives ( Member $member = null ) : boolean | null | ||
$member | Member | The {@link Member} to check (or null to check the currently logged in Member) |
return | boolean | null | true if $member has access to upload or download to at least one {@link DNEnvironment}. |
public CompleteDataArchives ( ) : PaginatedList | ||
return | PaginatedList |
public CreateEnvironmentList ( ) : PaginatedList | ||
return | PaginatedList |
public DNProjectList ( ) : SS_List | ||
return | SS_List |
public DeployHistory ( ) : null | PaginatedList | ||
return | null | PaginatedList |
public PendingDataArchives ( ) : PaginatedList | ||
return | PaginatedList | The list of "pending" data archives which are waiting for a file to be delivered offline by post, and manually uploaded into the system. |
public static RedisWorkersCount ( ) : integer | ||
return | integer |
public UploadLimit ( ) : string | ||
return | string |
public abortDeploy ( SS_HTTPRequest $request ) : string | ||
$request | SS_HTTPRequest | |
return | string |
protected applyRedeploy ( SS_HTTPRequest $request, &$data ) | ||
$request | SS_HTTPRequest |
public branch ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
public canCreateProjects ( $member = null ) : boolean | ||
return | boolean |
public createenvlog ( SS_HTTPRequest $request ) | ||
$request | SS_HTTPRequest |
public createsnapshot ( SS_HTTPRequest $request ) : string | ||
$request | SS_HTTPRequest | |
return | string | - HTML |
public deletesnapshot ( SS_HTTPRequest $request ) : HTMLText | ||
$request | SS_HTTPRequest | |
return | HTMLText |
public deploySummary ( SS_HTTPRequest $request ) : string | ||
$request | SS_HTTPRequest | |
return | string |
public doCreateEnvironment ( array $data, Form $form ) : boolean | HTMLText | SS_HTTPResponse | ||
$data | array | |
$form | Form | |
return | boolean | HTMLText | SS_HTTPResponse |
public doDataTransfer ( array $data, Form $form ) : SS_HTTPResponse | ||
$data | array | |
$form | Form | |
return | SS_HTTPResponse |
public doPostSnapshot ( array $data, Form $form ) : SS_HTTPResponse | ||
$data | array | |
$form | Form | |
return | SS_HTTPResponse |
public doUploadSnapshot ( array $data, Form $form ) : boolean | HTMLText | SS_HTTPResponse | ||
$data | array | |
$form | Form | |
return | boolean | HTMLText | SS_HTTPResponse |
public environment ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
protected environment404Response ( ) : SS_HTTPResponse | ||
return | SS_HTTPResponse |
public getCreateEnvironmentForm ( SS_HTTPRequest $request = null ) : Form | ||
$request | SS_HTTPRequest | |
return | Form |
public getCurrentActionType ( ) : string | ||
return | string | - one of the consts from self::$action_types |
public getCurrentEnvironment ( DNProject $project = null ) : DNEnvironment | null | ||
$project | DNProject | |
return | DNEnvironment | null |
public getCurrentProject ( ) : DNProject | null | ||
return | DNProject | null |
protected getCustomisedViewSection ( string $sectionName, string $title = '', $data = [] ) : SS_HTTPResponse | ||
$sectionName | string | |
$title | string | |
return | SS_HTTPResponse |
public getDataTransferForm ( SS_HTTPRequest $request = null ) : Form | ||
$request | SS_HTTPRequest | |
return | Form |
public getDataTransferRestoreForm ( SS_HTTPRequest $request, DNDataArchive $dataArchive = null ) : Form | ||
$request | SS_HTTPRequest | |
$dataArchive | DNDataArchive | Only set when method is called manually in {@link restore()}, otherwise the state is inferred from the request data. |
return | Form |
public getDeleteForm ( SS_HTTPRequest $request, DNDataArchive $dataArchive = null ) : Form | ||
$request | SS_HTTPRequest | |
$dataArchive | DNDataArchive | Only set when method is called manually, otherwise the state is inferred from the request data. |
return | Form |
public getDeployForm ( $request = null ) : Form | ||
return | Form |
public getMoveForm ( SS_HTTPRequest $request, DNDataArchive $dataArchive = null ) : Form | SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
$dataArchive | DNDataArchive | |
return | Form | SS_HTTPResponse |
public getPlatformSpecificStrings ( ) : ArrayList | ||
return | ArrayList |
public getPostSnapshotForm ( SS_HTTPRequest $request ) : Form | ||
$request | SS_HTTPRequest | |
return | Form |
public getStarredProjects ( ) : SS_List | ||
return | SS_List |
public getUploadSnapshotForm ( SS_HTTPRequest $request ) : Form | ||
$request | SS_HTTPRequest | |
return | Form |
public static get_support_links ( ) : ArrayList | ||
return | ArrayList |
public static get_template_global_variables ( ) : array | ||
return | array |
public gitRevisions ( SS_HTTPRequest $request ) : SS_HTTPResponse | string | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse | string |
public static include_requirements ( ) |
public index ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
public movesnapshot ( SS_HTTPRequest $request ) : HTMLText | ||
$request | SS_HTTPRequest | |
return | HTMLText |
public postsnapshotsuccess ( SS_HTTPRequest $request ) : SS_HTTPResponse | string | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse | string |
public project ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
protected project404Response ( ) : SS_HTTPResponse | ||
return | SS_HTTPResponse |
public restoresnapshot ( SS_HTTPRequest $request ) : HTMLText | ||
$request | SS_HTTPRequest | |
return | HTMLText |
public setCurrentActionType ( string $actionType ) | ||
$actionType | string | string - one of the consts from self::$action_types |
public snapshots ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse | - HTML |
public snapshotslog ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse | - HTML |
public startDeploy ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
public toggleprojectstar ( SS_HTTPRequest $request ) : SS_HTTPResponse | ||
$request | SS_HTTPRequest | |
return | SS_HTTPResponse |
public transferlog ( SS_HTTPRequest $request ) : string | ||
$request | SS_HTTPRequest | |
return | string |
public uploadsnapshot ( SS_HTTPRequest $request ) : string | ||
$request | SS_HTTPRequest | |
return | string | - HTML |
protected validateSnapshotMode ( string $mode ) | ||
$mode | string |