2007-08-16 08:32:49 +02:00
|
|
|
<?php
|
|
|
|
|
2008-01-09 05:18:36 +01:00
|
|
|
/**
|
|
|
|
* @package sapphire
|
|
|
|
* @subpackage core
|
|
|
|
*/
|
|
|
|
|
2007-08-16 08:32:49 +02:00
|
|
|
/**
|
|
|
|
* Add extension that can be added to an object with Object::add_extension().
|
|
|
|
* For DataObject extensions, use DataObjectDecorator
|
2008-01-08 07:37:50 +01:00
|
|
|
*
|
|
|
|
* @package sapphire
|
|
|
|
* @subpackage core
|
2007-08-16 08:32:49 +02:00
|
|
|
*/
|
|
|
|
abstract class Extension extends Object {
|
|
|
|
/**
|
|
|
|
* The DataObject that owns this decorator.
|
|
|
|
* @var DataObject
|
|
|
|
*/
|
|
|
|
protected $owner;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the owner of this decorator.
|
|
|
|
* @param DataObject $owner
|
|
|
|
*/
|
|
|
|
function setOwner(Object $owner) {
|
|
|
|
$this->owner = $owner;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|