コード例 #1
0
 /**
  * @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);
 }