| 1 | <?php |
||
| 9 | trait TTextUtilities |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Get text until <!--stop--> or all text. |
||
| 13 | * |
||
| 14 | * @param string $text with content |
||
| 15 | * |
||
| 16 | * @return string with text |
||
| 17 | */ |
||
| 18 | 8 | public function getUntilStop($text) |
|
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Get text until <!--more--> or all text. |
||
| 30 | * |
||
| 31 | * @param string $text with content |
||
| 32 | * |
||
| 33 | * @return array with text and boolean if more was detected. |
||
| 34 | */ |
||
| 35 | 8 | public function getUntilMore($text) |
|
| 44 | } |
||
| 45 |