PugMoRe_Mageploy_Helper_Data::isAnonymousUser PHP Method

isAnonymousUser() public method

public isAnonymousUser ( )
    public function isAnonymousUser()
    {
        return !strcmp('anonymous', $this->getUser());
    }

Usage Example

Example #1
0
 protected function _printHeader()
 {
     $isActive = $this->_helper->isActive() ? $this->__getColoredString("tracking is active", self::TERM_COLOR_GREEN) : $this->__getColoredString("tracking is not active", self::TERM_COLOR_RED);
     $isAnonymous = $this->_helper->isAnonymousUser();
     $user = $this->_helper->getUser();
     $user = $this->__getColoredString("user is " . $user, $isAnonymous ? self::TERM_COLOR_YELLOW : self::TERM_COLOR_GREEN);
     printf("\r\nMageploy v %s - %s - %s\r\n\r\n", $this->__getVersion(), $isActive, $user);
 }
All Usage Examples Of PugMoRe_Mageploy_Helper_Data::isAnonymousUser