Overview

Namespaces

  • LucidFrame
    • Console
    • Core
    • File
  • None

Classes

  • Form
  • Middleware
  • Pager
  • QueryBuilder
  • Router
  • SchemaManager
  • Seeder
  • Validation
  • Overview
  • Namespace
  • Class

Class Validation

Form validation helper

Namespace: LucidFrame\Core
Located at classes/Validation.php
Methods summary
public static
# set( string $key, mixed $value = null )

Setter

Setter

Parameters

$key
The property name
$value
The value for the property
public static mixed
# get( string $key )

Getter

Getter

Parameters

$key
The property name

Returns

mixed
public static boolean
# check( array $validations, string $type = 'multi' )

Check all inputs according to the validation rules provided

Check all inputs according to the validation rules provided

Parameters

$validations
The array of the validation rules
$type

The return form of the error message: "multi" to return all error messages occurred; "single" to return the first error message occurred

Returns

boolean
public static
# addError( string $id, string $msg )

Add an external error message

Add an external error message

Parameters

$id
HTML ID
$msg
The error message to show
Properties summary
public static array $errors

The array of the error messages upon validation

The array of the error messages upon validation

# array()
PHPLucidFrame 2.2 API documentation generated by ApiGen