예제 #1
0
 /**
  * @param string $sWhere
  * @return string
  */
 protected function getGroupByWhere($sWhere)
 {
     $aMap = api_AContainer::DbReadKeys(CGroup::GetStaticMap());
     $aMap = array_map(array($this, 'escapeColumn'), $aMap);
     $sSql = 'SELECT %s FROM %sawm_addr_groups WHERE %s';
     return sprintf($sSql, implode(', ', $aMap), $this->Prefix(), $sWhere);
 }