Code Duplication    Length = 22-22 lines in 15 locations

application/modules/xbanners/models/Base/BannerImageI18nQuery.php 2 locations

@@ 304-325 (lines=22) @@
301
     *
302
     * @return $this|ChildBannerImageI18nQuery The current query, for fluid interface
303
     */
304
    public function filterById($id = null, $comparison = null)
305
    {
306
        if (is_array($id)) {
307
            $useMinMax = false;
308
            if (isset($id['min'])) {
309
                $this->addUsingAlias(BannerImageI18nTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);
310
                $useMinMax = true;
311
            }
312
            if (isset($id['max'])) {
313
                $this->addUsingAlias(BannerImageI18nTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);
314
                $useMinMax = true;
315
            }
316
            if ($useMinMax) {
317
                return $this;
318
            }
319
            if (null === $comparison) {
320
                $comparison = Criteria::IN;
321
            }
322
        }
323
324
        return $this->addUsingAlias(BannerImageI18nTableMap::COL_ID, $id, $comparison);
325
    }
326
327
    /**
328
     * Filter the query on the locale column
@@ 423-444 (lines=22) @@
420
     *
421
     * @return $this|ChildBannerImageI18nQuery The current query, for fluid interface
422
     */
423
    public function filterByClicks($clicks = null, $comparison = null)
424
    {
425
        if (is_array($clicks)) {
426
            $useMinMax = false;
427
            if (isset($clicks['min'])) {
428
                $this->addUsingAlias(BannerImageI18nTableMap::COL_CLICKS, $clicks['min'], Criteria::GREATER_EQUAL);
429
                $useMinMax = true;
430
            }
431
            if (isset($clicks['max'])) {
432
                $this->addUsingAlias(BannerImageI18nTableMap::COL_CLICKS, $clicks['max'], Criteria::LESS_EQUAL);
433
                $useMinMax = true;
434
            }
435
            if ($useMinMax) {
436
                return $this;
437
            }
438
            if (null === $comparison) {
439
                $comparison = Criteria::IN;
440
            }
441
        }
442
443
        return $this->addUsingAlias(BannerImageI18nTableMap::COL_CLICKS, $clicks, $comparison);
444
    }
445
446
    /**
447
     * Filter the query on the description column

application/modules/xbanners/models/Base/BannerImageQuery.php 9 locations

@@ 322-343 (lines=22) @@
319
     *
320
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
321
     */
322
    public function filterById($id = null, $comparison = null)
323
    {
324
        if (is_array($id)) {
325
            $useMinMax = false;
326
            if (isset($id['min'])) {
327
                $this->addUsingAlias(BannerImageTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);
328
                $useMinMax = true;
329
            }
330
            if (isset($id['max'])) {
331
                $this->addUsingAlias(BannerImageTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);
332
                $useMinMax = true;
333
            }
334
            if ($useMinMax) {
335
                return $this;
336
            }
337
            if (null === $comparison) {
338
                $comparison = Criteria::IN;
339
            }
340
        }
341
342
        return $this->addUsingAlias(BannerImageTableMap::COL_ID, $id, $comparison);
343
    }
344
345
    /**
346
     * Filter the query on the banner_id column
@@ 365-386 (lines=22) @@
362
     *
363
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
364
     */
365
    public function filterByBannerId($bannerId = null, $comparison = null)
366
    {
367
        if (is_array($bannerId)) {
368
            $useMinMax = false;
369
            if (isset($bannerId['min'])) {
370
                $this->addUsingAlias(BannerImageTableMap::COL_BANNER_ID, $bannerId['min'], Criteria::GREATER_EQUAL);
371
                $useMinMax = true;
372
            }
373
            if (isset($bannerId['max'])) {
374
                $this->addUsingAlias(BannerImageTableMap::COL_BANNER_ID, $bannerId['max'], Criteria::LESS_EQUAL);
375
                $useMinMax = true;
376
            }
377
            if ($useMinMax) {
378
                return $this;
379
            }
380
            if (null === $comparison) {
381
                $comparison = Criteria::IN;
382
            }
383
        }
384
385
        return $this->addUsingAlias(BannerImageTableMap::COL_BANNER_ID, $bannerId, $comparison);
386
    }
387
388
    /**
389
     * Filter the query on the target column
@@ 406-427 (lines=22) @@
403
     *
404
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
405
     */
406
    public function filterByTarget($target = null, $comparison = null)
407
    {
408
        if (is_array($target)) {
409
            $useMinMax = false;
410
            if (isset($target['min'])) {
411
                $this->addUsingAlias(BannerImageTableMap::COL_TARGET, $target['min'], Criteria::GREATER_EQUAL);
412
                $useMinMax = true;
413
            }
414
            if (isset($target['max'])) {
415
                $this->addUsingAlias(BannerImageTableMap::COL_TARGET, $target['max'], Criteria::LESS_EQUAL);
416
                $useMinMax = true;
417
            }
418
            if ($useMinMax) {
419
                return $this;
420
            }
421
            if (null === $comparison) {
422
                $comparison = Criteria::IN;
423
            }
424
        }
425
426
        return $this->addUsingAlias(BannerImageTableMap::COL_TARGET, $target, $comparison);
427
    }
428
429
    /**
430
     * Filter the query on the url column
@@ 473-494 (lines=22) @@
470
     *
471
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
472
     */
473
    public function filterByAllowedPage($allowedPage = null, $comparison = null)
474
    {
475
        if (is_array($allowedPage)) {
476
            $useMinMax = false;
477
            if (isset($allowedPage['min'])) {
478
                $this->addUsingAlias(BannerImageTableMap::COL_ALLOWED_PAGE, $allowedPage['min'], Criteria::GREATER_EQUAL);
479
                $useMinMax = true;
480
            }
481
            if (isset($allowedPage['max'])) {
482
                $this->addUsingAlias(BannerImageTableMap::COL_ALLOWED_PAGE, $allowedPage['max'], Criteria::LESS_EQUAL);
483
                $useMinMax = true;
484
            }
485
            if ($useMinMax) {
486
                return $this;
487
            }
488
            if (null === $comparison) {
489
                $comparison = Criteria::IN;
490
            }
491
        }
492
493
        return $this->addUsingAlias(BannerImageTableMap::COL_ALLOWED_PAGE, $allowedPage, $comparison);
494
    }
495
496
    /**
497
     * Filter the query on the position column
@@ 514-535 (lines=22) @@
511
     *
512
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
513
     */
514
    public function filterByPosition($position = null, $comparison = null)
515
    {
516
        if (is_array($position)) {
517
            $useMinMax = false;
518
            if (isset($position['min'])) {
519
                $this->addUsingAlias(BannerImageTableMap::COL_POSITION, $position['min'], Criteria::GREATER_EQUAL);
520
                $useMinMax = true;
521
            }
522
            if (isset($position['max'])) {
523
                $this->addUsingAlias(BannerImageTableMap::COL_POSITION, $position['max'], Criteria::LESS_EQUAL);
524
                $useMinMax = true;
525
            }
526
            if ($useMinMax) {
527
                return $this;
528
            }
529
            if (null === $comparison) {
530
                $comparison = Criteria::IN;
531
            }
532
        }
533
534
        return $this->addUsingAlias(BannerImageTableMap::COL_POSITION, $position, $comparison);
535
    }
536
537
    /**
538
     * Filter the query on the active_from column
@@ 555-576 (lines=22) @@
552
     *
553
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
554
     */
555
    public function filterByActiveFrom($activeFrom = null, $comparison = null)
556
    {
557
        if (is_array($activeFrom)) {
558
            $useMinMax = false;
559
            if (isset($activeFrom['min'])) {
560
                $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE_FROM, $activeFrom['min'], Criteria::GREATER_EQUAL);
561
                $useMinMax = true;
562
            }
563
            if (isset($activeFrom['max'])) {
564
                $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE_FROM, $activeFrom['max'], Criteria::LESS_EQUAL);
565
                $useMinMax = true;
566
            }
567
            if ($useMinMax) {
568
                return $this;
569
            }
570
            if (null === $comparison) {
571
                $comparison = Criteria::IN;
572
            }
573
        }
574
575
        return $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE_FROM, $activeFrom, $comparison);
576
    }
577
578
    /**
579
     * Filter the query on the active_to column
@@ 596-617 (lines=22) @@
593
     *
594
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
595
     */
596
    public function filterByActiveTo($activeTo = null, $comparison = null)
597
    {
598
        if (is_array($activeTo)) {
599
            $useMinMax = false;
600
            if (isset($activeTo['min'])) {
601
                $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE_TO, $activeTo['min'], Criteria::GREATER_EQUAL);
602
                $useMinMax = true;
603
            }
604
            if (isset($activeTo['max'])) {
605
                $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE_TO, $activeTo['max'], Criteria::LESS_EQUAL);
606
                $useMinMax = true;
607
            }
608
            if ($useMinMax) {
609
                return $this;
610
            }
611
            if (null === $comparison) {
612
                $comparison = Criteria::IN;
613
            }
614
        }
615
616
        return $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE_TO, $activeTo, $comparison);
617
    }
618
619
    /**
620
     * Filter the query on the active column
@@ 637-658 (lines=22) @@
634
     *
635
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
636
     */
637
    public function filterByActive($active = null, $comparison = null)
638
    {
639
        if (is_array($active)) {
640
            $useMinMax = false;
641
            if (isset($active['min'])) {
642
                $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE, $active['min'], Criteria::GREATER_EQUAL);
643
                $useMinMax = true;
644
            }
645
            if (isset($active['max'])) {
646
                $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE, $active['max'], Criteria::LESS_EQUAL);
647
                $useMinMax = true;
648
            }
649
            if ($useMinMax) {
650
                return $this;
651
            }
652
            if (null === $comparison) {
653
                $comparison = Criteria::IN;
654
            }
655
        }
656
657
        return $this->addUsingAlias(BannerImageTableMap::COL_ACTIVE, $active, $comparison);
658
    }
659
660
    /**
661
     * Filter the query on the permanent column
@@ 678-699 (lines=22) @@
675
     *
676
     * @return $this|ChildBannerImageQuery The current query, for fluid interface
677
     */
678
    public function filterByPermanent($permanent = null, $comparison = null)
679
    {
680
        if (is_array($permanent)) {
681
            $useMinMax = false;
682
            if (isset($permanent['min'])) {
683
                $this->addUsingAlias(BannerImageTableMap::COL_PERMANENT, $permanent['min'], Criteria::GREATER_EQUAL);
684
                $useMinMax = true;
685
            }
686
            if (isset($permanent['max'])) {
687
                $this->addUsingAlias(BannerImageTableMap::COL_PERMANENT, $permanent['max'], Criteria::LESS_EQUAL);
688
                $useMinMax = true;
689
            }
690
            if ($useMinMax) {
691
                return $this;
692
            }
693
            if (null === $comparison) {
694
                $comparison = Criteria::IN;
695
            }
696
        }
697
698
        return $this->addUsingAlias(BannerImageTableMap::COL_PERMANENT, $permanent, $comparison);
699
    }
700
701
    /**
702
     * Filter the query by a related \xbanners\models\Banners object

application/modules/xbanners/models/Base/BannersI18nQuery.php 1 location

@@ 289-310 (lines=22) @@
286
     *
287
     * @return $this|ChildBannersI18nQuery The current query, for fluid interface
288
     */
289
    public function filterById($id = null, $comparison = null)
290
    {
291
        if (is_array($id)) {
292
            $useMinMax = false;
293
            if (isset($id['min'])) {
294
                $this->addUsingAlias(BannersI18nTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);
295
                $useMinMax = true;
296
            }
297
            if (isset($id['max'])) {
298
                $this->addUsingAlias(BannersI18nTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);
299
                $useMinMax = true;
300
            }
301
            if ($useMinMax) {
302
                return $this;
303
            }
304
            if (null === $comparison) {
305
                $comparison = Criteria::IN;
306
            }
307
        }
308
309
        return $this->addUsingAlias(BannersI18nTableMap::COL_ID, $id, $comparison);
310
    }
311
312
    /**
313
     * Filter the query on the locale column

application/modules/xbanners/models/Base/BannersQuery.php 3 locations

@@ 303-324 (lines=22) @@
300
     *
301
     * @return $this|ChildBannersQuery The current query, for fluid interface
302
     */
303
    public function filterById($id = null, $comparison = null)
304
    {
305
        if (is_array($id)) {
306
            $useMinMax = false;
307
            if (isset($id['min'])) {
308
                $this->addUsingAlias(BannersTableMap::COL_ID, $id['min'], Criteria::GREATER_EQUAL);
309
                $useMinMax = true;
310
            }
311
            if (isset($id['max'])) {
312
                $this->addUsingAlias(BannersTableMap::COL_ID, $id['max'], Criteria::LESS_EQUAL);
313
                $useMinMax = true;
314
            }
315
            if ($useMinMax) {
316
                return $this;
317
            }
318
            if (null === $comparison) {
319
                $comparison = Criteria::IN;
320
            }
321
        }
322
323
        return $this->addUsingAlias(BannersTableMap::COL_ID, $id, $comparison);
324
    }
325
326
    /**
327
     * Filter the query on the place column
@@ 370-391 (lines=22) @@
367
     *
368
     * @return $this|ChildBannersQuery The current query, for fluid interface
369
     */
370
    public function filterByWidth($width = null, $comparison = null)
371
    {
372
        if (is_array($width)) {
373
            $useMinMax = false;
374
            if (isset($width['min'])) {
375
                $this->addUsingAlias(BannersTableMap::COL_WIDTH, $width['min'], Criteria::GREATER_EQUAL);
376
                $useMinMax = true;
377
            }
378
            if (isset($width['max'])) {
379
                $this->addUsingAlias(BannersTableMap::COL_WIDTH, $width['max'], Criteria::LESS_EQUAL);
380
                $useMinMax = true;
381
            }
382
            if ($useMinMax) {
383
                return $this;
384
            }
385
            if (null === $comparison) {
386
                $comparison = Criteria::IN;
387
            }
388
        }
389
390
        return $this->addUsingAlias(BannersTableMap::COL_WIDTH, $width, $comparison);
391
    }
392
393
    /**
394
     * Filter the query on the height column
@@ 411-432 (lines=22) @@
408
     *
409
     * @return $this|ChildBannersQuery The current query, for fluid interface
410
     */
411
    public function filterByHeight($height = null, $comparison = null)
412
    {
413
        if (is_array($height)) {
414
            $useMinMax = false;
415
            if (isset($height['min'])) {
416
                $this->addUsingAlias(BannersTableMap::COL_HEIGHT, $height['min'], Criteria::GREATER_EQUAL);
417
                $useMinMax = true;
418
            }
419
            if (isset($height['max'])) {
420
                $this->addUsingAlias(BannersTableMap::COL_HEIGHT, $height['max'], Criteria::LESS_EQUAL);
421
                $useMinMax = true;
422
            }
423
            if ($useMinMax) {
424
                return $this;
425
            }
426
            if (null === $comparison) {
427
                $comparison = Criteria::IN;
428
            }
429
        }
430
431
        return $this->addUsingAlias(BannersTableMap::COL_HEIGHT, $height, $comparison);
432
    }
433
434
    /**
435
     * Filter the query on the effects column