/** * Return array containing the parsed (evaluated) standard placeholders * * @return array */ public function getParsedPlaceholders() { if (!is_null($this->parsed_placeholders)) { return $this->parsed_placeholders; } // Initialize with empty values $this->parsed_placeholders = array(); foreach (self::$placeholders as $k => $v) { $this->parsed_placeholders[$k] = ''; } $user = $this->certificate->getUser(); $course = new ilObjCourse($this->certificate->getDefinition()->getRefId()); $this->parsed_placeholders = array_merge($this->parsed_placeholders, $this->parseUserPlaceholders($user), $this->parseGeneralPlaceholders($course), $this->parseLearningProgressPlaceholders($course, $user), $this->parseCustomSettingsPlaceholders()); return $this->parsed_placeholders; }