Lines Matching refs:self

19     const SEC_EDIT_PATTERN = "/" . self::ENTER_HTML_COMMENT . "\s*" . self::EDIT_BUTTON_PREFIX . "({.*?})\s*" . self::CLOSE_HTML_COMMENT . "/";
64 private string $target = self::TARGET_SECTION_VALUE;
74 private string $format = self::COMBO_FORMAT;
163 $data[self::TARGET_ATTRIBUTE_NAME] = $this->target;
165 if ($this->format === self::COMBO_FORMAT) {
170 $data[self::WIKI_ID] = $wikiId;
172 $data[self::EDIT_MESSAGE] = $this->label;
173 if ($this->format === self::COMBO_FORMAT) {
182 ->generateNewHtmlIdForComponent(self::CANONICAL, $slotPath);
183 $data[self::FORM_ID] = $formId;
187 $data[self::FORM_ID] = $this->getHeadingId();
191 $data[self::RANGE] = $this->getRange();
194 return self::EDIT_BUTTON_PREFIX . Html::encode(json_encode($data));
216 return self::ENTER_HTML_COMMENT . " " . $this->toTag() . " " . self::CLOSE_HTML_COMMENT;
255 $snippetManager->attachCssInternalStylesheet(self::SNIPPET_ID);
256 $snippetManager->attachJavascriptFromComponentId(self::SNIPPET_ID);
267 $target = $data[self::TARGET_ATTRIBUTE_NAME];
269 $message = $data[self::EDIT_MESSAGE];
270 unset($data[self::EDIT_MESSAGE]);
276 LogUtility::internalError("No data found in the edit comment", self::CANONICAL);
279 $wikiId = $data[self::WIKI_ID] ?? null;
280 unset($data[self::WIKI_ID]);
285 LogUtility::internalError("A page id is mandatory for a edit button (no wiki id, no global ID were found). No edit buttons was created then.", self::CANONICAL);
291 $formId = $data[self::FORM_ID];
292 unset($data[self::FORM_ID]);
297 //LogUtility::internalError("The file ({$page->getPathObject()}) does not exist, we cannot set the last modified time on the edit buttons.", self::CANONICAL);
310 $classPageEdit = StyleAttribute::addComboStrapSuffix(self::CLASS_SUFFIX);
332 return preg_replace_callback(self::SEC_EDIT_PATTERN, $editFormCallBack, $html);
386 return $this->toComboCall(self::COMBO_FORMAT);
426 return $this->toComboCall(self::DOKUWIKI_FORMAT);
433 if (!in_array($format, [self::DOKUWIKI_FORMAT, self::COMBO_FORMAT])) {
434 LogUtility::internalError("The tag format ($format) is not valid", self::CANONICAL);