Lines Matching refs:description
17 * The description sub key in the dokuwiki meta
18 * that has the description text
21 public const PROPERTY_NAME = "description";
27 * @var string - the origin of the description
32 public const DESCRIPTION_PROPERTY = "description";
34 * To indicate from where the description comes
35 * This is when it's the original dokuwiki description
39 * The origin of the description was set to frontmatter
59 return "The description is a paragraph that describe your page. It's advertised to external application and used in templating.";
110 * @return string - the dokuwiki calculated description
136 $description = $value[self::ABSTRACT_KEY];
137 if ($description !== null) {
141 parent::setFromStoreValueWithoutException($description);
160 * No description set, null
181 // we need to know the origin of the actual description
190 throw new ExceptionCompile("The description cannot be empty", PageDescription::DESCRIPTION_PROPERTY);
192 // The original description is from Dokuwiki, we don't send an error
193 // otherwise all page without a first description would get an error
251 * Dokuwiki description
253 * TODO: Generate our own description ?
256 $description = str_replace("\n", " ", $value);
260 $description = str_replace($resourceCombo->getH1OrDefault(), "", $description);
263 $description = preg_replace('/(\*|\t|About)/im', "", $description);
265 return trim(preg_replace('/ /m', " ", $description));