Commit 57f7bbca2fc7746b8e630e33cb9888e6bed465ae
Exists in
master
Merge branch 'master' into 'master'
Merge request - Removido método com bug não utilizado pelo sistema See merge request !7
Showing
1 changed file
with
1 additions
and
69 deletions
Show diff stats
ieducar/intranet/include/pessoa/clsLogradouro.inc.php
... | ... | @@ -228,75 +228,7 @@ class clsLogradouro |
228 | 228 | return $resultado; |
229 | 229 | } |
230 | 230 | return false; |
231 | - } | |
232 | -/** | |
233 | - * Exibe uma lista baseada nos parametros de filtragem passados incluindo id municipio | |
234 | - * | |
235 | - * @return Array | |
236 | - */ | |
237 | - function listamun( $str_idtlog=false, $str_nome=false, $int_idmun=false, $int_idmun=false, $str_geom=false, $str_ident_oficial=false, $int_limite_ini=0, $int_limite_qtd=20, $str_orderBy = false ) | |
238 | - { | |
239 | - // verificacoes de filtros a serem usados | |
240 | - $whereAnd = "WHERE "; | |
241 | - if( is_string( $str_idtlog ) ) | |
242 | - { | |
243 | - $where .= "{$whereAnd}idtlog LIKE '%$str_idtlog%'"; | |
244 | - $whereAnd = " AND "; | |
245 | - } | |
246 | - if( is_string( $str_nome ) ) | |
247 | - { | |
248 | - $where .= "{$whereAnd}nome LIKE '%$str_nome%'"; | |
249 | - $whereAnd = " AND "; | |
250 | - } | |
251 | - if( is_numeric( $int_idmun ) ) | |
252 | - { | |
253 | - $where .= "{$whereAnd}idmun = '$int_idmun'"; | |
254 | - $whereAnd = " AND "; | |
255 | - } | |
256 | - if( is_string( $str_geom ) ) | |
257 | - { | |
258 | - $where .= "{$whereAnd}geom LIKE '%$str_geom%'"; | |
259 | - $whereAnd = " AND "; | |
260 | - } | |
261 | - | |
262 | - if( is_string( $str_ident_oficial ) ) | |
263 | - { | |
264 | - $where .= "{$whereAnd}ident_oficial LIKE '%$str_ident_oficial%'"; | |
265 | - $whereAnd = " AND "; | |
266 | - } | |
267 | - | |
268 | - if($str_orderBy) | |
269 | - { | |
270 | - $orderBy = "ORDER BY $str_orderBy"; | |
271 | - } | |
272 | - | |
273 | - $limit = ""; | |
274 | - if( is_numeric( $int_limite_ini ) && is_numeric( $int_limite_qtd ) ) | |
275 | - { | |
276 | - $limit = " LIMIT $int_limite_ini,$int_limite_qtd"; | |
277 | - } | |
278 | - | |
279 | - $db = new clsBanco(); | |
280 | - $db->Consulta( "SELECT COUNT(0) AS total FROM {$this->schema}.{$this->tabela} $where" ); | |
281 | - $db->ProximoRegistro(); | |
282 | - $total = $db->Campo( "total" ); | |
283 | - | |
284 | - $db->Consulta( "SELECT idlog, idtlog, nome, idmun, geom, ident_oficial FROM {$this->schema}.{$this->tabela} $where $orderBy $limit" ); | |
285 | - $resultado = array(); | |
286 | - while ( $db->ProximoRegistro() ) | |
287 | - { | |
288 | - $tupla = $db->Tupla(); | |
289 | - $tupla["idtlog"] = new clsTipoLogradouro( $tupla["idtlog"] ); | |
290 | - | |
291 | - $tupla["total"] = $total; | |
292 | - $resultado[] = $tupla; | |
293 | - } | |
294 | - if( count( $resultado ) ) | |
295 | - { | |
296 | - return $resultado; | |
297 | - } | |
298 | - return false; | |
299 | - } | |
231 | + } | |
300 | 232 | /** |
301 | 233 | * Retorna um array com os detalhes do objeto |
302 | 234 | * | ... | ... |