Documentation

Deprecated

Table of Contents

core/API.php
core/Config/Model/Entity/SystemConfig.class.php
core/ContentManager/Controller/ContentManager.class.php
core/ContentManager/Model/Entity/Page.class.php
core/Core/Controller/Cx.class.php
core/Core/Model/Entity/AdminNavigation.class.php
core/Core/Model/Entity/SystemComponentBackendController.class.php
core/Html/Sigma.class.php
core/Html.class.php
core/Init.class.php
core/Json/JsonData.class.php
core/Locale/Controller/ComponentController.class.php
core/MailTemplate/Controller/MailTemplate.class.php
core/MediaSource/Model/Entity/MediaSourceManager.class.php
core/MediaSource/Model/Event/IndexerSearchResultEventListener.class.php
core/Model/Controller/YamlRepository.class.php
core/Model/Db.class.php
core/Model/Model/Repository/LogEntryRepository.class.php
core/Navigation.class.php
core/Routing/Url.class.php
core/Sorting.class.php
core/Tree.class.php
core/User/Model/Entity/Group.class.php
core/User/Model/Entity/User.class.php
core_modules/Cache/Controller/Doctrine/CacheDriver/Cache.interface.php
core_modules/Contact/Controller/Contact.class.php
core_modules/Listing/Model/Entity/LegacyYamlInterface.class.php
core_modules/Media/Controller/MediaLibrary.class.php
core_modules/Privacy/Model/Entity/Cookie.class.php
core_modules/Sync/Controller/ComponentController.class.php
lib/FRAMEWORK/Convert/Controller/Import.class.php
lib/FRAMEWORK/Convert/Controller/ImportExport.class.php
lib/FRAMEWORK/DBG/DBG.php
lib/FRAMEWORK/File.class.php
lib/FRAMEWORK/FileSystem/FileSystem.class.php
lib/FRAMEWORK/FileSystem/FileSystemFile.class.php
lib/FRAMEWORK/Language.class.php
lib/FRAMEWORK/Net/Model/Entity/Url.class.php
lib/FRAMEWORK/Validator.class.php
modules/Block/Controller/Block.class.php
modules/Block/Controller/JsonBlockController.class.php
modules/Calendar/Controller/CalendarMailManager.class.php
modules/Media1/Controller/BackendController.class.php

API.php

Line Element Reason
55 contrexx_isCoreModule()
73 contrexx_isModuleActive()
91 contrexx_isModuleInstalled()
128 getPaging()

SystemConfig.class.php

Line Element Reason
170 SystemConfig::getBaseConfig()

Use static::getBaseConfigString() or static::getBaseConfigInt() instead.

211 SystemConfig::fixPathConfig()

See CLX-4284

ContentManager.class.php

Line Element Reason
682 ContentManager::getLiteralComponentName()

This should be get from component directly

698 ContentManager::getComponentIcon()

This should be get from component directly

Page.class.php

Line Element Reason
88 Page::PLACEHOLDER_PREFIX

Use NodePlaceholder::... directly instead

94 Page::NODE_URL_PCRE

Use NodePlaceholder::... directly instead

101 Page::NODE_URL_PLACEHOLDER

Use NodePlaceholder::... directly instead

108 Page::NODE_URL_NODE_ID

Use NodePlaceholder::... directly instead

115 Page::NODE_URL_MODULE

Use NodePlaceholder::... directly instead

122 Page::NODE_URL_CMD

Use NodePlaceholder::... directly instead

129 Page::NODE_URL_LANG_ID

Use NodePlaceholder::... directly instead

Cx.class.php

Line Element Reason
1670 Cx::getComponent()

All new classes should have access to $this->getComponent()

AdminNavigation.class.php

Line Element Reason
50 AdminNavigation

This will be replaced by using the same mechanism as in frontend

SystemComponentBackendController.class.php

Line Element Reason
239 SystemComponentBackendController::parseCommands()

Use the new v2.1 style, see parseV21Commands()

698 SystemComponentBackendController::showOverviewPage()

Use showSplash() instead

Sigma.class.php

Line Element Reason
163 Sigma::setParseTarget()

Set parse target on initialization

515 Sigma::getChildrenOfBlock()

Do not use. Sigma is unable to parse only blocks contained within a block. This is a work-around. Nice solution would be to make parse() aware of the structure (which would lead to a lot of refactoring). This is only used for MediaDir Inputfields. Known use-case is the "multiple rows" feature, but there might be more cases in MediaDir where this fixes problems.

Html.class.php

Line Element Reason
51 Html

This class is deprecated in favor of using Sigma or \Cx\Core\Html\Model\Entity...

Init.class.php

Line Element Reason
1169 InitCMS::getUriBy()

Use \Cx\Core\Routing\Url::fromRequest() instead.

1195 InitCMS::_is_mobile_phone()

Use \Cx\Core\Routing\Model\Entity\Request::isMobilePhone() instead

1263 InitCMS::_is_tablet()

Use \Cx\Core\Routing\Model\Entity\Request::isTablet() instead

JsonData.class.php

Line Element Reason
97 JsonData::addAdapter()

Use component framework instead (SystemComponentController->getControllersAccessableByJson())

58 JsonData::$adapter_classes

Use component framework instead (SystemComponentController->getControllersAccessableByJson())

ComponentController.class.php

Line Element Reason
326 ComponentController::getLocaleIdsMatchingByBackendId()

Instead of magically mapping backend languages with frontend locales, you must fix your model.

MailTemplate.class.php

Line Element Reason
1049 MailTemplate::overview()

Do not use directly. Use adminView() instead.

1211 MailTemplate::edit()

Do not use directly. Use adminView() instead.

MediaSourceManager.class.php

Line Element Reason
127 MediaSourceManager::getLockedMediaType()

This method must not be used outside MediaSource itself!

IndexerSearchResultEventListener.class.php

Line Element Reason
49 IndexerSearchResultEventListener

Each component should return it's own indexer results instead!

YamlRepository.class.php

Line Element Reason
70 YamlRepository

Do not use anymore or at least not until the storage format has been changed (see @todo).

Db.class.php

Line Element Reason
232 Db::getAdoDb()

Use Doctrine (getEntityManager()) instead

272 Db::cxAdodbPdoConnectionFactory()

Use Doctrine!

LogEntryRepository.class.php

Line Element Reason
237 LogEntryRepository::getLogEntriesCount()

As soon as CLX-1776 is implemented use getLogEntries() instead

Navigation.class.php

Line Element Reason
53 Navigation

Use \Cx\Core\PageTree directly instead

Url.class.php

Line Element Reason
342 Url::setMode()

Use Url::isFrontend() or Url::isBackend() instead.

481 Url::getMode()

Use Url::isFrontend() or Url::isBackend() instead.

Sorting.class.php

Line Element Reason
50 Sorting

Use ViewGenerator instead

Tree.class.php

Line Element Reason
54 ContentTree

Use PageTree instead

Group.class.php

Line Element Reason
121 Group::getGroupId()
133 Group::setGroupName()
145 Group::getGroupName()
157 Group::setGroupDescription()
169 Group::getGroupDescription()
181 Group::setIsActive()
193 Group::getIsActive()
264 Group::getUser()

User.class.php

Line Element Reason
686 User::getGroup()

Cache.interface.php

Line Element Reason
73 Cache::STATS_MEMORY_AVAILIABLE

Contact.class.php

Line Element Reason
1450 Contact::getLegacyError()

Used for legacy output of placeholder CONTACT_FEEDBACK_TEXT. Superseded by static::getErrorMessages().

LegacyYamlInterface.class.php

Line Element Reason
45 LegacyYamlInterface

Use YamlInterface instead. This is onlyused for YamlRepository.

MediaLibrary.class.php

Line Element Reason
611 MediaLibrary::getFileTypeIconWebPath()

Cookie.class.php

Line Element Reason
167 Cookie::setComponent()

This should be solved differently, see schema file

177 Cookie::getComponent()

This should be solved differently, see schema file

ComponentController.class.php

Line Element Reason
964 ComponentController::useHackForCalendar()

Will be dropped by CLX-3974

Import.class.php

Line Element Reason
325 Import::getFinalData()

Do not use this. Use ViewGenerator instead.

438 Import::initFileSelectTemplate()

Do not use this. Use ViewGenerator instead.

480 Import::initFieldSelectTemplate()

Do not use this. Use ViewGenerator instead.

542 Import::cancel()

Do not use this. Use ViewGenerator instead.

570 Import::uploadFinished()

Do not use this. Use ViewGenerator instead.

608 Import::getUploadedFileFromUploader()

Do not use this. Use ViewGenerator instead.

ImportExport.class.php

Line Element Reason
130 ImportExport::parseMapping()

This should not be public! $mapping is a list of entity properties. For each property you can specify how the value for it is generated based on the import data. The following options are available for the mapping:

  • 'fields': A list of fields that need to be present in the import file. To make fields optional, set a default value for them, see 'defaultValue'.
  • 'defaultValue': An optional list of fields specified in 'fields' as key with the respective default value as value.
  • 'format': A string with '<...>'-style placeholders for the fields specified in 'fields'. This can be used to combine multiple fields to one.
  • 'entity': Foreign entity for this field. See 'type' "entity".
  • 'type': If set a type conversion will be applied. Known types are: "int": Result will be converted to int "DateTime": Result will be converted to \DateTime "entity": Result will be used as an argument to $em->find() on the repository for the entity specified in 'entity'.
  • 'callback': Optional callback to do custom stuff. The callback is applied last, just before the type conversion and will be given the result of previous conversions as first param and all data fields to import as second param.

Either 'fields' or 'format' must be specified. If more than one field is specified, 'format' is mandatory.

$mapping = array(
     <entityProperty> => array(
         'fields' => array(...),
         'format' => '',
         'type' => '',
         'entity' => '',
         'defaultValue' => array(...),
         'callback' => function(string $formattedString, array $fields) {
             return $formattedString;
         }
     ),
     ...
)

DBG.php

Line Element Reason
767 DBG::msg()

Use DBG::log() or DBG::debug() instead

1008 DBG::getMemoryLogs()

Use DBG::getLogsFromStream() instead.

1044 DBG::appendLogs()

Use DBG::appendLogsToStreams() instead

File.class.php

Line Element Reason
57 File

deprecated since 3.0.0

FileSystem.class.php

Line Element Reason
186 FileSystem::copyDir()

Use static::copy_folder() instead.

234 FileSystem::copyFile()

Use File::copy() instead.

265 FileSystem::delFile()

Use File::delete() instead.

420 FileSystem::callEventStatic()

Use non-static method instead

FileSystemFile.class.php

Line Element Reason
64 FileSystemFile

This will be merged with File and then removed. Do not use directly! Having two separate classes was necessary to implement transparent file operations via FTP, which is no longer supported.

Language.class.php

Line Element Reason
38 FWLanguage

Use \Cx\Core\Locale instead

Url.class.php

Line Element Reason
284 Url::getParamArray()

Use getParsedQuery() instead

292 Url::removeAllParams()

Use setQuery('') instead

Validator.class.php

Line Element Reason
47 VALIDATOR_REGEX_EMAIL
57 VALIDATOR_REGEX_EMAIL_JS
69 VALIDATOR_REGEX_URI_PROTO
79 VALIDATOR_REGEX_URI
91 VALIDATOR_REGEX_URI_JS

Block.class.php

Line Element Reason
178 Block::setCategoryBlock()
232 Block::setBlockRandom()
284 Block::setBlockGlobal()

JsonBlockController.class.php

Line Element Reason
545 JsonBlockController::getCategoryBlockContent()
775 JsonBlockController::getGlobalBlockContent()
1014 JsonBlockController::getRandomBlockContent()

CalendarMailManager.class.php

Line Element Reason
724 CalendarMailManager::getMatchingMailListLocaleIdByBackendId()

Migrate mailList to MailTemplate (see CLX-4305) once MailTemplate supports backend languages too (see CLX-4307).

BackendController.class.php

Line Element Reason
71 BackendController::showOverviewPage()

In favor of showSplash()

Search results