aboutsummaryrefslogtreecommitdiff
path: root/interface.php
blob: 5ba5a55ad91e0eb9fa92967383c203c8a5ed84a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Database procedures.
 */

/**
 * Generic interface for reading Isis databases.
 */
interface IsisDb {
  // Constructor.
  public function __construct($schema);

  // Read an entry.
  public function read($id);

  // Return number of rows in the database.
  public function rows();

  // Return a default example schema.
  public function default_schema();
}