Documentation TYPO3 par Ameos

tx_systodos Class Reference

Inheritance diagram for tx_systodos:

Inheritance graph
[legend]
Collaboration diagram for tx_systodos:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 overview_main ()
 main ()
 loadDefinition ()
 loadExecutor ()
 renderTaskList ()
 todos_link ($str, $id)
 tasks_makeTargetSelector ($be_user_Array, $be_group_Array, $type, $returnOptsOnly=0)
 renderTasks ()
 todos_finalizeWorkflow ($workflowRecord, $relRecord)
 todos_beginWorkflow ($workflowRecord)
 todos_processIncoming (&$RD_URL)
 todos_workflowTitle ($todoTypes, $type)
 todos_displayTodo ($todoTypes, $tUid)
 todos_printStatus ($rel_row, $todo_row, $workflow_row, $tUid, $countOfInstances=0)
 negateList ($list)
 exec_todos_getQueryForTodoRels ($extraWhere="", $selectFields="", $allowOwn=0)
 todos_getReviewUsers ($wfUid)
 todos_displayLists ($todoTypes, $tUid)
 todos_createForm ($todoTypes, $editRec= '')
 linkTodos ($str, $id)
 getEditRedirectUrlForReference ($recRef)
 printUserGroupName ($uid, $icon=0)

Public Attributes

 $todoTypesCache = array()
 $insCounter = 0
 $wfDef = null
 $wfExe = null
 $workflowExtIsLoaded = null

Detailed Description

Author:
Kasper Skrhj <kasperYYYY@typo3.com>

Christian Jul Jensen <christian(at)jul(dot)net>

Definition at line 36 of file class.tx_systodos.php.


Member Function Documentation

tx_systodos::exec_todos_getQueryForTodoRels extraWhere = "",
selectFields = "",
allowOwn = 0
 

Build and execute query for selecting todo items related to the current user

Parameters:
String $extraWhere: Extra where conditions
String $selectFields: Fields to select.
Bool $allowOwn: If set tasks created by the user is also selected, else only tasks assigned to the user
Returns:
Resource pointer Pointer to mysql result

Definition at line 906 of file class.tx_systodos.php.

Referenced by renderTaskList().

tx_systodos::getEditRedirectUrlForReference recRef  ) 
 

[Describe function...]

Parameters:
[type] $recRef: ...
Returns:
[type] ...

Definition at line 1213 of file class.tx_systodos.php.

References t3lib_div::getIndpEnv().

tx_systodos::linkTodos str,
id
 

[Describe function...]

Parameters:
[type] $str: ...
[type] $id: ...
Returns:
[type] ...

Definition at line 1202 of file class.tx_systodos.php.

tx_systodos::main  ) 
 

Main function called by the taskcenter framework

Returns:
[type] ...

Definition at line 62 of file class.tx_systodos.php.

References mod_user_task::$BE_USER, t3lib_extMgm::isLoaded(), and renderTasks().

tx_systodos::negateList list  ) 
 

Negate commaseperated list of integers. Negative uids are used to indicate groups, in opposition to users, in various lists.

Parameters:
String $list: commaseperated list of integers
Returns:
String commaseperated list of negated integers

Definition at line 889 of file class.tx_systodos.php.

tx_systodos::overview_main  ) 
 

Generates the overview list of todo items for the taskcenter, called from task/overview.php

Returns:
string HTML

Definition at line 48 of file class.tx_systodos.php.

References mod_user_task::headLink(), mod_user_task::mkMenuConfig(), and renderTaskList().

tx_systodos::printUserGroupName uid,
icon = 0
 

Display user or group name with

Parameters:
[type] $uid: ...
[type] $icon: ...
Returns:
[type] ...

Definition at line 1231 of file class.tx_systodos.php.

References t3lib_iconWorks::getIconImage(), and t3lib_BEfunc::getRecord().

tx_systodos::renderTaskList  ) 
 

Generate list of unfinished tasks for current user

Returns:
String HTML
Todo:
instead of showing picture depending on who created the record, it's probably more interesting to display who touched it last.

Definition at line 105 of file class.tx_systodos.php.

References exec_todos_getQueryForTodoRels(), mod_user_task::fixed_lgd(), and todos_link().

Referenced by overview_main().

tx_systodos::renderTasks  ) 
 

render a list of main tasks

Returns:
string (HTML)

Definition at line 176 of file class.tx_systodos.php.

References t3lib_div::_GP().

Referenced by main().

tx_systodos::tasks_makeTargetSelector be_user_Array,
be_group_Array,
type,
returnOptsOnly = 0
 

Generate list of possible target users and groups for the task

Parameters:
Array $be_user_Array: Array of possible users, each entry containing the keys/fields: username, usergroup, usergroup_cached_list, uid, realName, email
Array $be_group_Array:Array of possible groups, each entry containing the keys/fields: title, uid
String $type: ??? Is set to NEW on new tasks, but ...
Bool $returnOptsOnly: return only the options, not the whole selectorbox
Returns:
String The selectorbox, possibly only the options (HTML)

Definition at line 146 of file class.tx_systodos.php.

tx_systodos::todos_beginWorkflow workflowRecord  ) 
 

Creates the new record / version of the record

Parameters:
array $workflowRecord: the db record of the workflow as an array
Returns:
string ...
Todo:
dependent on the workflow record... should get info from wfDef instead

Definition at line 253 of file class.tx_systodos.php.

References t3lib_BEfunc::getRecord().

tx_systodos::todos_createForm todoTypes,
editRec = ''
 

Generate forms for creating new todo items, if a workflow_type has been submitted or a record to edit has been passed, then the form is made, else a list of possible todos is shown

Parameters:
Array $todoTypes: list of available todo items
Array $editRec: Array containg the details of the record to be edited.
Returns:
String Form that let's you create/edit a workflow record (HTML)

Definition at line 1090 of file class.tx_systodos.php.

References t3lib_div::_GP(), t3lib_BEfunc::blindUserNames(), t3lib_div::formatForTextarea(), t3lib_BEfunc::getGroupNames(), t3lib_BEfunc::getRecord(), t3lib_div::intExplode(), and t3lib_div::makeInstance().

tx_systodos::todos_displayLists todoTypes,
tUid
 

Generate dipslaying of main todo screen (right frame)

Parameters:
Array $todoTypes: Array of available todo items (for generating list to make new items)
Int $tUid: Uid for selected task (negative uid indicate ingoing task, positive outgoing)
Returns:
String HTML

Definition at line 954 of file class.tx_systodos.php.

tx_systodos::todos_displayTodo todoTypes,
tUid
 

[Describe function...]

Parameters:
[type] $todoTypes: ...
[type] $tUid: ...
Returns:
[type] ...

Definition at line 613 of file class.tx_systodos.php.

References t3lib_BEfunc::getRecord().

tx_systodos::todos_finalizeWorkflow workflowRecord,
relRecord
 

[Describe function...]

Parameters:
[type] $workflowRecord: ...
[type] $relRecord: ...
Returns:
[type] ...
Todo:
some of this should probably be controlled by wfDef

Definition at line 223 of file class.tx_systodos.php.

References t3lib_BEfunc::getRecord().

tx_systodos::todos_getReviewUsers wfUid  ) 
 

Get allowed review users for workflow with uid $wfUid

Parameters:
Int $wfUid: Uid on workflow record
Returns:
Array Array of users keyed by the uid, containg the fields: uid, username,realname

Definition at line 931 of file class.tx_systodos.php.

References t3lib_BEfunc::deleteClause().

tx_systodos::todos_link str,
id
 

Make $str link to task with $id

Parameters:
String $str: Text to wrap in link
Int $id: uid of task to link to
Returns:
String link (HTML)

Definition at line 132 of file class.tx_systodos.php.

Referenced by renderTaskList().

tx_systodos::todos_printStatus rel_row,
todo_row,
workflow_row,
tUid,
countOfInstances = 0
 

[Describe function...]

Parameters:
[type] $rel_row: ...
[type] $todo_row: ...
[type] $workflow_row: ...
[type] $tUid: ...
[type] $countOfInstances: ...
Returns:
[type] ...

Definition at line 691 of file class.tx_systodos.php.

References t3lib_BEfunc::blindUserNames(), t3lib_BEfunc::getGroupNames(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecord(), and t3lib_div::intExplode().

tx_systodos::todos_processIncoming &$  RD_URL  ) 
 

Procees the incoming data, writing logs changing target user,

Parameters:
[type] $tUid: ...
Returns:
[type] ...

Definition at line 275 of file class.tx_systodos.php.

References t3lib_div::_GP(), t3lib_BEfunc::deleteClause(), t3lib_BEfunc::getRecord(), and t3lib_BEfunc::getRecordRaw().

tx_systodos::todos_workflowTitle todoTypes,
type
 

[Describe function...]

Parameters:
[type] $todoTypes: ...
[type] $type: ...
Returns:
[type] ...

Definition at line 594 of file class.tx_systodos.php.

References t3lib_BEfunc::getRecord().


The documentation for this class was generated from the following file:


Gnr par TYPO3 Ameos avec  doxygen 1.4.6