View Issue Details

IDProjectCategoryView StatusLast Update
0005503OXID ERP InterfaceOXID ERP Interface - subpublic2024-01-25 08:35
Reportermichael_keiluweit Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2.11.1_54476 
Summary0005503: Confusing names of two methods
DescriptionThe method OXERPSetArticleCategory can set one article to one or more categories.
The method OXERPSetObject2Category can set one or more articles to one category.


So the names should like

OXERPSetArticle2Categories
and
OXERPSetArticles2Category
TagsNo tags attached.

Activities

michael_keiluweit

2013-11-06 10:07

administrator   ~0009232

just an idea:
Because we use singular and plural namings of other objets (example: OXERPGetOrderArticleFile -> OXERPGetOrderArticleFiles) we need a second method like OXERPSETArticles2Category to make the differents more clearier.

But I am not 100% sure because we use this only for the getters, but it would also make sense to use this at setters.

If we follow the line to set everytime one object, than the method OXERPSetObject2Category has one feature which no other setter method has and it breaks the rules.

michael_keiluweit

2024-01-25 08:35

administrator   ~0016192

Technically it states that OXERPSetObject2Category is not only for article -> category relationships.