/** * Will return one Tx_ExtbaseDam_Domain_Model_Dam object for the given table/uid/ident combination. * * @var string $path The file path. * @var string $orderBy Any ordering that should be applied. * @return Tx_ExtbaseDam_Domain_Model_Dam The (first) Dam object */ public static function getOneByPath($path, $orderBy = '') { $objects = \Tx_ExtbaseDam_Utility_Dam::getByPath($path, $orderBy, 1); return count($objects) > 0 ? $objects[0] : null; }
/** * Flushes the per call cache should that be necessary. * * @return void */ public static function flushCache() { self::$objectStorage = array(); }