/** * Get address fields 1-3 for primary address from database * * @param mixed $element * @internal addr_address false field is a concatenation of add1 and add2 therefore, we use the || standard concatenation operator for select */ function select_adr_one_street($element) { $this->set_primary_address($element); $this->field_list['adr_one_street'] = phpgwapi_sql::concat_null(array($this->put_alias('add1'), $this->put_alias('add2'), $this->put_alias('add3'))); }
function full_name() { $this->add_field('per_full_name', phpgwapi_sql::concat_null(array($this->real_field('per_prefix'), phpgwapi_sql::string(' '), $this->real_field('per_first_name'), phpgwapi_sql::string(' '), $this->real_field('per_middle_name'), phpgwapi_sql::string(' '), $this->real_field('per_last_name'), phpgwapi_sql::string(' '), $this->real_field('per_suffix')))); }