- Return $this from add() and addOrderBy() methods - Add method newInstance() # With these, the Criteria class can be used in a "fluent interface" # way. Example: # -- cut -- #  $c= Criteria::newInstance() #    ->add('bz_id', 500, EQUAL) #    ->add('author', array(1549, 1552), IN) #    ->addOrderBy('created_at', DESCENDING) #  ; # -- cut -- # The newInstance() method is necessary because of a parser deficit in PHP5 # which does not allow chaining after the new operator. This means the # following: # -- cut -- # new Criteria()->add(...) # -- cut -- # is not possible and will raise a syntax error.
- Return $this from add() and addOrderBy() methods
- Add method newInstance()
# With these, the Criteria class can be used in a "fluent interface"
# way. Example:
# -- cut --
#  $c= Criteria::newInstance()
#    ->add('bz_id', 500, EQUAL)
#    ->add('author', array(1549, 1552), IN)
#    ->addOrderBy('created_at', DESCENDING)
#  ;
# -- cut --
# The newInstance() method is necessary because of a parser deficit in PHP5
# which does not allow chaining after the new operator. This means the
# following:
# -- cut --
# new Criteria()->add(...)
# -- cut --
# is not possible and will raise a syntax error.


git-svn-id: 526f3b90ad6d9b1dfe840af828070ca3d99521ac@9315 d2cacbed-c0f6-0310-851a-9dad52fc623a

johannes85/core