Send the data to Mission Control

@param  string $title
@param  string $content
@param  string $flag

@return bool
775964
public function send($title, $content, $flag)
    {
        $headers = [];

        $query = [
            'title' => $title,
            'content' => $content,
            'flag' => $flag,
        ];


        if (is_null($this->webhook)) {
            throw new Exception("Missing webhook", 1);
        }

        $response = $this->curl::post($this->webhook, $headers, $query);

        if ($response->code != 200) {
            $this->error('Unable to message Mission Control, please confirm your webhook');
        }

        return true;
    }
949729
protected function sendHeader($header, $content)
    {
        if (!headers_sent() && self::$sendHeaders) {
            header(sprintf('%s: %s', $header, $content));
        }
    }
903902
public function message($title, $text = null)
    {
        if (!in_array($this->type, ['success', 'error', 'info', 'warning'])) {
            return '';
        }
        $container = $this->assetFactory->container(self::position);
        $type      = $this->resolveType();
        return $container->inlineScript('swal-message', $this->inline($type, $title, $text));
    }
339480
public function topic($title, $content, $options=array()){

        $data = array();
        
        $data['title'] = $title;
        $data['content'] = $content;

        $data = array_merge($data, $options);
        $data = mb_convert_encoding(json_encode($data), 'GBK', 'UTF8');

        return $this->request($this->topicUrl, $data);
    }
217099
public function setTitle($title, $both = true)
    {
        $this->data['_head_title'] = strip_tags($title);

        if ($both && !isset($this->data['_page_title'])) {
            $this->setPageTitle($title);
        }
    }
55928
public function renderContent($content, $title = null)
    {
        if ($content instanceof Renderable) {
            $content = $content->render();
        }

        return $this->admin->template()->view('_layout.inner')
            ->with('title', $title)
            ->with('content', $content)
            ->with('breadcrumbKey', $this->parentBreadcrumb);
    }
990258
public void setTitle(final String title) {
        if (this.title == null) {
            this.title = new Content();
        }
        this.title.setValue(title);
    }
130576
function(content, title) {
        if (content === true) {
            return; // AJAX is currently loading
        }

        this.fireEvent('showing');

        // Set the node state
        var node = this.node.aria('describedby', this.id());

        // Load runtime options
        var options = this.inheritOptions(this.options, node);

        // Load the element
        var element = this.loadElement(node);

        // Set the title and content
        title = title || this.readValue(node, options.getTitle);

        element
            .find(this.ns('header'))
                .html(title).toggle(Boolean(title) && options.showTitle)
            .end()
            .find(this.ns('content'))
                .html(content);

        this.fireEvent('load', [content, title]);

        // Follow the mouse
        if (options.follow) {
            var follow = this.onFollow.bind(this);

            node.off('mousemove', follow).on('mousemove', follow);

        // Position offset node
        } else {
            element.reveal().positionTo(options.position, node, {
                left: options.xOffset,
                top: options.yOffset
            });
        }

        this.fireEvent('shown');
    }
808453
public function setPopover($title, $content)
    {
        $this->attributes->addAttribute('data-toggle', 'popover');
        $this->attributes->addAttribute('title', $title);
        $this->attributes->addAttribute('data-content', $content);

        return $this;
    }
234425
public function setTitle($title)
	{
		if ( $title == $this->getTitle() ) { return; }

		$this->_values['title'] = (string) $title;
		$this->setModified();
	}
344477
public function send(RequestDescriptor $request, $flags = 0)
    {
        if (!empty($this->getAuthorization())) {
            $request->addHeader(self::OPTION_HEADER_AUTHORIZATION, $this->getAuthorization());
        }

        if ($this->delayNext || $this->isDelayed) {
            if (!$this->forceNext) {
                $this->delayedRequests[] = array($request, $flags | ApiRequestOption::NO_RESPONSE);

                // reset stackNext flag
                $this->delayNext = false;

                return true;
            } else {
                // reset forceNext flag
                $this->forceNext = false;
            }
        }

        $transport = $this->getAppropriateTransport($flags);

        if (is_null($transport)) {
            throw new ApiClientException(sprintf('No transport has been set on "%s"', get_class()));
        }

        try {
            $response = $transport->send($request, $flags);
        } catch (TransportException $e) {
            // fallback?
            if ($fallback = $this->getFallbackTransport()) {
                $response = $fallback->send($request, $flags);
            } else {
                throw $e;
            }
        }

        $this->resetFallbackTransport();

        return $response;
    }
826383
public function info($title, $content, $icon = true, $iconSmall = true)
    {
        $this->message('info', $title, $content, $icon, $iconSmall);
    }
210940
protected function _edit( $content, $title ) {
		// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Calling native WordPress hook.
		$content = apply_filters( 'the_editor_content', $content );
		$output  = Utils\launch_editor_for_input( $content, $title );
		// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Calling native WordPress hook.
		return ( is_string( $output ) ) ? apply_filters( 'content_save_pre', $output ) : $output;
	}
879287
public function keyword($title, $content, $options=array()){

        $data = array();
        
        $data['title'] = $title;
        $data['content'] = $content;

        $data = array_merge($data, $options);
        $data = mb_convert_encoding(json_encode($data), 'GBK', 'UTF8');

        return $this->request($this->keywordUrl, $data);
    }
1345252
public function send($content, int $status = HttpResponse::HTTP_OK, array $headers = []) : HttpResponse
    {
        $headers = array_merge($this->headers, $headers);

        if (is_array($content)) {
            $content = json_encode($content);
        }

        $response = $this->response->create($content, $status, $headers);

        return $this->createOnly ? $response : $response->send();
    }
1139543
protected function displayTitle($title, $content_type)
    {
        // Display last word of the title in its own span so it can be styled
        // with an image.
        $title_exp = explode(' ', $title);
        $last_word = array_pop($title_exp);

        if (count($title_exp)) {
            $title = implode(' ', $title_exp) . ' ';
        } else {
            $title = '';
        }

        if ($content_type === 'text/plain') {
            echo SwatString::minimizeEntities($title);
        } else {
            echo $title;
        }

        $span_tag = new SwatHtmlTag('span');
        $span_tag->class = 'swat-table-view-orderable-column-title-last';
        $span_tag->setContent($last_word, $content_type);
        $span_tag->display();
    }
1054572
function set_title($title) {
        global $PAGE;

        $this->page = null;
        $this->title = $title;
        // set_title calls format_string itself so no probs there
        $PAGE->set_title($this->title);
    }