* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acl\Option
*
- * @method ACLOption getDecoratedObject()
- * @mixin ACLOption
+ * @method static ACLOption create(array $parameters = [])
+ * @method ACLOption getDecoratedObject()
+ * @mixin ACLOption
*/
class ACLOptionEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acl\Option\Category
*
- * @method ACLOptionCategory getDecoratedObject()
- * @mixin ACLOptionCategory
+ * @method static ACLOptionCategory create(array $parameters = [])
+ * @method ACLOptionCategory getDecoratedObject()
+ * @mixin ACLOptionCategory
*/
class ACLOptionCategoryEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acp\Menu\Item
*
- * @method ACPMenuItem getDecoratedObject()
- * @mixin ACPMenuItem
+ * @method static ACPMenuItem create(array $parameters = [])
+ * @method ACPMenuItem getDecoratedObject()
+ * @mixin ACPMenuItem
*/
class ACPMenuItemEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acp\Search\Provider
*
- * @method ACPSearchProvider getDecoratedObject()
- * @mixin ACPSearchProvider
+ * @method static ACPSearchProvider create(array $parameters = [])
+ * @method ACPSearchProvider getDecoratedObject()
+ * @mixin ACPSearchProvider
*/
class ACPSearchProviderEditor extends DatabaseObjectEditor {
/**
/**
* @inheritDoc
+ * @return ACPSession
*/
public static function create(array $parameters = []) {
if (isset($parameters['userID']) && !$parameters['userID']) {
$parameters['userID'] = null;
}
+ /** @noinspection PhpIncompatibleReturnTypeInspection */
return parent::create($parameters);
}
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acp\Session\Access\Log
*
- * @method ACPSessionAccessLog getDecoratedObject()
- * @mixin ACPSessionAccessLog
+ * @method static ACPSessionAccessLog create(array $parameters = [])
+ * @method ACPSessionAccessLog getDecoratedObject()
+ * @mixin ACPSessionAccessLog
*/
class ACPSessionAccessLogEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acp\Session\Log
*
- * @method ACPSessionLog getDecoratedObject()
- * @mixin ACPSessionLog
+ * @method static ACPSessionLog create(array $parameters = [])
+ * @method ACPSessionLog getDecoratedObject()
+ * @mixin ACPSessionLog
*/
class ACPSessionLogEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acp\Session\Virtual
*
- * @method ACPSessionVirtual getDecoratedObject()
- * @mixin ACPSessionVirtual
+ * @method static ACPSessionVirtual create(array $parameters = [])
+ * @method ACPSessionVirtual getDecoratedObject()
+ * @mixin ACPSessionVirtual
*/
class ACPSessionVirtualEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Acp\Template
*
- * @method ACPTemplate getDecoratedObject()
- * @mixin ACPTemplate
+ * @method static ACPTemplate create(array $parameters = [])
+ * @method ACPTemplate getDecoratedObject()
+ * @mixin ACPTemplate
*/
class ACPTemplateEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Ad
*
- * @method Ad getDecoratedObject()
- * @mixin Ad
+ * @method static Ad create(array $parameters = [])
+ * @method Ad getDecoratedObject()
+ * @mixin Ad
*/
class AdEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Application
*
- * @method Application getDecoratedObject()
- * @mixin Application
+ * @method static Application create(array $parameters = [])
+ * @method Application getDecoratedObject()
+ * @mixin Application
*/
class ApplicationEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @package WoltLabSuite\Core\Data\Article
* @since 3.0
*
- * @method Article getDecoratedObject()
- * @mixin Article
+ * @method static Article create(array $parameters = [])
+ * @method Article getDecoratedObject()
+ * @mixin Article
*/
class ArticleEditor extends DatabaseObjectEditor {
/**
* @package WoltLabSuite\Core\Data\Article\Content
* @since 3.0
*
- * @method ArticleContent getDecoratedObject()
- * @mixin ArticleContent
+ * @method static ArticleContent create(array $parameters = [])
+ * @method ArticleContent getDecoratedObject()
+ * @mixin ArticleContent
*/
class ArticleContentEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Attachment
- *
- * @method Attachment getDecoratedObject()
- * @mixin Attachment
+ *
+ * @method static Attachment create(array $parameters = [])
+ * @method Attachment getDecoratedObject()
+ * @mixin Attachment
*/
class AttachmentEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Bbcode
*
- * @method BBCode getDecoratedObject()
- * @mixin BBCode
+ * @method static BBCode create(array $parameters = [])
+ * @method BBCode getDecoratedObject()
+ * @mixin BBCode
*/
class BBCodeEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Bbcode\Attribute
*
- * @method BBCodeAttribute getDecoratedObject()
- * @mixin BBCodeAttribute
+ * @method static BBCodeAttribute create(array $parameters = [])
+ * @method BBCodeAttribute getDecoratedObject()
+ * @mixin BBCodeAttribute
*/
class BBCodeAttributeEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Bbcode\Media\Provider
*
- * @method BBCodeMediaProvider getDecoratedObject()
- * @mixin BBCodeMediaProvider
+ * @method static BBCodeMediaProvider create(array $parameters = [])
+ * @method BBCodeMediaProvider getDecoratedObject()
+ * @mixin BBCodeMediaProvider
*/
class BBCodeMediaProviderEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @package WoltLabSuite\Core\Data\Box
* @since 3.0
*
- * @method Box getDecoratedObject()
- * @mixin Box
+ * @method static Box create(array $parameters = [])
+ * @method Box getDecoratedObject()
+ * @mixin Box
*/
class BoxEditor extends DatabaseObjectEditor {
/**
* @package WoltLabSuite\Core\Data\Box\Content
* @since 3.0
*
- * @method BoxContent getDecoratedObject()
- * @mixin BoxContent
+ * @method static BoxContent create(array $parameters = [])
+ * @method BoxContent getDecoratedObject()
+ * @mixin BoxContent
*/
class BoxContentEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Captcha\Question
*
- * @method CaptchaQuestion getDecoratedObject()
- * @mixin CaptchaQuestion
+ * @method static CaptchaQuestion create(array $parameters = [])
+ * @method CaptchaQuestion getDecoratedObject()
+ * @mixin CaptchaQuestion
*/
class CaptchaQuestionEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Category
- *
+ *
* @method Category getDecoratedObject()
* @mixin Category
*/
/**
* @inheritDoc
+ * @return Category
*/
public static function create(array $parameters = []) {
// default values
$parameters['additionalData'] = serialize([]);
}
+ /** @noinspection PhpIncompatibleReturnTypeInspection */
return parent::create($parameters);
}
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Clipboard\Action
*
- * @method ClipboardAction getDecoratedObject()
- * @mixin ClipboardAction
+ * @method static ClipboardAction create(array $parameters = [])
+ * @method ClipboardAction getDecoratedObject()
+ * @mixin ClipboardAction
*/
class ClipboardActionEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Comment
*
- * @method Comment getDecoratedObject()
- * @mixin Comment
+ * @method static Comment create(array $parameters = [])
+ * @method Comment getDecoratedObject()
+ * @mixin Comment
*/
class CommentEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Comment\Response
*
- * @method CommentResponse getDecoratedObject()
- * @mixin CommentResponse
+ * @method static CommentResponse create(array $parameters = [])
+ * @method CommentResponse getDecoratedObject()
+ * @mixin CommentResponse
*/
class CommentResponseEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Condition
*
- * @method Condition getDecoratedObject()
- * @mixin Condition
+ * @method static Condition create(array $parameters = [])
+ * @method Condition getDecoratedObject()
+ * @mixin Condition
*/
class ConditionEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Core\Object
- *
- * @method CoreObject getDecoratedObject()
- * @mixin CoreObject
+ *
+ * @method static CoreObject create(array $parameters = [])
+ * @method CoreObject getDecoratedObject()
+ * @mixin CoreObject
*/
class CoreObjectEditor extends DatabaseObjectEditor {
/**
/**
* @inheritDoc
+ * @return Cronjob
*/
public static function create(array $parameters = []) {
$descriptions = [];
$cronjobEditor->saveDescriptions($descriptions, false);
}
+ /** @noinspection PhpIncompatibleReturnTypeInspection */
return $cronjob;
}
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Language\Item
*
- * @method CronjobLog getDecoratedObject()
- * @mixin CronjobLog
+ * @method static CronjobLog create(array $parameters = [])
+ * @method CronjobLog getDecoratedObject()
+ * @mixin CronjobLog
*/
class CronjobLogEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Edit\History\Entry
*
- * @method EditHistoryEntry getDecoratedObject()
- * @mixin EditHistoryEntry
+ * @method static EditHistoryEntry create(array $parameters = [])
+ * @method EditHistoryEntry getDecoratedObject()
+ * @mixin EditHistoryEntry
*/
class EditHistoryEntryEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Event\Listener
*
- * @method EventListener getDecoratedObject()
- * @mixin EventListener
+ * @method static EventListener create(array $parameters = [])
+ * @method EventListener getDecoratedObject()
+ * @mixin EventListener
*/
class EventListenerEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Label
*
- * @method Label getDecoratedObject()
- * @mixin Label
+ * @method static Label create(array $parameters = [])
+ * @method Label getDecoratedObject()
+ * @mixin Label
*/
class LabelEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Label\Group
*
- * @method LabelGroup getDecoratedObject()
- * @mixin LabelGroup
+ * @method static LabelGroup create(array $parameters = [])
+ * @method LabelGroup getDecoratedObject()
+ * @mixin LabelGroup
*/
class LabelGroupEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Language
- *
- * @method Language getDecoratedObject()
- * @mixin Language
+ *
+ * @method static Language create(array $parameters = [])
+ * @method Language getDecoratedObject()
+ * @mixin Language
*/
class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Language\Category
*
- * @method LanguageCategory getDecoratedObject()
- * @mixin LanguageCategory
+ * @method static LanguageCategory create(array $parameters = [])
+ * @method LanguageCategory getDecoratedObject()
+ * @mixin LanguageCategory
*/
class LanguageCategoryEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Language\Item
- *
- * @method LanguageItem getDecoratedObject()
- * @mixin LanguageItem
+ *
+ * @method static LanguageItem create(array $parameters = [])
+ * @method LanguageItem getDecoratedObject()
+ * @mixin LanguageItem
*/
class LanguageItemEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Like
*
- * @method Like getDecoratedObject()
- * @mixin Like
+ * @method static Like create(array $parameters = [])
+ * @method Like getDecoratedObject()
+ * @mixin Like
*/
class LikeEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Like\Object
*
- * @method LikeObject getDecoratedObject()
- * @mixin LikeObject
+ * @method static LikeObject create(array $parameters = [])
+ * @method LikeObject getDecoratedObject()
+ * @mixin LikeObject
*/
class LikeObjectEditor extends DatabaseObjectEditor {
/**
* @package WoltLabSuite\Core\Data\Media
* @since 3.0
*
- * @method Media getDecoratedObject()
- * @mixin Media
+ * @method static Media create(array $parameters = [])
+ * @method Media getDecoratedObject()
+ * @mixin Media
*/
class MediaEditor extends DatabaseObjectEditor {
/**
/**
* @inheritDoc
+ * @return Menu
*/
public static function create(array $parameters = []) {
$title = '';
$parameters['title'] = '';
}
+ /** @var Menu $menu */
$menu = parent::create($parameters);
if (is_array($title)) {
/**
* @inheritDoc
+ * @return MenuItem
*/
public static function create(array $parameters = []) {
$title = '';
$parameters['title'] = '';
}
+ /** @var MenuItem $menuItem */
$menuItem = parent::create($parameters);
if (is_array($title)) {
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Moderation\Queue
*
- * @method ModerationQueue getDecoratedObject()
- * @mixin ModerationQueue
+ * @method static ModerationQueue create(array $parameters = [])
+ * @method ModerationQueue getDecoratedObject()
+ * @mixin ModerationQueue
*/
class ModerationQueueEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Modification\Log
*
- * @method ModificationLog getDecoratedObject()
- * @mixin ModificationLog
+ * @method static ModificationLog create(array $parameters = [])
+ * @method ModificationLog getDecoratedObject()
+ * @mixin ModificationLog
*/
class ModificationLogEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Notice
*
- * @method Notice getDecoratedObject()
- * @mixin Notice
+ * @method static Notice create(array $parameters = [])
+ * @method Notice getDecoratedObject()
+ * @mixin Notice
*/
class NoticeEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Object\Type
*
- * @method ObjectType getDecoratedObject()
- * @mixin ObjectType
+ * @method static ObjectType create(array $parameters = [])
+ * @method ObjectType getDecoratedObject()
+ * @mixin ObjectType
*/
class ObjectTypeEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Object\Type\Definition
*
- * @method ObjectTypeDefinition getDecoratedObject()
- * @mixin ObjectTypeDefinition
+ * @method static ObjectTypeDefinition create(array $parameters = [])
+ * @method ObjectTypeDefinition getDecoratedObject()
+ * @mixin ObjectTypeDefinition
*/
class ObjectTypeDefinitionEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Option
*
- * @method Option getDecoratedObject()
- * @mixin Option
+ * @method static Option create(array $parameters = [])
+ * @method Option getDecoratedObject()
+ * @mixin Option
*/
class OptionEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Option\Category
*
- * @method OptionCategory getDecoratedObject()
- * @mixin OptionCategory
+ * @method static OptionCategory create(array $parameters = [])
+ * @method OptionCategory getDecoratedObject()
+ * @mixin OptionCategory
*/
class OptionCategoryEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Package
*
- * @method Package getDecoratedObject()
- * @mixin Package
+ * @method static Package create(array $parameters = [])
+ * @method Package getDecoratedObject()
+ * @mixin Package
*/
class PackageEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Package\Installation\Plugin
*
- * @method PackageInstallationPlugin getDecoratedObject()
- * @mixin PackageInstallationPlugin
+ * @method static PackageInstallationPlugin create(array $parameters = [])
+ * @method PackageInstallationPlugin getDecoratedObject()
+ * @mixin PackageInstallationPlugin
*/
class PackageInstallationPluginEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Package\Installation\Queue
*
- * @method PackageInstallationQueue getDecoratedObject()
- * @mixin PackageInstallationQueue
+ * @method static PackageInstallationQueue create(array $parameters = [])
+ * @method PackageInstallationQueue getDecoratedObject()
+ * @mixin PackageInstallationQueue
*/
class PackageInstallationQueueEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Package\Update
- *
- * @method PackageUpdate getDecoratedObject()
- * @mixin PackageUpdate
+ *
+ * @method static PackageUpdate create(array $parameters = [])
+ * @method PackageUpdate getDecoratedObject()
+ * @mixin PackageUpdate
*/
class PackageUpdateEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Package\Update\Server
*
- * @method PackageUpdateServer getDecoratedObject()
- * @mixin PackageUpdateServer
+ * @method static PackageUpdateServer create(array $parameters = [])
+ * @method PackageUpdateServer getDecoratedObject()
+ * @mixin PackageUpdateServer
*/
class PackageUpdateServerEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Package\Update\Version
*
- * @method PackageUpdateVersion getDecoratedObject()
- * @mixin PackageUpdateVersion
+ * @method static PackageUpdateVersion create(array $parameters = [])
+ * @method PackageUpdateVersion getDecoratedObject()
+ * @mixin PackageUpdateVersion
*/
class PackageUpdateVersionEditor extends DatabaseObjectEditor {
/**
* @package WoltLabSuite\Core\Data\Page
* @since 3.0
*
- * @method Page getDecoratedObject()
- * @mixin Page
+ * @method static Page create(array $parameters = [])
+ * @method Page getDecoratedObject()
+ * @mixin Page
*/
class PageEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @package WoltLabSuite\Core\Data\Page\Content
* @since 3.0
*
- * @method PageContent getDecoratedObject()
- * @mixin PageContent
+ * @method static PageContent create(array $parameters = [])
+ * @method PageContent getDecoratedObject()
+ * @mixin PageContent
*/
class PageContentEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Paid\Subscription
- *
- * @method PaidSubscription getDecoratedObject()
- * @mixin PaidSubscription
+ *
+ * @method static PaidSubscription create(array $parameters = [])
+ * @method PaidSubscription getDecoratedObject()
+ * @mixin PaidSubscription
*/
class PaidSubscriptionEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Paid\Subscription\Transaction\Log
*
- * @method PaidSubscriptionTransactionLog getDecoratedObject()
- * @mixin PaidSubscriptionTransactionLog
+ * @method static PaidSubscriptionTransactionLog create(array $parameters = [])
+ * @method PaidSubscriptionTransactionLog getDecoratedObject()
+ * @mixin PaidSubscriptionTransactionLog
*/
class PaidSubscriptionTransactionLogEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Paid\Subscription\User
*
- * @method PaidSubscriptionUser getDecoratedObject()
- * @mixin PaidSubscriptionUser
+ * @method static PaidSubscriptionUser create(array $parameters = [])
+ * @method PaidSubscriptionUser getDecoratedObject()
+ * @mixin PaidSubscriptionUser
*/
class PaidSubscriptionUserEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Poll
- *
- * @method Poll getDecoratedObject()
- * @mixin Poll
+ *
+ * @method static Poll create(array $parameters = [])
+ * @method Poll getDecoratedObject()
+ * @mixin Poll
*/
class PollEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Poll\Option
*
- * @method PollOption getDecoratedObject()
- * @mixin PollOption
+ * @method static PollOption create(array $parameters = [])
+ * @method PollOption getDecoratedObject()
+ * @mixin PollOption
*/
class PollOptionEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Search
- *
- * @method Search getDecoratedObject()
- * @mixin Search
+ *
+ * @method static Search create(array $parameters = [])
+ * @method Search getDecoratedObject()
+ * @mixin Search
*/
class SearchEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Search\Keyword
*
- * @method SearchKeyword getDecoratedObject()
- * @mixin SearchKeyword
+ * @method static SearchKeyword create(array $parameters = [])
+ * @method SearchKeyword getDecoratedObject()
+ * @mixin SearchKeyword
*/
class SearchKeywordEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Smiley
*
- * @method Smiley getDecoratedObject()
- * @mixin Smiley
+ * @method static Smiley create(array $parameters = [])
+ * @method Smiley getDecoratedObject()
+ * @mixin Smiley
*/
class SmileyEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Spider
*
- * @method Spider getDecoratedObject()
- * @mixin Spider
+ * @method static Spider create(array $parameters = [])
+ * @method Spider getDecoratedObject()
+ * @mixin Spider
*/
class SpiderEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Stat\Daily
- *
- * @method StatDaily getDecoratedObject()
- * @mixin StatDaily
+ *
+ * @method static StatDaily create(array $parameters = [])
+ * @method StatDaily getDecoratedObject()
+ * @mixin StatDaily
*/
class StatDailyEditor extends DatabaseObjectEditor {
/**
/**
* @inheritDoc
+ * @return Style
*/
public static function create(array $parameters = []) {
$variables = null;
$parameters['isDefault'] = 1;
}
- // save style
+ /** @var Style $style */
$style = parent::create($parameters);
$styleEditor = new StyleEditor($style);
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Style\Variable
*
- * @method StyleVariable getDecoratedObject()
- * @mixin StyleVariable
+ * @method static StyleVariable create(array $parameters = [])
+ * @method StyleVariable getDecoratedObject()
+ * @mixin StyleVariable
*/
class StyleVariableEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Tag
*
- * @method Tag getDecoratedObject()
- * @mixin Tag
+ * @method static Tag create(array $parameters = [])
+ * @method Tag getDecoratedObject()
+ * @mixin Tag
*/
class TagEditor extends DatabaseObjectEditor {
/**
/**
* @inheritDoc
+ * @return Template
*/
public static function create(array $parameters = []) {
// obtain default values
if (!isset($parameters['packageID'])) $parameters['packageID'] = PACKAGE_ID;
if (!isset($parameters['lastModificationTime'])) $parameters['lastModificationTime'] = TIME_NOW;
+ /** @noinspection PhpIncompatibleReturnTypeInspection */
return parent::create($parameters);
}
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Template\Group
*
- * @method TemplateGroup getDecoratedObject()
- * @mixin TemplateGroup
+ * @method static TemplateGroup create(array $parameters = [])
+ * @method TemplateGroup getDecoratedObject()
+ * @mixin TemplateGroup
*/
class TemplateGroupEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Template\Listener
*
- * @method TemplateListener getDecoratedObject()
- * @mixin TemplateListener
+ * @method static TemplateListener create(array $parameters = [])
+ * @method TemplateListener getDecoratedObject()
+ * @mixin TemplateListener
*/
class TemplateListenerEditor extends DatabaseObjectEditor {
/**
/**
* @inheritDoc
+ * @return User
*/
public static function create(array $parameters = []) {
// create salt and password hash
// handle registration date
if (!isset($parameters['registrationDate'])) $parameters['registrationDate'] = TIME_NOW;
+ /** @var User $user */
$user = parent::create($parameters);
// create default values for user options
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Activity\Event
*
- * @method UserActivityEvent getDecoratedObject()
- * @mixin UserActivityEvent
+ * @method static UserActivityEvent create(array $parameters = [])
+ * @method UserActivityEvent getDecoratedObject()
+ * @mixin UserActivityEvent
*/
class UserActivityEventEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Authentication\Failure
*
- * @method UserAuthenticationFailure getDecoratedObject()
- * @mixin UserAuthenticationFailure
+ * @method static UserAuthenticationFailure create(array $parameters = [])
+ * @method UserAuthenticationFailure getDecoratedObject()
+ * @mixin UserAuthenticationFailure
*/
class UserAuthenticationFailureEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Avatar
*
- * @method UserAvatar getDecoratedObject()
- * @mixin UserAvatar
+ * @method static UserAvatar create(array $parameters = [])
+ * @method UserAvatar getDecoratedObject()
+ * @mixin UserAvatar
*/
class UserAvatarEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Follow
*
- * @method UserFollow getDecoratedObject()
- * @mixin UserFollow
+ * @method static UserFollow create(array $parameters = [])
+ * @method UserFollow getDecoratedObject()
+ * @mixin UserFollow
*/
class UserFollowEditor extends DatabaseObjectEditor {
/**
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Group
- *
+ *
* @method UserGroup getDecoratedObject()
* @mixin UserGroup
*/
/**
* @inheritDoc
+ * @return UserGroup
*/
public static function create(array $parameters = []) {
+ /** @var UserGroup $group */
$group = parent::create($parameters);
// update accessible groups
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Group\Assignment
*
- * @method UserGroupAssignment getDecoratedObject()
- * @mixin UserGroupAssignment
+ * @method static UserGroupAssignment create(array $parameters = [])
+ * @method UserGroupAssignment getDecoratedObject()
+ * @mixin UserGroupAssignment
*/
class UserGroupAssignmentEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Group\Option
*
- * @method UserGroupOption getDecoratedObject()
- * @mixin UserGroupOption
+ * @method static UserGroupOption create(array $parameters = [])
+ * @method UserGroupOption getDecoratedObject()
+ * @mixin UserGroupOption
*/
class UserGroupOptionEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Group\Option\Category
*
- * @method UserGroupOptionCategory getDecoratedObject()
- * @mixin UserGroupOptionCategory
+ * @method static UserGroupOptionCategory create(array $parameters = [])
+ * @method UserGroupOptionCategory getDecoratedObject()
+ * @mixin UserGroupOptionCategory
*/
class UserGroupOptionCategoryEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Ignore
*
- * @method UserIgnore getDecoratedObject()
- * @mixin UserIgnore
+ * @method static UserIgnore create(array $parameters = [])
+ * @method UserIgnore getDecoratedObject()
+ * @mixin UserIgnore
*/
class UserIgnoreEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Menu\Item
*
- * @method UserMenuItem getDecoratedObject()
- * @mixin UserMenuItem
+ * @method static UserMenuItem create(array $parameters = [])
+ * @method UserMenuItem getDecoratedObject()
+ * @mixin UserMenuItem
*/
class UserMenuItemEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Notification
*
- * @method UserNotification getDecoratedObject()
- * @mixin UserNotification
+ * @method static UserNotification create(array $parameters = [])
+ * @method UserNotification getDecoratedObject()
+ * @mixin UserNotification
*/
class UserNotificationEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Notification\Event
*
- * @method UserNotificationEvent getDecoratedObject()
- * @mixin UserNotificationEvent
+ * @method static UserNotificationEvent create(array $parameters = [])
+ * @method UserNotificationEvent getDecoratedObject()
+ * @mixin UserNotificationEvent
*/
class UserNotificationEventEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Object\Watch
*
- * @method UserObjectWatch getDecoratedObject()
- * @mixin UserObjectWatch
+ * @method static UserObjectWatch create(array $parameters = [])
+ * @method UserObjectWatch getDecoratedObject()
+ * @mixin UserObjectWatch
*/
class UserObjectWatchEditor extends DatabaseObjectEditor {
/**
/**
* @inheritDoc
+ * @return UserOption
*/
public static function create(array $parameters = []) {
+ /** @var UserOption $userOption */
$userOption = parent::create($parameters);
// alter the table "wcf".WCF_N."_user_option_value" with this new option
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Option\Category
- *
+ *
* @method UserOptionCategory getDecoratedObject()
* @mixin UserOptionCategory
*/
/**
* @inheritDoc
+ * @return UserOptionCategory
*/
public static function create(array $parameters = []) {
// obtain default values
if (!isset($parameters['packageID'])) $parameters['packageID'] = PACKAGE_ID;
+ /** @noinspection PhpIncompatibleReturnTypeInspection */
return parent::create($parameters);
}
/**
* @inheritDoc
+ * @return UserProfileMenuItem
*/
public static function create(array $parameters = []) {
// calculate show order
$parameters['showOrder'] = self::getShowOrder($parameters['showOrder']);
+ /** @noinspection PhpIncompatibleReturnTypeInspection */
return parent::create($parameters);
}
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Profile\Visitor
*
- * @method UserProfileVisitor getDecoratedObject()
- * @mixin UserProfileVisitor
+ * @method static UserProfileVisitor create(array $parameters = [])
+ * @method UserProfileVisitor getDecoratedObject()
+ * @mixin UserProfileVisitor
*/
class UserProfileVisitorEditor extends DatabaseObjectEditor {
/**
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Rank
*
- * @method UserRank getDecoratedObject()
- * @mixin UserRank
+ * @method static UserRank create(array $parameters = [])
+ * @method UserRank getDecoratedObject()
+ * @mixin UserRank
*/
class UserRankEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**