getUserId() public method

Get user id
public getUserId ( ) : integer
return integer
コード例 #1
0
 /**
  * Get json representation of subscription ip
  *
  * @param Newscoop\Entity\User\Ip $ip
  * @return array
  */
 public function SubscriptionIpJson(\Newscoop\Entity\User\Ip $ip)
 {
     return array('ip' => $ip->getIp(), 'number' => $ip->getNumber(), 'id' => implode(':', array($ip->getUserId(), $ip->getIp())));
 }
コード例 #2
0
 public function getUserId()
 {
     $this->__load();
     return parent::getUserId();
 }