Contao\Controller::getParentRecords PHP 메소드

getParentRecords() 보호된 메소드

Return the IDs of all parent records of a particular record
사용 중단: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Database::getParentRecords() instead.
protected getParentRecords ( integer $intId, string $strTable ) : array
$intId integer The ID of the record
$strTable string The table name
리턴 array An array of parent record IDs
    protected function getParentRecords($intId, $strTable)
    {
        @trigger_error('Using Controller::getParentRecords() has been deprecated and will no longer work in Contao 5.0. Use Database::getParentRecords() instead.', E_USER_DEPRECATED);
        return $this->Database->getParentRecords($intId, $strTable);
    }