public function revisioning_handler_field_revision_state::query in Revisioning 7
Same name and namespace in other branches
- 8 views/revisioning_handler_field_revision_state.inc \revisioning_handler_field_revision_state::query()
- 6.4 views/revisioning_handler_field_revision_state.inc \revisioning_handler_field_revision_state::query()
- 6.3 views/revisioning_handler_field_revision_state.inc \revisioning_handler_field_revision_state::query()
Help build the query.
Overrides views_handler_field::query
File
- views/
revisioning_handler_field_revision_state.inc, line 44 - Handler for the 'Node revision: state' field.
Class
- revisioning_handler_field_revision_state
- @file Handler for the 'Node revision: state' field.
Code
public function query() {
// Not calling parent::query() as it will treat 'state' as a real db field.
$this
->ensure_my_table();
$this
->add_additional_fields();
if (empty($this->_node_based)) {
$join = new views_join();
$join
->construct('node', $this->table_alias, 'nid', 'nid');
$table_alias = $this->query
->ensure_table('node', $this->table_alias, $join);
$this->aliases['published'] = $this->query
->add_field($table_alias, 'status');
$this->aliases['current_vid'] = $this->query
->add_field($table_alias, 'vid');
}
}