Login   Register  
PHP Classes

File: DATA/PrimaryKeyNeeded.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Martin Alterisio  >  DATA  >  DATA/PrimaryKeyNeeded.php  >  Download  
File: DATA/PrimaryKeyNeeded.php
Role: Class source
Content type: text/plain
Description: An exception thrown when a primary key is required for the operation requested.
Class: DATA
Access data stored in MySQL tables like arrays
Author: By
Last change: v0.8 - new exception hierarchy
Date: 7 years ago
Size: 493 bytes


Class file image Download
 * @package DATA

 * An exception thrown when a primary key is required for the
 * operation requested.
class DATA_PrimaryKeyNeeded extends DATA_IndexingStrategyException {
     * Default constructor.
     * @param string $table The name of the table where the primary
     *                      key is required.
function __construct($table) {
parent::__construct("A primary key is needed in table '$table'.");