ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:structure:setnewname

setNewName

From Version 5.21.0-beta-2

See Also

Structured Schema Management

Applies To

Table Names
Column Names

Syntax
obj setNewName(
    string $newName
)

The method setNewName() is part of the Structured Schema Management suite, and is used in methods that set new names for objects. The method is only applicable to the 'table' and 'column' objects.


Parameters

$newName

The new name to be provided to the method

Usage

$t = new metaObjectStructure($dict,'employees');
 
$t->setNewName('new-employees');
 
$sql = $dict->renameTableSql($t);
v5/dictionary/structure/setnewname.txt · Last modified: 2016/04/09 19:24 by mnewnham