ICanBoogie
  • Documentation
  • API Reference
  • ActiveRecord 3.0.x
Namespaces
  • ICanBoogie
    • ActiveRecord
      • ActiveRecordCache
      • Driver
      • Property
      • Validate
        • Reader
        • Validator
        • ValidatorProvider
Classes
  • ValidateActiveRecord

Class ValidateActiveRecord

Validates an active record.

Namespace: ICanBoogie\ActiveRecord\Validate
Located at ActiveRecord/Validate/ValidateActiveRecord.php

Methods summary

public __invoke( ICanBoogie\ActiveRecord $record ) : ICanBoogie\Validate\ValidationErrors|array

Validates an active record.

Validates an active record.

Parameters

$record

Returns

ICanBoogie\Validate\ValidationErrors|array
An array of errors.
protected resolve_rules( ICanBoogie\ActiveRecord $record ) : array

Resolves validation rules.

Resolves validation rules.

Parameters

$record

Returns

array
protected create_validator_provider( void ) : ICanBoogie\Validate\ValidatorProvider

Creates validator provider.

Creates validator provider.

Returns

ICanBoogie\Validate\ValidatorProvider
protected create_validator( array $rules, callable $validator_provider = null, callable $message_formatter = null ) : ICanBoogie\Validate\Validation

Creates validations.

Creates validations.

Parameters

$rules
$validator_provider
$message_formatter

Returns

ICanBoogie\Validate\Validation
protected create_reader( ICanBoogie\ActiveRecord $record ) : ICanBoogie\ActiveRecord\Validate\Reader\RecordAdapter

Creates the value reader for the active record.

Creates the value reader for the active record.

Parameters

$record

Returns

ICanBoogie\ActiveRecord\Validate\Reader\RecordAdapter
ActiveRecord 3.0.x – Check on GitHub – API documentation generated by ApiGen