PugMoRe_Mageploy_Helper_Data::getUser PHP Method

getUser() public method

public getUser ( )
    public function getUser()
    {
        if (is_null($this->__user)) {
            $this->__user = Mage::getStoreConfig(self::XML_PATH_USER);
        }
        return $this->__user;
    }

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);
 }