function addIndex($attributes) { $name = strtoupper($attributes['NAME']); $this->indexes[$name] = new dbIndex($this, $attributes); return $this->indexes[$name]; }