function sEditButtonHTML($sButtonImage = "edit-button.gif", $sToolTip = "") { $this->dEditorQuery = array(); if ($this->oCSSURL) { $this->dEditorQuery[WY_QK_RICH_TEXT_CSS] = $this->oCSSURL->sURL(); } else { $this->dEditorQuery[WY_QK_RICH_TEXT_CSS] = ""; } return parent::sEditButtonHTML($sButtonImage, $sToolTip); }
function sFieldNameForFile() { $s = parent::sFieldNameForFile(); $s = "at-" . $s; return $s; }
function sEditButtonHTML($sButtonImage = "edit-button.gif", $sToolTip = "", $oCustomURL = false) { $this->dEditorQuery = array(); $this->dEditorQuery[WY_QK_IMAGE_WIDTH] = $this->iImageWidth; $this->dEditorQuery[WY_QK_IMAGE_HEIGHT] = $this->iImageHeight; $this->dEditorQuery[WY_QK_IS_THUMB] = $this->bIsThumb; $this->dEditorQuery[WY_QK_THUMB_WIDTH] = $this->iThumbWidth; $this->dEditorQuery[WY_QK_THUMB_HEIGHT] = $this->iThumbHeight; return parent::sEditButtonHTML($sButtonImage, $sToolTip, $oCustomURL); }
function removeDataForDocIDAndDocInstance($iTargetDocID, $iID) { $aDataFileNames = WYElement::aDataFileNames(); $sRegEx = sprintf("|^%d-%d-|", $iTargetDocID, $iID); foreach ($aDataFileNames as $sDataFileName) { if (preg_match($sRegEx, $sDataFileName)) { WYElement::removeDataFileWithName($sDataFileName); } } }
function sDataFileName($bCreate) { global $goApp; $sFilename = ""; $sPrefix = ""; $iPageID = 0; $i = 0; $sFilename = $this->sFieldNameForFile(); if (!$this->bGlobal) { $iPageID = $goApp->oDocument->iPageID($bCreate); if ($iPageID) { if ($this->bUseDocumentInstance()) { $iDocInstance = $goApp->oDocument->iDocumentInstance(); } else { $iDocInstance = 0; } if ($this->bUseLoopID()) { $iLoopID = $goApp->oDocument->iLoopID(); } else { $iLoopID = 0; } $sPrefix = WYElement::sDataFileNamePrefix($iPageID, $iDocInstance, $iLoopID); $sFilename = $sPrefix . "-" . $sFilename; } else { $sFilename = ""; } } if ($sFilename) { $oP = new WYPath($sFilename); if (!$oP->bCheck(WYPATH_CHECK_NOPATH)) { $sFilename = ""; } } return $sFilename; }
/** * Löscht alle Bilder in der Gallerie */ function deleteContent() { $aItems =& $this->_aItems(); $iCount = count($aItems); for ($i = 0; $i < $iCount; $i++) { $this->_deleteImageFilesForID($i); } parent::deleteContent(); }
case "Event Category": $sN = "Terminkategorie"; break; case "Events": $sN = "Termine"; break; case "Description": $sN = "Beschreibung"; break; case "Address DE": $sN = "Adresse DE"; break; case "Address EN": $sN = "Adresse EN"; break; case "Directions": $sN = "Anfahrtsplan"; break; case "Title": $sN = "Titel"; break; case "Attachment": $sN = "Anhang"; break; default: $sN = $sFieldName; } return $sN; } WYElement::setFieldNameCallback("sMapFieldName");