Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b97e1629
authored
2016-09-15 21:14:16 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
www
1 parent
21bc309b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
app/Http/Controllers/GoogledriveuploadpdfController.php
app/pdfModel.php
app/Http/Controllers/GoogledriveuploadpdfController.php
View file @
b97e162
...
...
@@ -112,8 +112,10 @@ public function isGoogleFolderCreated($cust_id)
if
(
count
(
$saveFolderId
)
<
1
){
$newgroup_id
=
$this
->
createFolderGoogle
(
$cust_ids
);
$saveFolderId
=
new
pdfModel
();
$saveFolderId
=
$saveFolderId
->
checkIsGoogleFolderCreated
(
$newgroup_id
[
0
]
->
group_id
);
$saveFolderId
=
$saveFolderId
->
checkIsGoogleFolderCreated
(
$group_id
);
error_log
(
print_r
(
$saveFolderId
,
true
));
return
$saveFolderId
;
}
else
{
...
...
@@ -184,8 +186,8 @@ public function isGoogleFolderCreated($cust_id)
}
return
$createdFile
->
id
;
...
...
app/pdfModel.php
View file @
b97e162
...
...
@@ -32,7 +32,7 @@ class pdfModel extends Model
$rows
=
DB
::
table
(
'googleFolderIds'
)
->
select
(
'*'
)
->
where
(
'googleFolderIds.group_id'
,
'='
,
$id
)
->
get
();
error_log
(
print_r
(
$rows
,
true
));
return
$rows
;
}
...
...
@@ -41,9 +41,9 @@ class pdfModel extends Model
$folderId
=
DB
::
table
(
'googleFolderIds'
)
->
insertGetId
(
array
(
'group_id'
=>
$group_id
,
'folder_id'
=>
$folderId
,
'subfolder_id'
=>
$createdFile
)
);
$rows
=
DB
::
table
(
'googleFolderIds'
)
->
select
(
'*'
)
->
where
(
'googleFolderIds.id'
,
'='
,
$folderId
)
->
get
();
return
$
rows
;
return
$
folderId
;
}
...
...
Please
register
or
sign in
to post a comment