/** * @see MessageReporter::reportMessage * * @since 2.5 * * @param string $message */ public function reportMessage($message) { if ($this->messageReporter === null) { return; } $this->messageReporter->reportMessage($message); }
private function doCheckPredefinedPropertyBorder($connection) { // Check if we already have this structure $expectedID = SQLStore::FIXED_PROPERTY_ID_UPPERBOUND; $currentID = $connection->selectRow(SQLStore::ID_TABLE, 'smw_id', 'smw_iw=' . $connection->addQuotes(SMW_SQL3_SMWBORDERIW)); if ($currentID !== false && $currentID->smw_id == $expectedID) { return $this->messageReporter->reportMessage(" ... space for internal properties already allocated.\n"); } // Legacy bound $currentID = $currentID === false ? 50 : $currentID->smw_id; $this->messageReporter->reportMessage(" ... allocating space for internal properties ...\n"); $this->store->getObjectIds()->moveSMWPageID($expectedID); $connection->insert(SQLStore::ID_TABLE, array('smw_id' => $expectedID, 'smw_title' => '', 'smw_namespace' => 0, 'smw_iw' => SMW_SQL3_SMWBORDERIW, 'smw_subobject' => '', 'smw_sortkey' => ''), __METHOD__); $this->messageReporter->reportMessage(" ... moving from {$currentID} to {$expectedID} "); // make way for built-in ids for ($i = $currentID; $i < $expectedID; $i++) { $this->store->getObjectIds()->moveSMWPageID($i); $this->messageReporter->reportMessage('.'); } $this->messageReporter->reportMessage("\n ... done.\n"); }
protected function reportMessage($message) { $this->reporter->reportMessage($message); }
private function reportMessage($message, $output = true) { if ($output) { $this->reporter->reportMessage($message); } }
private function reportMessage($message, $verbose = true) { if ($verbose) { $this->messageReporter->reportMessage($message); } }