Beispiel #1
0
 public static function getChannelCollection()
 {
     if (MongoConnector::$db == null) {
         MongoConnector::connect();
     }
     return MongoConnector::$db->selectCollection("channels");
 }
Beispiel #2
0
 public static function updateRepos($name, $repos)
 {
     return MongoConnector::getUserCollection()->update(["_id" => $name], ['$set' => ["repos" => $repos, "reposupdated" => @date("F j, Y, g:i a")]]);
 }