PHP Class BaseActiveRecordVersioned

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends BaseActiveRecord
Show file Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$version_id

Public Methods

Method Description
deleteAll ( $condition = '', $params = [] )
deleteAllByAttributes ( $attributes, $condition = '', $params = [] )
deleteByPk ( $pk, $condition = '', $params = [] )
fromVersion ( ) * Fetch from version
getCommandBuilder ( )
getPreviousVersion ( )
getPreviousVersions ( ) * Return all previous versions ordered by most recent
getTableSchema ( )
getVersionTableSchema ( )
noVersion ( ) * Disable archiving on save()
notFromVersion ( ) * Disable fetch from version
resetScope ( $resetDefault = true )
save ( $runValidation = true, $attributes = null, $allow_overriding = false )
updateAll ( $attributes, $condition = '', $params = [] )
updateByPk ( $pk, $attributes, $condition = '', $params = [] )
withVersion ( ) * Re-enable archiving on save()

Protected Methods

Method Description
versionToTable ( CDbCriteria $criteria )

Method Details

deleteAll() public method

public deleteAll ( $condition = '', $params = [] )

deleteAllByAttributes() public method

public deleteAllByAttributes ( $attributes, $condition = '', $params = [] )

deleteByPk() public method

public deleteByPk ( $pk, $condition = '', $params = [] )

fromVersion() public method

* Fetch from version
public fromVersion ( )

getCommandBuilder() public method

public getCommandBuilder ( )

getPreviousVersion() public method

public getPreviousVersion ( )

getPreviousVersions() public method

* Return all previous versions ordered by most recent
public getPreviousVersions ( )

getTableSchema() public method

public getTableSchema ( )

getVersionTableSchema() public method

noVersion() public method

* Disable archiving on save()
public noVersion ( )

notFromVersion() public method

* Disable fetch from version
public notFromVersion ( )

resetScope() public method

public resetScope ( $resetDefault = true )

save() public method

public save ( $runValidation = true, $attributes = null, $allow_overriding = false )

updateAll() public method

public updateAll ( $attributes, $condition = '', $params = [] )

updateByPk() public method

public updateByPk ( $pk, $attributes, $condition = '', $params = [] )

versionToTable() protected method

protected versionToTable ( CDbCriteria $criteria )
$criteria CDbCriteria

withVersion() public method

* Re-enable archiving on save()
public withVersion ( )

Property Details

$version_id public property

public $version_id