Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
$labelGroupIDs = TutorialsCategoryCache::getInstance()->getLabelGroups($this->category->categoryID);
/**
* @see \wcf\form\IForm::readFormParameters()
*/
public function readFormParameters() {
parent::readFormParameters();
if (isset($_POST['enableDelayedPublication'])) $this->enableDelayedPublication = intval($_POST['enableDelayedPublication']);
if (isset($_POST['publicationDate'])) $this->publicationDate = $_POST['publicationDate'];
if (isset($_POST['enableAutomaticArchiving'])) $this->enableAutomaticArchiving = intval($_POST['enableAutomaticArchiving']);
if (isset($_POST['archivingDate'])) $this->archivingDate = $_POST['archivingDate'];
if (isset($_POST['labelIDs']) && is_array($_POST['labelIDs'])) $this->labelIDs = $_POST['labelIDs'];
if (isset($_POST['teaser'])) $this->teaser = StringUtil::trim($_POST['teaser']);
if (isset($_POST['tags']) && is_array($_POST['tags'])) $this->tags = ArrayUtil::trim($_POST['tags']);
if (isset($_POST['isHot'])) $this->isHot = intval($_POST['isHot']);
// read available label groups
$labelGroupIDs = TutorialsCategoryCache::getInstance()->getLabelGroups($this->category->categoryID);
if (!empty($labelGroupIDs)) {
$this->labelGroups = LabelHandler::getInstance()->getLabelGroups($labelGroupIDs, true, 'canViewLabel');
if (isset($_REQUEST['labelIDs']) && is_array($_REQUEST['labelIDs'])) {
$this->labelIDs = $_REQUEST['labelIDs'];
foreach ($this->labelIDs as $groupID => $labelID) {
$isValid = false;
// ignore zero-values
if (!is_array($labelID) && $labelID) {
if (isset($this->labelGroups[$groupID]) && $this->labelGroups[$groupID]->isValid($labelID)) {
$isValid = true;
}
else if ($labelID == -1) {
$isValid = true;
}
}
if (!$isValid) {
unset($this->labelIDs[$groupID]);
}
}
}
}
// tutorials picture
if (TUTORIALS_ENABLE_TUTORIALSPICTURE) {
if (isset($_POST['pictureID'])) $this->pictureID = intval($_POST['pictureID']);
$this->picture = new TutorialsPicture($this->pictureID);
}
// quotes
MessageQuoteManager::getInstance()->readFormParameters();
}
$labelGroupIDs = TutorialsCategoryCache::getInstance()->getLabelGroups($this->category->categoryID);
Undefined property: tutorials\form\TutorialsAddForm::$category
$labelGroupIDs = TutorialsCategoryCache::getInstance()->getLabelGroups($this->category->categoryID);