/** * Constructor * * @param Sanitizer $ts text sanitizer instance being extended */ public function __construct(Sanitizer $ts) { $this->ts = $ts; $fullName = get_called_class(); $shortName = ($pos = strrpos($fullName, '\\')) ? substr($fullName, $pos + 1) : $fullName; $this->config = $ts->getConfig($shortName); $this->shortcodes = $ts->getShortCodesInstance(); }