public function searchLibrary($string, $time = null)
    {
        $this->setUpList();
        $this->search_library_stm->bindValue(':like', "%$string%");
        $this->search_library_stm->bindValue(':time', $time == null ? 0 : $time);
        $this->search_library_stm->execute();

        $retArray = [];
        foreach ($this->search_library_stm->fetchAll(PDO::FETCH_ASSOC) as $val) {
            $id = $val["id"];
            if (!isset($this->idArray[$id])) {
                continue;
            }
            $retArray[$id] = $this->idArray[$id];
        }

        return $retArray;
    }