Beispiel #1
0
 private function getFormMessage()
 {
     if ($this->pm === false) {
         return '';
     } elseif (Common::getGet('quote') !== false) {
         return sprintf("[quote from=%s date=%s]\n%s\n[/quote]", $this->pm->getSender()->display('user_name'), $this->pm->getVar('pm_date'), $this->pm->getVar('pm_message'));
     } else {
         return '';
         //			return $this->pm->display('pm_message');
     }
 }
Beispiel #2
0
 private function getForm()
 {
     $buttons = array('preview' => $this->module->lang('btn_preview'), 'edit' => $this->module->lang('btn_edit'));
     $data = array('title' => array(GWF_Form::STRING, $this->pm->getVar('pm_title'), $this->module->lang('th_pm_title')), 'message' => array(GWF_Form::MESSAGE, $this->pm->getVar('pm_message'), $this->module->lang('th_pm_message')), 'cmds' => array(GWF_Form::SUBMITS, $buttons));
     return new GWF_Form($this, $data);
 }