dbTable::addIndex PHP Method

addIndex() public method

Adds an index to a table object
public addIndex ( array $attributes ) : object
$attributes array Index attributes
return object dbIndex object
    function addIndex($attributes)
    {
        $name = strtoupper($attributes['NAME']);
        $this->indexes[$name] = new dbIndex($this, $attributes);
        return $this->indexes[$name];
    }