Overview
Comment:DB: Fix legacy compatibility functions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: f9c05b3c396d3cb4a365843965902c10d5908c82
User & Date: bohwaz on 2017-05-16 06:09:43
Other Links: branch diff | manifest | tags
Context
2017-05-16
06:10
Utilisation de Form au lieu de Security pour faire du CSRF check-in: a80706f2b7 user: bohwaz tags: dev
06:09
DB: Fix legacy compatibility functions check-in: f9c05b3c39 user: bohwaz tags: dev
04:56
Utilisation de KD2\Form pour le login check-in: a14a753be3 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/DB.php from [877e8d23cd] to [d7e2b85339].

628
629
630
631
632
633
634
635


636
637
638
639
640
641
642
643
644

645
646
647
648
649
650

651
652
653










654
655
656
657
658
659
660
628
629
630
631
632
633
634

635
636
637
638
639
640
641
642
643
644

645
646
647
648
649
650

651
652
653

654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670







-
+
+








-
+





-
+


-
+
+
+
+
+
+
+
+
+
+








    /**
     * @deprecated
     */
    public function simpleStatementFetch($query, $mode = null)
    {
        $args = array_slice(func_get_args(), 2);
        return $this->get($this->query($query, $args), $mode);
        $result = $this->query($query, $args);
        return $this->fetch($result, $mode);
    }

    /**
     * @deprecated
     */
    public function simpleStatementFetchAssoc($query)
    {
        $args = array_slice(func_get_args(), 1);
        return $this->getAssoc($this->query($query, $args));
        return $this->getAssoc($query, $args);
    }

    /**
     * @deprecated
     */
    public function simpleStatementFetchAssocKey($query, $mode = null)
    public function simpleStatementFetchAssocKey($query, $mode = self::ASSOC)
    {
        $args = array_slice(func_get_args(), 2);
        return $this->getAssocKey($this->query($query, $args), $mode);
        $result = $this->query($query, $args);
        $out = [];

        while ($row = $result->fetchArray($mode))
        {
            $key = current($row);
            $out[$key] = $row;
        }

        return $out;
    }

    /**
     * @deprecated
     */
    public function queryFetch($query, $mode = null)
    {