Code Duplication    Length = 7-7 lines in 2 locations

htdocs/kernel/object.php 2 locations

@@ 1449-1455 (lines=7) @@
1446
     * @param  bool            $id_as_key use the ID as key for the array
1447
     * @return array           of objects/array {@link XoopsObject}
1448
     */
1449
    public function &getAll(CriteriaElement $criteria = null, $fields = null, $asObject = true, $id_as_key = true)
1450
    {
1451
        $handler = $this->loadHandler('read');
1452
        $ret     = $handler->getAll($criteria, $fields, $asObject, $id_as_key);
1453
1454
        return $ret;
1455
    }
1456
1457
    /**
1458
     * Retrieve a list of objects data
@@ 1557-1563 (lines=7) @@
1554
     * @param  string          $field_object field of current object for JOIN
1555
     * @return array           of objects {@link XoopsObject}
1556
     */
1557
    public function &getByLink(CriteriaElement $criteria = null, $fields = null, $asObject = true, $field_link = null, $field_object = null)
1558
    {
1559
        $handler = $this->loadHandler('joint');
1560
        $ret     = $handler->getByLink($criteria, $fields, $asObject, $field_link, $field_object);
1561
1562
        return $ret;
1563
    }
1564
1565
    /**
1566
     * Count of objects matching a condition