Files
luos/workflow/engine/classes/model/om/BaseTask.php

2242 lines
54 KiB
PHP
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?php
require_once 'propel/om/BaseObject.php';
require_once 'propel/om/Persistent.php';
include_once 'propel/util/Criteria.php';
include_once 'classes/model/TaskPeer.php';
/**
* Base class that represents a row from the 'TASK' table.
*
*
*
* @package classes.model.om
*/
abstract class BaseTask extends BaseObject implements Persistent {
/**
* The Peer class.
* Instance provides a convenient way of calling static methods on a class
* that calling code may not be able to identify.
* @var TaskPeer
*/
protected static $peer;
/**
* The value for the pro_uid field.
* @var string
*/
protected $pro_uid = '';
/**
* The value for the tas_uid field.
* @var string
*/
protected $tas_uid = '';
/**
* The value for the tas_type field.
* @var string
*/
protected $tas_type = 'NORMAL';
/**
* The value for the tas_duration field.
* @var double
*/
protected $tas_duration = 0;
/**
* The value for the tas_delay_type field.
* @var string
*/
protected $tas_delay_type = '';
/**
* The value for the tas_temporizer field.
* @var double
*/
protected $tas_temporizer = 0;
/**
* The value for the tas_type_day field.
* @var string
*/
protected $tas_type_day = '1';
/**
* The value for the tas_timeunit field.
* @var string
*/
protected $tas_timeunit = 'DAYS';
/**
* The value for the tas_alert field.
* @var string
*/
protected $tas_alert = 'FALSE';
/**
* The value for the tas_priority_variable field.
* @var string
*/
protected $tas_priority_variable = '';
/**
* The value for the tas_assign_type field.
* @var string
*/
protected $tas_assign_type = 'BALANCED';
/**
* The value for the tas_assign_variable field.
* @var string
*/
protected $tas_assign_variable = '@@SYS_NEXT_USER_TO_BE_ASSIGNED';
/**
* The value for the tas_assign_location field.
* @var string
*/
protected $tas_assign_location = 'FALSE';
/**
* The value for the tas_assign_location_adhoc field.
* @var string
*/
protected $tas_assign_location_adhoc = 'FALSE';
/**
* The value for the tas_transfer_fly field.
* @var string
*/
protected $tas_transfer_fly = 'FALSE';
/**
* The value for the tas_last_assigned field.
* @var string
*/
protected $tas_last_assigned = '0';
/**
* The value for the tas_user field.
* @var string
*/
protected $tas_user = '0';
/**
* The value for the tas_can_upload field.
* @var string
*/
protected $tas_can_upload = 'FALSE';
/**
* The value for the tas_view_upload field.
* @var string
*/
protected $tas_view_upload = 'FALSE';
/**
* The value for the tas_view_additional_documentation field.
* @var string
*/
protected $tas_view_additional_documentation = 'FALSE';
/**
* The value for the tas_can_cancel field.
* @var string
*/
protected $tas_can_cancel = 'FALSE';
/**
* The value for the tas_owner_app field.
* @var string
*/
protected $tas_owner_app = '';
/**
* The value for the stg_uid field.
* @var string
*/
protected $stg_uid = '';
/**
* The value for the tas_can_pause field.
* @var string
*/
protected $tas_can_pause = 'FALSE';
/**
* The value for the tas_can_send_message field.
* @var string
*/
protected $tas_can_send_message = 'TRUE';
/**
* The value for the tas_can_delete_docs field.
* @var string
*/
protected $tas_can_delete_docs = 'FALSE';
/**
* The value for the tas_self_service field.
* @var string
*/
protected $tas_self_service = 'FALSE';
/**
* The value for the tas_start field.
* @var string
*/
protected $tas_start = 'FALSE';
/**
* The value for the tas_to_last_user field.
* @var string
*/
protected $tas_to_last_user = 'FALSE';
/**
* The value for the tas_send_last_email field.
* @var string
*/
protected $tas_send_last_email = 'TRUE';
/**
* The value for the tas_derivation field.
* @var string
*/
protected $tas_derivation = 'NORMAL';
/**
* The value for the tas_posx field.
* @var int
*/
protected $tas_posx = 0;
/**
* The value for the tas_posy field.
* @var int
*/
protected $tas_posy = 0;
/**
* The value for the tas_color field.
* @var string
*/
protected $tas_color = '';
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
* @var boolean
*/
protected $alreadyInSave = false;
/**
* Flag to prevent endless validation loop, if this object is referenced
* by another object which falls in this transaction.
* @var boolean
*/
protected $alreadyInValidation = false;
/**
* Get the [pro_uid] column value.
*
* @return string
*/
public function getProUid()
{
return $this->pro_uid;
}
/**
* Get the [tas_uid] column value.
*
* @return string
*/
public function getTasUid()
{
return $this->tas_uid;
}
/**
* Get the [tas_type] column value.
*
* @return string
*/
public function getTasType()
{
return $this->tas_type;
}
/**
* Get the [tas_duration] column value.
*
* @return double
*/
public function getTasDuration()
{
return $this->tas_duration;
}
/**
* Get the [tas_delay_type] column value.
*
* @return string
*/
public function getTasDelayType()
{
return $this->tas_delay_type;
}
/**
* Get the [tas_temporizer] column value.
*
* @return double
*/
public function getTasTemporizer()
{
return $this->tas_temporizer;
}
/**
* Get the [tas_type_day] column value.
*
* @return string
*/
public function getTasTypeDay()
{
return $this->tas_type_day;
}
/**
* Get the [tas_timeunit] column value.
*
* @return string
*/
public function getTasTimeunit()
{
return $this->tas_timeunit;
}
/**
* Get the [tas_alert] column value.
*
* @return string
*/
public function getTasAlert()
{
return $this->tas_alert;
}
/**
* Get the [tas_priority_variable] column value.
*
* @return string
*/
public function getTasPriorityVariable()
{
return $this->tas_priority_variable;
}
/**
* Get the [tas_assign_type] column value.
*
* @return string
*/
public function getTasAssignType()
{
return $this->tas_assign_type;
}
/**
* Get the [tas_assign_variable] column value.
*
* @return string
*/
public function getTasAssignVariable()
{
return $this->tas_assign_variable;
}
/**
* Get the [tas_assign_location] column value.
*
* @return string
*/
public function getTasAssignLocation()
{
return $this->tas_assign_location;
}
/**
* Get the [tas_assign_location_adhoc] column value.
*
* @return string
*/
public function getTasAssignLocationAdhoc()
{
return $this->tas_assign_location_adhoc;
}
/**
* Get the [tas_transfer_fly] column value.
*
* @return string
*/
public function getTasTransferFly()
{
return $this->tas_transfer_fly;
}
/**
* Get the [tas_last_assigned] column value.
*
* @return string
*/
public function getTasLastAssigned()
{
return $this->tas_last_assigned;
}
/**
* Get the [tas_user] column value.
*
* @return string
*/
public function getTasUser()
{
return $this->tas_user;
}
/**
* Get the [tas_can_upload] column value.
*
* @return string
*/
public function getTasCanUpload()
{
return $this->tas_can_upload;
}
/**
* Get the [tas_view_upload] column value.
*
* @return string
*/
public function getTasViewUpload()
{
return $this->tas_view_upload;
}
/**
* Get the [tas_view_additional_documentation] column value.
*
* @return string
*/
public function getTasViewAdditionalDocumentation()
{
return $this->tas_view_additional_documentation;
}
/**
* Get the [tas_can_cancel] column value.
*
* @return string
*/
public function getTasCanCancel()
{
return $this->tas_can_cancel;
}
/**
* Get the [tas_owner_app] column value.
*
* @return string
*/
public function getTasOwnerApp()
{
return $this->tas_owner_app;
}
/**
* Get the [stg_uid] column value.
*
* @return string
*/
public function getStgUid()
{
return $this->stg_uid;
}
/**
* Get the [tas_can_pause] column value.
*
* @return string
*/
public function getTasCanPause()
{
return $this->tas_can_pause;
}
/**
* Get the [tas_can_send_message] column value.
*
* @return string
*/
public function getTasCanSendMessage()
{
return $this->tas_can_send_message;
}
/**
* Get the [tas_can_delete_docs] column value.
*
* @return string
*/
public function getTasCanDeleteDocs()
{
return $this->tas_can_delete_docs;
}
/**
* Get the [tas_self_service] column value.
*
* @return string
*/
public function getTasSelfService()
{
return $this->tas_self_service;
}
/**
* Get the [tas_start] column value.
*
* @return string
*/
public function getTasStart()
{
return $this->tas_start;
}
/**
* Get the [tas_to_last_user] column value.
*
* @return string
*/
public function getTasToLastUser()
{
return $this->tas_to_last_user;
}
/**
* Get the [tas_send_last_email] column value.
*
* @return string
*/
public function getTasSendLastEmail()
{
return $this->tas_send_last_email;
}
/**
* Get the [tas_derivation] column value.
*
* @return string
*/
public function getTasDerivation()
{
return $this->tas_derivation;
}
/**
* Get the [tas_posx] column value.
*
* @return int
*/
public function getTasPosx()
{
return $this->tas_posx;
}
/**
* Get the [tas_posy] column value.
*
* @return int
*/
public function getTasPosy()
{
return $this->tas_posy;
}
/**
* Get the [tas_color] column value.
*
* @return string
*/
public function getTasColor()
{
return $this->tas_color;
}
/**
* Set the value of [pro_uid] column.
*
* @param string $v new value
* @return void
*/
public function setProUid($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->pro_uid !== $v || $v === '') {
$this->pro_uid = $v;
$this->modifiedColumns[] = TaskPeer::PRO_UID;
}
} // setProUid()
/**
* Set the value of [tas_uid] column.
*
* @param string $v new value
* @return void
*/
public function setTasUid($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->tas_uid !== $v || $v === '') {
$this->tas_uid = $v;
$this->modifiedColumns[] = TaskPeer::TAS_UID;
}
} // setTasUid()
/**
* Set the value of [tas_type] column.
*
* @param string $v new value
* @return void
*/
public function setTasType($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->tas_type !== $v || $v === 'NORMAL') {
$this->tas_type = $v;
$this->modifiedColumns[] = TaskPeer::TAS_TYPE;
}
} // setTasType()
/**
* Set the value of [tas_duration] column.
*
* @param double $v new value
* @return void
*/
public function setTasDuration($v)
{
if ($this->tas_duration !== $v || $v === 0) {
$this->tas_duration = $v;
$this->modifiedColumns[] = TaskPeer::TAS_DURATION;
}
} // setTasDuration()
/**
* Set the value of [tas_delay_type] column.
*
* @param string $v new value
* @return void
*/
public function setTasDelayType($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->tas_delay_type !== $v || $v === '') {
$this->tas_delay_type = $v;
$this->modifiedColumns[] = TaskPeer::TAS_DELAY_TYPE;
}
} // setTasDelayType()
/**
* Set the value of [tas_temporizer] column.
*
* @param double $v new value
* @return void
*/
public function setTasTemporizer($v)
{
if ($this->tas_temporizer !== $v || $v === 0) {
$this->tas_temporizer = $v;
$this->modifiedColumns[] = TaskPeer::TAS_TEMPORIZER;
}
} // setTasTemporizer()
/**
* Set the value of [tas_type_day] column.
*
* @param string $v new value
* @return void
*/
public function setTasTypeDay($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->tas_type_day !== $v || $v === '1') {
$this->tas_type_day = $v;
$this->modifiedColumns[] = TaskPeer::TAS_TYPE_DAY;
}
} // setTasTypeDay()
/**
* Set the value of [tas_timeunit] column.
*
* @param string $v new value
* @return void
*/
public function setTasTimeunit($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->tas_timeunit !== $v || $v === 'DAYS') {
$this->tas_timeunit = $v;
$this->modifiedColumns[] = TaskPeer::TAS_TIMEUNIT;
}
} // setTasTimeunit()
/**
* Set the value of [tas_alert] column.
*
* @param string $v new value
* @return void
*/
public function setTasAlert($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->tas_alert !== $v || $v === 'FALSE') {
$this->tas_alert = $v;
$this->modifiedColumns[] = TaskPeer::TAS_ALERT;
}
} // setTasAlert()
/**
* Set the value of [tas_priority_variable] column.
*
* @param string $v new value
* @return void
*/
public function setTasPriorityVariable($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->tas_priority_variable !== $v || $v === '') {
$this->tas_priority_variable = $v;
$this->modifiedColumns[] = TaskPeer::TAS_PRIORITY_VARIABLE;
}
} // setTasPriorityVariable()
/**
* Set the value of [tas_assign_type] column.
*
* @param string $v new value
* @return void
*/
public function setTasAssignType($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->tas_assign_type !== $v || $v === 'BALANCED') {
$this->tas_assign_type = $v;
$this->modifiedColumns[] = TaskPeer::TAS_ASSIGN_TYPE;
}
} // setTasAssignType()
/**
* Set the value of [tas_assign_variable] column.
*
* @param string $v new value
* @return void
*/
public function setTasAssignVariable($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->tas_assign_variable !== $v || $v === '@@SYS_NEXT_USER_TO_BE_ASSIGNED') {
$this->tas_assign_variable = $v;
$this->modifiedColumns[] = TaskPeer::TAS_ASSIGN_VARIABLE;
}
} // setTasAssignVariable()
/**
* Set the value of [tas_assign_location] column.
*
* @param string $v new value
* @return void
*/
public function setTasAssignLocation($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->tas_assign_location !== $v || $v === 'FALSE') {
$this->tas_assign_location = $v;
$this->modifiedColumns[] = TaskPeer::TAS_ASSIGN_LOCATION;
}
} // setTasAssignLocation()
/**
* Set the value of [tas_assign_location_adhoc] column.
*
* @param string $v new value
* @return void
*/
public function setTasAssignLocationAdhoc($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->tas_assign_location_adhoc !== $v || $v === 'FALSE') {
$this->tas_assign_location_adhoc = $v;
$this->modifiedColumns[] = TaskPeer::TAS_ASSIGN_LOCATION_ADHOC;
}
} // setTasAssignLocationAdhoc()
/**
* Set the value of [tas_transfer_fly] column.
*
* @param string $v new value
* @return void
*/
public function setTasTransferFly($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->tas_transfer_fly !== $v || $v === 'FALSE') {
$this->tas_transfer_fly = $v;
$this->modifiedColumns[] = TaskPeer::TAS_TRANSFER_FLY;
}
} // setTasTransferFly()
/**
* Set the value of [tas_last_assigned] column.
*
* @param string $v new value
* @return void
*/
public function setTasLastAssigned($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->tas_last_assigned !== $v || $v === '0') {
$this->tas_last_assigned = $v;
$this->modifiedColumns[] = TaskPeer::TAS_LAST_ASSIGNED;
}
} // setTasLastAssigned()
/**
* Set the value of [tas_user] column.
*
* @param string $v new value
* @return void
*/
public function setTasUser($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->tas_user !== $v || $v === '0') {
$this->tas_user = $v;
$this->modifiedColumns[] = TaskPeer::TAS_USER;
}
} // setTasUser()
/**
* Set the value of [tas_can_upload] column.
*
* @param string $v new value
* @return void
*/
public function setTasCanUpload($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->tas_can_upload !== $v || $v === 'FALSE') {
$this->tas_can_upload = $v;
$this->modifiedColumns[] = TaskPeer::TAS_CAN_UPLOAD;
}
} // setTasCanUpload()
/**
* Set the value of [tas_view_upload] column.
*
* @param string $v new value
* @return void
*/
public function setTasViewUpload($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->tas_view_upload !== $v || $v === 'FALSE') {
$this->tas_view_upload = $v;
$this->modifiedColumns[] = TaskPeer::TAS_VIEW_UPLOAD;
}
} // setTasViewUpload()
/**
* Set the value of [tas_view_additional_documentation] column.
*
* @param string $v new value
* @return void
*/
public function setTasViewAdditionalDocumentation($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->tas_view_additional_documentation !== $v || $v === 'FALSE') {
$this->tas_view_additional_documentation = $v;
$this->modifiedColumns[] = TaskPeer::TAS_VIEW_ADDITIONAL_DOCUMENTATION;
}
} // setTasViewAdditionalDocumentation()
/**
* Set the value of [tas_can_cancel] column.
*
* @param string $v new value
* @return void
*/
public function setTasCanCancel($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->tas_can_cancel !== $v || $v === 'FALSE') {
$this->tas_can_cancel = $v;
$this->modifiedColumns[] = TaskPeer::TAS_CAN_CANCEL;
}
} // setTasCanCancel()
/**
* Set the value of [tas_owner_app] column.
*
* @param string $v new value
* @return void
*/
public function setTasOwnerApp($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->tas_owner_app !== $v || $v === '') {
$this->tas_owner_app = $v;
$this->modifiedColumns[] = TaskPeer::TAS_OWNER_APP;
}
} // setTasOwnerApp()
/**
* Set the value of [stg_uid] column.
*
* @param string $v new value
* @return void
*/
public function setStgUid($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->stg_uid !== $v || $v === '') {
$this->stg_uid = $v;
$this->modifiedColumns[] = TaskPeer::STG_UID;
}
} // setStgUid()
/**
* Set the value of [tas_can_pause] column.
*
* @param string $v new value
* @return void
*/
public function setTasCanPause($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->tas_can_pause !== $v || $v === 'FALSE') {
$this->tas_can_pause = $v;
$this->modifiedColumns[] = TaskPeer::TAS_CAN_PAUSE;
}
} // setTasCanPause()
/**
* Set the value of [tas_can_send_message] column.
*
* @param string $v new value
* @return void
*/
public function setTasCanSendMessage($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->tas_can_send_message !== $v || $v === 'TRUE') {
$this->tas_can_send_message = $v;
$this->modifiedColumns[] = TaskPeer::TAS_CAN_SEND_MESSAGE;
}
} // setTasCanSendMessage()
/**
* Set the value of [tas_can_delete_docs] column.
*
* @param string $v new value
* @return void
*/
public function setTasCanDeleteDocs($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->tas_can_delete_docs !== $v || $v === 'FALSE') {
$this->tas_can_delete_docs = $v;
$this->modifiedColumns[] = TaskPeer::TAS_CAN_DELETE_DOCS;
}
} // setTasCanDeleteDocs()
/**
* Set the value of [tas_self_service] column.
*
* @param string $v new value
* @return void
*/
public function setTasSelfService($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->tas_self_service !== $v || $v === 'FALSE') {
$this->tas_self_service = $v;
$this->modifiedColumns[] = TaskPeer::TAS_SELF_SERVICE;
}
} // setTasSelfService()
/**
* Set the value of [tas_start] column.
*
* @param string $v new value
* @return void
*/
public function setTasStart($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->tas_start !== $v || $v === 'FALSE') {
$this->tas_start = $v;
$this->modifiedColumns[] = TaskPeer::TAS_START;
}
} // setTasStart()
/**
* Set the value of [tas_to_last_user] column.
*
* @param string $v new value
* @return void
*/
public function setTasToLastUser($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->tas_to_last_user !== $v || $v === 'FALSE') {
$this->tas_to_last_user = $v;
$this->modifiedColumns[] = TaskPeer::TAS_TO_LAST_USER;
}
} // setTasToLastUser()
/**
* Set the value of [tas_send_last_email] column.
*
* @param string $v new value
* @return void
*/
public function setTasSendLastEmail($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->tas_send_last_email !== $v || $v === 'TRUE') {
$this->tas_send_last_email = $v;
$this->modifiedColumns[] = TaskPeer::TAS_SEND_LAST_EMAIL;
}
} // setTasSendLastEmail()
/**
* Set the value of [tas_derivation] column.
*
* @param string $v new value
* @return void
*/
public function setTasDerivation($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->tas_derivation !== $v || $v === 'NORMAL') {
$this->tas_derivation = $v;
$this->modifiedColumns[] = TaskPeer::TAS_DERIVATION;
}
} // setTasDerivation()
/**
* Set the value of [tas_posx] column.
*
* @param int $v new value
* @return void
*/
public function setTasPosx($v)
{
// Since the native PHP type for this column is integer,
// we will cast the input value to an int (if it is not).
if ($v !== null && !is_int($v) && is_numeric($v)) {
$v = (int) $v;
}
if ($this->tas_posx !== $v || $v === 0) {
$this->tas_posx = $v;
$this->modifiedColumns[] = TaskPeer::TAS_POSX;
}
} // setTasPosx()
/**
* Set the value of [tas_posy] column.
*
* @param int $v new value
* @return void
*/
public function setTasPosy($v)
{
// Since the native PHP type for this column is integer,
// we will cast the input value to an int (if it is not).
if ($v !== null && !is_int($v) && is_numeric($v)) {
$v = (int) $v;
}
if ($this->tas_posy !== $v || $v === 0) {
$this->tas_posy = $v;
$this->modifiedColumns[] = TaskPeer::TAS_POSY;
}
} // setTasPosy()
/**
* Set the value of [tas_color] column.
*
* @param string $v new value
* @return void
*/
public function setTasColor($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->tas_color !== $v || $v === '') {
$this->tas_color = $v;
$this->modifiedColumns[] = TaskPeer::TAS_COLOR;
}
} // setTasColor()
/**
* Hydrates (populates) the object variables with values from the database resultset.
*
* An offset (1-based "start column") is specified so that objects can be hydrated
* with a subset of the columns in the resultset rows. This is needed, for example,
* for results of JOIN queries where the resultset row includes columns from two or
* more tables.
*
* @param ResultSet $rs The ResultSet class with cursor advanced to desired record pos.
* @param int $startcol 1-based offset column which indicates which restultset column to start with.
* @return int next starting column
* @throws PropelException - Any caught Exception will be rewrapped as a PropelException.
*/
public function hydrate(ResultSet $rs, $startcol = 1)
{
try {
$this->pro_uid = $rs->getString($startcol + 0);
$this->tas_uid = $rs->getString($startcol + 1);
$this->tas_type = $rs->getString($startcol + 2);
$this->tas_duration = $rs->getFloat($startcol + 3);
$this->tas_delay_type = $rs->getString($startcol + 4);
$this->tas_temporizer = $rs->getFloat($startcol + 5);
$this->tas_type_day = $rs->getString($startcol + 6);
$this->tas_timeunit = $rs->getString($startcol + 7);
$this->tas_alert = $rs->getString($startcol + 8);
$this->tas_priority_variable = $rs->getString($startcol + 9);
$this->tas_assign_type = $rs->getString($startcol + 10);
$this->tas_assign_variable = $rs->getString($startcol + 11);
$this->tas_assign_location = $rs->getString($startcol + 12);
$this->tas_assign_location_adhoc = $rs->getString($startcol + 13);
$this->tas_transfer_fly = $rs->getString($startcol + 14);
$this->tas_last_assigned = $rs->getString($startcol + 15);
$this->tas_user = $rs->getString($startcol + 16);
$this->tas_can_upload = $rs->getString($startcol + 17);
$this->tas_view_upload = $rs->getString($startcol + 18);
$this->tas_view_additional_documentation = $rs->getString($startcol + 19);
$this->tas_can_cancel = $rs->getString($startcol + 20);
$this->tas_owner_app = $rs->getString($startcol + 21);
$this->stg_uid = $rs->getString($startcol + 22);
$this->tas_can_pause = $rs->getString($startcol + 23);
$this->tas_can_send_message = $rs->getString($startcol + 24);
$this->tas_can_delete_docs = $rs->getString($startcol + 25);
$this->tas_self_service = $rs->getString($startcol + 26);
$this->tas_start = $rs->getString($startcol + 27);
$this->tas_to_last_user = $rs->getString($startcol + 28);
$this->tas_send_last_email = $rs->getString($startcol + 29);
$this->tas_derivation = $rs->getString($startcol + 30);
$this->tas_posx = $rs->getInt($startcol + 31);
$this->tas_posy = $rs->getInt($startcol + 32);
$this->tas_color = $rs->getString($startcol + 33);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
return $startcol + 34; // 34 = TaskPeer::NUM_COLUMNS - TaskPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating Task object", $e);
}
}
/**
* Removes this object from datastore and sets delete attribute.
*
* @param Connection $con
* @return void
* @throws PropelException
* @see BaseObject::setDeleted()
* @see BaseObject::isDeleted()
*/
public function delete($con = null)
{
if ($this->isDeleted()) {
throw new PropelException("This object has already been deleted.");
}
if ($con === null) {
$con = Propel::getConnection(TaskPeer::DATABASE_NAME);
}
try {
$con->begin();
TaskPeer::doDelete($this, $con);
$this->setDeleted(true);
$con->commit();
} catch (PropelException $e) {
$con->rollback();
throw $e;
}
}
/**
* Stores the object in the database. If the object is new,
* it inserts it; otherwise an update is performed. This method
* wraps the doSave() worker method in a transaction.
*
* @param Connection $con
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
* @throws PropelException
* @see doSave()
*/
public function save($con = null)
{
if ($this->isDeleted()) {
throw new PropelException("You cannot save an object that has been deleted.");
}
if ($con === null) {
$con = Propel::getConnection(TaskPeer::DATABASE_NAME);
}
try {
$con->begin();
$affectedRows = $this->doSave($con);
$con->commit();
return $affectedRows;
} catch (PropelException $e) {
$con->rollback();
throw $e;
}
}
/**
* Stores the object in the database.
*
* If the object is new, it inserts it; otherwise an update is performed.
* All related objects are also updated in this method.
*
* @param Connection $con
* @return int The number of rows affected by this insert/update and any referring fk objects' save() operations.
* @throws PropelException
* @see save()
*/
protected function doSave($con)
{
$affectedRows = 0; // initialize var to track total num of affected rows
if (!$this->alreadyInSave) {
$this->alreadyInSave = true;
// If this object has been modified, then save it to the database.
if ($this->isModified()) {
if ($this->isNew()) {
$pk = TaskPeer::doInsert($this, $con);
$affectedRows += 1; // we are assuming that there is only 1 row per doInsert() which
// should always be true here (even though technically
// BasePeer::doInsert() can insert multiple rows).
$this->setNew(false);
} else {
$affectedRows += TaskPeer::doUpdate($this, $con);
}
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
}
$this->alreadyInSave = false;
}
return $affectedRows;
} // doSave()
/**
* Array of ValidationFailed objects.
* @var array ValidationFailed[]
*/
protected $validationFailures = array();
/**
* Gets any ValidationFailed objects that resulted from last call to validate().
*
*
* @return array ValidationFailed[]
* @see validate()
*/
public function getValidationFailures()
{
return $this->validationFailures;
}
/**
* Validates the objects modified field values and all objects related to this table.
*
* If $columns is either a column name or an array of column names
* only those columns are validated.
*
* @param mixed $columns Column name or an array of column names.
* @return boolean Whether all columns pass validation.
* @see doValidate()
* @see getValidationFailures()
*/
public function validate($columns = null)
{
$res = $this->doValidate($columns);
if ($res === true) {
$this->validationFailures = array();
return true;
} else {
$this->validationFailures = $res;
return false;
}
}
/**
* This function performs the validation work for complex object models.
*
* In addition to checking the current object, all related objects will
* also be validated. If all pass then <code>true</code> is returned; otherwise
* an aggreagated array of ValidationFailed objects will be returned.
*
* @param array $columns Array of column names to validate.
* @return mixed <code>true</code> if all validations pass; array of <code>ValidationFailed</code> objets otherwise.
*/
protected function doValidate($columns = null)
{
if (!$this->alreadyInValidation) {
$this->alreadyInValidation = true;
$retval = null;
$failureMap = array();
if (($retval = TaskPeer::doValidate($this, $columns)) !== true) {
$failureMap = array_merge($failureMap, $retval);
}
$this->alreadyInValidation = false;
}
return (!empty($failureMap) ? $failureMap : true);
}
/**
* Retrieves a field from the object by name passed in as a string.
*
* @param string $name name
* @param string $type The type of fieldname the $name is of:
* one of the class type constants TYPE_PHPNAME,
* TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
* @return mixed Value of field.
*/
public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
{
$pos = TaskPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
return $this->getByPosition($pos);
}
/**
* Retrieves a field from the object by Position as specified in the xml schema.
* Zero-based.
*
* @param int $pos position in xml schema
* @return mixed Value of field at $pos
*/
public function getByPosition($pos)
{
switch($pos) {
case 0:
return $this->getProUid();
break;
case 1:
return $this->getTasUid();
break;
case 2:
return $this->getTasType();
break;
case 3:
return $this->getTasDuration();
break;
case 4:
return $this->getTasDelayType();
break;
case 5:
return $this->getTasTemporizer();
break;
case 6:
return $this->getTasTypeDay();
break;
case 7:
return $this->getTasTimeunit();
break;
case 8:
return $this->getTasAlert();
break;
case 9:
return $this->getTasPriorityVariable();
break;
case 10:
return $this->getTasAssignType();
break;
case 11:
return $this->getTasAssignVariable();
break;
case 12:
return $this->getTasAssignLocation();
break;
case 13:
return $this->getTasAssignLocationAdhoc();
break;
case 14:
return $this->getTasTransferFly();
break;
case 15:
return $this->getTasLastAssigned();
break;
case 16:
return $this->getTasUser();
break;
case 17:
return $this->getTasCanUpload();
break;
case 18:
return $this->getTasViewUpload();
break;
case 19:
return $this->getTasViewAdditionalDocumentation();
break;
case 20:
return $this->getTasCanCancel();
break;
case 21:
return $this->getTasOwnerApp();
break;
case 22:
return $this->getStgUid();
break;
case 23:
return $this->getTasCanPause();
break;
case 24:
return $this->getTasCanSendMessage();
break;
case 25:
return $this->getTasCanDeleteDocs();
break;
case 26:
return $this->getTasSelfService();
break;
case 27:
return $this->getTasStart();
break;
case 28:
return $this->getTasToLastUser();
break;
case 29:
return $this->getTasSendLastEmail();
break;
case 30:
return $this->getTasDerivation();
break;
case 31:
return $this->getTasPosx();
break;
case 32:
return $this->getTasPosy();
break;
case 33:
return $this->getTasColor();
break;
default:
return null;
break;
} // switch()
}
/**
* Exports the object as an array.
*
* You can specify the key type of the array by passing one of the class
* type constants.
*
* @param string $keyType One of the class type constants TYPE_PHPNAME,
* TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
* @return an associative array containing the field names (as keys) and field values
*/
public function toArray($keyType = BasePeer::TYPE_PHPNAME)
{
$keys = TaskPeer::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getProUid(),
$keys[1] => $this->getTasUid(),
$keys[2] => $this->getTasType(),
$keys[3] => $this->getTasDuration(),
$keys[4] => $this->getTasDelayType(),
$keys[5] => $this->getTasTemporizer(),
$keys[6] => $this->getTasTypeDay(),
$keys[7] => $this->getTasTimeunit(),
$keys[8] => $this->getTasAlert(),
$keys[9] => $this->getTasPriorityVariable(),
$keys[10] => $this->getTasAssignType(),
$keys[11] => $this->getTasAssignVariable(),
$keys[12] => $this->getTasAssignLocation(),
$keys[13] => $this->getTasAssignLocationAdhoc(),
$keys[14] => $this->getTasTransferFly(),
$keys[15] => $this->getTasLastAssigned(),
$keys[16] => $this->getTasUser(),
$keys[17] => $this->getTasCanUpload(),
$keys[18] => $this->getTasViewUpload(),
$keys[19] => $this->getTasViewAdditionalDocumentation(),
$keys[20] => $this->getTasCanCancel(),
$keys[21] => $this->getTasOwnerApp(),
$keys[22] => $this->getStgUid(),
$keys[23] => $this->getTasCanPause(),
$keys[24] => $this->getTasCanSendMessage(),
$keys[25] => $this->getTasCanDeleteDocs(),
$keys[26] => $this->getTasSelfService(),
$keys[27] => $this->getTasStart(),
$keys[28] => $this->getTasToLastUser(),
$keys[29] => $this->getTasSendLastEmail(),
$keys[30] => $this->getTasDerivation(),
$keys[31] => $this->getTasPosx(),
$keys[32] => $this->getTasPosy(),
$keys[33] => $this->getTasColor(),
);
return $result;
}
/**
* Sets a field from the object by name passed in as a string.
*
* @param string $name peer name
* @param mixed $value field value
* @param string $type The type of fieldname the $name is of:
* one of the class type constants TYPE_PHPNAME,
* TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
* @return void
*/
public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
{
$pos = TaskPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
return $this->setByPosition($pos, $value);
}
/**
* Sets a field from the object by Position as specified in the xml schema.
* Zero-based.
*
* @param int $pos position in xml schema
* @param mixed $value field value
* @return void
*/
public function setByPosition($pos, $value)
{
switch($pos) {
case 0:
$this->setProUid($value);
break;
case 1:
$this->setTasUid($value);
break;
case 2:
$this->setTasType($value);
break;
case 3:
$this->setTasDuration($value);
break;
case 4:
$this->setTasDelayType($value);
break;
case 5:
$this->setTasTemporizer($value);
break;
case 6:
$this->setTasTypeDay($value);
break;
case 7:
$this->setTasTimeunit($value);
break;
case 8:
$this->setTasAlert($value);
break;
case 9:
$this->setTasPriorityVariable($value);
break;
case 10:
$this->setTasAssignType($value);
break;
case 11:
$this->setTasAssignVariable($value);
break;
case 12:
$this->setTasAssignLocation($value);
break;
case 13:
$this->setTasAssignLocationAdhoc($value);
break;
case 14:
$this->setTasTransferFly($value);
break;
case 15:
$this->setTasLastAssigned($value);
break;
case 16:
$this->setTasUser($value);
break;
case 17:
$this->setTasCanUpload($value);
break;
case 18:
$this->setTasViewUpload($value);
break;
case 19:
$this->setTasViewAdditionalDocumentation($value);
break;
case 20:
$this->setTasCanCancel($value);
break;
case 21:
$this->setTasOwnerApp($value);
break;
case 22:
$this->setStgUid($value);
break;
case 23:
$this->setTasCanPause($value);
break;
case 24:
$this->setTasCanSendMessage($value);
break;
case 25:
$this->setTasCanDeleteDocs($value);
break;
case 26:
$this->setTasSelfService($value);
break;
case 27:
$this->setTasStart($value);
break;
case 28:
$this->setTasToLastUser($value);
break;
case 29:
$this->setTasSendLastEmail($value);
break;
case 30:
$this->setTasDerivation($value);
break;
case 31:
$this->setTasPosx($value);
break;
case 32:
$this->setTasPosy($value);
break;
case 33:
$this->setTasColor($value);
break;
} // switch()
}
/**
* Populates the object using an array.
*
* This is particularly useful when populating an object from one of the
* request arrays (e.g. $_POST). This method goes through the column
* names, checking to see whether a matching key exists in populated
* array. If so the setByName() method is called for that column.
*
* You can specify the key type of the array by additionally passing one
* of the class type constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME,
* TYPE_NUM. The default key type is the column's phpname (e.g. 'authorId')
*
* @param array $arr An array to populate the object from.
* @param string $keyType The type of keys the array uses.
* @return void
*/
public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
{
$keys = TaskPeer::getFieldNames($keyType);
if (array_key_exists($keys[0], $arr)) $this->setProUid($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setTasUid($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setTasType($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setTasDuration($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setTasDelayType($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setTasTemporizer($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setTasTypeDay($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setTasTimeunit($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setTasAlert($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setTasPriorityVariable($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setTasAssignType($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setTasAssignVariable($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setTasAssignLocation($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setTasAssignLocationAdhoc($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setTasTransferFly($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setTasLastAssigned($arr[$keys[15]]);
if (array_key_exists($keys[16], $arr)) $this->setTasUser($arr[$keys[16]]);
if (array_key_exists($keys[17], $arr)) $this->setTasCanUpload($arr[$keys[17]]);
if (array_key_exists($keys[18], $arr)) $this->setTasViewUpload($arr[$keys[18]]);
if (array_key_exists($keys[19], $arr)) $this->setTasViewAdditionalDocumentation($arr[$keys[19]]);
if (array_key_exists($keys[20], $arr)) $this->setTasCanCancel($arr[$keys[20]]);
if (array_key_exists($keys[21], $arr)) $this->setTasOwnerApp($arr[$keys[21]]);
if (array_key_exists($keys[22], $arr)) $this->setStgUid($arr[$keys[22]]);
if (array_key_exists($keys[23], $arr)) $this->setTasCanPause($arr[$keys[23]]);
if (array_key_exists($keys[24], $arr)) $this->setTasCanSendMessage($arr[$keys[24]]);
if (array_key_exists($keys[25], $arr)) $this->setTasCanDeleteDocs($arr[$keys[25]]);
if (array_key_exists($keys[26], $arr)) $this->setTasSelfService($arr[$keys[26]]);
if (array_key_exists($keys[27], $arr)) $this->setTasStart($arr[$keys[27]]);
if (array_key_exists($keys[28], $arr)) $this->setTasToLastUser($arr[$keys[28]]);
if (array_key_exists($keys[29], $arr)) $this->setTasSendLastEmail($arr[$keys[29]]);
if (array_key_exists($keys[30], $arr)) $this->setTasDerivation($arr[$keys[30]]);
if (array_key_exists($keys[31], $arr)) $this->setTasPosx($arr[$keys[31]]);
if (array_key_exists($keys[32], $arr)) $this->setTasPosy($arr[$keys[32]]);
if (array_key_exists($keys[33], $arr)) $this->setTasColor($arr[$keys[33]]);
}
/**
* Build a Criteria object containing the values of all modified columns in this object.
*
* @return Criteria The Criteria object containing all modified values.
*/
public function buildCriteria()
{
$criteria = new Criteria(TaskPeer::DATABASE_NAME);
if ($this->isColumnModified(TaskPeer::PRO_UID)) $criteria->add(TaskPeer::PRO_UID, $this->pro_uid);
if ($this->isColumnModified(TaskPeer::TAS_UID)) $criteria->add(TaskPeer::TAS_UID, $this->tas_uid);
if ($this->isColumnModified(TaskPeer::TAS_TYPE)) $criteria->add(TaskPeer::TAS_TYPE, $this->tas_type);
if ($this->isColumnModified(TaskPeer::TAS_DURATION)) $criteria->add(TaskPeer::TAS_DURATION, $this->tas_duration);
if ($this->isColumnModified(TaskPeer::TAS_DELAY_TYPE)) $criteria->add(TaskPeer::TAS_DELAY_TYPE, $this->tas_delay_type);
if ($this->isColumnModified(TaskPeer::TAS_TEMPORIZER)) $criteria->add(TaskPeer::TAS_TEMPORIZER, $this->tas_temporizer);
if ($this->isColumnModified(TaskPeer::TAS_TYPE_DAY)) $criteria->add(TaskPeer::TAS_TYPE_DAY, $this->tas_type_day);
if ($this->isColumnModified(TaskPeer::TAS_TIMEUNIT)) $criteria->add(TaskPeer::TAS_TIMEUNIT, $this->tas_timeunit);
if ($this->isColumnModified(TaskPeer::TAS_ALERT)) $criteria->add(TaskPeer::TAS_ALERT, $this->tas_alert);
if ($this->isColumnModified(TaskPeer::TAS_PRIORITY_VARIABLE)) $criteria->add(TaskPeer::TAS_PRIORITY_VARIABLE, $this->tas_priority_variable);
if ($this->isColumnModified(TaskPeer::TAS_ASSIGN_TYPE)) $criteria->add(TaskPeer::TAS_ASSIGN_TYPE, $this->tas_assign_type);
if ($this->isColumnModified(TaskPeer::TAS_ASSIGN_VARIABLE)) $criteria->add(TaskPeer::TAS_ASSIGN_VARIABLE, $this->tas_assign_variable);
if ($this->isColumnModified(TaskPeer::TAS_ASSIGN_LOCATION)) $criteria->add(TaskPeer::TAS_ASSIGN_LOCATION, $this->tas_assign_location);
if ($this->isColumnModified(TaskPeer::TAS_ASSIGN_LOCATION_ADHOC)) $criteria->add(TaskPeer::TAS_ASSIGN_LOCATION_ADHOC, $this->tas_assign_location_adhoc);
if ($this->isColumnModified(TaskPeer::TAS_TRANSFER_FLY)) $criteria->add(TaskPeer::TAS_TRANSFER_FLY, $this->tas_transfer_fly);
if ($this->isColumnModified(TaskPeer::TAS_LAST_ASSIGNED)) $criteria->add(TaskPeer::TAS_LAST_ASSIGNED, $this->tas_last_assigned);
if ($this->isColumnModified(TaskPeer::TAS_USER)) $criteria->add(TaskPeer::TAS_USER, $this->tas_user);
if ($this->isColumnModified(TaskPeer::TAS_CAN_UPLOAD)) $criteria->add(TaskPeer::TAS_CAN_UPLOAD, $this->tas_can_upload);
if ($this->isColumnModified(TaskPeer::TAS_VIEW_UPLOAD)) $criteria->add(TaskPeer::TAS_VIEW_UPLOAD, $this->tas_view_upload);
if ($this->isColumnModified(TaskPeer::TAS_VIEW_ADDITIONAL_DOCUMENTATION)) $criteria->add(TaskPeer::TAS_VIEW_ADDITIONAL_DOCUMENTATION, $this->tas_view_additional_documentation);
if ($this->isColumnModified(TaskPeer::TAS_CAN_CANCEL)) $criteria->add(TaskPeer::TAS_CAN_CANCEL, $this->tas_can_cancel);
if ($this->isColumnModified(TaskPeer::TAS_OWNER_APP)) $criteria->add(TaskPeer::TAS_OWNER_APP, $this->tas_owner_app);
if ($this->isColumnModified(TaskPeer::STG_UID)) $criteria->add(TaskPeer::STG_UID, $this->stg_uid);
if ($this->isColumnModified(TaskPeer::TAS_CAN_PAUSE)) $criteria->add(TaskPeer::TAS_CAN_PAUSE, $this->tas_can_pause);
if ($this->isColumnModified(TaskPeer::TAS_CAN_SEND_MESSAGE)) $criteria->add(TaskPeer::TAS_CAN_SEND_MESSAGE, $this->tas_can_send_message);
if ($this->isColumnModified(TaskPeer::TAS_CAN_DELETE_DOCS)) $criteria->add(TaskPeer::TAS_CAN_DELETE_DOCS, $this->tas_can_delete_docs);
if ($this->isColumnModified(TaskPeer::TAS_SELF_SERVICE)) $criteria->add(TaskPeer::TAS_SELF_SERVICE, $this->tas_self_service);
if ($this->isColumnModified(TaskPeer::TAS_START)) $criteria->add(TaskPeer::TAS_START, $this->tas_start);
if ($this->isColumnModified(TaskPeer::TAS_TO_LAST_USER)) $criteria->add(TaskPeer::TAS_TO_LAST_USER, $this->tas_to_last_user);
if ($this->isColumnModified(TaskPeer::TAS_SEND_LAST_EMAIL)) $criteria->add(TaskPeer::TAS_SEND_LAST_EMAIL, $this->tas_send_last_email);
if ($this->isColumnModified(TaskPeer::TAS_DERIVATION)) $criteria->add(TaskPeer::TAS_DERIVATION, $this->tas_derivation);
if ($this->isColumnModified(TaskPeer::TAS_POSX)) $criteria->add(TaskPeer::TAS_POSX, $this->tas_posx);
if ($this->isColumnModified(TaskPeer::TAS_POSY)) $criteria->add(TaskPeer::TAS_POSY, $this->tas_posy);
if ($this->isColumnModified(TaskPeer::TAS_COLOR)) $criteria->add(TaskPeer::TAS_COLOR, $this->tas_color);
return $criteria;
}
/**
* Builds a Criteria object containing the primary key for this object.
*
* Unlike buildCriteria() this method includes the primary key values regardless
* of whether or not they have been modified.
*
* @return Criteria The Criteria object containing value(s) for primary key(s).
*/
public function buildPkeyCriteria()
{
$criteria = new Criteria(TaskPeer::DATABASE_NAME);
$criteria->add(TaskPeer::TAS_UID, $this->tas_uid);
return $criteria;
}
/**
* Returns the primary key for this object (row).
* @return string
*/
public function getPrimaryKey()
{
return $this->getTasUid();
}
/**
* Generic method to set the primary key (tas_uid column).
*
* @param string $key Primary key.
* @return void
*/
public function setPrimaryKey($key)
{
$this->setTasUid($key);
}
/**
* Sets contents of passed object to values from current object.
*
* If desired, this method can also make copies of all associated (fkey referrers)
* objects.
*
* @param object $copyObj An object of Task (or compatible) type.
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
* @throws PropelException
*/
public function copyInto($copyObj, $deepCopy = false)
{
$copyObj->setProUid($this->pro_uid);
$copyObj->setTasType($this->tas_type);
$copyObj->setTasDuration($this->tas_duration);
$copyObj->setTasDelayType($this->tas_delay_type);
$copyObj->setTasTemporizer($this->tas_temporizer);
$copyObj->setTasTypeDay($this->tas_type_day);
$copyObj->setTasTimeunit($this->tas_timeunit);
$copyObj->setTasAlert($this->tas_alert);
$copyObj->setTasPriorityVariable($this->tas_priority_variable);
$copyObj->setTasAssignType($this->tas_assign_type);
$copyObj->setTasAssignVariable($this->tas_assign_variable);
$copyObj->setTasAssignLocation($this->tas_assign_location);
$copyObj->setTasAssignLocationAdhoc($this->tas_assign_location_adhoc);
$copyObj->setTasTransferFly($this->tas_transfer_fly);
$copyObj->setTasLastAssigned($this->tas_last_assigned);
$copyObj->setTasUser($this->tas_user);
$copyObj->setTasCanUpload($this->tas_can_upload);
$copyObj->setTasViewUpload($this->tas_view_upload);
$copyObj->setTasViewAdditionalDocumentation($this->tas_view_additional_documentation);
$copyObj->setTasCanCancel($this->tas_can_cancel);
$copyObj->setTasOwnerApp($this->tas_owner_app);
$copyObj->setStgUid($this->stg_uid);
$copyObj->setTasCanPause($this->tas_can_pause);
$copyObj->setTasCanSendMessage($this->tas_can_send_message);
$copyObj->setTasCanDeleteDocs($this->tas_can_delete_docs);
$copyObj->setTasSelfService($this->tas_self_service);
$copyObj->setTasStart($this->tas_start);
$copyObj->setTasToLastUser($this->tas_to_last_user);
$copyObj->setTasSendLastEmail($this->tas_send_last_email);
$copyObj->setTasDerivation($this->tas_derivation);
$copyObj->setTasPosx($this->tas_posx);
$copyObj->setTasPosy($this->tas_posy);
$copyObj->setTasColor($this->tas_color);
$copyObj->setNew(true);
$copyObj->setTasUid(''); // this is a pkey column, so set to default value
}
/**
* Makes a copy of this object that will be inserted as a new row in table when saved.
* It creates a new object filling in the simple attributes, but skipping any primary
* keys that are defined for the table.
*
* If desired, this method can also make copies of all associated (fkey referrers)
* objects.
*
* @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row.
* @return Task Clone of current object.
* @throws PropelException
*/
public function copy($deepCopy = false)
{
// we use get_class(), because this might be a subclass
$clazz = get_class($this);
$copyObj = new $clazz();
$this->copyInto($copyObj, $deepCopy);
return $copyObj;
}
/**
* Returns a peer instance associated with this om.
*
* Since Peer classes are not to have any instance attributes, this method returns the
* same instance for all member of this class. The method could therefore
* be static, but this would prevent one from overriding the behavior.
*
* @return TaskPeer
*/
public function getPeer()
{
if (self::$peer === null) {
self::$peer = new TaskPeer();
}
return self::$peer;
}
} // BaseTask