GI-208 PMdrive
- Add functionality cron
This commit is contained in:
@@ -66,6 +66,8 @@ class AppDocument extends BaseAppDocument
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
protected $driveDownload = array();
|
||||
protected $syncWithDrive = '';
|
||||
protected $syncPermissions = '';
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
/*
|
||||
@@ -220,6 +222,7 @@ class AppDocument extends BaseAppDocument
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$aData['APP_DOC_DRIVE_DOWNLOAD'] = serialize($this->driveDownload);
|
||||
//$aData['SYNC_PERMISSIONS'] = $this->syncPermissions;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$oAppDocument->fromArray( $aData, BasePeer::TYPE_FIELDNAME );
|
||||
$oAppDocument->setDocVersion( $docVersion );
|
||||
@@ -267,6 +270,7 @@ class AppDocument extends BaseAppDocument
|
||||
$oConnection = Propel::getConnection( AppDocumentPeer::DATABASE_NAME );
|
||||
try {
|
||||
$oAppDocument = AppDocumentPeer::retrieveByPK( $aData['APP_DOC_UID'], $aData['DOC_VERSION'] );
|
||||
|
||||
if (! is_null( $oAppDocument )) {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$driveDownload = @unserialize($oAppDocument->getAppDocDriveDownload());
|
||||
@@ -275,6 +279,10 @@ class AppDocument extends BaseAppDocument
|
||||
} else {
|
||||
$aData['APP_DOC_DRIVE_DOWNLOAD'] = serialize($this->driveDownload);
|
||||
}
|
||||
//$aData['SYNC_PERMISSIONS'] = $this->syncPermissions;
|
||||
//$aData['SYNC_WITH_DRIVE'] = $this->syncWithDrive;
|
||||
//$oAppDocument->setSyncWithDrive($aData['SYNC_WITH_DRIVE']);
|
||||
//$oAppDocument->sync_with_drive = $aData['SYNC_WITH_DRIVE'];
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$oAppDocument->fromArray( $aData, BasePeer::TYPE_FIELDNAME );
|
||||
if ($oAppDocument->validate()) {
|
||||
@@ -508,6 +516,29 @@ class AppDocument extends BaseAppDocument
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
/*public function setSyncWithDrive ($key)
|
||||
{
|
||||
$data = array('SYNCHRONIZED', 'UNSYNCHRONIZED', 'NO_EXIST_FILE_PM');
|
||||
if (array_search($key, $data) === false) {
|
||||
$key = 'UNSYNCHRONIZED';
|
||||
}
|
||||
$this->syncWithDrive = $key;
|
||||
}*/
|
||||
|
||||
/*public function getSyncWithDrive ()
|
||||
{
|
||||
return $this->syncWithDrive;
|
||||
}*/
|
||||
|
||||
/*public function setSyncPermissions ($email)
|
||||
{
|
||||
$this->syncPermissions = empty($this->syncPermissions) ? $email : ','.$email;
|
||||
}
|
||||
|
||||
public function getSyncPermissions ()
|
||||
{
|
||||
return !empty($this->syncPermissions) ? explode(',', $this->syncPermissions) : '';
|
||||
}*/
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
|
||||
@@ -293,16 +293,6 @@ class AppFolder extends BaseAppFolder
|
||||
//require_once ("classes/model/OutputDocument.php");
|
||||
//require_once ("classes/model/Users.php");
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
$enablePMGmail = false;
|
||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
G::LoadClass( "pmDrive" );
|
||||
$pmDrive = new PMDrive();
|
||||
$enablePMGmail = $pmDrive->getStatusService();
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
G::LoadClass( 'process' );
|
||||
@@ -328,11 +318,7 @@ class AppFolder extends BaseAppFolder
|
||||
$oCriteria->addSelectColumn( AppDocumentPeer::APP_DOC_STATUS);
|
||||
$oCriteria->addSelectColumn( AppDocumentPeer::APP_DOC_STATUS_DATE);
|
||||
$oCriteria->addSelectColumn( AppDocumentPeer::APP_DOC_FIELDNAME);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if ($enablePMGmail) {
|
||||
$oCriteria->addSelectColumn(AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD);
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$oCriteria->addSelectColumn(AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD);
|
||||
|
||||
if ((is_array( $docIdFilter )) && (count( $docIdFilter ) > 0)) {
|
||||
//Search by App Doc UID no matter what Folder it is
|
||||
@@ -433,39 +419,6 @@ class AppFolder extends BaseAppFolder
|
||||
//$filesResult [] = $completeInfo;
|
||||
|
||||
if ($completeInfo['APP_DOC_STATUS'] != "DELETED") {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if ($enablePMGmail) {
|
||||
$driveDownload = @unserialize($completeInfo['APP_DOC_DRIVE_DOWNLOAD']);
|
||||
switch ($completeInfo['APP_DOC_TYPE']) {
|
||||
case 'INPUT':
|
||||
if ($driveDownload !== false && is_array($driveDownload) && array_key_exists('INPUT',
|
||||
$driveDownload)
|
||||
) {
|
||||
$completeInfo['DOWNLOAD_LINK'] = $driveDownload['INPUT'];
|
||||
}
|
||||
break;
|
||||
case 'ATTACHED':
|
||||
if ($driveDownload !== false && is_array($driveDownload) && array_key_exists('ATTACHED',
|
||||
$driveDownload)
|
||||
) {
|
||||
$completeInfo['DOWNLOAD_LINK'] = $driveDownload['ATTACHED'];
|
||||
}
|
||||
break;
|
||||
case 'OUTPUT':
|
||||
if ($driveDownload !== false && is_array($driveDownload) && array_key_exists('OUTPUT_DOC',
|
||||
$driveDownload)
|
||||
) {
|
||||
$completeInfo['DOWNLOAD_LINK1'] = $driveDownload['OUTPUT_DOC'];
|
||||
}
|
||||
if ($driveDownload !== false && is_array($driveDownload) && array_key_exists('OUTPUT_PDF',
|
||||
$driveDownload)
|
||||
) {
|
||||
$completeInfo['DOWNLOAD_LINK'] = $driveDownload['OUTPUT_PDF'];
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (in_array($row["APP_DOC_UID"], $completeInfo["INPUT_DOCUMENTS"]) || in_array($row["APP_DOC_UID"], $completeInfo["OUTPUT_DOCUMENTS"]) || in_array($completeInfo["USR_UID"], array($_SESSION["USER_LOGGED"], "-1")) || $user == "") {
|
||||
if (count( $docIdFilter ) > 0) {
|
||||
if (in_array( $row['APP_DOC_UID'], $docIdFilter )) {
|
||||
|
||||
@@ -97,6 +97,10 @@ class AppDocumentMapBuilder
|
||||
|
||||
$tMap->addColumn('APP_DOC_DRIVE_DOWNLOAD', 'AppDocDriveDownload', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
||||
|
||||
$tMap->addColumn('SYNC_WITH_DRIVE', 'SyncWithDrive', 'string', CreoleTypes::VARCHAR, true, 32);
|
||||
|
||||
$tMap->addColumn('SYNC_PERMISSIONS', 'SyncPermissions', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
||||
|
||||
$tMap->addValidator('APP_DOC_UID', 'maxLength', 'propel.validator.MaxLengthValidator', '32', 'Application Document UID can be no larger than 32 in size');
|
||||
|
||||
$tMap->addValidator('APP_DOC_UID', 'required', 'propel.validator.RequiredValidator', '', 'Application Document UID is required.');
|
||||
@@ -127,6 +131,10 @@ class AppDocumentMapBuilder
|
||||
|
||||
$tMap->addValidator('APP_DOC_STATUS', 'required', 'propel.validator.RequiredValidator', '', 'Application Document Status is required.');
|
||||
|
||||
$tMap->addValidator('SYNC_WITH_DRIVE', 'validValues', 'propel.validator.ValidValuesValidator', 'SYNCHRONIZED|UNSYNCHRONIZED|NO_EXIST_FILE_PM', 'Please select a valid type.');
|
||||
|
||||
$tMap->addValidator('SYNC_WITH_DRIVE', 'required', 'propel.validator.RequiredValidator', '', 'Type is required.');
|
||||
|
||||
} // doBuild()
|
||||
|
||||
} // AppDocumentMapBuilder
|
||||
|
||||
@@ -123,6 +123,18 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $app_doc_drive_download;
|
||||
|
||||
/**
|
||||
* The value for the sync_with_drive field.
|
||||
* @var string
|
||||
*/
|
||||
protected $sync_with_drive = 'UNSYNCHRONIZED';
|
||||
|
||||
/**
|
||||
* The value for the sync_permissions field.
|
||||
* @var string
|
||||
*/
|
||||
protected $sync_permissions;
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
@@ -355,6 +367,28 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
return $this->app_doc_drive_download;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [sync_with_drive] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSyncWithDrive()
|
||||
{
|
||||
|
||||
return $this->sync_with_drive;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [sync_permissions] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSyncPermissions()
|
||||
{
|
||||
|
||||
return $this->sync_permissions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of [app_doc_uid] column.
|
||||
*
|
||||
@@ -721,6 +755,50 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
|
||||
} // setAppDocDriveDownload()
|
||||
|
||||
/**
|
||||
* Set the value of [sync_with_drive] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setSyncWithDrive($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->sync_with_drive !== $v || $v === 'UNSYNCHRONIZED') {
|
||||
$this->sync_with_drive = $v;
|
||||
$this->modifiedColumns[] = AppDocumentPeer::SYNC_WITH_DRIVE;
|
||||
}
|
||||
|
||||
} // setSyncWithDrive()
|
||||
|
||||
/**
|
||||
* Set the value of [sync_permissions] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setSyncPermissions($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->sync_permissions !== $v) {
|
||||
$this->sync_permissions = $v;
|
||||
$this->modifiedColumns[] = AppDocumentPeer::SYNC_PERMISSIONS;
|
||||
}
|
||||
|
||||
} // setSyncPermissions()
|
||||
|
||||
/**
|
||||
* Hydrates (populates) the object variables with values from the database resultset.
|
||||
*
|
||||
@@ -770,12 +848,16 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
|
||||
$this->app_doc_drive_download = $rs->getString($startcol + 15);
|
||||
|
||||
$this->sync_with_drive = $rs->getString($startcol + 16);
|
||||
|
||||
$this->sync_permissions = $rs->getString($startcol + 17);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 16; // 16 = AppDocumentPeer::NUM_COLUMNS - AppDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 18; // 18 = AppDocumentPeer::NUM_COLUMNS - AppDocumentPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating AppDocument object", $e);
|
||||
@@ -1027,6 +1109,12 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
case 15:
|
||||
return $this->getAppDocDriveDownload();
|
||||
break;
|
||||
case 16:
|
||||
return $this->getSyncWithDrive();
|
||||
break;
|
||||
case 17:
|
||||
return $this->getSyncPermissions();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
@@ -1063,6 +1151,8 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
$keys[13] => $this->getAppDocStatusDate(),
|
||||
$keys[14] => $this->getAppDocFieldname(),
|
||||
$keys[15] => $this->getAppDocDriveDownload(),
|
||||
$keys[16] => $this->getSyncWithDrive(),
|
||||
$keys[17] => $this->getSyncPermissions(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1142,6 +1232,12 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
case 15:
|
||||
$this->setAppDocDriveDownload($value);
|
||||
break;
|
||||
case 16:
|
||||
$this->setSyncWithDrive($value);
|
||||
break;
|
||||
case 17:
|
||||
$this->setSyncPermissions($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
||||
@@ -1229,6 +1325,14 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
$this->setAppDocDriveDownload($arr[$keys[15]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[16], $arr)) {
|
||||
$this->setSyncWithDrive($arr[$keys[16]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[17], $arr)) {
|
||||
$this->setSyncPermissions($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1304,6 +1408,14 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
$criteria->add(AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD, $this->app_doc_drive_download);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AppDocumentPeer::SYNC_WITH_DRIVE)) {
|
||||
$criteria->add(AppDocumentPeer::SYNC_WITH_DRIVE, $this->sync_with_drive);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AppDocumentPeer::SYNC_PERMISSIONS)) {
|
||||
$criteria->add(AppDocumentPeer::SYNC_PERMISSIONS, $this->sync_permissions);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
@@ -1398,6 +1510,10 @@ abstract class BaseAppDocument extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setAppDocDriveDownload($this->app_doc_drive_download);
|
||||
|
||||
$copyObj->setSyncWithDrive($this->sync_with_drive);
|
||||
|
||||
$copyObj->setSyncPermissions($this->sync_permissions);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class BaseAppDocumentPeer
|
||||
const CLASS_DEFAULT = 'classes.model.AppDocument';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 16;
|
||||
const NUM_COLUMNS = 18;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
@@ -79,6 +79,12 @@ abstract class BaseAppDocumentPeer
|
||||
/** the column name for the APP_DOC_DRIVE_DOWNLOAD field */
|
||||
const APP_DOC_DRIVE_DOWNLOAD = 'APP_DOCUMENT.APP_DOC_DRIVE_DOWNLOAD';
|
||||
|
||||
/** the column name for the SYNC_WITH_DRIVE field */
|
||||
const SYNC_WITH_DRIVE = 'APP_DOCUMENT.SYNC_WITH_DRIVE';
|
||||
|
||||
/** the column name for the SYNC_PERMISSIONS field */
|
||||
const SYNC_PERMISSIONS = 'APP_DOCUMENT.SYNC_PERMISSIONS';
|
||||
|
||||
/** The PHP to DB Name Mapping */
|
||||
private static $phpNameMap = null;
|
||||
|
||||
@@ -90,10 +96,10 @@ abstract class BaseAppDocumentPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppDocUid', 'DocVersion', 'AppUid', 'DelIndex', 'DocUid', 'UsrUid', 'AppDocType', 'AppDocCreateDate', 'AppDocIndex', 'FolderUid', 'AppDocPlugin', 'AppDocTags', 'AppDocStatus', 'AppDocStatusDate', 'AppDocFieldname', 'AppDocDriveDownload', ),
|
||||
BasePeer::TYPE_COLNAME => array (AppDocumentPeer::APP_DOC_UID, AppDocumentPeer::DOC_VERSION, AppDocumentPeer::APP_UID, AppDocumentPeer::DEL_INDEX, AppDocumentPeer::DOC_UID, AppDocumentPeer::USR_UID, AppDocumentPeer::APP_DOC_TYPE, AppDocumentPeer::APP_DOC_CREATE_DATE, AppDocumentPeer::APP_DOC_INDEX, AppDocumentPeer::FOLDER_UID, AppDocumentPeer::APP_DOC_PLUGIN, AppDocumentPeer::APP_DOC_TAGS, AppDocumentPeer::APP_DOC_STATUS, AppDocumentPeer::APP_DOC_STATUS_DATE, AppDocumentPeer::APP_DOC_FIELDNAME, AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_DOC_UID', 'DOC_VERSION', 'APP_UID', 'DEL_INDEX', 'DOC_UID', 'USR_UID', 'APP_DOC_TYPE', 'APP_DOC_CREATE_DATE', 'APP_DOC_INDEX', 'FOLDER_UID', 'APP_DOC_PLUGIN', 'APP_DOC_TAGS', 'APP_DOC_STATUS', 'APP_DOC_STATUS_DATE', 'APP_DOC_FIELDNAME', 'APP_DOC_DRIVE_DOWNLOAD', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AppDocUid', 'DocVersion', 'AppUid', 'DelIndex', 'DocUid', 'UsrUid', 'AppDocType', 'AppDocCreateDate', 'AppDocIndex', 'FolderUid', 'AppDocPlugin', 'AppDocTags', 'AppDocStatus', 'AppDocStatusDate', 'AppDocFieldname', 'AppDocDriveDownload', 'SyncWithDrive', 'SyncPermissions', ),
|
||||
BasePeer::TYPE_COLNAME => array (AppDocumentPeer::APP_DOC_UID, AppDocumentPeer::DOC_VERSION, AppDocumentPeer::APP_UID, AppDocumentPeer::DEL_INDEX, AppDocumentPeer::DOC_UID, AppDocumentPeer::USR_UID, AppDocumentPeer::APP_DOC_TYPE, AppDocumentPeer::APP_DOC_CREATE_DATE, AppDocumentPeer::APP_DOC_INDEX, AppDocumentPeer::FOLDER_UID, AppDocumentPeer::APP_DOC_PLUGIN, AppDocumentPeer::APP_DOC_TAGS, AppDocumentPeer::APP_DOC_STATUS, AppDocumentPeer::APP_DOC_STATUS_DATE, AppDocumentPeer::APP_DOC_FIELDNAME, AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD, AppDocumentPeer::SYNC_WITH_DRIVE, AppDocumentPeer::SYNC_PERMISSIONS, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_DOC_UID', 'DOC_VERSION', 'APP_UID', 'DEL_INDEX', 'DOC_UID', 'USR_UID', 'APP_DOC_TYPE', 'APP_DOC_CREATE_DATE', 'APP_DOC_INDEX', 'FOLDER_UID', 'APP_DOC_PLUGIN', 'APP_DOC_TAGS', 'APP_DOC_STATUS', 'APP_DOC_STATUS_DATE', 'APP_DOC_FIELDNAME', 'APP_DOC_DRIVE_DOWNLOAD', 'SYNC_WITH_DRIVE', 'SYNC_PERMISSIONS', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -103,10 +109,10 @@ abstract class BaseAppDocumentPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('AppDocUid' => 0, 'DocVersion' => 1, 'AppUid' => 2, 'DelIndex' => 3, 'DocUid' => 4, 'UsrUid' => 5, 'AppDocType' => 6, 'AppDocCreateDate' => 7, 'AppDocIndex' => 8, 'FolderUid' => 9, 'AppDocPlugin' => 10, 'AppDocTags' => 11, 'AppDocStatus' => 12, 'AppDocStatusDate' => 13, 'AppDocFieldname' => 14, 'AppDocDriveDownload' => 15, ),
|
||||
BasePeer::TYPE_COLNAME => array (AppDocumentPeer::APP_DOC_UID => 0, AppDocumentPeer::DOC_VERSION => 1, AppDocumentPeer::APP_UID => 2, AppDocumentPeer::DEL_INDEX => 3, AppDocumentPeer::DOC_UID => 4, AppDocumentPeer::USR_UID => 5, AppDocumentPeer::APP_DOC_TYPE => 6, AppDocumentPeer::APP_DOC_CREATE_DATE => 7, AppDocumentPeer::APP_DOC_INDEX => 8, AppDocumentPeer::FOLDER_UID => 9, AppDocumentPeer::APP_DOC_PLUGIN => 10, AppDocumentPeer::APP_DOC_TAGS => 11, AppDocumentPeer::APP_DOC_STATUS => 12, AppDocumentPeer::APP_DOC_STATUS_DATE => 13, AppDocumentPeer::APP_DOC_FIELDNAME => 14, AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD => 15, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_DOC_UID' => 0, 'DOC_VERSION' => 1, 'APP_UID' => 2, 'DEL_INDEX' => 3, 'DOC_UID' => 4, 'USR_UID' => 5, 'APP_DOC_TYPE' => 6, 'APP_DOC_CREATE_DATE' => 7, 'APP_DOC_INDEX' => 8, 'FOLDER_UID' => 9, 'APP_DOC_PLUGIN' => 10, 'APP_DOC_TAGS' => 11, 'APP_DOC_STATUS' => 12, 'APP_DOC_STATUS_DATE' => 13, 'APP_DOC_FIELDNAME' => 14, 'APP_DOC_DRIVE_DOWNLOAD' => 15, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
|
||||
BasePeer::TYPE_PHPNAME => array ('AppDocUid' => 0, 'DocVersion' => 1, 'AppUid' => 2, 'DelIndex' => 3, 'DocUid' => 4, 'UsrUid' => 5, 'AppDocType' => 6, 'AppDocCreateDate' => 7, 'AppDocIndex' => 8, 'FolderUid' => 9, 'AppDocPlugin' => 10, 'AppDocTags' => 11, 'AppDocStatus' => 12, 'AppDocStatusDate' => 13, 'AppDocFieldname' => 14, 'AppDocDriveDownload' => 15, 'SyncWithDrive' => 16, 'SyncPermissions' => 17, ),
|
||||
BasePeer::TYPE_COLNAME => array (AppDocumentPeer::APP_DOC_UID => 0, AppDocumentPeer::DOC_VERSION => 1, AppDocumentPeer::APP_UID => 2, AppDocumentPeer::DEL_INDEX => 3, AppDocumentPeer::DOC_UID => 4, AppDocumentPeer::USR_UID => 5, AppDocumentPeer::APP_DOC_TYPE => 6, AppDocumentPeer::APP_DOC_CREATE_DATE => 7, AppDocumentPeer::APP_DOC_INDEX => 8, AppDocumentPeer::FOLDER_UID => 9, AppDocumentPeer::APP_DOC_PLUGIN => 10, AppDocumentPeer::APP_DOC_TAGS => 11, AppDocumentPeer::APP_DOC_STATUS => 12, AppDocumentPeer::APP_DOC_STATUS_DATE => 13, AppDocumentPeer::APP_DOC_FIELDNAME => 14, AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD => 15, AppDocumentPeer::SYNC_WITH_DRIVE => 16, AppDocumentPeer::SYNC_PERMISSIONS => 17, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('APP_DOC_UID' => 0, 'DOC_VERSION' => 1, 'APP_UID' => 2, 'DEL_INDEX' => 3, 'DOC_UID' => 4, 'USR_UID' => 5, 'APP_DOC_TYPE' => 6, 'APP_DOC_CREATE_DATE' => 7, 'APP_DOC_INDEX' => 8, 'FOLDER_UID' => 9, 'APP_DOC_PLUGIN' => 10, 'APP_DOC_TAGS' => 11, 'APP_DOC_STATUS' => 12, 'APP_DOC_STATUS_DATE' => 13, 'APP_DOC_FIELDNAME' => 14, 'APP_DOC_DRIVE_DOWNLOAD' => 15, 'SYNC_WITH_DRIVE' => 16, 'SYNC_PERMISSIONS' => 17, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -239,6 +245,10 @@ abstract class BaseAppDocumentPeer
|
||||
|
||||
$criteria->addSelectColumn(AppDocumentPeer::APP_DOC_DRIVE_DOWNLOAD);
|
||||
|
||||
$criteria->addSelectColumn(AppDocumentPeer::SYNC_WITH_DRIVE);
|
||||
|
||||
$criteria->addSelectColumn(AppDocumentPeer::SYNC_PERMISSIONS);
|
||||
|
||||
}
|
||||
|
||||
const COUNT = 'COUNT(APP_DOCUMENT.APP_DOC_UID)';
|
||||
@@ -611,6 +621,9 @@ abstract class BaseAppDocumentPeer
|
||||
if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::APP_DOC_STATUS))
|
||||
$columns[AppDocumentPeer::APP_DOC_STATUS] = $obj->getAppDocStatus();
|
||||
|
||||
if ($obj->isNew() || $obj->isColumnModified(AppDocumentPeer::SYNC_WITH_DRIVE))
|
||||
$columns[AppDocumentPeer::SYNC_WITH_DRIVE] = $obj->getSyncWithDrive();
|
||||
|
||||
}
|
||||
|
||||
return BasePeer::doValidate(AppDocumentPeer::DATABASE_NAME, AppDocumentPeer::TABLE_NAME, $columns);
|
||||
|
||||
Reference in New Issue
Block a user