/** * Will return one Tx_ExtbaseDam_Domain_Model_Dam object for the given table/uid/ident combination. * * @var string $table The table that dam-records have to be fetched for. * @var int $uid The UID of the record for which the dam-records have to be fetched for. * @var string $ident The field ident that dam-records have to be fetched for. * @var string $orderBy Any ordering that should be applied. * @return Tx_ExtbaseDam_Domain_Model_Dam The (first) Dam object */ public static function getOne($table, $uid, $ident, $orderBy = '') { $objects = \Tx_ExtbaseDam_Utility_Dam::get($table, $uid, $ident, 1, $orderBy); return count($objects) > 0 ? $objects[0] : null; }