Adodb Dokumentation  V5.14 8 Sept 2011
dbIndex Klassenreferenz
Klassendiagramm für dbIndex:
Zusammengehörigkeiten von dbIndex:

Öffentliche Methoden

 dbIndex (&$parent, $attributes=NULL)
 _tag_open (&$parser, $tag, $attributes)
 _tag_cdata (&$parser, $cdata)
 _tag_close (&$parser, $tag)
 addField ($name)
 addIndexOpt ($opt)
 create (&$xmls)
 drop ()
 dbIndex (&$parent, $attributes=NULL)
 _tag_open (&$parser, $tag, $attributes)
 _tag_cdata (&$parser, $cdata)
 _tag_close (&$parser, $tag)
 addField ($name)
 addIndexOpt ($opt)
 create (&$xmls)
 drop ()

Datenfelder

 $name
 $opts = array()
 $columns = array()
 $drop = FALSE

Ausführliche Beschreibung

Definiert in Zeile 614 der Datei adodb-xmlschema.inc.php.


Dokumentation der Elementfunktionen

_tag_cdata ( &$  parser,
cdata 
)

XML Callback to process CDATA elements

Processes XML cdata.

private

Erneute Implementation von dbObject.

Definiert in Zeile 686 der Datei adodb-xmlschema.inc.php.

                                                {
                switch( $this->currentElement ) {
                        // Index field name
                        case 'COL':
                                $this->addField( $cdata );
                                break;
                        default:
                                
                }
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

_tag_cdata ( &$  parser,
cdata 
)

XML Callback to process CDATA elements

Processes XML cdata.

private

Erneute Implementation von dbObject.

Definiert in Zeile 727 der Datei adodb-xmlschema03.inc.php.

                                                {
                switch( $this->currentElement ) {
                        // Index field name
                        case 'COL':
                                $this->addField( $cdata );
                                break;
                        default:
                                
                }
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

_tag_close ( &$  parser,
tag 
)

XML Callback to process end elements

private

Erneute Implementation von dbObject.

Definiert in Zeile 702 der Datei adodb-xmlschema.inc.php.

                                              {
                $this->currentElement = '';
                
                switch( strtoupper( $tag ) ) {
                        case 'INDEX':
                                xml_set_object( $parser, $this->parent );
                                break;
                }
        }
_tag_close ( &$  parser,
tag 
)

XML Callback to process end elements

private

Erneute Implementation von dbObject.

Definiert in Zeile 743 der Datei adodb-xmlschema03.inc.php.

                                              {
                $this->currentElement = '';
                
                switch( strtoupper( $tag ) ) {
                        case 'INDEX':
                                xml_set_object( $parser, $this->parent );
                                break;
                }
        }
_tag_open ( &$  parser,
tag,
attributes 
)

XML Callback to process start elements

Processes XML opening tags. Elements currently processed are: DROP, CLUSTERED, BITMAP, UNIQUE, FULLTEXT & HASH.

private

Erneute Implementation von dbObject.

Definiert in Zeile 659 der Datei adodb-xmlschema.inc.php.

                                                          {
                $this->currentElement = strtoupper( $tag );
                
                switch( $this->currentElement ) {
                        case 'DROP':
                                $this->drop();
                                break;
                        case 'CLUSTERED':
                        case 'BITMAP':
                        case 'UNIQUE':
                        case 'FULLTEXT':
                        case 'HASH':
                                // Add index Option
                                $this->addIndexOpt( $this->currentElement );
                                break;
                        default:
                                // print_r( array( $tag, $attributes ) );
                }
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

_tag_open ( &$  parser,
tag,
attributes 
)

XML Callback to process start elements

Processes XML opening tags. Elements currently processed are: DROP, CLUSTERED, BITMAP, UNIQUE, FULLTEXT & HASH.

private

Erneute Implementation von dbObject.

Definiert in Zeile 700 der Datei adodb-xmlschema03.inc.php.

                                                          {
                $this->currentElement = strtoupper( $tag );
                
                switch( $this->currentElement ) {
                        case 'DROP':
                                $this->drop();
                                break;
                        case 'CLUSTERED':
                        case 'BITMAP':
                        case 'UNIQUE':
                        case 'FULLTEXT':
                        case 'HASH':
                                // Add index Option
                                $this->addIndexOpt( $this->currentElement );
                                break;
                        default:
                                // print_r( array( $tag, $attributes ) );
                }
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

addField ( name)

Adds a field to the index

Parameter:
string$nameField name
Rückgabe:
string Field list

Definiert in Zeile 718 der Datei adodb-xmlschema.inc.php.

                                   {
                $this->columns[$this->FieldID( $name )] = $name;
                
                // Return the field list
                return $this->columns;
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

addField ( name)

Adds a field to the index

Parameter:
string$nameField name
Rückgabe:
string Field list

Definiert in Zeile 759 der Datei adodb-xmlschema03.inc.php.

                                   {
                $this->columns[$this->FieldID( $name )] = $name;
                
                // Return the field list
                return $this->columns;
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

addIndexOpt ( opt)

Adds options to the index

Parameter:
string$optComma-separated list of index options.
Rückgabe:
string Option list

Definiert in Zeile 731 der Datei adodb-xmlschema.inc.php.

                                     {
                $this->opts[] = $opt;
                
                // Return the options list
                return $this->opts;
        }

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

addIndexOpt ( opt)

Adds options to the index

Parameter:
string$optComma-separated list of index options.
Rückgabe:
string Option list

Definiert in Zeile 772 der Datei adodb-xmlschema03.inc.php.

                                     {
                $this->opts[] = $opt;
                
                // Return the options list
                return $this->opts;
        }
create ( &$  xmls)

Generates the SQL that will create the index in the database

Parameter:
object$xmlsadoSchema object
Rückgabe:
array Array containing index creation SQL

Erneute Implementation von dbObject.

Definiert in Zeile 744 der Datei adodb-xmlschema.inc.php.

                                  {
                if( $this->drop ) {
                        return NULL;
                }
                
                // eliminate any columns that aren't in the table
                foreach( $this->columns as $id => $col ) {
                        if( !isset( $this->parent->fields[$id] ) ) {
                                unset( $this->columns[$id] );
                        }
                }
                
                return $xmls->dict->CreateIndexSQL( $this->name, $this->parent->name, $this->columns, $this->opts );
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

create ( &$  xmls)

Generates the SQL that will create the index in the database

Parameter:
object$xmlsadoSchema object
Rückgabe:
array Array containing index creation SQL

Erneute Implementation von dbObject.

Definiert in Zeile 785 der Datei adodb-xmlschema03.inc.php.

                                  {
                if( $this->drop ) {
                        return NULL;
                }
                
                // eliminate any columns that aren't in the table
                foreach( $this->columns as $id => $col ) {
                        if( !isset( $this->parent->fields[$id] ) ) {
                                unset( $this->columns[$id] );
                        }
                }
                
                return $xmls->dict->CreateIndexSQL( $this->name, $this->parent->name, $this->columns, $this->opts );
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

dbIndex ( &$  parent,
attributes = NULL 
)

Initializes the new dbIndex object.

Parameter:
object$parentParent object
array$attributesAttributes

Definiert in Zeile 645 der Datei adodb-xmlschema.inc.php.

                                                         {
                $this->parent = $parent;
                
                $this->name = $this->prefix ($attributes['NAME']);
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

dbIndex ( &$  parent,
attributes = NULL 
)

Initializes the new dbIndex object.

Parameter:
object$parentParent object
array$attributesAttributes

Definiert in Zeile 686 der Datei adodb-xmlschema03.inc.php.

                                                         {
                $this->parent = $parent;
                
                $this->name = $this->prefix ($attributes['NAME']);
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

drop ( )

Marks an index for destruction

Definiert in Zeile 762 der Datei adodb-xmlschema.inc.php.

                        {
                $this->drop = TRUE;
        }

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

drop ( )

Marks an index for destruction

Definiert in Zeile 803 der Datei adodb-xmlschema03.inc.php.

                        {
                $this->drop = TRUE;
        }

Hier ist ein Graph der zeigt, was diese Funktion aufruft:


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: