PHP Class Scalr\Upgrade\Updates\Update20150116130622

Inheritance: extends Scalr\Upgrade\AbstractUpdate, implements Scalr\Upgrade\SequenceInterface
Mostra file Open project: scalr/scalr

Protected Properties

Property Type Description
$dbservice
$depends
$description
$ignoreChanges
$uuid

Public Methods

Method 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 )

Protected Methods

Method Description
isApplied1 ( $stage )
run1 ( $stage )
validateBefore1 ( $stage )

Method Details

__construct() public method

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

getNumberStages() public method

public getNumberStages ( )

isApplied1() protected method

protected isApplied1 ( $stage )

recrypt() public method

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
return integer Returns number of affected rows

rollback() public method

public rollback ( $code, $message )

run1() protected method

protected run1 ( $stage )

validateBefore1() protected method

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