CoughPHP

CoughPHP is a light-weight but powerful ORM for PHP. As with LightVC, there were a few modifications I wanted to make:

  • MyCoughCollection extends CoughCollection
    • getAll($where = null, $order_by = null) New - I use this as a helper in the model collection class to build the custom record getters.
    • buildWhere($where = null) New - It didn't see right to be doing this sort of thing in the getAll method, so I pre-factored the code into this method.
  • MyCoughObject extends CoughObject
    • softDelete() New - Sets "status" field to "Deleted" (that's how I do it. =)