constants for publish values

12 views
Skip to first unread message

AJH

unread,
Aug 1, 2012, 1:01:12 AM8/1/12
to joomla-de...@googlegroups.com
Out of curiosity, why aren't the Joomla! publish types a set of constants defined in a common location?
e.g. in ControllerAdmin::publish() :
array('publish' => 1, 'unpublish' => 0, 'archive' => 2, 'trash' => -2, 'report' => -3);

I've seen these numeric values used elsewhere in the JGrid as well.

b2z

unread,
Aug 1, 2012, 2:16:41 AM8/1/12
to joomla-de...@googlegroups.com
Agree. Seems like "magic numbers" and such should be avoided of course. But IMO this thread should moved to the CMS Dev.
Reply all
Reply to author
Forward
0 new messages