public function render($mode, $params = null)
{
switch ($mode) {
case Wicked::MODE_CONTENT:
return $this->content($params);
case Wicked::MODE_DISPLAY:
return $this->display($params);
case Wicked::MODE_BLOCK:
return $this->block($params);
case Wicked::MODE_REMOVE:
return $this->remove();
case Wicked::MODE_HISTORY:
return $this->history();
case Wicked::MODE_DIFF:
return $this->diff($params);
default:
throw new Wicked_Exception(_("Unsupported"));
}
}