PHP Class Scalr_UI_Controller_Scripts

Inheritance: extends Scalr_UI_Controller
Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Méthode Description
defaultAction ( )
executeAction ( integer $farmId, integer $farmRoleId, string $serverId = '', integer $scriptId, integer $shortcutId )
hasAccess ( )
viewAction ( )
xExecuteAction ( integer $farmId, integer $farmRoleId, string $serverId = '', integer $scriptId, string $scriptPath = '', integer $scriptIsSync, integer $scriptTimeout, integer $scriptVersion, array $scriptParams = [], integer $shortcutId = null, integer $editShortcut = null )
xForkAction ( integer $scriptId, string $name )
xGetAction ( integer $scriptId )
xListAction ( string $scriptId = null, string $query = null, string $scope = null, JsonData $sort, integer $start, integer $limit = 20 )
xRemoveAction ( JsonData $scriptId ) Remove scripts
xRemoveVersionAction ( integer $scriptId, integer $version )
xSaveAction ( integer $id, string $name, string $description, integer $isSync, boolean $allowScriptParameters = false, integer $envId = NULL, integer $timeout = NULL, integer $version, Scalr\UI\Request\RawData $content, string $tags, string $uploadType = NULL, string $uploadUrl = NULL, Scalr\UI\Request\FileUploadData $uploadFile = NULL, boolean $checkScriptParameters = false )

Méthodes protégées

Méthode Description
getScript ( Script $script ) : array
getScriptInfo ( Script $script ) : array

Method Details

defaultAction() public méthode

public defaultAction ( )

executeAction() public méthode

public executeAction ( integer $farmId, integer $farmRoleId, string $serverId = '', integer $scriptId, integer $shortcutId )
$farmId integer
$farmRoleId integer
$serverId string
$scriptId integer
$shortcutId integer

getScript() protected méthode

protected getScript ( Script $script ) : array
$script Scalr\Model\Entity\Script
Résultat array

getScriptInfo() protected méthode

protected getScriptInfo ( Script $script ) : array
$script Scalr\Model\Entity\Script
Résultat array

hasAccess() public méthode

public hasAccess ( )

viewAction() public méthode

public viewAction ( )

xExecuteAction() public méthode

public xExecuteAction ( integer $farmId, integer $farmRoleId, string $serverId = '', integer $scriptId, string $scriptPath = '', integer $scriptIsSync, integer $scriptTimeout, integer $scriptVersion, array $scriptParams = [], integer $shortcutId = null, integer $editShortcut = null )
$farmId integer
$farmRoleId integer optional
$serverId string optional
$scriptId integer optional
$scriptPath string optional
$scriptIsSync integer
$scriptTimeout integer
$scriptVersion integer
$scriptParams array optional
$shortcutId integer optional
$editShortcut integer optional

xForkAction() public méthode

public xForkAction ( integer $scriptId, string $name )
$scriptId integer
$name string

xGetAction() public méthode

public xGetAction ( integer $scriptId )
$scriptId integer

xListAction() public méthode

public xListAction ( string $scriptId = null, string $query = null, string $scope = null, JsonData $sort, integer $start, integer $limit = 20 )
$scriptId string
$query string
$scope string
$sort Scalr\UI\Request\JsonData
$start integer
$limit integer

xRemoveAction() public méthode

Remove scripts
public xRemoveAction ( JsonData $scriptId )
$scriptId Scalr\UI\Request\JsonData json array of scriptId to remove

xRemoveVersionAction() public méthode

public xRemoveVersionAction ( integer $scriptId, integer $version )
$scriptId integer
$version integer

xSaveAction() public méthode

public xSaveAction ( integer $id, string $name, string $description, integer $isSync, boolean $allowScriptParameters = false, integer $envId = NULL, integer $timeout = NULL, integer $version, Scalr\UI\Request\RawData $content, string $tags, string $uploadType = NULL, string $uploadUrl = NULL, Scalr\UI\Request\FileUploadData $uploadFile = NULL, boolean $checkScriptParameters = false )
$id integer
$name string
$description string
$isSync integer
$allowScriptParameters boolean
$envId integer optional
$timeout integer optional
$version integer
$content Scalr\UI\Request\RawData
$tags string
$uploadType string optional
$uploadUrl string optional
$uploadFile Scalr\UI\Request\FileUploadData optional
$checkScriptParameters boolean optional