public function getPuserId() { if (kCurrentContext::isApiV3Context()) { return parent::getPuserId(); } $puser_id = $this->getFromCustomData("puserId"); if ($this->m_puser_id) { return $this->m_puser_id; } else { if ($this->getKuserId()) { $puser_id = PuserKuserPeer::getPuserIdFromKuserId($this->getPartnerId(), $this->getKuserId()); $this->putInCustomData("puserId", $puser_id); $this->m_puser_id = $puser_id; } } return $puser_id; }
public function getPuserId($real_puser_id = false) { if (kCurrentContext::isApiV3Context()) { return parent::getPuserId(); } // HACK for FootBo if (!$real_puser_id && $this->getPartnerId() == 8304) { return $this->getContributorScreenName(); } $puser_id = $this->getFromCustomData("puserId"); if ($this->m_puser_id) { return $this->m_puser_id; } else { if ($this->getKuserId()) { $puser_id = PuserKuserPeer::getPuserIdFromKuserId($this->getPartnerId(), $this->getKuserId()); $this->putInCustomData("puserId", $puser_id); $this->m_puser_id = $puser_id; } } return $puser_id; }