// @todo
}
+ /**
+ * Returns the menu shown in the box.
+ *
+ * @return Menu
+ */
public function getMenu() {
if ($this->menu === null) {
$this->menu = MenuCache::getInstance()->getMenuByID($this->menuID);
HTML;
}
+ /**
+ * Returns the select element with all available timezones.
+ *
+ * @return string
+ */
protected function getTimezoneFieldElement() {
$fieldElement = '<select name="timezone" id="timezone"><option value="0"'.($this->timezone ? ' selected="selected"' : '').'>'.WCF::getLanguage()->get('wcf.date.timezone.user').'</option>';
foreach (DateUtil::getAvailableTimezones() as $timezone) {
if (!copy($additionalData['fileLocation'], $attachment->getLocation())) {
throw new SystemException();
}
-
+
return $attachment->attachmentID;
}
catch (SystemException $e) {
return 0;
}
+ /**
+ * Replaces old attachment BBCodes with BBCodes with the new attachment id.
+ *
+ * @param string $message
+ * @param integer $oldID
+ * @param integer $newID
+ * @return string|boolean
+ */
protected function fixEmbeddedAttachments($message, $oldID, $newID) {
if (mb_strripos($message, '[attach]'.$oldID.'[/attach]') !== false || mb_strripos($message, '[attach='.$oldID.']') !== false || mb_strripos($message, '[attach='.$oldID.',') !== false) {
$message = str_ireplace('[attach]'.$oldID.'[/attach]', '[attach]'.$newID.'[/attach]', $message);
*/
protected $d = null;
+ /**
+ * Creates a new instance of Diff.
+ *
+ * @param string[] $a original lines of text
+ * @param string[] $b modified lines of text
+ */
public function __construct(array $a, array $b) {
$this->a = $a;
$this->b = $b;