You are here

public function PartyQuery::alias in Party 8.2

Same name and namespace in other branches
  1. 7 includes/party.extender.inc \PartyQuery::alias()

Get or set the alias for the base party table.

Parameters

string $alias: Optionally a string containing the base party table alias. If FALSE we return the alias without changing it.

Return value

string The alias for the base party table.

File

includes/party.extender.inc, line 76
Class to aid querying parties and attached entities.

Class

PartyQuery
Query extender for party attached entities.

Code

public function alias($alias = FALSE) {
  if ($alias) {
    $this->base_alias = $alias;
  }
  return $alias;
}