Deprecated
Table of Contents
Fallback.php
| Line | Element | Reason |
|---|---|---|
| 18 | Mage_Admin_Helper_Rules_Fallback | since 26.5 |
Collection.php
| Line | Element | Reason |
|---|---|---|
| 55 | Mage_Admin_Model_Resource_Rules_Collection::getResourcesPermissionsArray() | since 26.5 |
Data.php
| Line | Element | Reason |
|---|---|---|
| 45 | Mage_Adminhtml_Block_Sales_Order_Create_Data::getCurrencyName() | since 25.9.0 |
Flatcatalog.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Adminhtml_Block_System_Config_Form_Field_Select_Flatcatalog | since 26.5 Flat Catalog will be removed in a future version |
Flatproduct.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Adminhtml_Block_System_Config_Form_Field_Select_Flatproduct | since 26.5 Flat Catalog will be removed in a future version |
Container.php
| Line | Element | Reason |
|---|---|---|
| 153 | Mage_Adminhtml_Block_Widget_Form_Container::getSaveUrl() |
ImagesController.php
| Line | Element | Reason |
|---|---|---|
| 438 | Mage_Adminhtml_Cms_Wysiwyg_ImagesController::_saveSessionCurrentPath() | since 25.7.0 current path is no longer stored in session |
Abstract.php
| Line | Element | Reason |
|---|---|---|
| 116 | Mage_Catalog_Block_Product_Abstract::_getSingletonModel() | use Mage::getSingleton() |
Date.php
| Line | Element | Reason |
|---|---|---|
| 33 | Mage_Catalog_Block_Product_View_Options_Type_Date::useCalendar() | since 25.9.0 |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Helper_Category_Flat | since 26.5 Flat Catalog will be removed in a future version |
Abstract.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Helper_Flat_Abstract | since 26.5 Flat Catalog will be removed in a future version |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Helper_Product_Flat | since 26.5 Flat Catalog will be removed in a future version |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 21 | Mage_Catalog_Model_Category_Indexer_Flat | since 26.5 Flat Catalog will be removed in a future version |
Product.php
| Line | Element | Reason |
|---|---|---|
| 234 | Mage_Catalog_Model_Convert_Parser_Product::parse() | not used anymore |
Flag.php
| Line | Element | Reason |
|---|---|---|
| 18 | Mage_Catalog_Model_Product_Flat_Flag | since 26.5 Flat Catalog will be removed in a future version |
Indexer.php
| Line | Element | Reason |
|---|---|---|
| 39 | Mage_Catalog_Model_Product_Flat_Indexer | since 26.5 Flat Catalog will be removed in a future version |
Observer.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_Product_Flat_Observer | since 26.5 Flat Catalog will be removed in a future version |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_Product_Indexer_Flat | since 26.5 Flat Catalog will be removed in a future version |
Date.php
| Line | Element | Reason |
|---|---|---|
| 266 | Mage_Catalog_Model_Product_Option_Type_Date::useCalendar() | since 25.9.0 |
| 278 | Mage_Catalog_Model_Product_Option_Type_Date::is24hTimeFormat() | since 25.9.0 |
Visibility.php
| Line | Element | Reason |
|---|---|---|
| 40 | Mage_Catalog_Model_Product_Visibility::addVisibleInCatalogFilterToCollection() | since 26.5 Use $collection->setVisibility($this->getVisibleInCatalogIds()) instead |
| 50 | Mage_Catalog_Model_Product_Visibility::addVisibleInSearchFilterToCollection() | since 26.5 Use $collection->setVisibility($this->getVisibleInSearchIds()) instead |
| 60 | Mage_Catalog_Model_Product_Visibility::addVisibleInSiteFilterToCollection() | since 26.5 Use $collection->setVisibility($this->getVisibleInSiteIds()) instead |
Collection.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_Resource_Category_Flat_Collection | since 26.5 Flat Catalog will be removed in a future version |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_Resource_Category_Flat | since 26.5 Flat Catalog will be removed in a future version |
Attribute.php
| Line | Element | Reason |
|---|---|---|
| 300 | Mage_Catalog_Model_Resource_Eav_Attribute::_getDefaultSourceModel() | since 26.1 use getDefaultSourceModel() instead |
Indexer.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_Resource_Product_Flat_Indexer | since 26.5 Flat Catalog will be removed in a future version |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_Resource_Product_Flat | since 26.5 Flat Catalog will be removed in a future version |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_System_Config_Backend_Catalog_Category_Flat | since 26.5 Flat Catalog will be removed in a future version |
Flat.php
| Line | Element | Reason |
|---|---|---|
| 16 | Mage_Catalog_Model_System_Config_Backend_Catalog_Product_Flat | since 26.5 Flat Catalog will be removed in a future version |
Productimg.php
| Line | Element | Reason |
|---|---|---|
| 38 | Mage_ConfigurableSwatches_Helper_Productimg::SWATCH_FILE_EXT | since 26.3 — use getSwatchFileExt() instead |
Action.php
| Line | Element | Reason |
|---|---|---|
| 159 | Mage_Core_Controller_Front_Action::_isFormKeyEnabled() | since 25.5.0 |
Data.php
| Line | Element | Reason |
|---|---|---|
| 859 | Mage_Core_Helper_Data::isFormKeyEnabled() | since 25.5.0 |
Security.php
| Line | Element | Reason |
|---|---|---|
| 43 | Mage_Core_Helper_Security::validateAgainstBlockMethodBlacklist() | since 26.1, use ensureBlockMethodAllowed() instead |
App.php
| Line | Element | Reason |
|---|---|---|
| 1119 | Mage_Core_Model_App::getCacheInstance() | since 25.5, use getCache() |
Config.php
| Line | Element | Reason |
|---|---|---|
| 1123 | Mage_Core_Model_Config::getBaseDir() | in favor of Mage_Core_Model_Config_Options |
| 1364 | Mage_Core_Model_Config::getResourceHelper() | Use getResourceHelperInstance() method instead |
Date.php
| Line | Element | Reason |
|---|---|---|
| 15 | Mage_Core_Model_Date | since 26.5 Replaced by the cohesive locale date API (Mage_Core_Model_Locale + native PHP). Per-method replacements are documented on each public method below. |
| 81 | Mage_Core_Model_Date::gmtDate() | since 26.5 For DB-bound strings use Mage::app()->getLocale()->formatDateForDb('now') (or formatDateForDb('now', withTime: false) for date-only). For non-DB use, use Mage::app()->getLocale()->nowUtc() / todayUtc(). When converting a store-TZ input to a UTC string, use Mage::app()->getLocale()->storeToUtc($store, $input)->format($format). |
| 107 | Mage_Core_Model_Date::date() | since 26.5 Use Mage::app()->getLocale()->utcToStore($store, $input)->format($format). For "now" in store TZ, omit the second argument: utcToStore()->format($format). |
| 126 | Mage_Core_Model_Date::gmtTimestamp() | since 26.5 For "now" use the native time() — Unix epochs are timezone-agnostic. For converting a store-TZ input to a UTC epoch, use Mage::app()->getLocale()->storeToUtc($store, $input)->getTimestamp(). |
| 166 | Mage_Core_Model_Date::timestamp() | since 26.5 The "store-shifted timestamp" this method returns is not a real epoch and was used by legacy code as a stepping stone to extract store-local components. Prefer Mage::app()->getLocale()->utcToStore($store, $input) and call ->format(...) / ->getTimestamp() on the result. For "now" use time(). |
| 197 | Mage_Core_Model_Date::getGmtOffset() | since 26.5 Use a DateTimeZone directly: (new DateTimeZone($store->getConfig('general/locale/timezone')))->getOffset(new DateTimeImmutable()) |
Storage.php
| Line | Element | Reason |
|---|---|---|
| 30 | Mage_Core_Model_File_Storage::XML_PATH_MEDIA_RESOURCE_WHITELIST | since 26.1, use XML_PATH_MEDIA_RESOURCE_ALLOWLIST instead |
AvailablePath.php
| Line | Element | Reason |
|---|---|---|
| 37 | Mage_Core_Model_File_Validator_AvailablePath | since 26.1 Use Maho\Io::allowedPath() instead for simpler and more secure path validation. Mask symbols from path:
"?" - something directory with any name
"" - something directory structure, which can not exist
Note: For set directory structure which must be exist, need to set mask "/?/{@}"
Mask symbols from filename:
"" - something symbols in file name
Example:
|
Locale.php
| Line | Element | Reason |
|---|---|---|
| 541 | Mage_Core_Model_Locale::date() | since 26.5 Use utcToStore() or storeToUtc() instead |
| 576 | Mage_Core_Model_Locale::dateMutable() | since 26.5 Use utcToStore() or storeToUtc() instead |
| 592 | Mage_Core_Model_Locale::dateImmutable() | since 26.5 Use utcToStore() or storeToUtc() with DateTimeImmutable::createFromMutable() instead |
| 618 | Mage_Core_Model_Locale::storeDate() | since 26.5 Use utcToStore() instead. Callers should format the result themselves. |
| 689 | Mage_Core_Model_Locale::utcDate() | since 26.5 Use storeToUtc() instead. Callers should format the result themselves. |
| 774 | Mage_Core_Model_Locale::storeTimeStamp() | since 26.5 Use utcToStore($store) for store-local dates, or time() for real timestamps |
Abstract.php
| Line | Element | Reason |
|---|---|---|
| 122 | Mage_Core_Model_Resource_Abstract::formatDate() | since 26.5 Use Mage::app()->getLocale()->formatDateForDb() instead |
Abstract.php
| Line | Element | Reason |
|---|---|---|
| 699 | Mage_Core_Model_Resource_Db_Collection_Abstract::formatDate() | since 26.5 Use Mage::app()->getLocale()->formatDateForDb() or now() instead |
Data.php
| Line | Element | Reason |
|---|---|---|
| 33 | Mage_Customer_Helper_Data::XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD | Since 26.1.0. Use XML_PATH_CUSTOMER_LOGIN_REDIRECT_TO_DASHBOARD instead |
Customer.php
| Line | Element | Reason |
|---|---|---|
| 422 | Mage_Customer_Model_Convert_Parser_Customer::parse() | not used anymore |
Data.php
| Line | Element | Reason |
|---|---|---|
| 26 | Mage_Directory_Block_Data::getLoadrRegionUrl() |
Abstract.php
| Line | Element | Reason |
|---|---|---|
| 512 | Mage_Eav_Model_Entity_Attribute_Abstract::_getDefaultSourceModel() | since 26.1 use getDefaultSourceModel() instead |
Attribute.php
| Line | Element | Reason |
|---|---|---|
| 97 | Mage_Eav_Model_Entity_Attribute::_getDefaultSourceModel() | since 26.1 use getDefaultSourceModel() instead |
Data.php
| Line | Element | Reason |
|---|---|---|
| 42 | Mage_ImportExport_Helper_Data::getLocalValidPaths() | since 26.1 Use Maho\Io::allowedPath() for path validation instead |
Packaging.php
| Line | Element | Reason |
|---|---|---|
| 80 | Mage_Sales_Model_Order_Pdf_Shipment_Packaging::_drawHeaderBlock() | No longer used with HTML/CSS approach |
| 91 | Mage_Sales_Model_Order_Pdf_Shipment_Packaging::_drawPackageBlock() | No longer used with HTML/CSS approach |
Address.php
| Line | Element | Reason |
|---|---|---|
| 1047 | Mage_Sales_Model_Quote_Address::getTotalModels() |
Abstract.php
| Line | Element | Reason |
|---|---|---|
| 743 | Mage_Sales_Model_Quote_Item_Abstract::calcTaxAmount() | logic moved to tax totals calculation model |
Validator.php
| Line | Element | Reason |
|---|---|---|
| 1038 | Mage_SalesRule_Model_Validator::_getSingleton() | use Mage::getSingleton() |
| 1050 | Mage_SalesRule_Model_Validator::_getHelper() | use Mage::helper() |
Config.php
| Line | Element | Reason |
|---|---|---|
| 317 | Mage_Tax_Model_Config::displayTaxColumn() | please use displayCartPrice or displaySalesZeroTax |
| 97 | Mage_Tax_Model_Config::CONFIG_XML_PATH_DISPLAY_TAX_COLUMN |
Usps.php
Mage.php
| Line | Element | Reason |
|---|---|---|
| 35 | Mage::LOG_EMERG | Use LOG_EMERGENCY instead |
| 40 | Mage::LOG_CRIT | Use LOG_CRITICAL instead |
| 45 | Mage::LOG_ERR | Use LOG_ERROR instead |
| 50 | Mage::LOG_WARN | Use LOG_WARNING instead |
Mapper.php
| Line | Element | Reason |
|---|---|---|
| 23 | Mapper | since 26.5 For DataObject-to-DataObject copies use $target->addData($source->toArray($map)). For arrays use array_intersect_key() / direct assignment. |
| 54 | Mapper::accumulateByMap() | since 26.5 For DataObject-to-DataObject copies use $target->addData($source->toArray($map)). For arrays use array_intersect_key() / direct assignment. The callable-array source/target form has no remaining callers in Maho core. |
Table.php
| Line | Element | Reason |
|---|---|---|
| 83 | Table::TIMESTAMP_INIT_UPDATE | TIMESTAMP_INIT_UPDATE is unsafe for cross-engine use: PgSQL and SQLite silently downgrade it to plain CURRENT_TIMESTAMP (no on-update auto-bump), and the surgical modifyColumn path drops the ON UPDATE clause across all adapters because Doctrine DBAL's column model has no on-update concept. Use TIMESTAMP_INIT plus an explicit _beforeSave() that calls setUpdatedAt(Mage::app()->getLocale()->formatDateForDb('now')) for cross-engine parity. |
AbstractIo.php
| Line | Element | Reason |
|---|---|---|
| 21 | AbstractIo | since 26.1 Extend Maho\Io directly instead |