tableName : $this->founderGroupTableName; return $this->query->from($table_name)->getall(); } public function searchGroup($is_vice_founder = false) { $table_name = empty($is_vice_founder) ? $this->tableName : $this->founderGroupTableName; return $this->query->from($table_name)->get(); } public function searchWithId($id) { $this->query->where('id', $id); return $this; } public function searchWithName($name) { $this->query->where('name', $name); return $this; } public function searchWithNoId($id) { $this->query->where('id !=', $id); return $this; } }