Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. add the "CategoriesEventHandler::ensureCorrectPriority($priority, $parent_category_id)" method that will: - 0.5h
    1. if given value is positive multiply by "-1"
    2. call "CategoriesEventHandler::_getNextPriority" method to get minimal allowed priority
    3. if number given priority is smaller, than minimal allowed, then use minimal allowed one
    4. return priority
  2. add "IN_MENU" node of "boolean" type - 0.2h
  3. add "ORDER" node of "integer" type - 0.3h
  4. add "FILENAME" node of "string" type - 0.3h
  5. in the "CategoriesEventHandler::_prepareAutoPage" method: - 0.5h
    1. when "IN_MENU" is true, then set "IsMenu" field to "1"
    2. when "ORDER" is specified, then call "CategoriesEventHandler::ensureCorrectPriority" method to get actual priority value instead of calling "CategoriesEventHandler::_getNextPriority")
    3. when "FILENAME" is specified, then set "AutoFilename" to "0" and put specified value into "Filename" field

Quote: 1.5h*1.4=2h

Related Discussions

...