PM-3915: Template dynamico de opciones en el actions by email Branch 3.0.1.x
This commit is contained in:
@@ -86,6 +86,7 @@ class actionsByEmailCoreClass extends PMPlugin
|
|||||||
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_ACTION_FIELD);
|
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_ACTION_FIELD);
|
||||||
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_SUBJECT_FIELD);
|
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_SUBJECT_FIELD);
|
||||||
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT);
|
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT);
|
||||||
|
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_CUSTOM_GRID);
|
||||||
$criteria->addSelectColumn(DynaformPeer::DYN_CONTENT);
|
$criteria->addSelectColumn(DynaformPeer::DYN_CONTENT);
|
||||||
$criteria->addJoin( AbeConfigurationPeer::DYN_UID, DynaformPeer::DYN_UID, Criteria::LEFT_JOIN );
|
$criteria->addJoin( AbeConfigurationPeer::DYN_UID, DynaformPeer::DYN_UID, Criteria::LEFT_JOIN );
|
||||||
$criteria->add(AbeConfigurationPeer::PRO_UID, $caseFields['PRO_UID']);
|
$criteria->add(AbeConfigurationPeer::PRO_UID, $caseFields['PRO_UID']);
|
||||||
@@ -147,6 +148,32 @@ class actionsByEmailCoreClass extends PMPlugin
|
|||||||
$link = (G::is_https() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/services/ActionsByEmail';
|
$link = (G::is_https() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/services/ActionsByEmail';
|
||||||
|
|
||||||
switch ($configuration['ABE_TYPE']) {
|
switch ($configuration['ABE_TYPE']) {
|
||||||
|
case 'CUSTOM':
|
||||||
|
$customGrid = unserialize($configuration['ABE_CUSTOM_GRID']);
|
||||||
|
$variableService = new \ProcessMaker\Services\Api\Project\Variable();
|
||||||
|
$variables = $variableService->doGetVariables($caseFields['PRO_UID']);
|
||||||
|
$field = new stdClass();
|
||||||
|
$field->label = '';
|
||||||
|
$actionField = str_replace(array('@@','@#','@=','@%','@?','@$'), '', $configuration['ABE_ACTION_FIELD']);
|
||||||
|
G::LoadClass('pmDynaform');
|
||||||
|
$obj = new pmDynaform($configuration['DYN_UID']);
|
||||||
|
$configuration['CURRENT_DYNAFORM'] = $configuration['DYN_UID'];
|
||||||
|
$file = $obj->printPmDynaformAbe($configuration);
|
||||||
|
$__ABE__ .= $file;
|
||||||
|
$__ABE__ .= '<strong>' . $field->label . '</strong><br /><br /><table align="left" border="0"><tr>';
|
||||||
|
$index = 1;
|
||||||
|
$__ABE__.='<br /><td><table align="left" cellpadding="2"><tr>';
|
||||||
|
foreach ($customGrid as $key => $value) {
|
||||||
|
$__ABE__ .= '<td align="center"><a style="'.$value['abe_custom_format'].'" ';
|
||||||
|
$__ABE__ .= 'href="' .urldecode(urlencode($link)). '?ACTION='.G::encrypt('processABE', URL_KEY).'&APP_UID=';
|
||||||
|
$__ABE__ .= G::encrypt($data->APP_UID, URL_KEY) . '&DEL_INDEX=' . G::encrypt($data->DEL_INDEX, URL_KEY);
|
||||||
|
$__ABE__ .= '&FIELD=' . G::encrypt($actionField, URL_KEY) . '&VALUE=' . G::encrypt($value['abe_custom_value'], URL_KEY);
|
||||||
|
$__ABE__ .= '&ABER=' . G::encrypt($abeRequest['ABE_REQ_UID'], URL_KEY) . '" target="_blank" >' . $value['abe_custom_label'];
|
||||||
|
$__ABE__ .= '</a></td>' . (($index % 5 == 0) ? '</tr><tr>' : ' ');
|
||||||
|
$index++;
|
||||||
|
}
|
||||||
|
$__ABE__.='</tr></table><br />';
|
||||||
|
break;
|
||||||
case 'LINK':
|
case 'LINK':
|
||||||
// $__ABE__ .= $dynaform->render(PATH_FEATURES . 'actionsByEmail/xmlform.html', $scriptCode) . '<br />';
|
// $__ABE__ .= $dynaform->render(PATH_FEATURES . 'actionsByEmail/xmlform.html', $scriptCode) . '<br />';
|
||||||
$__ABE__ .= '<a href="' . $link . 'DataForm?APP_UID=' . G::encrypt($data->APP_UID, URL_KEY) . '&DEL_INDEX=' . G::encrypt($data->DEL_INDEX, URL_KEY) . '&DYN_UID=' . G::encrypt($configuration['DYN_UID'], URL_KEY) . '&ABER=' . G::encrypt($abeRequest['ABE_REQ_UID'], URL_KEY) . '" target="_blank">Please complete this form</a>';
|
$__ABE__ .= '<a href="' . $link . 'DataForm?APP_UID=' . G::encrypt($data->APP_UID, URL_KEY) . '&DEL_INDEX=' . G::encrypt($data->DEL_INDEX, URL_KEY) . '&DYN_UID=' . G::encrypt($configuration['DYN_UID'], URL_KEY) . '&ABER=' . G::encrypt($abeRequest['ABE_REQ_UID'], URL_KEY) . '" target="_blank">Please complete this form</a>';
|
||||||
@@ -159,7 +186,7 @@ class actionsByEmailCoreClass extends PMPlugin
|
|||||||
$field->label = 'Test';
|
$field->label = 'Test';
|
||||||
$field->type = 'dropdown';
|
$field->type = 'dropdown';
|
||||||
$field->options = array();
|
$field->options = array();
|
||||||
$actionField = str_replace('@@', '', $configuration['ABE_ACTION_FIELD']);
|
$actionField = str_replace(array('@@','@#','@=','@%','@?','@$'), '', $configuration['ABE_ACTION_FIELD']);
|
||||||
$dynaform = $configuration['DYN_UID'];
|
$dynaform = $configuration['DYN_UID'];
|
||||||
$variables = G::json_decode($configuration['DYN_CONTENT'], true);
|
$variables = G::json_decode($configuration['DYN_CONTENT'], true);
|
||||||
if(isset($variables['items'][0]['items'])){
|
if(isset($variables['items'][0]['items'])){
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class AbeConfiguration extends BaseAbeConfiguration
|
|||||||
|
|
||||||
private $filterThisFields = array('ABE_UID', 'PRO_UID', 'TAS_UID', 'ABE_TYPE',
|
private $filterThisFields = array('ABE_UID', 'PRO_UID', 'TAS_UID', 'ABE_TYPE',
|
||||||
'ABE_TEMPLATE', 'ABE_DYN_TYPE', 'DYN_UID','ABE_EMAIL_FIELD',
|
'ABE_TEMPLATE', 'ABE_DYN_TYPE', 'DYN_UID','ABE_EMAIL_FIELD',
|
||||||
'ABE_ACTION_FIELD', 'ABE_CASE_NOTE_IN_RESPONSE', 'ABE_CREATE_DATE','ABE_UPDATE_DATE','ABE_MAILSERVER_OR_MAILCURRENT','ABE_SUBJECT_FIELD');
|
'ABE_ACTION_FIELD', 'ABE_CASE_NOTE_IN_RESPONSE', 'ABE_CREATE_DATE','ABE_UPDATE_DATE','ABE_MAILSERVER_OR_MAILCURRENT','ABE_SUBJECT_FIELD','ABE_CUSTOM_GRID');
|
||||||
|
|
||||||
public function load($abeUid)
|
public function load($abeUid)
|
||||||
{
|
{
|
||||||
@@ -54,6 +54,12 @@ class AbeConfiguration extends BaseAbeConfiguration
|
|||||||
} else {
|
} else {
|
||||||
$abeConfigurationInstance = AbeConfigurationPeer::retrieveByPK($data['ABE_UID']);
|
$abeConfigurationInstance = AbeConfigurationPeer::retrieveByPK($data['ABE_UID']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($data['ABE_CUSTOM_GRID'])) {
|
||||||
|
$data['ABE_CUSTOM_GRID'] = serialize($data['ABE_CUSTOM_GRID']);
|
||||||
|
} else {
|
||||||
|
$data['ABE_CUSTOM_GRID'] = "";
|
||||||
|
}
|
||||||
|
|
||||||
$data['ABE_UPDATE_DATE'] = date('Y-m-d H:i:s');
|
$data['ABE_UPDATE_DATE'] = date('Y-m-d H:i:s');
|
||||||
$abeConfigurationInstance->fromArray($data, BasePeer::TYPE_FIELDNAME);
|
$abeConfigurationInstance->fromArray($data, BasePeer::TYPE_FIELDNAME);
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ class AbeConfigurationMapBuilder
|
|||||||
|
|
||||||
$tMap->addColumn('ABE_MAILSERVER_OR_MAILCURRENT', 'AbeMailserverOrMailcurrent', 'int', CreoleTypes::INTEGER, false, null);
|
$tMap->addColumn('ABE_MAILSERVER_OR_MAILCURRENT', 'AbeMailserverOrMailcurrent', 'int', CreoleTypes::INTEGER, false, null);
|
||||||
|
|
||||||
|
$tMap->addColumn('ABE_CUSTOM_GRID', 'AbeCustomGrid', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
||||||
|
|
||||||
} // doBuild()
|
} // doBuild()
|
||||||
|
|
||||||
} // AbeConfigurationMapBuilder
|
} // AbeConfigurationMapBuilder
|
||||||
|
|||||||
@@ -111,6 +111,12 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
*/
|
*/
|
||||||
protected $abe_mailserver_or_mailcurrent = 0;
|
protected $abe_mailserver_or_mailcurrent = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the abe_custom_grid field.
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $abe_custom_grid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Flag to prevent endless save loop, if this object is referenced
|
* Flag to prevent endless save loop, if this object is referenced
|
||||||
* by another object which falls in this transaction.
|
* by another object which falls in this transaction.
|
||||||
@@ -321,6 +327,17 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
return $this->abe_mailserver_or_mailcurrent;
|
return $this->abe_mailserver_or_mailcurrent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [abe_custom_grid] column value.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getAbeCustomGrid()
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->abe_custom_grid;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [abe_uid] column.
|
* Set the value of [abe_uid] column.
|
||||||
*
|
*
|
||||||
@@ -643,6 +660,28 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
|
|
||||||
} // setAbeMailserverOrMailcurrent()
|
} // setAbeMailserverOrMailcurrent()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [abe_custom_grid] column.
|
||||||
|
*
|
||||||
|
* @param string $v new value
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function setAbeCustomGrid($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->abe_custom_grid !== $v) {
|
||||||
|
$this->abe_custom_grid = $v;
|
||||||
|
$this->modifiedColumns[] = AbeConfigurationPeer::ABE_CUSTOM_GRID;
|
||||||
|
}
|
||||||
|
|
||||||
|
} // setAbeCustomGrid()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hydrates (populates) the object variables with values from the database resultset.
|
* Hydrates (populates) the object variables with values from the database resultset.
|
||||||
*
|
*
|
||||||
@@ -688,12 +727,14 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$this->abe_mailserver_or_mailcurrent = $rs->getInt($startcol + 13);
|
$this->abe_mailserver_or_mailcurrent = $rs->getInt($startcol + 13);
|
||||||
|
|
||||||
|
$this->abe_custom_grid = $rs->getString($startcol + 14);
|
||||||
|
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
|
||||||
// FIXME - using NUM_COLUMNS may be clearer.
|
// FIXME - using NUM_COLUMNS may be clearer.
|
||||||
return $startcol + 14; // 14 = AbeConfigurationPeer::NUM_COLUMNS - AbeConfigurationPeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 15; // 15 = AbeConfigurationPeer::NUM_COLUMNS - AbeConfigurationPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating AbeConfiguration object", $e);
|
throw new PropelException("Error populating AbeConfiguration object", $e);
|
||||||
@@ -939,6 +980,9 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
case 13:
|
case 13:
|
||||||
return $this->getAbeMailserverOrMailcurrent();
|
return $this->getAbeMailserverOrMailcurrent();
|
||||||
break;
|
break;
|
||||||
|
case 14:
|
||||||
|
return $this->getAbeCustomGrid();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
break;
|
break;
|
||||||
@@ -973,6 +1017,7 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
$keys[11] => $this->getAbeUpdateDate(),
|
$keys[11] => $this->getAbeUpdateDate(),
|
||||||
$keys[12] => $this->getAbeSubjectField(),
|
$keys[12] => $this->getAbeSubjectField(),
|
||||||
$keys[13] => $this->getAbeMailserverOrMailcurrent(),
|
$keys[13] => $this->getAbeMailserverOrMailcurrent(),
|
||||||
|
$keys[14] => $this->getAbeCustomGrid(),
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@@ -1046,6 +1091,9 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
case 13:
|
case 13:
|
||||||
$this->setAbeMailserverOrMailcurrent($value);
|
$this->setAbeMailserverOrMailcurrent($value);
|
||||||
break;
|
break;
|
||||||
|
case 14:
|
||||||
|
$this->setAbeCustomGrid($value);
|
||||||
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1125,6 +1173,10 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
$this->setAbeMailserverOrMailcurrent($arr[$keys[13]]);
|
$this->setAbeMailserverOrMailcurrent($arr[$keys[13]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (array_key_exists($keys[14], $arr)) {
|
||||||
|
$this->setAbeCustomGrid($arr[$keys[14]]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1192,6 +1244,10 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
$criteria->add(AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT, $this->abe_mailserver_or_mailcurrent);
|
$criteria->add(AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT, $this->abe_mailserver_or_mailcurrent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->isColumnModified(AbeConfigurationPeer::ABE_CUSTOM_GRID)) {
|
||||||
|
$criteria->add(AbeConfigurationPeer::ABE_CUSTOM_GRID, $this->abe_custom_grid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
@@ -1272,6 +1328,8 @@ abstract class BaseAbeConfiguration extends BaseObject implements Persistent
|
|||||||
|
|
||||||
$copyObj->setAbeMailserverOrMailcurrent($this->abe_mailserver_or_mailcurrent);
|
$copyObj->setAbeMailserverOrMailcurrent($this->abe_mailserver_or_mailcurrent);
|
||||||
|
|
||||||
|
$copyObj->setAbeCustomGrid($this->abe_custom_grid);
|
||||||
|
|
||||||
|
|
||||||
$copyObj->setNew(true);
|
$copyObj->setNew(true);
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ abstract class BaseAbeConfigurationPeer
|
|||||||
const CLASS_DEFAULT = 'classes.model.AbeConfiguration';
|
const CLASS_DEFAULT = 'classes.model.AbeConfiguration';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 14;
|
const NUM_COLUMNS = 15;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
@@ -73,6 +73,9 @@ abstract class BaseAbeConfigurationPeer
|
|||||||
/** the column name for the ABE_MAILSERVER_OR_MAILCURRENT field */
|
/** the column name for the ABE_MAILSERVER_OR_MAILCURRENT field */
|
||||||
const ABE_MAILSERVER_OR_MAILCURRENT = 'ABE_CONFIGURATION.ABE_MAILSERVER_OR_MAILCURRENT';
|
const ABE_MAILSERVER_OR_MAILCURRENT = 'ABE_CONFIGURATION.ABE_MAILSERVER_OR_MAILCURRENT';
|
||||||
|
|
||||||
|
/** the column name for the ABE_CUSTOM_GRID field */
|
||||||
|
const ABE_CUSTOM_GRID = 'ABE_CONFIGURATION.ABE_CUSTOM_GRID';
|
||||||
|
|
||||||
/** The PHP to DB Name Mapping */
|
/** The PHP to DB Name Mapping */
|
||||||
private static $phpNameMap = null;
|
private static $phpNameMap = null;
|
||||||
|
|
||||||
@@ -84,10 +87,10 @@ abstract class BaseAbeConfigurationPeer
|
|||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AbeUid', 'ProUid', 'TasUid', 'AbeType', 'AbeTemplate', 'AbeDynType', 'DynUid', 'AbeEmailField', 'AbeActionField', 'AbeCaseNoteInResponse', 'AbeCreateDate', 'AbeUpdateDate', 'AbeSubjectField', 'AbeMailserverOrMailcurrent', ),
|
BasePeer::TYPE_PHPNAME => array ('AbeUid', 'ProUid', 'TasUid', 'AbeType', 'AbeTemplate', 'AbeDynType', 'DynUid', 'AbeEmailField', 'AbeActionField', 'AbeCaseNoteInResponse', 'AbeCreateDate', 'AbeUpdateDate', 'AbeSubjectField', 'AbeMailserverOrMailcurrent', 'AbeCustomGrid', ),
|
||||||
BasePeer::TYPE_COLNAME => array (AbeConfigurationPeer::ABE_UID, AbeConfigurationPeer::PRO_UID, AbeConfigurationPeer::TAS_UID, AbeConfigurationPeer::ABE_TYPE, AbeConfigurationPeer::ABE_TEMPLATE, AbeConfigurationPeer::ABE_DYN_TYPE, AbeConfigurationPeer::DYN_UID, AbeConfigurationPeer::ABE_EMAIL_FIELD, AbeConfigurationPeer::ABE_ACTION_FIELD, AbeConfigurationPeer::ABE_CASE_NOTE_IN_RESPONSE, AbeConfigurationPeer::ABE_CREATE_DATE, AbeConfigurationPeer::ABE_UPDATE_DATE, AbeConfigurationPeer::ABE_SUBJECT_FIELD, AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT, ),
|
BasePeer::TYPE_COLNAME => array (AbeConfigurationPeer::ABE_UID, AbeConfigurationPeer::PRO_UID, AbeConfigurationPeer::TAS_UID, AbeConfigurationPeer::ABE_TYPE, AbeConfigurationPeer::ABE_TEMPLATE, AbeConfigurationPeer::ABE_DYN_TYPE, AbeConfigurationPeer::DYN_UID, AbeConfigurationPeer::ABE_EMAIL_FIELD, AbeConfigurationPeer::ABE_ACTION_FIELD, AbeConfigurationPeer::ABE_CASE_NOTE_IN_RESPONSE, AbeConfigurationPeer::ABE_CREATE_DATE, AbeConfigurationPeer::ABE_UPDATE_DATE, AbeConfigurationPeer::ABE_SUBJECT_FIELD, AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT, AbeConfigurationPeer::ABE_CUSTOM_GRID, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('ABE_UID', 'PRO_UID', 'TAS_UID', 'ABE_TYPE', 'ABE_TEMPLATE', 'ABE_DYN_TYPE', 'DYN_UID', 'ABE_EMAIL_FIELD', 'ABE_ACTION_FIELD', 'ABE_CASE_NOTE_IN_RESPONSE', 'ABE_CREATE_DATE', 'ABE_UPDATE_DATE', 'ABE_SUBJECT_FIELD', 'ABE_MAILSERVER_OR_MAILCURRENT', ),
|
BasePeer::TYPE_FIELDNAME => array ('ABE_UID', 'PRO_UID', 'TAS_UID', 'ABE_TYPE', 'ABE_TEMPLATE', 'ABE_DYN_TYPE', 'DYN_UID', 'ABE_EMAIL_FIELD', 'ABE_ACTION_FIELD', 'ABE_CASE_NOTE_IN_RESPONSE', 'ABE_CREATE_DATE', 'ABE_UPDATE_DATE', 'ABE_SUBJECT_FIELD', 'ABE_MAILSERVER_OR_MAILCURRENT', 'ABE_CUSTOM_GRID', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -97,10 +100,10 @@ abstract class BaseAbeConfigurationPeer
|
|||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('AbeUid' => 0, 'ProUid' => 1, 'TasUid' => 2, 'AbeType' => 3, 'AbeTemplate' => 4, 'AbeDynType' => 5, 'DynUid' => 6, 'AbeEmailField' => 7, 'AbeActionField' => 8, 'AbeCaseNoteInResponse' => 9, 'AbeCreateDate' => 10, 'AbeUpdateDate' => 11, 'AbeSubjectField' => 12, 'AbeMailserverOrMailcurrent' => 13, ),
|
BasePeer::TYPE_PHPNAME => array ('AbeUid' => 0, 'ProUid' => 1, 'TasUid' => 2, 'AbeType' => 3, 'AbeTemplate' => 4, 'AbeDynType' => 5, 'DynUid' => 6, 'AbeEmailField' => 7, 'AbeActionField' => 8, 'AbeCaseNoteInResponse' => 9, 'AbeCreateDate' => 10, 'AbeUpdateDate' => 11, 'AbeSubjectField' => 12, 'AbeMailserverOrMailcurrent' => 13, 'AbeCustomGrid' => 14, ),
|
||||||
BasePeer::TYPE_COLNAME => array (AbeConfigurationPeer::ABE_UID => 0, AbeConfigurationPeer::PRO_UID => 1, AbeConfigurationPeer::TAS_UID => 2, AbeConfigurationPeer::ABE_TYPE => 3, AbeConfigurationPeer::ABE_TEMPLATE => 4, AbeConfigurationPeer::ABE_DYN_TYPE => 5, AbeConfigurationPeer::DYN_UID => 6, AbeConfigurationPeer::ABE_EMAIL_FIELD => 7, AbeConfigurationPeer::ABE_ACTION_FIELD => 8, AbeConfigurationPeer::ABE_CASE_NOTE_IN_RESPONSE => 9, AbeConfigurationPeer::ABE_CREATE_DATE => 10, AbeConfigurationPeer::ABE_UPDATE_DATE => 11, AbeConfigurationPeer::ABE_SUBJECT_FIELD => 12, AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT => 13, ),
|
BasePeer::TYPE_COLNAME => array (AbeConfigurationPeer::ABE_UID => 0, AbeConfigurationPeer::PRO_UID => 1, AbeConfigurationPeer::TAS_UID => 2, AbeConfigurationPeer::ABE_TYPE => 3, AbeConfigurationPeer::ABE_TEMPLATE => 4, AbeConfigurationPeer::ABE_DYN_TYPE => 5, AbeConfigurationPeer::DYN_UID => 6, AbeConfigurationPeer::ABE_EMAIL_FIELD => 7, AbeConfigurationPeer::ABE_ACTION_FIELD => 8, AbeConfigurationPeer::ABE_CASE_NOTE_IN_RESPONSE => 9, AbeConfigurationPeer::ABE_CREATE_DATE => 10, AbeConfigurationPeer::ABE_UPDATE_DATE => 11, AbeConfigurationPeer::ABE_SUBJECT_FIELD => 12, AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT => 13, AbeConfigurationPeer::ABE_CUSTOM_GRID => 14, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('ABE_UID' => 0, 'PRO_UID' => 1, 'TAS_UID' => 2, 'ABE_TYPE' => 3, 'ABE_TEMPLATE' => 4, 'ABE_DYN_TYPE' => 5, 'DYN_UID' => 6, 'ABE_EMAIL_FIELD' => 7, 'ABE_ACTION_FIELD' => 8, 'ABE_CASE_NOTE_IN_RESPONSE' => 9, 'ABE_CREATE_DATE' => 10, 'ABE_UPDATE_DATE' => 11, 'ABE_SUBJECT_FIELD' => 12, 'ABE_MAILSERVER_OR_MAILCURRENT' => 13, ),
|
BasePeer::TYPE_FIELDNAME => array ('ABE_UID' => 0, 'PRO_UID' => 1, 'TAS_UID' => 2, 'ABE_TYPE' => 3, 'ABE_TEMPLATE' => 4, 'ABE_DYN_TYPE' => 5, 'DYN_UID' => 6, 'ABE_EMAIL_FIELD' => 7, 'ABE_ACTION_FIELD' => 8, 'ABE_CASE_NOTE_IN_RESPONSE' => 9, 'ABE_CREATE_DATE' => 10, 'ABE_UPDATE_DATE' => 11, 'ABE_SUBJECT_FIELD' => 12, 'ABE_MAILSERVER_OR_MAILCURRENT' => 13, 'ABE_CUSTOM_GRID' => 14, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -229,6 +232,8 @@ abstract class BaseAbeConfigurationPeer
|
|||||||
|
|
||||||
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT);
|
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_MAILSERVER_OR_MAILCURRENT);
|
||||||
|
|
||||||
|
$criteria->addSelectColumn(AbeConfigurationPeer::ABE_CUSTOM_GRID);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const COUNT = 'COUNT(ABE_CONFIGURATION.ABE_UID)';
|
const COUNT = 'COUNT(ABE_CONFIGURATION.ABE_UID)';
|
||||||
|
|||||||
@@ -4683,6 +4683,12 @@
|
|||||||
<parameter name="Extra" value=""/>
|
<parameter name="Extra" value=""/>
|
||||||
</vendor>
|
</vendor>
|
||||||
</column>
|
</column>
|
||||||
|
<column name="ABE_CUSTOM_GRID" type="LONGVARCHAR" required="false">
|
||||||
|
<vendor type="mysql">
|
||||||
|
<parameter name="Field" value="ABE_CUSTOM_GRID"/>
|
||||||
|
<parameter name="Default" value=""/>
|
||||||
|
</vendor>
|
||||||
|
</column>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table name="ABE_REQUESTS">
|
<table name="ABE_REQUESTS">
|
||||||
|
|||||||
@@ -2655,6 +2655,7 @@ CREATE TABLE `ABE_CONFIGURATION`
|
|||||||
`ABE_UPDATE_DATE` DATETIME,
|
`ABE_UPDATE_DATE` DATETIME,
|
||||||
`ABE_SUBJECT_FIELD` VARCHAR(100) default '' NOT NULL,
|
`ABE_SUBJECT_FIELD` VARCHAR(100) default '' NOT NULL,
|
||||||
`ABE_MAILSERVER_OR_MAILCURRENT` INTEGER default 0 NOT NULL,
|
`ABE_MAILSERVER_OR_MAILCURRENT` INTEGER default 0 NOT NULL,
|
||||||
|
`ABE_CUSTOM_GRID` TEXT,
|
||||||
PRIMARY KEY (`ABE_UID`)
|
PRIMARY KEY (`ABE_UID`)
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='The plugin table for actionsByEmail';
|
)ENGINE=InnoDB DEFAULT CHARSET='utf8' COMMENT='The plugin table for actionsByEmail';
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ class ActionsByEmail
|
|||||||
$configuration['ABE_ACTION_FIELD'] = $configuration['ABE_ACTION_FIELD'];
|
$configuration['ABE_ACTION_FIELD'] = $configuration['ABE_ACTION_FIELD'];
|
||||||
$configuration['ABE_MAILSERVER_OR_MAILCURRENT'] = $configuration['ABE_MAILSERVER_OR_MAILCURRENT'];
|
$configuration['ABE_MAILSERVER_OR_MAILCURRENT'] = $configuration['ABE_MAILSERVER_OR_MAILCURRENT'];
|
||||||
$configuration['ABE_CASE_NOTE_IN_RESPONSE'] = $configuration['ABE_CASE_NOTE_IN_RESPONSE'] ? '["1"]' : '[]';
|
$configuration['ABE_CASE_NOTE_IN_RESPONSE'] = $configuration['ABE_CASE_NOTE_IN_RESPONSE'] ? '["1"]' : '[]';
|
||||||
|
$configuration['ABE_CUSTOM_GRID'] = unserialize($configuration['ABE_CUSTOM_GRID']);
|
||||||
}
|
}
|
||||||
$configuration['feature'] = 'ActionsByEmail';
|
$configuration['feature'] = 'ActionsByEmail';
|
||||||
$configuration['prefix'] = 'abe';
|
$configuration['prefix'] = 'abe';
|
||||||
|
|||||||
Reference in New Issue
Block a user