PHP 클래스 Scalr_UI_Controller_Scripts

상속: extends Scalr_UI_Controller
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

메소드 설명
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 )

보호된 메소드들

메소드 설명
getScript ( Script $script ) : array
getScriptInfo ( Script $script ) : array

메소드 상세

defaultAction() 공개 메소드

public defaultAction ( )

executeAction() 공개 메소드

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

getScript() 보호된 메소드

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

getScriptInfo() 보호된 메소드

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

hasAccess() 공개 메소드

public hasAccess ( )

viewAction() 공개 메소드

public viewAction ( )

xExecuteAction() 공개 메소드

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 xForkAction ( integer $scriptId, string $name )
$scriptId integer
$name string

xGetAction() 공개 메소드

public xGetAction ( integer $scriptId )
$scriptId integer

xListAction() 공개 메소드

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() 공개 메소드

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

xRemoveVersionAction() 공개 메소드

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

xSaveAction() 공개 메소드

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