lib/Weasel/JsonMarshaller/JsonMapper.php
public function registerJsonType($name, $handler, $aliases = array())
    {
        $this->typeHandlers[$name] = $handler;
        foreach ($aliases as $alias) {
            $this->typeHandlers[$alias] = $handler;
        }
    }
public function registerJsonType($name, $handler, $aliases = array())
    {
        $this->typeHandlers[$name] = $handler;
        foreach ($aliases as $alias) {
            $this->typeHandlers[$alias] = $handler;
        }
    }
public function registerJsonType ( $ name , $ handler , $ aliases = array ( ) ) { $ this -> typeHandlers [ $ name ] = $ handler ; foreach ( $ aliases as $ alias ) { $ this -> typeHandlers [ $ alias ] = $ handler ; } }
Register a custom type.
@param string $name
@param Types\JsonType $handler
@param string[] $aliases
Register a custom type .