* @inheritDoc
*/
public static function getDatabaseTableName() {
- $classParts = explode('\\', get_called_class());
- return $classParts[0].WCF_N.'_'.static::$databaseTableName;
+ $className = get_called_class();
+ $classParts = explode('\\', $className);
+
+ if (static::$databaseTableName !== '') {
+ return $classParts[0].WCF_N.'_'.static::$databaseTableName;
+ }
+
+ static $databaseTableName = null;
+ if ($databaseTableName === null) {
+ $databaseTableName = $classParts[0].WCF_N.'_'.strtolower(implode('_', preg_split('~(?=[A-Z](?=[a-z]))~', array_pop($classParts), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY)));
+ }
+
+ return $databaseTableName;
}
/**
* @inheritDoc
*/
public static function getDatabaseTableAlias() {
- return static::$databaseTableName;
+ if (static::$databaseTableName !== '') {
+ return static::$databaseTableName;
+ }
+
+ static $databaseTableNameAlias = null;
+ if ($databaseTableNameAlias === null) {
+ $classParts = explode('\\', get_called_class());
+ $databaseTableNameAlias = strtolower(implode('_', preg_split('~(?=[A-Z](?=[a-z]))~', array_pop($classParts), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY)));
+ }
+
+ return $databaseTableNameAlias;
}
/**
* @inheritDoc
*/
public static function getDatabaseTableIndexName() {
- return static::$databaseTableIndexName;
+ if (static::$databaseTableIndexName !== '') {
+ return static::$databaseTableIndexName;
+ }
+
+ static $databaseTableIndexName = null;
+ if ($databaseTableIndexName === null) {
+ $className = explode('\\', get_called_class());
+ $parts = preg_split('~(?=[A-Z](?=[a-z]))~', array_pop($className), -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
+ $databaseTableIndexName = strtolower(array_pop($parts)).'ID';
+ }
+
+ return $databaseTableIndexName;
}
/**
* @property-read string $categoryName
*/
class ACLOption extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'acl_option';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'optionID';
-
/**
* Returns a list of options by object type id.
*
* @property-read integer $objectTypeID
* @property-read string $categoryName
*/
-class ACLOptionCategory extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'acl_option_category';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'categoryID';
-}
+class ACLOptionCategory extends DatabaseObject {}
* @inheritDoc
*/
protected static $databaseTableName = 'acp_search_provider';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'providerID';
}
* @property-read string $sessionVariables
*/
class ACPSession extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'acp_session';
-
/**
* @inheritDoc
*/
protected static $databaseTableIndexIsIdentity = false;
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'sessionID';
-
/**
* Returns true if this session type supports persistent logins.
*
* @property-read string $className
*/
class ACPSessionAccessLog extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'acp_session_access_log';
-
/**
* @inheritDoc
*/
* @property-read string|null $active
*/
class ACPSessionLog extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'acp_session_log';
-
/**
* @inheritDoc
*/
* @property-read string $sessionVariables
*/
class ACPSessionVirtual extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'acp_session_virtual';
-
/**
* @inheritDoc
*/
* @property-read string $application
*/
class ACPTemplate extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'acp_template';
-
/**
* @inheritDoc
*/
* @property-read integer $showOrder
*/
class Ad extends DatabaseObject implements IRouteController {
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'adID';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'ad';
-
/**
* Returns the conditions of the ad.
*
*/
protected $pageURL = '';
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'application';
-
/**
* @inheritDoc
*/
* @property-read integer $cumulativeLikes
*/
class Article extends DatabaseObject implements ILinkableObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'article';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'articleID';
-
/**
* indicates that article is unpublished
*/
* @property-read integer $hasEmbeddedObjects
*/
class ArticleContent extends DatabaseObject implements ILinkableObject, IRouteController {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'article_content';
-
/**
* @inheritDoc
*/
* @property-read integer $showOrder
*/
class Attachment extends DatabaseObject implements IRouteController, IThumbnailFile {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'attachment';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'attachmentID';
-
/**
* indicates if the attachment is embedded
* @var boolean
*/
protected static $databaseTableName = 'bbcode_attribute';
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'attributeID';
-
/**
* Reads attributes by assigned bbcode.
*
*/
protected static $databaseTableName = 'bbcode_media_provider';
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'providerID';
-
/**
* cached providers
* @var BBCodeMediaProvider[]
*/
protected $image;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'box';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'boxID';
-
/**
* available box types
* @var string[]
* @property-read integer $isDisabled
*/
class CaptchaQuestion extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'captcha_question';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'questionID';
-
/**
* Returns true if the given user input is an answer to this question.
*
*/
protected $defaultPermission = false;
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'categoryID';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'category';
-
/**
* @inheritDoc
*/
* @property-read string $actionClassName
* @property-read integer $showOrder
*/
-class ClipboardAction extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'clipboard_action';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'actionID';
-}
+class ClipboardAction extends DatabaseObject {}
class Comment extends DatabaseObject implements IMessage {
use TUserContent;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'comment';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'commentID';
-
/**
* Returns a list of response ids.
*
class CommentResponse extends DatabaseObject implements IMessage {
use TUserContent;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'comment_response';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'responseID';
-
/**
* comment object
* @var Comment
* @property-read array $conditionData
*/
class Condition extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'conditionID';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'condition';
-
/**
* @inheritDoc
*/
* @property-read integer $packageID
* @property-read string $objectName
*/
-class CoreObject extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'core_object';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'objectID';
-}
+class CoreObject extends DatabaseObject {}
class Cronjob extends DatabaseObject {
use TDatabaseObjectOptions;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'cronjob';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'cronjobID';
-
/**
* indicates that cronjob is available for execution
*/
* @property-read integer $success
* @property-read string $error
*/
-class CronjobLog extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'cronjob_log';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'cronjobLogID';
-}
+class CronjobLog extends DatabaseObject {}
* @property-read string $editReason
*/
class EditHistoryEntry extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'edit_history_entry';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'entryID';
-
/**
* @inheritDoc
*/
use TDatabaseObjectOptions;
use TDatabaseObjectPermissions;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'event_listener';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'listenerID';
-
/**
* prefix of automatically created event listener names
* @var string
* @property-read integer $showOrder
*/
class Label extends DatabaseObject implements IRouteController {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'label';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'labelID';
-
/**
* Returns the label's textual representation if a label is treated as a
* string.
* @property-read integer $showOrder
*/
class LabelGroup extends DatabaseObject implements IRouteController {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'label_group';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'groupID';
-
/**
* @inheritDoc
*/
* @property-read integer $isDisabled
*/
class Language extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'language';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'languageID';
-
/**
* list of language items
* @var string[]
* @property-read string $languageCategory
*/
class LanguageCategory extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'language_category';
-
/**
* @inheritDoc
*/
* @property-read integer|null $packageID
*/
class LanguageItem extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'language_item';
-
/**
* @inheritDoc
*/
* @property-read integer $likeValue
*/
class Like extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'like';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'likeID';
-
/**
* like value
* @var integer
* @property-read string $cachedUsers
*/
class LikeObject extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'like_object';
-
/**
* @inheritDoc
*/
*/
protected $i18nData;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'media';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'mediaID';
-
/**
* data of the different thumbnail sizes
* @var array
* @property-read integer $packageID
*/
class Menu extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'menu';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'menuID';
-
/**
* menu item node tree
* @var MenuItemNodeTree
* @property-read integer $packageID
*/
class MenuItem extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'menu_item';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'itemID';
-
/**
* @var IMenuPageHandler
*/
* @property-read array $additionalData
*/
class ModerationQueue extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'moderation_queue';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'queueID';
-
// states of column 'status'
const STATUS_OUTSTANDING = 0;
const STATUS_PROCESSING = 1;
* @property-read array $additionalData
*/
class ModificationLog extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'modification_log';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'logID';
-
/**
* @inheritDoc
*/
*/
protected $isDismissed = null;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'notice';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'noticeID';
-
/**
* Returns the textual representation of the notice.
*
use TDatabaseObjectOptions;
use TDatabaseObjectPermissions;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'object_type';
-
/**
* @inheritDoc
*/
* @property-read string $interfaceName
* @property-read string $categoryName
*/
-class ObjectTypeDefinition extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'object_type_definition';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'definitionID';
-}
+class ObjectTypeDefinition extends DatabaseObject {}
use TDatabaseObjectOptions;
use TDatabaseObjectPermissions;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'option';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'optionID';
-
/**
* @inheritDoc
*/
class OptionCategory extends DatabaseObject {
use TDatabaseObjectOptions;
use TDatabaseObjectPermissions;
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'option_category';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'categoryID';
}
*/
protected $requiredPackages = null;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'package';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'packageID';
-
/**
* list of ids of packages which are required by another package
* @var integer[]
* @property-read string $className
*/
class PackageInstallationPlugin extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'package_installation_plugin';
-
/**
* @inheritDoc
*/
* @property-read integer $isApplication
*/
class PackageInstallationQueue extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'package_installation_queue';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'queueID';
-
/**
* Returns a new process number for package installation queue.
*
* @property-read integer $isApplication
*/
class PackageUpdate extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'package_update';
-
/**
* @inheritDoc
*/
* @property-read string $apiVersion
*/
class PackageUpdateServer extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'package_update_server';
-
/**
* @inheritDoc
*/
* @property-read integer $isAccessible
*/
class PackageUpdateVersion extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'package_update_version';
-
/**
* @inheritDoc
*/
*/
public static $availablePageTypes = ['text', 'html', 'tpl', 'system'];
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'page';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'pageID';
-
/**
* @var \wcf\system\page\handler\IMenuPageHandler
*/
* @property-read string $excludedSubscriptionIDs
*/
class PaidSubscription extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'paid_subscription';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'subscriptionID';
-
/**
* Returns list of purchase buttons.
*
* @property-read string $logMessage
*/
class PaidSubscriptionTransactionLog extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'paid_subscription_transaction_log';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'logID';
-
/**
* user object
* @var \wcf\data\user\User
* @property-read integer $isActive
*/
class PaidSubscriptionUser extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'paid_subscription_user';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'subscriptionUserID';
-
/**
* paid subscription object
* @var \wcf\data\paid\subscription\PaidSubscription
* @property-read integer $votes
*/
class Poll extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'poll';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'pollID';
-
/**
* participation status
* @var boolean
* @property-read integer $showOrder
*/
class PollOption extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'poll_option';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'optionID';
-
/**
* true, if option was selected by current user
* @var boolean
* @property-read string $searchType
* @property-read string $searchHash
*/
-class Search extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'search';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'searchID';
-}
+class Search extends DatabaseObject {}
* @property-read integer $searches
* @property-read integer $lastSearchTime
*/
-class SearchKeyword extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'search_keyword';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'keywordID';
-}
+class SearchKeyword extends DatabaseObject {}
* @property-read string $spiderID
*/
class Session extends ACPSession {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'session';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'sessionID';
-
/**
* @inheritDoc
*/
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Session\Virtual
*/
-class SessionVirtual extends ACPSessionVirtual {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'session_virtual';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'virtualSessionID';
-}
+class SessionVirtual extends ACPSessionVirtual {}
* @property-read integer $showOrder
*/
class Smiley extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'smiley';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'smileyID';
-
/**
* Returns the url to this smiley.
*
* @property-read string $spiderName
* @property-read string $spiderURL
*/
-class Spider extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'spider';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'spiderID';
-}
+class Spider extends DatabaseObject {}
* @property-read integer $counter
* @property-read integer $total
*/
-class StatDaily extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'stat_daily';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'statID';
-}
+class StatDaily extends DatabaseObject {}
* @property-read integer $isTainted
*/
class Style extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'style';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'styleID';
-
/**
* list of style variables
* @var string[]
* @property-read string $defaultValue
*/
class StyleVariable extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'style_variable';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'variableID';
-
const TYPE_COLOR = 'color';
const TYPE_TEXT = 'text';
const TYPE_UNIT = 'unit';
* @property-read integer|null $synonymFor
*/
class Tag extends DatabaseObject implements IRouteController {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'tag';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'tagID';
-
/**
* Return the tag with the given name or null of no such tag exists.
*
* @property-read integer $lastModificationTime
*/
class Template extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'template';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'templateID';
-
/** @noinspection PhpMissingParentConstructorInspection */
/**
* @inheritDoc
* @property-read string $templateGroupFolderName
*/
class TemplateGroup extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'template_group';
-
/**
* @inheritDoc
*/
* @property-read string $permissions
* @property-read string $options
*/
-class TemplateListener extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'template_listener';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'listenerID';
-}
+class TemplateListener extends DatabaseObject {}
* @property-read integer $likesReceived
*/
final class User extends DatabaseObject implements IRouteController, IUserContent {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'userID';
-
/**
* list of group ids
* @var integer[]
* @property-read array $additionalData
*/
class UserActivityEvent extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_activity_event';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'eventID';
-
/**
* @inheritDoc
*/
* @property-read string $userAgent
*/
class UserAuthenticationFailure extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_authentication_failure';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'failureID';
-
/**
* Returns the ip address and attempts to convert into IPv4.
*
*/
public static $avatarThumbnailSizes = [32, 96, 128, 256];
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_avatar';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'avatarID';
-
/**
* maximum thumbnail size
* @var integer
* @property-read integer $time
*/
class UserFollow extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_follow';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'followID';
-
/**
* Retrieves a follower.
*
*/
const OTHER = 4;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_group';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'groupID';
-
/**
* group cache
* @var UserGroup[]
* @property-read integer $isDisabled
*/
class UserGroupAssignment extends DatabaseObject implements IRouteController {
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'assignmentID';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_group_assignment';
-
/**
* Returns the conditions of the automatic assignment to a user group.
*
* @inheritDoc
*/
protected static $databaseTableName = 'user_group_option';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'optionID';
}
class UserGroupOptionCategory extends DatabaseObject {
use TDatabaseObjectOptions;
use TDatabaseObjectPermissions;
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_group_option_category';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'categoryID';
}
* @property-read integer $time
*/
class UserIgnore extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_ignore';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'ignoreID';
-
/**
* Returns a UserIgnore object for given ignored user id.
*
* @property-read string $iconClassName
*/
class UserMenuItem extends ProcessibleDatabaseObject implements ITreeMenuItem {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_menu_item';
-
/**
* @inheritDoc
*/
* @property-read array $additionalData
*/
class UserNotification extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_notification';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'notificationID';
-
/**
* @inheritDoc
*/
use TDatabaseObjectOptions;
use TDatabaseObjectPermissions;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_notification_event';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'eventID';
-
/**
* @inheritDoc
*/
* @property-read integer $notification
*/
class UserObjectWatch extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_object_watch';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'watchID';
-
/**
* Returns the UserObjectWatch with the given data or null if no such object
* exists.
*/
protected static $databaseTableName = 'user_option';
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'optionID';
-
/**
* option value
* @var string
* @property-read string $options
*/
class UserOptionCategory extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_option_category';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'categoryID';
-
/**
* Returns the title of this category.
*
*/
protected $contentManager = null;
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_profile_menu_item';
-
/**
* @inheritDoc
*/
* @property-read integer $time
*/
class UserProfileVisitor extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_profile_visitor';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'visitorID';
-
/**
* Returns a profile visitor object or `null` if it does not exist.
*
* @property-read integer $requiredGender
*/
class UserRank extends DatabaseObject {
- /**
- * @inheritDoc
- */
- protected static $databaseTableName = 'user_rank';
-
- /**
- * @inheritDoc
- */
- protected static $databaseTableIndexName = 'rankID';
-
/**
* Returns the image of this user rank.
*