You are here

abstract class BaseIndex in Schema 8

Hierarchy

  • class \Drupal\schema\Comparison\Result\BaseIndex

Expanded class hierarchy of BaseIndex

File

src/Comparison/Result/BaseIndex.php, line 10
Contains Drupal\schema\Comparison\Result\BaseIndex.

Namespace

Drupal\schema\Comparison\Result
View source
abstract class BaseIndex {
  protected $table_name;
  protected $index_name;
  protected $index_type;
  protected $schema;
  public function __construct($table_name, $index_name, $index_type, $schema) {
    $this->table_name = $table_name;
    $this->index_name = $index_name;
    $this->index_type = $index_type;
    $this->schema = $schema;
  }
  public function getType() {
    return $this->index_type;
  }
  public function getTableName() {
    return $this->table_name;
  }
  public function getIndexName() {
    return $this->index_name;
  }
  public function isPrimary() {
    return $this->index_type == 'PRIMARY';
  }
  public function getModule() {
    if (isset($this->schema['module'])) {
      return $this->schema['module'];
    }
    return t('Unknown');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BaseIndex::$index_name protected property
BaseIndex::$index_type protected property
BaseIndex::$schema protected property
BaseIndex::$table_name protected property
BaseIndex::getIndexName public function
BaseIndex::getModule public function
BaseIndex::getTableName public function
BaseIndex::getType public function
BaseIndex::isPrimary public function
BaseIndex::__construct public function 1