|
dolibarr
x.y.z
|
Functions used by project module. More...
Go to the source code of this file.
Functions | |
| project_prepare_head (Project $project, $moreparam='') | |
| Prepare array with list of tabs. More... | |
| task_prepare_head ($object) | |
| Prepare array with list of tabs. More... | |
| project_timesheet_prepare_head ($mode, $fuser=null) | |
| Prepare array with list of tabs. More... | |
| project_admin_prepare_head () | |
| Prepare array with list of tabs. More... | |
| projectLinesa (&$inc, $parent, &$lines, &$level, $var, $showproject, &$taskrole, $projectsListId='', $addordertick=0, $projectidfortotallink=0, $filterprogresscalc='', $showbilltime=0, $arrayfields=array()) | |
| Show task lines with a particular parent. More... | |
| projectLinesPerAction (&$inc, $parent, $fuser, $lines, &$level, &$projectsrole, &$tasksrole, $mine, $restricteditformytask, $preselectedday, &$isavailable, $oldprojectforbreak=0) | |
| Output a task line into a pertime intput mode. More... | |
| projectLinesPerDay (&$inc, $parent, $fuser, $lines, &$level, &$projectsrole, &$tasksrole, $mine, $restricteditformytask, $preselectedday, &$isavailable, $oldprojectforbreak=0, $arrayfields=array(), $extrafields=null) | |
| Output a task line into a pertime intput mode. More... | |
| projectLinesPerWeek (&$inc, $firstdaytoshow, $fuser, $parent, $lines, &$level, &$projectsrole, &$tasksrole, $mine, $restricteditformytask, &$isavailable, $oldprojectforbreak=0, $arrayfields=array(), $extrafields=null) | |
| Output a task line into a perday intput mode. More... | |
| projectLinesPerMonth (&$inc, $firstdaytoshow, $fuser, $parent, $lines, &$level, &$projectsrole, &$tasksrole, $mine, $restricteditformytask, &$isavailable, $oldprojectforbreak=0, $TWeek=array()) | |
| Output a task line into a perday intput mode. More... | |
| searchTaskInChild (&$inc, $parent, &$lines, &$taskrole) | |
| Search in task lines with a particular parent if there is a task for a particular user (in taskrole) More... | |
| print_projecttasks_array ($db, $form, $socid, $projectsListId, $mytasks=0, $status=-1, $listofoppstatus=array(), $hiddenfields=array()) | |
| Return HTML table with list of projects and number of opened tasks. More... | |
| getTaskProgressView ($task, $label=true, $progressNumber=true, $hideOnProgressNull=false, $spaced=false) | |
| getTaskProgressBadge ($task, $label='', $tooltip='') | |
Functions used by project module.
Definition in file project.lib.php.
| getTaskProgressBadge | ( | $task, | |
$label = '', |
|||
$tooltip = '' |
|||
| ) |
| Task | $task | the task object |
| string | $label | empty = auto (progress), string = replace output |
| string | $tooltip | empty = auto , string = replace output |
Definition at line 2882 of file project.lib.php.
| getTaskProgressView | ( | $task, | |
$label = true, |
|||
$progressNumber = true, |
|||
$hideOnProgressNull = false, |
|||
$spaced = false |
|||
| ) |
| Task | $task | the task object |
| bool | string | $label | true = auto, false = dont display, string = replace output |
| bool | string | $progressNumber | true = auto, false = dont display, string = replace output |
| bool | $hideOnProgressNull | hide if progress is null |
| bool | $spaced | used to add space at bottom (made by css) |
Definition at line 2750 of file project.lib.php.
| print_projecttasks_array | ( | $db, | |
| $form, | |||
| $socid, | |||
| $projectsListId, | |||
$mytasks = 0, |
|||
$status = -1, |
|||
$listofoppstatus = array(), |
|||
$hiddenfields = array() |
|||
| ) |
Return HTML table with list of projects and number of opened tasks.
| DoliDB | $db | Database handler |
| Form | $form | Object form |
| int | $socid | Id thirdparty |
| int | $projectsListId | Id of project I have permission on |
| int | $mytasks | Limited to task I am contact to |
| int | $status | -1=No filter on statut, 0 or 1 = Filter on status |
| array | $listofoppstatus | List of opportunity status |
| array | $hiddenfields | List of info to not show ('projectlabel', 'declaredprogress', '...', ) |
Definition at line 2432 of file project.lib.php.
| project_admin_prepare_head | ( | ) |
Prepare array with list of tabs.
Definition at line 505 of file project.lib.php.
| project_prepare_head | ( | Project | $project, |
$moreparam = '' |
|||
| ) |
Prepare array with list of tabs.
| Project | $project | Object related to tabs |
| string | $moreparam | More param on url |
Definition at line 38 of file project.lib.php.
| project_timesheet_prepare_head | ( | $mode, | |
$fuser = null |
|||
| ) |
Prepare array with list of tabs.
| string | $mode | Mode |
| string | $fuser | Filter on user |
Definition at line 457 of file project.lib.php.
| projectLinesa | ( | & | $inc, |
| $parent, | |||
| & | $lines, | ||
| & | $level, | ||
| $var, | |||
| $showproject, | |||
| & | $taskrole, | ||
$projectsListId = '', |
|||
$addordertick = 0, |
|||
$projectidfortotallink = 0, |
|||
$filterprogresscalc = '', |
|||
$showbilltime = 0, |
|||
$arrayfields = array() |
|||
| ) |
Show task lines with a particular parent.
| string | $inc | Line number (start to 0, then increased by recursive call) |
| string | $parent | Id of parent project to show (0 to show all) |
| Task[] | $lines | Array of lines |
| int | $level | Level (start to 0, then increased/decrease by recursive call), or -1 to show all level in order of $lines without the recursive groupment feature. |
| string | $var | Color |
| int | $showproject | Show project columns |
| int | $taskrole | Array of roles of user for each tasks |
| int | $projectsListId | List of id of project allowed to user (string separated with comma) |
| int | $addordertick | Add a tick to move task |
| int | $projectidfortotallink | 0 or Id of project to use on total line (link to see all time consumed for project) |
| string | $filterprogresscalc | filter text |
| string | $showbilltime | Add the column 'TimeToBill' and 'TimeBilled' |
| array | $arrayfields | Array with displayed coloumn information |
Definition at line 574 of file project.lib.php.
| projectLinesPerAction | ( | & | $inc, |
| $parent, | |||
| $fuser, | |||
| $lines, | |||
| & | $level, | ||
| & | $projectsrole, | ||
| & | $tasksrole, | ||
| $mine, | |||
| $restricteditformytask, | |||
| $preselectedday, | |||
| & | $isavailable, | ||
$oldprojectforbreak = 0 |
|||
| ) |
Output a task line into a pertime intput mode.
| string | $inc | Line number (start to 0, then increased by recursive call) |
| string | $parent | Id of parent task to show (0 to show all) |
| User | null | $fuser | Restrict list to user if defined |
| Task[] | $lines | Array of lines |
| int | $level | Level (start to 0, then increased/decrease by recursive call) |
| string | $projectsrole | Array of roles user has on project |
| string | $tasksrole | Array of roles user has on task |
| string | $mine | Show only task lines I am assigned to |
| int | $restricteditformytask | 0=No restriction, 1=Enable add time only if task is a task i am affected to |
| int | $preselectedday | Preselected day |
| array | $isavailable | Array with data that say if user is available for several days for morning and afternoon |
| int | $oldprojectforbreak | Old project id of last project break |
Definition at line 1084 of file project.lib.php.
| projectLinesPerDay | ( | & | $inc, |
| $parent, | |||
| $fuser, | |||
| $lines, | |||
| & | $level, | ||
| & | $projectsrole, | ||
| & | $tasksrole, | ||
| $mine, | |||
| $restricteditformytask, | |||
| $preselectedday, | |||
| & | $isavailable, | ||
$oldprojectforbreak = 0, |
|||
$arrayfields = array(), |
|||
$extrafields = null |
|||
| ) |
Output a task line into a pertime intput mode.
| string | $inc | Line number (start to 0, then increased by recursive call) |
| string | $parent | Id of parent task to show (0 to show all) |
| User | null | $fuser | Restrict list to user if defined |
| Task[] | $lines | Array of lines |
| int | $level | Level (start to 0, then increased/decrease by recursive call) |
| string | $projectsrole | Array of roles user has on project |
| string | $tasksrole | Array of roles user has on task |
| string | $mine | Show only task lines I am assigned to |
| int | $restricteditformytask | 0=No restriction, 1=Enable add time only if task is assigned to me, 2=Enable add time only if tasks is assigned to me and hide others |
| int | $preselectedday | Preselected day |
| array | $isavailable | Array with data that say if user is available for several days for morning and afternoon |
| int | $oldprojectforbreak | Old project id of last project break |
| array | $arrayfields | Array of additional column |
| Extrafields | $extrafields | Object extrafields |
Definition at line 1319 of file project.lib.php.
| projectLinesPerMonth | ( | & | $inc, |
| $firstdaytoshow, | |||
| $fuser, | |||
| $parent, | |||
| $lines, | |||
| & | $level, | ||
| & | $projectsrole, | ||
| & | $tasksrole, | ||
| $mine, | |||
| $restricteditformytask, | |||
| & | $isavailable, | ||
$oldprojectforbreak = 0, |
|||
$TWeek = array() |
|||
| ) |
Output a task line into a perday intput mode.
| string | $inc | Line output identificator (start to 0, then increased by recursive call) |
| int | $firstdaytoshow | First day to show |
| User | null | $fuser | Restrict list to user if defined |
| string | $parent | Id of parent task to show (0 to show all) |
| Task[] | $lines | Array of lines (list of tasks but we will show only if we have a specific role on task) |
| int | $level | Level (start to 0, then increased/decrease by recursive call) |
| string | $projectsrole | Array of roles user has on project |
| string | $tasksrole | Array of roles user has on task |
| string | $mine | Show only task lines I am assigned to |
| int | $restricteditformytask | 0=No restriction, 1=Enable add time only if task is a task i am affected to |
| array | $isavailable | Array with data that say if user is available for several days for morning and afternoon |
| int | $oldprojectforbreak | Old project id of last project break |
| array | $TWeek | Array of week numbers |
Definition at line 2118 of file project.lib.php.
| projectLinesPerWeek | ( | & | $inc, |
| $firstdaytoshow, | |||
| $fuser, | |||
| $parent, | |||
| $lines, | |||
| & | $level, | ||
| & | $projectsrole, | ||
| & | $tasksrole, | ||
| $mine, | |||
| $restricteditformytask, | |||
| & | $isavailable, | ||
$oldprojectforbreak = 0, |
|||
$arrayfields = array(), |
|||
$extrafields = null |
|||
| ) |
Output a task line into a perday intput mode.
| string | $inc | Line output identificator (start to 0, then increased by recursive call) |
| int | $firstdaytoshow | First day to show |
| User | null | $fuser | Restrict list to user if defined |
| string | $parent | Id of parent task to show (0 to show all) |
| Task[] | $lines | Array of lines (list of tasks but we will show only if we have a specific role on task) |
| int | $level | Level (start to 0, then increased/decrease by recursive call) |
| string | $projectsrole | Array of roles user has on project |
| string | $tasksrole | Array of roles user has on task |
| string | $mine | Show only task lines I am assigned to |
| int | $restricteditformytask | 0=No restriction, 1=Enable add time only if task is assigned to me, 2=Enable add time only if tasks is assigned to me and hide others |
| array | $isavailable | Array with data that say if user is available for several days for morning and afternoon |
| int | $oldprojectforbreak | Old project id of last project break |
| array | $arrayfields | Array of additional column |
| Extrafields | $extrafields | Object extrafields |
Definition at line 1725 of file project.lib.php.
| searchTaskInChild | ( | & | $inc, |
| $parent, | |||
| & | $lines, | ||
| & | $taskrole | ||
| ) |
Search in task lines with a particular parent if there is a task for a particular user (in taskrole)
| string | $inc | Counter that count number of lines legitimate to show (for return) |
| int | $parent | Id of parent task to start |
| array | $lines | Array of all tasks |
| string | $taskrole | Array of task filtered on a particular user |
Definition at line 2393 of file project.lib.php.
| task_prepare_head | ( | $object | ) |
Prepare array with list of tabs.
| Object | $object | Object related to tabs |
Definition at line 350 of file project.lib.php.