示例#1
0
 public static function getChannelCollection()
 {
     if (MongoConnector::$db == null) {
         MongoConnector::connect();
     }
     return MongoConnector::$db->selectCollection("channels");
 }
示例#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")]]);
 }