IMP_Basic_Listinfo::_init PHP Method

_init() protected method

protected _init ( )
    protected function _init()
    {
        global $injector, $page_output;
        /* Parse the message. */
        try {
            $imp_contents = $injector->getInstance('IMP_Factory_Contents')->create($this->indices);
        } catch (IMP_Exception $e) {
            throw new IMP_Exception(_("Could not load message."));
        }
        $view = new Horde_View(array('templatePath' => IMP_TEMPLATES . '/listinfo'));
        $listheaders = $injector->getInstance('Horde_ListHeaders');
        $mime_headers = $imp_contents->getHeader();
        $view->headers = array();
        foreach ($listheaders->headers() as $key => $val) {
            if ($data = $mime_headers[$key]) {
                $view->headers[$val] = $this->_parseListHeaders($key, $data->value);
            }
        }
        $this->output = $view->render('listinfo');
        $this->title = _("Mailing List Information");
        $page_output->addInlineScript(array('window.resizeBy(0, window.document.body.scrollHeight - window.innerHeight + 20)'), true);
        $page_output->topbar = $page_output->sidebar = false;
    }