View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - copy Document - ProjeQtOr
 
 

copy Document

More
11 Jun 2013 16:01 - 11 Jun 2013 16:03 #1 by DjackJack
copy Document was created by DjackJack
hi,

I would like to know where you manage the copies of documents and documentVersions?
Last edit: 11 Jun 2013 16:03 by DjackJack.

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 10:33 #2 by babynus
Replied by babynus on topic Re: copy Document
Like any other object, in :
/model/persistence/SqlElement.php->copySqlElement()

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 11:14 #3 by DjackJack
Replied by DjackJack on topic Re: copy Document
Thank you but I will wish a little more information about how to insulate the case document because I think there is a problem over there.

Indeed, when you copy a version, the version id is copied too, while for a new document version should start from 0.

what is the field "IsReF" Document Object?

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 11:44 #4 by babynus
Replied by babynus on topic Re: copy Document
So you'll probably find what you expect in the save() function of each dedicated class (/model/Document.php and /model/DocumentVersion.php) that extend the default save() function called by the copy() function (in /model/persistence/SqlElement.php)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 14:18 #5 by DjackJack
Replied by DjackJack on topic Re: copy Document
Is there a way to know if the save () function is called when a copy or during normal processing?

Please Log in or Create an account to join the conversation.

More
13 Jun 2013 14:46 #6 by babynus
Replied by babynus on topic Re: copy Document
It is always : it is the only way to save data to database.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.