Fix conflicts with develop branch
This commit is contained in:
@@ -797,7 +797,7 @@ class Cases
|
||||
public function array_key_intersect(&$a, &$b)
|
||||
{
|
||||
$array = array();
|
||||
while (list($key, $value) = each($a)) {
|
||||
foreach ($a as $key => $value) {
|
||||
if (isset($b[$key])) {
|
||||
if (is_object($b[$key]) && is_object($value)) {
|
||||
if (serialize($b[$key]) === serialize($value)) {
|
||||
@@ -1034,6 +1034,7 @@ class Cases
|
||||
public function removeCase($sAppUid, $deleteDelegation = true)
|
||||
{
|
||||
try {
|
||||
$appUidCopy = $sAppUid;
|
||||
$this->getExecuteTriggerProcess($sAppUid, 'DELETED');
|
||||
|
||||
$oAppDocument = new AppDocument();
|
||||
@@ -1152,7 +1153,7 @@ class Cases
|
||||
|
||||
/** ProcessMaker log*/
|
||||
$context = Bootstrap::getDefaultContextLog();
|
||||
$context['appUid'] = $sAppUid;
|
||||
$context['appUid'] = $appUidCopy;
|
||||
$context['request'] = $nameFiles;
|
||||
Bootstrap::registerMonolog('DeleteCases', 200, 'Delete Case', $context);
|
||||
|
||||
|
||||
@@ -357,6 +357,7 @@ class PmDynaform
|
||||
$option->value = isset($row[0]) ? $row[0] : "";
|
||||
$option->label = isset($row[1]) ? $row[1] : "";
|
||||
$json->optionsSql[] = $option;
|
||||
$json->queryOutputData[] = $option;
|
||||
}
|
||||
}
|
||||
if ($value === "suggest" && isset($json->queryField) && $json->queryField == true) {
|
||||
@@ -1022,8 +1023,17 @@ class PmDynaform
|
||||
. " JOIN "
|
||||
. $dt[$key]["table"]
|
||||
. ($dt[$key]["table"] == $dt[$key]["alias"] ? "" : " " . $dt[$key]["alias"]) . " "
|
||||
. $dt[$key]["ref_type"] . " "
|
||||
. rtrim($dt[$key]["ref_clause"], " INNER");
|
||||
. $dt[$key]["ref_type"] . " ";
|
||||
|
||||
// Get the last 6 chars of the string
|
||||
$tempString = mb_substr($dt[$key]["ref_clause"], -6);
|
||||
|
||||
// If the last section is a "INNER" statement we need to remove it
|
||||
if (strcasecmp($tempString, " INNER") === 0) {
|
||||
$from .= mb_substr($dt[$key]["ref_clause"], 0, mb_strlen($dt[$key]["ref_clause"]) - 6);
|
||||
} else {
|
||||
$from .= $dt[$key]["ref_clause"];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,8 +166,14 @@ class PmLicenseManager
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists(PATH_DATA_SITE . "ee")) {
|
||||
$aPlugins = unserialize(trim(file_get_contents(PATH_DATA_SITE . 'ee')));
|
||||
$eeData = Cache::get(config('system.workspace') . 'enterprise.ee', function () {
|
||||
if (file_exists(PATH_DATA_SITE . 'ee')) {
|
||||
return trim(file_get_contents(PATH_DATA_SITE . 'ee'));
|
||||
}
|
||||
return null;
|
||||
});
|
||||
if ($eeData) {
|
||||
$aPlugins = unserialize($eeData);
|
||||
$aDenied = [];
|
||||
foreach ($aPlugins as $aPlugin) {
|
||||
$sClassName = substr($aPlugin ['sFilename'], 0, strpos($aPlugin ['sFilename'], '-'));
|
||||
@@ -210,8 +216,14 @@ class PmLicenseManager
|
||||
$oPluginRegistry->savePlugin($oDetails->getNamespace());
|
||||
}
|
||||
|
||||
if (file_exists(PATH_DATA_SITE . 'ee')) {
|
||||
$aPlugins = unserialize(trim(file_get_contents(PATH_DATA_SITE . 'ee')));
|
||||
$eeData = Cache::get(config('system.workspace') . 'enterprise.ee', function () {
|
||||
if (file_exists(PATH_DATA_SITE . 'ee')) {
|
||||
return trim(file_get_contents(PATH_DATA_SITE . 'ee'));
|
||||
}
|
||||
return null;
|
||||
});
|
||||
if ($eeData) {
|
||||
$aPlugins = unserialize($eeData);
|
||||
|
||||
foreach ($aPlugins as $aPlugin) {
|
||||
$sClassName = substr($aPlugin ['sFilename'], 0, strpos($aPlugin ['sFilename'], '-'));
|
||||
|
||||
@@ -466,7 +466,7 @@ class PmTable
|
||||
}
|
||||
|
||||
if (empty($line)) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if (strpos($line, "#") === 0) {
|
||||
@@ -474,7 +474,7 @@ class PmTable
|
||||
}
|
||||
|
||||
if (empty($line)) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
// Concatenate the previous line, if any, with the current
|
||||
@@ -487,7 +487,7 @@ class PmTable
|
||||
// with the next one, thus supporting multi-line statements.
|
||||
if (strrpos($line, ";") != strlen($line) - 1) {
|
||||
$previous = $line;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
$line = substr($line, 0, strrpos($line, ";"));
|
||||
@@ -513,7 +513,7 @@ class PmTable
|
||||
}
|
||||
|
||||
if (empty($line)) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if (strpos($line, "#") === 0) {
|
||||
@@ -521,7 +521,7 @@ class PmTable
|
||||
}
|
||||
|
||||
if (empty($line)) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
// Concatenate the previous line, if any, with the current
|
||||
@@ -534,13 +534,13 @@ class PmTable
|
||||
// with the next one, thus supporting multi-line statements.
|
||||
if (strrpos($line, ";") != strlen($line) - 1) {
|
||||
$previous = $line;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
$line = substr($line, 0, strrpos($line, ";"));
|
||||
|
||||
if (strpos($line, $this->tableName) == false) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
$auxCreate = explode('CREATE', $line);
|
||||
@@ -553,7 +553,7 @@ class PmTable
|
||||
case 'oracle':
|
||||
$line = trim($line); // Remove comments from the script
|
||||
if (empty($line)) {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
switch (true) {
|
||||
case preg_match("/^CREATE TABLE\s/i", $line):
|
||||
|
||||
@@ -729,6 +729,7 @@ class ProcessMap
|
||||
$urlEdit = '';
|
||||
$linkEditValue = '';
|
||||
|
||||
$shouldItContinue = false;
|
||||
switch ($aRow['STEP_TYPE_OBJ']) {
|
||||
case 'DYNAFORM':
|
||||
$oDynaform = new Dynaform();
|
||||
@@ -748,7 +749,8 @@ class ProcessMap
|
||||
$oInputDocument = new InputDocument();
|
||||
$aFields = $oInputDocument->getByUid($aRow['STEP_UID_OBJ']);
|
||||
if ($aFields === false) {
|
||||
continue;
|
||||
$shouldItContinue = true;
|
||||
break;
|
||||
}
|
||||
$sTitle = $aFields['INP_DOC_TITLE'];
|
||||
break;
|
||||
@@ -757,7 +759,8 @@ class ProcessMap
|
||||
$aFields = $oOutputDocument->getByUid($aRow['STEP_UID_OBJ']);
|
||||
|
||||
if ($aFields === false) {
|
||||
continue;
|
||||
$shouldItContinue = true;
|
||||
break;
|
||||
}
|
||||
$sTitle = $aFields['OUT_DOC_TITLE'];
|
||||
break;
|
||||
@@ -777,6 +780,9 @@ class ProcessMap
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ($shouldItContinue === true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$aSteps[] = array('STEP_TITLE' => $sTitle, 'STEP_UID' => $aRow['STEP_UID'], 'STEP_TYPE_OBJ' => $aRow['STEP_TYPE_OBJ'], 'STEP_MODE' => $aRow['STEP_MODE'], 'STEP_CONDITION' => $aRow['STEP_CONDITION'], 'STEP_POSITION' => $aRow['STEP_POSITION'], 'urlEdit' => $urlEdit, 'linkEditValue' => $linkEditValue, 'PRO_UID' => $aRow['PRO_UID']
|
||||
);
|
||||
|
||||
@@ -1017,6 +1017,9 @@ class Processes
|
||||
$map[$val['DYN_UID']] = $newGuid;
|
||||
$oData->dynaforms[$key]['DYN_UID'] = $newGuid;
|
||||
unset($oData->dynaforms[$key]['DYN_ID']);
|
||||
|
||||
//this is important when UID's is updated
|
||||
$oData->dynaforms[$key]['DYN_FILENAME'] = $oData->dynaforms[$key]['PRO_UID'] . "/" . $oData->dynaforms[$key]['DYN_UID'];
|
||||
}
|
||||
|
||||
$oData->uid["DYNAFORM"] = $map;
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
function __autoload($sClassName)
|
||||
{
|
||||
spl_autoload_register(function($sClassName) {
|
||||
if (!empty(config("system.workspace"))) {
|
||||
$sPath = PATH_DB . config("system.workspace") . PATH_SEP . 'classes' . PATH_SEP;
|
||||
if (file_exists($sPath . $sClassName . '.php')) {
|
||||
require_once $sPath . $sClassName . '.php';
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!empty(config("system.workspace")) && (!defined('PATH_DATA_SITE') || !defined('PATH_WORKSPACE'))) {
|
||||
Bootstrap::setConstantsRelatedWs(config("system.workspace"));
|
||||
}
|
||||
|
||||
@@ -1086,6 +1086,7 @@ class AdditionalTables extends BaseAdditionalTables
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::ADD_TAB_DESCRIPTION);
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::ADD_TAB_TYPE);
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::ADD_TAB_TAG);
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::ADD_TAB_OFFLINE);
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::PRO_UID);
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::DBS_UID);
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
@@ -354,8 +355,14 @@ class AddonsStore extends BaseAddonsStore
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aPluginsPP = array();
|
||||
|
||||
if (file_exists(PATH_DATA_SITE . 'ee')) {
|
||||
$aPluginsPP = unserialize(trim(file_get_contents(PATH_DATA_SITE . 'ee')));
|
||||
$eeData = Cache::get(config('system.workspace') . 'enterprise.ee', function () {
|
||||
if (file_exists(PATH_DATA_SITE . 'ee')) {
|
||||
return trim(file_get_contents(PATH_DATA_SITE . 'ee'));
|
||||
}
|
||||
return null;
|
||||
});
|
||||
if ($eeData) {
|
||||
$aPluginsPP = unserialize($eeData);
|
||||
}
|
||||
|
||||
$pmLicenseManagerO = PmLicenseManager::getSingleton();
|
||||
|
||||
@@ -103,7 +103,7 @@ class Configuration extends BaseConfiguration
|
||||
public function exists($CfgUid, $ObjUid = "", $ProUid = "", $UsrUid = "", $AppUid = "")
|
||||
{
|
||||
$oRow = ConfigurationPeer::retrieveByPK( $CfgUid, $ObjUid, $ProUid, $UsrUid, $AppUid );
|
||||
return (( get_class ($oRow) == 'Configuration' )&&(!is_null($oRow)));
|
||||
return (!is_null($oRow) && get_class($oRow) === 'Configuration');
|
||||
}
|
||||
|
||||
public function getAll ()
|
||||
|
||||
@@ -778,17 +778,38 @@ class OutputDocument extends BaseOutputDocument
|
||||
unlink(PATH_OUTPUT_FILE_DIRECTORY . $sFilename . '.html');
|
||||
}
|
||||
|
||||
public function generateTcpdf($sUID, $aFields, $sPath, $sFilename, $sContent, $sLandscape = false, $aProperties = array())
|
||||
/**
|
||||
* Generate a PDF file using the TCPDF library
|
||||
*
|
||||
* @param string $outDocUid
|
||||
* @param array $fields
|
||||
* @param string $path
|
||||
* @param string $filename
|
||||
* @param string $content
|
||||
* @param bool $landscape
|
||||
* @param array $properties
|
||||
*
|
||||
* @see generate()
|
||||
* @see \ProcessMaker\BusinessModel\Cases\OutputDocument::generate()
|
||||
*
|
||||
* @link https://wiki.processmaker.com/3.3/Output_Documents#Creating_Output_Documents_Usign_TCPDF_Generator
|
||||
*/
|
||||
public function generateTcpdf($outDocUid, $fields, $path, $filename, $content, $landscape = false, $properties = [])
|
||||
{
|
||||
require_once(PATH_THIRDPARTY . "tcpdf" . PATH_SEP . "config" . PATH_SEP . "lang" . PATH_SEP . "eng.php");
|
||||
require_once(PATH_THIRDPARTY . "tcpdf" . PATH_SEP . "tcpdf.php");
|
||||
// Including the basic configuration for the TCPDF library
|
||||
require_once PATH_TRUNK . "vendor" . PATH_SEP . "tecnickcom" . PATH_SEP . "tcpdf" . PATH_SEP . "config" . PATH_SEP . "tcpdf_config.php";
|
||||
|
||||
$nrt = array("\n", "\r", "\t");
|
||||
$nrthtml = array("(n /)", "(r /)", "(t /)");
|
||||
|
||||
$strContentAux = str_replace($nrt, $nrthtml, $sContent);
|
||||
$sContent = null;
|
||||
// Initialize variables
|
||||
$nrt = ["\n", "\r", "\t"];
|
||||
$nrtHtml = ["(n /)", "(r /)", "(t /)"];
|
||||
$outputType = 2;
|
||||
$orientation = ($landscape == false) ? PDF_PAGE_ORIENTATION : 'L';
|
||||
$media = (isset($properties['media'])) ? $properties['media'] : PDF_PAGE_FORMAT;
|
||||
$lang = (defined('SYS_LANG')) ? SYS_LANG : 'en';
|
||||
$strContentAux = str_replace($nrt, $nrtHtml, $content);
|
||||
$content = null;
|
||||
|
||||
// Convert the deprecated "font" tags into "style" tags
|
||||
while (preg_match("/^(.*)<font([^>]*)>(.*)$/i", $strContentAux, $arrayMatch)) {
|
||||
$str = trim($arrayMatch[2]);
|
||||
$strAttribute = null;
|
||||
@@ -804,7 +825,7 @@ class OutputDocument extends BaseOutputDocument
|
||||
|
||||
$str = $strAux . $str;
|
||||
|
||||
//Get attributes
|
||||
// Get attributes
|
||||
$strStyle = null;
|
||||
$array = explode(" ", $str);
|
||||
|
||||
@@ -813,7 +834,7 @@ class OutputDocument extends BaseOutputDocument
|
||||
|
||||
if (isset($arrayAux[1])) {
|
||||
$a = trim($arrayAux[0]);
|
||||
$v = trim(str_replace(array("__SPACE__", "\"", "'"), array(" ", null, null), $arrayAux[1]));
|
||||
$v = trim(str_replace(["__SPACE__", "\"", "'"], [" ", null, null], $arrayAux[1]));
|
||||
|
||||
switch (strtolower($a)) {
|
||||
case "color":
|
||||
@@ -823,7 +844,7 @@ class OutputDocument extends BaseOutputDocument
|
||||
$strStyle = $strStyle . "font-family: $v;";
|
||||
break;
|
||||
case "size":
|
||||
$arrayPt = array(0, 8, 10, 12, 14, 18, 24, 36);
|
||||
$arrayPt = [0, 8, 10, 12, 14, 18, 24, 36];
|
||||
$strStyle = $strStyle . "font-size: " . $arrayPt[intval($v)] . "pt;";
|
||||
break;
|
||||
case "style":
|
||||
@@ -842,39 +863,35 @@ class OutputDocument extends BaseOutputDocument
|
||||
}
|
||||
|
||||
$strContentAux = $arrayMatch[1];
|
||||
$sContent = "<span" . $strAttribute . ">" . $arrayMatch[3] . $sContent;
|
||||
$content = "<span" . $strAttribute . ">" . $arrayMatch[3] . $content;
|
||||
}
|
||||
|
||||
$sContent = $strContentAux . $sContent;
|
||||
// Replenish the content
|
||||
$content = $strContentAux . $content;
|
||||
|
||||
$sContent = str_ireplace("</font>", "</span>", $sContent);
|
||||
// Replace some remaining incorrect/deprecated HTML tags/properties
|
||||
$content = str_ireplace("</font>", "</span>", $content);
|
||||
$content = str_replace($nrtHtml, $nrt, $content);
|
||||
$content = str_replace("margin-left", "text-indent", $content);
|
||||
|
||||
$sContent = str_replace($nrthtml, $nrt, $sContent);
|
||||
// Instance the TCPDF library
|
||||
$pdf = new TCPDF($orientation, PDF_UNIT, $media, true, 'UTF-8', false);
|
||||
|
||||
$sContent = str_replace("margin-left", "text-indent", $sContent);
|
||||
|
||||
// define Save file
|
||||
$sOutput = 2;
|
||||
$sOrientation = ($sLandscape == false) ? PDF_PAGE_ORIENTATION : 'L';
|
||||
$sMedia = (isset($aProperties['media'])) ? $aProperties['media'] : PDF_PAGE_FORMAT;
|
||||
$sLang = (defined('SYS_LANG')) ? SYS_LANG : 'en';
|
||||
|
||||
// create new PDF document
|
||||
$pdf = new TCPDF($sOrientation, PDF_UNIT, $sMedia, true, 'UTF-8', false);
|
||||
|
||||
// set document information
|
||||
// Set document information
|
||||
$pdf->SetCreator(PDF_CREATOR);
|
||||
$pdf->SetAuthor($aFields['USR_USERNAME']);
|
||||
$pdf->SetTitle('Processmaker');
|
||||
$pdf->SetSubject($sFilename);
|
||||
$pdf->SetAuthor($fields['USR_USERNAME']);
|
||||
$pdf->SetTitle('ProcessMaker');
|
||||
$pdf->SetSubject($filename);
|
||||
$pdf->SetCompression(true);
|
||||
|
||||
$margins = $aProperties['margins'];
|
||||
// Define margins
|
||||
$margins = $properties['margins'];
|
||||
$margins["left"] = ($margins["left"] >= 0) ? $margins["left"] : PDF_MARGIN_LEFT;
|
||||
$margins["top"] = ($margins["top"] >= 0) ? $margins["top"] : PDF_MARGIN_TOP;
|
||||
$margins["right"] = ($margins["right"] >= 0) ? $margins["right"] : PDF_MARGIN_RIGHT;
|
||||
$margins["bottom"] = ($margins["bottom"] >= 0) ? $margins["bottom"] : PDF_MARGIN_BOTTOM;
|
||||
|
||||
// Set margins configuration
|
||||
$pdf->setPrintHeader(false);
|
||||
$pdf->setPrintFooter(false);
|
||||
$pdf->SetLeftMargin($margins['left']);
|
||||
@@ -882,76 +899,67 @@ class OutputDocument extends BaseOutputDocument
|
||||
$pdf->SetRightMargin($margins['right']);
|
||||
$pdf->SetAutoPageBreak(true, $margins['bottom']);
|
||||
|
||||
$oServerConf = ServerConf::getSingleton();
|
||||
// Get ServerConf singleton
|
||||
$serverConf = ServerConf::getSingleton();
|
||||
|
||||
// set some language dependent data:
|
||||
// Set language configuration
|
||||
$lg = [];
|
||||
$lg['a_meta_charset'] = 'UTF-8';
|
||||
$lg['a_meta_dir'] = ($oServerConf->isRtl($sLang)) ? 'rtl' : 'ltr';
|
||||
$lg['a_meta_language'] = $sLang;
|
||||
$lg['a_meta_dir'] = ($serverConf->isRtl($lang)) ? 'rtl' : 'ltr';
|
||||
$lg['a_meta_language'] = $lang;
|
||||
$lg['w_page'] = 'page';
|
||||
|
||||
//set some language-dependent strings
|
||||
$pdf->setLanguageArray($lg);
|
||||
|
||||
if (isset($aProperties['pdfSecurity'])) {
|
||||
$tcpdfPermissions = array('print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high');
|
||||
$pdfSecurity = $aProperties['pdfSecurity'];
|
||||
$userPass = G::decrypt($pdfSecurity['openPassword'], $sUID);
|
||||
$ownerPass = ($pdfSecurity['ownerPassword'] != '') ? G::decrypt($pdfSecurity['ownerPassword'], $sUID) : null;
|
||||
// Set security configuration
|
||||
if (isset($properties['pdfSecurity'])) {
|
||||
$tcPdfPermissions = ['print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high'];
|
||||
$pdfSecurity = $properties['pdfSecurity'];
|
||||
$userPass = G::decrypt($pdfSecurity['openPassword'], $outDocUid);
|
||||
$ownerPass = ($pdfSecurity['ownerPassword'] != '') ? G::decrypt($pdfSecurity['ownerPassword'], $outDocUid) : null;
|
||||
$permissions = explode("|", $pdfSecurity['permissions']);
|
||||
$permissions = array_diff($tcpdfPermissions, $permissions);
|
||||
$permissions = array_diff($tcPdfPermissions, $permissions);
|
||||
$pdf->SetProtection($permissions, $userPass, $ownerPass);
|
||||
}
|
||||
// ---------------------------------------------------------
|
||||
// set default font subsetting mode
|
||||
|
||||
// Enable the font sub-setting option
|
||||
$pdf->setFontSubsetting(true);
|
||||
|
||||
// Set font
|
||||
// dejavusans is a UTF-8 Unicode font, if you only need to
|
||||
// print standard ASCII chars, you can use core fonts like
|
||||
// helvetica or times to reduce file size.
|
||||
//$pdf->SetFont('dejavusans', '', 14, '', true);
|
||||
// Detect chinese, japanese, thai
|
||||
if (preg_match('/[\x{30FF}\x{3040}-\x{309F}\x{4E00}-\x{9FFF}\x{0E00}-\x{0E7F}]/u', $sContent, $matches)) {
|
||||
$fileArialunittf = PATH_THIRDPARTY . "tcpdf" . PATH_SEP . "fonts" . PATH_SEP . "arialuni.ttf";
|
||||
|
||||
$pdf->SetFont((!file_exists($fileArialunittf)) ? "kozminproregular" : $pdf->addTTFfont($fileArialunittf, "TrueTypeUnicode", "", 32));
|
||||
// Set unicode font if is required, we need to detect if is chinese, japanese, thai, etc.
|
||||
if (preg_match('/[\x{30FF}\x{3040}-\x{309F}\x{4E00}-\x{9FFF}\x{0E00}-\x{0E7F}]/u', $content, $matches)) {
|
||||
// The additional fonts should be in "shared/fonts" folder
|
||||
$fileArialUniTTF = PATH_DATA . "fonts" . PATH_SEP . "arialuni.ttf";
|
||||
$pdf->SetFont((!file_exists($fileArialUniTTF)) ? "kozminproregular" :
|
||||
$pdf->addTTFfont($fileArialUniTTF, "TrueTypeUnicode", "", 32));
|
||||
}
|
||||
|
||||
// Add a page
|
||||
// This method has several options, check the source code documentation for more information.
|
||||
$pdf->AddPage();
|
||||
|
||||
// set text shadow effect
|
||||
//$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));
|
||||
// Print text using writeHTMLCell()
|
||||
// $pdf->writeHTMLCell($w=0, $h=0, $x='', $y='', $html, $border=0, $ln=1, $fill=0, $reseth=true, $align='', $autopadding=true);
|
||||
if (mb_detect_encoding($sContent) == 'UTF-8') {
|
||||
$sContent = mb_convert_encoding($sContent, 'HTML-ENTITIES', 'UTF-8');
|
||||
// Convert the encoding of the content if is UTF-8
|
||||
if (mb_detect_encoding($content) == 'UTF-8') {
|
||||
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
|
||||
}
|
||||
|
||||
// Fix the HTML using DOMDocument class
|
||||
$doc = new DOMDocument('1.0', 'UTF-8');
|
||||
if ($sContent != '') {
|
||||
$doc->loadHtml($sContent);
|
||||
if ($content != '') {
|
||||
$doc->loadHtml($content);
|
||||
}
|
||||
|
||||
// Add a page and put the HTML fixed
|
||||
$pdf->AddPage();
|
||||
$pdf->writeHTML($doc->saveXML(), false, false, false, false, '');
|
||||
// ---------------------------------------------------------
|
||||
// Close and output PDF document
|
||||
// This method has several options, check the source code documentation for more information.
|
||||
//$pdf->Output('example_00.pdf', 'I');
|
||||
//$pdf->Output('/home/hector/processmaker/example_00.pdf', 'D');
|
||||
switch ($sOutput) {
|
||||
|
||||
// Generate the PDF file
|
||||
switch ($outputType) {
|
||||
case 0:
|
||||
// Vrew browser
|
||||
$pdf->Output($sPath . $sFilename . '.pdf', 'I');
|
||||
// Browser
|
||||
$pdf->Output($path . $filename . '.pdf', 'I');
|
||||
break;
|
||||
case 1:
|
||||
// Donwnload
|
||||
$pdf->Output($sPath . $sFilename . '.pdf', 'D');
|
||||
// Download
|
||||
$pdf->Output($path . $filename . '.pdf', 'D');
|
||||
break;
|
||||
case 2:
|
||||
// Save file
|
||||
$pdf->Output($sPath . $sFilename . '.pdf', 'F');
|
||||
// Save to file
|
||||
$pdf->Output($path . $filename . '.pdf', 'F');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ class Translation extends BaseTranslation
|
||||
}
|
||||
|
||||
$res['cacheFileMafe'] = $cacheFileMafe;
|
||||
$res['languague'] = count($cacheFileMafe);
|
||||
$res['languague'] = (is_array($cacheFileMafe) || $cacheFileMafe instanceof Countable) ? count($cacheFileMafe) : 0;
|
||||
$res['rowsMafeJS'] = count( $translation );
|
||||
return $res;
|
||||
} catch (Exception $e) {
|
||||
|
||||
@@ -97,6 +97,10 @@ class AdditionalTablesMapBuilder
|
||||
|
||||
$tMap->addColumn('ADD_TAB_TAG', 'AddTabTag', 'string', CreoleTypes::VARCHAR, false, 256);
|
||||
|
||||
$tMap->addColumn('ADD_TAB_OFFLINE', 'AddTabOffline', 'int', CreoleTypes::TINYINT, true, null);
|
||||
|
||||
$tMap->addColumn('ADD_TAB_UPDATE_DATE', 'AddTabUpdateDate', 'int', CreoleTypes::TIMESTAMP, true, null);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // AdditionalTablesMapBuilder
|
||||
|
||||
@@ -73,11 +73,11 @@ class JobsPendingMapBuilder
|
||||
|
||||
$tMap->addColumn('ATTEMPTS', 'Attempts', 'int', CreoleTypes::TINYINT, true, 3);
|
||||
|
||||
$tMap->addColumn('RESERVED_AT', 'ReservedAt', 'int', CreoleTypes::TINYINT, false, 10);
|
||||
$tMap->addColumn('RESERVED_AT', 'ReservedAt', 'string', CreoleTypes::BIGINT, false, 10);
|
||||
|
||||
$tMap->addColumn('AVAILABLE_AT', 'AvailableAt', 'int', CreoleTypes::TINYINT, true, 10);
|
||||
$tMap->addColumn('AVAILABLE_AT', 'AvailableAt', 'string', CreoleTypes::BIGINT, true, 10);
|
||||
|
||||
$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TINYINT, true, 10);
|
||||
$tMap->addColumn('CREATED_AT', 'CreatedAt', 'string', CreoleTypes::BIGINT, true, 10);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
|
||||
@@ -123,6 +123,18 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $add_tab_tag = '';
|
||||
|
||||
/**
|
||||
* The value for the add_tab_offline field.
|
||||
* @var int
|
||||
*/
|
||||
protected $add_tab_offline = 0;
|
||||
|
||||
/**
|
||||
* The value for the add_tab_update_date field.
|
||||
* @var int
|
||||
*/
|
||||
protected $add_tab_update_date;
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
@@ -313,6 +325,49 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
return $this->add_tab_tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [add_tab_offline] column value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getAddTabOffline()
|
||||
{
|
||||
|
||||
return $this->add_tab_offline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [optionally formatted] [add_tab_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).
|
||||
* @throws PropelException - if unable to convert the date/time to timestamp.
|
||||
*/
|
||||
public function getAddTabUpdateDate($format = 'Y-m-d H:i:s')
|
||||
{
|
||||
|
||||
if ($this->add_tab_update_date === null || $this->add_tab_update_date === '') {
|
||||
return null;
|
||||
} elseif (!is_int($this->add_tab_update_date)) {
|
||||
// a non-timestamp value was set externally, so we convert it
|
||||
$ts = strtotime($this->add_tab_update_date);
|
||||
if ($ts === -1 || $ts === false) {
|
||||
throw new PropelException("Unable to parse value of [add_tab_update_date] as date/time value: " .
|
||||
var_export($this->add_tab_update_date, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $this->add_tab_update_date;
|
||||
}
|
||||
if ($format === null) {
|
||||
return $ts;
|
||||
} elseif (strpos($format, '%') !== false) {
|
||||
return strftime($format, $ts);
|
||||
} else {
|
||||
return date($format, $ts);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of [add_tab_uid] column.
|
||||
*
|
||||
@@ -665,6 +720,57 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
|
||||
} // setAddTabTag()
|
||||
|
||||
/**
|
||||
* Set the value of [add_tab_offline] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setAddTabOffline($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->add_tab_offline !== $v || $v === 0) {
|
||||
$this->add_tab_offline = $v;
|
||||
$this->modifiedColumns[] = AdditionalTablesPeer::ADD_TAB_OFFLINE;
|
||||
}
|
||||
|
||||
} // setAddTabOffline()
|
||||
|
||||
/**
|
||||
* Set the value of [add_tab_update_date] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setAddTabUpdateDate($v)
|
||||
{
|
||||
|
||||
if ($v !== null && !is_int($v)) {
|
||||
$ts = strtotime($v);
|
||||
//Date/time accepts null values
|
||||
if ($v == '') {
|
||||
$ts = null;
|
||||
}
|
||||
if ($ts === -1 || $ts === false) {
|
||||
throw new PropelException("Unable to parse date/time value for [add_tab_update_date] from input: " .
|
||||
var_export($v, true));
|
||||
}
|
||||
} else {
|
||||
$ts = $v;
|
||||
}
|
||||
if ($this->add_tab_update_date !== $ts) {
|
||||
$this->add_tab_update_date = $ts;
|
||||
$this->modifiedColumns[] = AdditionalTablesPeer::ADD_TAB_UPDATE_DATE;
|
||||
}
|
||||
|
||||
} // setAddTabUpdateDate()
|
||||
|
||||
/**
|
||||
* Hydrates (populates) the object variables with values from the database resultset.
|
||||
*
|
||||
@@ -714,12 +820,16 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
|
||||
$this->add_tab_tag = $rs->getString($startcol + 15);
|
||||
|
||||
$this->add_tab_offline = $rs->getInt($startcol + 16);
|
||||
|
||||
$this->add_tab_update_date = $rs->getTimestamp($startcol + 17, null);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 16; // 16 = AdditionalTablesPeer::NUM_COLUMNS - AdditionalTablesPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 18; // 18 = AdditionalTablesPeer::NUM_COLUMNS - AdditionalTablesPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating AdditionalTables object", $e);
|
||||
@@ -971,6 +1081,12 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
case 15:
|
||||
return $this->getAddTabTag();
|
||||
break;
|
||||
case 16:
|
||||
return $this->getAddTabOffline();
|
||||
break;
|
||||
case 17:
|
||||
return $this->getAddTabUpdateDate();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
@@ -1007,6 +1123,8 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
$keys[13] => $this->getAddTabType(),
|
||||
$keys[14] => $this->getAddTabGrid(),
|
||||
$keys[15] => $this->getAddTabTag(),
|
||||
$keys[16] => $this->getAddTabOffline(),
|
||||
$keys[17] => $this->getAddTabUpdateDate(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1086,6 +1204,12 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
case 15:
|
||||
$this->setAddTabTag($value);
|
||||
break;
|
||||
case 16:
|
||||
$this->setAddTabOffline($value);
|
||||
break;
|
||||
case 17:
|
||||
$this->setAddTabUpdateDate($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
||||
@@ -1173,6 +1297,14 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
$this->setAddTabTag($arr[$keys[15]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[16], $arr)) {
|
||||
$this->setAddTabOffline($arr[$keys[16]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[17], $arr)) {
|
||||
$this->setAddTabUpdateDate($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1248,6 +1380,14 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
$criteria->add(AdditionalTablesPeer::ADD_TAB_TAG, $this->add_tab_tag);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AdditionalTablesPeer::ADD_TAB_OFFLINE)) {
|
||||
$criteria->add(AdditionalTablesPeer::ADD_TAB_OFFLINE, $this->add_tab_offline);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AdditionalTablesPeer::ADD_TAB_UPDATE_DATE)) {
|
||||
$criteria->add(AdditionalTablesPeer::ADD_TAB_UPDATE_DATE, $this->add_tab_update_date);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
@@ -1332,6 +1472,10 @@ abstract class BaseAdditionalTables extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setAddTabTag($this->add_tab_tag);
|
||||
|
||||
$copyObj->setAddTabOffline($this->add_tab_offline);
|
||||
|
||||
$copyObj->setAddTabUpdateDate($this->add_tab_update_date);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class BaseAdditionalTablesPeer
|
||||
const CLASS_DEFAULT = 'classes.model.AdditionalTables';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 16;
|
||||
const NUM_COLUMNS = 18;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
@@ -79,6 +79,12 @@ abstract class BaseAdditionalTablesPeer
|
||||
/** the column name for the ADD_TAB_TAG field */
|
||||
const ADD_TAB_TAG = 'ADDITIONAL_TABLES.ADD_TAB_TAG';
|
||||
|
||||
/** the column name for the ADD_TAB_OFFLINE field */
|
||||
const ADD_TAB_OFFLINE = 'ADDITIONAL_TABLES.ADD_TAB_OFFLINE';
|
||||
|
||||
/** the column name for the ADD_TAB_UPDATE_DATE field */
|
||||
const ADD_TAB_UPDATE_DATE = 'ADDITIONAL_TABLES.ADD_TAB_UPDATE_DATE';
|
||||
|
||||
/** The PHP to DB Name Mapping */
|
||||
private static $phpNameMap = null;
|
||||
|
||||
@@ -90,10 +96,10 @@ abstract class BaseAdditionalTablesPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AddTabUid', 'AddTabName', 'AddTabClassName', 'AddTabDescription', 'AddTabSdwLogInsert', 'AddTabSdwLogUpdate', 'AddTabSdwLogDelete', 'AddTabSdwLogSelect', 'AddTabSdwMaxLength', 'AddTabSdwAutoDelete', 'AddTabPlgUid', 'DbsUid', 'ProUid', 'AddTabType', 'AddTabGrid', 'AddTabTag', ),
|
||||
BasePeer::TYPE_COLNAME => array (AdditionalTablesPeer::ADD_TAB_UID, AdditionalTablesPeer::ADD_TAB_NAME, AdditionalTablesPeer::ADD_TAB_CLASS_NAME, AdditionalTablesPeer::ADD_TAB_DESCRIPTION, AdditionalTablesPeer::ADD_TAB_SDW_LOG_INSERT, AdditionalTablesPeer::ADD_TAB_SDW_LOG_UPDATE, AdditionalTablesPeer::ADD_TAB_SDW_LOG_DELETE, AdditionalTablesPeer::ADD_TAB_SDW_LOG_SELECT, AdditionalTablesPeer::ADD_TAB_SDW_MAX_LENGTH, AdditionalTablesPeer::ADD_TAB_SDW_AUTO_DELETE, AdditionalTablesPeer::ADD_TAB_PLG_UID, AdditionalTablesPeer::DBS_UID, AdditionalTablesPeer::PRO_UID, AdditionalTablesPeer::ADD_TAB_TYPE, AdditionalTablesPeer::ADD_TAB_GRID, AdditionalTablesPeer::ADD_TAB_TAG, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADD_TAB_UID', 'ADD_TAB_NAME', 'ADD_TAB_CLASS_NAME', 'ADD_TAB_DESCRIPTION', 'ADD_TAB_SDW_LOG_INSERT', 'ADD_TAB_SDW_LOG_UPDATE', 'ADD_TAB_SDW_LOG_DELETE', 'ADD_TAB_SDW_LOG_SELECT', 'ADD_TAB_SDW_MAX_LENGTH', 'ADD_TAB_SDW_AUTO_DELETE', 'ADD_TAB_PLG_UID', 'DBS_UID', 'PRO_UID', 'ADD_TAB_TYPE', 'ADD_TAB_GRID', 'ADD_TAB_TAG', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AddTabUid', 'AddTabName', 'AddTabClassName', 'AddTabDescription', 'AddTabSdwLogInsert', 'AddTabSdwLogUpdate', 'AddTabSdwLogDelete', 'AddTabSdwLogSelect', 'AddTabSdwMaxLength', 'AddTabSdwAutoDelete', 'AddTabPlgUid', 'DbsUid', 'ProUid', 'AddTabType', 'AddTabGrid', 'AddTabTag', 'AddTabOffline', 'AddTabUpdateDate', ),
|
||||
BasePeer::TYPE_COLNAME => array (AdditionalTablesPeer::ADD_TAB_UID, AdditionalTablesPeer::ADD_TAB_NAME, AdditionalTablesPeer::ADD_TAB_CLASS_NAME, AdditionalTablesPeer::ADD_TAB_DESCRIPTION, AdditionalTablesPeer::ADD_TAB_SDW_LOG_INSERT, AdditionalTablesPeer::ADD_TAB_SDW_LOG_UPDATE, AdditionalTablesPeer::ADD_TAB_SDW_LOG_DELETE, AdditionalTablesPeer::ADD_TAB_SDW_LOG_SELECT, AdditionalTablesPeer::ADD_TAB_SDW_MAX_LENGTH, AdditionalTablesPeer::ADD_TAB_SDW_AUTO_DELETE, AdditionalTablesPeer::ADD_TAB_PLG_UID, AdditionalTablesPeer::DBS_UID, AdditionalTablesPeer::PRO_UID, AdditionalTablesPeer::ADD_TAB_TYPE, AdditionalTablesPeer::ADD_TAB_GRID, AdditionalTablesPeer::ADD_TAB_TAG, AdditionalTablesPeer::ADD_TAB_OFFLINE, AdditionalTablesPeer::ADD_TAB_UPDATE_DATE, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADD_TAB_UID', 'ADD_TAB_NAME', 'ADD_TAB_CLASS_NAME', 'ADD_TAB_DESCRIPTION', 'ADD_TAB_SDW_LOG_INSERT', 'ADD_TAB_SDW_LOG_UPDATE', 'ADD_TAB_SDW_LOG_DELETE', 'ADD_TAB_SDW_LOG_SELECT', 'ADD_TAB_SDW_MAX_LENGTH', 'ADD_TAB_SDW_AUTO_DELETE', 'ADD_TAB_PLG_UID', 'DBS_UID', 'PRO_UID', 'ADD_TAB_TYPE', 'ADD_TAB_GRID', 'ADD_TAB_TAG', 'ADD_TAB_OFFLINE', 'ADD_TAB_UPDATE_DATE', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -103,10 +109,10 @@ abstract class BaseAdditionalTablesPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AddTabUid' => 0, 'AddTabName' => 1, 'AddTabClassName' => 2, 'AddTabDescription' => 3, 'AddTabSdwLogInsert' => 4, 'AddTabSdwLogUpdate' => 5, 'AddTabSdwLogDelete' => 6, 'AddTabSdwLogSelect' => 7, 'AddTabSdwMaxLength' => 8, 'AddTabSdwAutoDelete' => 9, 'AddTabPlgUid' => 10, 'DbsUid' => 11, 'ProUid' => 12, 'AddTabType' => 13, 'AddTabGrid' => 14, 'AddTabTag' => 15, ),
|
||||
BasePeer::TYPE_COLNAME => array (AdditionalTablesPeer::ADD_TAB_UID => 0, AdditionalTablesPeer::ADD_TAB_NAME => 1, AdditionalTablesPeer::ADD_TAB_CLASS_NAME => 2, AdditionalTablesPeer::ADD_TAB_DESCRIPTION => 3, AdditionalTablesPeer::ADD_TAB_SDW_LOG_INSERT => 4, AdditionalTablesPeer::ADD_TAB_SDW_LOG_UPDATE => 5, AdditionalTablesPeer::ADD_TAB_SDW_LOG_DELETE => 6, AdditionalTablesPeer::ADD_TAB_SDW_LOG_SELECT => 7, AdditionalTablesPeer::ADD_TAB_SDW_MAX_LENGTH => 8, AdditionalTablesPeer::ADD_TAB_SDW_AUTO_DELETE => 9, AdditionalTablesPeer::ADD_TAB_PLG_UID => 10, AdditionalTablesPeer::DBS_UID => 11, AdditionalTablesPeer::PRO_UID => 12, AdditionalTablesPeer::ADD_TAB_TYPE => 13, AdditionalTablesPeer::ADD_TAB_GRID => 14, AdditionalTablesPeer::ADD_TAB_TAG => 15, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADD_TAB_UID' => 0, 'ADD_TAB_NAME' => 1, 'ADD_TAB_CLASS_NAME' => 2, 'ADD_TAB_DESCRIPTION' => 3, 'ADD_TAB_SDW_LOG_INSERT' => 4, 'ADD_TAB_SDW_LOG_UPDATE' => 5, 'ADD_TAB_SDW_LOG_DELETE' => 6, 'ADD_TAB_SDW_LOG_SELECT' => 7, 'ADD_TAB_SDW_MAX_LENGTH' => 8, 'ADD_TAB_SDW_AUTO_DELETE' => 9, 'ADD_TAB_PLG_UID' => 10, 'DBS_UID' => 11, 'PRO_UID' => 12, 'ADD_TAB_TYPE' => 13, 'ADD_TAB_GRID' => 14, 'ADD_TAB_TAG' => 15, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AddTabUid' => 0, 'AddTabName' => 1, 'AddTabClassName' => 2, 'AddTabDescription' => 3, 'AddTabSdwLogInsert' => 4, 'AddTabSdwLogUpdate' => 5, 'AddTabSdwLogDelete' => 6, 'AddTabSdwLogSelect' => 7, 'AddTabSdwMaxLength' => 8, 'AddTabSdwAutoDelete' => 9, 'AddTabPlgUid' => 10, 'DbsUid' => 11, 'ProUid' => 12, 'AddTabType' => 13, 'AddTabGrid' => 14, 'AddTabTag' => 15, 'AddTabOffline' => 16, 'AddTabUpdateDate' => 17, ),
|
||||
BasePeer::TYPE_COLNAME => array (AdditionalTablesPeer::ADD_TAB_UID => 0, AdditionalTablesPeer::ADD_TAB_NAME => 1, AdditionalTablesPeer::ADD_TAB_CLASS_NAME => 2, AdditionalTablesPeer::ADD_TAB_DESCRIPTION => 3, AdditionalTablesPeer::ADD_TAB_SDW_LOG_INSERT => 4, AdditionalTablesPeer::ADD_TAB_SDW_LOG_UPDATE => 5, AdditionalTablesPeer::ADD_TAB_SDW_LOG_DELETE => 6, AdditionalTablesPeer::ADD_TAB_SDW_LOG_SELECT => 7, AdditionalTablesPeer::ADD_TAB_SDW_MAX_LENGTH => 8, AdditionalTablesPeer::ADD_TAB_SDW_AUTO_DELETE => 9, AdditionalTablesPeer::ADD_TAB_PLG_UID => 10, AdditionalTablesPeer::DBS_UID => 11, AdditionalTablesPeer::PRO_UID => 12, AdditionalTablesPeer::ADD_TAB_TYPE => 13, AdditionalTablesPeer::ADD_TAB_GRID => 14, AdditionalTablesPeer::ADD_TAB_TAG => 15, AdditionalTablesPeer::ADD_TAB_OFFLINE => 16, AdditionalTablesPeer::ADD_TAB_UPDATE_DATE => 17, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ADD_TAB_UID' => 0, 'ADD_TAB_NAME' => 1, 'ADD_TAB_CLASS_NAME' => 2, 'ADD_TAB_DESCRIPTION' => 3, 'ADD_TAB_SDW_LOG_INSERT' => 4, 'ADD_TAB_SDW_LOG_UPDATE' => 5, 'ADD_TAB_SDW_LOG_DELETE' => 6, 'ADD_TAB_SDW_LOG_SELECT' => 7, 'ADD_TAB_SDW_MAX_LENGTH' => 8, 'ADD_TAB_SDW_AUTO_DELETE' => 9, 'ADD_TAB_PLG_UID' => 10, 'DBS_UID' => 11, 'PRO_UID' => 12, 'ADD_TAB_TYPE' => 13, 'ADD_TAB_GRID' => 14, 'ADD_TAB_TAG' => 15, 'ADD_TAB_OFFLINE' => 16, 'ADD_TAB_UPDATE_DATE' => 17, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -239,6 +245,10 @@ abstract class BaseAdditionalTablesPeer
|
||||
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::ADD_TAB_TAG);
|
||||
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::ADD_TAB_OFFLINE);
|
||||
|
||||
$criteria->addSelectColumn(AdditionalTablesPeer::ADD_TAB_UPDATE_DATE);
|
||||
|
||||
}
|
||||
|
||||
const COUNT = 'COUNT(ADDITIONAL_TABLES.ADD_TAB_UID)';
|
||||
|
||||
@@ -163,19 +163,19 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
|
||||
* The value for the del_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $del_duration = 0;
|
||||
protected $del_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the del_queue_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $del_queue_duration = 0;
|
||||
protected $del_queue_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the del_delay_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $del_delay_duration = 0;
|
||||
protected $del_delay_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the del_started field.
|
||||
@@ -1281,7 +1281,7 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
|
||||
public function setDelDuration($v)
|
||||
{
|
||||
|
||||
if ($this->del_duration !== $v || $v === 0) {
|
||||
if ($this->del_duration !== $v || $v === 0.0) {
|
||||
$this->del_duration = $v;
|
||||
$this->modifiedColumns[] = AppCacheViewPeer::DEL_DURATION;
|
||||
}
|
||||
@@ -1297,7 +1297,7 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
|
||||
public function setDelQueueDuration($v)
|
||||
{
|
||||
|
||||
if ($this->del_queue_duration !== $v || $v === 0) {
|
||||
if ($this->del_queue_duration !== $v || $v === 0.0) {
|
||||
$this->del_queue_duration = $v;
|
||||
$this->modifiedColumns[] = AppCacheViewPeer::DEL_QUEUE_DURATION;
|
||||
}
|
||||
@@ -1313,7 +1313,7 @@ abstract class BaseAppCacheView extends BaseObject implements Persistent
|
||||
public function setDelDelayDuration($v)
|
||||
{
|
||||
|
||||
if ($this->del_delay_duration !== $v || $v === 0) {
|
||||
if ($this->del_delay_duration !== $v || $v === 0.0) {
|
||||
$this->del_delay_duration = $v;
|
||||
$this->modifiedColumns[] = AppCacheViewPeer::DEL_DELAY_DURATION;
|
||||
}
|
||||
|
||||
@@ -139,19 +139,19 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
||||
* The value for the del_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $del_duration = 0;
|
||||
protected $del_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the del_queue_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $del_queue_duration = 0;
|
||||
protected $del_queue_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the del_delay_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $del_delay_duration = 0;
|
||||
protected $del_delay_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the del_started field.
|
||||
@@ -181,7 +181,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
||||
* The value for the app_overdue_percentage field.
|
||||
* @var double
|
||||
*/
|
||||
protected $app_overdue_percentage = 0;
|
||||
protected $app_overdue_percentage = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the usr_id field.
|
||||
@@ -1079,7 +1079,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
||||
public function setDelDuration($v)
|
||||
{
|
||||
|
||||
if ($this->del_duration !== $v || $v === 0) {
|
||||
if ($this->del_duration !== $v || $v === 0.0) {
|
||||
$this->del_duration = $v;
|
||||
$this->modifiedColumns[] = AppDelegationPeer::DEL_DURATION;
|
||||
}
|
||||
@@ -1095,7 +1095,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
||||
public function setDelQueueDuration($v)
|
||||
{
|
||||
|
||||
if ($this->del_queue_duration !== $v || $v === 0) {
|
||||
if ($this->del_queue_duration !== $v || $v === 0.0) {
|
||||
$this->del_queue_duration = $v;
|
||||
$this->modifiedColumns[] = AppDelegationPeer::DEL_QUEUE_DURATION;
|
||||
}
|
||||
@@ -1111,7 +1111,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
||||
public function setDelDelayDuration($v)
|
||||
{
|
||||
|
||||
if ($this->del_delay_duration !== $v || $v === 0) {
|
||||
if ($this->del_delay_duration !== $v || $v === 0.0) {
|
||||
$this->del_delay_duration = $v;
|
||||
$this->modifiedColumns[] = AppDelegationPeer::DEL_DELAY_DURATION;
|
||||
}
|
||||
@@ -1215,7 +1215,7 @@ abstract class BaseAppDelegation extends BaseObject implements Persistent
|
||||
public function setAppOverduePercentage($v)
|
||||
{
|
||||
|
||||
if ($this->app_overdue_percentage !== $v || $v === 0) {
|
||||
if ($this->app_overdue_percentage !== $v || $v === 0.0) {
|
||||
$this->app_overdue_percentage = $v;
|
||||
$this->modifiedColumns[] = AppDelegationPeer::APP_OVERDUE_PERCENTAGE;
|
||||
}
|
||||
|
||||
@@ -145,13 +145,13 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
||||
* The value for the app_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $app_duration = 0;
|
||||
protected $app_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the app_delay_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $app_delay_duration = 0;
|
||||
protected $app_delay_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the app_drive_folder_uid field.
|
||||
@@ -971,7 +971,7 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
||||
public function setAppDuration($v)
|
||||
{
|
||||
|
||||
if ($this->app_duration !== $v || $v === 0) {
|
||||
if ($this->app_duration !== $v || $v === 0.0) {
|
||||
$this->app_duration = $v;
|
||||
$this->modifiedColumns[] = ApplicationPeer::APP_DURATION;
|
||||
}
|
||||
@@ -987,7 +987,7 @@ abstract class BaseApplication extends BaseObject implements Persistent
|
||||
public function setAppDelayDuration($v)
|
||||
{
|
||||
|
||||
if ($this->app_delay_duration !== $v || $v === 0) {
|
||||
if ($this->app_delay_duration !== $v || $v === 0.0) {
|
||||
$this->app_delay_duration = $v;
|
||||
$this->modifiedColumns[] = ApplicationPeer::APP_DELAY_DURATION;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ abstract class BaseDashboardIndicator extends BaseObject implements Persistent
|
||||
* The value for the das_ind_goal field.
|
||||
* @var double
|
||||
*/
|
||||
protected $das_ind_goal = 0;
|
||||
protected $das_ind_goal = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the das_ind_direction field.
|
||||
@@ -427,7 +427,7 @@ abstract class BaseDashboardIndicator extends BaseObject implements Persistent
|
||||
public function setDasIndGoal($v)
|
||||
{
|
||||
|
||||
if ($this->das_ind_goal !== $v || $v === 0) {
|
||||
if ($this->das_ind_goal !== $v || $v === 0.0) {
|
||||
$this->das_ind_goal = $v;
|
||||
$this->modifiedColumns[] = DashboardIndicatorPeer::DAS_IND_GOAL;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
|
||||
* The value for the evn_tas_estimated_duration field.
|
||||
* @var double
|
||||
*/
|
||||
protected $evn_tas_estimated_duration = 0;
|
||||
protected $evn_tas_estimated_duration = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the evn_time_unit field.
|
||||
@@ -91,7 +91,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
|
||||
* The value for the evn_when field.
|
||||
* @var double
|
||||
*/
|
||||
protected $evn_when = 0;
|
||||
protected $evn_when = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the evn_max_attempts field.
|
||||
@@ -566,7 +566,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
|
||||
public function setEvnTasEstimatedDuration($v)
|
||||
{
|
||||
|
||||
if ($this->evn_tas_estimated_duration !== $v || $v === 0) {
|
||||
if ($this->evn_tas_estimated_duration !== $v || $v === 0.0) {
|
||||
$this->evn_tas_estimated_duration = $v;
|
||||
$this->modifiedColumns[] = EventPeer::EVN_TAS_ESTIMATED_DURATION;
|
||||
}
|
||||
@@ -604,7 +604,7 @@ abstract class BaseEvent extends BaseObject implements Persistent
|
||||
public function setEvnWhen($v)
|
||||
{
|
||||
|
||||
if ($this->evn_when !== $v || $v === 0) {
|
||||
if ($this->evn_when !== $v || $v === 0.0) {
|
||||
$this->evn_when = $v;
|
||||
$this->modifiedColumns[] = EventPeer::EVN_WHEN;
|
||||
}
|
||||
|
||||
@@ -53,19 +53,19 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
|
||||
/**
|
||||
* The value for the reserved_at field.
|
||||
* @var int
|
||||
* @var string
|
||||
*/
|
||||
protected $reserved_at;
|
||||
|
||||
/**
|
||||
* The value for the available_at field.
|
||||
* @var int
|
||||
* @var string
|
||||
*/
|
||||
protected $available_at;
|
||||
|
||||
/**
|
||||
* The value for the created_at field.
|
||||
* @var int
|
||||
* @var string
|
||||
*/
|
||||
protected $created_at;
|
||||
|
||||
@@ -130,7 +130,7 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
/**
|
||||
* Get the [reserved_at] column value.
|
||||
*
|
||||
* @return int
|
||||
* @return string
|
||||
*/
|
||||
public function getReservedAt()
|
||||
{
|
||||
@@ -141,7 +141,7 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
/**
|
||||
* Get the [available_at] column value.
|
||||
*
|
||||
* @return int
|
||||
* @return string
|
||||
*/
|
||||
public function getAvailableAt()
|
||||
{
|
||||
@@ -152,7 +152,7 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
/**
|
||||
* Get the [created_at] column value.
|
||||
*
|
||||
* @return int
|
||||
* @return string
|
||||
*/
|
||||
public function getCreatedAt()
|
||||
{
|
||||
@@ -251,16 +251,16 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
/**
|
||||
* Set the value of [reserved_at] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setReservedAt($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;
|
||||
// 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->reserved_at !== $v) {
|
||||
@@ -273,16 +273,16 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
/**
|
||||
* Set the value of [available_at] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setAvailableAt($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;
|
||||
// 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->available_at !== $v) {
|
||||
@@ -295,16 +295,16 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
/**
|
||||
* Set the value of [created_at] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setCreatedAt($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;
|
||||
// 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->created_at !== $v) {
|
||||
@@ -339,11 +339,11 @@ abstract class BaseJobsPending extends BaseObject implements Persistent
|
||||
|
||||
$this->attempts = $rs->getInt($startcol + 3);
|
||||
|
||||
$this->reserved_at = $rs->getInt($startcol + 4);
|
||||
$this->reserved_at = $rs->getString($startcol + 4);
|
||||
|
||||
$this->available_at = $rs->getInt($startcol + 5);
|
||||
$this->available_at = $rs->getString($startcol + 5);
|
||||
|
||||
$this->created_at = $rs->getInt($startcol + 6);
|
||||
$this->created_at = $rs->getString($startcol + 6);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
|
||||
@@ -49,61 +49,61 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
* The value for the avg_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $avg_time = 0;
|
||||
protected $avg_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the sdv_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $sdv_time = 0;
|
||||
protected $sdv_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_in field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_in = 0;
|
||||
protected $total_cases_in = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_out field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_out = 0;
|
||||
protected $total_cases_out = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the configured_process_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $configured_process_time = 0;
|
||||
protected $configured_process_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the configured_process_cost field.
|
||||
* @var double
|
||||
*/
|
||||
protected $configured_process_cost = 0;
|
||||
protected $configured_process_cost = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_open field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_open = 0;
|
||||
protected $total_cases_open = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_overdue field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_overdue = 0;
|
||||
protected $total_cases_overdue = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_on_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_on_time = 0;
|
||||
protected $total_cases_on_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the pro_cost field.
|
||||
* @var double
|
||||
*/
|
||||
protected $pro_cost = 0;
|
||||
protected $pro_cost = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the pro_unit_cost field.
|
||||
@@ -354,7 +354,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setAvgTime($v)
|
||||
{
|
||||
|
||||
if ($this->avg_time !== $v || $v === 0) {
|
||||
if ($this->avg_time !== $v || $v === 0.0) {
|
||||
$this->avg_time = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::AVG_TIME;
|
||||
}
|
||||
@@ -370,7 +370,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setSdvTime($v)
|
||||
{
|
||||
|
||||
if ($this->sdv_time !== $v || $v === 0) {
|
||||
if ($this->sdv_time !== $v || $v === 0.0) {
|
||||
$this->sdv_time = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::SDV_TIME;
|
||||
}
|
||||
@@ -386,7 +386,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesIn($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_in !== $v || $v === 0) {
|
||||
if ($this->total_cases_in !== $v || $v === 0.0) {
|
||||
$this->total_cases_in = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_IN;
|
||||
}
|
||||
@@ -402,7 +402,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesOut($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_out !== $v || $v === 0) {
|
||||
if ($this->total_cases_out !== $v || $v === 0.0) {
|
||||
$this->total_cases_out = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_OUT;
|
||||
}
|
||||
@@ -418,7 +418,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setConfiguredProcessTime($v)
|
||||
{
|
||||
|
||||
if ($this->configured_process_time !== $v || $v === 0) {
|
||||
if ($this->configured_process_time !== $v || $v === 0.0) {
|
||||
$this->configured_process_time = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::CONFIGURED_PROCESS_TIME;
|
||||
}
|
||||
@@ -434,7 +434,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setConfiguredProcessCost($v)
|
||||
{
|
||||
|
||||
if ($this->configured_process_cost !== $v || $v === 0) {
|
||||
if ($this->configured_process_cost !== $v || $v === 0.0) {
|
||||
$this->configured_process_cost = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::CONFIGURED_PROCESS_COST;
|
||||
}
|
||||
@@ -450,7 +450,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesOpen($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_open !== $v || $v === 0) {
|
||||
if ($this->total_cases_open !== $v || $v === 0.0) {
|
||||
$this->total_cases_open = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_OPEN;
|
||||
}
|
||||
@@ -466,7 +466,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesOverdue($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_overdue !== $v || $v === 0) {
|
||||
if ($this->total_cases_overdue !== $v || $v === 0.0) {
|
||||
$this->total_cases_overdue = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_OVERDUE;
|
||||
}
|
||||
@@ -482,7 +482,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesOnTime($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_on_time !== $v || $v === 0) {
|
||||
if ($this->total_cases_on_time !== $v || $v === 0.0) {
|
||||
$this->total_cases_on_time = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::TOTAL_CASES_ON_TIME;
|
||||
}
|
||||
@@ -498,7 +498,7 @@ abstract class BaseProReporting extends BaseObject implements Persistent
|
||||
public function setProCost($v)
|
||||
{
|
||||
|
||||
if ($this->pro_cost !== $v || $v === 0) {
|
||||
if ($this->pro_cost !== $v || $v === 0.0) {
|
||||
$this->pro_cost = $v;
|
||||
$this->modifiedColumns[] = ProReportingPeer::PRO_COST;
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ abstract class BaseUsers extends BaseObject implements Persistent
|
||||
* The value for the usr_cost_by_hour field.
|
||||
* @var double
|
||||
*/
|
||||
protected $usr_cost_by_hour = 0;
|
||||
protected $usr_cost_by_hour = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the usr_unit_cost field.
|
||||
@@ -1394,7 +1394,7 @@ abstract class BaseUsers extends BaseObject implements Persistent
|
||||
public function setUsrCostByHour($v)
|
||||
{
|
||||
|
||||
if ($this->usr_cost_by_hour !== $v || $v === 0) {
|
||||
if ($this->usr_cost_by_hour !== $v || $v === 0.0) {
|
||||
$this->usr_cost_by_hour = $v;
|
||||
$this->modifiedColumns[] = UsersPeer::USR_COST_BY_HOUR;
|
||||
}
|
||||
|
||||
@@ -61,67 +61,67 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
* The value for the total_queue_time_by_task field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_queue_time_by_task = 0;
|
||||
protected $total_queue_time_by_task = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_time_by_task field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_time_by_task = 0;
|
||||
protected $total_time_by_task = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_in field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_in = 0;
|
||||
protected $total_cases_in = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_out field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_out = 0;
|
||||
protected $total_cases_out = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the user_hour_cost field.
|
||||
* @var double
|
||||
*/
|
||||
protected $user_hour_cost = 0;
|
||||
protected $user_hour_cost = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the avg_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $avg_time = 0;
|
||||
protected $avg_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the sdv_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $sdv_time = 0;
|
||||
protected $sdv_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the configured_task_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $configured_task_time = 0;
|
||||
protected $configured_task_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_overdue field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_overdue = 0;
|
||||
protected $total_cases_overdue = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the total_cases_on_time field.
|
||||
* @var double
|
||||
*/
|
||||
protected $total_cases_on_time = 0;
|
||||
protected $total_cases_on_time = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the pro_cost field.
|
||||
* @var double
|
||||
*/
|
||||
protected $pro_cost = 0;
|
||||
protected $pro_cost = 0.0;
|
||||
|
||||
/**
|
||||
* The value for the pro_unit_cost field.
|
||||
@@ -449,7 +449,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setTotalQueueTimeByTask($v)
|
||||
{
|
||||
|
||||
if ($this->total_queue_time_by_task !== $v || $v === 0) {
|
||||
if ($this->total_queue_time_by_task !== $v || $v === 0.0) {
|
||||
$this->total_queue_time_by_task = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_QUEUE_TIME_BY_TASK;
|
||||
}
|
||||
@@ -465,7 +465,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setTotalTimeByTask($v)
|
||||
{
|
||||
|
||||
if ($this->total_time_by_task !== $v || $v === 0) {
|
||||
if ($this->total_time_by_task !== $v || $v === 0.0) {
|
||||
$this->total_time_by_task = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_TIME_BY_TASK;
|
||||
}
|
||||
@@ -481,7 +481,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesIn($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_in !== $v || $v === 0) {
|
||||
if ($this->total_cases_in !== $v || $v === 0.0) {
|
||||
$this->total_cases_in = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_IN;
|
||||
}
|
||||
@@ -497,7 +497,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesOut($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_out !== $v || $v === 0) {
|
||||
if ($this->total_cases_out !== $v || $v === 0.0) {
|
||||
$this->total_cases_out = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_OUT;
|
||||
}
|
||||
@@ -513,7 +513,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setUserHourCost($v)
|
||||
{
|
||||
|
||||
if ($this->user_hour_cost !== $v || $v === 0) {
|
||||
if ($this->user_hour_cost !== $v || $v === 0.0) {
|
||||
$this->user_hour_cost = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::USER_HOUR_COST;
|
||||
}
|
||||
@@ -529,7 +529,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setAvgTime($v)
|
||||
{
|
||||
|
||||
if ($this->avg_time !== $v || $v === 0) {
|
||||
if ($this->avg_time !== $v || $v === 0.0) {
|
||||
$this->avg_time = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::AVG_TIME;
|
||||
}
|
||||
@@ -545,7 +545,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setSdvTime($v)
|
||||
{
|
||||
|
||||
if ($this->sdv_time !== $v || $v === 0) {
|
||||
if ($this->sdv_time !== $v || $v === 0.0) {
|
||||
$this->sdv_time = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::SDV_TIME;
|
||||
}
|
||||
@@ -561,7 +561,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setConfiguredTaskTime($v)
|
||||
{
|
||||
|
||||
if ($this->configured_task_time !== $v || $v === 0) {
|
||||
if ($this->configured_task_time !== $v || $v === 0.0) {
|
||||
$this->configured_task_time = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::CONFIGURED_TASK_TIME;
|
||||
}
|
||||
@@ -577,7 +577,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesOverdue($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_overdue !== $v || $v === 0) {
|
||||
if ($this->total_cases_overdue !== $v || $v === 0.0) {
|
||||
$this->total_cases_overdue = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_OVERDUE;
|
||||
}
|
||||
@@ -593,7 +593,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setTotalCasesOnTime($v)
|
||||
{
|
||||
|
||||
if ($this->total_cases_on_time !== $v || $v === 0) {
|
||||
if ($this->total_cases_on_time !== $v || $v === 0.0) {
|
||||
$this->total_cases_on_time = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::TOTAL_CASES_ON_TIME;
|
||||
}
|
||||
@@ -609,7 +609,7 @@ abstract class BaseUsrReporting extends BaseObject implements Persistent
|
||||
public function setProCost($v)
|
||||
{
|
||||
|
||||
if ($this->pro_cost !== $v || $v === 0) {
|
||||
if ($this->pro_cost !== $v || $v === 0.0) {
|
||||
$this->pro_cost = $v;
|
||||
$this->modifiedColumns[] = UsrReportingPeer::PRO_COST;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user