. */ include_once 'propel/engine/database/model/Index.php'; /** * Information about unique columns of a table. This class assumes * that in the underlying RDBMS, unique constraints and unique indices * are roughly equivalent. For example, adding a unique constraint to * a column also creates an index on that column (this is known to be * true for MySQL and Oracle). * * @author Hans Lellelid (Propel) * @author Jason van Zyl (Torque) * @author Daniel Rall (Torque) * @version $Revision: 536 $ * @package propel.engine.database.model */ class Unique extends Index { /** * Default constructor. */ public function __construct(Table $table, $indexColumns = array()) { } /** * Returns true. */ public function isUnique() { return true; } /** * String representation of the index. This is an xml representation. */ public function toString() { $result = " getName() . "\">\n"; $columns = $this->getColumns(); for ($i=0, $size=count($columns); $i < $size; $i++) { $result .= " \n"; } $result .= " \n"; return $result; } }