You are here

public function QPDrupalDB::columnAfter in QueryPath 6

Same name and namespace in other branches
  1. 7.3 querypath.classes.inc \QPDrupalDB::columnAfter()
  2. 7.2 querypath.classes.inc \QPDrupalDB::columnAfter()

Insert data from the given column(s) after each element in the QueryPath.

This inserts data from the given columns after each element in the QueryPath object. IF HTML/XML is given in the $wrap parameter, then the column data will be wrapped in that markup before being inserted into the QueryPath.

Parameters

mixed $columnName: Either a string or an array of strings. The value(s) here should match one or more column headers from the current SQL {@link query}'s results.

string $wrap: IF this is supplied, then the value or values retrieved from the database will be wrapped in this HTML/XML before being inserted into the QueryPath.

See also

QueryPath::wrap()

QueryPath::after()

appendColumn()

File

./querypath.classes.inc, line 211
Classes that are part of the QueryPath module.

Class

QPDrupalDB
Add Drupal database support to QueryPath.

Code

public function columnAfter($columnName, $wrap = NULL) {
  return $this
    ->addData($columnName, 'after', $wrap);
}