Contao\Controller::getChildRecords PHP 메소드

getChildRecords() 보호된 메소드

Return the IDs of all child records of a particular record (see #2475)
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Database::getChildRecords() instead.
저자: Andreas Schempp
protected getChildRecords ( mixed $arrParentIds, string $strTable, boolean $blnSorting = false, array $arrReturn = [], string $strWhere = '' ) : array
$arrParentIds mixed An array of parent IDs
$strTable string The table name
$blnSorting boolean True if the table has a sorting field
$arrReturn array The array to be returned
$strWhere string Additional WHERE condition
리턴 array An array of child record IDs
    protected function getChildRecords($arrParentIds, $strTable, $blnSorting = false, $arrReturn = array(), $strWhere = '')
    {
        @trigger_error('Using Controller::getChildRecords() has been deprecated and will no longer work in Contao 5.0. Use Database::getChildRecords() instead.', E_USER_DEPRECATED);
        return $this->Database->getChildRecords($arrParentIds, $strTable, $blnSorting, $arrReturn, $strWhere);
    }