function find(array $logic = null) {

		$logic != null or $logic = [];

		$opt = [];
		foreach (['%fields', '%order_by', '%limit', '%offset'] as $key) {
			if (isset($logic[$key])) {
				$opt[$key] = $logic[$key];
				unset($logic[$key]);
			}
			else { // %filter not set
				$opt[$key] = [];
			}
		}

		$entries = $this->sqlfind
			(
				$logic,
				$opt['%fields'],
				$opt['%order_by'],
				$opt['%limit'],
				$opt['%offset']
			);

		return $this->toModels($entries);
	}
function find(array $logic = null) {

		$logic != null or $logic = [];

		$opt = [];
		foreach (['%fields', '%order_by', '%limit', '%offset'] as $key) {
			if (isset($logic[$key])) {
				$opt[$key] = $logic[$key];
				unset($logic[$key]);
			}
			else { // %filter not set
				$opt[$key] = [];
			}
		}

		$entries = $this->sqlfind
			(
				$logic,
				$opt['%fields'],
				$opt['%order_by'],
				$opt['%limit'],
				$opt['%offset']
			);

		return $this->toModels($entries);
	}
function find ( array $ logic = null ) { $ logic != null or $ logic = [ ] ; $ opt = [ ] ; foreach ( [ '%fields' , '%order_by' , '%limit' , '%offset' ] as $ key ) { if ( isset ( $ logic [ $ key ] ) ) { $ opt [ $ key ] = $ logic [ $ key ] ; unset ( $ logic [ $ key ] ) ; } else { // %filter not set $ opt [ $ key ] = [ ] ; } } $ entries = $ this -> sqlfind ( $ logic , $ opt [ '%fields' ] , $ opt [ '%order_by' ] , $ opt [ '%limit' ] , $ opt [ '%offset' ] ) ; return $ this -> toModels ( $ entries ) ; }
You can specify fields via %fields
You can specify limit via %limit and offset via %offset
You can specify order rules via %order_by

Everything else is interpreted as constraints on the entries.

@return array [ models ]
You can specify fields via %fields You can specify limit via %limit and offset via %offset You can specify order rules via %order_by