PHP Класс 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 .
Автор: OpenEyes ([email protected])
Наследование: extends BaseActiveRecord
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$version_id

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

Метод Описание
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()

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

Метод Описание
versionToTable ( CDbCriteria $criteria )

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

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

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

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

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

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

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

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

* Fetch from version
public fromVersion ( )

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

public getCommandBuilder ( )

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

public getPreviousVersion ( )

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

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

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

public getTableSchema ( )

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

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

* Disable archiving on save()
public noVersion ( )

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

* Disable fetch from version
public notFromVersion ( )

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

public resetScope ( $resetDefault = true )

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

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

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

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

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

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

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

protected versionToTable ( CDbCriteria $criteria )
$criteria CDbCriteria

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

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

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

$version_id публичное свойство

public $version_id