A wrong designed class "Criteria"

Date 2006-06-02 09:39:19 | Category: XOOPS

in englishin japanese
Criteria is a class for XOOPS.
eg.

$criteria =& new Criteria( 'property_name' , 'value' , 'operator' ) ;

This Criteria does not have data type for the value.
Thus, all values should be considered as string.

But some patterns of value will be considered as the other type.
It's a critical design.

If Criteria will be used XOOPS continuously, it should be added a parameter for specifying value's type.





You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=120