Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1675

[bc fix] OOP unit config creation

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Scheduled
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.3.0
    • Component/s: Unit Configs
    • Labels:
      None

      Description

      1. 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
      2. 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
      3. 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
      4. 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
      5. 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
      6. 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
      7. 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
      8. 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
      9. add "FormSubmissionsEventHandler::getFieldByRole" method, that will:
        • have "@deprecated" tag
        • trigger silenced user deprecation notice
        • return result of calling "FormSubmissionsEventHandler::getFieldNameByRole" method

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: