1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/lib/Doctrine/Template.php

134 lines
3.3 KiB
PHP
Raw Normal View History

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.org>.
2007-06-27 20:59:23 +04:00
*/
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
* @subpackage Template
2007-06-27 20:59:23 +04:00
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @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-09-07 00:23:52 +04:00
protected $_plugin;
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
*/
public function setTable($table)
2007-06-27 20:59:23 +04:00
{
$this->_table = $table;
}
2007-06-27 20:59:23 +04:00
/**
* 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;
}
2007-09-01 20:04:48 +04:00
/**
* setInvoker
* returns the last used invoker
*
* @return Doctrine_Record the record that invoked the last delegated call
*/
public function getInvoker()
{
return $this->_invoker;
}
2007-10-13 12:50:48 +04:00
/**
* addChild
*
* Adds a plugin as a child to this plugin
*
* @param Doctrine_Template $template
* @return Doctrine_Template. Chainable.
*/
2007-11-14 01:28:37 +03:00
public function addChild(Doctrine_Template $template)
{
$this->_plugin->addChild($template);
return $this;
}
/**
* getPlugin
*
* @return void
*/
2007-09-07 00:23:52 +04:00
public function getPlugin()
{
return $this->_plugin;
}
/**
* setUp
*
* @return void
*/
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
/**
* setTableDefinition
*
* @return void
*/
2007-06-27 20:59:23 +04:00
public function setTableDefinition()
{
}
2007-10-13 12:50:48 +04:00
}