/** * @param String $channelValue */ private function setChannel($channelValue) { $channel = new Pap_Db_Channel(); $channel->setValue($channelValue); $channel->setPapUserId(Gpf_Session::getAuthUser()->getPapUserId()); try { $channel->loadFromData(array(Pap_Db_Table_Channels::VALUE, Pap_Db_Table_Channels::USER_ID)); $this->banner->setChannel($channel); } catch (Gpf_Exception $e) { } }
private function setBannerChannel(Pap_Common_Banner $banner, $channel) { $dbChannel = new Pap_Db_Channel(); $dbChannel->set(Pap_Db_Table_Channels::VALUE, $channel); try { $dbChannel->loadFromData(array(Pap_Db_Table_Channels::VALUE)); $banner->setChannel($dbChannel); } catch (Exception $e) { } }