You are here

public function MigrateSQLMap::messageCount in Migrate 6.2

Same name and namespace in other branches
  1. 7.2 plugins/sources/sqlmap.inc \MigrateSQLMap::messageCount()

Get the number of messages saved.

Return value

int Number of messages.

Overrides MigrateMap::messageCount

File

plugins/sources/sqlmap.inc, line 445
Defines a Drupal db-based implementation of MigrateMap.

Class

MigrateSQLMap
@file Defines a Drupal db-based implementation of MigrateMap.

Code

public function messageCount() {
  $query = $this->connection
    ->select($this->messageTable);
  $query
    ->addExpression('COUNT(*)', 'count');
  $count = $query
    ->execute()
    ->fetchField();
  return $count;
}