Class lispa\amos\core\utilities\FormUtility
Inheritance | lispa\amos\core\utilities\FormUtility |
---|
Class FormUtility
Public Methods
Method | Description | Defined 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
Return an array with the values used in boolean fields.
public static array getBooleanFieldsValues ( ) |
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 |
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 |
Return the error triangle to put in a tab header.
public static string tabErrorTriangle ( ) |