* @license PHP License * @package WB * @subpackage content */ /** * Load base class */ WBClass::load( 'WBContent' ); /** * Content component: SEO * * @version 0.1.0 * @package WB * @subpackage content */ abstract class WBContent_SEO extends WBContent { /** * Response object * @var WBResponse */ protected $res; /** * Constructor * * Create response object and call parent's constructor */ public function __construct() { parent::__construct(); $this->res = WBClass::create('WBResponse'); } /** * Send response * * CAUTION: This method does not return! * * @param string $mime */ protected function sendAndExit($mime) { $this->res->addHeader('Content-Type', $mime); $this->res->send($this->req); exit(0); } }