コード例 #1
0
ファイル: BackendForm.php プロジェクト: agentmedia/phine-core
 /**
  * Adds a field with the default rich text editor
  * @param string $name The field name
  * @param string $value The field value
  */
 protected function AddRichTextField($name, $value = '')
 {
     $renderer = new CKEditorRenderer(PathUtil::BackendRTEPath(), PathUtil::BackendRTEUrl(), PathUtil::UploadPath(), PathUtil::UploadUrl(), self::Guard());
     $field = new Custom($renderer);
     $field->SetName($name);
     $field->SetValue($value);
     $this->AddField($field);
 }
コード例 #2
0
 /**
  * Adds the field for mail text 1
  */
 private function AddMailText2Field()
 {
     $name = 'MailText2';
     $renderer = new CKEditorRenderer(PathUtil::BackendRTEPath(), PathUtil::BackendRteUrl(), PathUtil::UploadPath(), PathUtil::UploadUrl(), self::Guard());
     $field = new Custom($renderer);
     $field->SetName($name);
     $field->SetValue($this->register->GetMailText2());
     $this->AddField($field);
 }