Display this message
970206
protected static function helpAction()
    {
        $class = new \ReflectionClass(static::getCurrentClass());
        $methods = $class->getMethods();
        $commands = array();
        $comments = array();
        $commandLen = 0;
        foreach ($methods as $method) {
            $methodName = (string) $method->getName();
            if (substr($methodName, -6, 6) == 'Action') {
                $command = substr($methodName, 0, strlen($methodName) - 6);
                $comment = preg_replace('#^[^a-zA-Z0-9_.()-]*(.*?)[^a-zA-Z0-9_.()-]*$#', '\1', $method->getDocComment());
                $commandLen = max(strlen($command), $commandLen);
                $commands[] = $command;
                $comments[] = $comment;
            }
        }
        $commandLen++;
        echo "\n  Usage: " . self::green() . basename($_SERVER['argv'][0]) . self::yellow() . ' <command>' . self::resetColor() . " [options]\n\n";
        foreach ($commands as $key => $command) {
            printf(self::yellow() . " %' " . $commandLen . 's' . self::resetColor() . ": %s\n", $command, $comments[$key]);
        }
        echo "\n";
    }
1269896
protected function displayText()
    {
        if ($this->text === null) {
            // still show an empty span if there is no text for this
            // progress bar
            $text = '';
        } else {
            if ($this->text_value === null) {
                $text = $this->text;
            } elseif (is_array($this->text_value)) {
                $text = vsprintf($this->text, $this->text_value);
            } else {
                $text = sprintf($this->text, $this->text_value);
            }
        }

        $span_tag = new SwatHtmlTag('span');
        $span_tag->id = $this->id . '_text';
        $span_tag->class = 'swat-progress-bar-text';
        $span_tag->setContent($text, $this->content_type);
        $span_tag->display();
    }
34419
def display(self):
        """"""

        table_list = []
        table_list.append(("Text","Orig. Text","Start time","End time", "Phonetic"))
        for unit in self.unit_list:
            table_list.append((unit.text,
                               "/".join(unit.original_text),
                               unit.start_time,
                               unit.end_time,
                               unit.phonetic_representation))
        print_table(table_list)
842052
public function display()
    {
        \http_response_code($this->getResponseCode());
        if ($this->contentType) {
            header('Content-Type: ' . $this->contentType);
        }
        //        header('Content-Length: ' . strlen($this->content));
        if ($this->redirection) {
            header('Location: ' . $this->redirection);
        }
        Events::dispatch('beforeResponseSend', array($this));
        session_write_close();
        print $this->content;
        Profiler::dump();
        Events::dispatch('afterResponseSend', array($this));
    }
644478
def message(self_,msg,*args,**kw):
        
        self_.__db_print(INFO,msg,*args,**kw)
304806
public function notify() {
		if ( $this->requirements_met() ) {
			return;
		}

		echo '<div class="notice notice-error">';

		foreach ( $this->requirements as $requirement ) {
			if ( $requirement->is_met() ) {
				continue;
			}

			printf(
				'<p>%s deactivated: %s</p>',
				esc_html( $this->name ),
				esc_html( $requirement->get_message() )
			);
		}

		echo '</div>';
	}
711323
private function displayMessages()
    {
        $messages = $this->getChecker()->messages();

        $rows = [];
        foreach ($messages['files'] as $file => $message) {
            $rows[] = [$file, $message];
        }

        $this->frame('LogViewer messages');
        $this->table(['File', 'Message'], $rows);
    }
484218
function() {
            var
              message      = $messageInput.val(),
              loggedInUser = $module.data('user')
            ;
            if(loggedInUser !== undefined && !module.utils.emptyString(message)) {
              module.message.send(message);
              // display immediately
              module.message.display({
                user: loggedInUser,
                text: message
              });
              module.message.scroll.move();
              $messageInput
                .val('')
              ;

            }
          }
575453
private static void display(String format, Object... args) {
        System.out.println(MessageFormatter.arrayFormat(format, args).getMessage());
    }
244748
def display_message(self, clear, beep, timeout, line1, line2):
        """"""
        self._elk.send(
            dm_encode(self._index, clear, beep, timeout, line1, line2)
        )
1319856
def _show_message(self, text):
        """"""
        self.splash.showMessage(text, Qt.AlignBottom | Qt.AlignCenter |
                                Qt.AlignAbsolute, QColor(Qt.white))
331314
public function Index() {
      $this->Permission('Garden.Messages.Manage');
      $this->AddSideMenu('dashboard/message');
      $this->AddJsFile('jquery.autogrow.js');
      $this->AddJsFile('jquery.tablednd.js');
      $this->AddJsFile('jquery-ui.js');
      $this->AddJsFile('messages.js');
      $this->Title(T('Messages'));
         
      // Load all messages from the db
      $this->MessageData = $this->MessageModel->Get('Sort');
      $this->Render();
   }
975024
def show_toast(self, title="Notification", msg="Here comes the message",
                    icon_path=None, duration=5, threaded=False):
        
        if not threaded:
            self._show_toast(title, msg, icon_path, duration)
        else:
            if self.notification_active():
                # We have an active notification, let is finish so we don't spam them
                return False

            self._thread = threading.Thread(target=self._show_toast, args=(title, msg, icon_path, duration))
            self._thread.start()
        return True
416067
def showMessage(self, message, *args):
        
        QSplashScreen.showMessage(
            self, message, Qt.AlignBottom | Qt.AlignRight | Qt.AlignAbsolute, QColor(Qt.white))
921533
static public function display()
    {
        Sorter::sort(Listing::$files);
        $content = '<!DOCTYPE html>';
        $content .= sprintf('
<html xmlns="http://www.w3.org/1999/xhtml" lang="%s">', Translation::getCanonicalLocale());
        $content .= '
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>' . sprintf(Translation::trans('index_of'), Main::getDir()) . '</title>';
        $content .= static::getStyle();
        $content .= '
    </head>
    <body>';
        $content .= static::getTitle();
        $content .= '
        <table align="center">';
        $content .= static::getHeader();
        foreach (Listing::$files as $file) {
            $content .= static::getRow($file);
        }
        $content .= static::getFooter();
        $content .= '
        </table>';
        $content .= '
    </body>
</html>';
        die($content);
    }
1233743
def __print(self, msg):
        """"""
        self.announce(msg, level=distutils.log.INFO)
952563
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $div_tag = new SwatHtmlTag('div');
        $div_tag->id = $this->id;
        $div_tag->class = $this->getCSSClassString();

        $div_tag->open();

        $this->displayBar();
        $this->displayText();

        $div_tag->close();

        Swat::displayInlineJavaScript($this->getInlineJavaScript());
    }