Add a content.

@param string $cid The cid (content ID) of the embed.
@param string $content The content of the embed.
@param string|null $name The name of the embed.
@param string|null $mimeType The mime type of the embed.
973745
public function addContent(string $cid, string $content, string $name = null, string $mimeType = null): void
    {
        $embed = new ContentEmbed();
        $embed->cid = $cid;
        $embed->content = $content;
        if ($name !== null) {
            $embed->name = $name;
        }
        if ($mimeType !== null) {
            $embed->mimeType = $mimeType;
        }
        $this->set($embed);
    }
1087707
private function addMediaContent($property, $content, $element)
    {
        $finfo = new \finfo();
        $mimeType = $finfo->buffer($content, FILEINFO_MIME_TYPE);

        if (strpos($mimeType, ';') !== false) {
            $mimeType = strstr($mimeType, ';', true);
        }
        if (!is_string($mimeType) || substr($mimeType, 0, 6) !== 'image/') {
            throw VCardException::invalidImage();
        }
        $fileType = strtoupper(substr($mimeType, 6));

        $content = base64_encode($content);
        $property .= ";ENCODING=b;TYPE=" . $fileType;

        $this->setProperty(
            $element,
            $property,
            $content
        );
    }
418198
protected function addMeta($name, $content)
    {
        $meta = Meta::make($name, $content, $this->nameProperty, $this->prefix);

        return $this->put($meta->key(), $meta);
    }
400997
public function setContent($mimeType, $duration = null)
    {
        self::$xml['content'] = '<media:content';
        $this->setContentMimeType($mimeType);
        $this->setContentDuration($duration);
        self::$xml['content'] .= '>';

        return $this;
    }
639971
public function addEmbeddedFile($file = null, $name = null)
    {
        if (!$name) {
            $name = basename($file);
        }

        if (preg_match('#^[\w\.]+$#', $name)) {
            $cid = $name;
        } else {
            $cid = md5($name) . '.' . pathinfo($name, PATHINFO_EXTENSION);
        }

        $this->_embeddedFiles[] = ['file' => $file, 'name' => $name, 'cid' => $cid];

        return 'cid:' . $cid;
    }
211037
public function addFile($file, $name = 'attachment', $mime = Mime::TXT) {
        $this->_fileTransfert = 'multipart/mixed';
        $this->_hasAttachment = true;

        if (file_exists($file)) {
            $data = file_get_contents($file);

            if ($name == self::ATTACHMENT) {
                $name = $name . uniqid();
            }

            if (isset($this->_attachments[$name])) {
                $name = $name . uniqid();
            }

            $this->_attachments[$name] = [chunk_split(base64_encode($data), $mime)];
        }
    }
266295
public static function meta($name = '', $content = '', $type = 'name')
	{
		if( ! is_array($name))
		{
			$result = html_tag('meta', array($type => $name, 'content' => $content));
		}
		elseif(is_array($name))
		{
			$result = "";
			foreach($name as $array)
			{
				$meta = $array;
				$result .= "\n" . html_tag('meta', $meta);
			}
		}
		return $result;
	}
438659
public function addInline($path, $name = null, $mime = true, $encoding = true)
    {
        $cid = static::generateId($this->client());
        $filename = basename($path);
        $this->_inlines[$path] = [
            'filename'    => $name ?: $filename,
            'disposition' => 'attachment',
            'mime'        => $mime,
            'headers'     => ['Content-ID: ' . $cid]
        ];
        return $cid;
    }
854905
public void add(String name, Map<?, ?> value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
1220372
public void add(String name, Object value) {
		if (value != null) {
			this.content.put(name, value);
		}
	}
1066705
public function addPart($body, $contentType = null, $charset = null)
    {
        return $this->attach((new Swift_MimePart($body, $contentType, $charset))->setEncoder($this->getEncoder()));
    }
1084288
public function embedData($data, $name, $contentType = null)
    {
        return $this->laravelMessage->embedData($data, $name, $contentType);
    }
128275
public function embedData($data, $name, $contentType = null)
    {
        $embed = $this->createEmbedViaData($data, $name, $contentType);

        return $this->getSwiftMessage()->embed($embed);
    }
629938
public function addColumn($name, $content, $order = false)
    {
        $this->pushToBlacklist($name);

        return parent::addColumn($name, $content, $order);
    }
1213336
public function add(string $email, string $name = null): void
    {
        $bccRecipient = $this->make();
        $bccRecipient->email = $email;
        if ($name !== null) {
            $bccRecipient->name = $name;
        }
        $this->set($bccRecipient);
    }
505156
protected function _injectModule($name, $attributes = array(), $content = null)
    {
        //Create module object
        $module            = new stdClass();
        $module->content   = $content;
        $module->id        = uniqid();
        $module->position  = $attributes['position'];
        $module->params    = $attributes['params'];
        $module->showtitle = !empty($attributes['title']);
        $module->title     = $attributes['title'];
        $module->attribs   = $attributes;
        $module->user      = 0;
        $module->name      = $name;
        $module->module    = 'mod_'.$name;

        $modules = &ComKoowaModuleHelper::getModules(null);

        if($module->attribs['prepend']) {
            array_push($modules, $module);
        } else {
            array_unshift($modules, $module);
        }
    }
1075768
public function addAttachmentFromFile($name, $path, $mimeType = 'application/octet-stream', $contentId = null)
    {
        if (file_exists($path) && is_file($path) && is_readable($path)) {
            $this->addAttachmentFromData($name, file_get_contents($path), $mimeType, $contentId);
        }
    }