/** * @param string $sWhere * @return string */ protected function getUserByWhere($sWhere) { $aMap = api_AContainer::DbReadKeys(CHelpdeskUser::GetStaticMap()); $aMap = array_map(array($this, 'escapeColumn'), $aMap); $sSql = 'SELECT %s FROM %sahd_users WHERE %s'; return sprintf($sSql, implode(', ', $aMap), $this->Prefix(), $sWhere); }