this._dialog.wcfDialog({
closeConfirmMessage: WCF.Language.get('wcf.acp.worker.abort.confirmMessage'),
closeViaModal: false,
- onClose: $.proxy(function() {
+ onClose: $.proxy(function() {
this._aborted = true;
this._proxy.abortPrevious();
$action->executeAction();
// set default mod permissions
-$sql = "INSERT IGNORE INTO wcf".WCF_N."_user_group_option_value
+$sql = "INSERT IGNORE INTO wcf".WCF_N."_user_group_option_value
(groupID, optionID, optionValue)
SELECT 5, optionID, 1
FROM wcf".WCF_N."_user_group_option
WHERE optionName LIKE 'mod.%'";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute();
-$sql = "INSERT IGNORE INTO wcf".WCF_N."_user_group_option_value
+$sql = "INSERT IGNORE INTO wcf".WCF_N."_user_group_option_value
(groupID, optionID, optionValue)
SELECT 6, optionID, 1
FROM wcf".WCF_N."_user_group_option
<span class="statusDisplay sortableButtonContainer">
<span class="icon icon16 icon-check{if $childMenuItem->isDisabled}-empty{/if} jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if $childMenuItem->isDisabled}enable{else}disable{/if}{/lang}" data-object-id="{@$childMenuItem->menuItemID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}"></span>
<a href="{link controller='PageMenuItemEdit' id=$childMenuItem->menuItemID}{/link}" class="jsTooltip" title="{lang}wcf.global.button.edit{/lang}"><span class="icon icon16 icon-pencil"></span></a>
- <span class="icon icon16 icon-remove jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$childMenuItem->menuItemID}" data-confirm-message="{lang __menuItem=$childMenuItem}wcf.acp.pageMenu.delete.sure{/lang}"></span>
+ <span class="icon icon16 icon-remove jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$childMenuItem->menuItemID}" data-confirm-message="{lang __menuItem=$childMenuItem}wcf.acp.pageMenu.delete.sure{/lang}"></span>
{event name='subHeaderItemButtons'}
</span>
<span class="statusDisplay sortableButtonContainer">
<span class="icon icon16 icon-check{if $menuItem->isDisabled}-empty{/if} jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if $menuItem->isDisabled}enable{else}disable{/if}{/lang}" data-object-id="{@$menuItem->menuItemID}" data-disable-message="{lang}wcf.global.button.disable{/lang}" data-enable-message="{lang}wcf.global.button.enable{/lang}"></span>
<a href="{link controller='PageMenuItemEdit' id=$menuItem->menuItemID}{/link}" class="jsTooltip" title="{lang}wcf.global.button.edit{/lang}"><span class="icon icon16 icon-pencil"></span></a>
- <span class="icon icon16 icon-remove jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menuItem->menuItemID}" data-confirm-message="{lang __menuItem=$menuItem}wcf.acp.pageMenu.delete.sure{/lang}"></span>
+ <span class="icon icon16 icon-remove jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$menuItem->menuItemID}" data-confirm-message="{lang __menuItem=$menuItem}wcf.acp.pageMenu.delete.sure{/lang}"></span>
{event name='footerItemButtons'}
</span>
* Loads current ACL configuration.
*/
_loadACL: function() {
- this._proxy.setOption('data', {
+ this._proxy.setOption('data', {
actionName: 'loadAll',
className: 'wcf\\data\\acl\\option\\ACLOptionAction',
parameters: {
for (var $optionID in data.returnValues.options) {
var $option = data.returnValues.options[$optionID];
- var $listItem = $('<li><span>' + $option.label + '</span></li>').data('optionID', $optionID).data('optionName', $option.optionName);
+ var $listItem = $('<li><span>' + $option.label + '</span></li>').data('optionID', $optionID).data('optionName', $option.optionName);
var $grantPermission = $('<input type="checkbox" id="grant' + $optionID + '" />').appendTo($listItem).wrap('<label for="grant' + $optionID + '" class="jsTooltip" title="' + WCF.Language.get('wcf.acl.option.grant') + '" />');
var $denyPermission = $('<input type="checkbox" id="deny' + $optionID + '" />').appendTo($listItem).wrap('<label for="deny' + $optionID + '" class="jsTooltip" title="' + WCF.Language.get('wcf.acl.option.deny') + '" />');
* @param object event
*/
_click: function(event) {
- var $listItem = $(event.currentTarget);
+ var $listItem = $(event.currentTarget);
if ($listItem.hasClass('active')) {
return;
}
/**
* Sets button active state.
*
- * @param jquery likeButton
- * @param jquery dislikeButton
+ * @param jquery likeButton
+ * @param jquery dislikeButton
* @param integer likeStatus
*/
_setActiveState: function(likeButton, dislikeButton, likeStatus) {
// check if object already had been initialized
if (!this._proxy) {
- this._proxy = new WCF.Action.Proxy({
+ this._proxy = new WCF.Action.Proxy({
success: $.proxy(this._success, this)
});
}
/**
* Disables a form element.
*
- * @return jQuery
+ * @return jQuery
*/
disable: function() {
return this.attr('disabled', 'disabled');
*/
class LogoutAction extends AbstractSecureAction {
/**
- * @see wcf\action\AbstractAction::$loginRequired
+ * @see wcf\action\AbstractAction::$loginRequired
*/
public $loginRequired = true;
*/
class WorkerProxyAction extends AJAXInvokeAction {
/**
- * @see wcf\system\event\listener\SessionAccessLogListener::execute()
+ * @see wcf\system\event\listener\SessionAccessLogListener::execute()
*/
const DO_NOT_LOG = true;
/**
* list of native bbcodes
- * @var array<string>
+ * @var array<string>
*/
public static $nativeBBCodes = array('b', 'i', 'u', 's', 'sub', 'sup', 'list', 'align', 'color', 'size', 'font', 'url', 'img', 'email', 'table');
class DataImportForm extends AbstractForm {
/**
* additional data
- * @var array
+ * @var array
*/
public $additionalData = array();
/**
* list of available exporters
- * @var array
+ * @var array
*/
public $exporters = array();
/**
* exporter name
- * @var string
+ * @var string
*/
public $exporterName = '';
/**
* exporter object
- * @var wcf\system\exporter\IExporter
+ * @var wcf\system\exporter\IExporter
*/
public $exporter = null;
/**
* list of available importers
- * @var array<string>
+ * @var array<string>
*/
public $importers = array();
/**
* list of supported data types
- * @var array
+ * @var array
*/
public $supportedData = array();
/**
* selected data types
- * @var array
+ * @var array
*/
public $selectedData = array();
/**
* database host name
- * @var string
+ * @var string
*/
public $dbHost = '';
/**
* database user name
- * @var string
+ * @var string
*/
public $dbUser = '';
/**
* database password
- * @var string
+ * @var string
*/
public $dbPassword = '';
/**
* database name
- * @var string
+ * @var string
*/
public $dbName = '';
/**
* database table prefix
- * @var string
+ * @var string
*/
public $dbPrefix = '';
/**
* file system path
- * @var string
+ * @var string
*/
public $fileSystemPath = '';
/**
* user merge mode
- * @var integer
+ * @var integer
*/
public $userMergeMode = 2;
/**
- * @see wcf\page\IPage::readParameters()
+ * @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @see wcf\form\IForm::readFormParameters()
+ * @see wcf\form\IForm::readFormParameters()
*/
public function readFormParameters() {
parent::readFormParameters();
}
/**
- * @see wcf\form\IForm::validate()
+ * @see wcf\form\IForm::validate()
*/
public function validate() {
parent::validate();
}
/**
- * @see wcf\form\IForm::save()
+ * @see wcf\form\IForm::save()
*/
public function save() {
parent::save();
}
/**
- * @see wcf\page\IPage::readData()
+ * @see wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
/**
* template name
- * @var string
+ * @var string
*/
public $tplName = '';
/**
* template group id
- * @var integer
+ * @var integer
*/
public $templateGroupID = 0;
/**
* template source code
- * @var string
+ * @var string
*/
public $templateSource = '';
/**
* available template groups
- * @var array
+ * @var array
*/
public $availableTemplateGroups = array();
/**
* template's package id
- * @var integer
+ * @var integer
*/
public $packageID = 1;
/**
* id of copied template
- * @var integer
+ * @var integer
*/
public $copy = 0;
/**
* copied template object
- * @var wcf\data\template\Template
+ * @var wcf\data\template\Template
*/
public $copiedTemplate = null;
/**
* template id
- * @var integer
+ * @var integer
*/
public $templateID = 0;
/**
* template object
- * @var wcf\data\template\Template
+ * @var wcf\data\template\Template
*/
public $template = null;
}
/**
- * @see wcf\acp\form\TemplateAddForm::validateName()
+ * @see wcf\acp\form\TemplateAddForm::validateName()
*/
protected function validateName() {
if ($this->tplName != $this->template->templateName) {
}
/**
- * @see wcf\acp\form\TemplateAddForm::validateName()
+ * @see wcf\acp\form\TemplateAddForm::validateName()
*/
protected function validateGroup() {
if ($this->templateGroupID != $this->template->templateGroupID) {
/**
* template group name
- * @var string
+ * @var string
*/
public $templateGroupName = '';
/**
* template group folder
- * @var integer
+ * @var integer
*/
public $templateGroupFolderName = '';
/**
* parent template group id
- * @var integer
+ * @var integer
*/
public $parentTemplateGroupID = 0;
/**
* available template groups
- * @var array
+ * @var array
*/
public $availableTemplateGroups = array();
/**
* template group id
- * @var integer
+ * @var integer
*/
public $templateGroupID = 0;
/**
* template group object
- * @var wcf\data\template\group\TemplateGroup
+ * @var wcf\data\template\group\TemplateGroup
*/
public $templateGroup = null;
}
/**
- * @see wcf\acp\form\TemplateGroupAddForm::validateName()
+ * @see wcf\acp\form\TemplateGroupAddForm::validateName()
*/
protected function validateName() {
if ($this->templateGroupName != $this->templateGroup->templateGroupName) {
}
/**
- * @see wcf\acp\form\TemplateGroupAddForm::validateFolderName()
+ * @see wcf\acp\form\TemplateGroupAddForm::validateFolderName()
*/
protected function validateFolderName() {
if ($this->templateGroupFolderName != $this->templateGroup->templateGroupFolderName) {
/**
* signature text
- * @var string
+ * @var string
*/
public $signature = '';
/**
* enables smilies
- * @var boolean
+ * @var boolean
*/
public $signatureEnableSmilies = 1;
/**
* enables bbcodes
- * @var boolean
+ * @var boolean
*/
public $signatureEnableBBCodes = 1;
/**
* enables html
- * @var boolean
+ * @var boolean
*/
public $signatureEnableHtml = 0;
/**
* true to disable this signature
- * @var boolean
+ * @var boolean
*/
public $disableSignature = 0;
/**
* reason
- * @var string
+ * @var string
*/
public $disableSignatureReason = '';
/**
* registration start date
- * @var string
+ * @var string
*/
public $registrationDateStart = '';
/**
* registration start date
- * @var string
+ * @var string
*/
public $registrationDateEnd = '';
/**
* banned state
- * @var boolean
+ * @var boolean
*/
public $banned = 0;
/**
* not banned state
- * @var boolean
+ * @var boolean
*/
public $notBanned = 0;
/**
* last activity start time
- * @var string
+ * @var string
*/
public $lastActivityTimeStart = '';
/**
* last activity end time
- * @var string
+ * @var string
*/
public $lastActivityTimeEnd = '';
/**
* enabled state
- * @var boolean
+ * @var boolean
*/
public $enabled = 0;
/**
* disabled state
- * @var boolean
+ * @var boolean
*/
public $disabled = 0;
/**
* ban status
- * @var boolean
+ * @var boolean
*/
public $banned = 0;
/**
* ban reason
- * @var string
+ * @var string
*/
public $banReason = '';
/**
* user avatar object
- * @var wcf\data\user\avatar\UserAvatar
+ * @var wcf\data\user\avatar\UserAvatar
*/
public $userAvatar = null;
/**
* true to disable this avatar
- * @var boolean
+ * @var boolean
*/
public $disableAvatar = 0;
/**
* reason
- * @var string
+ * @var string
*/
public $disableAvatarReason = '';
/**
* option name
- * @var string
+ * @var string
*/
public $optionName = '';
/**
* option description
- * @var string
+ * @var string
*/
public $optionDescription = '';
/**
* category name
- * @var string
+ * @var string
*/
public $categoryName = '';
/**
* option type
- * @var string
+ * @var string
*/
public $optionType = 'text';
/**
* option default value
- * @var string
+ * @var string
*/
public $defaultValue = '';
/**
* validation pattern
- * @var string
+ * @var string
*/
public $validationPattern = '';
/**
* select options
- * @var string
+ * @var string
*/
public $selectOptions = '';
/**
* field is required
- * @var boolean
+ * @var boolean
*/
public $required = 0;
/**
* shows this field in the registration process
- * @var boolean
+ * @var boolean
*/
public $askDuringRegistration = 0;
/**
* edit permission bitmask
- * @var integer
+ * @var integer
*/
public $editable = 3;
/**
* view permission bitmask
- * @var integer
+ * @var integer
*/
public $visible = 15;
/**
* field is searchable
- * @var boolean
+ * @var boolean
*/
public $searchable = 0;
/**
* show order
- * @var integer
+ * @var integer
*/
public $showOrder = 0;
/**
* output class
- * @var string
+ * @var string
*/
public $outputClass = '';
/**
* available option categories
- * @var array<wcf\data\user\option\UserOptionCategory>
+ * @var array<wcf\data\user\option\UserOptionCategory>
*/
public $availableCategories = array();
/**
* available option types
- * @var array<string>
+ * @var array<string>
*/
public static $availableOptionTypes = array('birthday', 'boolean', 'date', 'integer', 'float', 'password', 'multiSelect', 'radioButton', 'select', 'text', 'textarea', 'message', 'URL');
/**
* list of option type that require select options
- * @var array<string>
+ * @var array<string>
*/
public static $optionTypesUsingSelectOptions = array('multiSelect', 'radioButton', 'select');
}
/**
- * @see wcf\form\IForm::readFormParameters()
+ * @see wcf\form\IForm::readFormParameters()
*/
public function readFormParameters() {
parent::readFormParameters();
}
/**
- * @see wcf\form\IForm::validate()
+ * @see wcf\form\IForm::validate()
*/
public function validate() {
parent::validate();
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
/**
* category name
- * @var string
+ * @var string
*/
public $categoryName = '';
/**
* show order
- * @var integer
+ * @var integer
*/
public $showOrder = 0;
/**
* category id
- * @var integer
+ * @var integer
*/
public $categoryID = 0;
public $category = null;
/**
- * @see wcf\page\IPage::readParameters()
+ * @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @see wcf\page\IPage::readData()
+ * @see wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
/**
* user option id
- * @var integer
+ * @var integer
*/
public $optionID = 0;
/**
* user option object
- * @var wcf\data\user\option\UserOption
+ * @var wcf\data\user\option\UserOption
*/
public $userOption = null;
}
/**
- * @see wcf\page\IPage::readData()
+ * @see wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
/**
* true to apply change to existing users
- * @var boolean
+ * @var boolean
*/
public $applyChangesToExistingUsers = 0;
}
/**
- * @see wcf\form\IForm::readFormParameters()
+ * @see wcf\form\IForm::readFormParameters()
*/
public function readFormParameters() {
parent::readFormParameters();
/**
* registration start date
- * @var string
+ * @var string
*/
public $registrationDateEnd = '';
/**
* banned state
- * @var boolean
+ * @var boolean
*/
public $banned = 0;
/**
* not banned state
- * @var boolean
+ * @var boolean
*/
public $notBanned = 0;
/**
* last activity start time
- * @var string
+ * @var string
*/
public $lastActivityTimeStart = '';
/**
* last activity end time
- * @var string
+ * @var string
*/
public $lastActivityTimeEnd = '';
/**
* enabled state
- * @var boolean
+ * @var boolean
*/
public $enabled = 0;
/**
* disabled state
- * @var boolean
+ * @var boolean
*/
public $disabled = 0;
public $maxResults = 0;
/**
- * @see wcf\page\IPage::readParameters()
+ * @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
-
+
// search user from passed groupID by group-view
if (isset($_GET['groupID'])) {
$this->groupIDs[] = intval($_GET['groupID']);
-
+
// do search
try {
$this->validate();
class IndexPage extends AbstractPage {
/**
* server information
- * @var array
+ * @var array
*/
public $server = array();
/**
- * @see wcf\page\IPage::readData()
+ * @see wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
-
+
$this->server = array(
'os' => PHP_OS,
- 'webserver' => (isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : ''),
+ 'webserver' => (isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : ''),
'mySQLVersion' => WCF::getDB()->getVersion(),
'load' => ''
);
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
/**
* language item list
- * @var wcf\data\language\item\LanguageItemList
+ * @var wcf\data\language\item\LanguageItemList
*/
public $languageItemList = null;
/**
* language id
- * @var integer
+ * @var integer
*/
public $languageID = 0;
/**
* language category id
- * @var integer
+ * @var integer
*/
public $languageCategoryID = 0;
/**
* language item name
- * @var string
+ * @var string
*/
public $languageItem = '';
/**
* language item value
- * @var string
+ * @var string
*/
public $languageItemValue = '';
/**
* search for custom values
- * @var boolean
+ * @var boolean
*/
public $hasCustomValue = 0;
/**
* available languages
- * @var array
+ * @var array
*/
public $availableLanguages = array();
/**
* available language categories
- * @var array
+ * @var array
*/
public $availableLanguageCategories = array();
*/
class PHPInfoPage extends AbstractPage {
/**
- * @see wcf\page\AbstractPage::$templateName
+ * @see wcf\page\AbstractPage::$templateName
*/
public $templateName = 'phpInfo';
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
/**
* object types
- * @var array
+ * @var array
*/
public $objectTypes = array();
public $categories = array();
/**
- * @see wcf\page\IPage::readParameters()
+ * @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
}
/**
- * @see wcf\page\MultipleLinkPage::initObjectList()
+ * @see wcf\page\MultipleLinkPage::initObjectList()
*/
protected function initObjectList() {
parent::initObjectList();
}
/**
- * @see wcf\page\IPage::readData()
+ * @see wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
public $neededPermissions = array('admin.template.canManageTemplate');
/**
- * @see wcf\page\SortablePage::$defaultSortField
+ * @see wcf\page\SortablePage::$defaultSortField
*/
public $defaultSortField = 'templateGroupName';
/**
- * @see wcf\page\MultipleLinkPage::$objectListClassName
+ * @see wcf\page\MultipleLinkPage::$objectListClassName
*/
public $objectListClassName = 'wcf\data\template\group\TemplateGroupList';
/**
- * @see wcf\page\SortablePage::$defaultSortField
+ * @see wcf\page\SortablePage::$defaultSortField
*/
public $validSortFields = array('templateGroupID', 'templateGroupName', 'templateGroupFolderName', 'templates');
/**
- * @see wcf\page\MultipleLinkPage::initObjectList
+ * @see wcf\page\MultipleLinkPage::initObjectList
*/
protected function initObjectList() {
parent::initObjectList();
/**
* template group id
- * @var integer
+ * @var integer
*/
public $templateGroupID = 0;
/**
* template name
- * @var string
+ * @var string
*/
public $searchTemplateName = '';
/**
* application
- * @var string
+ * @var string
*/
public $application = '';
/**
* available template groups
- * @var array
+ * @var array
*/
public $availableTemplateGroups = array();
/**
* available applications
- * @var array
+ * @var array
*/
public $availableApplications = array();
*/
public function readParameters() {
parent::readParameters();
-
+
if (isset($_REQUEST['templateGroupID'])) $this->templateGroupID = intval($_REQUEST['templateGroupID']);
if (isset($_REQUEST['searchTemplateName'])) $this->searchTemplateName = StringUtil::trim($_REQUEST['searchTemplateName']);
if (isset($_REQUEST['application'])) $this->application = StringUtil::trim($_REQUEST['application']);
public $neededPermissions = array('admin.user.canManageUserOption');
/**
- * @see wcf\page\SortablePage::$defaultSortField
+ * @see wcf\page\SortablePage::$defaultSortField
*/
public $defaultSortField = 'showOrder';
/**
- * @see wcf\page\MultipleLinkPage::$objectListClassName
+ * @see wcf\page\MultipleLinkPage::$objectListClassName
*/
public $objectListClassName = 'wcf\data\user\option\category\UserOptionCategoryList';
/**
- * @see wcf\page\SortablePage::$defaultSortField
+ * @see wcf\page\SortablePage::$defaultSortField
*/
public $validSortFields = array('categoryID', 'categoryName', 'showOrder', 'userOptions');
/**
- * @see wcf\page\MultipleLinkPage::initObjectList
+ * @see wcf\page\MultipleLinkPage::initObjectList
*/
protected function initObjectList() {
parent::initObjectList();
public $neededPermissions = array('admin.user.canManageUserOption');
/**
- * @see wcf\page\SortablePage::$defaultSortField
+ * @see wcf\page\SortablePage::$defaultSortField
*/
public $defaultSortField = 'showOrder';
/**
- * @see wcf\page\MultipleLinkPage::$objectListClassName
+ * @see wcf\page\MultipleLinkPage::$objectListClassName
*/
public $objectListClassName = 'wcf\data\user\option\UserOptionList';
/**
- * @see wcf\page\SortablePage::$defaultSortField
+ * @see wcf\page\SortablePage::$defaultSortField
*/
public $validSortFields = array('optionID', 'optionName', 'categoryName', 'optionType', 'showOrder');
/**
- * @see wcf\page\MultipleLinkPage::initObjectList
+ * @see wcf\page\MultipleLinkPage::initObjectList
*/
protected function initObjectList() {
parent::initObjectList();
class GravatarDownloadAction extends AbstractAction {
/**
* user id
- * @var integer
+ * @var integer
*/
public $userID = 0;
/**
* user object
- * @var wcf\data\user\User
+ * @var wcf\data\user\User
*/
public $user = null;
/**
* avatar size
- * @var integer
+ * @var integer
*/
public $size = 150;
*/
class AdministrativeAttachment extends DatabaseObjectDecorator {
/**
- * @see wcf\data\DatabaseObjectDecorator::$baseClass
+ * @see wcf\data\DatabaseObjectDecorator::$baseClass
*/
protected static $baseClass = 'wcf\data\attachment\Attachment';
/**
* Gets the container object of this attachment.
*
- * @return \wcf\data\IUserContent
+ * @return wcf\data\IUserContent
*/
public function getContainerObject() {
if (!$this->containerObjectLoaded) {
/**
* Returns the owner of this dashboard box.
*
- * @return wcf\data\package\Package
+ * @return wcf\data\package\Package
*/
public function getPackage() {
return PackageCache::getInstance()->getPackage($this->packageID);
/**
* like value
- * @var integer
+ * @var integer
*/
const LIKE = 1;
/**
* dislike value
- * @var integer
+ * @var integer
*/
const DISLIKE = -1;
/**
* liked object
- * @var wcf\data\like\object\ILikeObject
+ * @var wcf\data\like\object\ILikeObject
*/
protected $likedObject = null;
* that the update covers the whole range of release numbers where the asterisk
* wildcards digits from 0 to 9.
* For example, if "fromversion" is "1.1.*" and this package updates to
- * version 1.2.0, all releases from 1.1.0 to 1.1.9 may be updated using
+ * version 1.2.0, all releases from 1.1.0 to 1.1.9 may be updated using
* this package.
*
* @param string $currentVersion
protected $requireACP = array('delete', 'toggle', 'update', 'updatePosition');
/**
- * @see wcf\data\IDatabaseObjectAction::create()
+ * @see wcf\data\IDatabaseObjectAction::create()
*/
public function create() {
if (!isset($this->parameters['data']['packageID'])) {
protected $requireACP = array('create', 'delete', 'update');
/**
- * @see wcf\data\AbstractDatabaseObjectAction::create()
+ * @see wcf\data\AbstractDatabaseObjectAction::create()
*/
public function create() {
$template = parent::create();
/**
* user id
- * @var integer
+ * @var integer
*/
public $userID = 0;
*/
class Team extends DatabaseObjectDecorator {
/**
- * @see wcf\data\DatabaseObjectDecorator::$baseClass
+ * @see wcf\data\DatabaseObjectDecorator::$baseClass
*/
protected static $baseClass = 'wcf\data\user\group\UserGroup';
/**
* list of user group members
- * @var array<wcf\data\user\UserProfile>
+ * @var array<wcf\data\user\UserProfile>
*/
protected $members = array();
*/
class UserNotificationEventAction extends AbstractDatabaseObjectAction {
/**
- * @see wcf\data\AbstractDatabaseObjectAction::create();
+ * @see wcf\data\AbstractDatabaseObjectAction::create();
*/
public function create() {
$event = parent::create();
/**
* spider object
- * @var wcf\data\spider\Spider
+ * @var wcf\data\spider\Spider
*/
protected $spider = null;
class UserOption extends Option {
/**
* visible for no one (no valid bit)
- * @var integer
+ * @var integer
*/
const VISIBILITY_NONE = 0;
/**
* visible for the owner
- * @var integer
+ * @var integer
*/
const VISIBILITY_OWNER = 1;
/**
* visible for admins
- * @var integer
+ * @var integer
*/
const VISIBILITY_ADMINISTRATOR = 2;
/**
* visible for users
- * @var integer
+ * @var integer
*/
const VISIBILITY_REGISTERED = 4;
/**
* visible for guests
- * @var integer
+ * @var integer
*/
const VISIBILITY_GUEST = 8;
/**
* visible for all (no valid bit)
- * @var integer
+ * @var integer
*/
const VISIBILITY_ALL = 15;
/**
* editable for no one (no valid bit)
- * @var integer
+ * @var integer
*/
const EDITABILITY_NONE = 0;
/**
* editable for the owner
- * @var integer
+ * @var integer
*/
const EDITABILITY_OWNER = 1;
/**
* editable for admins
- * @var integer
+ * @var integer
*/
const EDITABILITY_ADMINISTRATOR = 2;
/**
* editable for all (no valid bit)
- * @var integer
+ * @var integer
*/
const EDITABILITY_ALL = 3;
/**
* cached user options
- * @var array<wcf\data\user\option\ViewableUserOption>
+ * @var array<wcf\data\user\option\ViewableUserOption>
*/
public static $userOptions = array();
}
/**
- * Gets user option by name
+ * Returns the user option with the given name
*
- * @param string $name
+ * @param string $name
* @return wcf\data\user\option\ViewableUserOption
*/
public static function getUserOption($name) {
/**
* field names
- * @var array
+ * @var array
*/
public $randomFieldNames = array();
public $enableTracking = true;
/**
- * @see wcf\page\IPage::readData()
+ * @see wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
public $objectType = null;
/**
- * @see wcf\page\IPage::readParameters()
+ * @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @see wcf\page\MultipleLinkPage::readParameters()
+ * @see wcf\page\MultipleLinkPage::readParameters()
*/
protected function initObjectList() {
$this->objectList = $this->objectType->getProcessor()->getObjectList();
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
public $searchData = null;
/**
- * result list template
- * @var string
+ * result list template
+ * @var string
*/
public $resultListTemplateName = 'searchResultList';
/**
* result list template's application
- * @var string
+ * @var string
*/
public $resultListApplication = 'wcf';
public $tagCloud = null;
/**
- * @see wcf\page\IPage::readParameters()
+ * @see wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @see wcf\page\MultipleLinkPage::readParameters()
+ * @see wcf\page\MultipleLinkPage::readParameters()
*/
protected function initObjectList() {
$this->objectList = $this->objectType->getProcessor()->getObjectList($this->tag);
}
/**
- * @see wcf\page\IPage::readData()
+ * @see wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
}
/**
- * @see wcf\page\IPage::assignVariables()
+ * @see wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
}
/**
- * @see wcf\system\WCF::destruct()
+ * @see wcf\system\WCF::destruct()
*/
public static function destruct() {
if (self::getReader() !== null && self::getReader()->getHistory() instanceof DatabaseCLICommandHistory) {
if (WCF::getSession()->getPermission('admin.system.package.canUpdatePackage') && VERBOSITY >= -1 && !self::getArgvParser()->disableUpdateCheck) {
$updates = PackageUpdateDispatcher::getInstance()->getAvailableUpdates();
if (!empty($updates)) {
- $return = self::getReader()->println(count($updates) . ' update' . (count($updates) > 1 ? 's are' : ' is') . ' available');
+ $return = self::getReader()->println(count($updates) . ' update' . (count($updates) > 1 ? 's are' : ' is') . ' available');
if (VERBOSITY >= 1) {
$table = array(
/**
* indicates that pattern string is treated as UTF-8.
- * @var integer
+ * @var integer
*/
const UTF_8 = 128;
/**
* Gets the object type id.
*
- * @param string $objectType
+ * @param string $objectType
* @return integer
*/
public function getObjectTypeID($objectType) {
/**
* Returns a formatted list of the allowed file extensions.
*
- * @return array<string>
+ * @return array<string>
*/
public function getFormattedAllowedExtensions() {
$extensions = $this->getAllowedExtensions();
/**
* Returns the object type processor.
*
- * @return wcf\system\attachment\IAttachmentObjectType
+ * @return wcf\system\attachment\IAttachmentObjectType
*/
public function getProcessor() {
return $this->processor;
$conditionBuilder->add('object.objectTypeID IN (?)', array($this->objectTypeIDs));
$conditionBuilder->add('object.languageID IN (?)', array($this->languageIDs));
$sql = "SELECT COUNT(*) AS counter, object.tagID
- FROM wcf".WCF_N."_tag_to_object object
+ FROM wcf".WCF_N."_tag_to_object object
".$conditionBuilder->__toString()."
- GROUP BY object.tagID
- ORDER BY counter DESC";
+ GROUP BY object.tagID
+ ORDER BY counter DESC";
$statement = WCF::getDB()->prepareStatement($sql, 500);
$statement->execute($conditionBuilder->getParameters());
while ($row = $statement->fetchArray()) {
public function flush($cacheName, $useWildcard) {
$cacheName = $this->prefix . $cacheName;
- $resources = ($useWildcard) ? $this->getResources('~^' . $cacheName. '(-[a-f0-9]+)?$~') : array($cacheName);
+ $resources = ($useWildcard) ? $this->getResources('~^' . $cacheName. '(-[a-f0-9]+)?$~') : array($cacheName);
foreach ($resources as $resource) {
$this->memcached->delete($resource);
$this->updateMaster(null, $resource);
/**
* name of the selected
- * @var string
+ * @var string
*/
public $exporterName = '';
parent::execute($cronjob);
// clean up search keywords
- $sql = "SELECT AVG(searches) AS searches
+ $sql = "SELECT AVG(searches) AS searches
FROM wcf".WCF_N."_search_keyword";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute();
// get user ids
$userIDs = array();
- $sql = "SELECT DISTINCT notification_to_user.userID
+ $sql = "SELECT DISTINCT notification_to_user.userID
FROM wcf".WCF_N."_user_notification_to_user notification_to_user,
wcf".WCF_N."_user_notification notification
WHERE notification.notificationID = notification_to_user.notificationID
class MostActiveMembersDashboardBox extends AbstractSidebarDashboardBox {
/**
* user profile list
- * @var wcf\data\user\UserProfileList
+ * @var wcf\data\user\UserProfileList
*/
public $userProfileList = null;
class MostLikedMembersDashboardBox extends AbstractSidebarDashboardBox {
/**
* user profile list
- * @var wcf\data\user\UserProfileList
+ * @var wcf\data\user\UserProfileList
*/
public $userProfileList = null;
class NewestMembersDashboardBox extends AbstractSidebarDashboardBox {
/**
* user profile list
- * @var wcf\data\user\UserProfileList
+ * @var wcf\data\user\UserProfileList
*/
public $userProfileList = null;
/**
* true, if results were filtered by followed users
- * @var boolean
+ * @var boolean
*/
public $filteredByFollowedUsers = false;
/**
* latest event time
- * @var integer
+ * @var integer
*/
public $lastEventTime = 0;
class StatsSidebarDashboardBox extends AbstractSidebarDashboardBox {
/**
* the stats
- * @var wcf\system\cache\builder\UserStatsCacheBuilder
+ * @var wcf\system\cache\builder\UserStatsCacheBuilder
*/
public $stats = null;
/**
* enables failsafe connection
- * @var boolean
+ * @var boolean
*/
protected $failsafeTest = false;
*/
class PreParserAtUserListener implements IEventListener {
/**
- * @see wcf\system\event\IEventListener::execute()
+ * @see wcf\system\event\IEventListener::execute()
*/
public function execute($eventObj, $className, $eventName) {
if (!$eventObj->text) return;
abstract class AbstractExporter implements IExporter {
/**
* additional data
- * @var array
+ * @var array
*/
public $additionalData = array();
-
+
/**
* database host name
- * @var string
+ * @var string
*/
protected $databaseHost = '';
-
+
/**
* database username
- * @var string
+ * @var string
*/
protected $databaseUser = '';
-
+
/**
* database password
- * @var string
+ * @var string
*/
protected $databasePassword = '';
-
+
/**
* database name
- * @var string
+ * @var string
*/
protected $databaseName = '';
-
+
/**
* table prefix
- * @var string
+ * @var string
*/
protected $databasePrefix = '';
-
+
/**
* file system path
- * @var string
+ * @var string
*/
protected $fileSystemPath = '';
-
+
/**
* database connection
- * @var wcf\system\database\Database
+ * @var wcf\system\database\Database
*/
protected $database = null;
-
+
/**
* object type => method names
- * @var array
+ * @var array
*/
protected $methods = array();
-
+
/**
* limits for items per run
- * @var array<integer>
+ * @var array<integer>
*/
protected $limits = array();
-
+
/**
* default limit for items per run
- * @var integer
+ * @var integer
*/
protected $defaultLimit = 1000;
-
+
/**
* selected import data
- * @var array
+ * @var array
*/
protected $selectedData = array();
/**
- * @see wcf\system\exporter\IExporter::setData()
+ * @see wcf\system\exporter\IExporter::setData()
*/
public function setData($databaseHost, $databaseUser, $databasePassword, $databaseName, $databasePrefix, $fileSystemPath, $additionalData) {
$this->databaseHost = $databaseHost;
$this->fileSystemPath = ($fileSystemPath ? FileUtil::addTrailingSlash($fileSystemPath) : '');
$this->additionalData = $additionalData;
}
-
+
/**
- * @see wcf\system\exporter\IExporter::init()
+ * @see wcf\system\exporter\IExporter::init()
*/
public function init() {
$this->database = new MySQLDatabase($this->databaseHost, $this->databaseUser, $this->databasePassword, $this->databaseName, 0);
}
-
+
/**
- * @see wcf\system\exporter\IExporter::validateDatabaseAccess()
+ * @see wcf\system\exporter\IExporter::validateDatabaseAccess()
*/
public function validateDatabaseAccess() {
$this->init();
}
-
+
/**
- * @see wcf\system\exporter\IExporter::getDefaultDatabasePrefix()
+ * @see wcf\system\exporter\IExporter::getDefaultDatabasePrefix()
*/
public function getDefaultDatabasePrefix() {
return '';
}
-
+
/**
- * @see wcf\system\exporter\IExporter::countLoops()
+ * @see wcf\system\exporter\IExporter::countLoops()
*/
public function countLoops($objectType) {
if (!isset($this->methods[$objectType]) || !method_exists($this, 'count'.$this->methods[$objectType])) {
throw new SystemException("unknown object type '".$objectType."' given");
}
-
+
$count = call_user_func(array($this, 'count'.$this->methods[$objectType]));
$limit = (isset($this->limits[$objectType]) ? $this->limits[$objectType] : $this->defaultLimit);
return ceil($count / $limit);
}
-
+
/**
- * @see wcf\system\exporter\IExporter::exportData()
+ * @see wcf\system\exporter\IExporter::exportData()
*/
public function exportData($objectType, $loopCount = 0) {
if (!isset($this->methods[$objectType]) || !method_exists($this, 'export'.$this->methods[$objectType])) {
throw new SystemException("unknown object type '".$objectType."' given");
}
-
+
$limit = (isset($this->limits[$objectType]) ? $this->limits[$objectType] : $this->defaultLimit);
call_user_func(array($this, 'export'.$this->methods[$objectType]), $loopCount * $limit, $limit);
}
/**
- * @see wcf\system\exporter\IExporter::validateSelectedData()
+ * @see wcf\system\exporter\IExporter::validateSelectedData()
*/
public function validateSelectedData(array $selectedData) {
$this->selectedData = $selectedData;
-
+
if (!count($this->selectedData)) {
return false;
}
return true;
}
-
}
abstract class AbstractNamedFormElement extends AbstractFormElement {
/**
* element description
- * @var string
+ * @var string
*/
protected $description = '';
}
/**
- * @see wcf\system\image\adapter\IImageAdapter::setTransparentColor()
+ * @see wcf\system\image\adapter\IImageAdapter::setTransparentColor()
*/
public function setTransparentColor($red, $green, $blue) {
if ($this->type == IMAGETYPE_PNG) {
}
/**
- * @see wcf\system\image\adapter\IImageAdapter::setTransparentColor()
+ * @see wcf\system\image\adapter\IImageAdapter::setTransparentColor()
*/
public function setTransparentColor($red, $green, $blue) {
$color = 'rgb(' . $red . ',' . $green . ',' . $blue . ')';
class AbstractACLImporter extends AbstractImporter {
/**
* object type id for options
- * @var integer
+ * @var integer
*/
protected $objectTypeID = 0;
/**
* object type name
- * @var integer
+ * @var integer
*/
protected $objectTypeName = '';
/**
* available options
- * @var array
+ * @var array
*/
protected $options = array();
}
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
if (!isset($this->options[$additionalData['optionName']])) return 0;
*/
class AbstractAttachmentImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\attachment\Attachment';
/**
* object type id for attachments
- * @var integer
+ * @var integer
*/
protected $objectTypeID = 0;
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
// check file location
*/
class AbstractCategoryImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\category\Category';
/**
* object type id for categories
- * @var integer
+ * @var integer
*/
protected $objectTypeID = 0;
/**
* object type name
- * @var integer
+ * @var integer
*/
protected $objectTypeName = '';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
if (!empty($data['parentCategoryID'])) $data['parentCategoryID'] = ImportHandler::getInstance()->getNewID($this->objectTypeName, $data['parentCategoryID']);
*/
class AbstractCommentImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\comment\Comment';
/**
* object type id for comments
- * @var integer
+ * @var integer
*/
protected $objectTypeID = 0;
/**
* object type name
- * @var integer
+ * @var integer
*/
protected $objectTypeName = '';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']);
*/
class AbstractCommentResponseImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\comment\response\CommentResponse';
/**
* object type name
- * @var string
+ * @var string
*/
protected $objectTypeName = '';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']);
abstract class AbstractImporter implements IImporter {
/**
* database object class name
- * @var string
+ * @var string
*/
protected $className = '';
/**
- * @see wcf\system\importer\IImporter::getClassName()
+ * @see wcf\system\importer\IImporter::getClassName()
*/
public function getClassName() {
return $this->className;
*/
class AbstractLikeImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\like\Like';
/**
* object type id for likes
- * @var integer
+ * @var integer
*/
protected $objectTypeID = 0;
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
if ($data['objectUserID']) $data['objectUserID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['objectUserID']);
*/
class AbstractPollImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\poll\Poll';
/**
* object type id for poll
- * @var integer
+ * @var integer
*/
protected $objectTypeID = 0;
/**
* object type name
- * @var string
+ * @var string
*/
protected $objectTypeName = '';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$poll = PollEditor::create(array_merge($data, array('objectTypeID' => $this->objectTypeID)));
*/
class AbstractPollOptionImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\poll\option\PollOption';
/**
* option object type name
- * @var string
+ * @var string
*/
protected $objectTypeName = '';
/**
* poll object type name
- * @var string
+ * @var string
*/
protected $pollObjectTypeName = '';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['pollID'] = ImportHandler::getInstance()->getNewID($this->pollObjectTypeName, $data['pollID']);
class AbstractPollOptionVoteImporter extends AbstractImporter {
/**
* option object type name
- * @var string
+ * @var string
*/
protected $objectTypeName = '';
protected $pollObjectTypeName = '';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']);
*/
class AbstractWatchedObjectImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\user\object\watch';
/**
* object type id for watched objects
- * @var integer
+ * @var integer
*/
protected $objectTypeID = 0;
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']);
/**
* list of available importers
- * @var array
+ * @var array
*/
protected $objectTypes = array();
/**
* list of available importer processors
- * @var array
+ * @var array
*/
protected $importers = array();
/**
* user merge mode
- * @var integer
+ * @var integer
*/
protected $userMergeMode = 2;
/**
* import hash
- * @var string
+ * @var string
*/
protected $importHash = '';
public static $allowInvoke = array('resetMapping');
/**
- * @see wcf\system\SingletonFactory::init()
+ * @see wcf\system\SingletonFactory::init()
*/
protected function init() {
$this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.importer');
}
/**
- * Gets the user merge mode.
+ * Returns the user merge mode.
*
- * @return integer
+ * @return integer
*/
public function getUserMergeMode() {
return $this->userMergeMode;
/**
* Sets the import hash.
- *
+ *
* @param string $hash
*/
public function setImportHash($hash) {
*/
class LabelGroupImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\label\group\LabelGroup';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
// save label group
*/
class LabelImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\label\Label';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['groupID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.label.group', $data['groupID']);
*/
class SmileyImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\smiley\Smiley';
/**
* known smiley codes
*
- * @var array<string>
+ * @var array<string>
*/
public $knownCodes = array();
}
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
// copy smiley
*/
class UserAvatarImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\user\avatar\UserAvatar';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
// check file location
*/
class UserCommentImporter extends AbstractCommentImporter {
/**
- * @see wcf\system\importer\AbstractCommentImporter::$objectTypeName
+ * @see wcf\system\importer\AbstractCommentImporter::$objectTypeName
*/
protected $objectTypeName = 'com.woltlab.wcf.user.comment';
}
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['objectID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['objectID']);
*/
class UserCommentResponseImporter extends AbstractCommentResponseImporter {
/**
- * @see wcf\system\importer\AbstractCommentResponseImporter::$objectTypeName
+ * @see wcf\system\importer\AbstractCommentResponseImporter::$objectTypeName
*/
protected $objectTypeName = 'com.woltlab.wcf.user.comment';
}
*/
class UserFollowerImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\user\follow\UserFollow';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']);
*/
class UserGroupImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\user\group\UserGroup';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
if ($data['groupType'] < 4) {
*/
class UserImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\user\User';
/**
* list of user options
- * @var array<wcf\data\user\option\UserOption>
+ * @var array<wcf\data\user\option\UserOption>
*/
protected $userOptions = array();
}
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
// resolve duplicates
}
/**
- * Revolves duplicate user names.
+ * Revolves duplicate user names and returns the new user name.
*
* @param string $username
- * @return string new username
+ * @return string
*/
private static function resolveDuplicate($username) {
$i = 0;
*/
class UserOptionImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\user\option\UserOption';
/**
* language category id
- * @var integer
+ * @var integer
*/
protected $languageCategoryID = null;
}
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['packageID'] = 1;
*/
class UserRankImporter extends AbstractImporter {
/**
- * @see wcf\system\importer\AbstractImporter::$className
+ * @see wcf\system\importer\AbstractImporter::$className
*/
protected $className = 'wcf\data\user\rank\UserRank';
/**
- * @see wcf\system\importer\IImporter::import()
+ * @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
$data['groupID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user.group', $data['groupID']);
class Mail {
/**
* line ending string
- * @var string
+ * @var string
*/
public static $lineEnding = "\n";
/**
* mail header
- * @var string
+ * @var string
*/
protected $header = '';
/**
* boundary for multipart/mixed mail
- * @var string
+ * @var string
*/
protected $boundary = '';
/**
* mail content mime type
- * @var string
+ * @var string
*/
protected $contentType = "text/plain";
/**
* mail recipients
- * @var array<string>
+ * @var array<string>
*/
protected $to = array();
/**
* mail subject
- * @var string
+ * @var string
*/
protected $subject = '';
/**
* mail message
- * @var string
+ * @var string
*/
protected $message = '';
/**
* mail sender
- * @var array<string>
+ * @var array<string>
*/
protected $from = array();
/**
* mail carbon copy
- * @var array<string>
+ * @var array<string>
*/
protected $cc = array();
/**
* mail blind carbon copy
- * @var array<string>
+ * @var array<string>
*/
protected $bcc = array();
/**
* mail attachments
- * @var array
+ * @var array
*/
protected $attachments = array();
/**
* mail language
- * @var wcf\data\language\Language
+ * @var wcf\data\language\Language
*/
protected $language = null;
class SMTPMailSender extends MailSender {
/**
* smtp connection
- * @var wcf\system\io\RemoteFile
+ * @var wcf\system\io\RemoteFile
*/
protected $connection = null;
/**
* last received status code
- * @var string
+ * @var string
*/
protected $statusCode = '';
/**
* last received status message
- * @var string
+ * @var string
*/
protected $statusMsg = '';
/**
* mail recipients
- * @var array
+ * @var array
*/
protected $recipients = array();
class Censorship extends SingletonFactory {
/**
* censored words
- * @var array<string>
+ * @var array<string>
*/
protected $censoredWords = array();
protected $matches = array();
/**
- * @see wcf\system\SingletonFactory::init()
+ * @see wcf\system\SingletonFactory::init()
*/
protected function init() {
// get words which should be censored
class AbstractCategoryMultiSelectOptionType extends AbstractOptionType {
/**
* object type name
- * @var string
+ * @var string
*/
public $objectType = '';
/**
* node tree class
- * @var string
+ * @var string
*/
public $nodeTreeClassname = 'wcf\data\category\CategoryNodeTree';
/**
* true, if within edit mode
- * @var boolean
+ * @var boolean
*/
public $editMode = true;
/**
* true, if within search mode
- * @var boolean
+ * @var boolean
*/
public $searchMode = false;
/**
* holds state of structuring version tables
- * @var boolean
+ * @var boolean
*/
protected $requireRestructureVersionTables = false;
WHERE puf.packageUpdateVersionID IN (
SELECT packageUpdateVersionID
FROM wcf".WCF_N."_package_update_version
- WHERE packageUpdateID IN (
+ WHERE packageUpdateID IN (
SELECT packageUpdateID
FROM wcf".WCF_N."_package_update
WHERE package = ?
// clear attributes
$sql = "DELETE FROM wcf".WCF_N."_bbcode_attribute
WHERE bbcodeID IN (
- SELECT bbcodeID
+ SELECT bbcodeID
FROM wcf".WCF_N."_bbcode
WHERE packageID = ?
)";
$this->pollData['isPublic'] = $this->poll->isPublic;
}
- // poll options
+ // poll options
if (isset($_POST['pollOptions']) && is_array($_POST['pollOptions'])) {
foreach ($_POST['pollOptions'] as $showOrder => $value) {
list($optionID, $optionValue) = explode('_', $value, 2);
/**
* title search strings
- * @var array<string>
+ * @var array<string>
*/
protected $titleSearch = array();
/**
* title replacement strings
- * @var array<string>
+ * @var array<string>
*/
protected $titleReplace = array();
'".$objectTypeName."' AS objectType
".($relevanceCalc ? ',search_index.relevance' : '')."
FROM ".$objectType->getTableName()."
- INNER JOIN (
+ INNER JOIN (
SELECT objectID
".($relevanceCalc ? ','.$relevanceCalc : '')."
FROM wcf".WCF_N."_search_index
".(!empty($orderBy) && $fulltextCondition === null ? 'ORDER BY '.$orderBy : '')."
LIMIT 1000
) search_index
- ON (".$objectType->getIDFieldName()." = search_index.objectID)
+ ON (".$objectType->getIDFieldName()." = search_index.objectID)
".$objectType->getJoins()."
".(isset($additionalConditions[$objectTypeName]) ? $additionalConditions[$objectTypeName] : '')."
)";
/**
* Returns the spider id for given user agent.
*
- * @param string $userAgent
+ * @param string $userAgent
* @return mixed
*/
protected function getSpiderID($userAgent) {
/**
* Searches for existing session of a search spider.
*
- * @param integer $spiderID
+ * @param integer $spiderID
* @return wcf\data\session\Session
*/
protected function getExistingSpiderSession($spiderID) {
- $sql = "SELECT *
- FROM wcf".WCF_N."_session
- WHERE spiderID = ?
+ $sql = "SELECT *
+ FROM wcf".WCF_N."_session
+ WHERE spiderID = ?
AND userID IS NULL";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($spiderID));
// fix session validation
$row['ipAddress'] = UserUtil::getIpAddress();
$row['userAgent'] = UserUtil::getUserAgent();
-
+
// return session object
return new $this->sessionClassName(null, $row);
}
// save tags
$sql = "INSERT INTO wcf".WCF_N."_tag_to_object
(objectID, tagID, objectTypeID, languageID)
- VALUES (?, ?, ?, ?)";
+ VALUES (?, ?, ?, ?)";
WCF::getDB()->beginTransaction();
$statement = WCF::getDB()->prepareStatement($sql);
foreach ($tagIDs as $tagID) {
/**
* regex for validation of allowed file extension
- * @var string
+ * @var string
*/
protected $fileExtensionRegex = '';
/**
* language object
- * @var wcf\data\language\Language
+ * @var wcf\data\language\Language
*/
protected $language = null;
*/
class UserFollowUserNotificationObjectType extends AbstractUserNotificationObjectType {
/**
- * @see wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
+ * @see wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
*/
protected static $decoratorClassName = 'wcf\system\user\notification\object\UserFollowUserNotificationObject';
/**
- * @see wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
+ * @see wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
*/
protected static $objectClassName = 'wcf\data\user\follow\UserFollow';
/**
- * @see wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
+ * @see wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
*/
protected static $objectListClassName = 'wcf\data\user\follow\UserFollowList';
}
/**
* Caches parsed user signatures.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
class SignatureCache extends SingletonFactory {
/**
* cached signatures
- * @var string
+ * @var string
*/
protected $signatures = array();
* Returns a parsed user signature.
*
* @param wcf\data\user\User $user
- * @return string
+ * @return string
*/
public function getSignature(User $user) {
if (!isset($this->signatures[$user->userID])) {
}
/**
- * Gets the object type id.
+ * Returns the object type id of the given visit tracker object type.
*
- * @param string $objectType
+ * @param string $objectType
* @return integer
*/
public function getObjectTypeID($objectType) {
if (WCF::getUser()->userID) {
// get data from storage
UserStorageHandler::getInstance()->loadStorage(array(WCF::getUser()->userID));
-
+
// get ids
$data = UserStorageHandler::getInstance()->getStorage(array(WCF::getUser()->userID), 'trackedUserVisits');
-
+
// cache does not exist or is outdated
if ($data[WCF::getUser()->userID] === null) {
$this->userVisits = array();
- $sql = "SELECT objectTypeID, visitTime
- FROM wcf".WCF_N."_tracked_visit_type
+ $sql = "SELECT objectTypeID, visitTime
+ FROM wcf".WCF_N."_tracked_visit_type
WHERE userID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(WCF::getUser()->userID));
/**
* database object list
- * @var wcf\data\DatabaseObjectList
+ * @var wcf\data\DatabaseObjectList
*/
protected $objectList = null;
/**
* Every rebuild data worker has to implement this interface.
- *
+ *
* @author Marcel Werk
* @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
interface IRebuildDataWorker extends IWorker {
/**
* Returns the list of objects.
- *
- * @return wcf\data\DatabaseObjectList
+ *
+ * @return wcf\data\DatabaseObjectList
*/
public function getObjectList();
}
* @var array
*/
protected $importData = null;
-
+
/**
* exporter object
- * @var wcf\system\exporter\IExporter
+ * @var wcf\system\exporter\IExporter
*/
protected $exporter = null;
-
+
/**
* @see wcf\system\worker\IWorker::validate()
*/
public function validate() {
WCF::getSession()->checkPermissions(array('admin.system.canImportData'));
-
+
if (!isset($this->parameters['objectType'])) {
throw new SystemException("parameter 'objectType' missing");
}
-
+
// get import data
$this->importData = WCF::getSession()->getVar('importData');
if ($this->importData === null) {
throw new SystemException("import data missing");
}
-
+
// get exporter
$this->exporter = ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.exporter', $this->importData['exporterName'])->getProcessor();
-
+
// set data
$this->exporter->setData($this->importData['dbHost'], $this->importData['dbUser'], $this->importData['dbPassword'], $this->importData['dbName'], $this->importData['dbPrefix'], $this->importData['fileSystemPath'], $this->importData['additionalData']);
$this->exporter->init();
-
+
// set user merge mode
ImportHandler::getInstance()->setUserMergeMode($this->importData['userMergeMode']);
// set import hash
ImportHandler::getInstance()->setImportHash(substr(StringUtil::getHash($this->importData['dbHost'] . $this->importData['dbName'] . $this->importData['dbPrefix']), 0, 8));
}
-
+
/**
* @see wcf\system\worker\AbstractWorker::countObjects()
*/
protected function countObjects() {
$this->count = $this->exporter->countLoops($this->parameters['objectType']);
}
-
+
/**
* @see wcf\system\worker\IWorker::getProgress()
*/
public function getProgress() {
$this->countObjects();
-
+
if (!$this->count) {
return 100;
}
-
+
$progress = (($this->loopCount + 1) / $this->count) * 100;
if ($progress > 100) $progress = 100;
return floor($progress);
}
-
+
/**
* @see wcf\system\worker\IWorker::execute()
*/
if (!$this->count) {
return;
}
-
+
$this->exporter->exportData($this->parameters['objectType'], $this->loopCount);
}
-
+
/**
* @see wcf\system\worker\IWorker::getProceedURL()
*/
/**
* given files
- * @var array
+ * @var array
*/
private $files = array();
/**
* Generates an anchor tag from given URL.
- *
+ *
* @param string $url
* @param string $title
* @param boolean $encodeTitle
/**
* Simple multi-byte safe wordwrap() function.
*
- * @param string $string
+ * @param string $string
* @param integer $width
* @param string $break
* @return string