| 1 |
<?php |
| 2 |
|
| 3 |
namespace cookiebot_addons\lib\buffer; |
| 4 |
|
| 5 |
Interface Buffer_Output_Tag_Interface { |
| 6 |
|
| 7 |
/** |
| 8 |
* Buffer_Output_Tag_Interface constructor. |
| 9 |
* |
| 10 |
* @param $tag |
| 11 |
* @param $priority |
| 12 |
* @param array $keywords |
| 13 |
* |
| 14 |
* @version 1.3.0 |
| 15 |
* @since 1.1.0 |
| 16 |
*/ |
| 17 |
public function __construct( $tag, $priority, $keywords = array() ); |
| 18 |
|
| 19 |
/** |
| 20 |
* Start buffering |
| 21 |
* |
| 22 |
* @since 1.1.0 |
| 23 |
*/ |
| 24 |
public function cookiebot_start_buffer(); |
| 25 |
|
| 26 |
/** |
| 27 |
* End buffer and return manipulated output |
| 28 |
* |
| 29 |
* @since 1.1.0 |
| 30 |
*/ |
| 31 |
public function cookiebot_stop_buffer(); |
| 32 |
|
| 33 |
/** |
| 34 |
* Manipulate the output and add scritp attributes if it does match the criterion |
| 35 |
* |
| 36 |
* @param $buffer string Catched output |
| 37 |
* |
| 38 |
* @return mixed string Manipulated Output |
| 39 |
* |
| 40 |
* @since 1.1.0 |
| 41 |
*/ |
| 42 |
public function manipulate_script( $buffer ); |
| 43 |
} |
| 44 |
|