. */ /** * 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 { protected $_auditLog; public function __construct(array $options) { $this->_auditLog = new Doctrine_AuditLog($options); } public function setUp() { $this->_auditLog->setOption('table', $this->_table); $this->_auditLog->buildDefinition($this->_table); $this->addListener(new Doctrine_AuditLog_Listener($this->_auditLog)); } public function getAuditLog() { return $this->_auditLog; } }