Feed-Einträge
>uUPt]uU)uUG%&uUPH4uU`t>uU ptZuU<auUpE>uUPt]uU)uUG%&uUH4uU`tZuU<auU`xE>uUpPt]uU )uU 0G%&uU 0H4uU0`tZuU<auUE>uUPt]uUP)uUP`G%&uU`H4uU``t>uU`pt>uUPtZuU<auU E>uU0PtXuU4uU`t>uUpt>uUtZuU<auUE>uUPtXuU4uU`t>uU`pt>uUPtZuU<auU E>uU0PtXuU4uU`t>uUpt>uUtZuU<auUE>uUPtXuU4uU`t>uU`pt>uUPtZuU<auU E>uU0PtXuU4uU`t>uUpt>uUtZuU<auUE>uUPtXuU 4uU `t>uU`pt>uUPtZuU<auU E>uU0Pt]uU@)uU@PG%&uUPH4uUP`tZuU<puU@pM6uUpp NauU`ETuUpp.uU`4uUPtXuU4uU`tZuU<auUETuUp.uU4uUPtXuU4uU`t>uU`ptZuU<2uU*;uUpauUE>uUPt]uU )uU  G%&uU H4uU `tZuU<auU`E>uUpPt]uU0 )uU0 @ G%&uU @ H4uU@ `tZuU<auUE>uUPtXuU` 4uU` `t>uUpt>uUtZuU<auUPE>uU`PtXuU 4uU `t>uUpt>uUtZuU<auUE>uUPtarticletext']); if ($tagPos == 0) { $this->introtext = $array['articletext']; $this->fulltext = ''; } else { list($this->introtext, $this->fulltext) = preg_split($pattern, $array['articletext'], 2); } } if (isset($array['attribs']) && \is_array($array['attribs'])) { $registry = new Registry($array['attribs']); $array['attribs'] = (string) $registry; } if (isset($array['metadata']) && \is_array($array['metadata'])) { $registry = new Registry($array['metadata']); $array['metadata'] = (string) $registry; } // Bind the rules. if (isset($array['rules']) && \is_array($array['rules'])) { $rules = new Rules($array['rules']); $this->setRules($rules); } return parent::bind($array, $ignore); } /** * Overloaded check function * * @return boolean True on success, false on failure * * @see Table::check() * @since 1.5 */ public function check() { try { parent::check(); } catch (\Exception $e) { $this->setError($e->getMessage()); return false; } if (trim($this->title) == '') { $this->setError(Text::_('COM_CONTENT_WARNING_PROVIDE_VALID_NAME')); return false; } if (trim($this->alias) == '') { $this->alias = $this->title; } $this->alias = ApplicationHelper::stringURLSafe($this->alias, $this->language); if (trim(str_replace('-', '', $this->alias)) == '') { $this->alias = Factory::getDate()->format('Y-m-d-H-i-s'); } // Check for a valid category. if (!$this->catid = (int) $this->catid) { $this->setError(Text::_('JLIB_DATABASE_ERROR_CATEGORY_REQUIRED')); return false; } if (trim(str_replace(' ', '', $this->fulltext)) == '') { $this->fulltext = ''; } /** * Ensure any new items have compulsory fields set. This is needed for things like * frontend editing where we don't show all the fields or using some kind of API */ if (!$this->id) { // Images can be an empty json string if (!isset($this->images)) { $this->images = '{}'; } // URLs can be an empty json string if (!isset($this->urls)) { $this->urls = '{}'; } // Attributes (article params) can be an empty json string if (!isset($this->attribs)) { $this->attribs = '{}'; } // Metadata can be an empty json string if (!isset($this->metadata)) { $this->metadata = '{}'; } // Hits must be zero on a new item $this->hits = 0; } // Set publish_up to null if not set if (!$this->publish_up) { $this->publish_up = null; } // Set publish_down to null if not set if (!$this->publish_down) { $this->publish_down = null; } // Check the publish down date is not earlier than publish up. if (!is_null($this->publish_up) && !is_null($this->publish_down) && $this->publish_down < $this->publish_up) { // Swap the dates. $temp = $this->publish_up; $this->publish_up = $this->publish_down; $this->publish_down = $temp; } // Clean up keywords -- eliminate extra spaces between phrases // and cr (\r) and lf (\n) characters from string if (!empty($this->metakey)) { // Only process if not empty // Array of characters to remove $badCharacters = ["\n", "\r", "\"", '<', '>']; // Remove bad characters $afterClean = StringHelper::str_ireplace($badCharacters, '', $this->metakey); // Create array using commas as delimiter $keys = explode(',', $afterClean); $cleanKeys = []; foreach ($keys as $key) { if (trim($key)) { // Ignore blank keywords $cleanKeys[] = trim($key); } } // Put array back together delimited by ", " $this->metakey = implode(', ', $cleanKeys); } else { $this->metakey = ''; } if ($this->metadesc === null) { $this->metadesc = ''; } return true; } /** * Overrides Table::store to set modified data and user id. * * @param boolean $updateNulls True to update fields even if they are null. * * @return boolean True on success. * * @since 1.6 */ public function store($updateNulls = true) { $date = Factory::getDate()->toSql(); $user = Factory::getUser(); // Set created date if not set. if (!(int) $this->created) { $this->created = $date; } if ($this->id) { // Existing item $this->modified_by = $user->get('id'); $this->modified = $date; } else { // Field created_by can be set by the user, so we don't touch it if it's set. if (empty($this->created_by)) { $this->created_by = $user->get('id'); } // Set modified to created date if not set if (!(int) $this->modified) { $this->modified = $this->created; } // Set modified_by to created_by user if not set if (empty($this->modified_by)) { $this->modified_by = $this->created_by; } } // Verify that the alias is unique $table = Table::getInstance('Content', 'JTable', ['dbo' => $this->getDbo()]); if ($table->load(['alias' => $this->alias, 'catid' => $this->catid]) && ($table->id != $this->id || $this->id == 0)) { // Is the existing article trashed? $this->setError(Text::_('COM_CONTENT_ERROR_UNIQUE_ALIAS')); if ($table->state === -2) { $this->setError(Text::_('COM_CONTENT_ERROR_UNIQUE_ALIAS_TRASHED')); } return false; } return parent::store($updateNulls); } /** * Get the type alias for UCM features * * @return string The alias as described above * * @since 4.0.0 */ public function getTypeAlias() { return $this->typeAlias; } }

Terminkalender

Events für
Montag, 30. Juni 2025
  • Keine Termine