PHP 클래스 Scalr\Model\Entity\Script

부터: 5.0 (08.05.2014)
저자: Igor Vodiasov ([email protected])
상속: extends Scalr\Model\AbstractEntity
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$accountId integer The identifier of the client's account
$allowScriptParameters integer Enable/disable script parameters interpolation
$createdByEmail string
$createdById integer
$description string Description
$dtChanged DateTime Date when script was modified last time
$dtCreated DateTime Date when script was created
$envId integer The identifier of the client's environment
$id integer ID
$isSync integer Sync or async script
$name string Script's name
$os string OS family of script (linux, windows)
$timeout integer Timeout

공개 메소드들

메소드 설명
__construct ( ) Constructor
checkPermission ( Scalr_Account_User $user, integer $envId )
delete ( ) Deletes this script
fetchVariables ( $content )
fetchVersions ( ) : ArrayObject Fetches list of the versions associated with the script (refreshes)
fork ( string $name, Scalr_Account_Use\Scalr_Account_User $user, integer $envId = null ) : Script Forks specified script into new script
getLatestVersion ( ) : Scalr\Model\Entity\ScriptVersion Get latest version of script
getList ( $accountId, $envId )
getScope ( )
getScriptingData ( $accountId, $envId )
getVersion ( integer $version ) : Scalr\Model\Entity\ScriptVersion | null Gets entity of specified version of script
getVersions ( boolean $resetCache = false ) : ArrayObject Gets the list of the revisions associated with the script
hasAccessPermissions ( $user, $environment = null, $modify = null )
hasVariables ( $content )
save ( ) Saves changes, if script already exists, or saves new script

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

checkPermission() 공개 메소드

public checkPermission ( Scalr_Account_User $user, integer $envId )
$user Scalr_Account_User
$envId integer

delete() 공개 메소드

Deletes this script
public delete ( )

fetchVariables() 공개 정적인 메소드

public static fetchVariables ( $content )

fetchVersions() 공개 메소드

Fetches list of the versions associated with the script (refreshes)
public fetchVersions ( ) : ArrayObject
리턴 ArrayObject Returns the list of ScriptVersion objects

fork() 공개 메소드

Forks specified script into new script
public fork ( string $name, Scalr_Account_Use\Scalr_Account_User $user, integer $envId = null ) : Script
$name string New script name
$user Scalr_Account_Use\Scalr_Account_User User performs a fork
$envId integer Environment of the new script
리턴 Script Forked script

getLatestVersion() 공개 메소드

Get latest version of script
public getLatestVersion ( ) : Scalr\Model\Entity\ScriptVersion
리턴 Scalr\Model\Entity\ScriptVersion

getList() 공개 정적인 메소드

public static getList ( $accountId, $envId )

getScope() 공개 메소드

또한 보기: Scalr\DataType\ScopeInterface::getScope()
public getScope ( )

getScriptingData() 공개 정적인 메소드

public static getScriptingData ( $accountId, $envId )

getVersion() 공개 메소드

Gets entity of specified version of script
public getVersion ( integer $version ) : Scalr\Model\Entity\ScriptVersion | null
$version integer
리턴 Scalr\Model\Entity\ScriptVersion | null

getVersions() 공개 메소드

Gets the list of the revisions associated with the script
public getVersions ( boolean $resetCache = false ) : ArrayObject
$resetCache boolean
리턴 ArrayObject Returns the list of ScriptVersion objects

hasAccessPermissions() 공개 메소드

또한 보기: Scalr\DataType\AccessPermissionsInterface::hasAccessPermissions()
public hasAccessPermissions ( $user, $environment = null, $modify = null )

hasVariables() 공개 정적인 메소드

public static hasVariables ( $content )

save() 공개 메소드

Saves changes, if script already exists, or saves new script
public save ( )

프로퍼티 상세

$accountId 공개적으로 프로퍼티

The identifier of the client's account
public int $accountId
리턴 integer

$allowScriptParameters 공개적으로 프로퍼티

Enable/disable script parameters interpolation
public int $allowScriptParameters
리턴 integer

$createdByEmail 공개적으로 프로퍼티

public string $createdByEmail
리턴 string

$createdById 공개적으로 프로퍼티

public int $createdById
리턴 integer

$description 공개적으로 프로퍼티

Description
public string $description
리턴 string

$dtChanged 공개적으로 프로퍼티

Date when script was modified last time
public DateTime $dtChanged
리턴 DateTime

$dtCreated 공개적으로 프로퍼티

Date when script was created
public DateTime $dtCreated
리턴 DateTime

$envId 공개적으로 프로퍼티

The identifier of the client's environment
public int $envId
리턴 integer

$id 공개적으로 프로퍼티

ID
public int $id
리턴 integer

$isSync 공개적으로 프로퍼티

Sync or async script
public int $isSync
리턴 integer

$name 공개적으로 프로퍼티

Script's name
public string $name
리턴 string

$os 공개적으로 프로퍼티

OS family of script (linux, windows)
public string $os
리턴 string

$timeout 공개적으로 프로퍼티

Timeout
public int $timeout
리턴 integer