BUG 000 Add validation to print a dynaform

This commit is contained in:
Julio Cesar Laura
2011-12-02 00:53:49 -04:00
parent 07ee0c00ff
commit 816d40f5e5
13 changed files with 290 additions and 941 deletions

View File

@@ -16,9 +16,9 @@ require_once 'classes/model/om/BaseDashletInstance.php';
*/
class DashletInstance extends BaseDashletInstance {
private $validFields = array('DAS_INS_UID', 'DAS_UID', 'DAS_INS_TYPE', 'DAS_INS_CONTEXT_TIME', 'DAS_INS_START_DATE', 'DAS_INS_END_DATE', 'DAS_INS_OWNER_TYPE',
'DAS_INS_OWNER_UID', 'DAS_INS_PROCESSES', 'DAS_INS_TASKS', ' DAS_INS_CREATE_DATE', 'DAS_INS_UPDATE_DATE', 'DAS_INS_STATUS',
'pmos_generik', 'ys-admin-tabpanel', 'PHPSESSID');
private $filterThisFields = array('DAS_INS_UID', 'DAS_UID', 'DAS_INS_OWNER_TYPE', 'DAS_INS_OWNER_UID',
'DAS_INS_CREATE_DATE', 'DAS_INS_UPDATE_DATE', 'DAS_INS_STATUS',
'pmos_generik', 'ys-admin-tabpanel', 'PHPSESSID');
public function load($dasInsUid) {
try {
@@ -37,7 +37,7 @@ class DashletInstance extends BaseDashletInstance {
public function createOrUpdate($data) {
$additionalFields = array();
foreach ($data as $field => $value) {
if (!in_array($field, $this->validFields)) {
if (!in_array($field, $this->filterThisFields)) {
$additionalFields[$field] = $value;
unset($data[$field]);
}

View File

@@ -68,22 +68,10 @@ class DashletInstanceMapBuilder {
$tMap->addColumn('DAS_UID', 'DasUid', 'string', CreoleTypes::VARCHAR, true, 32);
$tMap->addColumn('DAS_INS_TYPE', 'DasInsType', 'string', CreoleTypes::VARCHAR, true, 20);
$tMap->addColumn('DAS_INS_CONTEXT_TIME', 'DasInsContextTime', 'string', CreoleTypes::VARCHAR, true, 20);
$tMap->addColumn('DAS_INS_START_DATE', 'DasInsStartDate', 'int', CreoleTypes::TIMESTAMP, false, null);
$tMap->addColumn('DAS_INS_END_DATE', 'DasInsEndDate', 'int', CreoleTypes::TIMESTAMP, false, null);
$tMap->addColumn('DAS_INS_OWNER_TYPE', 'DasInsOwnerType', 'string', CreoleTypes::VARCHAR, true, 20);
$tMap->addColumn('DAS_INS_OWNER_UID', 'DasInsOwnerUid', 'string', CreoleTypes::VARCHAR, false, 32);
$tMap->addColumn('DAS_INS_PROCESSES', 'DasInsProcesses', 'string', CreoleTypes::LONGVARCHAR, false, null);
$tMap->addColumn('DAS_INS_TASKS', 'DasInsTasks', 'string', CreoleTypes::LONGVARCHAR, false, null);
$tMap->addColumn('DAS_INS_ADDITIONAL_PROPERTIES', 'DasInsAdditionalProperties', 'string', CreoleTypes::LONGVARCHAR, false, null);
$tMap->addColumn('DAS_INS_CREATE_DATE', 'DasInsCreateDate', 'int', CreoleTypes::TIMESTAMP, true, null);

View File

@@ -12,7 +12,7 @@ include_once 'classes/model/DashletInstancePeer.php';
/**
* Base class that represents a row from the 'DASHLET_INSTANCE' table.
*
*
*
*
* @package workflow.classes.model.om
*/
@@ -42,34 +42,6 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
protected $das_uid = '';
/**
* The value for the das_ins_type field.
* @var string
*/
protected $das_ins_type = '';
/**
* The value for the das_ins_context_time field.
* @var string
*/
protected $das_ins_context_time = '';
/**
* The value for the das_ins_start_date field.
* @var int
*/
protected $das_ins_start_date;
/**
* The value for the das_ins_end_date field.
* @var int
*/
protected $das_ins_end_date;
/**
* The value for the das_ins_owner_type field.
* @var string
@@ -84,20 +56,6 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
protected $das_ins_owner_uid = '';
/**
* The value for the das_ins_processes field.
* @var string
*/
protected $das_ins_processes;
/**
* The value for the das_ins_tasks field.
* @var string
*/
protected $das_ins_tasks;
/**
* The value for the das_ins_additional_properties field.
* @var string
@@ -141,7 +99,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Get the [das_ins_uid] column value.
*
*
* @return string
*/
public function getDasInsUid()
@@ -152,7 +110,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Get the [das_uid] column value.
*
*
* @return string
*/
public function getDasUid()
@@ -161,93 +119,9 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
return $this->das_uid;
}
/**
* Get the [das_ins_type] column value.
*
* @return string
*/
public function getDasInsType()
{
return $this->das_ins_type;
}
/**
* Get the [das_ins_context_time] column value.
*
* @return string
*/
public function getDasInsContextTime()
{
return $this->das_ins_context_time;
}
/**
* Get the [optionally formatted] [das_ins_start_date] column value.
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is NULL, then the integer unix timestamp will be returned.
* @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
* @throws PropelException - if unable to convert the date/time to timestamp.
*/
public function getDasInsStartDate($format = 'Y-m-d H:i:s')
{
if ($this->das_ins_start_date === null || $this->das_ins_start_date === '') {
return null;
} elseif (!is_int($this->das_ins_start_date)) {
// a non-timestamp value was set externally, so we convert it
$ts = strtotime($this->das_ins_start_date);
if ($ts === -1 || $ts === false) { // in PHP 5.1 return value changes to FALSE
throw new PropelException("Unable to parse value of [das_ins_start_date] as date/time value: " . var_export($this->das_ins_start_date, true));
}
} else {
$ts = $this->das_ins_start_date;
}
if ($format === null) {
return $ts;
} elseif (strpos($format, '%') !== false) {
return strftime($format, $ts);
} else {
return date($format, $ts);
}
}
/**
* Get the [optionally formatted] [das_ins_end_date] column value.
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is NULL, then the integer unix timestamp will be returned.
* @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
* @throws PropelException - if unable to convert the date/time to timestamp.
*/
public function getDasInsEndDate($format = 'Y-m-d H:i:s')
{
if ($this->das_ins_end_date === null || $this->das_ins_end_date === '') {
return null;
} elseif (!is_int($this->das_ins_end_date)) {
// a non-timestamp value was set externally, so we convert it
$ts = strtotime($this->das_ins_end_date);
if ($ts === -1 || $ts === false) { // in PHP 5.1 return value changes to FALSE
throw new PropelException("Unable to parse value of [das_ins_end_date] as date/time value: " . var_export($this->das_ins_end_date, true));
}
} else {
$ts = $this->das_ins_end_date;
}
if ($format === null) {
return $ts;
} elseif (strpos($format, '%') !== false) {
return strftime($format, $ts);
} else {
return date($format, $ts);
}
}
/**
* Get the [das_ins_owner_type] column value.
*
*
* @return string
*/
public function getDasInsOwnerType()
@@ -258,7 +132,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Get the [das_ins_owner_uid] column value.
*
*
* @return string
*/
public function getDasInsOwnerUid()
@@ -267,31 +141,9 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
return $this->das_ins_owner_uid;
}
/**
* Get the [das_ins_processes] column value.
*
* @return string
*/
public function getDasInsProcesses()
{
return $this->das_ins_processes;
}
/**
* Get the [das_ins_tasks] column value.
*
* @return string
*/
public function getDasInsTasks()
{
return $this->das_ins_tasks;
}
/**
* Get the [das_ins_additional_properties] column value.
*
*
* @return string
*/
public function getDasInsAdditionalProperties()
@@ -302,7 +154,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Get the [optionally formatted] [das_ins_create_date] column value.
*
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is NULL, then the integer unix timestamp will be returned.
* @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
@@ -333,7 +185,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Get the [optionally formatted] [das_ins_update_date] column value.
*
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is NULL, then the integer unix timestamp will be returned.
* @return mixed Formatted date/time value as string or integer unix timestamp (if format is NULL).
@@ -364,7 +216,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Get the [das_ins_status] column value.
*
*
* @return int
*/
public function getDasInsStatus()
@@ -375,7 +227,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Set the value of [das_ins_uid] column.
*
*
* @param string $v new value
* @return void
*/
@@ -385,7 +237,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
$v = (string) $v;
}
if ($this->das_ins_uid !== $v || $v === '') {
@@ -397,7 +249,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Set the value of [das_uid] column.
*
*
* @param string $v new value
* @return void
*/
@@ -407,7 +259,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
$v = (string) $v;
}
if ($this->das_uid !== $v || $v === '') {
@@ -417,101 +269,9 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
} // setDasUid()
/**
* Set the value of [das_ins_type] column.
*
* @param string $v new value
* @return void
*/
public function setDasInsType($v)
{
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->das_ins_type !== $v || $v === '') {
$this->das_ins_type = $v;
$this->modifiedColumns[] = DashletInstancePeer::DAS_INS_TYPE;
}
} // setDasInsType()
/**
* Set the value of [das_ins_context_time] column.
*
* @param string $v new value
* @return void
*/
public function setDasInsContextTime($v)
{
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->das_ins_context_time !== $v || $v === '') {
$this->das_ins_context_time = $v;
$this->modifiedColumns[] = DashletInstancePeer::DAS_INS_CONTEXT_TIME;
}
} // setDasInsContextTime()
/**
* Set the value of [das_ins_start_date] column.
*
* @param int $v new value
* @return void
*/
public function setDasInsStartDate($v)
{
if ($v !== null && !is_int($v)) {
$ts = strtotime($v);
if ($ts === -1 || $ts === false) { // in PHP 5.1 return value changes to FALSE
throw new PropelException("Unable to parse date/time value for [das_ins_start_date] from input: " . var_export($v, true));
}
} else {
$ts = $v;
}
if ($this->das_ins_start_date !== $ts) {
$this->das_ins_start_date = $ts;
$this->modifiedColumns[] = DashletInstancePeer::DAS_INS_START_DATE;
}
} // setDasInsStartDate()
/**
* Set the value of [das_ins_end_date] column.
*
* @param int $v new value
* @return void
*/
public function setDasInsEndDate($v)
{
if ($v !== null && !is_int($v)) {
$ts = strtotime($v);
if ($ts === -1 || $ts === false) { // in PHP 5.1 return value changes to FALSE
throw new PropelException("Unable to parse date/time value for [das_ins_end_date] from input: " . var_export($v, true));
}
} else {
$ts = $v;
}
if ($this->das_ins_end_date !== $ts) {
$this->das_ins_end_date = $ts;
$this->modifiedColumns[] = DashletInstancePeer::DAS_INS_END_DATE;
}
} // setDasInsEndDate()
/**
* Set the value of [das_ins_owner_type] column.
*
*
* @param string $v new value
* @return void
*/
@@ -521,7 +281,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
$v = (string) $v;
}
if ($this->das_ins_owner_type !== $v || $v === '') {
@@ -533,7 +293,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Set the value of [das_ins_owner_uid] column.
*
*
* @param string $v new value
* @return void
*/
@@ -543,7 +303,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
$v = (string) $v;
}
if ($this->das_ins_owner_uid !== $v || $v === '') {
@@ -553,53 +313,9 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
} // setDasInsOwnerUid()
/**
* Set the value of [das_ins_processes] column.
*
* @param string $v new value
* @return void
*/
public function setDasInsProcesses($v)
{
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->das_ins_processes !== $v) {
$this->das_ins_processes = $v;
$this->modifiedColumns[] = DashletInstancePeer::DAS_INS_PROCESSES;
}
} // setDasInsProcesses()
/**
* Set the value of [das_ins_tasks] column.
*
* @param string $v new value
* @return void
*/
public function setDasInsTasks($v)
{
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->das_ins_tasks !== $v) {
$this->das_ins_tasks = $v;
$this->modifiedColumns[] = DashletInstancePeer::DAS_INS_TASKS;
}
} // setDasInsTasks()
/**
* Set the value of [das_ins_additional_properties] column.
*
*
* @param string $v new value
* @return void
*/
@@ -609,7 +325,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
$v = (string) $v;
}
if ($this->das_ins_additional_properties !== $v) {
@@ -621,7 +337,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Set the value of [das_ins_create_date] column.
*
*
* @param int $v new value
* @return void
*/
@@ -645,7 +361,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Set the value of [das_ins_update_date] column.
*
*
* @param int $v new value
* @return void
*/
@@ -669,7 +385,7 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
/**
* Set the value of [das_ins_status] column.
*
*
* @param int $v new value
* @return void
*/
@@ -710,36 +426,24 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
$this->das_uid = $rs->getString($startcol + 1);
$this->das_ins_type = $rs->getString($startcol + 2);
$this->das_ins_owner_type = $rs->getString($startcol + 2);
$this->das_ins_context_time = $rs->getString($startcol + 3);
$this->das_ins_owner_uid = $rs->getString($startcol + 3);
$this->das_ins_start_date = $rs->getTimestamp($startcol + 4, null);
$this->das_ins_additional_properties = $rs->getString($startcol + 4);
$this->das_ins_end_date = $rs->getTimestamp($startcol + 5, null);
$this->das_ins_create_date = $rs->getTimestamp($startcol + 5, null);
$this->das_ins_owner_type = $rs->getString($startcol + 6);
$this->das_ins_update_date = $rs->getTimestamp($startcol + 6, null);
$this->das_ins_owner_uid = $rs->getString($startcol + 7);
$this->das_ins_processes = $rs->getString($startcol + 8);
$this->das_ins_tasks = $rs->getString($startcol + 9);
$this->das_ins_additional_properties = $rs->getString($startcol + 10);
$this->das_ins_create_date = $rs->getTimestamp($startcol + 11, null);
$this->das_ins_update_date = $rs->getTimestamp($startcol + 12, null);
$this->das_ins_status = $rs->getInt($startcol + 13);
$this->das_ins_status = $rs->getInt($startcol + 7);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
return $startcol + 14; // 14 = DashletInstancePeer::NUM_COLUMNS - DashletInstancePeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 8; // 8 = DashletInstancePeer::NUM_COLUMNS - DashletInstancePeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating DashletInstance object", $e);
@@ -949,39 +653,21 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
return $this->getDasUid();
break;
case 2:
return $this->getDasInsType();
break;
case 3:
return $this->getDasInsContextTime();
break;
case 4:
return $this->getDasInsStartDate();
break;
case 5:
return $this->getDasInsEndDate();
break;
case 6:
return $this->getDasInsOwnerType();
break;
case 7:
case 3:
return $this->getDasInsOwnerUid();
break;
case 8:
return $this->getDasInsProcesses();
break;
case 9:
return $this->getDasInsTasks();
break;
case 10:
case 4:
return $this->getDasInsAdditionalProperties();
break;
case 11:
case 5:
return $this->getDasInsCreateDate();
break;
case 12:
case 6:
return $this->getDasInsUpdateDate();
break;
case 13:
case 7:
return $this->getDasInsStatus();
break;
default:
@@ -1006,18 +692,12 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
$result = array(
$keys[0] => $this->getDasInsUid(),
$keys[1] => $this->getDasUid(),
$keys[2] => $this->getDasInsType(),
$keys[3] => $this->getDasInsContextTime(),
$keys[4] => $this->getDasInsStartDate(),
$keys[5] => $this->getDasInsEndDate(),
$keys[6] => $this->getDasInsOwnerType(),
$keys[7] => $this->getDasInsOwnerUid(),
$keys[8] => $this->getDasInsProcesses(),
$keys[9] => $this->getDasInsTasks(),
$keys[10] => $this->getDasInsAdditionalProperties(),
$keys[11] => $this->getDasInsCreateDate(),
$keys[12] => $this->getDasInsUpdateDate(),
$keys[13] => $this->getDasInsStatus(),
$keys[2] => $this->getDasInsOwnerType(),
$keys[3] => $this->getDasInsOwnerUid(),
$keys[4] => $this->getDasInsAdditionalProperties(),
$keys[5] => $this->getDasInsCreateDate(),
$keys[6] => $this->getDasInsUpdateDate(),
$keys[7] => $this->getDasInsStatus(),
);
return $result;
}
@@ -1056,39 +736,21 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
$this->setDasUid($value);
break;
case 2:
$this->setDasInsType($value);
break;
case 3:
$this->setDasInsContextTime($value);
break;
case 4:
$this->setDasInsStartDate($value);
break;
case 5:
$this->setDasInsEndDate($value);
break;
case 6:
$this->setDasInsOwnerType($value);
break;
case 7:
case 3:
$this->setDasInsOwnerUid($value);
break;
case 8:
$this->setDasInsProcesses($value);
break;
case 9:
$this->setDasInsTasks($value);
break;
case 10:
case 4:
$this->setDasInsAdditionalProperties($value);
break;
case 11:
case 5:
$this->setDasInsCreateDate($value);
break;
case 12:
case 6:
$this->setDasInsUpdateDate($value);
break;
case 13:
case 7:
$this->setDasInsStatus($value);
break;
} // switch()
@@ -1116,18 +778,12 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
if (array_key_exists($keys[0], $arr)) $this->setDasInsUid($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setDasUid($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setDasInsType($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDasInsContextTime($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDasInsStartDate($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setDasInsEndDate($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setDasInsOwnerType($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setDasInsOwnerUid($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setDasInsProcesses($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setDasInsTasks($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setDasInsAdditionalProperties($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setDasInsCreateDate($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setDasInsUpdateDate($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setDasInsStatus($arr[$keys[13]]);
if (array_key_exists($keys[2], $arr)) $this->setDasInsOwnerType($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDasInsOwnerUid($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDasInsAdditionalProperties($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setDasInsCreateDate($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setDasInsUpdateDate($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setDasInsStatus($arr[$keys[7]]);
}
/**
@@ -1141,14 +797,8 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_UID)) $criteria->add(DashletInstancePeer::DAS_INS_UID, $this->das_ins_uid);
if ($this->isColumnModified(DashletInstancePeer::DAS_UID)) $criteria->add(DashletInstancePeer::DAS_UID, $this->das_uid);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_TYPE)) $criteria->add(DashletInstancePeer::DAS_INS_TYPE, $this->das_ins_type);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_CONTEXT_TIME)) $criteria->add(DashletInstancePeer::DAS_INS_CONTEXT_TIME, $this->das_ins_context_time);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_START_DATE)) $criteria->add(DashletInstancePeer::DAS_INS_START_DATE, $this->das_ins_start_date);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_END_DATE)) $criteria->add(DashletInstancePeer::DAS_INS_END_DATE, $this->das_ins_end_date);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_OWNER_TYPE)) $criteria->add(DashletInstancePeer::DAS_INS_OWNER_TYPE, $this->das_ins_owner_type);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_OWNER_UID)) $criteria->add(DashletInstancePeer::DAS_INS_OWNER_UID, $this->das_ins_owner_uid);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_PROCESSES)) $criteria->add(DashletInstancePeer::DAS_INS_PROCESSES, $this->das_ins_processes);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_TASKS)) $criteria->add(DashletInstancePeer::DAS_INS_TASKS, $this->das_ins_tasks);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_ADDITIONAL_PROPERTIES)) $criteria->add(DashletInstancePeer::DAS_INS_ADDITIONAL_PROPERTIES, $this->das_ins_additional_properties);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_CREATE_DATE)) $criteria->add(DashletInstancePeer::DAS_INS_CREATE_DATE, $this->das_ins_create_date);
if ($this->isColumnModified(DashletInstancePeer::DAS_INS_UPDATE_DATE)) $criteria->add(DashletInstancePeer::DAS_INS_UPDATE_DATE, $this->das_ins_update_date);
@@ -1209,22 +859,10 @@ abstract class BaseDashletInstance extends BaseObject implements Persistent {
$copyObj->setDasUid($this->das_uid);
$copyObj->setDasInsType($this->das_ins_type);
$copyObj->setDasInsContextTime($this->das_ins_context_time);
$copyObj->setDasInsStartDate($this->das_ins_start_date);
$copyObj->setDasInsEndDate($this->das_ins_end_date);
$copyObj->setDasInsOwnerType($this->das_ins_owner_type);
$copyObj->setDasInsOwnerUid($this->das_ins_owner_uid);
$copyObj->setDasInsProcesses($this->das_ins_processes);
$copyObj->setDasInsTasks($this->das_ins_tasks);
$copyObj->setDasInsAdditionalProperties($this->das_ins_additional_properties);
$copyObj->setDasInsCreateDate($this->das_ins_create_date);

View File

@@ -24,7 +24,7 @@ abstract class BaseDashletInstancePeer {
const CLASS_DEFAULT = 'classes.model.DashletInstance';
/** The total number of columns. */
const NUM_COLUMNS = 14;
const NUM_COLUMNS = 8;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
@@ -36,30 +36,12 @@ abstract class BaseDashletInstancePeer {
/** the column name for the DAS_UID field */
const DAS_UID = 'DASHLET_INSTANCE.DAS_UID';
/** the column name for the DAS_INS_TYPE field */
const DAS_INS_TYPE = 'DASHLET_INSTANCE.DAS_INS_TYPE';
/** the column name for the DAS_INS_CONTEXT_TIME field */
const DAS_INS_CONTEXT_TIME = 'DASHLET_INSTANCE.DAS_INS_CONTEXT_TIME';
/** the column name for the DAS_INS_START_DATE field */
const DAS_INS_START_DATE = 'DASHLET_INSTANCE.DAS_INS_START_DATE';
/** the column name for the DAS_INS_END_DATE field */
const DAS_INS_END_DATE = 'DASHLET_INSTANCE.DAS_INS_END_DATE';
/** the column name for the DAS_INS_OWNER_TYPE field */
const DAS_INS_OWNER_TYPE = 'DASHLET_INSTANCE.DAS_INS_OWNER_TYPE';
/** the column name for the DAS_INS_OWNER_UID field */
const DAS_INS_OWNER_UID = 'DASHLET_INSTANCE.DAS_INS_OWNER_UID';
/** the column name for the DAS_INS_PROCESSES field */
const DAS_INS_PROCESSES = 'DASHLET_INSTANCE.DAS_INS_PROCESSES';
/** the column name for the DAS_INS_TASKS field */
const DAS_INS_TASKS = 'DASHLET_INSTANCE.DAS_INS_TASKS';
/** the column name for the DAS_INS_ADDITIONAL_PROPERTIES field */
const DAS_INS_ADDITIONAL_PROPERTIES = 'DASHLET_INSTANCE.DAS_INS_ADDITIONAL_PROPERTIES';
@@ -83,10 +65,10 @@ abstract class BaseDashletInstancePeer {
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
private static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('DasInsUid', 'DasUid', 'DasInsType', 'DasInsContextTime', 'DasInsStartDate', 'DasInsEndDate', 'DasInsOwnerType', 'DasInsOwnerUid', 'DasInsProcesses', 'DasInsTasks', 'DasInsAdditionalProperties', 'DasInsCreateDate', 'DasInsUpdateDate', 'DasInsStatus', ),
BasePeer::TYPE_COLNAME => array (DashletInstancePeer::DAS_INS_UID, DashletInstancePeer::DAS_UID, DashletInstancePeer::DAS_INS_TYPE, DashletInstancePeer::DAS_INS_CONTEXT_TIME, DashletInstancePeer::DAS_INS_START_DATE, DashletInstancePeer::DAS_INS_END_DATE, DashletInstancePeer::DAS_INS_OWNER_TYPE, DashletInstancePeer::DAS_INS_OWNER_UID, DashletInstancePeer::DAS_INS_PROCESSES, DashletInstancePeer::DAS_INS_TASKS, DashletInstancePeer::DAS_INS_ADDITIONAL_PROPERTIES, DashletInstancePeer::DAS_INS_CREATE_DATE, DashletInstancePeer::DAS_INS_UPDATE_DATE, DashletInstancePeer::DAS_INS_STATUS, ),
BasePeer::TYPE_FIELDNAME => array ('DAS_INS_UID', 'DAS_UID', 'DAS_INS_TYPE', 'DAS_INS_CONTEXT_TIME', 'DAS_INS_START_DATE', 'DAS_INS_END_DATE', 'DAS_INS_OWNER_TYPE', 'DAS_INS_OWNER_UID', 'DAS_INS_PROCESSES', 'DAS_INS_TASKS', 'DAS_INS_ADDITIONAL_PROPERTIES', 'DAS_INS_CREATE_DATE', 'DAS_INS_UPDATE_DATE', 'DAS_INS_STATUS', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
BasePeer::TYPE_PHPNAME => array ('DasInsUid', 'DasUid', 'DasInsOwnerType', 'DasInsOwnerUid', 'DasInsAdditionalProperties', 'DasInsCreateDate', 'DasInsUpdateDate', 'DasInsStatus', ),
BasePeer::TYPE_COLNAME => array (DashletInstancePeer::DAS_INS_UID, DashletInstancePeer::DAS_UID, DashletInstancePeer::DAS_INS_OWNER_TYPE, DashletInstancePeer::DAS_INS_OWNER_UID, DashletInstancePeer::DAS_INS_ADDITIONAL_PROPERTIES, DashletInstancePeer::DAS_INS_CREATE_DATE, DashletInstancePeer::DAS_INS_UPDATE_DATE, DashletInstancePeer::DAS_INS_STATUS, ),
BasePeer::TYPE_FIELDNAME => array ('DAS_INS_UID', 'DAS_UID', 'DAS_INS_OWNER_TYPE', 'DAS_INS_OWNER_UID', 'DAS_INS_ADDITIONAL_PROPERTIES', 'DAS_INS_CREATE_DATE', 'DAS_INS_UPDATE_DATE', 'DAS_INS_STATUS', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, )
);
/**
@@ -96,10 +78,10 @@ abstract class BaseDashletInstancePeer {
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
private static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('DasInsUid' => 0, 'DasUid' => 1, 'DasInsType' => 2, 'DasInsContextTime' => 3, 'DasInsStartDate' => 4, 'DasInsEndDate' => 5, 'DasInsOwnerType' => 6, 'DasInsOwnerUid' => 7, 'DasInsProcesses' => 8, 'DasInsTasks' => 9, 'DasInsAdditionalProperties' => 10, 'DasInsCreateDate' => 11, 'DasInsUpdateDate' => 12, 'DasInsStatus' => 13, ),
BasePeer::TYPE_COLNAME => array (DashletInstancePeer::DAS_INS_UID => 0, DashletInstancePeer::DAS_UID => 1, DashletInstancePeer::DAS_INS_TYPE => 2, DashletInstancePeer::DAS_INS_CONTEXT_TIME => 3, DashletInstancePeer::DAS_INS_START_DATE => 4, DashletInstancePeer::DAS_INS_END_DATE => 5, DashletInstancePeer::DAS_INS_OWNER_TYPE => 6, DashletInstancePeer::DAS_INS_OWNER_UID => 7, DashletInstancePeer::DAS_INS_PROCESSES => 8, DashletInstancePeer::DAS_INS_TASKS => 9, DashletInstancePeer::DAS_INS_ADDITIONAL_PROPERTIES => 10, DashletInstancePeer::DAS_INS_CREATE_DATE => 11, DashletInstancePeer::DAS_INS_UPDATE_DATE => 12, DashletInstancePeer::DAS_INS_STATUS => 13, ),
BasePeer::TYPE_FIELDNAME => array ('DAS_INS_UID' => 0, 'DAS_UID' => 1, 'DAS_INS_TYPE' => 2, 'DAS_INS_CONTEXT_TIME' => 3, 'DAS_INS_START_DATE' => 4, 'DAS_INS_END_DATE' => 5, 'DAS_INS_OWNER_TYPE' => 6, 'DAS_INS_OWNER_UID' => 7, 'DAS_INS_PROCESSES' => 8, 'DAS_INS_TASKS' => 9, 'DAS_INS_ADDITIONAL_PROPERTIES' => 10, 'DAS_INS_CREATE_DATE' => 11, 'DAS_INS_UPDATE_DATE' => 12, 'DAS_INS_STATUS' => 13, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
BasePeer::TYPE_PHPNAME => array ('DasInsUid' => 0, 'DasUid' => 1, 'DasInsOwnerType' => 2, 'DasInsOwnerUid' => 3, 'DasInsAdditionalProperties' => 4, 'DasInsCreateDate' => 5, 'DasInsUpdateDate' => 6, 'DasInsStatus' => 7, ),
BasePeer::TYPE_COLNAME => array (DashletInstancePeer::DAS_INS_UID => 0, DashletInstancePeer::DAS_UID => 1, DashletInstancePeer::DAS_INS_OWNER_TYPE => 2, DashletInstancePeer::DAS_INS_OWNER_UID => 3, DashletInstancePeer::DAS_INS_ADDITIONAL_PROPERTIES => 4, DashletInstancePeer::DAS_INS_CREATE_DATE => 5, DashletInstancePeer::DAS_INS_UPDATE_DATE => 6, DashletInstancePeer::DAS_INS_STATUS => 7, ),
BasePeer::TYPE_FIELDNAME => array ('DAS_INS_UID' => 0, 'DAS_UID' => 1, 'DAS_INS_OWNER_TYPE' => 2, 'DAS_INS_OWNER_UID' => 3, 'DAS_INS_ADDITIONAL_PROPERTIES' => 4, 'DAS_INS_CREATE_DATE' => 5, 'DAS_INS_UPDATE_DATE' => 6, 'DAS_INS_STATUS' => 7, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, )
);
/**
@@ -204,22 +186,10 @@ abstract class BaseDashletInstancePeer {
$criteria->addSelectColumn(DashletInstancePeer::DAS_UID);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_TYPE);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_CONTEXT_TIME);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_START_DATE);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_END_DATE);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_OWNER_TYPE);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_OWNER_UID);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_PROCESSES);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_TASKS);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_ADDITIONAL_PROPERTIES);
$criteria->addSelectColumn(DashletInstancePeer::DAS_INS_CREATE_DATE);