public function p_open() { if ($this->sum_capture && $this->sum_paragraphs < 2) { $this->sum_paragraphs++; } parent::p_open(); }