/** * @return Pap_Db_CommissionType */ private function loadCommissionType($commTypeId) { if (!array_key_exists($commTypeId, self::$commissionTypesCache)) { $commissionType = new Pap_Db_CommissionType(); $commissionType->setId($commTypeId); try { $commissionType->load(); } catch (Gpf_Exception $e) { $commissionType->setName($this->_('Unknown')); } self::$commissionTypesCache[$commTypeId] = $commissionType; } return self::$commissionTypesCache[$commTypeId]; }