|
Adodb Dokumentation
V5.14 8 Sept 2011
|


Ö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 | |
Definiert in Zeile 614 der Datei adodb-xmlschema.inc.php.
| _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:
}
}

| _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:
}
}

| _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 ) );
}
}

| _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 ) );
}
}

| addField | ( | $ | name | ) |
Adds a field to the index
| string | $name | Field name |
Definiert in Zeile 718 der Datei adodb-xmlschema.inc.php.
{
$this->columns[$this->FieldID( $name )] = $name;
// Return the field list
return $this->columns;
}


| addField | ( | $ | name | ) |
Adds a field to the index
| string | $name | Field name |
Definiert in Zeile 759 der Datei adodb-xmlschema03.inc.php.
{
$this->columns[$this->FieldID( $name )] = $name;
// Return the field list
return $this->columns;
}

| addIndexOpt | ( | $ | opt | ) |
Adds options to the index
| string | $opt | Comma-separated list of index options. |
Definiert in Zeile 731 der Datei adodb-xmlschema.inc.php.
{
$this->opts[] = $opt;
// Return the options list
return $this->opts;
}

| addIndexOpt | ( | $ | opt | ) |
Adds options to the index
| string | $opt | Comma-separated list of index options. |
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
| object | $xmls | adoSchema object |
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 );
}

| create | ( | &$ | xmls | ) |
Generates the SQL that will create the index in the database
| object | $xmls | adoSchema object |
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 );
}

| dbIndex | ( | &$ | parent, |
| $ | attributes = NULL |
||
| ) |
Initializes the new dbIndex object.
| object | $parent | Parent object |
| array | $attributes | Attributes |
Definiert in Zeile 645 der Datei adodb-xmlschema.inc.php.

| dbIndex | ( | &$ | parent, |
| $ | attributes = NULL |
||
| ) |
Initializes the new dbIndex object.
| object | $parent | Parent object |
| array | $attributes | Attributes |
Definiert in Zeile 686 der Datei adodb-xmlschema03.inc.php.

| drop | ( | ) |
Marks an index for destruction
Definiert in Zeile 762 der Datei adodb-xmlschema.inc.php.
{
$this->drop = TRUE;
}

| drop | ( | ) |
Marks an index for destruction
Definiert in Zeile 803 der Datei adodb-xmlschema03.inc.php.
{
$this->drop = TRUE;
}
