NeuralMesh
  • Class
  • Tree

Classes

  • AbstractNetwork
  • Controller
  • layer
  • ManagedNetwork
  • Model
  • mysql
  • Navigation
  • network
  • NeuralMesh
  • neuron
  • nmesh
  • synapse
  • train
  • UnmanagedNetwork
  • users
  • validation

Class validation

Validation class

Author: Louis Stowasser
Located at nm-admin/lib/proxy/validation.class.php

Methods summary

public
# validation( )

Constructor

Constructor

public static
# add( )

Merges arrays together

Merges arrays together

Returns

Merged array
public
# run( name $name, data $data = array() )

Wrapper for the load function. Handles error messaging

Wrapper for the load function. Handles error messaging

Parameters

$name
of the validation set
$data
array collection
public
# load( name $name = "default", data $data = array() )

Loads a validation set and records errors to an array

Loads a validation set and records errors to an array

Parameters

$name
of the validation set
$data
data to process
public
# getErrors( )

Getter for the errors array

Getter for the errors array

Returns

array of errors
public
# passed( )

Getter for the pass status

Getter for the pass status

Returns

array of errors
public
# displayErrors( )

Print the errors in an unordered list

Print the errors in an unordered list

Returns

The HTML error message
public static
# is_binary( $value )

Check value contains only binary numbers

Check value contains only binary numbers

public static Boolean
# is_signed( $value )

Checks if value is a signed integer

Checks if value is a signed integer

Parameters

$value
to check

Returns

Boolean
if passed or failed
public static
# is_alpha( $value )

Check value contains only letters, underscore and hyphen

Check value contains only letters, underscore and hyphen

public static
# is_num( $value )

Check value contains only integers, decimal or hyphen

Check value contains only integers, decimal or hyphen

public static
# is_alphanum( $value )

Check value contains only alphanumeric characters and hyphen, space, underscore

Check value contains only alphanumeric characters and hyphen, space, underscore

public static
# is_alphastrict( $value )

Check value contains only alphanumeric characters

Check value contains only alphanumeric characters

NeuralMesh API documentation generated by ApiGen