PHP Класс Scalr\Upgrade\Updates\Update20150116130622

Наследование: extends Scalr\Upgrade\AbstractUpdate, implements Scalr\Upgrade\SequenceInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$dbservice
$depends
$description
$ignoreChanges
$uuid

Открытые методы

Метод Описание
__construct ( SplFileInfo $fileInfo, ArrayObject $collection ) UpdateCrypto
getNumberStages ( )
recrypt ( string $table, string[] $fields, string $where = '', string[] $pks = ['id'], Scalr\Util\CryptoTool $source = null ) : integer Reencrypts specified fields
rollback ( $code, $message )

Защищенные методы

Метод Описание
isApplied1 ( $stage )
run1 ( $stage )
validateBefore1 ( $stage )

Описание методов

__construct() публичный Метод

public __construct ( SplFileInfo $fileInfo, ArrayObject $collection )
$fileInfo SplFileInfo
$collection ArrayObject

getNumberStages() публичный Метод

public getNumberStages ( )

isApplied1() защищенный Метод

protected isApplied1 ( $stage )

recrypt() публичный Метод

Reencrypts specified fields
public recrypt ( string $table, string[] $fields, string $where = '', string[] $pks = ['id'], Scalr\Util\CryptoTool $source = null ) : integer
$table string Table name
$fields string[] Fields name
$where string WHERE statement for SELECT query
$pks string[] Primary keys names
$source Scalr\Util\CryptoTool
Результат integer Returns number of affected rows

rollback() публичный Метод

public rollback ( $code, $message )

run1() защищенный Метод

protected run1 ( $stage )

validateBefore1() защищенный Метод

protected validateBefore1 ( $stage )

Описание свойств

$dbservice защищенное свойство

protected $dbservice

$depends защищенное свойство

protected $depends

$description защищенное свойство

protected $description

$ignoreChanges защищенное свойство

protected $ignoreChanges

$uuid защищенное свойство

protected $uuid