Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Help Getting Starte...
 
Notifications
Clear all

Help Getting Started

2 Posts
2 Users
0 Reactions
4,046 Views
(@jdls)
Posts: 1
New Member
Topic starter
 
[#967]

Hello,

I am a bit new to PHP and have mainly used it for small projects. A new requirement has come up though and this program meets 95% of what is needed. However, I am having a bit of trouble implementing some new features. I was hoping someone could help me get in the right direction.

I am trying to attach two new data fields to project. For example, a source language field and a target language field. Each project will only have one source language but could have many target languages. I have implemented all of this in the database without a problem but I am a bit lost on how to incorporate this into the ProjectOr framework.

Could someone please try to walk me through the beginning steps of adding this to the system? I mainly need help with adding it to the project class and then generating visuals in the project view panel.

Thank you in advance for any assistance you can provide.


 
Posted : 11 Feb 2013 18H35
babynus
(@babynus)
Posts: 14953
Avanced Contributor Admin
 

Hi,

I guess you defined table "language".
What is important is mandatory fields
=> id int(12), autoincrement : the primary key
=> name varchar(100)

Then you have to create one class "Language".
Check other classes, it's easy to define...
To have menu to define list :
=> add line in table menu
=> add lines in table habilitation
check one of the existing sql scripts to get help...

You possibly need to defined 2 classes SourceLanguage and TargetLanguange.
Once again, check existing classes for help.

Finaly, you just have to add idLanguage, or idTargetLanguage, or idSourceLanguage to project or other item. The rest is automatic.


 
Posted : 12 Feb 2013 1H13
Share:

Scroll to Top