FluidTYPO3\Vhs\ViewHelpers\Resource\Record\AbstractRecordResourceViewHelper::getRecord PHP Méthode

getRecord() public méthode

public getRecord ( mixed $id ) : array
$id mixed
Résultat array
    public function getRecord($id)
    {
        $table = $this->getTable();
        $idField = $this->idField;
        $sqlIdField = $GLOBALS['TYPO3_DB']->quoteStr($idField, $table);
        $sqlId = $GLOBALS['TYPO3_DB']->fullQuoteStr($id, $table);
        return reset($GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', $table, $sqlIdField . ' = ' . $sqlId));
    }