ArangoDB-PHP API Documentation
  • Namespace
  • Class
  • Deprecated

Namespaces

  • triagens
    • ArangoDb

Classes

  • AdminHandler
  • AqlUserFunction
  • Autoloader
  • Batch
  • BatchPart
  • BindVars
  • Collection
  • CollectionHandler
  • Connection
  • ConnectionOptions
  • Cursor
  • Database
  • DefaultValues
  • Document
  • DocumentHandler
  • Edge
  • EdgeDefinition
  • EdgeHandler
  • Endpoint
  • Export
  • ExportCursor
  • Graph
  • GraphHandler
  • Handler
  • HttpHelper
  • HttpResponse
  • QueryCacheHandler
  • QueryHandler
  • Statement
  • TraceRequest
  • TraceResponse
  • Transaction
  • Traversal
  • UpdatePolicy
  • UrlHelper
  • Urls
  • User
  • UserHandler
  • ValueValidator
  • Vertex
  • VertexHandler

Exceptions

  • ClientException
  • ConnectException
  • Exception
  • ServerException

Class ValueValidator

A simple validator for values to be stored in the database

Namespace: triagens\ArangoDb
Package: triagens\ArangoDb
Since: 0.2
Located at ValueValidator.php

Methods summary

public static
# validate( mixed $value )

Validate the value of a variable

Validate the value of a variable

Allowed value types are string, integer, double and boolean. Arrays are also allowed if they contain only one of the former types.

Parameters

$value
  • value to validate

Returns


  • will throw if an invalid value type is passed

Throws

triagens\ArangoDb\ClientException
ArangoDB-PHP API Documentation API documentation generated by ApiGen