Code Duplication    Length = 7-7 lines in 2 locations

htdocs/kernel/object.php 2 locations

@@ 1490-1496 (lines=7) @@
1487
     * @param  bool            $id_as_key use the ID as key for the array
1488
     * @return array           of objects/array {@link XoopsObject}
1489
     */
1490
    public function &getAll(CriteriaElement $criteria = null, $fields = null, $asObject = true, $id_as_key = true)
1491
    {
1492
        $handler = $this->loadHandler('read');
1493
        $ret     = $handler->getAll($criteria, $fields, $asObject, $id_as_key);
1494
1495
        return $ret;
1496
    }
1497
1498
    /**
1499
     * Retrieve a list of objects data
@@ 1598-1604 (lines=7) @@
1595
     * @param  string          $field_object field of current object for JOIN
1596
     * @return array           of objects {@link XoopsObject}
1597
     */
1598
    public function &getByLink(CriteriaElement $criteria = null, $fields = null, $asObject = true, $field_link = null, $field_object = null)
1599
    {
1600
        $handler = $this->loadHandler('joint');
1601
        $ret     = $handler->getByLink($criteria, $fields, $asObject, $field_link, $field_object);
1602
1603
        return $ret;
1604
    }
1605
1606
    /**
1607
     * Count of objects matching a condition