Force

Contains static methods to validate model data and tries to convert, correct or remove invalid data to. Checks model property data against property definition.
Source
Force.php
Depends on
IModel , Model , IDbAbstract

Static Methods

evaluate

void Force::evaluate(IModel model)

Validate and fix all model's properties data.

Arguments

    model (IModel)
    Model object to be checked

Returns

void

evaluateProperty

void Force::evaluateProperty(&mixed &property, array def, IDbAbstract dbo=null)

Validate and fix a single data.

Arguments

    &property (&mixed)
    Reference to model property
    def (array)
    The property definition
    dbo=null (IDbAbstract)
    Database abstract object (only needed to fix time stamps based on the database engine)

Returns

void