@@ 458-467 (lines=10) @@ | ||
455 | * Return the editor html |
|
456 | * @return string |
|
457 | */ |
|
458 | function getEditor() |
|
459 | { |
|
460 | $module_srl = $this->get('module_srl'); |
|
461 | if(!$module_srl) |
|
462 | { |
|
463 | $module_srl = Context::get('module_srl'); |
|
464 | } |
|
465 | $oEditorModel = getModel('editor'); |
|
466 | return $oEditorModel->getModuleEditor('comment', $module_srl, $this->comment_srl, 'comment_srl', 'content'); |
|
467 | } |
|
468 | ||
469 | /** |
|
470 | * Return author's profile image |
@@ 1093-1100 (lines=8) @@ | ||
1090 | * Return Editor html |
|
1091 | * @return string |
|
1092 | */ |
|
1093 | function getEditor() |
|
1094 | { |
|
1095 | $module_srl = $this->get('module_srl'); |
|
1096 | if(!$module_srl) $module_srl = Context::get('module_srl'); |
|
1097 | ||
1098 | $oEditorModel = getModel('editor'); |
|
1099 | return $oEditorModel->getModuleEditor('document', $module_srl, $this->document_srl, 'document_srl', 'content'); |
|
1100 | } |
|
1101 | ||
1102 | /** |
|
1103 | * Check whether to have a permission to write comment |