示例#1
0
 private function initPayoutOption() {
     if (!array_key_exists($this->user->getPayoutOptionId(), self::$cachedPayoutOptions)) {
         $payoutOption = new Pap_Db_PayoutOption();
         $payoutOption->setID($this->user->getPayoutOptionId());
         try {
             $payoutOption->load();
         } catch (Gpf_Exception $e) {
             $payoutOption = null;
         }
         self::$cachedPayoutOptions[$this->user->getPayoutOptionId()] = $payoutOption;
     }
     $this->payoutOption = self::$cachedPayoutOptions[$this->user->getPayoutOptionId()];
 }