. */ /** * Doctrine_Template_Versionable * * @package Doctrine * @subpackage Template * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ class Doctrine_Template_Versionable extends Doctrine_Template { public function __construct(array $options) { $this->_plugin = new Doctrine_AuditLog($options); } public function setUp() { $this->_plugin->buildPluginDefinition($this->_table); $this->hasColumn('version', 'integer', 8); $this->addListener(new Doctrine_AuditLog_Listener($this->_plugin)); } public function getAuditLog() { return $this->_plugin; } }