2007-06-27 20:59:23 +04:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* This software consists of voluntary contributions made by many individuals
|
|
|
|
* and is licensed under the LGPL. For more information, see
|
|
|
|
* <http://www.phpdoctrine.com>.
|
|
|
|
*/
|
2007-06-27 21:46:34 +04:00
|
|
|
Doctrine::autoload('Doctrine_Record_Abstract');
|
2007-06-27 20:59:23 +04:00
|
|
|
/**
|
|
|
|
* Doctrine_Template
|
|
|
|
*
|
|
|
|
* @package Doctrine
|
|
|
|
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
|
|
|
* @category Object Relational Mapping
|
|
|
|
* @link www.phpdoctrine.com
|
|
|
|
* @since 1.0
|
|
|
|
* @version $Revision$
|
|
|
|
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
|
|
|
*/
|
|
|
|
class Doctrine_Template extends Doctrine_Record_Abstract
|
|
|
|
{
|
2007-09-01 20:04:48 +04:00
|
|
|
/**
|
|
|
|
* @param Doctrine_Record $_invoker the record that invoked the last delegated call
|
|
|
|
*/
|
|
|
|
protected $_invoker;
|
2007-06-27 20:59:23 +04:00
|
|
|
/**
|
2007-06-28 15:56:56 +04:00
|
|
|
* setTable
|
2007-06-27 20:59:23 +04:00
|
|
|
*
|
2007-09-01 20:04:48 +04:00
|
|
|
* @param Doctrine_Table $_table the table object this Template belongs to
|
2007-06-27 20:59:23 +04:00
|
|
|
*/
|
2007-06-28 15:56:56 +04:00
|
|
|
public function setTable(Doctrine_Table $table)
|
2007-06-27 20:59:23 +04:00
|
|
|
{
|
|
|
|
$this->_table = $table;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* getTable
|
|
|
|
* returns the associated table object
|
|
|
|
*
|
2007-09-01 20:04:48 +04:00
|
|
|
* @return Doctrine_Table the associated table object
|
2007-06-27 20:59:23 +04:00
|
|
|
*/
|
|
|
|
public function getTable()
|
|
|
|
{
|
|
|
|
return $this->_table;
|
|
|
|
}
|
2007-09-01 20:04:48 +04:00
|
|
|
/**
|
|
|
|
* setInvoker
|
|
|
|
*
|
|
|
|
* sets the last used invoker
|
|
|
|
*
|
|
|
|
* @param Doctrine_Record $invoker the record that invoked the last delegated call
|
|
|
|
* @return Doctrine_Template this object
|
|
|
|
*/
|
|
|
|
public function setInvoker(Doctrine_Record $invoker)
|
|
|
|
{
|
|
|
|
$this->_invoker = $invoker;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* setInvoker
|
|
|
|
* returns the last used invoker
|
|
|
|
*
|
|
|
|
* @return Doctrine_Record the record that invoked the last delegated call
|
|
|
|
*/
|
|
|
|
public function getInvoker()
|
|
|
|
{
|
|
|
|
return $this->_invoker;
|
|
|
|
}
|
2007-06-27 20:59:23 +04:00
|
|
|
public function setUp()
|
|
|
|
{
|
2007-08-03 15:52:24 +04:00
|
|
|
|
2007-06-27 20:59:23 +04:00
|
|
|
}
|
2007-06-27 21:46:34 +04:00
|
|
|
|
2007-06-27 20:59:23 +04:00
|
|
|
public function setTableDefinition()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|