ModelBundle/DataFixtures/MongoDB/LoadContentThousandData.php
public function generateNews($index, $version, $language, $deleted = false)
    {
        $title = $this->generateContentAttribute('title', 'New number' . $index . 'in language ' . $language);
        $intro = $this->generateContentAttribute('intro', 'This is the introduction for the news number ' . $index .'.');
        $text = $this->generateContentAttribute('text', 'Donec bibendum at nibh eget imperdiet. Mauris eget justo augue. Fusce fermentum iaculis erat, sollicitudin elementum enim sodales eu. Donec a ante tortor. Suspendisse a.', 'wysiwyg');
        $news = $this->generateContent('news', 'news-' . $index, 'News ' . $index, $language, $version, $deleted);

        return $this->addNewsAttributes($news, $title, $intro, $text);
    }
public function generateNews($index, $version, $language, $deleted = false)
    {
        $title = $this->generateContentAttribute('title', 'New number' . $index . 'in language ' . $language);
        $intro = $this->generateContentAttribute('intro', 'This is the introduction for the news number ' . $index .'.');
        $text = $this->generateContentAttribute('text', 'Donec bibendum at nibh eget imperdiet. Mauris eget justo augue. Fusce fermentum iaculis erat, sollicitudin elementum enim sodales eu. Donec a ante tortor. Suspendisse a.', 'wysiwyg');
        $news = $this->generateContent('news', 'news-' . $index, 'News ' . $index, $language, $version, $deleted);

        return $this->addNewsAttributes($news, $title, $intro, $text);
    }
public function generateNews ( $ index , $ version , $ language , $ deleted = false ) { $ title = $ this -> generateContentAttribute ( 'title' , 'New number' . $ index . 'in language ' . $ language ) ; $ intro = $ this -> generateContentAttribute ( 'intro' , 'This is the introduction for the news number ' . $ index . '.' ) ; $ text = $ this -> generateContentAttribute ( 'text' , 'Donec bibendum at nibh eget imperdiet. Mauris eget justo augue. Fusce fermentum iaculis erat, sollicitudin elementum enim sodales eu. Donec a ante tortor. Suspendisse a.' , 'wysiwyg' ) ; $ news = $ this -> generateContent ( 'news' , 'news-' . $ index , 'News ' . $ index , $ language , $ version , $ deleted ) ; return $ this -> addNewsAttributes ( $ news , $ title , $ intro , $ text ) ; }
@param string  $index
@param int     $version
@param string  $language
@param boolean $deleted

@return ContentInterface
@param string $index @param int $version @param string $language @param boolean $deleted