| 1 | <?php |
||
| 12 | class Configurator extends ConfiguratorBase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string Name of attribute that stores the image's URL |
||
| 16 | */ |
||
| 17 | protected $attrName = 'src'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $quickMatch = '://'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $regexp = '#\\bhttps?://[-.\\w]+/(?:[-+.:/\\w]|%[0-9a-f]{2}|\\(\\w+\\))+\\.(?:gif|jpe?g|png)(?!\\S)#i'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string Name of the tag used to represent images |
||
| 31 | */ |
||
| 32 | protected $tagName = 'IMG'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Creates the tag used by this plugin |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | protected function setUp() |
||
| 56 | } |