*/
class MediaEditForm extends AbstractForm {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $activeMenuItem = 'wcf.acp.menu.link.cms.media.list';
public $mediaID = 0;
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $neededPermissions = ['admin.content.cms.canManageMedia'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readData() {
parent::readData();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readFormParameters() {
parent::readFormParameters();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function save() {
parent::save();
}
/**
- * @inheritdoc
+ * @inheritDoc
* @throws UserInputException
*/
public function validate() {
*/
class ArticleListPage extends SortablePage {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $activeMenuItem = 'wcf.acp.menu.link.article.list';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $objectListClassName = ViewableArticleList::class;
public $neededModules = ['MODULE_ARTICLE'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $neededPermissions = ['admin.content.article.canManageArticle'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $defaultSortField = 'time';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $defaultSortOrder = 'DESC';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $validSortFields = ['articleID', 'title', 'time', 'views', 'comments'];
public $showArticleAddDialog = 0;
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected function initObjectList() {
parent::initObjectList();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
*/
class BoxListPage extends SortablePage {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $activeMenuItem = 'wcf.acp.menu.link.cms.box.list';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $objectListClassName = BoxList::class;
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $neededPermissions = ['admin.content.cms.canManageBox'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $defaultSortField = 'name';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $validSortFields = ['boxID', 'name', 'boxType', 'position', 'showOrder'];
public $showBoxAddDialog = 0;
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected function initObjectList() {
parent::initObjectList();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
*/
class MediaAddPage extends AbstractPage {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $activeMenuItem = 'wcf.acp.menu.link.cms.media.add';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $neededPermissions = ['admin.content.cms.canManageMedia'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
*/
class PageListPage extends SortablePage {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $activeMenuItem = 'wcf.acp.menu.link.cms.page.list';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $objectListClassName = PageList::class;
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $neededPermissions = ['admin.content.cms.canManagePage'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $defaultSortField = 'name';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $validSortFields = ['pageID', 'name', 'lastUpdateTime'];
public $showPageAddDialog = 0;
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected function initObjectList() {
parent::initObjectList();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function assignVariables() {
parent::assignVariables();
*/
class Attachment extends DatabaseObject implements IRouteController, IThumbnailFile {
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected static $databaseTableName = 'attachment';
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected static $databaseTableIndexName = 'attachmentID';
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getLocation() {
return self::getStorage() . substr($this->fileHash, 0, 2) . '/' . ($this->attachmentID) . '-' . $this->fileHash;
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getThumbnailLocation($size = '') {
if ($size == 'tiny') {
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getThumbnailLink($size = '') {
$parameters = [
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getTitle() {
return $this->filename;
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public static function getThumbnailSizes() {
return [
*/
class AttachmentAction extends AbstractDatabaseObjectAction implements ISortableAction, IUploadAction {
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $allowGuestAccess = ['delete', 'updatePosition', 'upload'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $className = AttachmentEditor::class;
public $eventData = [];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function validateDelete() {
// read objects
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function validateUpload() {
// IE<10 fallback
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function upload() {
// get object type
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function validateUpdatePosition() {
$this->readInteger('objectID', true);
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function updatePosition() {
$sql = "UPDATE wcf".WCF_N."_attachment
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function validateToggle() {
parent::validateUpdate();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function toggle() {
foreach ($this->getObjects() as $language) {
protected $i18nData = null;
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected static $databaseTableName = 'media';
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected static $databaseTableIndexName = 'mediaID';
*/
class MediaEditor extends DatabaseObjectEditor {
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected static $baseClass = Media::class;
*/
class MediaList extends DatabaseObjectList {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $className = Media::class;
*/
class ViewableMedia extends DatabaseObjectDecorator {
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected static $baseClass = Media::class;
*/
class ViewableMediaList extends MediaList {
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $decoratorClassName = ViewableMedia::class;
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function __construct() {
parent::__construct();
protected $requireACP = ['create', 'delete', 'update'];
/**
- * @inheritdoc
+ * @inheritDoc
* @return Menu
*/
public function create() {
*/
class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction, IUploadAction {
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $allowGuestAccess = ['changeStyle', 'getStyleChooser'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $className = StyleEditor::class;
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $permissionsDelete = ['admin.style.canManageStyle'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $permissionsUpdate = ['admin.style.canManageStyle'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $requireACP = ['copy', 'delete', 'markAsTainted', 'setAsDefault', 'toggle', 'update', 'upload', 'uploadLogo'];
public $styleEditor = null;
/**
- * @inheritdoc
+ * @inheritDoc
* @return Style
*/
public function create() {
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function update() {
parent::update();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function delete() {
$count = parent::delete();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function validateUpload() {
// check upload permissions
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function upload() {
// save files
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function validateToggle() {
parent::validateUpdate();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function toggle() {
foreach ($this->getObjects() as $style) {
public $thumbnail = '';
/**
- * @inheritdoc
+ * @inheritDoc
*/
public $useTemplate = false;
// TODO: remove the following line once method is implemented
// @codingStandardsIgnoreStart
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function checkPermissions() {
parent::checkPermissions();
// @codingStandardsIgnoreEnd
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readData() {
parent::readData();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function readParameters() {
parent::readParameters();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function show() {
parent::show();
*/
class MediaClipboardAction extends AbstractClipboardAction {
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $actionClassActions = ['delete'];
/**
- * @inheritdoc
+ * @inheritDoc
*/
protected $supportedActions = [
'delete',
];
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function execute(array $objects, ClipboardAction $action) {
$item = parent::execute($objects, $action);
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getClassName() {
return MediaAction::class;
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getTypeName() {
return 'com.woltlab.wcf.media';
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function save(UploadFile $uploadFile) {
$data = array_merge([
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getComments() {
return 0;
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getCategories() {
return [
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getExcerpt($maxLength = 255) {
return StringUtil::truncateHTML($this->getFormattedMessage(), $maxLength);
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getFormattedMessage() {
return $this->getMessage();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function __toString() {
return $this->getFormattedMessage();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getTime() {
return $this->getNotification()->time;
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getUserID() {
return $this->getAuthorID();
}
/**
- * @inheritdoc
+ * @inheritDoc
*/
public function getUsername() {
return $this->getAuthor()->username;