Class lispa\amos\core\utilities\FormUtility

Inheritancelispa\amos\core\utilities\FormUtility

Class FormUtility

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getBooleanFieldsValues() Return an array with the values used in boolean fields. lispa\amos\core\utilities\FormUtility
linkModels() This method link two models. lispa\amos\core\utilities\FormUtility
saveMmsFields() Save all values selected by user in a multi select field. lispa\amos\core\utilities\FormUtility
tabErrorTriangle() Return the error triangle to put in a tab header. lispa\amos\core\utilities\FormUtility

Method Details

getBooleanFieldsValues() public static method

Return an array with the values used in boolean fields.

public static array getBooleanFieldsValues ( )
linkModels() public static method

This method link two models.

public static boolean linkModels ( $startModel, $modelToLink, $relationToLink )
$startModel lispa\amos\core\record\Record
$modelToLink lispa\amos\core\record\Record
$relationToLink string
saveMmsFields() public static method

Save all values selected by user in a multi select field.

public static boolean saveMmsFields ( $attrMmPost, $mmModelClassName, $firstIdField, $firstIdValue, $secondIdField )
$attrMmPost array
$mmModelClassName string
$firstIdField string
$firstIdValue integer
$secondIdField string
tabErrorTriangle() public static method

Return the error triangle to put in a tab header.

public static string tabErrorTriangle ( )