[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/ -> validation.php (summary)

Translation Validation API

File Size: 230 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

GP_Validation_Rules:: (5 methods):
  __construct()
  __call()
  run()
  run_on_single_field()
  construct_error_message()

GP_Validators:: (3 methods):
  register()
  unregister()
  get()


Class: GP_Validation_Rules  - X-Ref

Core class to handle validation of translations.

Uses magic methods in the format of [field]_[rule].

The below is a list of all magic methods called.
Note that once a method has been defined from one file it will not be redefine in subsequent file sections.

From gp_includes/things/administrative-permissions.php:

__construct( $field_names )   X-Ref
No description

__call( $name, $args )   X-Ref
No description

run( $thing )   X-Ref
No description

run_on_single_field( $field, $value )   X-Ref
No description

construct_error_message( $rule )   X-Ref
No description

Class: GP_Validators  - X-Ref

register( $key, $callback, $negative_callback = null )   X-Ref
No description

unregister( $key )   X-Ref
No description

get( $key )   X-Ref
No description



Generated: Sat Nov 23 01:01:06 2024 Cross-referenced by PHPXref 0.7.1