Files: 5
Total filesizes: 209 Kbytes
Functions and classes: 128
General class for the 'Tandem' extension, all plugins inherit from this class
Plugin 'Tandem' for the 'tandem' extension.
Base class for the 'frontendformslib' extension
modified and extended for tandem extension by
Plugin 'mentor' for the 'Tandem' extension.
Plugin 'Registration foprm' for the 'Tandem' extension.
General class for the 'Tandem' extension, all plugins inherit from this class
| Filesize: | 43 K |
| Func/Classes: | 32 |
| Tags: | @author Nico de Haen <mail@ndh-websolutions.de> |
Setting class variables from Typoscript (if set) or default pids
generates an error message if required settings are missing
| Returns: | string | HTML (empty if no error) |
| Total Usage: | 15 | |
| 5 | pi1/class.tx_tandem_pi1.php | |
| 3 | res/class.tx_tandem_formslib.php | |
| 4 | pi2/class.tx_tandem_pi2.php | |
| 3 | pi3/class.tx_tandem_pi3.php | |
Are there new messages?
| $filter1 = '' | [type] | $filter1: ... |
| $filter2 | [type] | $filter2: ... |
| $receivedMessages=false | [type] | $receivedMessages: ... |
| Returns: | string | HTML |
| Total Usage: | 4 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
performs the mailings and sets the status of the message (initated from links in mails or message list
possible status of messages
0 => No reports
1 => Tandem Success reported from sender
2 => Tandem Failure reported from sender
3 => Tandem Success reported from recipient
4 => Tandem Failure reported from recipient
5 => Tandem Failure confirmed
6 => Tandem Success reported
9 => Tandem inconsistence
| $user_id | int | $user_id the uid of the user who initiated the status update |
| $message_id | int | $message_id the uid of the message which status updated |
| $status | int | $status the status that is reported (1 for success, 2 for failure) |
| Returns: | string | HTML |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
saving a successfull tandem
| $message_uid | int | $user_uid ID of the user who triggeredf the function |
| $user_uid | int | $message_uid ID of the message |
| Returns: | void | |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
gets data from the database based on the user_id of the current user
| $table | string | name of the table |
| $selectFields = '*' | array | fields as key=>value pairs |
| Returns: | [type] | ... |
| Total Usage: | 12 | |
| 3 | class.tx_tandem.php | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 6 | pi3/class.tx_tandem_pi3.php | |
inserts the data in the database
| $table | string | name of the table |
| $fieldArr | array | fields as key=>value pairs |
| Returns: | int | SQL insert ID |
| Total Usage: | 11 | |
| 2 | class.tx_tandem.php | |
| 3 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 5 | pi3/class.tx_tandem_pi3.php | |
inserts the data in the database
| $table | string | name of the table |
| $uid | $fieldArr | array fields as key=>value pairs |
| $fieldArr | [type] | $fieldArr: ... |
| Returns: | pointer | MySQL result pointer / DBAL object |
| Total Usage: | 44 | |
| 14 | class.tx_tandem.php | |
| 4 | pi1/class.tx_tandem_pi1.php | |
| 5 | pi2/class.tx_tandem_pi2.php | |
| 21 | pi3/class.tx_tandem_pi3.php | |
wrapper for exec_SELECTgetRows
| $fields | string | name of the table |
| $table | array | fields as comma separated list |
| $addWhere | [type] | $addWhere: ... |
| Returns: | array | assoziative array (can have 2 or 3 level, depending on the number of result rows) |
| Total Usage: | 19 | |
| 4 | class.tx_tandem.php | |
| 3 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
| 10 | pi3/class.tx_tandem_pi3.php | |
returns the value of a single field in a result row
| $field | string | $field name of the field |
| $table | string | $table name of the table |
| $addWhere | string | $addWhere WHERE conditions |
| Returns: | value | of the field or false |
| Total Usage: | 6 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
| 2 | pi3/class.tx_tandem_pi3.php | |
returns a list of names
| $table | string | name of the table |
| $sessionData | array | session data |
| Returns: | array | with the data from a subarray (key is the table name) |
| Total Usage: | 9 | |
| 3 | pi1/class.tx_tandem_pi1.php | |
| 3 | pi2/class.tx_tandem_pi2.php | |
| 3 | pi3/class.tx_tandem_pi3.php | |
returns a list of names
| $table | string | name of the table |
| $list | string | comma separaterd list with IDs |
| Returns: | string | comma separaterd list with names |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
wrapper for pi_getLL adds the prefix tx_tandem to the key string
tries to get the string in langkey language (for mails, independant of the website language)
enables the display of the fieldnames of the local lang Array to help translators find the appropriate field
return string value from LOCAL_LANG
| $string | string | $string the key for the LOCAL_LANG array |
| $langkey='' | string | $langkey the key for the language different from $this->LLkey |
| Returns: | [type] | ... |
| Total Usage: | 259 | |
| 62 | class.tx_tandem.php | |
| 64 | pi1/class.tx_tandem_pi1.php | |
| 1 | res/class.tx_tandem_formslib.php | |
| 50 | pi2/class.tx_tandem_pi2.php | |
| 82 | pi3/class.tx_tandem_pi3.php | |
| Returns: | ||
| Total Usage: | 4 | |
| 1 | class.tx_tandem.php | |
| 3 | pi3/class.tx_tandem_pi3.php | |
returns a list of names, localized(translated in Backend) if available, otherwise default language
| $table | string | name of the table |
| $list | string | comma separaterd list with IDs |
| Returns: | string | comma separaterd list with names |
| Total Usage: | 4 | |
| 2 | class.tx_tandem.php | |
| 2 | pi3/class.tx_tandem_pi3.php | |
checks the login status and returns an integer
possible tandem user status values:
0 : new registered user who didn't activate his account
1 : user who changed his email and didn't activate his account
2 : new registered user who activated his account
4 : registered and activated tandem user
9 : the user has been inactive and got a request to reactivate his account
possible return values:
0 : no login
1 : user who is not yet tandem member (tandem specific data missing)
2 : user who didn't activate his account
3 : new registered user who just activated his account
4 : registered and activated tandem user
| Returns: | integer | depending on the login status |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
adds several tandem specific fields to the fe_user
return void
| $tandem_user_uid | int | $tandem_user_uid the uid of the tandem user |
| Returns: | [type] | ... |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi1/class.tx_tandem_pi1.php | |
returns an array with the users messages
'today' : only messages from today,
| $filter1='all' | string | $filter which messages to filter |
| $filter2='tandem' | boolean | $receivedMessages only select received messages |
| $receivedMessages=false | array | fields as key=>value pairs |
| Returns: | [type] | ... |
| Total Usage: | 5 | |
| 3 | class.tx_tandem.php | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
formatting the values of an result array according to the field types
| $input_array | array | $input_array: assoziative array fieldname=>fieldvalue |
| Returns: | array | assoziative array fieldname=>new fieldvalue |
| Total Usage: | 6 | |
| 3 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
converts a date string into the according Unix timestamp,
depending on the dateFormat string
| $s | string | $s date string ('24-12-2003' or '24.12.04' etc.) |
| Returns: | int | tstamp |
| Total Usage: | 3 | |
| 1 | class.tx_tandem.php | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
calculates the current age of a person from a Unix timestamp,
| $tstamp | int | Unix timesatmp |
| Returns: | int | age in years |
| Total Usage: | 5 | |
| 1 | class.tx_tandem.php | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
customized pi function
| $showResultCount=1 | [type] | $showResultCount: ... |
| $tableParams='' | [type] | $tableParams: ... |
| Returns: | [type] | ... |
| Total Usage: | 2 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
sends an email to recipient
| $currentEvalErrors | string | $recipient |
| string | $subject | |
| string | $message | |
| Returns: | [type] | ... |
| Total Usage: | 4 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 2 | pi3/class.tx_tandem_pi3.php | |
function to display a link to the previous page
| $fileName | array | $overrulePIvars with new values to reset the url params |
| Returns: | string | HTML |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
function to display a link to the previous page
| $overrulePIvars = array() | array | $overrulePIvars with new values to reset the url params |
| Returns: | string | HTML |
| Total Usage: | 4 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
function to build HTML tables
| $tdVals | array | $tdVals values to display in table cells td |
| $rowClass='default' | string | css class |
| Returns: | void | |
| Total Usage: | 11 | |
| 2 | class.tx_tandem.php | |
| 6 | pi1/class.tx_tandem_pi1.php | |
| 3 | pi2/class.tx_tandem_pi2.php | |
function to build HTML tables
| $params='class="result_list_table" ' | string | css class |
| Returns: | string | HTML table |
| Total Usage: | 7 | |
| 1 | class.tx_tandem.php | |
| 4 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
returns a link in HTML format
| $label | string | $label of the link |
| $addParams = array() | array | $addParams $key => $value of GET-parameter which should be added |
| $replaceParams=array() | array | $replaceParams $key => $value of GET-parameter which should be replaced from standard parameter array |
| $class='' | string | (optional) with a css class attribute |
| $title = '' | [type] | $title: ... |
| $addParamsOnly = false | [type] | $addParamsOnly: ... |
| Returns: | string | link HTML |
| Total Usage: | 23 | |
| 4 | class.tx_tandem.php | |
| 6 | pi1/class.tx_tandem_pi1.php | |
| 6 | pi2/class.tx_tandem_pi2.php | |
| 7 | pi3/class.tx_tandem_pi3.php | |
formatting of errors
| $string | string | $string error message |
| $lang_flag = 0 | [type] | $lang_flag: ... |
| Returns: | HTML | formatted error message |
| @boolean $lang_flag if the error message should be translated (could be values from config or data base) | ||
| Total Usage: | 13 | |
| 3 | class.tx_tandem.php | |
| 4 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
| 4 | pi3/class.tx_tandem_pi3.php | |
formatting of notes
| $string | string | $string notes |
| $lang_flag = 0 | [type] | $lang_flag: ... |
| Returns: | HTML | formatted notes |
| @boolean $lang_flag if the notes should be translated | ||
| Total Usage: | 4 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
wrapper for php function mail() sends an email to recipient
| $recipient | string | $recipient |
| $subject | string | $subject |
| $message | string | $message |
| Returns: | [type] | ... |
| Total Usage: | 16 | |
| 5 | class.tx_tandem.php | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 10 | pi3/class.tx_tandem_pi3.php | |
| Returns: | ||
| Total Usage: | 15 | |
| 5 | pi1/class.tx_tandem_pi1.php | |
| 4 | pi2/class.tx_tandem_pi2.php | |
| 6 | pi3/class.tx_tandem_pi3.php | |
Plugin 'Tandem' for the 'tandem' extension.
| Filesize: | 35 K |
| Func/Classes: | 20 |
| Tags: | @author Nico de Haen <mail@ndh-websolutions.de> |
main function
| $content | [type] | $content: ... |
| $conf | [type] | $conf: ... |
| Returns: | [type] | ... |
| Total Usage: | 0 | |
| Returns: | ||
| Total Usage: | 15 | |
| 5 | pi1/class.tx_tandem_pi1.php | |
| 3 | res/class.tx_tandem_formslib.php | |
| 4 | pi2/class.tx_tandem_pi2.php | |
| 3 | pi3/class.tx_tandem_pi3.php | |
Shows the login screen
| Returns: | string | HTML Form |
| Total Usage: | 1 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
Shows a welcome message and updates the status in tx_tandem_users
| Returns: | string | HTML Form |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the infoBar
| Returns: | string | HTML |
| Total Usage: | 2 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
Shows amessage if the user has not yet activated his account or the tandem specific register form, if
tandem specific data is missing
| Returns: | string | HTML Form |
| Total Usage: | 0 | |
Renders the menu
| Returns: | string | HTML Form |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the message list or the message form
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
Renders the tandem search view
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
Renders the tandem search edit page
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
form for sending messages
| Returns: | string | HTML form |
| Total Usage: | 2 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
request form
| $search_fields=array() | array | (optional) search_fields for loading a saved search |
| Returns: | void | |
| Total Usage: | 2 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
performs the activation process
| $user_id | int | $user_id uid of fe_users |
| Returns: | string | HTML |
| Total Usage: | 1 | |
| 1 | pi3/class.tx_tandem_pi3.php | |
saving a successfull tandem
| $message_uid | int | $user_uid ID of the user who triggeredf the function |
| $user_uid | int | $message_uid ID of the message |
| Returns: | void | |
| Total Usage: | 0 | |
details of a tandem partner and a tandem request
| Returns: | [type] | ... |
| @returns string HTML table | ||
| Total Usage: | 1 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
search for a tandem partner, using values from $fields and from $this->fe_user
| $fields | array | fields as key=>value pairs |
| Returns: | [type] | ... |
| Total Usage: | 3 | |
| 3 | pi1/class.tx_tandem_pi1.php | |
deletes a requests
| $uid | int | $uid uid of the request |
| Returns: | string | confirm message |
| Total Usage: | 1 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
returns an array with the users requests
| string | name of the table | |
| array | fields as key=>value pairs | |
| Returns: | [type] | ... |
| Total Usage: | 4 | |
| 4 | pi1/class.tx_tandem_pi1.php | |
adds several tandem specific fields to the fe_user
the general parent function has no requests function so we wrap it here
return void
| $tandem_user_uid | int | $tandem_user_uid the uid of the tandem user |
| Returns: | [type] | ... |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi1/class.tx_tandem_pi1.php | |
Base class for the 'frontendformslib' extension
modified and extended for tandem extension by
| Filesize: | 53 K |
| Func/Classes: | 36 |
| Tags: | @author Robert Lemke <robert@typo3.org> @coauthor Nico de Haen |
Constructor for PHP4 compability
| &$pObj | object | $pObj: Reference to the parent object (a tslib_pibase) |
| Returns: | mixed | result from the real constructor (if any) |
| Total Usage: | 0 | |
Constructor, initializes basics
| &$pObj | object | $pObj: Reference to the parent object (a tslib_pibase) |
| Returns: | void | |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Init function. Always call this function after you have configured the formObj
and before you use any data or render the form!
| Returns: | void | |
| Total Usage: | 15 | |
| 5 | pi1/class.tx_tandem_pi1.php | |
| 3 | res/class.tx_tandem_formslib.php | |
| 4 | pi2/class.tx_tandem_pi2.php | |
| 3 | pi3/class.tx_tandem_pi3.php | |
Renders the whole frontend form containing the labels and fields of the current step and
various submit buttons depending on the current situation.
| $formType = '' | [type] | $formType: ... |
| Returns: | string | HTML form containing a table of labels and fields |
| Total Usage: | 11 | |
| 4 | pi1/class.tx_tandem_pi1.php | |
| 3 | pi2/class.tx_tandem_pi2.php | |
| 4 | pi3/class.tx_tandem_pi3.php | |
Renders the current step containing the labels and fields of the current step
| Returns: | string | HTML output: labels and fields |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders an HTML div container with number and label of the current step and how
many steps are following
| Returns: | string | HTML output. |
| Total Usage: | 0 | |
Renders an HTML table containing all information from the different steps.
| Returns: | string | HTML output. |
| Total Usage: | 0 | |
Wraps the given content with an HTML form tag
| $content | string | $content: Content to be wrapped |
| Returns: | string | The given string wrapped by a configured form tag |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders one or more buttons (previous, next, cancel) depending on the
current settings and situation.
| Returns: | string | HTML button(s) |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders the buttons for the tandem search
| Returns: | string | HTML button(s) |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Returns the label of a single field wrapped into label tags. In 'tca' mode the label will be taken from
the TCA configuration of that field. It may override this label by specifiying a property 'label' in
the field configuration.
| $fieldConf | array | $fieldconf: The configuration for that field |
| $rawLabelOnly = FALSE | boolean | $rawLabelOnly: If set to TRUE, the label won't be wrapped with <label> tags |
| Returns: | string | Label for the specified field ready for insertion into an HTML form |
| Total Usage: | 3 | |
| 3 | res/class.tx_tandem_formslib.php | |
Returns a single field
| $fieldConf | array | $fieldconf: The configuration for that field |
| Returns: | string | HTML representation of the given field |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders a single field of the type "input"
| $fieldConf | array | $fieldConf: The formslib specific field configuration array |
| $tcaFieldConf | array | $tcaFieldConf: The TCA configuration |
| Returns: | string | HTML representation of the field |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders a single field of the type "text"
| $fieldConf | array | $fieldConf: The formslib specific field configuration array |
| $tcaFieldConf | array | $tcaFieldConf: The TCA configuration |
| Returns: | string | HTML representation of the field |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders a single field of the type "checkbox"
| $fieldConf | array | $fieldConf: The formslib specific field configuration array |
| $tcaFieldConf | array | $tcaFieldConf: The TCA configuration |
| Returns: | string | HTML representation of the field |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders a single field of the type "checkbox"
| $fieldConf | array | $fieldConf: The formslib specific field configuration array |
| $tcaFieldConf | array | $tcaFieldConf: The TCA configuration |
| Returns: | string | HTML representation of the field |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders a single field of the type "select"
| $fieldConf | array | $fieldConf: The formslib specific field configuration array |
| $tcaFieldConf | array | $tcaFieldConf: The TCA configuration |
| Returns: | string | HTML representation of the field |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Renders a single field of the type "group"
| $fieldConf | array | $fieldConf: The formslib specific field configuration array |
| $tcaFieldConf | array | $tcaFieldConf: The TCA configuration |
| Returns: | string | HTML representation of the field |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Evaluates all fields
| &$fieldsValuesArr | array | &$fieldsValuesArr: An array of tables with an array of field names and values array ('table' => array('field' => 'value', 'table2' => ...). Will contain the evaluated, possibly modified values. |
| Returns: | mixed | TRUE if all fields contain allowed values, array of tables/field identifiers which caused errors (identifier: tablename|fieldname) |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Evaluates all fields of a certain step
| $step | integer | $step: Step number |
| &$fieldsValuesArr | array | &$fieldsValuesArr: An array of tables with an array of field names and values array ('table' => array('field' => 'value', 'table2' => ...). Will contain the evaluated, possibly modified values. |
| Returns: | mixed | TRUE if all fields contain allowed values, array of tables/field identifiers which caused errors (identifier: tablename|fieldname) |
| Total Usage: | 2 | |
| 2 | res/class.tx_tandem_formslib.php | |
Evaluates a single field
| $fieldConf | array | $fieldConf: The configuration of the field to be checked |
| $value | mixed | $value: The value to check |
| Returns: | array | If $value was valid it will be returned (possibly modified) as the value of key 'value'. If $value was not valid, the value of key 'value' will be NULL. |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
parses recursive through $_FILES to get uncomplete or failed uploads
$this->uploadError will be true after execution, if an error was found
| Returns: | void | |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
helper function for getUploadError
sets $this->uploadError true if an error was found
| $item | [type] | $item: ... |
| $key | [type] | $key: ... |
| Returns: | void | |
| Total Usage: | 0 | |
validates a email adress
| string | ||
| Returns: | boolean | true if the email is valid |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
validates a string
| $s | string | $date |
| Returns: | boolean | true if the date is valid |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
validates a file according to eval fields set in $tcaFieldConf
| $tcaConfig | array | $tcaConfig: Array with the config settings |
| $fileArray | array | $fileArray filled from $_FILES |
| $table | string | $table name of the table, where the values should be uodated |
| $field | string | $field name of the field which should be uodated |
| Returns: | array | with 'value'=>'filename' which will be passed to $this->sessionData |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
saves the uploaded files, (has to be called from outside!)
| Returns: | array | |
| Total Usage: | 1 | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Processes incoming POST data and stores it into the current FE session
| Returns: | void | |
| Total Usage: | 1 | |
| 1 | res/class.tx_tandem_formslib.php | |
Implodes an associative array. Similar script found on php.net
| $inner_glue = "=" | string | $inner_glue: Glue between key and value |
| $outer_glue = "\n" | string | $outer_glue: Glue between key-value sets |
| $array = null | array | $array: The array to implode |
| $keepOuterKey = false | boolean | $keepOuterKey: If set to TRUE, keys which have a value of type array will also be added. |
| Returns: | string | Imploded array |
| Total Usage: | 6 | |
| 6 | res/class.tx_tandem_formslib.php | |
Creates a configuration array for one step.
| $fieldNames | string | $fieldNames: A comma separated list of field names |
| $table='' | string | $table: The table name for all fields. Leaving the table empty means the default table (if configured) will be used later on |
| $stepLabel='' | string | $stepLabel: A label (header) for the step. Optional. You may use language splits (LLL:EXT:yourext/locallang.php etc.) |
| $infoText='' | string | $infoText: Some text to be shown just before the form. Won't be htmlspecialchared, make sure that it doesn't contain bad HTML code! |
| Returns: | array | step configuration array |
| Total Usage: | 9 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 1 | res/class.tx_tandem_formslib.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
| 4 | pi3/class.tx_tandem_pi3.php | |
Enables the manual manipulation of single values in $tcaFieldConf
| $table | string | $table: The table of the field to be configured |
| $field | string | $field: The field to be configured |
| $stepIndex | integer | $stepIndex: The index of the step Array which should be manipulated |
| $configArray | array | $configArray: Array with the values that should be set (overriding the TCA values) |
| $label = "" | [type] | $label: ... |
| Returns: | void | |
| Total Usage: | 12 | |
| 2 | pi1/class.tx_tandem_pi1.php | |
| 5 | pi2/class.tx_tandem_pi2.php | |
| 5 | pi3/class.tx_tandem_pi3.php | |
Adding fields to the stepConf
| $fields | string | $table: The table of the field to be configured |
| $table | string | $field: The field to be configured |
| $stepConfIndex | integer | $stepIndex: The index of the step Array |
| Returns: | void | |
| Total Usage: | 0 | |
Returns the current session data containing all information entered into the form fields so far.
You might want to use this data in your own functions for generating an overview of all entered data
before finally submitting the order or registration.
| Returns: | array | session data array |
| Total Usage: | 0 | |
Destroys the session data for the current form. Call this method if you'd like to discard the
form data after a successful submission of the form or if submission should be cancelled.
| Returns: | void; | |
| Total Usage: | 10 | |
| 5 | pi1/class.tx_tandem_pi1.php | |
| 3 | pi2/class.tx_tandem_pi2.php | |
| 2 | pi3/class.tx_tandem_pi3.php | |
Plugin 'mentor' for the 'Tandem' extension.
| Filesize: | 27 K |
| Func/Classes: | 16 |
| Tags: | @author Nico de Haen <mail@ndh-websolutions.de> |
main function
| $content | [type] | $content: ... |
| $conf | [type] | $conf: ... |
| Returns: | [type] | ... |
| Total Usage: | 0 | |
| Returns: | ||
| Total Usage: | 15 | |
| 5 | pi1/class.tx_tandem_pi1.php | |
| 3 | res/class.tx_tandem_formslib.php | |
| 4 | pi2/class.tx_tandem_pi2.php | |
| 3 | pi3/class.tx_tandem_pi3.php | |
Shows a welcome message and updates the status in tx_tandem_users
| Returns: | string | HTML Form |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the menu
| Returns: | string | HTML Form |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the infoBar
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
Renders the welcome message and the links on the startpage
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Updates the user status: searching/mentoring active or not
set_status = 1 means activate
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the message list or the message form
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
Renders the mentoring search view
| Returns: | string | HTML Form |
| Total Usage: | 1 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
form for sending messages
| Returns: | string | HTML form |
| Total Usage: | 2 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
search form
| $searchFields=array() | array | (optional) searchFields for loading a saved search |
| Returns: | void | |
| Total Usage: | 1 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
performs the activation process
| $user_id | int | $user_id uid of fe_users |
| Returns: | string | HTML |
| Total Usage: | 1 | |
| 1 | pi3/class.tx_tandem_pi3.php | |
details of a potential mentoring partner
| Returns: | [type] | ... |
| @returns string HTML table | ||
| Total Usage: | 1 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
search for a tandem partner, using values from $fields and from $this->fe_user
| $fields | array | fields as key=>value pairs |
| Returns: | [type] | ... |
| Total Usage: | 2 | |
| 2 | pi2/class.tx_tandem_pi2.php | |
wrapper for pi_getLL adds the prefix mentor_ to the key string if the plugin should display the view for mentors
so we don't need to differentiate each time we are calling $this->getLL
return string value from LOCAL_LANG
| $string | string | $string the key for the LOCAL_LANG array |
| Returns: | [type] | ... |
| Total Usage: | 259 | |
| 62 | class.tx_tandem.php | |
| 64 | pi1/class.tx_tandem_pi1.php | |
| 1 | res/class.tx_tandem_formslib.php | |
| 50 | pi2/class.tx_tandem_pi2.php | |
| 82 | pi3/class.tx_tandem_pi3.php | |
Plugin 'Registration foprm' for the 'Tandem' extension.
| Filesize: | 50 K |
| Func/Classes: | 24 |
| Tags: | @author Nico de Haen <mail@ndh-websolutions.de> |
main function
| $content | [type] | $content: ... |
| $conf | [type] | $conf: ... |
| Returns: | [type] | ... |
| Total Usage: | 0 | |
Shows a welcome message and updates the status in tx_tandem_users
| Returns: | string | HTML Form |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the menu
| Returns: | string | HTML Form |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the welcome message and the links on the startpage
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Updates the user status: searching/mentoring active or not
set_status = 1 means activate
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
Renders the edit profiles view
| Returns: | string | HTML Form |
| Total Usage: | 1 | |
| 1 | pi3/class.tx_tandem_pi3.php | |
renders the edit profile form
| $profileType | string | $profileType which kind of form to render |
| Returns: | void | |
| Total Usage: | 1 | |
| 1 | pi3/class.tx_tandem_pi3.php | |
renders the registration form
| Returns: | string | HTML |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi3/class.tx_tandem_pi3.php | |
Rendering the disabled fields, these will be showed but not editable
| $fields | array | $fields Array with the fieldnames |
| $values | array | $values associative array where the values are stored |
| $table | [type] | $table: ... |
| Returns: | string | HTML Form |
| Total Usage: | 2 | |
| 2 | pi3/class.tx_tandem_pi3.php | |
performs the mailings and the disabling of inactive users
possible cron_status of the messages:
0 => New
1 => 1st mail sent
2 => 2nd mail sent
4 => both tandem partner have reported or one has reported a failure
| Returns: | string | HTML |
| Total Usage: | 2 | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
sends mails to users
| $recipient | string | $recipient |
| $sender | array | $values associative array where the values are stored |
| $crdate | [type] | $crdate: ... |
| $signature | [type] | $signature: ... |
| $is_sender | [type] | $is_sender: ... |
| $status | [type] | $status: ... |
| $mentor | [type] | $mentor: ... |
| $langkey = '' | [type] | $langkey: ... |
| Returns: | void | |
| Total Usage: | 4 | |
| 4 | pi3/class.tx_tandem_pi3.php | |
splits the tandem key and passes the parts of the key to the status
update function or activates the user
the parts should be separated by an 'l' and consist of
reported status 'l' request ID 'l' user ID 'l' encrypted username/password)
if it's a status update and x 'l' user ID 'l' encrypted username/password)
if it's an activation
| $tandem_key | $tandem_key | tandem key |
| Returns: | string | HTML |
| Total Usage: | 3 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
performs the activation process
| $user_id | int | $user_id uid of fe_users |
| Returns: | string | HTML |
| Total Usage: | 1 | |
| 1 | pi3/class.tx_tandem_pi3.php | |
updates the usergroup field of fe_users
replaces an old group with a new one, or just adds a field
| $user_id | [type] | $user_id: ... |
| $new_group_id | [type] | $new_group_id: ... |
| $old_group_id=false | [type] | $old_group_id: ... |
| Returns: | void | |
| Total Usage: | 3 | |
| 3 | pi3/class.tx_tandem_pi3.php | |
performs the mailings and sets the status of the message (initated from links in mails or message list
possible status of messages
1 => Tandem Success reported from sender
2 => Tandem Failure reported from sender
3 => Tandem Success reported from recipient
4 => Tandem Failure reported from recipient
5 => Tandem Failure confirmed
6 => Tandem Success reported
9 => Tandem inconsistence
| $user_id | int | $user_id the uid of the user who initiated the status update |
| $message_id | int | $message_id the uid of the message which status updated |
| $status | int | $status the status that is reported (1 for success, 2 for failure) |
| Returns: | string | HTML |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
saving a successfull tandem
| $message_uid | int | $user_uid ID of the user who triggeredf the function |
| $user_uid | int | $message_uid ID of the message |
| Returns: | void | |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
sets the delete flag to true in fe_users, tx_tandem_users,
tx_tandem_requests, tx_tandem_messages and tx_tandem_list
called from cronjob or if a user deletes his account
(0 if it's the user who called this function)
| $uid = 0 | int | $uid the uid of the fe_users who's account should be deleted |
| Returns: | [type] | ... |
| Total Usage: | 1 | |
| 1 | pi3/class.tx_tandem_pi3.php | |
returns a list of names, localized if available, otherwise default language
| $table | string | name of the table |
| $list | string | comma separaterd list with IDs |
| Returns: | string | comma separaterd list with names |
| Total Usage: | 4 | |
| 2 | class.tx_tandem.php | |
| 2 | pi3/class.tx_tandem_pi3.php | |
returns a list of names
| $table | string | name of the table |
| $list | string | comma separaterd list with IDs |
| Returns: | string | comma separaterd list with names |
| Total Usage: | 2 | |
| 1 | class.tx_tandem.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
returns a list of names
| $table | string | name of the table |
| $sessionData | array | session data |
| Returns: | array | with the data from a subarray (key is the table name) |
| Total Usage: | 9 | |
| 3 | pi1/class.tx_tandem_pi1.php | |
| 3 | pi2/class.tx_tandem_pi2.php | |
| 3 | pi3/class.tx_tandem_pi3.php | |
formatting the values of an result array according to the field types
| $input_array | array | $input_array: assoziative array fieldname=>fieldvalue |
| Returns: | array | assoziative array fieldname=>new fieldvalue |
| Total Usage: | 6 | |
| 3 | pi1/class.tx_tandem_pi1.php | |
| 2 | pi2/class.tx_tandem_pi2.php | |
| 1 | pi3/class.tx_tandem_pi3.php | |
displays the form errors
| $currentEvalErrors | array | fieldnames and eval errors |
| Returns: | string | HTML |
| Total Usage: | 4 | |
| 1 | pi1/class.tx_tandem_pi1.php | |
| 1 | pi2/class.tx_tandem_pi2.php | |
| 2 | pi3/class.tx_tandem_pi3.php | |
encrypts a string using Typo3 encryption key, user to compare the md5 hash of username and mailadress
| $string | string | |
| Returns: | string | the encrypted string |
| Total Usage: | 5 | |
| 5 | pi3/class.tx_tandem_pi3.php | |