Start a write event

@param  string $title
@param  array  $options
@return ProfileInterface
488531
public function startWrite($message, array $options = null) {
		return $this->startEvent($message, ProfileInterface::TYPE_WRITE, $options);
	}
1290120
public function event($title, $text, $type = Event::INFO, array $tags = array(), $timestamp = null)
    {
        try {
            $this->sendEvent($this->eventFactory->event($title, $text, $type, $tags, $timestamp));
        } catch (\Exception $exception) {
            $this->logException($exception);
        }

        return $this;
    }
175543
public function setTitle(Title $title)
    {
        $this->attachment['title'] = $title;

        if ($title->hasLink()) {
            $this->attachment['title_link'] = $title->getLink();
        }

        return $this;
    }
765469
public function keyword($title, $content, $options = [])
    {
        $data = array_merge([
            'title'   => $title, 
            'content' => $content
        ], $options);

        return $this->send('keyword', $data);
    }
1044841
public function add($title, $options = '')
    {
        $id = isset($options['id']) ? $options['id'] : $this->id();

        $item = new Item($this, $id, $title, $options);

        $this->items->push($item);

        return $item;
    }
332151
public function setTitle($title = null)
        {
            if (null !== $title && !is_string($title)) {
                throw new Exception(
                        'Invalid argument: $title must be a non-empty string');
            }

            $this->_title = $title;

            return $this;
        }
1315548
public function setRootTitle( $title )
    {
        $content = $this->getDependentContent();

        if ( $content )
        {
            $content->title = $title;
        }

        return $this;
    }
631045
public function startInsert($message, array $options = null) {
		return $this->startEvent($message, ProfileInterface::TYPE_INSERT, $options);
	}
1160779
protected function showSuccess($title, $messages = '', $output)
    {
        $output->writeln("<info>$title</info>");
        $output->writeln('');
        if (is_array($messages)) {
            foreach ($messages as $message) {
                $output->writeln("$message");
            }
            $output->writeln('');
        } elseif ($messages != '') {
            $output->writeln($messages);
            $output->writeln('');
        }
    }
325527
public function setTitle( $title )
	{
	    $this->title = $title;
		$this->jsWriter->setOption( 'title', $title );

		return $this;
	}
907347
public function setTitle(string $title) {
        if($this->setModified('title', $title)->isModified()) {
            $this->title = $title;
        }

        return $this;
    }
184410
public function title(string $title): Command
    {
        $size = strlen($title);
        $spaces = str_repeat(' ', $size);

        $this->output->newLine();
        $this->output->writeln("<bg=blue;fg=white>$spaces$spaces$spaces</>");
        $this->output->writeln("<bg=blue;fg=white>$spaces$title$spaces</>");
        $this->output->writeln("<bg=blue;fg=white>$spaces$spaces$spaces</>");
        $this->output->newLine();

        return $this;
    }
527311
protected function _createNewContent($options = array()) {

        /**
         * Import variables into the current symbol table from an array
         */
        extract($options);

        /**
         * Create new entity
         */
        $contentTable = TableRegistry::get('CmsContent');
        $content = $contentTable->newEntity();
        $content->parent = isset($parent) ? intval($parent) : 0;
        $content->name = $this->_randomString();
        $content->content_title = isset($content_title) ? h($content_title) : '';
        $content->content_description = isset($content_description) ? h($content_description) : '';
        $content->content_excerpt = isset($content_excerpt) ? h($content_excerpt) : '';
        $content->content_status = isset($content_status) ? trim($content_status) : 'draft';
        $content->content_type = isset($content_type) ? trim($content_type) : 'page';
        $content->content_path = isset($content_path) ? trim($content_path) : '';
        $content->menu_order = isset($menu_order) ? trim($menu_order) : 0;
        $content->publish_start = isset($publish_start) ? trim($publish_start) : date('Y-m-d H:i:s');
        $content->publish_end = isset($publish_end) ? trim($publish_end) : '0000-00-00 00:00:00';
        $content->author_id = isset($author_id) ? intval($author_id) : 1;
        $content->created = date('Y-m-d H:i:s');
        $content->created_user = isset($created_user) ? intval($created_user) : 1;
        $content->modified = date('Y-m-d H:i:s');
        $content->modified_user = isset($modified_user) ? intval($modified_user) : 1;

        /**
         * Save and set name of Content
         */
        if ($contentTable->save($content)) :
            $content->name = (!isset($name)) ? $content->id : $this->_permittedContentName($content->id, $name);
            if ($contentTable->save($content))
                return $content->id;
        endif;

        /**
         * If not save Content return FALSE
         */
        return FALSE;
    }
735293
public static function delete($title = null)
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $title   = (empty($title)) ? __d('core', 'Delete') : $title;

        $toolbar->appendButton('Core.action', $title, self::ACTION_DELETE, []);
    }
611344
public function write($text, $option = [])
    {
        Output::write($this->format($text, $option));
        return $this;
    }
770848
public function warning(string $message, string $title = '', array $options = []): self
    {
        return $this->addNotification(self::WARNING, $message, $title, $options);
    }
1169466
public function writeHeadline( string $title, int $level ) : void
	{
		$this->write( "%s %s\n\n", str_repeat( '#', $level ), $title );
	}