* @var array Associative array of current item' field values
* @access public
*/
var $FieldValues;
-
+
/**
* Unformatted field values, before parse
*
* @var Array
* @access private
*/
var $DirtyFieldValues = Array();
-
+
var $FieldErrors;
-
+
var $ErrorMsgs = Array();
-
+
/**
* If set to true, Update will skip Validation before running
*
* @var array Associative array of current item' field values
* @access public
*/
var $IgnoreValidation = false;
-
+
var $Loaded = false;
-
+
/**
* Holds item' primary key value
*
* @var int Value of primary key field for current item
* @access public
*/
var $ID;
-
+
function kDBItem()
{
parent::kDBBase();
- $this->ErrorMsgs['required'] = 'Field is required';
- $this->ErrorMsgs['unique'] = 'Field value must be unique';
- $this->ErrorMsgs['value_out_of_range'] = 'Field is out of range, possible values from %s to %s';
- $this->ErrorMsgs['length_out_of_range'] = 'Field is out of range';
- $this->ErrorMsgs['bad_type'] = 'Incorrect data format, please use %s';
- $this->ErrorMsgs['bad_date_format'] = 'Incorrect date format, please use (%s) ex. (%s)';
+ $this->ErrorMsgs['required'] = $this->Application->Phrase('la_err_required'); //'Field is required';
+ $this->ErrorMsgs['unique'] = $this->Application->Phrase('la_err_unique'); //'Field value must be unique';
+ $this->ErrorMsgs['value_out_of_range'] = $this->Application->Phrase('la_err_value_out_of_range'); //'Field is out of range, possible values from %s to %s';
+ $this->ErrorMsgs['length_out_of_range'] = $this->Application->Phrase('la_err_length_out_of_range'); //'Field is out of range';
+ $this->ErrorMsgs['bad_type'] = $this->Application->Phrase('la_err_bad_type'); //'Incorrect data format, please use %s';
+ $this->ErrorMsgs['bad_date_format'] = $this->Application->Phrase('la_err_bad_date_format'); //'Incorrect date format, please use (%s) ex. (%s)';
* Creates a record in the database table with current item' values
*
* @param mixed $force_id Set to TRUE to force creating of item's own ID or to value to force creating of passed id. Do not pass 1 for true, pass exactly TRUE!
* @access public
* @return bool
*/
function Create($force_id=false, $system_create=false)