added a few Laconica events

This commit is contained in:
Brian 2009-03-20 05:59:03 -07:00
parent a1e37b2bd2
commit 214468d17e

View File

@ -97,9 +97,18 @@ class Action extends HTMLOutputter // lawsuit
$this->startHTML(); $this->startHTML();
Event::handle('EndShowHTML', array($this)); Event::handle('EndShowHTML', array($this));
} }
if (Event::handle('StartShowHead', array($this))) {
$this->showHead(); $this->showHead();
Event::handle('EndShowHead', array($this));
}
if (Event::handle('StartShowBody', array($this))) {
$this->showBody(); $this->showBody();
Event::handle('EndShowBody', array($this));
}
if (Event::handle('StartEndHTML', array($this))) {
$this->endHTML(); $this->endHTML();
Event::handle('EndEndHTML', array($this));
}
} }
/** /**
@ -577,7 +586,10 @@ class Action extends HTMLOutputter // lawsuit
{ {
$this->elementStart('div', array('id' => 'aside_primary', $this->elementStart('div', array('id' => 'aside_primary',
'class' => 'aside')); 'class' => 'aside'));
if (Event::handle('StartShowExportData', array($this))) {
$this->showExportData(); $this->showExportData();
Event::handle('EndShowExportData', array($this));
}
if (Event::handle('StartShowSections', array($this))) { if (Event::handle('StartShowSections', array($this))) {
$this->showSections(); $this->showSections();
Event::handle('EndShowSections', array($this)); Event::handle('EndShowSections', array($this));