Пример #1
0
 public function createBatchCreatorSoftwareAgent()
 {
     if (!\MongoDB\SoftwareAgent::find('batchcreator')) {
         $softwareAgent = new \MongoDB\SoftwareAgent();
         $softwareAgent->_id = "batchcreator";
         $softwareAgent->label = "This component is used for creating batches with units etc.";
         $softwareAgent->save();
     }
 }
Пример #2
0
 public function createOpenimagesVideoDescriptionExtractorSoftwareAgent()
 {
     if (!\MongoDB\SoftwareAgent::find('videodescriptiongetter')) {
         $softwareAgent = new \MongoDB\SoftwareAgent();
         $softwareAgent->_id = "videodescriptiongetter";
         $softwareAgent->label = "This component is used for getting the videos description from openimages.nl and storing them as documents within MongoDB";
         $softwareAgent->save();
     }
 }