public function getPluginHandler() { if (empty($this->plugins)) { throw new Phergie_Plugin_Exception('Plugin handler cannot be accessed before one is set', Phergie_Plugin_Exception::ERR_NO_PLUGIN_HANDLER); } return $this->plugins; }