ElggSession::getLoggedInUserGuid PHP 메소드

getLoggedInUserGuid() 공개 메소드

Return the current logged in user by guid.
또한 보기: elgg_get_logged_in_user_entity()
public getLoggedInUserGuid ( ) : integer
리턴 integer
    public function getLoggedInUserGuid()
    {
        $user = $this->getLoggedInUser();
        return $user ? $user->guid : 0;
    }

Usage Example

예제 #1
0
파일: MetadataCache.php 프로젝트: elgg/elgg
 /**
  * Get a key to represent the access ability of the system. This is used to shard the cache array.
  *
  * @return string E.g. "ignored" or "123"
  */
 protected function getAccessKey()
 {
     if ($this->session->getIgnoreAccess()) {
         return "ignored";
     }
     return (string) $this->session->getLoggedInUserGuid();
 }
All Usage Examples Of ElggSession::getLoggedInUserGuid