/**
  * NOTE: $shouldUpdateDailyVideosCollection will only work if we run harvest once
  * per 24 hours.... As it is set up now, we run PresentationImport hourly, hence catching
  * any new presentations almost as they arrive. When the nightly job runs, with $shouldUpdateDailyVideosCollection
  * set to true, it's too late; presentations have already been added throughout the day.
  *
  * Advise never to use $shouldUpdateDailyVideosCollection. We can use Mongo-queries to search by date instead...
  *
  * @param bool|false $shouldUpdateDailyVideosCollection
  */
 public function __construct($shouldUpdateDailyVideosCollection = false)
 {
     parent::__construct(PresentationSchema::COLLECTION_NAME);
     $this->currentPresentationId = $this->getLargestInsertedFileId();
     $this->insert = new PresentationInsert();
     $this->shouldUpdateDailyVideosCollection = $shouldUpdateDailyVideosCollection;
 }
 public function __construct()
 {
     parent::__construct(LastUpdatesSchema::COLLECTION_NAME);
     $this->log = new Logger('import');
     $this->mongo = new MongoConnection(LastUpdatesSchema::COLLECTION_NAME);
     $this->criteria = array(LastUpdatesSchema::DOCUMENT_KEY => Config::get('settings')['lastupdates_doc_key']);
     if ($this->_collectionDoesNotExist()) {
         $this->createCollection();
     }
 }
 public function __construct()
 {
     parent::__construct(OrgSchema::COLLECTION_NAME);
     $this->_usersCollection = new MongoConnection(UsersSchema::COLLECTION_NAME);
     $this->_orgCollection = new MongoConnection(OrgSchema::COLLECTION_NAME);
 }
 function __construct()
 {
     parent::__construct(UsersSchema::COLLECTION_NAME);
     $this->mongo = new MongoConnection(UsersSchema::COLLECTION_NAME);
 }
 public function __construct()
 {
     parent::__construct(PresentationSchema::COLLECTION_NAME);
     $this->mongo = new MongoConnection(PresentationSchema::COLLECTION_NAME);
 }
 public function __construct()
 {
     parent::__construct(DailyVideosSchema::COLLECTION_NAME);
 }
 public function __construct($collection)
 {
     parent::__construct($collection);
     $this->mongo = new MongoConnection($collection);
 }
 public function __construct()
 {
     parent::__construct(PresentationSchema::COLLECTION_NAME);
     $this->presentations = new MongoConnection(PresentationSchema::COLLECTION_NAME);
     $this->uniqueTraffic = new MongoConnection(DailyUniqueTrafficSchema::COLLECTION_NAME);
 }
 public function __construct()
 {
     parent::__construct(UsersSchema::COLLECTION_NAME);
     $this->mongo = new MongoConnection(UsersSchema::COLLECTION_NAME);
     $this->insert = new UserInsert(new MongoConnection(UsersSchema::COLLECTION_NAME));
 }
 public function __construct()
 {
     parent::__construct(UsersSchema::COLLECTION_NAME);
     $this->_mongoDatabaseConnection = new MongoConnection(UsersSchema::COLLECTION_NAME);
 }
 public function __construct()
 {
     parent::__construct(MediaSiteSchema::COLLECTION_NAME);
     $this->mongo = new MongoConnection(MediaSiteSchema::COLLECTION_NAME);
 }
 function __construct()
 {
     parent::__construct(PresentationSchema::COLLECTION_NAME);
     $this->math = new Arithmetic();
 }
 public function __construct()
 {
     parent::__construct(UsersSchema::COLLECTION_NAME);
     $this->mongo = new MongoConnection(UsersSchema::COLLECTION_NAME);
     $this->relaySQL = new \Uninett\Database\RelaySQLConnection();
 }
 public function __construct()
 {
     parent::__construct(UserDiskUsageSchema::COLLECTION_NAME);
     $this->userDiskUsageCollection = new MongoConnection(UserDiskUsageSchema::COLLECTION_NAME);
     $this->userCollection = new MongoConnection(UsersSchema::COLLECTION_NAME);
 }
 function __construct()
 {
     parent::__construct(UsersSchema::COLLECTION_NAME);
 }