コード例 #1
0
 protected function createMultipleConcepts()
 {
     $titleLookup = new TitleLookup($this->store->getConnection('mw.db'));
     $titleLookup->setNamespace(SMW_NS_CONCEPT);
     if ($this->endId == 0 && $this->startId == 0) {
         return $titleLookup->selectAll();
     }
     $endId = $titleLookup->getMaxId();
     if ($this->endId > 0) {
         $endId = min($this->endId, $endId);
     }
     return $titleLookup->selectByIdRange($this->startId, $endId);
 }