-
Type:
Task
-
Status: Scheduled
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 5.3.0
-
Component/s: Unit Configs
-
Labels:None
-
Change Log Group:Deprecated
-
Change Log Message:Deprecated "getUnitOption" and "setUnitOption" methods.
-
Story Points:1
-
Copy Issue Key:
-
Patch Instructions:
- add "kUnitConfigReader::getUnitOption" method, that will:
- have "@deprecated" tag
- have "@see kUnitConfigReader::getUnitConfig" tag
- trigger silenced user deprecation notice
- return "$this->getUnitConfig($prefix)->getSetting($name, $default)" call result
- add "kUnitConfigReader::setUnitOption" method, that will:
- have "@deprecated" tag
- have "@see kUnitConfigReader::getUnitConfig" tag
- trigger silenced user deprecation notice
- call "$this->getUnitConfig($prefix)->setSetting($name, $value)" code
- add "kUnitConfigReader::getUnitOptions" method, that will:
- have "@deprecated" tag
- have "@see kUnitConfigReader::getUnitConfig" tag
- trigger silenced user deprecation notice
- return "$this->getUnitConfig($prefix)->getRaw()" call result
- add "kApplication::getUnitOption" method, that will:
- have "@deprecated" tag
- have "@see kApplication::getUnitConfig" tag
- trigger silenced user deprecation notice
- return "$this->UnitConfigReader->getUnitOption($prefix, $name, $default)" call result
- add "kApplication::setUnitOption" method, that will:
- have "@deprecated" tag
- have "@see kApplication::getUnitConfig" tag
- trigger silenced user deprecation notice
- return "$this->UnitConfigReader->setUnitOption($prefix, $name, $value)" call result
- add "kApplication::getUnitOptions" method, that will:
- have "@deprecated" tag
- have "@see kApplication::getUnitConfig" tag
- trigger silenced user deprecation notice
- return "$this->UnitConfigReader->getUnitOptions($prefix)" call result
- add "FormSubmissionsEventHandler::getFieldByRole" method, that will:
- have "@deprecated" tag
- have "@see FormSubmissionsEventHandler::getFieldNameByRole" tag
- trigger silenced user deprecation notice
- return "$this->getFieldNameByRole($form_id, $role)" call result
- add "kDBItem::getStatusField" method, that will:
- have "@deprecated" tag
- have "@see kUnitConfig::getStatusField" tag
- trigger silenced user deprecation notice
- return "$this->getUnitConfig()->getStatusField(true)" call result
- add "FormSubmissionsEventHandler::getFieldByRole" method, that will:
- have "@deprecated" tag
- trigger silenced user deprecation notice
- return result of calling "FormSubmissionsEventHandler::getFieldNameByRole" method
- fixes bc break of
-
INP-1203 OOP unit config creation
-
- Resolved
-