Search found 5 matches

by EBAH
10 May 2011, 14:30
Forum: Help
Topic: How to get parent project id
Replies: 0
Views: 2023

How to get parent project id

Hi all,
I looked in the DB and found out the table mantis_project_hierarchy_table.
Also lokked at project_hierarchy_api.php but couldn't find a function to suit this.

Is there a built in function?

Thank you very much for helping!
Evan
by EBAH
09 May 2011, 10:14
Forum: General Discussion
Topic: How to get the current project name
Replies: 2
Views: 4019

Re: How to get the current project name

Thank you atrol!!!
by EBAH
07 May 2011, 17:48
Forum: Help
Topic: How to get the project name?
Replies: 3
Views: 2102

Re: How to get the project name?

Sorry guys didn't realized that my previous post was answered!!!
You can use project_get_name ( $project_id )
Thanks to everybody,
Evan
by EBAH
06 May 2011, 14:02
Forum: Help
Topic: How to get the project name?
Replies: 3
Views: 2102

How to get the project name?

Hi all,
with the following code I can obtain the ID of current project:
$prj_id=helper_get_current_project();
But how can I do if I want the name (appearing in the top-right dropdown menu) of the project?

Is there a ready function or should I connect to database?

$query = "select name FROM ...
by EBAH
25 Mar 2011, 16:01
Forum: General Discussion
Topic: How to get the current project name
Replies: 2
Views: 4019

How to get the current project name

Hi,
I was wondering how is it possible to get project name instead of the project id.
From helper_api.php the helper_get_current_project() function returns project ID (the same in the mantis_project_table).
Is there a function similar to helper_get_current_project() or should I just query the db to ...