I would have suggested the opposite and directly created the array in the method instead of redirecting to a method that uses a switch to differentiate again.

Am 10.02.2013 um 00:30 schrieb Nathaniel Higgins <notifications@github.com>:

> In system/classes/database.php:
> 
> > +        return static::query($val, static::query_arr('gte'));
> > +    }
> > +
> > +    public static function where_lt($val) {
> > +        return static::query($val, static::query_arr('lt'));
> > +    }
> > +
> > +    public static function where_lte($val) {
> > +        return static::query($val, static::query_arr('lte'));
> > +    }
> > +
> > +    public static function where_not($val) {
> > +        return static::query($val, static::query_arr('not'));
> > +    }
> > +
> > +    public static function query_arr($name) {
> Actually, I'll make this a __callStatic. where_xyz calls query_arr(xyz).
> 
> —
> Reply to this email directly or view it on GitHub..
>