PHP Class Scalr\Upgrade\Updates\Update20150116130622

Inheritance: extends Scalr\Upgrade\AbstractUpdate, implements Scalr\Upgrade\SequenceInterface
Afficher le fichier Open project: scalr/scalr

Protected Properties

Свойство Type Description
$dbservice
$depends
$description
$ignoreChanges
$uuid

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
isApplied1 ( $stage )
run1 ( $stage )
validateBefore1 ( $stage )

Method Details

__construct() public méthode

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

getNumberStages() public méthode

public getNumberStages ( )

isApplied1() protected méthode

protected isApplied1 ( $stage )

recrypt() public méthode

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
Résultat integer Returns number of affected rows

rollback() public méthode

public rollback ( $code, $message )

run1() protected méthode

protected run1 ( $stage )

validateBefore1() protected méthode

protected validateBefore1 ( $stage )

Property Details

$dbservice protected_oe property

protected $dbservice

$depends protected_oe property

protected $depends

$description protected_oe property

protected $description

$ignoreChanges protected_oe property

protected $ignoreChanges

$uuid protected_oe property

protected $uuid