mod_web_dmail Class Reference

List of all members.

Public Member Functions

 mod_web_dmail ($id, $pageinfo, $perms_clause, $CMD, $sys_dmail_uid, $pages_uid, $modTSconfig)
 createDMail ()
 main ()
 mailModule_main ()
 makeCategories ()
 cmd_displayPageInfo ()
 getCsvValues ($str, $sep=",")
 rearrangeCsvValues ($lines)
 rearrangePlainMails ($plainMails)
 makePidListQuery ($table, $pidList, $fields, $cat)
 getIdList ($table, $pidList, $cat)
 makeStaticListQuery ($table, $uid, $fields)
 getStaticIdList ($table, $uid)
 getMailGroups ($list, $parsedGroups)
 cmd_displayMailGroup ($result)
 downloadCSV ($idArr)
 cmd_displayMailGroup_test ($result)
 cmd_compileMailGroup ($group_uid, $makeIdLists=1)
 cleanPlainList ($plainlist)
 cmd_query ($dgUid)
 importRecords_sort ($records, $syncSelect, $tstampFlag)
 importRecords ($categorizedRecords, $removeExisting)
 fetchRecordsListValues ($listArr, $table, $fields="uid,name,email")
 getRecordList ($listArr, $table, $dim=0, $editLinkFlag=1)
 cmd_displayImport ()
 cmd_displayUserInfo ()
 cmd_default ($mode)
 editLink ($table, $uid)
 invokeMEngine ()
 updatePageTS ()
 addUserPass ($url)
 cmd_fetch ($row)
 cmd_prefetch ($row)
 cmd_testmail ($row)
 cmd_finalmail ($row)
 getUniqueEmailsFromGroup ($mailgroup_uid)
 cmd_quickmail ()
 sendTestMailToTable ($idLists, $table, $htmlmail)
 addMailAddresses ($idLists, $table, $arr)
 cmd_send_mail ($row)
 showWithPercent ($pieces, $total)
 formatTable ($tableLines, $cellParams, $header, $cellcmd=array(), $tableParams=border=0 cellpadding=2 cellspacing=1')
 cmd_stats ($row)
 disableRecipients ($arr, $table)
 makeStatTempTableContent ($mrow)
 storeRecRec ($recRec)
 showQueryRes ($query)
 getQueryRows ($queryArray, $key_field)
 directMail_defaultView ($row)
 linkDMail_record ($str, $uid)
 linkRecip_record ($str, $uid)
 fName ($name)
 JSbottom ($formname="forms[0]")

Public Attributes

 $TSconfPrefix = "mod.web_modules.dmail."
 $fieldList = "uid,name,title,email,phone,www,address,company,city,zip,country,fax,module_sys_dmail_category,module_sys_dmail_html,description"
 $modList = ""
 $params = array()
 $perms_clause = ""
 $pageinfo = ""
 $sys_dmail_uid
 $CMD
 $pages_uid
 $categories
 $id
 $urlbase
 $back
 $noView
 $url_plain
 $url_html
 $mode
 $implodedParams = array()
 $userTable

Detailed Description

EXAMPLE of csv field specification:

;user_date;name;email;zip;phone;module_sys_dmail_category[+1];module_sys_dmail_category[+2];module_sys_dmail_category[+4];module_sys_dmail_category[+8];module_sys_dmail_category[+16];user_age[=20];user_age[=26];user_age[=31];user_age[=36];user_age[=41];user_pregnant[=1];user_kids;user_kidsage[+1];user_kidsage[+2];user_kidsage[+4];user_kidsage[+8]

184;12-02-01;Pia;kimjokumsen@mail.dk;;Nielsen;x;x;x;;;;;x;;;;1;x;;; 185;12-02-01;Connie Greffel;c.greffel@get2net.dk;;39905067;x;x;x;;;;x;;;;;1;x;;; 186;12-02-01;Stine Holm;ravnsbjergholm@hotmail.com;;32 96 70 75;;x;x;;;;x;;;;x;;;;; 187;12-02-01;Anette Bentholm;madsenbentholm@mail.net4you.dk;;98373677;;x;x;;;;;x;;;;2;x;;;

Import of 3541 records raw on PIII/500Mzh took 80 approx seconds

Definition at line 78 of file class.mod_web_dmail.php.


Constructor & Destructor Documentation

mod_web_dmail::mod_web_dmail id,
pageinfo,
perms_clause,
CMD,
sys_dmail_uid,
pages_uid,
modTSconfig
 

Definition at line 101 of file class.mod_web_dmail.php.

References $CMD, $GLOBALS, $id, $pageinfo, $pages_uid, $perms_clause, $sys_dmail_uid, t3lib_div::array_merge_recursive_overrule(), t3lib_extMgm::extPath(), t3lib_BEfunc::getListOfBackendModules(), t3lib_BEfunc::implodeTSParams(), and t3lib_div::loadTCA().


Member Function Documentation

mod_web_dmail::addMailAddresses idLists,
table,
arr
 

Definition at line 1654 of file class.mod_web_dmail.php.

References fetchRecordsListValues(), and table.

Referenced by getUniqueEmailsFromGroup().

mod_web_dmail::addUserPass url  ) 
 

Definition at line 1352 of file class.mod_web_dmail.php.

mod_web_dmail::cleanPlainList plainlist  ) 
 

Definition at line 815 of file class.mod_web_dmail.php.

Referenced by cmd_compileMailGroup().

mod_web_dmail::cmd_compileMailGroup group_uid,
makeIdLists = 1
 

Definition at line 700 of file class.mod_web_dmail.php.

References $GLOBALS, $pageinfo, t3lib_div::array_merge_recursive_overrule(), cleanPlainList(), getIdList(), t3lib_BEfunc::getRecord(), getStaticIdList(), height, img, t3lib_div::intExplode(), makePidListQuery(), makeStaticListQuery(), pages, t3lib_BEfunc::readPageAccess(), rearrangeCsvValues(), and rearrangePlainMails().

Referenced by cmd_send_mail(), cmd_testmail(), getUniqueEmailsFromGroup(), and mailModule_main().

mod_web_dmail::cmd_default mode  ) 
 

Definition at line 1074 of file class.mod_web_dmail.php.

References $GLOBALS, $LANG, $mode, $res, $row, $TCA, t3lib_div::_GP(), a, cmd_quickmail(), colspan, t3lib_BEfunc::date(), t3lib_BEfunc::datetime(), editLink(), t3lib_div::fixed_lgd(), t3lib_div::formatSize(), fw(), t3lib_BEfunc::getItemLabel(), t3lib_BEfunc::getProcessedValue(), height, img, input, t3lib_BEfunc::makeConfigForm(), nbsp, nowrap, pages, select, table, td, and value.

Referenced by mailModule_main().

mod_web_dmail::cmd_displayImport  ) 
 

Definition at line 948 of file class.mod_web_dmail.php.

References $GLOBALS, t3lib_div::_GP(), field, t3lib_div::formatForTextarea(), importRecords(), importRecords_sort(), input, nbsp, rearrangeCsvValues(), select, textarea, and value.

Referenced by mailModule_main().

mod_web_dmail::cmd_displayMailGroup result  ) 
 

Definition at line 614 of file class.mod_web_dmail.php.

References $count, $GLOBALS, $result, t3lib_div::_GP(), a, downloadCSV(), t3lib_iconWorks::getIconImage(), and t3lib_div::inList().

Referenced by mailModule_main().

mod_web_dmail::cmd_displayMailGroup_test result  ) 
 

Definition at line 689 of file class.mod_web_dmail.php.

References $count, $result, and getRecordList().

mod_web_dmail::cmd_displayPageInfo  ) 
 

Definition at line 341 of file class.mod_web_dmail.php.

References $data, $GLOBALS, $HTTP_POST_VARS, $LANG, $res, $row, $TCA, a, color, colspan, t3lib_BEfunc::date(), t3lib_div::fixed_lgd(), t3lib_div::formatSize(), fw(), t3lib_BEfunc::getProcessedValue(), height, img, input, t3lib_div::makeInstance(), nbsp, nowrap, table, td, and value.

Referenced by mailModule_main().

mod_web_dmail::cmd_displayUserInfo  ) 
 

Definition at line 1001 of file class.mod_web_dmail.php.

References $data, $GLOBALS, $HTTP_POST_VARS, $res, $row, $table, t3lib_div::_GP(), a, fw(), height, img, input, t3lib_div::makeInstance(), nbsp, pages, and value.

Referenced by mailModule_main().

mod_web_dmail::cmd_fetch row  ) 
 

Definition at line 1361 of file class.mod_web_dmail.php.

References $GLOBALS, $res, $row, $updateFields, t3lib_div::getURL(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), and t3lib_div::trimExplode().

Referenced by mailModule_main().

mod_web_dmail::cmd_finalmail row  ) 
 

Definition at line 1481 of file class.mod_web_dmail.php.

References $GLOBALS, $res, $row, $TCA, fw(), input, JSbottom(), select, textarea, and value.

Referenced by mailModule_main().

mod_web_dmail::cmd_prefetch row  ) 
 

Definition at line 1409 of file class.mod_web_dmail.php.

References $GLOBALS, a, back, fw(), input, nbsp, and value.

Referenced by mailModule_main().

mod_web_dmail::cmd_query dgUid  ) 
 

Definition at line 824 of file class.mod_web_dmail.php.

References $GLOBALS, $HTTP_POST_VARS, input, t3lib_div::makeInstance(), and value.

mod_web_dmail::cmd_quickmail  ) 
 

Definition at line 1533 of file class.mod_web_dmail.php.

References $GLOBALS, $message, $res, $row, $TCA, t3lib_div::_GP(), t3lib_div::breakTextForEmail(), t3lib_div::formatForTextarea(), getUniqueEmailsFromGroup(), height, img, input, t3lib_div::plainMailEncoded(), select, t3lib_div::substUrlsInPlainText(), table, td, textarea, and value.

Referenced by cmd_default().

mod_web_dmail::cmd_send_mail row  ) 
 

Definition at line 1668 of file class.mod_web_dmail.php.

References $GLOBALS, $key, $res, $result, $row, $updateFields, t3lib_div::_GP(), cmd_compileMailGroup(), t3lib_dmailer::convertFields(), t3lib_BEfunc::datetime(), fw(), t3lib_div::makeInstance(), pages, and sendTestMailToTable().

Referenced by mailModule_main().

mod_web_dmail::cmd_stats row  ) 
 

Definition at line 1796 of file class.mod_web_dmail.php.

References $GLOBALS, $id, $k, $res, $row, $table, t3lib_div::_GP(), a, disableRecipients(), fetchRecordsListValues(), formatTable(), t3lib_iconWorks::getIconImage(), getQueryRows(), height, img, makeStatTempTableContent(), showWithPercent(), table, and textarea.

Referenced by mailModule_main().

mod_web_dmail::cmd_testmail row  ) 
 

Definition at line 1431 of file class.mod_web_dmail.php.

References $GLOBALS, $res, $result, a, cmd_compileMailGroup(), fw(), height, img, input, t3lib_div::intExplode(), pages, table, td, and value.

Referenced by mailModule_main().

mod_web_dmail::createDMail  ) 
 

Definition at line 129 of file class.mod_web_dmail.php.

References $TCA, t3lib_div::_GP(), t3lib_BEfunc::getRecord(), t3lib_div::inList(), t3lib_div::makeInstance(), and t3lib_div::testInt().

mod_web_dmail::directMail_defaultView row  ) 
 

Definition at line 2158 of file class.mod_web_dmail.php.

References $GLOBALS, $LANG, a, colspan, t3lib_div::fixed_lgd(), t3lib_BEfunc::getFuncMenu(), t3lib_BEfunc::getProcessedValue(), t3lib_BEfunc::getRecord(), height, img, input, pages, td, and value.

Referenced by mailModule_main().

mod_web_dmail::disableRecipients arr,
table
 

Definition at line 2016 of file class.mod_web_dmail.php.

References $count, $GLOBALS, $table, and table.

Referenced by cmd_stats().

mod_web_dmail::downloadCSV idArr  ) 
 

Definition at line 668 of file class.mod_web_dmail.php.

References $filename, $lines, t3lib_div::csvValues(), and exit.

Referenced by cmd_displayMailGroup().

mod_web_dmail::editLink table,
uid
 

Definition at line 1333 of file class.mod_web_dmail.php.

References $params, a, height, and img.

Referenced by cmd_default().

mod_web_dmail::fetchRecordsListValues listArr,
table,
fields = "uid,name,email"
 

Definition at line 902 of file class.mod_web_dmail.php.

References $count, $GLOBALS, $res, $row, $table, and table.

Referenced by addMailAddresses(), cmd_stats(), and sendTestMailToTable().

mod_web_dmail::fName name  ) 
 

Definition at line 2230 of file class.mod_web_dmail.php.

References $GLOBALS, and t3lib_BEfunc::getItemLabel().

Referenced by rearrangeCsvValues().

mod_web_dmail::formatTable tableLines,
cellParams,
header,
cellcmd = array(),
tableParams = border=0 cellpadding=2 cellspacing=1'
 

Definition at line 1775 of file class.mod_web_dmail.php.

References $k, $lines, $table, table, and td.

Referenced by cmd_stats().

mod_web_dmail::getCsvValues str,
sep = ","
 

Definition at line 458 of file class.mod_web_dmail.php.

References $data, and $lines.

mod_web_dmail::getIdList table,
pidList,
cat
 

Definition at line 559 of file class.mod_web_dmail.php.

References $GLOBALS, $query, $res, $row, makePidListQuery(), and table.

Referenced by cmd_compileMailGroup().

mod_web_dmail::getMailGroups list,
parsedGroups
 

Definition at line 589 of file class.mod_web_dmail.php.

References $GLOBALS, $res, $row, t3lib_BEfunc::deleteClause(), t3lib_pageSelect::enableFields(), t3lib_div::intExplode(), and pages.

mod_web_dmail::getQueryRows queryArray,
key_field
 

Definition at line 2138 of file class.mod_web_dmail.php.

References $GLOBALS, $lines, and $res.

Referenced by cmd_stats().

mod_web_dmail::getRecordList listArr,
table,
dim = 0,
editLinkFlag = 1
 

Definition at line 919 of file class.mod_web_dmail.php.

References $count, $lines, a, height, img, nbsp, nowrap, table, and td.

Referenced by cmd_displayMailGroup_test().

mod_web_dmail::getStaticIdList table,
uid
 

Definition at line 580 of file class.mod_web_dmail.php.

References $GLOBALS, $query, $res, $row, makeStaticListQuery(), and table.

Referenced by cmd_compileMailGroup().

mod_web_dmail::getUniqueEmailsFromGroup mailgroup_uid  ) 
 

Definition at line 1522 of file class.mod_web_dmail.php.

References $result, addMailAddresses(), and cmd_compileMailGroup().

Referenced by cmd_quickmail().

mod_web_dmail::importRecords categorizedRecords,
removeExisting
 

Definition at line 865 of file class.mod_web_dmail.php.

References $data, $GLOBALS, $res, $row, and t3lib_div::makeInstance().

Referenced by cmd_displayImport().

mod_web_dmail::importRecords_sort records,
syncSelect,
tstampFlag
 

Definition at line 848 of file class.mod_web_dmail.php.

References $GLOBALS, $res, $row, and t3lib_div::testInt().

Referenced by cmd_displayImport().

mod_web_dmail::invokeMEngine  ) 
 

Definition at line 1338 of file class.mod_web_dmail.php.

References t3lib_div::makeInstance().

mod_web_dmail::JSbottom formname = "forms[0]"  ) 
 

Definition at line 2233 of file class.mod_web_dmail.php.

Referenced by cmd_finalmail().

mod_web_dmail::linkDMail_record str,
uid
 

Definition at line 2224 of file class.mod_web_dmail.php.

References a.

mod_web_dmail::linkRecip_record str,
uid
 

Definition at line 2227 of file class.mod_web_dmail.php.

References a.

mod_web_dmail::mailModule_main  ) 
 

Definition at line 224 of file class.mod_web_dmail.php.

References $GLOBALS, $mode, $res, $result, $row, t3lib_div::_GP(), back, cmd_compileMailGroup(), cmd_default(), cmd_displayImport(), cmd_displayMailGroup(), cmd_displayPageInfo(), cmd_displayUserInfo(), cmd_fetch(), cmd_finalmail(), cmd_prefetch(), cmd_send_mail(), cmd_stats(), cmd_testmail(), directMail_defaultView(), t3lib_BEfunc::getFuncMenu(), t3lib_div::getIndpEnv(), index, input, makeCategories(), and value.

Referenced by main().

mod_web_dmail::main  ) 
 

Definition at line 193 of file class.mod_web_dmail.php.

References $GLOBALS, exit, index, t3lib_div::inList(), and mailModule_main().

mod_web_dmail::makeCategories  ) 
 

Definition at line 323 of file class.mod_web_dmail.php.

Referenced by mailModule_main().

mod_web_dmail::makePidListQuery table,
pidList,
fields,
cat
 

Definition at line 540 of file class.mod_web_dmail.php.

References $GLOBALS, $query, t3lib_BEfunc::deleteClause(), t3lib_pageSelect::enableFields(), and table.

Referenced by cmd_compileMailGroup(), and getIdList().

mod_web_dmail::makeStaticListQuery table,
uid,
fields
 

Definition at line 568 of file class.mod_web_dmail.php.

References $GLOBALS, $query, t3lib_pageSelect::enableFields(), and table.

Referenced by cmd_compileMailGroup(), and getStaticIdList().

mod_web_dmail::makeStatTempTableContent mrow  ) 
 

Definition at line 2031 of file class.mod_web_dmail.php.

Referenced by cmd_stats().

mod_web_dmail::rearrangeCsvValues lines  ) 
 

Definition at line 468 of file class.mod_web_dmail.php.

References $data, $lines, and fName().

Referenced by cmd_compileMailGroup(), and cmd_displayImport().

mod_web_dmail::rearrangePlainMails plainMails  ) 
 

Definition at line 527 of file class.mod_web_dmail.php.

Referenced by cmd_compileMailGroup().

mod_web_dmail::sendTestMailToTable idLists,
table,
htmlmail
 

Definition at line 1635 of file class.mod_web_dmail.php.

References t3lib_dmailer::convertFields(), fetchRecordsListValues(), and table.

Referenced by cmd_send_mail().

mod_web_dmail::showQueryRes query  ) 
 

Definition at line 2124 of file class.mod_web_dmail.php.

References $GLOBALS, $lines, and $res.

mod_web_dmail::showWithPercent pieces,
total
 

Definition at line 1767 of file class.mod_web_dmail.php.

Referenced by cmd_stats().

mod_web_dmail::storeRecRec recRec  ) 
 

Definition at line 2093 of file class.mod_web_dmail.php.

References $GLOBALS, and t3lib_div::intInRange().

mod_web_dmail::updatePageTS  ) 
 

Definition at line 1344 of file class.mod_web_dmail.php.

References t3lib_div::_GP(), t3lib_div::getIndpEnv(), t3lib_div::locationHeaderUrl(), and t3lib_BEfunc::updatePagesTSconfig().


Member Data Documentation

mod_web_dmail::$back
 

Definition at line 93 of file class.mod_web_dmail.php.

mod_web_dmail::$categories
 

Definition at line 90 of file class.mod_web_dmail.php.

mod_web_dmail::$CMD
 

Definition at line 88 of file class.mod_web_dmail.php.

Referenced by mod_web_dmail().

mod_web_dmail::$fieldList = "u