public function Paragraphs($minVal = 1, $maxVal = null)
    {
        list($min, $max) = $this->resolveMinMax($minVal, $maxVal, 5);
        $paragraphs = rand($min, $max);
        $faker = $this->getFaker();
        $i = 0;
        $html = "";
        while ($i < $paragraphs) {
            $html .= "<p>".$faker->paragraph(rand(2, 6))."</p>";
            $i++;
        }

        return DBField::create_field("HTMLText", $html);
    }
public function Paragraphs($minVal = 1, $maxVal = null)
    {
        list($min, $max) = $this->resolveMinMax($minVal, $maxVal, 5);
        $paragraphs = rand($min, $max);
        $faker = $this->getFaker();
        $i = 0;
        $html = "";
        while ($i < $paragraphs) {
            $html .= "<p>".$faker->paragraph(rand(2, 6))."</p>";
            $i++;
        }

        return DBField::create_field("HTMLText", $html);
    }
public function Paragraphs ( $ minVal = 1 , $ maxVal = null ) { list ( $ min , $ max ) = $ this -> resolveMinMax ( $ minVal , $ maxVal , 5 ) ; $ paragraphs = rand ( $ min , $ max ) ; $ faker = $ this -> getFaker ( ) ; $ i = 0 ; $ html = "" ; while ( $ i < $ paragraphs ) { $ html .= "<p>" . $ faker -> paragraph ( rand ( 2 , 6 ) ) . "</p>" ; $ i ++ ; } return DBField :: create_field ( "HTMLText" , $ html ) ; }
Generates a random number of Paragraphs
@param integer $min The minimum number of paragraphs
@param integer $max The maximum number of paragraphs
@return  HTMLText
Generates a random number of Paragraphs