private function internalSanitizeHooks($key, $value, $type = 'input')
    {
        $hook = trim(strtolower($type)) == 'input' ? 'sanitizeInputHook' : 'sanitizeOutputHook';
        return method_exists($this, $hook) ? $this->$hook($key,
            $value) : $value;
    }