@param \Riak\Client\ProtoBuf\RpbContent $rpbcontent

@return \Riak\Client\Core\Message\Kv\Content
775542
private function createContent(RpbContent $rpbcontent)
    {
        $content = new Content();

        $content->contentType  = $rpbcontent->getContentType()->get();
        $content->lastModified = $rpbcontent->getLastMod()->get();
        $content->vtag         = $rpbcontent->getVtag()->get();
        $content->value        = $rpbcontent->getValue();
        $content->indexes      = [];
        $content->metas        = [];

        /** @var $index \Riak\Client\ProtoBuf\RpbPair */
        foreach ($rpbcontent->getIndexesList() as $index) {
            $key   = $index->getKey();
            $value = $index->getValue()->get();

            $content->indexes[$key][] = $value;
        }

        /** @var $index \Riak\Client\ProtoBuf\RpbPair */
        foreach ($rpbcontent->getUsermetaList() as $meta) {
            $key   = $meta->getKey();
            $value = $meta->getValue()->get();

            $content->metas[$key] = $value;
        }

        /** @var $index \Riak\Client\ProtoBuf\RpbLink */
        foreach ($rpbcontent->getLinksList() as $link) {
            $content->links[] = [
                'bucket' => $link->bucket,
                'key'    => $link->key,
                'tag'    => $link->tag,
            ];
        }

        return $content;
    }
220130
protected function injectContent(SlotContent $slotContent, $content)
    {
        $regex = $this->getPattern($slotContent->getSlotName());
        if (false == preg_match($regex, $content, $match)) {
            return;
        }
        $newContent = $match[1] . PHP_EOL . $slotContent->getContent();

        return preg_replace($regex, $newContent, $content);
    }
328992
private function content(Post $post, int $count): string
    {
        $out = '';

        if (!$this->posts->isContent()) {
            return $out;
        }

        $content = $post->content(
            $this->posts->args['excerpt']['more_text'],
            '',
            $this->posts->args['excerpt']['paginate']
        );

        if (!$content) {
            return $out;
        }

        $out .= '<div class="entry-content" itemprop="articleBody">';
        $out .= $content;
        $out .= '</div><!-- .entry-content -->';

        return $out;
    }
359044
public function content($more_text = null, $strip_teaser = false)
    {
        $content = apply_filters('the_content', get_the_content($more_text, $strip_teaser));
        $content = str_replace(']]>', ']]&gt;', $content);

        return $content;
    }
620372
function objectAttributeContent( $contentObjectAttribute )
    {
        $date = new eZDate( );
        $stamp = $contentObjectAttribute->attribute( 'data_int' );
        $date->setTimeStamp(
            eZTimestamp::getLocalTimestampFromUtcTimestamp( $stamp )
        );
        return $date;
    }
775501
public function addHtmlContent(\Haven\CmsBundle\Entity\PageContent $pageContents) {

        $this->addPageContent($pageContents);

        return $this;
    }
1251777
function objectAttributeContent( $contentObjectAttribute )
    {
        $paexID = $contentObjectAttribute->attribute( "contentobject_id" );
        $paex = eZPaEx::fetch( $paexID );
        return $paex;
    }
42301
public function getRawContent(): string
    {
        if (!$this->rawContentIsFetched) {
            $this->setRawContent(file_get_contents('php://input'));
            $this->rawContentIsFetched = true;
        }

        return parent::getRawContent();
    }
1219366
function objectAttributeContent( $contentObjectAttribute )
    {
        if ( !$contentObjectAttribute->attribute( 'data_int' ) )
        {
            $attrValue = false;
            return $attrValue;
        }

        $url = eZURL::url( $contentObjectAttribute->attribute( 'data_int' ) );
        return $url;
    }
67610
public function fcontents() {
        if ($this->contents === null) {
            $cl = $this->contents_lazy;
            $this->contents = $cl();
        }
        return $this->contents;
    }
997576
final private function copyContent(string $content, int $coef):string
    {
        $str = "";
        for ($i = 0; $i < $coef; $i++) {
            $str = $str.$content;
        }
        return ($str);
    }
896
public function block(block_contents $bc, $region) {
        $bc = clone($bc); // Avoid messing up the object passed in.
        if (empty($bc->blockinstanceid) || !strip_tags($bc->title)) {
            $bc->collapsible = block_contents::NOT_HIDEABLE;
        }

        $id = !empty($bc->attributes['id']) ? $bc->attributes['id'] : uniqid('block-');
        $context = new stdClass();
        $context->skipid = $bc->skipid;
        $context->blockinstanceid = $bc->blockinstanceid;
        $context->dockable = $bc->dockable;
        $context->id = $id;
        $context->hidden = $bc->collapsible == block_contents::HIDDEN;
        $context->skiptitle = strip_tags($bc->title);
        $context->showskiplink = !empty($context->skiptitle);
        $context->arialabel = $bc->arialabel;
        $context->ariarole = !empty($bc->attributes['role']) ? $bc->attributes['role'] : 'complementary';
        $context->type = $bc->attributes['data-block'];
        $context->title = $bc->title;
        $context->content = $bc->content;
        $context->annotation = $bc->annotation;
        $context->footer = $bc->footer;
        $context->hascontrols = !empty($bc->controls);
        if ($context->hascontrols) {
            $context->controls = $this->block_controls($bc->controls, $id);
        }

        return $this->render_from_template('core/block', $context);
    }
812660
protected function _contentAttribute($content = '', $_attributes, $type)
    {
        $type   = strtolower($type);

        $perm   = $this->settings['attr']['perm'] ?? NULL;
        
        $return = '<'.$type.$this->attributes($_attributes).'>'.$this->stringOrCallback($content)."</$type>".EOL;

        $this->outputElement .= $this->_perm($perm, $return);

        return $this;
    }
196760
public function getMailContent($type = Kwf_Model_Mail_Row::MAIL_CONTENT_AUTO)
    {
        if ($type == Kwf_Model_Mail_Row::MAIL_CONTENT_AUTO) {
            $ret = $this->_getHtmlMailContent();
            if (is_null($ret)) $ret = $this->_getTextMailContent();
            return $ret;
        } else if ($type == Kwf_Model_Mail_Row::MAIL_CONTENT_HTML) {
            return $this->_getHtmlMailContent();
        } else if ($type == Kwf_Model_Mail_Row::MAIL_CONTENT_TEXT) {
            return $this->_getTextMailContent();
        }

        return null;
    }
700525
public function addContent(string $content, string $contentType, ?string $charset = null): Message
    {
        $charset = $charset ?: $this->getCharset();

        $this->content[] = [
            'content'      => $content,
            'content_type' => $contentType,
            'charset'      => $charset
        ];

        return $this;
    }
978066
function objectAttributeContent( $contentObjectAttribute )
    {
        $value = $contentObjectAttribute->attribute( 'data_text' );

        $countryList = explode( ',', $value );
        $resultList = array();
        foreach ( $countryList as $alpha2 )
        {
            $eZCountry = eZCountryType::fetchCountry( $alpha2, 'Alpha2' );
            $resultList[$alpha2] = $eZCountry ? $eZCountry : '';
        }
        // Supporting of previous version format.
        // For backwards compatibility.
        if ( count( $resultList ) == 1 and $resultList[$value] == '' )
            $resultList = $value;

        $content = array( 'value' => $resultList );
        return $content;
    }
1056331
public function bcc($mUserIdOrEmail, $bAppend = false)
    {
        return $this->addRecipient($mUserIdOrEmail, $bAppend, $this->aBcc);
    }