public function where(array $conditions = array(), $type = "AND", $setType = "AND") { $where = array(); $where['conditions'] = $conditions; $where['type'] = $type; $where['setType'] = $setType; $this->conditions[] = $where; return $this; }