private static function _extractWhereAssociativeConditions($conditions, $cls, $escape)
    {
        $temp_cond = "";
        foreach ($conditions as $key => $value) {
            $temp_cond .= "$escape".self::getTableName()."$escape.$escape".self::$_mapping[$cls][$key]."$escape=? and ";
        }
        return substr($temp_cond, 0, strlen($temp_cond)-5);
    }
private static function _extractWhereAssociativeConditions($conditions, $cls, $escape)
    {
        $temp_cond = "";
        foreach ($conditions as $key => $value) {
            $temp_cond .= "$escape".self::getTableName()."$escape.$escape".self::$_mapping[$cls][$key]."$escape=? and ";
        }
        return substr($temp_cond, 0, strlen($temp_cond)-5);
    }
private static function _extractWhereAssociativeConditions ( $ conditions , $ cls , $ escape ) { $ temp_cond = "" ; foreach ( $ conditions as $ key => $ value ) { $ temp_cond .= "$escape" . self :: getTableName ( ) . "$escape.$escape" . self :: $ _mapping [ $ cls ] [ $ key ] . "$escape=? and " ; } return substr ( $ temp_cond , 0 , strlen ( $ temp_cond ) - 5 ) ; }
Extract where conditions string, from an associative array

@param mixed  $conditions to extract
@param string $cls        class
@param string $escape     escape char

@return string where conditions
Extract where conditions string from an associative array