Upgrade PHP files
This commit is contained in:
@@ -42,12 +42,9 @@
|
||||
*/
|
||||
class AppDocument extends BaseAppDocument
|
||||
{
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
protected $driveDownload = array();
|
||||
protected $syncWithDrive = '';
|
||||
protected $syncPermissions = '';
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
/*
|
||||
* Load the application document registry
|
||||
@@ -65,11 +62,9 @@ class AppDocument extends BaseAppDocument
|
||||
if (! is_null( $oAppDocument )) {
|
||||
$aFields = $oAppDocument->toArray( BasePeer::TYPE_FIELDNAME );
|
||||
$this->fromArray( $aFields, BasePeer::TYPE_FIELDNAME );
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$driveDownload = @unserialize($aFields['APP_DOC_DRIVE_DOWNLOAD']);
|
||||
$driveDownload = $driveDownload !== false ? $driveDownload : array();
|
||||
$oAppDocument->driveDownload = $driveDownload;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
return $aFields;
|
||||
} else {
|
||||
throw (new Exception( 'Error loading Document ' . $sAppDocUid . '/' . $iVersion . '. This row doesn\'t exist!' ));
|
||||
@@ -193,10 +188,8 @@ class AppDocument extends BaseAppDocument
|
||||
$docVersion ++;
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$aData['APP_DOC_DRIVE_DOWNLOAD'] = serialize($this->driveDownload);
|
||||
//$aData['SYNC_PERMISSIONS'] = $this->syncPermissions;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
$oAppDocument->fromArray( $aData, BasePeer::TYPE_FIELDNAME );
|
||||
$oAppDocument->setDocVersion( $docVersion );
|
||||
|
||||
@@ -245,7 +238,6 @@ class AppDocument extends BaseAppDocument
|
||||
$oAppDocument = AppDocumentPeer::retrieveByPK( $aData['APP_DOC_UID'], $aData['DOC_VERSION'] );
|
||||
|
||||
if (! is_null( $oAppDocument )) {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$driveDownload = @unserialize($oAppDocument->getAppDocDriveDownload());
|
||||
if ($driveDownload !== false) {
|
||||
$aData['APP_DOC_DRIVE_DOWNLOAD'] = serialize(array_merge($driveDownload, $this->driveDownload));
|
||||
@@ -256,7 +248,6 @@ class AppDocument extends BaseAppDocument
|
||||
//$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()) {
|
||||
$oConnection->begin();
|
||||
@@ -475,7 +466,6 @@ class AppDocument extends BaseAppDocument
|
||||
return true;
|
||||
}
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
public function setDriveDownload($key, $value)
|
||||
{
|
||||
$this->driveDownload[$key] = $value;
|
||||
@@ -489,7 +479,6 @@ class AppDocument extends BaseAppDocument
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
public function getObject ($APP_UID, $DEL_INDEX, $STEP_UID_OBJ, $APP_DOC_TYPE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user