View the system message.

@since 1.0.0

@return string
197922
public function view()
    {
        $sys_msg = Session::get('sys_msg');
        $msg = (isset($sys_msg['msg'])) ? $sys_msg['msg'] : null;
        $type = (isset($sys_msg['type'])) ? $sys_msg['type'] : null;
        if (isset($msg) && isset($type)) {
            $msg = "<div class='alert alert-".$type."'>".'<a href="#" class="close" data-dismiss="alert">&times;</a>'.$msg.'</div>';
            $msg_data[] = $msg;
        }
        if (isset($msg_data)) {
            $data = implode('', $msg_data);
            Session::delete('sys_msg');
            //unset($_SESSION['sys_msg']);

            return $data;
        }
    }
803147
public function getMessageFile()
    {
        $name = $this->domain;
        $name .= $this->_types[$this->type];
        return $name;
    }
998650
public function getSuccessMessage()
    {
        $message = 'PHP-Extensions "PDO" (v%s) and "pdo_mysql" (v%s) are installed and usable.';
        $message = sprintf($message, $this->pdoVersion, $this->pdoMySqlVersion);
        return $message;
    }
249588
public function renderMessages()
    {
        $return = '';
        $messages = $this->getForm()->getMessages();
        foreach ($messages as $type => $lines) {
            if ($type == "error") {
                $return .= ErrorsHelper::render($lines);
            } else {
                $return .= MessagesHelper::render($lines, $type);
            }
        }

        return $return;
    }
511131
public function getMessage()
    {
        return isset($this->data['ErrorMsg']) && !empty($this->data['ErrorMsg']) ? $this->data['ErrorMsg'] : null;
    }
907412
public function getRawMessage(): string
    {
        if (null === $this->rawMessage) {
            $this->rawMessage = $this->doGetContent('');
        }

        return $this->rawMessage;
    }
1049169
public function getMessageWithSuggestion(): string
	{
		$message = $this->getMessage();

		if($this->suggestion !== null)
		{
			$message .= ' Did you mean [ ' . $this->suggestion . ' ]?';
		}

		return $message;
	}
1152536
public function getMenuHeaderView(): string
    {
        // Outside of authorized area
        if (!defined('USER_ID') || !USER_ID || !defined('LNG')) {
            return '';
        }

        // Show non-default CMS headers
        $cfg = Configuration::getInstance()->get('cms');
        if (isset($cfg['custom_header']) && $cfg['custom_header']) {
            // Need to create this file prior to use
            return include DIR_MODULES . 'cms/Admin/Menu/getMenuHeaderView.php';
        }

        // Notifications from system
        $notification_repository = new UsersMessageEntityRepository;
        $notification_repository
            ->setWhereToUserId(USER_ID)
            ->setWhereFromUserId(0)
            ->addOrderByField('ts', true)
            ->setWhereSeen(0);

        // All count for number
        $total_notifications = $notification_repository->getCountOfObjectsInCollection();

        // Show a few latest
        $notifications = $notification_repository
            ->setLimit(10)
            ->getAsArrayOfObjects();

        // Messages from users
        $messages_repository = new UsersMessageEntityRepository;
        $messages_repository
            ->setWhereToUserId(USER_ID)
            ->addWhereFieldIsNot('from_user_id', 0)
            ->addOrderByField('ts', true)
            ->setWhereSeen(0);

        // All count for number
        $total_messages = $messages_repository->getCountOfObjectsInCollection();

        $messages = $messages_repository
            ->setLimit(10)
            ->getAsArrayOfObjects();

        // Custom notifiers
        $custom_notifiers = [];

        $custom_notifiers[] = $this->getHelpTextsNotifier();

        // Logo image and link
        $logo = '';
        if (array_key_exists('logo', Configuration::getInstance()->get('cms'))) {
            $logo = Configuration::getInstance()->get('cms')['logo'];
        }

        $logo_link = DIR_CMS_URL;
        if (array_key_exists('logo_link', Configuration::getInstance()->get('cms'))) {
            $logo_link = Configuration::getInstance()->get('cms')['logo_link'];
        }

        // User avatar image
        $user_avatar = Users::getInstance()->getUserData('avatar');
        if (!$user_avatar) {
            $user_avatar = '/vendor/devp-eu/tmcms-core/src/assets/cms/layout/img/avatar.png';
        }

        $languages = AdminLanguages::getPairs();

        ob_start();

        ?>
        <div class="page-header-inner">
            <?php if ($logo): ?>
                <div class="page-logo">
                    <a href="<?= $logo_link ?>">
                        <img src="<?= $logo ?>" alt="logo" class="logo-default">
                    </a>

                    <div class="menu-toggler sidebar-toggler"></div>
                </div>
            <?php endif; ?>
            <a href="javascript:" class="menu-toggler responsive-toggler" data-toggle="collapse"
               data-target=".navbar-collapse"></a>

            <div class="top-menu">
                <ul class="nav navbar-nav pull-right">
                    <li class="dropdown dropdown-extended dropdown-home" id="header_home_bar">
                        <a href="/" target="_blank" class="dropdown-toggle" data-hover="dropdown"
                           data-close-others="true">
                            <i class="cms-icon-globe"></i>
                        </a>
                    </li>
                    <?php if (count($languages) > 1): ?>
                        <li class="dropdown dropdown-language">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
                               data-close-others="true">
                                <?php if (Settings::get('show_language_selector_flags')): ?>
                                    <img alt=""
                                         src="/vendor/devp-eu/tmcms-core/src/assets/cms/img/flags/<?= LNG ?>.png">
                                <?php endif; ?>
                                <span class="langname"><?= strtoupper(LNG) ?> </span>
                                <i class="fa fa-angle-down"></i>
                            </a>
                            <ul class="dropdown-menu">
                                <?php foreach ($languages as $k => $v):
                                    if ($k == LNG) {
                                        continue;
                                    }
                                    ?>
                                    <li>
                                        <a href="?p=users&do=_change_lng&lng=<?= $k ?>">
                                            <?php if (Settings::get('show_language_selector_flags')): ?>
                                                <img alt=""
                                                     src="/vendor/devp-eu/tmcms-core/src/assets/cms/img/flags/<?= $k ?>.png">
                                            <?php endif; ?>
                                            <?= $v ?>
                                        </a>
                                    </li>
                                <?php endforeach; ?>
                            </ul>
                        </li>
                    <?php endif; ?>
                    <?php if ($notifications): ?>
                        <li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
                               data-close-others="true">
                                <i class="cms-icon-bell"></i>
                                <span class="badge badge-default"><?= count($notifications); ?></span>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <p>
                                        You have <?= $total_notifications; ?> new notifications
                                    </p>
                                </li>
                                <li>
                                    <ul class="dropdown-menu-list scroller" style="height: 250px;">
                                        <?php foreach ($notifications as $k => $message): /** @var UsersMessageEntity $message */ ?>
                                            <li>
                                                <a href="#">
                                                    <span class="label label-sm label-icon label-warning">
                                                        <i class="fa fa-bell-o"></i>
                                                    </span>
                                                    <?= $message->getMessage() ?>
                                                    <span class="time">
                                                        <?= Converter::getTimeFromEventAgo((int)$message->getTs()) ?>
                                                    </span>
                                                </a>
                                            </li>
                                        <?php endforeach; ?>
                                    </ul>
                                </li>
                                <li class="external">
                                    <a href="?p=home&do=notifications">
                                        See all notifications <i class="m-icon-swapright"></i>
                                    </a>
                                </li>
                            </ul>
                        </li>
                    <?php endif; ?>
                    <?php if ($messages): ?>
                        <li class="dropdown dropdown-extended dropdown-inbox" id="header_inbox_bar">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
                               data-close-others="true">
                                <i class="cms-icon-envelope-open"></i>
                                <span class="badge badge-default"><?= count($messages); ?></span>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <p>
                                        You have <?= $total_messages; ?> new messages
                                    </p>
                                </li>
                                <li>
                                    <ul class="dropdown-menu-list scroller" style="height: 250px;">
                                        <?php foreach ($notifications as $k => $message): /** @var UsersMessageEntity $message */
                                            $user = new AdminUser($message->getFromUserId());
                                            $avatar = $user->getAvatar(); ?>
                                            <li>
                                                <a href="?p=users&do=chat&user_id=2">
                                                    <?php if ($avatar): ?>
                                                        <span class="photo">
                                                           <img src="<?= $avatar ?>" alt="" style="height=40px">
                                                        </span>
                                                    <?php endif; ?>
                                                    <span class="subject">
                                                        <span class="from"><?= $user->getName() ?></span>
                                                        <span class="time"><?= Converter::getTimeFromEventAgo((int)$message->getTs()) ?></span>
                                                    </span>
                                                    <span class="message"><?= Converter::cutLongStrings($message->getMessage()) ?></span>
                                                </a>
                                            </li>
                                        <?php endforeach; ?>
                                    </ul>
                                </li>
                                <li class="external">
                                    <a href="?p=users&do=chat">
                                        See all messages <i class="m-icon-swapright"></i>
                                    </a>
                                </li>
                            </ul>
                        </li>
                    <?php endif; ?>
                    <?php if ($custom_notifiers): ?>
                        <?= implode('', $custom_notifiers) ?>
                    <?php endif; ?>
                    <li class="dropdown dropdown-user">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown"
                           data-close-others="true">
                            <img alt="" class="img-circle" src="<?= $user_avatar ?>" style="height: 29px;">
                            <span class="username"><?= Users::getInstance()->getUserData('name') ?></span>
                            <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="?p=users&do=users_edit&id=<?= USER_ID ?>">
                                    <i class="cms-icon-user"></i> My Profile
                                </a>
                            </li>
                            <li>
                                <a href="?p=home&do=notifications">
                                    <i class="cms-icon-envelope-open"></i>My notifications
                                    <span class="badge badge-danger"> <?= count($notifications) ?></span>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#" onclick="clipboard_forms.copy_page_forms(); return false;">
                                    <i class="cms-icon-cloud-download"></i>Copy form data
                                </a>
                            </li>
                            <li>
                                <a href="#" onclick="clipboard_forms.paste_page_forms(); return false;">
                                    <i class="cms-icon-cloud-upload"></i>Paste form data
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="?p=home&do=_exit" onclick="return confirm('<?= __('Are you sure?') ?>');">
                                    <i class="cms-icon-key"></i> Log Out
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <?php

        return ob_get_clean();
    }
1129055
public function outputMsgs() {
		$messages = $this->session->get('flashmsgs');
		$output = null;

		if ($messages) {
			foreach ($messages as $key => $message) {
				$output .= '<div class="' . $message['type'] . '"><p>' . $message['content'] . '</p></div>';
			}
		}

		return $output;
	}
164535
protected function getFilesetsMsg()
    {
        $project = $this->getProject();
        $msg = '';
        foreach ($this->filesets as $fs) {
            $ds = $fs->getDirectoryScanner($project);
            $fromDir = $fs->getDir($project);
            $srcDirs = $ds->getIncludedDirectories();
            $srcFiles = $ds->getIncludedFiles();
            $msg .= 'Directory: ' . $fromDir . ' => '
                . realpath($fromDir) . "\n";
            foreach ($srcDirs as $dir) {
                $relPath = $fromDir . DIRECTORY_SEPARATOR . $dir;
                $msg .= $relPath . "\n";
            }
            foreach ($srcFiles as $file) {
                $relPath = $fromDir . DIRECTORY_SEPARATOR . $file;
                $msg .= $relPath . "\n";
            }
        }

        return $msg;
    }
143969
final private function getMessageScript() {
		
		$script = '';
		
		if (count($this->messages)) {

			foreach ($this->messages as $m) {
		
				$types = array('info', 'warning', 'error');
				if (!in_array($m->type, $types)) $m->type = 'info';
				$script .= '$.showMessage("' .
					addslashes($m->title) . '","' .
					addcslashes($m->text,"\"\n\r") . '","' . // removes carriage returns and quotes
					addslashes($m->type) . "\");\n";
				
			}
			
		}

		return $script;
		
	}
780356
public static function getReleaseMsgData(){
        $params = array(
            'version-type' => '',
            'is-unstable'  => self::isUnstable(),
            'is-sandbox'   => false,
            'logo'         => self::getLogoUrl(),
            'link'         => self::getLinkUrl(),
            'msg'          => self::getMessage()
        );

        switch(TAO_RELEASE_STATUS){
            case 'alpha':
            case 'demoA':
                $params['version-type'] = __('Alpha version');
                break;

            case 'beta':
            case 'demoB':
                $params['version-type'] = __('Beta version');
                break;

            case 'demoS':
                $params['version-type'] = __('Demo Sandbox');
                $params['is-sandbox']   = true;
                $params['msg']          = self::getSandboxExpiration();
                break;
        }

        return $params;
    }
602884
def show_message(self):
        """"""
        print(
            'current version: {current_version}\n'
            'latest version : {latest_version}'.format(
                current_version=self.current_version,
                latest_version=self.latest_version))
1295906
public function read_message()
  {
    socket_recv ( $this->socket , $buf , 8 , MSG_WAITALL );
    if ($buf == null)
      return $buf;
    
    $frame_count = unpack("Nserial/Ncount", $buf);
    $frame_count = $frame_count["count"];
    $message = "";
    for ($i = 0; $i < $frame_count; $i++ ) {
      socket_recv ( $this->socket , $buf , 4 , MSG_WAITALL );
      $frame_size = unpack("Nsize", $buf);
      $frame_size = $frame_size["size"];
      if ($frame_size > 0) {
        socket_recv ( $this->socket , $bif , $frame_size , MSG_WAITALL );
        $message .= $bif;
      }
      
    }
    return $message;
  }
322366
public function getOnEmptyText()
    {
        static $warned;

        $dir = $this->getPath(false, 'index');

        if (! is_dir($dir)) {
            try {
                \MUtil_File::ensureDir($dir);

            } catch (\Zend_Exception $e) {
                $text = $e->getMessage();

                if (! $warned) {
                    $warned = true;
                    $this->addMessage($text);
                }
                return $text;
            }
        }

        return parent::getOnEmptyText();
    }
263657
public function getSentMIMEMessage()
    {
        return rtrim($this->MIMEHeader . $this->mailHeader, "\n\r") . self::CRLF . self::CRLF . $this->MIMEBody;
    }
333696
public function outputMessages()
    {

        // Simple Wrapper for OutputActions::$render->renderMessages
        if (php_sapi_name() === 'cli' &&
            !empty($this->messages)
        ) {
            // Output the messages on the shell.
            $result = "\n\nkreXX messages\n";
            $result .= "==============\n";
            foreach ($this->messages as $message) {
                $result .= "$message\n";
            }

            echo $result . "\n\n";
        }

        // Return the rendered messages.
        return $this->pool->render->renderMessages($this->messages);
    }