PHP Класс Scalr\Model\Entity\Script

С версии: 5.0 (08.05.2014)
Автор: Igor Vodiasov ([email protected])
Наследование: extends Scalr\Model\AbstractEntity
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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