Code Duplication    Length = 7-7 lines in 2 locations

htdocs/kernel/object.php 2 locations

@@ 1467-1473 (lines=7) @@
1464
     * @param  bool            $id_as_key use the ID as key for the array
1465
     * @return array           of objects/array {@link XoopsObject}
1466
     */
1467
    public function &getAll(CriteriaElement $criteria = null, $fields = null, $asObject = true, $id_as_key = true)
1468
    {
1469
        $handler = $this->loadHandler('read');
1470
        $ret     = $handler->getAll($criteria, $fields, $asObject, $id_as_key);
1471
1472
        return $ret;
1473
    }
1474
1475
    /**
1476
     * Retrieve a list of objects data
@@ 1575-1581 (lines=7) @@
1572
     * @param  string          $field_object field of current object for JOIN
1573
     * @return array           of objects {@link XoopsObject}
1574
     */
1575
    public function &getByLink(CriteriaElement $criteria = null, $fields = null, $asObject = true, $field_link = null, $field_object = null)
1576
    {
1577
        $handler = $this->loadHandler('joint');
1578
        $ret     = $handler->getByLink($criteria, $fields, $asObject, $field_link, $field_object);
1579
1580
        return $ret;
1581
    }
1582
1583
    /**
1584
     * Count of objects matching a condition