Merge "Make LogFormatter::msg() use RequestContext::msg() instead of reinventing...
[lhc/web/wiklou.git] / includes / dao / IDBAccessObject.php
1 <?php
2 /**
3 * This file contains database access object related constants.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * http://www.gnu.org/copyleft/gpl.html
19 *
20 * @file
21 * @ingroup Database
22 */
23
24 /**
25 * Interface for database access objects
26 */
27 interface IDBAccessObject {
28 const LATEST_READ = 1; // read from the master
29 const FOR_UPDATE = 2; // lock the rows read
30 const LOCKING_READ = 3; // LATEST_READ | FOR_UPDATE
31 const AVOID_MASTER = 4; // avoiding checking the master
32 }