public function QPDrupalDB::columnBefore in QueryPath 6
Same name and namespace in other branches
- 7.3 querypath.classes.inc \QPDrupalDB::columnBefore()
- 7.2 querypath.classes.inc \QPDrupalDB::columnBefore()
Insert the data from the given column before each element in the QueryPath.
This inserts the data before each element in the currently matched 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
prependColumn()
File
- ./
querypath.classes.inc, line 190 - Classes that are part of the QueryPath module.
Class
- QPDrupalDB
- Add Drupal database support to QueryPath.
Code
public function columnBefore($columnName, $wrap = NULL) {
return $this
->addData($columnName, 'before', $wrap);
}