Merged in feature/HOR-4474 (pull request #6514)
HOR-4474 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com> Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
19
workflow/engine/classes/model/AppDataChangeLog.php
Normal file
19
workflow/engine/classes/model/AppDataChangeLog.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
require_once 'classes/model/om/BaseAppDataChangeLog.php';
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'APP_DATA_CHANGE_LOG' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
class AppDataChangeLog extends BaseAppDataChangeLog {
|
||||
|
||||
} // AppDataChangeLog
|
||||
23
workflow/engine/classes/model/AppDataChangeLogPeer.php
Normal file
23
workflow/engine/classes/model/AppDataChangeLogPeer.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// include base peer class
|
||||
require_once 'classes/model/om/BaseAppDataChangeLogPeer.php';
|
||||
|
||||
// include object class
|
||||
include_once 'classes/model/AppDataChangeLog.php';
|
||||
|
||||
|
||||
/**
|
||||
* Skeleton subclass for performing query and update operations on the 'APP_DATA_CHANGE_LOG' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* You should add additional methods to this class to meet the
|
||||
* application requirements. This class will only be generated as
|
||||
* long as it does not already exist in the output directory.
|
||||
*
|
||||
* @package classes.model
|
||||
*/
|
||||
class AppDataChangeLogPeer extends BaseAppDataChangeLogPeer {
|
||||
|
||||
} // AppDataChangeLogPeer
|
||||
@@ -136,40 +136,44 @@ class Dynaform extends BaseDynaform
|
||||
|
||||
} // set()
|
||||
|
||||
|
||||
/**
|
||||
* Creates the Dynaform
|
||||
* Creates the Dynaform.
|
||||
*
|
||||
* @param array $aData Fields with :
|
||||
* $aData['DYN_UID'] the dynaform id
|
||||
* $aData['USR_UID'] the userid
|
||||
* @param string $pmTableUid
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
|
||||
public function create ($aData, $pmTableUid='')
|
||||
public function create($aData, $pmTableUid = '')
|
||||
{
|
||||
if (! isset( $aData['PRO_UID'] )) {
|
||||
throw (new PropelException( 'The dynaform cannot be created. The PRO_UID is empty.' ));
|
||||
if (!isset($aData['PRO_UID'])) {
|
||||
throw (new PropelException('The dynaform cannot be created. The PRO_UID is empty.'));
|
||||
}
|
||||
$con = Propel::getConnection( DynaformPeer::DATABASE_NAME );
|
||||
$con = Propel::getConnection(DynaformPeer::DATABASE_NAME);
|
||||
try {
|
||||
if (isset( $aData['DYN_UID'] ) && $aData['DYN_UID'] == '') {
|
||||
unset( $aData['DYN_UID'] );
|
||||
if (isset($aData['DYN_UID']) && $aData['DYN_UID'] == '') {
|
||||
unset($aData['DYN_UID']);
|
||||
}
|
||||
if (! isset( $aData['DYN_UID'] )) {
|
||||
if (!isset($aData['DYN_UID'])) {
|
||||
$dynUid = (G::generateUniqueID());
|
||||
} else {
|
||||
$dynUid = $aData['DYN_UID'];
|
||||
}
|
||||
$this->setDynUid( $dynUid );
|
||||
if (!empty($aData['DYN_ID'])) {
|
||||
$this->setDynId($aData['DYN_ID']);
|
||||
}
|
||||
|
||||
$this->setDynUid($dynUid);
|
||||
$dynTitle = isset($aData['DYN_TITLE']) ? $aData['DYN_TITLE'] : 'Default Dynaform Title';
|
||||
$this->setDynTitle($dynTitle);
|
||||
$dynDescription = isset($aData['DYN_DESCRIPTION']) ? $aData['DYN_DESCRIPTION'] : 'Default Dynaform Description';
|
||||
$this->setDynDescription($dynDescription);
|
||||
$this->setProUid( $aData['PRO_UID'] );
|
||||
$this->setDynType( isset( $aData['DYN_TYPE'] ) ? $aData['DYN_TYPE'] : 'xmlform' );
|
||||
$this->setDynFilename( $aData['PRO_UID'] . PATH_SEP . $dynUid );
|
||||
$this->setDynUpdateDate( date("Y-m-d H:i:s"));
|
||||
$this->setProUid($aData['PRO_UID']);
|
||||
$this->setDynType(isset($aData['DYN_TYPE']) ? $aData['DYN_TYPE'] : 'xmlform' );
|
||||
$this->setDynFilename($aData['PRO_UID'] . PATH_SEP . $dynUid);
|
||||
$this->setDynUpdateDate(date("Y-m-d H:i:s"));
|
||||
|
||||
if (isset($aData["DYN_CONTENT"])) {
|
||||
$this->setDynContent($aData["DYN_CONTENT"]);
|
||||
@@ -202,40 +206,39 @@ class Dynaform extends BaseDynaform
|
||||
if (!isset($aData['DYN_VERSION'])) {
|
||||
$aData['DYN_VERSION'] = 0;
|
||||
}
|
||||
$this->setDynVersion( $aData['DYN_VERSION'] );
|
||||
$this->setDynVersion($aData['DYN_VERSION']);
|
||||
if ($this->validate()) {
|
||||
$con->begin();
|
||||
$this->setDynTitleContent( $dynTitle );
|
||||
$this->setDynDescriptionContent( $dynDescription );
|
||||
$this->setDynTitleContent($dynTitle);
|
||||
$this->setDynDescriptionContent($dynDescription);
|
||||
$res = $this->save();
|
||||
$con->commit();
|
||||
|
||||
|
||||
//Add Audit Log
|
||||
$mode = isset($aData['MODE'])? $aData['MODE'] : 'Determined by Fields';
|
||||
$mode = isset($aData['MODE']) ? $aData['MODE'] : 'Determined by Fields';
|
||||
$description = "";
|
||||
if($pmTableUid!=''){
|
||||
$pmTable = AdditionalTablesPeer::retrieveByPK( $pmTableUid );
|
||||
$addTabName = $pmTable->getAddTabName();
|
||||
$description = "Create from a PM Table: ".$addTabName.", ";
|
||||
if ($pmTableUid != '') {
|
||||
$pmTable = AdditionalTablesPeer::retrieveByPK($pmTableUid);
|
||||
$addTabName = $pmTable->getAddTabName();
|
||||
$description = "Create from a PM Table: " . $addTabName . ", ";
|
||||
}
|
||||
G::auditLog("CreateDynaform", $description."Dynaform Title: ".$aData['DYN_TITLE'].", Type: ".$aData['DYN_TYPE'].", Description: ".$aData['DYN_DESCRIPTION'].", Mode: ".$mode);
|
||||
|
||||
G::auditLog("CreateDynaform", $description . "Dynaform Title: " . $aData['DYN_TITLE'] . ", Type: " . $aData['DYN_TYPE'] . ", Description: " . $aData['DYN_DESCRIPTION'] . ", Mode: " . $mode);
|
||||
|
||||
$sXml = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
||||
$sXml .= '<dynaForm type="' . $this->getDynType() . '" name="' . $this->getProUid() . '/' . $this->getDynUid() . '" width="500" enabletemplate="0" mode="" nextstepsave="prompt">' . "\n";
|
||||
$sXml .= '</dynaForm>';
|
||||
G::verifyPath( PATH_DYNAFORM . $this->getProUid(), true );
|
||||
$oFile = fopen( PATH_DYNAFORM . $this->getProUid() . '/' . $this->getDynUid() . '.xml', 'w' );
|
||||
fwrite( $oFile, $sXml );
|
||||
fclose( $oFile );
|
||||
G::verifyPath(PATH_DYNAFORM . $this->getProUid(), true);
|
||||
$oFile = fopen(PATH_DYNAFORM . $this->getProUid() . '/' . $this->getDynUid() . '.xml', 'w');
|
||||
fwrite($oFile, $sXml);
|
||||
fclose($oFile);
|
||||
return $this->getDynUid();
|
||||
} else {
|
||||
$msg = '';
|
||||
foreach ($this->getValidationFailures() as $objValidationFailure) {
|
||||
$msg .= $objValidationFailure->getMessage() . "<br/>";
|
||||
}
|
||||
throw (new PropelException( 'The row cannot be created!', new PropelException( $msg ) ));
|
||||
throw (new PropelException('The row cannot be created!', new PropelException($msg)));
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
$con->rollback();
|
||||
throw ($e);
|
||||
|
||||
102
workflow/engine/classes/model/map/AppDataChangeLogMapBuilder.php
Normal file
102
workflow/engine/classes/model/map/AppDataChangeLogMapBuilder.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/map/MapBuilder.php';
|
||||
include_once 'creole/CreoleTypes.php';
|
||||
|
||||
|
||||
/**
|
||||
* This class adds structure of 'APP_DATA_CHANGE_LOG' table to 'workflow' DatabaseMap object.
|
||||
*
|
||||
*
|
||||
*
|
||||
* These statically-built map classes are used by Propel to do runtime db structure discovery.
|
||||
* For example, the createSelectSql() method checks the type of a given column used in an
|
||||
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
|
||||
* (i.e. if it's a text column type).
|
||||
*
|
||||
* @package workflow.classes.model.map
|
||||
*/
|
||||
class AppDataChangeLogMapBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* The (dot-path) name of this class
|
||||
*/
|
||||
const CLASS_NAME = 'classes.model.map.AppDataChangeLogMapBuilder';
|
||||
|
||||
/**
|
||||
* The database map.
|
||||
*/
|
||||
private $dbMap;
|
||||
|
||||
/**
|
||||
* Tells us if this DatabaseMapBuilder is built so that we
|
||||
* don't have to re-build it every time.
|
||||
*
|
||||
* @return boolean true if this DatabaseMapBuilder is built, false otherwise.
|
||||
*/
|
||||
public function isBuilt()
|
||||
{
|
||||
return ($this->dbMap !== null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the databasemap this map builder built.
|
||||
*
|
||||
* @return the databasemap
|
||||
*/
|
||||
public function getDatabaseMap()
|
||||
{
|
||||
return $this->dbMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* The doBuild() method builds the DatabaseMap
|
||||
*
|
||||
* @return void
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function doBuild()
|
||||
{
|
||||
$this->dbMap = Propel::getDatabaseMap('workflow');
|
||||
|
||||
$tMap = $this->dbMap->addTable('APP_DATA_CHANGE_LOG');
|
||||
$tMap->setPhpName('AppDataChangeLog');
|
||||
|
||||
$tMap->setUseIdGenerator(true);
|
||||
|
||||
$tMap->addPrimaryKey('CHANGE_LOG_ID', 'ChangeLogId', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('DATE', 'Date', 'int', CreoleTypes::TIMESTAMP, false, null);
|
||||
|
||||
$tMap->addColumn('APP_NUMBER', 'AppNumber', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('DEL_INDEX', 'DelIndex', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('PRO_ID', 'ProId', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('TAS_ID', 'TasId', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('USR_ID', 'UsrId', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('OBJECT_TYPE', 'ObjectType', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('OBJECT_ID', 'ObjectId', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('OBJECT_UID', 'ObjectUid', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||
|
||||
$tMap->addColumn('EXECUTED_AT', 'ExecutedAt', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('SOURCE_ID', 'SourceId', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
$tMap->addColumn('DATA', 'Data', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
|
||||
$tMap->addColumn('SKIN', 'Skin', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||
|
||||
$tMap->addColumn('LANGUAGE', 'Language', 'string', CreoleTypes::VARCHAR, false, 32);
|
||||
|
||||
$tMap->addColumn('ROW_MIGRATION', 'RowMigration', 'int', CreoleTypes::INTEGER, false, null);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // AppDataChangeLogMapBuilder
|
||||
@@ -63,10 +63,12 @@ class DynaformMapBuilder
|
||||
$tMap = $this->dbMap->addTable('DYNAFORM');
|
||||
$tMap->setPhpName('Dynaform');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
$tMap->setUseIdGenerator(true);
|
||||
|
||||
$tMap->addPrimaryKey('DYN_UID', 'DynUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('DYN_ID', 'DynId', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('DYN_TITLE', 'DynTitle', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
|
||||
$tMap->addColumn('DYN_DESCRIPTION', 'DynDescription', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
||||
|
||||
@@ -63,10 +63,12 @@ class InputDocumentMapBuilder
|
||||
$tMap = $this->dbMap->addTable('INPUT_DOCUMENT');
|
||||
$tMap->setPhpName('InputDocument');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
$tMap->setUseIdGenerator(true);
|
||||
|
||||
$tMap->addPrimaryKey('INP_DOC_UID', 'InpDocUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('INP_DOC_ID', 'InpDocId', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('PRO_UID', 'ProUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('INP_DOC_TITLE', 'InpDocTitle', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
|
||||
@@ -63,10 +63,12 @@ class OutputDocumentMapBuilder
|
||||
$tMap = $this->dbMap->addTable('OUTPUT_DOCUMENT');
|
||||
$tMap->setPhpName('OutputDocument');
|
||||
|
||||
$tMap->setUseIdGenerator(false);
|
||||
$tMap->setUseIdGenerator(true);
|
||||
|
||||
$tMap->addPrimaryKey('OUT_DOC_UID', 'OutDocUid', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('OUT_DOC_ID', 'OutDocId', 'int', CreoleTypes::INTEGER, true, null);
|
||||
|
||||
$tMap->addColumn('OUT_DOC_TITLE', 'OutDocTitle', 'string', CreoleTypes::LONGVARCHAR, true, null);
|
||||
|
||||
$tMap->addColumn('OUT_DOC_DESCRIPTION', 'OutDocDescription', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
||||
|
||||
1410
workflow/engine/classes/model/om/BaseAppDataChangeLog.php
Normal file
1410
workflow/engine/classes/model/om/BaseAppDataChangeLog.php
Normal file
File diff suppressed because it is too large
Load Diff
644
workflow/engine/classes/model/om/BaseAppDataChangeLogPeer.php
Normal file
644
workflow/engine/classes/model/om/BaseAppDataChangeLogPeer.php
Normal file
@@ -0,0 +1,644 @@
|
||||
<?php
|
||||
|
||||
require_once 'propel/util/BasePeer.php';
|
||||
// The object class -- needed for instanceof checks in this class.
|
||||
// actual class may be a subclass -- as returned by AppDataChangeLogPeer::getOMClass()
|
||||
include_once 'classes/model/AppDataChangeLog.php';
|
||||
|
||||
/**
|
||||
* Base static class for performing query and update operations on the 'APP_DATA_CHANGE_LOG' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package workflow.classes.model.om
|
||||
*/
|
||||
abstract class BaseAppDataChangeLogPeer
|
||||
{
|
||||
|
||||
/** the default database name for this class */
|
||||
const DATABASE_NAME = 'workflow';
|
||||
|
||||
/** the table name for this class */
|
||||
const TABLE_NAME = 'APP_DATA_CHANGE_LOG';
|
||||
|
||||
/** A class that can be returned by this peer. */
|
||||
const CLASS_DEFAULT = 'classes.model.AppDataChangeLog';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 16;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
|
||||
|
||||
/** the column name for the CHANGE_LOG_ID field */
|
||||
const CHANGE_LOG_ID = 'APP_DATA_CHANGE_LOG.CHANGE_LOG_ID';
|
||||
|
||||
/** the column name for the DATE field */
|
||||
const DATE = 'APP_DATA_CHANGE_LOG.DATE';
|
||||
|
||||
/** the column name for the APP_NUMBER field */
|
||||
const APP_NUMBER = 'APP_DATA_CHANGE_LOG.APP_NUMBER';
|
||||
|
||||
/** the column name for the DEL_INDEX field */
|
||||
const DEL_INDEX = 'APP_DATA_CHANGE_LOG.DEL_INDEX';
|
||||
|
||||
/** the column name for the PRO_ID field */
|
||||
const PRO_ID = 'APP_DATA_CHANGE_LOG.PRO_ID';
|
||||
|
||||
/** the column name for the TAS_ID field */
|
||||
const TAS_ID = 'APP_DATA_CHANGE_LOG.TAS_ID';
|
||||
|
||||
/** the column name for the USR_ID field */
|
||||
const USR_ID = 'APP_DATA_CHANGE_LOG.USR_ID';
|
||||
|
||||
/** the column name for the OBJECT_TYPE field */
|
||||
const OBJECT_TYPE = 'APP_DATA_CHANGE_LOG.OBJECT_TYPE';
|
||||
|
||||
/** the column name for the OBJECT_ID field */
|
||||
const OBJECT_ID = 'APP_DATA_CHANGE_LOG.OBJECT_ID';
|
||||
|
||||
/** the column name for the OBJECT_UID field */
|
||||
const OBJECT_UID = 'APP_DATA_CHANGE_LOG.OBJECT_UID';
|
||||
|
||||
/** the column name for the EXECUTED_AT field */
|
||||
const EXECUTED_AT = 'APP_DATA_CHANGE_LOG.EXECUTED_AT';
|
||||
|
||||
/** the column name for the SOURCE_ID field */
|
||||
const SOURCE_ID = 'APP_DATA_CHANGE_LOG.SOURCE_ID';
|
||||
|
||||
/** the column name for the DATA field */
|
||||
const DATA = 'APP_DATA_CHANGE_LOG.DATA';
|
||||
|
||||
/** the column name for the SKIN field */
|
||||
const SKIN = 'APP_DATA_CHANGE_LOG.SKIN';
|
||||
|
||||
/** the column name for the LANGUAGE field */
|
||||
const LANGUAGE = 'APP_DATA_CHANGE_LOG.LANGUAGE';
|
||||
|
||||
/** the column name for the ROW_MIGRATION field */
|
||||
const ROW_MIGRATION = 'APP_DATA_CHANGE_LOG.ROW_MIGRATION';
|
||||
|
||||
/** The PHP to DB Name Mapping */
|
||||
private static $phpNameMap = null;
|
||||
|
||||
|
||||
/**
|
||||
* holds an array of fieldnames
|
||||
*
|
||||
* first dimension keys are the type constants
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('ChangeLogId', 'Date', 'AppNumber', 'DelIndex', 'ProId', 'TasId', 'UsrId', 'ObjectType', 'ObjectId', 'ObjectUid', 'ExecutedAt', 'SourceId', 'Data', 'Skin', 'Language', 'RowMigration', ),
|
||||
BasePeer::TYPE_COLNAME => array (AppDataChangeLogPeer::CHANGE_LOG_ID, AppDataChangeLogPeer::DATE, AppDataChangeLogPeer::APP_NUMBER, AppDataChangeLogPeer::DEL_INDEX, AppDataChangeLogPeer::PRO_ID, AppDataChangeLogPeer::TAS_ID, AppDataChangeLogPeer::USR_ID, AppDataChangeLogPeer::OBJECT_TYPE, AppDataChangeLogPeer::OBJECT_ID, AppDataChangeLogPeer::OBJECT_UID, AppDataChangeLogPeer::EXECUTED_AT, AppDataChangeLogPeer::SOURCE_ID, AppDataChangeLogPeer::DATA, AppDataChangeLogPeer::SKIN, AppDataChangeLogPeer::LANGUAGE, AppDataChangeLogPeer::ROW_MIGRATION, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('CHANGE_LOG_ID', 'DATE', 'APP_NUMBER', 'DEL_INDEX', 'PRO_ID', 'TAS_ID', 'USR_ID', 'OBJECT_TYPE', 'OBJECT_ID', 'OBJECT_UID', 'EXECUTED_AT', 'SOURCE_ID', 'DATA', 'SKIN', 'LANGUAGE', 'ROW_MIGRATION', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
|
||||
);
|
||||
|
||||
/**
|
||||
* holds an array of keys for quick access to the fieldnames array
|
||||
*
|
||||
* first dimension keys are the type constants
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('ChangeLogId' => 0, 'Date' => 1, 'AppNumber' => 2, 'DelIndex' => 3, 'ProId' => 4, 'TasId' => 5, 'UsrId' => 6, 'ObjectType' => 7, 'ObjectId' => 8, 'ObjectUid' => 9, 'ExecutedAt' => 10, 'SourceId' => 11, 'Data' => 12, 'Skin' => 13, 'Language' => 14, 'RowMigration' => 15, ),
|
||||
BasePeer::TYPE_COLNAME => array (AppDataChangeLogPeer::CHANGE_LOG_ID => 0, AppDataChangeLogPeer::DATE => 1, AppDataChangeLogPeer::APP_NUMBER => 2, AppDataChangeLogPeer::DEL_INDEX => 3, AppDataChangeLogPeer::PRO_ID => 4, AppDataChangeLogPeer::TAS_ID => 5, AppDataChangeLogPeer::USR_ID => 6, AppDataChangeLogPeer::OBJECT_TYPE => 7, AppDataChangeLogPeer::OBJECT_ID => 8, AppDataChangeLogPeer::OBJECT_UID => 9, AppDataChangeLogPeer::EXECUTED_AT => 10, AppDataChangeLogPeer::SOURCE_ID => 11, AppDataChangeLogPeer::DATA => 12, AppDataChangeLogPeer::SKIN => 13, AppDataChangeLogPeer::LANGUAGE => 14, AppDataChangeLogPeer::ROW_MIGRATION => 15, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('CHANGE_LOG_ID' => 0, 'DATE' => 1, 'APP_NUMBER' => 2, 'DEL_INDEX' => 3, 'PRO_ID' => 4, 'TAS_ID' => 5, 'USR_ID' => 6, 'OBJECT_TYPE' => 7, 'OBJECT_ID' => 8, 'OBJECT_UID' => 9, 'EXECUTED_AT' => 10, 'SOURCE_ID' => 11, 'DATA' => 12, 'SKIN' => 13, 'LANGUAGE' => 14, 'ROW_MIGRATION' => 15, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
|
||||
);
|
||||
|
||||
/**
|
||||
* @return MapBuilder the map builder for this peer
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function getMapBuilder()
|
||||
{
|
||||
include_once 'classes/model/map/AppDataChangeLogMapBuilder.php';
|
||||
return BasePeer::getMapBuilder('classes.model.map.AppDataChangeLogMapBuilder');
|
||||
}
|
||||
/**
|
||||
* Gets a map (hash) of PHP names to DB column names.
|
||||
*
|
||||
* @return array The PHP to DB name map for this peer
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
* @deprecated Use the getFieldNames() and translateFieldName() methods instead of this.
|
||||
*/
|
||||
public static function getPhpNameMap()
|
||||
{
|
||||
if (self::$phpNameMap === null) {
|
||||
$map = AppDataChangeLogPeer::getTableMap();
|
||||
$columns = $map->getColumns();
|
||||
$nameMap = array();
|
||||
foreach ($columns as $column) {
|
||||
$nameMap[$column->getPhpName()] = $column->getColumnName();
|
||||
}
|
||||
self::$phpNameMap = $nameMap;
|
||||
}
|
||||
return self::$phpNameMap;
|
||||
}
|
||||
/**
|
||||
* Translates a fieldname to another type
|
||||
*
|
||||
* @param string $name field name
|
||||
* @param string $fromType One of the class type constants TYPE_PHPNAME,
|
||||
* TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
|
||||
* @param string $toType One of the class type constants
|
||||
* @return string translated name of the field.
|
||||
*/
|
||||
static public function translateFieldName($name, $fromType, $toType)
|
||||
{
|
||||
$toNames = self::getFieldNames($toType);
|
||||
$key = isset(self::$fieldKeys[$fromType][$name]) ? self::$fieldKeys[$fromType][$name] : null;
|
||||
if ($key === null) {
|
||||
throw new PropelException("'$name' could not be found in the field names of type '$fromType'. These are: " . print_r(self::$fieldKeys[$fromType], true));
|
||||
}
|
||||
return $toNames[$key];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of of field names.
|
||||
*
|
||||
* @param string $type The type of fieldnames to return:
|
||||
* One of the class type constants TYPE_PHPNAME,
|
||||
* TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM
|
||||
* @return array A list of field names
|
||||
*/
|
||||
|
||||
static public function getFieldNames($type = BasePeer::TYPE_PHPNAME)
|
||||
{
|
||||
if (!array_key_exists($type, self::$fieldNames)) {
|
||||
throw new PropelException('Method getFieldNames() expects the parameter $type to be one of the class constants TYPE_PHPNAME, TYPE_COLNAME, TYPE_FIELDNAME, TYPE_NUM. ' . $type . ' was given.');
|
||||
}
|
||||
return self::$fieldNames[$type];
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience method which changes table.column to alias.column.
|
||||
*
|
||||
* Using this method you can maintain SQL abstraction while using column aliases.
|
||||
* <code>
|
||||
* $c->addAlias("alias1", TablePeer::TABLE_NAME);
|
||||
* $c->addJoin(TablePeer::alias("alias1", TablePeer::PRIMARY_KEY_COLUMN), TablePeer::PRIMARY_KEY_COLUMN);
|
||||
* </code>
|
||||
* @param string $alias The alias for the current table.
|
||||
* @param string $column The column name for current table. (i.e. AppDataChangeLogPeer::COLUMN_NAME).
|
||||
* @return string
|
||||
*/
|
||||
public static function alias($alias, $column)
|
||||
{
|
||||
return str_replace(AppDataChangeLogPeer::TABLE_NAME.'.', $alias.'.', $column);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add all the columns needed to create a new object.
|
||||
*
|
||||
* Note: any columns that were marked with lazyLoad="true" in the
|
||||
* XML schema will not be added to the select list and only loaded
|
||||
* on demand.
|
||||
*
|
||||
* @param criteria object containing the columns to add.
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function addSelectColumns(Criteria $criteria)
|
||||
{
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::CHANGE_LOG_ID);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::DATE);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::APP_NUMBER);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::DEL_INDEX);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::PRO_ID);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::TAS_ID);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::USR_ID);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::OBJECT_TYPE);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::OBJECT_ID);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::OBJECT_UID);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::EXECUTED_AT);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::SOURCE_ID);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::DATA);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::SKIN);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::LANGUAGE);
|
||||
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::ROW_MIGRATION);
|
||||
|
||||
}
|
||||
|
||||
const COUNT = 'COUNT(APP_DATA_CHANGE_LOG.CHANGE_LOG_ID)';
|
||||
const COUNT_DISTINCT = 'COUNT(DISTINCT APP_DATA_CHANGE_LOG.CHANGE_LOG_ID)';
|
||||
|
||||
/**
|
||||
* Returns the number of rows matching criteria.
|
||||
*
|
||||
* @param Criteria $criteria
|
||||
* @param boolean $distinct Whether to select only distinct columns (You can also set DISTINCT modifier in Criteria).
|
||||
* @param Connection $con
|
||||
* @return int Number of matching rows.
|
||||
*/
|
||||
public static function doCount(Criteria $criteria, $distinct = false, $con = null)
|
||||
{
|
||||
// we're going to modify criteria, so copy it first
|
||||
$criteria = clone $criteria;
|
||||
|
||||
// clear out anything that might confuse the ORDER BY clause
|
||||
$criteria->clearSelectColumns()->clearOrderByColumns();
|
||||
if ($distinct || in_array(Criteria::DISTINCT, $criteria->getSelectModifiers())) {
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::COUNT_DISTINCT);
|
||||
} else {
|
||||
$criteria->addSelectColumn(AppDataChangeLogPeer::COUNT);
|
||||
}
|
||||
|
||||
// just in case we're grouping: add those columns to the select statement
|
||||
foreach ($criteria->getGroupByColumns() as $column) {
|
||||
$criteria->addSelectColumn($column);
|
||||
}
|
||||
|
||||
$rs = AppDataChangeLogPeer::doSelectRS($criteria, $con);
|
||||
if ($rs->next()) {
|
||||
return $rs->getInt(1);
|
||||
} else {
|
||||
// no rows returned; we infer that means 0 matches.
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Method to select one object from the DB.
|
||||
*
|
||||
* @param Criteria $criteria object used to create the SELECT statement.
|
||||
* @param Connection $con
|
||||
* @return AppDataChangeLog
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function doSelectOne(Criteria $criteria, $con = null)
|
||||
{
|
||||
$critcopy = clone $criteria;
|
||||
$critcopy->setLimit(1);
|
||||
$objects = AppDataChangeLogPeer::doSelect($critcopy, $con);
|
||||
if ($objects) {
|
||||
return $objects[0];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
* Method to do selects.
|
||||
*
|
||||
* @param Criteria $criteria The Criteria object used to build the SELECT statement.
|
||||
* @param Connection $con
|
||||
* @return array Array of selected Objects
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function doSelect(Criteria $criteria, $con = null)
|
||||
{
|
||||
return AppDataChangeLogPeer::populateObjects(AppDataChangeLogPeer::doSelectRS($criteria, $con));
|
||||
}
|
||||
/**
|
||||
* Prepares the Criteria object and uses the parent doSelect()
|
||||
* method to get a ResultSet.
|
||||
*
|
||||
* Use this method directly if you want to just get the resultset
|
||||
* (instead of an array of objects).
|
||||
*
|
||||
* @param Criteria $criteria The Criteria object used to build the SELECT statement.
|
||||
* @param Connection $con the connection to use
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
* @return ResultSet The resultset object with numerically-indexed fields.
|
||||
* @see BasePeer::doSelect()
|
||||
*/
|
||||
public static function doSelectRS(Criteria $criteria, $con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||
}
|
||||
|
||||
if (!$criteria->getSelectColumns()) {
|
||||
$criteria = clone $criteria;
|
||||
AppDataChangeLogPeer::addSelectColumns($criteria);
|
||||
}
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
// BasePeer returns a Creole ResultSet, set to return
|
||||
// rows indexed numerically.
|
||||
return BasePeer::doSelect($criteria, $con);
|
||||
}
|
||||
/**
|
||||
* The returned array will contain objects of the default type or
|
||||
* objects that inherit from the default.
|
||||
*
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function populateObjects(ResultSet $rs)
|
||||
{
|
||||
$results = array();
|
||||
|
||||
// set the class once to avoid overhead in the loop
|
||||
$cls = AppDataChangeLogPeer::getOMClass();
|
||||
$cls = Propel::import($cls);
|
||||
// populate the object(s)
|
||||
while ($rs->next()) {
|
||||
|
||||
$obj = new $cls();
|
||||
$obj->hydrate($rs);
|
||||
$results[] = $obj;
|
||||
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
/**
|
||||
* Returns the TableMap related to this peer.
|
||||
* This method is not needed for general use but a specific application could have a need.
|
||||
* @return TableMap
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function getTableMap()
|
||||
{
|
||||
return Propel::getDatabaseMap(self::DATABASE_NAME)->getTable(self::TABLE_NAME);
|
||||
}
|
||||
|
||||
/**
|
||||
* The class that the Peer will make instances of.
|
||||
*
|
||||
* This uses a dot-path notation which is tranalted into a path
|
||||
* relative to a location on the PHP include_path.
|
||||
* (e.g. path.to.MyClass -> 'path/to/MyClass.php')
|
||||
*
|
||||
* @return string path.to.ClassName
|
||||
*/
|
||||
public static function getOMClass()
|
||||
{
|
||||
return AppDataChangeLogPeer::CLASS_DEFAULT;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method perform an INSERT on the database, given a AppDataChangeLog or Criteria object.
|
||||
*
|
||||
* @param mixed $values Criteria or AppDataChangeLog object containing data that is used to create the INSERT statement.
|
||||
* @param Connection $con the connection to use
|
||||
* @return mixed The new primary key.
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function doInsert($values, $con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||
}
|
||||
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
} else {
|
||||
$criteria = $values->buildCriteria(); // build Criteria from AppDataChangeLog object
|
||||
}
|
||||
|
||||
//$criteria->remove(AppDataChangeLogPeer::CHANGE_LOG_ID); // remove pkey col since this table uses auto-increment
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
try {
|
||||
// use transaction because $criteria could contain info
|
||||
// for more than one table (I guess, conceivably)
|
||||
$con->begin();
|
||||
$pk = BasePeer::doInsert($criteria, $con);
|
||||
$con->commit();
|
||||
} catch (PropelException $e) {
|
||||
$con->rollback();
|
||||
throw $e;
|
||||
}
|
||||
|
||||
return $pk;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method perform an UPDATE on the database, given a AppDataChangeLog or Criteria object.
|
||||
*
|
||||
* @param mixed $values Criteria or AppDataChangeLog object containing data create the UPDATE statement.
|
||||
* @param Connection $con The connection to use (specify Connection exert more control over transactions).
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function doUpdate($values, $con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||
}
|
||||
|
||||
$selectCriteria = new Criteria(self::DATABASE_NAME);
|
||||
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
|
||||
$comparison = $criteria->getComparison(AppDataChangeLogPeer::CHANGE_LOG_ID);
|
||||
$selectCriteria->add(AppDataChangeLogPeer::CHANGE_LOG_ID, $criteria->remove(AppDataChangeLogPeer::CHANGE_LOG_ID), $comparison);
|
||||
|
||||
} else {
|
||||
$criteria = $values->buildCriteria(); // gets full criteria
|
||||
$selectCriteria = $values->buildPkeyCriteria(); // gets criteria w/ primary key(s)
|
||||
}
|
||||
|
||||
// set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
return BasePeer::doUpdate($selectCriteria, $criteria, $con);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to DELETE all rows from the APP_DATA_CHANGE_LOG table.
|
||||
*
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
*/
|
||||
public static function doDeleteAll($con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||
}
|
||||
$affectedRows = 0; // initialize var to track total num of affected rows
|
||||
try {
|
||||
// use transaction because $criteria could contain info
|
||||
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||
$con->begin();
|
||||
$affectedRows += BasePeer::doDeleteAll(AppDataChangeLogPeer::TABLE_NAME, $con);
|
||||
$con->commit();
|
||||
return $affectedRows;
|
||||
} catch (PropelException $e) {
|
||||
$con->rollback();
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method perform a DELETE on the database, given a AppDataChangeLog or Criteria object OR a primary key value.
|
||||
*
|
||||
* @param mixed $values Criteria or AppDataChangeLog object or primary key or array of primary keys
|
||||
* which is used to create the DELETE statement
|
||||
* @param Connection $con the connection to use
|
||||
* @return int The number of affected rows (if supported by underlying database driver).
|
||||
* This includes CASCADE-related rows
|
||||
* if supported by native driver or if emulated using Propel.
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function doDelete($values, $con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(AppDataChangeLogPeer::DATABASE_NAME);
|
||||
}
|
||||
|
||||
if ($values instanceof Criteria) {
|
||||
$criteria = clone $values; // rename for clarity
|
||||
} elseif ($values instanceof AppDataChangeLog) {
|
||||
|
||||
$criteria = $values->buildPkeyCriteria();
|
||||
} else {
|
||||
// it must be the primary key
|
||||
$criteria = new Criteria(self::DATABASE_NAME);
|
||||
$criteria->add(AppDataChangeLogPeer::CHANGE_LOG_ID, (array) $values, Criteria::IN);
|
||||
}
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
$affectedRows = 0; // initialize var to track total num of affected rows
|
||||
|
||||
try {
|
||||
// use transaction because $criteria could contain info
|
||||
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||
$con->begin();
|
||||
|
||||
$affectedRows += BasePeer::doDelete($criteria, $con);
|
||||
$con->commit();
|
||||
return $affectedRows;
|
||||
} catch (PropelException $e) {
|
||||
$con->rollback();
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates all modified columns of given AppDataChangeLog object.
|
||||
* If parameter $columns is either a single column name or an array of column names
|
||||
* than only those columns are validated.
|
||||
*
|
||||
* NOTICE: This does not apply to primary or foreign keys for now.
|
||||
*
|
||||
* @param AppDataChangeLog $obj The object to validate.
|
||||
* @param mixed $cols Column name or array of column names.
|
||||
*
|
||||
* @return mixed TRUE if all columns are valid or the error message of the first invalid column.
|
||||
*/
|
||||
public static function doValidate(AppDataChangeLog $obj, $cols = null)
|
||||
{
|
||||
$columns = array();
|
||||
|
||||
if ($cols) {
|
||||
$dbMap = Propel::getDatabaseMap(AppDataChangeLogPeer::DATABASE_NAME);
|
||||
$tableMap = $dbMap->getTable(AppDataChangeLogPeer::TABLE_NAME);
|
||||
|
||||
if (! is_array($cols)) {
|
||||
$cols = array($cols);
|
||||
}
|
||||
|
||||
foreach ($cols as $colName) {
|
||||
if ($tableMap->containsColumn($colName)) {
|
||||
$get = 'get' . $tableMap->getColumn($colName)->getPhpName();
|
||||
$columns[$colName] = $obj->$get();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
return BasePeer::doValidate(AppDataChangeLogPeer::DATABASE_NAME, AppDataChangeLogPeer::TABLE_NAME, $columns);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a single object by pkey.
|
||||
*
|
||||
* @param mixed $pk the primary key.
|
||||
* @param Connection $con the connection to use
|
||||
* @return AppDataChangeLog
|
||||
*/
|
||||
public static function retrieveByPK($pk, $con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||
}
|
||||
|
||||
$criteria = new Criteria(AppDataChangeLogPeer::DATABASE_NAME);
|
||||
|
||||
$criteria->add(AppDataChangeLogPeer::CHANGE_LOG_ID, $pk);
|
||||
|
||||
|
||||
$v = AppDataChangeLogPeer::doSelect($criteria, $con);
|
||||
|
||||
return !empty($v) > 0 ? $v[0] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve multiple objects by pkey.
|
||||
*
|
||||
* @param array $pks List of primary keys
|
||||
* @param Connection $con the connection to use
|
||||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function retrieveByPKs($pks, $con = null)
|
||||
{
|
||||
if ($con === null) {
|
||||
$con = Propel::getConnection(self::DATABASE_NAME);
|
||||
}
|
||||
|
||||
$objs = null;
|
||||
if (empty($pks)) {
|
||||
$objs = array();
|
||||
} else {
|
||||
$criteria = new Criteria();
|
||||
$criteria->add(AppDataChangeLogPeer::CHANGE_LOG_ID, $pks, Criteria::IN);
|
||||
$objs = AppDataChangeLogPeer::doSelect($criteria, $con);
|
||||
}
|
||||
return $objs;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// static code to register the map builder for this Peer with the main Propel class
|
||||
if (Propel::isInit()) {
|
||||
// the MapBuilder classes register themselves with Propel during initialization
|
||||
// so we need to load them here.
|
||||
try {
|
||||
BaseAppDataChangeLogPeer::getMapBuilder();
|
||||
} catch (Exception $e) {
|
||||
Propel::log('Could not initialize Peer: ' . $e->getMessage(), Propel::LOG_ERR);
|
||||
}
|
||||
} else {
|
||||
// even if Propel is not yet initialized, the map builder class can be registered
|
||||
// now and then it will be loaded when Propel initializes.
|
||||
require_once 'classes/model/map/AppDataChangeLogMapBuilder.php';
|
||||
Propel::registerMapBuilder('classes.model.map.AppDataChangeLogMapBuilder');
|
||||
}
|
||||
|
||||
@@ -33,6 +33,12 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $dyn_uid = '';
|
||||
|
||||
/**
|
||||
* The value for the dyn_id field.
|
||||
* @var int
|
||||
*/
|
||||
protected $dyn_id;
|
||||
|
||||
/**
|
||||
* The value for the dyn_title field.
|
||||
* @var string
|
||||
@@ -112,6 +118,17 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
return $this->dyn_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [dyn_id] column value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getDynId()
|
||||
{
|
||||
|
||||
return $this->dyn_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [dyn_title] column value.
|
||||
*
|
||||
@@ -254,6 +271,28 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
|
||||
} // setDynUid()
|
||||
|
||||
/**
|
||||
* Set the value of [dyn_id] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setDynId($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->dyn_id !== $v) {
|
||||
$this->dyn_id = $v;
|
||||
$this->modifiedColumns[] = DynaformPeer::DYN_ID;
|
||||
}
|
||||
|
||||
} // setDynId()
|
||||
|
||||
/**
|
||||
* Set the value of [dyn_title] column.
|
||||
*
|
||||
@@ -478,30 +517,32 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
|
||||
$this->dyn_uid = $rs->getString($startcol + 0);
|
||||
|
||||
$this->dyn_title = $rs->getString($startcol + 1);
|
||||
$this->dyn_id = $rs->getInt($startcol + 1);
|
||||
|
||||
$this->dyn_description = $rs->getString($startcol + 2);
|
||||
$this->dyn_title = $rs->getString($startcol + 2);
|
||||
|
||||
$this->pro_uid = $rs->getString($startcol + 3);
|
||||
$this->dyn_description = $rs->getString($startcol + 3);
|
||||
|
||||
$this->dyn_type = $rs->getString($startcol + 4);
|
||||
$this->pro_uid = $rs->getString($startcol + 4);
|
||||
|
||||
$this->dyn_filename = $rs->getString($startcol + 5);
|
||||
$this->dyn_type = $rs->getString($startcol + 5);
|
||||
|
||||
$this->dyn_content = $rs->getString($startcol + 6);
|
||||
$this->dyn_filename = $rs->getString($startcol + 6);
|
||||
|
||||
$this->dyn_label = $rs->getString($startcol + 7);
|
||||
$this->dyn_content = $rs->getString($startcol + 7);
|
||||
|
||||
$this->dyn_version = $rs->getInt($startcol + 8);
|
||||
$this->dyn_label = $rs->getString($startcol + 8);
|
||||
|
||||
$this->dyn_update_date = $rs->getTimestamp($startcol + 9, null);
|
||||
$this->dyn_version = $rs->getInt($startcol + 9);
|
||||
|
||||
$this->dyn_update_date = $rs->getTimestamp($startcol + 10, null);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 10; // 10 = DynaformPeer::NUM_COLUMNS - DynaformPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 11; // 11 = DynaformPeer::NUM_COLUMNS - DynaformPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating Dynaform object", $e);
|
||||
@@ -709,30 +750,33 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
return $this->getDynUid();
|
||||
break;
|
||||
case 1:
|
||||
return $this->getDynTitle();
|
||||
return $this->getDynId();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getDynDescription();
|
||||
return $this->getDynTitle();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getProUid();
|
||||
return $this->getDynDescription();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getDynType();
|
||||
return $this->getProUid();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getDynFilename();
|
||||
return $this->getDynType();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getDynContent();
|
||||
return $this->getDynFilename();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getDynLabel();
|
||||
return $this->getDynContent();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getDynVersion();
|
||||
return $this->getDynLabel();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getDynVersion();
|
||||
break;
|
||||
case 10:
|
||||
return $this->getDynUpdateDate();
|
||||
break;
|
||||
default:
|
||||
@@ -756,15 +800,16 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
$keys = DynaformPeer::getFieldNames($keyType);
|
||||
$result = array(
|
||||
$keys[0] => $this->getDynUid(),
|
||||
$keys[1] => $this->getDynTitle(),
|
||||
$keys[2] => $this->getDynDescription(),
|
||||
$keys[3] => $this->getProUid(),
|
||||
$keys[4] => $this->getDynType(),
|
||||
$keys[5] => $this->getDynFilename(),
|
||||
$keys[6] => $this->getDynContent(),
|
||||
$keys[7] => $this->getDynLabel(),
|
||||
$keys[8] => $this->getDynVersion(),
|
||||
$keys[9] => $this->getDynUpdateDate(),
|
||||
$keys[1] => $this->getDynId(),
|
||||
$keys[2] => $this->getDynTitle(),
|
||||
$keys[3] => $this->getDynDescription(),
|
||||
$keys[4] => $this->getProUid(),
|
||||
$keys[5] => $this->getDynType(),
|
||||
$keys[6] => $this->getDynFilename(),
|
||||
$keys[7] => $this->getDynContent(),
|
||||
$keys[8] => $this->getDynLabel(),
|
||||
$keys[9] => $this->getDynVersion(),
|
||||
$keys[10] => $this->getDynUpdateDate(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -800,30 +845,33 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
$this->setDynUid($value);
|
||||
break;
|
||||
case 1:
|
||||
$this->setDynTitle($value);
|
||||
$this->setDynId($value);
|
||||
break;
|
||||
case 2:
|
||||
$this->setDynDescription($value);
|
||||
$this->setDynTitle($value);
|
||||
break;
|
||||
case 3:
|
||||
$this->setProUid($value);
|
||||
$this->setDynDescription($value);
|
||||
break;
|
||||
case 4:
|
||||
$this->setDynType($value);
|
||||
$this->setProUid($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setDynFilename($value);
|
||||
$this->setDynType($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setDynContent($value);
|
||||
$this->setDynFilename($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setDynLabel($value);
|
||||
$this->setDynContent($value);
|
||||
break;
|
||||
case 8:
|
||||
$this->setDynVersion($value);
|
||||
$this->setDynLabel($value);
|
||||
break;
|
||||
case 9:
|
||||
$this->setDynVersion($value);
|
||||
break;
|
||||
case 10:
|
||||
$this->setDynUpdateDate($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -854,39 +902,43 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setDynTitle($arr[$keys[1]]);
|
||||
$this->setDynId($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setDynDescription($arr[$keys[2]]);
|
||||
$this->setDynTitle($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setProUid($arr[$keys[3]]);
|
||||
$this->setDynDescription($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setDynType($arr[$keys[4]]);
|
||||
$this->setProUid($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setDynFilename($arr[$keys[5]]);
|
||||
$this->setDynType($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setDynContent($arr[$keys[6]]);
|
||||
$this->setDynFilename($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setDynLabel($arr[$keys[7]]);
|
||||
$this->setDynContent($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setDynVersion($arr[$keys[8]]);
|
||||
$this->setDynLabel($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setDynUpdateDate($arr[$keys[9]]);
|
||||
$this->setDynVersion($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setDynUpdateDate($arr[$keys[10]]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -904,6 +956,10 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
$criteria->add(DynaformPeer::DYN_UID, $this->dyn_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(DynaformPeer::DYN_ID)) {
|
||||
$criteria->add(DynaformPeer::DYN_ID, $this->dyn_id);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(DynaformPeer::DYN_TITLE)) {
|
||||
$criteria->add(DynaformPeer::DYN_TITLE, $this->dyn_title);
|
||||
}
|
||||
@@ -994,6 +1050,8 @@ abstract class BaseDynaform extends BaseObject implements Persistent
|
||||
public function copyInto($copyObj, $deepCopy = false)
|
||||
{
|
||||
|
||||
$copyObj->setDynId($this->dyn_id);
|
||||
|
||||
$copyObj->setDynTitle($this->dyn_title);
|
||||
|
||||
$copyObj->setDynDescription($this->dyn_description);
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class BaseDynaformPeer
|
||||
const CLASS_DEFAULT = 'classes.model.Dynaform';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 10;
|
||||
const NUM_COLUMNS = 11;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
@@ -34,6 +34,9 @@ abstract class BaseDynaformPeer
|
||||
/** the column name for the DYN_UID field */
|
||||
const DYN_UID = 'DYNAFORM.DYN_UID';
|
||||
|
||||
/** the column name for the DYN_ID field */
|
||||
const DYN_ID = 'DYNAFORM.DYN_ID';
|
||||
|
||||
/** the column name for the DYN_TITLE field */
|
||||
const DYN_TITLE = 'DYNAFORM.DYN_TITLE';
|
||||
|
||||
@@ -72,10 +75,10 @@ abstract class BaseDynaformPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('DynUid', 'DynTitle', 'DynDescription', 'ProUid', 'DynType', 'DynFilename', 'DynContent', 'DynLabel', 'DynVersion', 'DynUpdateDate', ),
|
||||
BasePeer::TYPE_COLNAME => array (DynaformPeer::DYN_UID, DynaformPeer::DYN_TITLE, DynaformPeer::DYN_DESCRIPTION, DynaformPeer::PRO_UID, DynaformPeer::DYN_TYPE, DynaformPeer::DYN_FILENAME, DynaformPeer::DYN_CONTENT, DynaformPeer::DYN_LABEL, DynaformPeer::DYN_VERSION, DynaformPeer::DYN_UPDATE_DATE, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('DYN_UID', 'DYN_TITLE', 'DYN_DESCRIPTION', 'PRO_UID', 'DYN_TYPE', 'DYN_FILENAME', 'DYN_CONTENT', 'DYN_LABEL', 'DYN_VERSION', 'DYN_UPDATE_DATE', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
|
||||
BasePeer::TYPE_PHPNAME => array ('DynUid', 'DynId', 'DynTitle', 'DynDescription', 'ProUid', 'DynType', 'DynFilename', 'DynContent', 'DynLabel', 'DynVersion', 'DynUpdateDate', ),
|
||||
BasePeer::TYPE_COLNAME => array (DynaformPeer::DYN_UID, DynaformPeer::DYN_ID, DynaformPeer::DYN_TITLE, DynaformPeer::DYN_DESCRIPTION, DynaformPeer::PRO_UID, DynaformPeer::DYN_TYPE, DynaformPeer::DYN_FILENAME, DynaformPeer::DYN_CONTENT, DynaformPeer::DYN_LABEL, DynaformPeer::DYN_VERSION, DynaformPeer::DYN_UPDATE_DATE, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('DYN_UID', 'DYN_ID', 'DYN_TITLE', 'DYN_DESCRIPTION', 'PRO_UID', 'DYN_TYPE', 'DYN_FILENAME', 'DYN_CONTENT', 'DYN_LABEL', 'DYN_VERSION', 'DYN_UPDATE_DATE', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -85,10 +88,10 @@ abstract class BaseDynaformPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('DynUid' => 0, 'DynTitle' => 1, 'DynDescription' => 2, 'ProUid' => 3, 'DynType' => 4, 'DynFilename' => 5, 'DynContent' => 6, 'DynLabel' => 7, 'DynVersion' => 8, 'DynUpdateDate' => 9, ),
|
||||
BasePeer::TYPE_COLNAME => array (DynaformPeer::DYN_UID => 0, DynaformPeer::DYN_TITLE => 1, DynaformPeer::DYN_DESCRIPTION => 2, DynaformPeer::PRO_UID => 3, DynaformPeer::DYN_TYPE => 4, DynaformPeer::DYN_FILENAME => 5, DynaformPeer::DYN_CONTENT => 6, DynaformPeer::DYN_LABEL => 7, DynaformPeer::DYN_VERSION => 8, DynaformPeer::DYN_UPDATE_DATE => 9, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('DYN_UID' => 0, 'DYN_TITLE' => 1, 'DYN_DESCRIPTION' => 2, 'PRO_UID' => 3, 'DYN_TYPE' => 4, 'DYN_FILENAME' => 5, 'DYN_CONTENT' => 6, 'DYN_LABEL' => 7, 'DYN_VERSION' => 8, 'DYN_UPDATE_DATE' => 9, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
|
||||
BasePeer::TYPE_PHPNAME => array ('DynUid' => 0, 'DynId' => 1, 'DynTitle' => 2, 'DynDescription' => 3, 'ProUid' => 4, 'DynType' => 5, 'DynFilename' => 6, 'DynContent' => 7, 'DynLabel' => 8, 'DynVersion' => 9, 'DynUpdateDate' => 10, ),
|
||||
BasePeer::TYPE_COLNAME => array (DynaformPeer::DYN_UID => 0, DynaformPeer::DYN_ID => 1, DynaformPeer::DYN_TITLE => 2, DynaformPeer::DYN_DESCRIPTION => 3, DynaformPeer::PRO_UID => 4, DynaformPeer::DYN_TYPE => 5, DynaformPeer::DYN_FILENAME => 6, DynaformPeer::DYN_CONTENT => 7, DynaformPeer::DYN_LABEL => 8, DynaformPeer::DYN_VERSION => 9, DynaformPeer::DYN_UPDATE_DATE => 10, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('DYN_UID' => 0, 'DYN_ID' => 1, 'DYN_TITLE' => 2, 'DYN_DESCRIPTION' => 3, 'PRO_UID' => 4, 'DYN_TYPE' => 5, 'DYN_FILENAME' => 6, 'DYN_CONTENT' => 7, 'DYN_LABEL' => 8, 'DYN_VERSION' => 9, 'DYN_UPDATE_DATE' => 10, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -191,6 +194,8 @@ abstract class BaseDynaformPeer
|
||||
|
||||
$criteria->addSelectColumn(DynaformPeer::DYN_UID);
|
||||
|
||||
$criteria->addSelectColumn(DynaformPeer::DYN_ID);
|
||||
|
||||
$criteria->addSelectColumn(DynaformPeer::DYN_TITLE);
|
||||
|
||||
$criteria->addSelectColumn(DynaformPeer::DYN_DESCRIPTION);
|
||||
|
||||
@@ -33,6 +33,12 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $inp_doc_uid = '';
|
||||
|
||||
/**
|
||||
* The value for the inp_doc_id field.
|
||||
* @var int
|
||||
*/
|
||||
protected $inp_doc_id;
|
||||
|
||||
/**
|
||||
* The value for the pro_uid field.
|
||||
* @var string
|
||||
@@ -130,6 +136,17 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
return $this->inp_doc_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [inp_doc_id] column value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getInpDocId()
|
||||
{
|
||||
|
||||
return $this->inp_doc_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [pro_uid] column value.
|
||||
*
|
||||
@@ -284,6 +301,28 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
|
||||
} // setInpDocUid()
|
||||
|
||||
/**
|
||||
* Set the value of [inp_doc_id] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setInpDocId($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->inp_doc_id !== $v) {
|
||||
$this->inp_doc_id = $v;
|
||||
$this->modifiedColumns[] = InputDocumentPeer::INP_DOC_ID;
|
||||
}
|
||||
|
||||
} // setInpDocId()
|
||||
|
||||
/**
|
||||
* Set the value of [pro_uid] column.
|
||||
*
|
||||
@@ -567,36 +606,38 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
|
||||
$this->inp_doc_uid = $rs->getString($startcol + 0);
|
||||
|
||||
$this->pro_uid = $rs->getString($startcol + 1);
|
||||
$this->inp_doc_id = $rs->getInt($startcol + 1);
|
||||
|
||||
$this->inp_doc_title = $rs->getString($startcol + 2);
|
||||
$this->pro_uid = $rs->getString($startcol + 2);
|
||||
|
||||
$this->inp_doc_description = $rs->getString($startcol + 3);
|
||||
$this->inp_doc_title = $rs->getString($startcol + 3);
|
||||
|
||||
$this->inp_doc_form_needed = $rs->getString($startcol + 4);
|
||||
$this->inp_doc_description = $rs->getString($startcol + 4);
|
||||
|
||||
$this->inp_doc_original = $rs->getString($startcol + 5);
|
||||
$this->inp_doc_form_needed = $rs->getString($startcol + 5);
|
||||
|
||||
$this->inp_doc_published = $rs->getString($startcol + 6);
|
||||
$this->inp_doc_original = $rs->getString($startcol + 6);
|
||||
|
||||
$this->inp_doc_versioning = $rs->getInt($startcol + 7);
|
||||
$this->inp_doc_published = $rs->getString($startcol + 7);
|
||||
|
||||
$this->inp_doc_destination_path = $rs->getString($startcol + 8);
|
||||
$this->inp_doc_versioning = $rs->getInt($startcol + 8);
|
||||
|
||||
$this->inp_doc_tags = $rs->getString($startcol + 9);
|
||||
$this->inp_doc_destination_path = $rs->getString($startcol + 9);
|
||||
|
||||
$this->inp_doc_type_file = $rs->getString($startcol + 10);
|
||||
$this->inp_doc_tags = $rs->getString($startcol + 10);
|
||||
|
||||
$this->inp_doc_max_filesize = $rs->getInt($startcol + 11);
|
||||
$this->inp_doc_type_file = $rs->getString($startcol + 11);
|
||||
|
||||
$this->inp_doc_max_filesize_unit = $rs->getString($startcol + 12);
|
||||
$this->inp_doc_max_filesize = $rs->getInt($startcol + 12);
|
||||
|
||||
$this->inp_doc_max_filesize_unit = $rs->getString($startcol + 13);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 13; // 13 = InputDocumentPeer::NUM_COLUMNS - InputDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 14; // 14 = InputDocumentPeer::NUM_COLUMNS - InputDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating InputDocument object", $e);
|
||||
@@ -804,39 +845,42 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
return $this->getInpDocUid();
|
||||
break;
|
||||
case 1:
|
||||
return $this->getProUid();
|
||||
return $this->getInpDocId();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getInpDocTitle();
|
||||
return $this->getProUid();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getInpDocDescription();
|
||||
return $this->getInpDocTitle();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getInpDocFormNeeded();
|
||||
return $this->getInpDocDescription();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getInpDocOriginal();
|
||||
return $this->getInpDocFormNeeded();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getInpDocPublished();
|
||||
return $this->getInpDocOriginal();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getInpDocVersioning();
|
||||
return $this->getInpDocPublished();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getInpDocDestinationPath();
|
||||
return $this->getInpDocVersioning();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getInpDocTags();
|
||||
return $this->getInpDocDestinationPath();
|
||||
break;
|
||||
case 10:
|
||||
return $this->getInpDocTypeFile();
|
||||
return $this->getInpDocTags();
|
||||
break;
|
||||
case 11:
|
||||
return $this->getInpDocMaxFilesize();
|
||||
return $this->getInpDocTypeFile();
|
||||
break;
|
||||
case 12:
|
||||
return $this->getInpDocMaxFilesize();
|
||||
break;
|
||||
case 13:
|
||||
return $this->getInpDocMaxFilesizeUnit();
|
||||
break;
|
||||
default:
|
||||
@@ -860,18 +904,19 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
$keys = InputDocumentPeer::getFieldNames($keyType);
|
||||
$result = array(
|
||||
$keys[0] => $this->getInpDocUid(),
|
||||
$keys[1] => $this->getProUid(),
|
||||
$keys[2] => $this->getInpDocTitle(),
|
||||
$keys[3] => $this->getInpDocDescription(),
|
||||
$keys[4] => $this->getInpDocFormNeeded(),
|
||||
$keys[5] => $this->getInpDocOriginal(),
|
||||
$keys[6] => $this->getInpDocPublished(),
|
||||
$keys[7] => $this->getInpDocVersioning(),
|
||||
$keys[8] => $this->getInpDocDestinationPath(),
|
||||
$keys[9] => $this->getInpDocTags(),
|
||||
$keys[10] => $this->getInpDocTypeFile(),
|
||||
$keys[11] => $this->getInpDocMaxFilesize(),
|
||||
$keys[12] => $this->getInpDocMaxFilesizeUnit(),
|
||||
$keys[1] => $this->getInpDocId(),
|
||||
$keys[2] => $this->getProUid(),
|
||||
$keys[3] => $this->getInpDocTitle(),
|
||||
$keys[4] => $this->getInpDocDescription(),
|
||||
$keys[5] => $this->getInpDocFormNeeded(),
|
||||
$keys[6] => $this->getInpDocOriginal(),
|
||||
$keys[7] => $this->getInpDocPublished(),
|
||||
$keys[8] => $this->getInpDocVersioning(),
|
||||
$keys[9] => $this->getInpDocDestinationPath(),
|
||||
$keys[10] => $this->getInpDocTags(),
|
||||
$keys[11] => $this->getInpDocTypeFile(),
|
||||
$keys[12] => $this->getInpDocMaxFilesize(),
|
||||
$keys[13] => $this->getInpDocMaxFilesizeUnit(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -907,39 +952,42 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
$this->setInpDocUid($value);
|
||||
break;
|
||||
case 1:
|
||||
$this->setProUid($value);
|
||||
$this->setInpDocId($value);
|
||||
break;
|
||||
case 2:
|
||||
$this->setInpDocTitle($value);
|
||||
$this->setProUid($value);
|
||||
break;
|
||||
case 3:
|
||||
$this->setInpDocDescription($value);
|
||||
$this->setInpDocTitle($value);
|
||||
break;
|
||||
case 4:
|
||||
$this->setInpDocFormNeeded($value);
|
||||
$this->setInpDocDescription($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setInpDocOriginal($value);
|
||||
$this->setInpDocFormNeeded($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setInpDocPublished($value);
|
||||
$this->setInpDocOriginal($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setInpDocVersioning($value);
|
||||
$this->setInpDocPublished($value);
|
||||
break;
|
||||
case 8:
|
||||
$this->setInpDocDestinationPath($value);
|
||||
$this->setInpDocVersioning($value);
|
||||
break;
|
||||
case 9:
|
||||
$this->setInpDocTags($value);
|
||||
$this->setInpDocDestinationPath($value);
|
||||
break;
|
||||
case 10:
|
||||
$this->setInpDocTypeFile($value);
|
||||
$this->setInpDocTags($value);
|
||||
break;
|
||||
case 11:
|
||||
$this->setInpDocMaxFilesize($value);
|
||||
$this->setInpDocTypeFile($value);
|
||||
break;
|
||||
case 12:
|
||||
$this->setInpDocMaxFilesize($value);
|
||||
break;
|
||||
case 13:
|
||||
$this->setInpDocMaxFilesizeUnit($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -970,51 +1018,55 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setProUid($arr[$keys[1]]);
|
||||
$this->setInpDocId($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setInpDocTitle($arr[$keys[2]]);
|
||||
$this->setProUid($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setInpDocDescription($arr[$keys[3]]);
|
||||
$this->setInpDocTitle($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setInpDocFormNeeded($arr[$keys[4]]);
|
||||
$this->setInpDocDescription($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setInpDocOriginal($arr[$keys[5]]);
|
||||
$this->setInpDocFormNeeded($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setInpDocPublished($arr[$keys[6]]);
|
||||
$this->setInpDocOriginal($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setInpDocVersioning($arr[$keys[7]]);
|
||||
$this->setInpDocPublished($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setInpDocDestinationPath($arr[$keys[8]]);
|
||||
$this->setInpDocVersioning($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setInpDocTags($arr[$keys[9]]);
|
||||
$this->setInpDocDestinationPath($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setInpDocTypeFile($arr[$keys[10]]);
|
||||
$this->setInpDocTags($arr[$keys[10]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[11], $arr)) {
|
||||
$this->setInpDocMaxFilesize($arr[$keys[11]]);
|
||||
$this->setInpDocTypeFile($arr[$keys[11]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[12], $arr)) {
|
||||
$this->setInpDocMaxFilesizeUnit($arr[$keys[12]]);
|
||||
$this->setInpDocMaxFilesize($arr[$keys[12]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[13], $arr)) {
|
||||
$this->setInpDocMaxFilesizeUnit($arr[$keys[13]]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1032,6 +1084,10 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
$criteria->add(InputDocumentPeer::INP_DOC_UID, $this->inp_doc_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(InputDocumentPeer::INP_DOC_ID)) {
|
||||
$criteria->add(InputDocumentPeer::INP_DOC_ID, $this->inp_doc_id);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(InputDocumentPeer::PRO_UID)) {
|
||||
$criteria->add(InputDocumentPeer::PRO_UID, $this->pro_uid);
|
||||
}
|
||||
@@ -1134,6 +1190,8 @@ abstract class BaseInputDocument extends BaseObject implements Persistent
|
||||
public function copyInto($copyObj, $deepCopy = false)
|
||||
{
|
||||
|
||||
$copyObj->setInpDocId($this->inp_doc_id);
|
||||
|
||||
$copyObj->setProUid($this->pro_uid);
|
||||
|
||||
$copyObj->setInpDocTitle($this->inp_doc_title);
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class BaseInputDocumentPeer
|
||||
const CLASS_DEFAULT = 'classes.model.InputDocument';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 13;
|
||||
const NUM_COLUMNS = 14;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
@@ -34,6 +34,9 @@ abstract class BaseInputDocumentPeer
|
||||
/** the column name for the INP_DOC_UID field */
|
||||
const INP_DOC_UID = 'INPUT_DOCUMENT.INP_DOC_UID';
|
||||
|
||||
/** the column name for the INP_DOC_ID field */
|
||||
const INP_DOC_ID = 'INPUT_DOCUMENT.INP_DOC_ID';
|
||||
|
||||
/** the column name for the PRO_UID field */
|
||||
const PRO_UID = 'INPUT_DOCUMENT.PRO_UID';
|
||||
|
||||
@@ -81,10 +84,10 @@ abstract class BaseInputDocumentPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('InpDocUid', 'ProUid', 'InpDocTitle', 'InpDocDescription', 'InpDocFormNeeded', 'InpDocOriginal', 'InpDocPublished', 'InpDocVersioning', 'InpDocDestinationPath', 'InpDocTags', 'InpDocTypeFile', 'InpDocMaxFilesize', 'InpDocMaxFilesizeUnit', ),
|
||||
BasePeer::TYPE_COLNAME => array (InputDocumentPeer::INP_DOC_UID, InputDocumentPeer::PRO_UID, InputDocumentPeer::INP_DOC_TITLE, InputDocumentPeer::INP_DOC_DESCRIPTION, InputDocumentPeer::INP_DOC_FORM_NEEDED, InputDocumentPeer::INP_DOC_ORIGINAL, InputDocumentPeer::INP_DOC_PUBLISHED, InputDocumentPeer::INP_DOC_VERSIONING, InputDocumentPeer::INP_DOC_DESTINATION_PATH, InputDocumentPeer::INP_DOC_TAGS, InputDocumentPeer::INP_DOC_TYPE_FILE, InputDocumentPeer::INP_DOC_MAX_FILESIZE, InputDocumentPeer::INP_DOC_MAX_FILESIZE_UNIT, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('INP_DOC_UID', 'PRO_UID', 'INP_DOC_TITLE', 'INP_DOC_DESCRIPTION', 'INP_DOC_FORM_NEEDED', 'INP_DOC_ORIGINAL', 'INP_DOC_PUBLISHED', 'INP_DOC_VERSIONING', 'INP_DOC_DESTINATION_PATH', 'INP_DOC_TAGS', 'INP_DOC_TYPE_FILE', 'INP_DOC_MAX_FILESIZE', 'INP_DOC_MAX_FILESIZE_UNIT', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, )
|
||||
BasePeer::TYPE_PHPNAME => array ('InpDocUid', 'InpDocId', 'ProUid', 'InpDocTitle', 'InpDocDescription', 'InpDocFormNeeded', 'InpDocOriginal', 'InpDocPublished', 'InpDocVersioning', 'InpDocDestinationPath', 'InpDocTags', 'InpDocTypeFile', 'InpDocMaxFilesize', 'InpDocMaxFilesizeUnit', ),
|
||||
BasePeer::TYPE_COLNAME => array (InputDocumentPeer::INP_DOC_UID, InputDocumentPeer::INP_DOC_ID, InputDocumentPeer::PRO_UID, InputDocumentPeer::INP_DOC_TITLE, InputDocumentPeer::INP_DOC_DESCRIPTION, InputDocumentPeer::INP_DOC_FORM_NEEDED, InputDocumentPeer::INP_DOC_ORIGINAL, InputDocumentPeer::INP_DOC_PUBLISHED, InputDocumentPeer::INP_DOC_VERSIONING, InputDocumentPeer::INP_DOC_DESTINATION_PATH, InputDocumentPeer::INP_DOC_TAGS, InputDocumentPeer::INP_DOC_TYPE_FILE, InputDocumentPeer::INP_DOC_MAX_FILESIZE, InputDocumentPeer::INP_DOC_MAX_FILESIZE_UNIT, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('INP_DOC_UID', 'INP_DOC_ID', 'PRO_UID', 'INP_DOC_TITLE', 'INP_DOC_DESCRIPTION', 'INP_DOC_FORM_NEEDED', 'INP_DOC_ORIGINAL', 'INP_DOC_PUBLISHED', 'INP_DOC_VERSIONING', 'INP_DOC_DESTINATION_PATH', 'INP_DOC_TAGS', 'INP_DOC_TYPE_FILE', 'INP_DOC_MAX_FILESIZE', 'INP_DOC_MAX_FILESIZE_UNIT', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -94,10 +97,10 @@ abstract class BaseInputDocumentPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('InpDocUid' => 0, 'ProUid' => 1, 'InpDocTitle' => 2, 'InpDocDescription' => 3, 'InpDocFormNeeded' => 4, 'InpDocOriginal' => 5, 'InpDocPublished' => 6, 'InpDocVersioning' => 7, 'InpDocDestinationPath' => 8, 'InpDocTags' => 9, 'InpDocTypeFile' => 10, 'InpDocMaxFilesize' => 11, 'InpDocMaxFilesizeUnit' => 12, ),
|
||||
BasePeer::TYPE_COLNAME => array (InputDocumentPeer::INP_DOC_UID => 0, InputDocumentPeer::PRO_UID => 1, InputDocumentPeer::INP_DOC_TITLE => 2, InputDocumentPeer::INP_DOC_DESCRIPTION => 3, InputDocumentPeer::INP_DOC_FORM_NEEDED => 4, InputDocumentPeer::INP_DOC_ORIGINAL => 5, InputDocumentPeer::INP_DOC_PUBLISHED => 6, InputDocumentPeer::INP_DOC_VERSIONING => 7, InputDocumentPeer::INP_DOC_DESTINATION_PATH => 8, InputDocumentPeer::INP_DOC_TAGS => 9, InputDocumentPeer::INP_DOC_TYPE_FILE => 10, InputDocumentPeer::INP_DOC_MAX_FILESIZE => 11, InputDocumentPeer::INP_DOC_MAX_FILESIZE_UNIT => 12, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('INP_DOC_UID' => 0, 'PRO_UID' => 1, 'INP_DOC_TITLE' => 2, 'INP_DOC_DESCRIPTION' => 3, 'INP_DOC_FORM_NEEDED' => 4, 'INP_DOC_ORIGINAL' => 5, 'INP_DOC_PUBLISHED' => 6, 'INP_DOC_VERSIONING' => 7, 'INP_DOC_DESTINATION_PATH' => 8, 'INP_DOC_TAGS' => 9, 'INP_DOC_TYPE_FILE' => 10, 'INP_DOC_MAX_FILESIZE' => 11, 'INP_DOC_MAX_FILESIZE_UNIT' => 12, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, )
|
||||
BasePeer::TYPE_PHPNAME => array ('InpDocUid' => 0, 'InpDocId' => 1, 'ProUid' => 2, 'InpDocTitle' => 3, 'InpDocDescription' => 4, 'InpDocFormNeeded' => 5, 'InpDocOriginal' => 6, 'InpDocPublished' => 7, 'InpDocVersioning' => 8, 'InpDocDestinationPath' => 9, 'InpDocTags' => 10, 'InpDocTypeFile' => 11, 'InpDocMaxFilesize' => 12, 'InpDocMaxFilesizeUnit' => 13, ),
|
||||
BasePeer::TYPE_COLNAME => array (InputDocumentPeer::INP_DOC_UID => 0, InputDocumentPeer::INP_DOC_ID => 1, InputDocumentPeer::PRO_UID => 2, InputDocumentPeer::INP_DOC_TITLE => 3, InputDocumentPeer::INP_DOC_DESCRIPTION => 4, InputDocumentPeer::INP_DOC_FORM_NEEDED => 5, InputDocumentPeer::INP_DOC_ORIGINAL => 6, InputDocumentPeer::INP_DOC_PUBLISHED => 7, InputDocumentPeer::INP_DOC_VERSIONING => 8, InputDocumentPeer::INP_DOC_DESTINATION_PATH => 9, InputDocumentPeer::INP_DOC_TAGS => 10, InputDocumentPeer::INP_DOC_TYPE_FILE => 11, InputDocumentPeer::INP_DOC_MAX_FILESIZE => 12, InputDocumentPeer::INP_DOC_MAX_FILESIZE_UNIT => 13, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('INP_DOC_UID' => 0, 'INP_DOC_ID' => 1, 'PRO_UID' => 2, 'INP_DOC_TITLE' => 3, 'INP_DOC_DESCRIPTION' => 4, 'INP_DOC_FORM_NEEDED' => 5, 'INP_DOC_ORIGINAL' => 6, 'INP_DOC_PUBLISHED' => 7, 'INP_DOC_VERSIONING' => 8, 'INP_DOC_DESTINATION_PATH' => 9, 'INP_DOC_TAGS' => 10, 'INP_DOC_TYPE_FILE' => 11, 'INP_DOC_MAX_FILESIZE' => 12, 'INP_DOC_MAX_FILESIZE_UNIT' => 13, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -200,6 +203,8 @@ abstract class BaseInputDocumentPeer
|
||||
|
||||
$criteria->addSelectColumn(InputDocumentPeer::INP_DOC_UID);
|
||||
|
||||
$criteria->addSelectColumn(InputDocumentPeer::INP_DOC_ID);
|
||||
|
||||
$criteria->addSelectColumn(InputDocumentPeer::PRO_UID);
|
||||
|
||||
$criteria->addSelectColumn(InputDocumentPeer::INP_DOC_TITLE);
|
||||
|
||||
@@ -33,6 +33,12 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $out_doc_uid = '';
|
||||
|
||||
/**
|
||||
* The value for the out_doc_id field.
|
||||
* @var int
|
||||
*/
|
||||
protected $out_doc_id;
|
||||
|
||||
/**
|
||||
* The value for the out_doc_title field.
|
||||
* @var string
|
||||
@@ -202,6 +208,17 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
return $this->out_doc_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [out_doc_id] column value.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getOutDocId()
|
||||
{
|
||||
|
||||
return $this->out_doc_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [out_doc_title] column value.
|
||||
*
|
||||
@@ -488,6 +505,28 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
|
||||
} // setOutDocUid()
|
||||
|
||||
/**
|
||||
* Set the value of [out_doc_id] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setOutDocId($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->out_doc_id !== $v) {
|
||||
$this->out_doc_id = $v;
|
||||
$this->modifiedColumns[] = OutputDocumentPeer::OUT_DOC_ID;
|
||||
}
|
||||
|
||||
} // setOutDocId()
|
||||
|
||||
/**
|
||||
* Set the value of [out_doc_title] column.
|
||||
*
|
||||
@@ -1035,60 +1074,62 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
|
||||
$this->out_doc_uid = $rs->getString($startcol + 0);
|
||||
|
||||
$this->out_doc_title = $rs->getString($startcol + 1);
|
||||
$this->out_doc_id = $rs->getInt($startcol + 1);
|
||||
|
||||
$this->out_doc_description = $rs->getString($startcol + 2);
|
||||
$this->out_doc_title = $rs->getString($startcol + 2);
|
||||
|
||||
$this->out_doc_filename = $rs->getString($startcol + 3);
|
||||
$this->out_doc_description = $rs->getString($startcol + 3);
|
||||
|
||||
$this->out_doc_template = $rs->getString($startcol + 4);
|
||||
$this->out_doc_filename = $rs->getString($startcol + 4);
|
||||
|
||||
$this->pro_uid = $rs->getString($startcol + 5);
|
||||
$this->out_doc_template = $rs->getString($startcol + 5);
|
||||
|
||||
$this->out_doc_report_generator = $rs->getString($startcol + 6);
|
||||
$this->pro_uid = $rs->getString($startcol + 6);
|
||||
|
||||
$this->out_doc_landscape = $rs->getInt($startcol + 7);
|
||||
$this->out_doc_report_generator = $rs->getString($startcol + 7);
|
||||
|
||||
$this->out_doc_media = $rs->getString($startcol + 8);
|
||||
$this->out_doc_landscape = $rs->getInt($startcol + 8);
|
||||
|
||||
$this->out_doc_left_margin = $rs->getInt($startcol + 9);
|
||||
$this->out_doc_media = $rs->getString($startcol + 9);
|
||||
|
||||
$this->out_doc_right_margin = $rs->getInt($startcol + 10);
|
||||
$this->out_doc_left_margin = $rs->getInt($startcol + 10);
|
||||
|
||||
$this->out_doc_top_margin = $rs->getInt($startcol + 11);
|
||||
$this->out_doc_right_margin = $rs->getInt($startcol + 11);
|
||||
|
||||
$this->out_doc_bottom_margin = $rs->getInt($startcol + 12);
|
||||
$this->out_doc_top_margin = $rs->getInt($startcol + 12);
|
||||
|
||||
$this->out_doc_generate = $rs->getString($startcol + 13);
|
||||
$this->out_doc_bottom_margin = $rs->getInt($startcol + 13);
|
||||
|
||||
$this->out_doc_type = $rs->getString($startcol + 14);
|
||||
$this->out_doc_generate = $rs->getString($startcol + 14);
|
||||
|
||||
$this->out_doc_current_revision = $rs->getInt($startcol + 15);
|
||||
$this->out_doc_type = $rs->getString($startcol + 15);
|
||||
|
||||
$this->out_doc_field_mapping = $rs->getString($startcol + 16);
|
||||
$this->out_doc_current_revision = $rs->getInt($startcol + 16);
|
||||
|
||||
$this->out_doc_versioning = $rs->getInt($startcol + 17);
|
||||
$this->out_doc_field_mapping = $rs->getString($startcol + 17);
|
||||
|
||||
$this->out_doc_destination_path = $rs->getString($startcol + 18);
|
||||
$this->out_doc_versioning = $rs->getInt($startcol + 18);
|
||||
|
||||
$this->out_doc_tags = $rs->getString($startcol + 19);
|
||||
$this->out_doc_destination_path = $rs->getString($startcol + 19);
|
||||
|
||||
$this->out_doc_pdf_security_enabled = $rs->getInt($startcol + 20);
|
||||
$this->out_doc_tags = $rs->getString($startcol + 20);
|
||||
|
||||
$this->out_doc_pdf_security_open_password = $rs->getString($startcol + 21);
|
||||
$this->out_doc_pdf_security_enabled = $rs->getInt($startcol + 21);
|
||||
|
||||
$this->out_doc_pdf_security_owner_password = $rs->getString($startcol + 22);
|
||||
$this->out_doc_pdf_security_open_password = $rs->getString($startcol + 22);
|
||||
|
||||
$this->out_doc_pdf_security_permissions = $rs->getString($startcol + 23);
|
||||
$this->out_doc_pdf_security_owner_password = $rs->getString($startcol + 23);
|
||||
|
||||
$this->out_doc_open_type = $rs->getInt($startcol + 24);
|
||||
$this->out_doc_pdf_security_permissions = $rs->getString($startcol + 24);
|
||||
|
||||
$this->out_doc_open_type = $rs->getInt($startcol + 25);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 25; // 25 = OutputDocumentPeer::NUM_COLUMNS - OutputDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 26; // 26 = OutputDocumentPeer::NUM_COLUMNS - OutputDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating OutputDocument object", $e);
|
||||
@@ -1296,75 +1337,78 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
return $this->getOutDocUid();
|
||||
break;
|
||||
case 1:
|
||||
return $this->getOutDocTitle();
|
||||
return $this->getOutDocId();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getOutDocDescription();
|
||||
return $this->getOutDocTitle();
|
||||
break;
|
||||
case 3:
|
||||
return $this->getOutDocFilename();
|
||||
return $this->getOutDocDescription();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getOutDocTemplate();
|
||||
return $this->getOutDocFilename();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getProUid();
|
||||
return $this->getOutDocTemplate();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getOutDocReportGenerator();
|
||||
return $this->getProUid();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getOutDocLandscape();
|
||||
return $this->getOutDocReportGenerator();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getOutDocMedia();
|
||||
return $this->getOutDocLandscape();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getOutDocLeftMargin();
|
||||
return $this->getOutDocMedia();
|
||||
break;
|
||||
case 10:
|
||||
return $this->getOutDocRightMargin();
|
||||
return $this->getOutDocLeftMargin();
|
||||
break;
|
||||
case 11:
|
||||
return $this->getOutDocTopMargin();
|
||||
return $this->getOutDocRightMargin();
|
||||
break;
|
||||
case 12:
|
||||
return $this->getOutDocBottomMargin();
|
||||
return $this->getOutDocTopMargin();
|
||||
break;
|
||||
case 13:
|
||||
return $this->getOutDocGenerate();
|
||||
return $this->getOutDocBottomMargin();
|
||||
break;
|
||||
case 14:
|
||||
return $this->getOutDocType();
|
||||
return $this->getOutDocGenerate();
|
||||
break;
|
||||
case 15:
|
||||
return $this->getOutDocCurrentRevision();
|
||||
return $this->getOutDocType();
|
||||
break;
|
||||
case 16:
|
||||
return $this->getOutDocFieldMapping();
|
||||
return $this->getOutDocCurrentRevision();
|
||||
break;
|
||||
case 17:
|
||||
return $this->getOutDocVersioning();
|
||||
return $this->getOutDocFieldMapping();
|
||||
break;
|
||||
case 18:
|
||||
return $this->getOutDocDestinationPath();
|
||||
return $this->getOutDocVersioning();
|
||||
break;
|
||||
case 19:
|
||||
return $this->getOutDocTags();
|
||||
return $this->getOutDocDestinationPath();
|
||||
break;
|
||||
case 20:
|
||||
return $this->getOutDocPdfSecurityEnabled();
|
||||
return $this->getOutDocTags();
|
||||
break;
|
||||
case 21:
|
||||
return $this->getOutDocPdfSecurityOpenPassword();
|
||||
return $this->getOutDocPdfSecurityEnabled();
|
||||
break;
|
||||
case 22:
|
||||
return $this->getOutDocPdfSecurityOwnerPassword();
|
||||
return $this->getOutDocPdfSecurityOpenPassword();
|
||||
break;
|
||||
case 23:
|
||||
return $this->getOutDocPdfSecurityPermissions();
|
||||
return $this->getOutDocPdfSecurityOwnerPassword();
|
||||
break;
|
||||
case 24:
|
||||
return $this->getOutDocPdfSecurityPermissions();
|
||||
break;
|
||||
case 25:
|
||||
return $this->getOutDocOpenType();
|
||||
break;
|
||||
default:
|
||||
@@ -1388,30 +1432,31 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
$keys = OutputDocumentPeer::getFieldNames($keyType);
|
||||
$result = array(
|
||||
$keys[0] => $this->getOutDocUid(),
|
||||
$keys[1] => $this->getOutDocTitle(),
|
||||
$keys[2] => $this->getOutDocDescription(),
|
||||
$keys[3] => $this->getOutDocFilename(),
|
||||
$keys[4] => $this->getOutDocTemplate(),
|
||||
$keys[5] => $this->getProUid(),
|
||||
$keys[6] => $this->getOutDocReportGenerator(),
|
||||
$keys[7] => $this->getOutDocLandscape(),
|
||||
$keys[8] => $this->getOutDocMedia(),
|
||||
$keys[9] => $this->getOutDocLeftMargin(),
|
||||
$keys[10] => $this->getOutDocRightMargin(),
|
||||
$keys[11] => $this->getOutDocTopMargin(),
|
||||
$keys[12] => $this->getOutDocBottomMargin(),
|
||||
$keys[13] => $this->getOutDocGenerate(),
|
||||
$keys[14] => $this->getOutDocType(),
|
||||
$keys[15] => $this->getOutDocCurrentRevision(),
|
||||
$keys[16] => $this->getOutDocFieldMapping(),
|
||||
$keys[17] => $this->getOutDocVersioning(),
|
||||
$keys[18] => $this->getOutDocDestinationPath(),
|
||||
$keys[19] => $this->getOutDocTags(),
|
||||
$keys[20] => $this->getOutDocPdfSecurityEnabled(),
|
||||
$keys[21] => $this->getOutDocPdfSecurityOpenPassword(),
|
||||
$keys[22] => $this->getOutDocPdfSecurityOwnerPassword(),
|
||||
$keys[23] => $this->getOutDocPdfSecurityPermissions(),
|
||||
$keys[24] => $this->getOutDocOpenType(),
|
||||
$keys[1] => $this->getOutDocId(),
|
||||
$keys[2] => $this->getOutDocTitle(),
|
||||
$keys[3] => $this->getOutDocDescription(),
|
||||
$keys[4] => $this->getOutDocFilename(),
|
||||
$keys[5] => $this->getOutDocTemplate(),
|
||||
$keys[6] => $this->getProUid(),
|
||||
$keys[7] => $this->getOutDocReportGenerator(),
|
||||
$keys[8] => $this->getOutDocLandscape(),
|
||||
$keys[9] => $this->getOutDocMedia(),
|
||||
$keys[10] => $this->getOutDocLeftMargin(),
|
||||
$keys[11] => $this->getOutDocRightMargin(),
|
||||
$keys[12] => $this->getOutDocTopMargin(),
|
||||
$keys[13] => $this->getOutDocBottomMargin(),
|
||||
$keys[14] => $this->getOutDocGenerate(),
|
||||
$keys[15] => $this->getOutDocType(),
|
||||
$keys[16] => $this->getOutDocCurrentRevision(),
|
||||
$keys[17] => $this->getOutDocFieldMapping(),
|
||||
$keys[18] => $this->getOutDocVersioning(),
|
||||
$keys[19] => $this->getOutDocDestinationPath(),
|
||||
$keys[20] => $this->getOutDocTags(),
|
||||
$keys[21] => $this->getOutDocPdfSecurityEnabled(),
|
||||
$keys[22] => $this->getOutDocPdfSecurityOpenPassword(),
|
||||
$keys[23] => $this->getOutDocPdfSecurityOwnerPassword(),
|
||||
$keys[24] => $this->getOutDocPdfSecurityPermissions(),
|
||||
$keys[25] => $this->getOutDocOpenType(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1447,75 +1492,78 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
$this->setOutDocUid($value);
|
||||
break;
|
||||
case 1:
|
||||
$this->setOutDocTitle($value);
|
||||
$this->setOutDocId($value);
|
||||
break;
|
||||
case 2:
|
||||
$this->setOutDocDescription($value);
|
||||
$this->setOutDocTitle($value);
|
||||
break;
|
||||
case 3:
|
||||
$this->setOutDocFilename($value);
|
||||
$this->setOutDocDescription($value);
|
||||
break;
|
||||
case 4:
|
||||
$this->setOutDocTemplate($value);
|
||||
$this->setOutDocFilename($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setProUid($value);
|
||||
$this->setOutDocTemplate($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setOutDocReportGenerator($value);
|
||||
$this->setProUid($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setOutDocLandscape($value);
|
||||
$this->setOutDocReportGenerator($value);
|
||||
break;
|
||||
case 8:
|
||||
$this->setOutDocMedia($value);
|
||||
$this->setOutDocLandscape($value);
|
||||
break;
|
||||
case 9:
|
||||
$this->setOutDocLeftMargin($value);
|
||||
$this->setOutDocMedia($value);
|
||||
break;
|
||||
case 10:
|
||||
$this->setOutDocRightMargin($value);
|
||||
$this->setOutDocLeftMargin($value);
|
||||
break;
|
||||
case 11:
|
||||
$this->setOutDocTopMargin($value);
|
||||
$this->setOutDocRightMargin($value);
|
||||
break;
|
||||
case 12:
|
||||
$this->setOutDocBottomMargin($value);
|
||||
$this->setOutDocTopMargin($value);
|
||||
break;
|
||||
case 13:
|
||||
$this->setOutDocGenerate($value);
|
||||
$this->setOutDocBottomMargin($value);
|
||||
break;
|
||||
case 14:
|
||||
$this->setOutDocType($value);
|
||||
$this->setOutDocGenerate($value);
|
||||
break;
|
||||
case 15:
|
||||
$this->setOutDocCurrentRevision($value);
|
||||
$this->setOutDocType($value);
|
||||
break;
|
||||
case 16:
|
||||
$this->setOutDocFieldMapping($value);
|
||||
$this->setOutDocCurrentRevision($value);
|
||||
break;
|
||||
case 17:
|
||||
$this->setOutDocVersioning($value);
|
||||
$this->setOutDocFieldMapping($value);
|
||||
break;
|
||||
case 18:
|
||||
$this->setOutDocDestinationPath($value);
|
||||
$this->setOutDocVersioning($value);
|
||||
break;
|
||||
case 19:
|
||||
$this->setOutDocTags($value);
|
||||
$this->setOutDocDestinationPath($value);
|
||||
break;
|
||||
case 20:
|
||||
$this->setOutDocPdfSecurityEnabled($value);
|
||||
$this->setOutDocTags($value);
|
||||
break;
|
||||
case 21:
|
||||
$this->setOutDocPdfSecurityOpenPassword($value);
|
||||
$this->setOutDocPdfSecurityEnabled($value);
|
||||
break;
|
||||
case 22:
|
||||
$this->setOutDocPdfSecurityOwnerPassword($value);
|
||||
$this->setOutDocPdfSecurityOpenPassword($value);
|
||||
break;
|
||||
case 23:
|
||||
$this->setOutDocPdfSecurityPermissions($value);
|
||||
$this->setOutDocPdfSecurityOwnerPassword($value);
|
||||
break;
|
||||
case 24:
|
||||
$this->setOutDocPdfSecurityPermissions($value);
|
||||
break;
|
||||
case 25:
|
||||
$this->setOutDocOpenType($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -1546,99 +1594,103 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setOutDocTitle($arr[$keys[1]]);
|
||||
$this->setOutDocId($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[2], $arr)) {
|
||||
$this->setOutDocDescription($arr[$keys[2]]);
|
||||
$this->setOutDocTitle($arr[$keys[2]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[3], $arr)) {
|
||||
$this->setOutDocFilename($arr[$keys[3]]);
|
||||
$this->setOutDocDescription($arr[$keys[3]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setOutDocTemplate($arr[$keys[4]]);
|
||||
$this->setOutDocFilename($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setProUid($arr[$keys[5]]);
|
||||
$this->setOutDocTemplate($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setOutDocReportGenerator($arr[$keys[6]]);
|
||||
$this->setProUid($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
$this->setOutDocLandscape($arr[$keys[7]]);
|
||||
$this->setOutDocReportGenerator($arr[$keys[7]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setOutDocMedia($arr[$keys[8]]);
|
||||
$this->setOutDocLandscape($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setOutDocLeftMargin($arr[$keys[9]]);
|
||||
$this->setOutDocMedia($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setOutDocRightMargin($arr[$keys[10]]);
|
||||
$this->setOutDocLeftMargin($arr[$keys[10]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[11], $arr)) {
|
||||
$this->setOutDocTopMargin($arr[$keys[11]]);
|
||||
$this->setOutDocRightMargin($arr[$keys[11]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[12], $arr)) {
|
||||
$this->setOutDocBottomMargin($arr[$keys[12]]);
|
||||
$this->setOutDocTopMargin($arr[$keys[12]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[13], $arr)) {
|
||||
$this->setOutDocGenerate($arr[$keys[13]]);
|
||||
$this->setOutDocBottomMargin($arr[$keys[13]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[14], $arr)) {
|
||||
$this->setOutDocType($arr[$keys[14]]);
|
||||
$this->setOutDocGenerate($arr[$keys[14]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[15], $arr)) {
|
||||
$this->setOutDocCurrentRevision($arr[$keys[15]]);
|
||||
$this->setOutDocType($arr[$keys[15]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[16], $arr)) {
|
||||
$this->setOutDocFieldMapping($arr[$keys[16]]);
|
||||
$this->setOutDocCurrentRevision($arr[$keys[16]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[17], $arr)) {
|
||||
$this->setOutDocVersioning($arr[$keys[17]]);
|
||||
$this->setOutDocFieldMapping($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[18], $arr)) {
|
||||
$this->setOutDocDestinationPath($arr[$keys[18]]);
|
||||
$this->setOutDocVersioning($arr[$keys[18]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[19], $arr)) {
|
||||
$this->setOutDocTags($arr[$keys[19]]);
|
||||
$this->setOutDocDestinationPath($arr[$keys[19]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[20], $arr)) {
|
||||
$this->setOutDocPdfSecurityEnabled($arr[$keys[20]]);
|
||||
$this->setOutDocTags($arr[$keys[20]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[21], $arr)) {
|
||||
$this->setOutDocPdfSecurityOpenPassword($arr[$keys[21]]);
|
||||
$this->setOutDocPdfSecurityEnabled($arr[$keys[21]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[22], $arr)) {
|
||||
$this->setOutDocPdfSecurityOwnerPassword($arr[$keys[22]]);
|
||||
$this->setOutDocPdfSecurityOpenPassword($arr[$keys[22]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[23], $arr)) {
|
||||
$this->setOutDocPdfSecurityPermissions($arr[$keys[23]]);
|
||||
$this->setOutDocPdfSecurityOwnerPassword($arr[$keys[23]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[24], $arr)) {
|
||||
$this->setOutDocOpenType($arr[$keys[24]]);
|
||||
$this->setOutDocPdfSecurityPermissions($arr[$keys[24]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[25], $arr)) {
|
||||
$this->setOutDocOpenType($arr[$keys[25]]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1656,6 +1708,10 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
$criteria->add(OutputDocumentPeer::OUT_DOC_UID, $this->out_doc_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(OutputDocumentPeer::OUT_DOC_ID)) {
|
||||
$criteria->add(OutputDocumentPeer::OUT_DOC_ID, $this->out_doc_id);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(OutputDocumentPeer::OUT_DOC_TITLE)) {
|
||||
$criteria->add(OutputDocumentPeer::OUT_DOC_TITLE, $this->out_doc_title);
|
||||
}
|
||||
@@ -1806,6 +1862,8 @@ abstract class BaseOutputDocument extends BaseObject implements Persistent
|
||||
public function copyInto($copyObj, $deepCopy = false)
|
||||
{
|
||||
|
||||
$copyObj->setOutDocId($this->out_doc_id);
|
||||
|
||||
$copyObj->setOutDocTitle($this->out_doc_title);
|
||||
|
||||
$copyObj->setOutDocDescription($this->out_doc_description);
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class BaseOutputDocumentPeer
|
||||
const CLASS_DEFAULT = 'classes.model.OutputDocument';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 25;
|
||||
const NUM_COLUMNS = 26;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
@@ -34,6 +34,9 @@ abstract class BaseOutputDocumentPeer
|
||||
/** the column name for the OUT_DOC_UID field */
|
||||
const OUT_DOC_UID = 'OUTPUT_DOCUMENT.OUT_DOC_UID';
|
||||
|
||||
/** the column name for the OUT_DOC_ID field */
|
||||
const OUT_DOC_ID = 'OUTPUT_DOCUMENT.OUT_DOC_ID';
|
||||
|
||||
/** the column name for the OUT_DOC_TITLE field */
|
||||
const OUT_DOC_TITLE = 'OUTPUT_DOCUMENT.OUT_DOC_TITLE';
|
||||
|
||||
@@ -117,10 +120,10 @@ abstract class BaseOutputDocumentPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('OutDocUid', 'OutDocTitle', 'OutDocDescription', 'OutDocFilename', 'OutDocTemplate', 'ProUid', 'OutDocReportGenerator', 'OutDocLandscape', 'OutDocMedia', 'OutDocLeftMargin', 'OutDocRightMargin', 'OutDocTopMargin', 'OutDocBottomMargin', 'OutDocGenerate', 'OutDocType', 'OutDocCurrentRevision', 'OutDocFieldMapping', 'OutDocVersioning', 'OutDocDestinationPath', 'OutDocTags', 'OutDocPdfSecurityEnabled', 'OutDocPdfSecurityOpenPassword', 'OutDocPdfSecurityOwnerPassword', 'OutDocPdfSecurityPermissions', 'OutDocOpenType', ),
|
||||
BasePeer::TYPE_COLNAME => array (OutputDocumentPeer::OUT_DOC_UID, OutputDocumentPeer::OUT_DOC_TITLE, OutputDocumentPeer::OUT_DOC_DESCRIPTION, OutputDocumentPeer::OUT_DOC_FILENAME, OutputDocumentPeer::OUT_DOC_TEMPLATE, OutputDocumentPeer::PRO_UID, OutputDocumentPeer::OUT_DOC_REPORT_GENERATOR, OutputDocumentPeer::OUT_DOC_LANDSCAPE, OutputDocumentPeer::OUT_DOC_MEDIA, OutputDocumentPeer::OUT_DOC_LEFT_MARGIN, OutputDocumentPeer::OUT_DOC_RIGHT_MARGIN, OutputDocumentPeer::OUT_DOC_TOP_MARGIN, OutputDocumentPeer::OUT_DOC_BOTTOM_MARGIN, OutputDocumentPeer::OUT_DOC_GENERATE, OutputDocumentPeer::OUT_DOC_TYPE, OutputDocumentPeer::OUT_DOC_CURRENT_REVISION, OutputDocumentPeer::OUT_DOC_FIELD_MAPPING, OutputDocumentPeer::OUT_DOC_VERSIONING, OutputDocumentPeer::OUT_DOC_DESTINATION_PATH, OutputDocumentPeer::OUT_DOC_TAGS, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_ENABLED, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OPEN_PASSWORD, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OWNER_PASSWORD, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_PERMISSIONS, OutputDocumentPeer::OUT_DOC_OPEN_TYPE, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('OUT_DOC_UID', 'OUT_DOC_TITLE', 'OUT_DOC_DESCRIPTION', 'OUT_DOC_FILENAME', 'OUT_DOC_TEMPLATE', 'PRO_UID', 'OUT_DOC_REPORT_GENERATOR', 'OUT_DOC_LANDSCAPE', 'OUT_DOC_MEDIA', 'OUT_DOC_LEFT_MARGIN', 'OUT_DOC_RIGHT_MARGIN', 'OUT_DOC_TOP_MARGIN', 'OUT_DOC_BOTTOM_MARGIN', 'OUT_DOC_GENERATE', 'OUT_DOC_TYPE', 'OUT_DOC_CURRENT_REVISION', 'OUT_DOC_FIELD_MAPPING', 'OUT_DOC_VERSIONING', 'OUT_DOC_DESTINATION_PATH', 'OUT_DOC_TAGS', 'OUT_DOC_PDF_SECURITY_ENABLED', 'OUT_DOC_PDF_SECURITY_OPEN_PASSWORD', 'OUT_DOC_PDF_SECURITY_OWNER_PASSWORD', 'OUT_DOC_PDF_SECURITY_PERMISSIONS', 'OUT_DOC_OPEN_TYPE', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, )
|
||||
BasePeer::TYPE_PHPNAME => array ('OutDocUid', 'OutDocId', 'OutDocTitle', 'OutDocDescription', 'OutDocFilename', 'OutDocTemplate', 'ProUid', 'OutDocReportGenerator', 'OutDocLandscape', 'OutDocMedia', 'OutDocLeftMargin', 'OutDocRightMargin', 'OutDocTopMargin', 'OutDocBottomMargin', 'OutDocGenerate', 'OutDocType', 'OutDocCurrentRevision', 'OutDocFieldMapping', 'OutDocVersioning', 'OutDocDestinationPath', 'OutDocTags', 'OutDocPdfSecurityEnabled', 'OutDocPdfSecurityOpenPassword', 'OutDocPdfSecurityOwnerPassword', 'OutDocPdfSecurityPermissions', 'OutDocOpenType', ),
|
||||
BasePeer::TYPE_COLNAME => array (OutputDocumentPeer::OUT_DOC_UID, OutputDocumentPeer::OUT_DOC_ID, OutputDocumentPeer::OUT_DOC_TITLE, OutputDocumentPeer::OUT_DOC_DESCRIPTION, OutputDocumentPeer::OUT_DOC_FILENAME, OutputDocumentPeer::OUT_DOC_TEMPLATE, OutputDocumentPeer::PRO_UID, OutputDocumentPeer::OUT_DOC_REPORT_GENERATOR, OutputDocumentPeer::OUT_DOC_LANDSCAPE, OutputDocumentPeer::OUT_DOC_MEDIA, OutputDocumentPeer::OUT_DOC_LEFT_MARGIN, OutputDocumentPeer::OUT_DOC_RIGHT_MARGIN, OutputDocumentPeer::OUT_DOC_TOP_MARGIN, OutputDocumentPeer::OUT_DOC_BOTTOM_MARGIN, OutputDocumentPeer::OUT_DOC_GENERATE, OutputDocumentPeer::OUT_DOC_TYPE, OutputDocumentPeer::OUT_DOC_CURRENT_REVISION, OutputDocumentPeer::OUT_DOC_FIELD_MAPPING, OutputDocumentPeer::OUT_DOC_VERSIONING, OutputDocumentPeer::OUT_DOC_DESTINATION_PATH, OutputDocumentPeer::OUT_DOC_TAGS, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_ENABLED, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OPEN_PASSWORD, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OWNER_PASSWORD, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_PERMISSIONS, OutputDocumentPeer::OUT_DOC_OPEN_TYPE, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('OUT_DOC_UID', 'OUT_DOC_ID', 'OUT_DOC_TITLE', 'OUT_DOC_DESCRIPTION', 'OUT_DOC_FILENAME', 'OUT_DOC_TEMPLATE', 'PRO_UID', 'OUT_DOC_REPORT_GENERATOR', 'OUT_DOC_LANDSCAPE', 'OUT_DOC_MEDIA', 'OUT_DOC_LEFT_MARGIN', 'OUT_DOC_RIGHT_MARGIN', 'OUT_DOC_TOP_MARGIN', 'OUT_DOC_BOTTOM_MARGIN', 'OUT_DOC_GENERATE', 'OUT_DOC_TYPE', 'OUT_DOC_CURRENT_REVISION', 'OUT_DOC_FIELD_MAPPING', 'OUT_DOC_VERSIONING', 'OUT_DOC_DESTINATION_PATH', 'OUT_DOC_TAGS', 'OUT_DOC_PDF_SECURITY_ENABLED', 'OUT_DOC_PDF_SECURITY_OPEN_PASSWORD', 'OUT_DOC_PDF_SECURITY_OWNER_PASSWORD', 'OUT_DOC_PDF_SECURITY_PERMISSIONS', 'OUT_DOC_OPEN_TYPE', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -130,10 +133,10 @@ abstract class BaseOutputDocumentPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('OutDocUid' => 0, 'OutDocTitle' => 1, 'OutDocDescription' => 2, 'OutDocFilename' => 3, 'OutDocTemplate' => 4, 'ProUid' => 5, 'OutDocReportGenerator' => 6, 'OutDocLandscape' => 7, 'OutDocMedia' => 8, 'OutDocLeftMargin' => 9, 'OutDocRightMargin' => 10, 'OutDocTopMargin' => 11, 'OutDocBottomMargin' => 12, 'OutDocGenerate' => 13, 'OutDocType' => 14, 'OutDocCurrentRevision' => 15, 'OutDocFieldMapping' => 16, 'OutDocVersioning' => 17, 'OutDocDestinationPath' => 18, 'OutDocTags' => 19, 'OutDocPdfSecurityEnabled' => 20, 'OutDocPdfSecurityOpenPassword' => 21, 'OutDocPdfSecurityOwnerPassword' => 22, 'OutDocPdfSecurityPermissions' => 23, 'OutDocOpenType' => 24, ),
|
||||
BasePeer::TYPE_COLNAME => array (OutputDocumentPeer::OUT_DOC_UID => 0, OutputDocumentPeer::OUT_DOC_TITLE => 1, OutputDocumentPeer::OUT_DOC_DESCRIPTION => 2, OutputDocumentPeer::OUT_DOC_FILENAME => 3, OutputDocumentPeer::OUT_DOC_TEMPLATE => 4, OutputDocumentPeer::PRO_UID => 5, OutputDocumentPeer::OUT_DOC_REPORT_GENERATOR => 6, OutputDocumentPeer::OUT_DOC_LANDSCAPE => 7, OutputDocumentPeer::OUT_DOC_MEDIA => 8, OutputDocumentPeer::OUT_DOC_LEFT_MARGIN => 9, OutputDocumentPeer::OUT_DOC_RIGHT_MARGIN => 10, OutputDocumentPeer::OUT_DOC_TOP_MARGIN => 11, OutputDocumentPeer::OUT_DOC_BOTTOM_MARGIN => 12, OutputDocumentPeer::OUT_DOC_GENERATE => 13, OutputDocumentPeer::OUT_DOC_TYPE => 14, OutputDocumentPeer::OUT_DOC_CURRENT_REVISION => 15, OutputDocumentPeer::OUT_DOC_FIELD_MAPPING => 16, OutputDocumentPeer::OUT_DOC_VERSIONING => 17, OutputDocumentPeer::OUT_DOC_DESTINATION_PATH => 18, OutputDocumentPeer::OUT_DOC_TAGS => 19, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_ENABLED => 20, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OPEN_PASSWORD => 21, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OWNER_PASSWORD => 22, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_PERMISSIONS => 23, OutputDocumentPeer::OUT_DOC_OPEN_TYPE => 24, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('OUT_DOC_UID' => 0, 'OUT_DOC_TITLE' => 1, 'OUT_DOC_DESCRIPTION' => 2, 'OUT_DOC_FILENAME' => 3, 'OUT_DOC_TEMPLATE' => 4, 'PRO_UID' => 5, 'OUT_DOC_REPORT_GENERATOR' => 6, 'OUT_DOC_LANDSCAPE' => 7, 'OUT_DOC_MEDIA' => 8, 'OUT_DOC_LEFT_MARGIN' => 9, 'OUT_DOC_RIGHT_MARGIN' => 10, 'OUT_DOC_TOP_MARGIN' => 11, 'OUT_DOC_BOTTOM_MARGIN' => 12, 'OUT_DOC_GENERATE' => 13, 'OUT_DOC_TYPE' => 14, 'OUT_DOC_CURRENT_REVISION' => 15, 'OUT_DOC_FIELD_MAPPING' => 16, 'OUT_DOC_VERSIONING' => 17, 'OUT_DOC_DESTINATION_PATH' => 18, 'OUT_DOC_TAGS' => 19, 'OUT_DOC_PDF_SECURITY_ENABLED' => 20, 'OUT_DOC_PDF_SECURITY_OPEN_PASSWORD' => 21, 'OUT_DOC_PDF_SECURITY_OWNER_PASSWORD' => 22, 'OUT_DOC_PDF_SECURITY_PERMISSIONS' => 23, 'OUT_DOC_OPEN_TYPE' => 24, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, )
|
||||
BasePeer::TYPE_PHPNAME => array ('OutDocUid' => 0, 'OutDocId' => 1, 'OutDocTitle' => 2, 'OutDocDescription' => 3, 'OutDocFilename' => 4, 'OutDocTemplate' => 5, 'ProUid' => 6, 'OutDocReportGenerator' => 7, 'OutDocLandscape' => 8, 'OutDocMedia' => 9, 'OutDocLeftMargin' => 10, 'OutDocRightMargin' => 11, 'OutDocTopMargin' => 12, 'OutDocBottomMargin' => 13, 'OutDocGenerate' => 14, 'OutDocType' => 15, 'OutDocCurrentRevision' => 16, 'OutDocFieldMapping' => 17, 'OutDocVersioning' => 18, 'OutDocDestinationPath' => 19, 'OutDocTags' => 20, 'OutDocPdfSecurityEnabled' => 21, 'OutDocPdfSecurityOpenPassword' => 22, 'OutDocPdfSecurityOwnerPassword' => 23, 'OutDocPdfSecurityPermissions' => 24, 'OutDocOpenType' => 25, ),
|
||||
BasePeer::TYPE_COLNAME => array (OutputDocumentPeer::OUT_DOC_UID => 0, OutputDocumentPeer::OUT_DOC_ID => 1, OutputDocumentPeer::OUT_DOC_TITLE => 2, OutputDocumentPeer::OUT_DOC_DESCRIPTION => 3, OutputDocumentPeer::OUT_DOC_FILENAME => 4, OutputDocumentPeer::OUT_DOC_TEMPLATE => 5, OutputDocumentPeer::PRO_UID => 6, OutputDocumentPeer::OUT_DOC_REPORT_GENERATOR => 7, OutputDocumentPeer::OUT_DOC_LANDSCAPE => 8, OutputDocumentPeer::OUT_DOC_MEDIA => 9, OutputDocumentPeer::OUT_DOC_LEFT_MARGIN => 10, OutputDocumentPeer::OUT_DOC_RIGHT_MARGIN => 11, OutputDocumentPeer::OUT_DOC_TOP_MARGIN => 12, OutputDocumentPeer::OUT_DOC_BOTTOM_MARGIN => 13, OutputDocumentPeer::OUT_DOC_GENERATE => 14, OutputDocumentPeer::OUT_DOC_TYPE => 15, OutputDocumentPeer::OUT_DOC_CURRENT_REVISION => 16, OutputDocumentPeer::OUT_DOC_FIELD_MAPPING => 17, OutputDocumentPeer::OUT_DOC_VERSIONING => 18, OutputDocumentPeer::OUT_DOC_DESTINATION_PATH => 19, OutputDocumentPeer::OUT_DOC_TAGS => 20, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_ENABLED => 21, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OPEN_PASSWORD => 22, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_OWNER_PASSWORD => 23, OutputDocumentPeer::OUT_DOC_PDF_SECURITY_PERMISSIONS => 24, OutputDocumentPeer::OUT_DOC_OPEN_TYPE => 25, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('OUT_DOC_UID' => 0, 'OUT_DOC_ID' => 1, 'OUT_DOC_TITLE' => 2, 'OUT_DOC_DESCRIPTION' => 3, 'OUT_DOC_FILENAME' => 4, 'OUT_DOC_TEMPLATE' => 5, 'PRO_UID' => 6, 'OUT_DOC_REPORT_GENERATOR' => 7, 'OUT_DOC_LANDSCAPE' => 8, 'OUT_DOC_MEDIA' => 9, 'OUT_DOC_LEFT_MARGIN' => 10, 'OUT_DOC_RIGHT_MARGIN' => 11, 'OUT_DOC_TOP_MARGIN' => 12, 'OUT_DOC_BOTTOM_MARGIN' => 13, 'OUT_DOC_GENERATE' => 14, 'OUT_DOC_TYPE' => 15, 'OUT_DOC_CURRENT_REVISION' => 16, 'OUT_DOC_FIELD_MAPPING' => 17, 'OUT_DOC_VERSIONING' => 18, 'OUT_DOC_DESTINATION_PATH' => 19, 'OUT_DOC_TAGS' => 20, 'OUT_DOC_PDF_SECURITY_ENABLED' => 21, 'OUT_DOC_PDF_SECURITY_OPEN_PASSWORD' => 22, 'OUT_DOC_PDF_SECURITY_OWNER_PASSWORD' => 23, 'OUT_DOC_PDF_SECURITY_PERMISSIONS' => 24, 'OUT_DOC_OPEN_TYPE' => 25, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -236,6 +239,8 @@ abstract class BaseOutputDocumentPeer
|
||||
|
||||
$criteria->addSelectColumn(OutputDocumentPeer::OUT_DOC_UID);
|
||||
|
||||
$criteria->addSelectColumn(OutputDocumentPeer::OUT_DOC_ID);
|
||||
|
||||
$criteria->addSelectColumn(OutputDocumentPeer::OUT_DOC_TITLE);
|
||||
|
||||
$criteria->addSelectColumn(OutputDocumentPeer::OUT_DOC_DESCRIPTION);
|
||||
|
||||
Reference in New Issue
Block a user