Lines Matching refs:table

81 	protected $table = null;  variable in Database2
281 if ( is_null( $this->table ) )
584 * @param string $table name of table to work with
589 public function process( $table, $code, $options ) argument
636 $table = preg_replace( '/[^\w]/', '_', trim( $table ) );
638 if ( in_array( $table, array( '__keys', '__locks', '__log', ) ) )
641 $this->table = $table;
712 $action, $this->table ) . '</div>' );
739 $action, $this->table ) . '</div>' );
795 if ( !$this->exists( $this->table ) )
872 $this->table, $idColumn );
926 $sql = "CREATE TABLE {$this->table}\n(\n\t" . implode( ",\n\t", $cols ).
932 $this->table ) );
935 $this->log( 'create', $this->table );
965 if ( $rowid && !$readOnly && !$this->obtainLock( $this->table, $rowid ) )
1017 if ( $rowid && !$readOnly && !$this->releaseLock( $this->table, $rowid ) )
1098 if ( !( $record[$idColumn] = $this->nextID( $this->table, true ) ) )
1102 $this->table,
1118 $this->table, implode( ',', $assignments ),
1136 $this->log( $log[1], $this->table, $log[0] );
1148 if ( $rowid && !$readOnly && !$this->releaseLock( $this->table, $rowid, true ) )
1208 $cols, $this->table, $idColumn );
1386 if ( !$this->obtainLock( $this->table, $rowid, true, true ) )
1396 $st = $this->db->prepare( 'DELETE FROM ' . $this->table . ' WHERE '.
1404 $this->log( 'delete', $this->table, $rowid );
1436 if ( !$this->obtainLock( $this->table, null, true, true ) )
1444 if ( $this->db->query( 'DROP TABLE ' . $this->table ) === false )
1445 throw new PDOException( sprintf( $this->getLang( 'nodrop' ), $this->table ) );
1447 $this->log( 'drop', $this->table );
1536 $query = "SELECT COUNT(*) FROM {$this->table}";
1648 $query = 'SELECT ' . $columns . ' FROM ' . $this->table;
2081 $table = <<<EOT
2100 $table = <<<EOT
2117 $table
2129 $table = <<<EOT
2134 $table
2141 return $expectInput ? $this->wrapInForm( $table ) : $table;
2331 $this->table . '_' . $this->getIndex();
2680 ' FROM ' . $this->table . $filter . $order );
2720 ' FROM ' . $this->table . $filter . $order .
4095 * @param string $table name of table to test
4100 protected function exists( $table, $column = null ) argument
4104 $sql = 'SELECT COUNT(*) FROM ' . $table;
4106 $sql = 'SELECT COUNT(' . $column . ') FROM ' . $table;
4146 * @param string $table name of table
4151 protected function nextID( $table, $nestedTransaction = false ) argument
4178 if ( !$st->execute( array( $table ) ) )
4204 if ( !$st->execute( array( $nextID, $table ) ) )
4265 * @param string $table name of table
4269 protected function log( $action, $table, $rowid = null ) argument
4294 if ( !$st->execute( array( $table, intval( $rowid ), $action,
4316 * @param string $table name of table lock is related to
4325 …protected function obtainLock( $table, $rowid = null, $inTransaction = false, $checkOnly = false, … argument
4364 if ( !$this->obtainLock( $table, null, true, true, true ) )
4379 if ( !$st->execute( array( $table, $currentUser ) ) )
4400 if ( !$st->execute( array( $table, $rowid ) ) )
4439 if ( !$st->execute( array( $currentUser, time(), $table, $rowid ) ))
4471 * @param string $table name of table lock is related to
4478 protected function releaseLock( $table, $rowid = null, $inTransaction = false ) argument
4500 if ( !$this->obtainLock( $table, $rowid, true, true, true ) )
4511 if ( !$st->execute( array( $table, $rowid, $currentUser ) ) )
4571 $selector = array( '@'.$this->dsn, $this->authSlot, $this->table,
4630 $selector = array( '@'.$this->dsn, $this->authSlot, $this->table,'fake',