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); }
protected function _isAnonymous() { return $this->_helper->isAnonymousUser(); }