The object's internal variable will also be updated.
If the value hasnt changed, the database will not be updated.
Note: You cannot set $p_commit to FALSE and $p_isSql to TRUE
at the same time.
public setProperty ( string $p_dbColumnName, string $p_value, boolean $p_commit = true, boolean $p_isSql = false ) : boolean | ||
$p_dbColumnName | string | The name of the column that is to be updated. |
$p_value | string | The value to set. |
$p_commit | boolean | If set to true, the value will be written to the database immediately. If set to false, the value will not be written to the database. Default is true. |
$p_isSql | boolean | Set this to TRUE if p_value consists of SQL commands. There is no way to know what the result of the command is, so we will need to refetch the value from the database in order to update the internal variable's value. |
Résultat | boolean | TRUE on success, FALSE on error. |