public function register_decoder($format, $method) { // Decoder callbacks must adhere to the following pattern: // array my_decoder(string $data) $this->options['decoders'][$format] = $method; }