You are here

public function PartyQuery::alias in Party 7

Same name and namespace in other branches
  1. 8.2 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 70
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;
}