PHP Class Scalr_UI_Controller_Scripts

Inheritance: extends Scalr_UI_Controller
ファイルを表示 Open project: scalr/scalr Class Usage Examples

Public Methods

Method 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 )

Protected Methods

Method Description
getScript ( Script $script ) : array
getScriptInfo ( Script $script ) : array

Method Details

defaultAction() public method

public defaultAction ( )

executeAction() public method

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

getScript() protected method

protected getScript ( Script $script ) : array
$script Scalr\Model\Entity\Script
return array

getScriptInfo() protected method

protected getScriptInfo ( Script $script ) : array
$script Scalr\Model\Entity\Script
return array

hasAccess() public method

public hasAccess ( )

viewAction() public method

public viewAction ( )

xExecuteAction() public method

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 method

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

xGetAction() public method

public xGetAction ( integer $scriptId )
$scriptId integer

xListAction() public method

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 method

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

xRemoveVersionAction() public method

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

xSaveAction() public method

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