meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
develop:functionp [2014/02/23 16:21] – [P] arnoldvl | develop:functionp [2015/05/08 19:07] (current) – [An Index of PHPlist Functions and Class Methods] arnoldvl | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | | ||
+ | The location of the definition of each function or method is listed by file name and line number. Each file is located relative to the admin directory in the phplist distribution, | ||
+ | For each function or method, the arguments are listed and explained, as well as the return value if any. Some explanation of the function is planned to be given among the Comments. These pages are under construction. Most entries are incomplete. But every entry has the location for the definition of the function or method, so that you can look up the definition in file containing the source code. | ||
+ | |||
+ | **The line numbers shown for each function listed correspond to version 3.05 of Phplist.** In most cases the locations of these functions have changed in later releases, Usually these functions involve only a small change in the line number, so that you can locate the function in the vicinity of the line number specified. | ||
+ | |[[http:// | ||
+ | ====P==== | ||
+ | ===pad_right($str, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$str: An input string | ||
+ | -$len: An integer | ||
+ | * Return value: The padded string. | ||
+ | * Comments: If $str is longer than $len, $str is padded with spaces on the left to form a string of length $len, essentially moving $str rightwards in the output string. If the input string is longer than $len, only the rightmost characters of the input are taken. In either case, the length of the output string is $len. | ||
+ | ===PageAttributes($data)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$data | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===pageCategory($page)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$page | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageData($id)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$id | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===pageInfo($id = '' | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$id | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageLink2($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$no_plugin | ||
+ | -$title | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageLinkActionButton($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$extraclass | ||
+ | -$title | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageLinkAjax ($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$extraclass | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageLinkButton($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$extraclass | ||
+ | -$title | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageLinkClass($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$class | ||
+ | -$title | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageLinkDialog ($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$extraclass | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageLinkDialogOnly ($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$extraclass | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===pageTitle($page)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$page | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===pageTitleHover($page)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$page | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PageURL2($name, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$name | ||
+ | -$desc | ||
+ | -$url | ||
+ | -$no_plugin | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===Paging($base_url, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$base_url | ||
+ | -$start | ||
+ | -$total | ||
+ | -$numpp | ||
+ | -$label | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PagingNext($base_url, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$base_url | ||
+ | -$start | ||
+ | -$total | ||
+ | -$numpp | ||
+ | -$label | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PagingPrevious($base_url, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$base_url | ||
+ | -$start | ||
+ | -$total | ||
+ | -$numpp | ||
+ | -$label | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseCline()=== | ||
+ | < | ||
+ | * Explanation: | ||
+ | * Arguments: None. The function picks up its input from **$GLOBALS[' | ||
+ | * Return value: An associative array of argument values with the argument names as the keys. | ||
+ | * Comments: Used only in initializing Phplist. The return value is stored in the **$cline** array. See line 27 of // | ||
+ | ===parseDate($strdate, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$strdate | ||
+ | -$format | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseDate($strdate, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$strdate | ||
+ | -$format | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseDelimitedData($value)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$value | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseFinalMessage($sendformat, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$sendformat | ||
+ | -$htmlmessage | ||
+ | -$textmessage | ||
+ | |||
+ | -$messageid | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseMessage($content, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$content | ||
+ | -$template | ||
+ | -$adminid | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseOutgoingHTMLMessage($messageid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$messageid | ||
+ | -$content | ||
+ | -$destination | ||
+ | -$userdata | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseOutgoingTextMessage($messageid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$messageid | ||
+ | -$content | ||
+ | -$destination | ||
+ | -$userdata | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parsePlaceHolders($content, | ||
+ | < | ||
+ | * Explanation: | ||
+ | * Arguments: | ||
+ | -$content: A text string. This function is used to process text or HTML content of a message. | ||
+ | -$array: An array in the form $key => $value. The key is the name of an attribute; $value is the value associated with the current subscriber and/or message. | ||
+ | * Return value: The that was input but with placeholders replaced by values. | ||
+ | * Comments: If the attribute inside the square brackets is not one of the keys in $array, the placeholder is left untouched. | ||
+ | ===parsePlaceHolders($templ, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$templ | ||
+ | -$data | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parsePo($translationUpdate)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$translationUpdate | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseQueryString($str)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$str | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseRSSTemplate($template, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$template | ||
+ | -$data | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseText($text)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$text | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===parseThankyou($pageid= 0, $userid= 0, $text= "" | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$pageid | ||
+ | -$userid | ||
+ | -$text | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===phpcfgsize2bytes($val)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$val | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===phplist_I18N()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===phplist_shutdown ()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===PHPlistMailer($messageid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$messageid | ||
+ | |||
+ | -$inBlast | ||
+ | -$exceptions | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===phplistplugin()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===phplistTest()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===plainText($text)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$text | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===pluginsCall($method)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$method | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===precacheMessage($messageid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$messageid | ||
+ | -$forwardContent | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===prepareOutput()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===previewTemplate($id, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$id | ||
+ | -$adminid | ||
+ | -$text | ||
+ | -$footer | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===previous()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===previousLink()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===prevNextNav()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===printarray($array)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$array | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===printobject($object)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$object | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===printTree($tree, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$tree | ||
+ | -$root | ||
+ | -$delim | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processBounceData($bounceid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$bounceid | ||
+ | -$msgid | ||
+ | -$userid | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processbounces_shutdown()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processDBerror($errorid)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$errorid | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processEditList($id)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$id | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===ProcessError ($message)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$message | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===ProcessError($message)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$message | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processError($msg)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$msg | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processImapBounce ($link, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$link | ||
+ | -$num | ||
+ | -$header | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processImapFolder($server, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$server | ||
+ | -$user | ||
+ | -$password | ||
+ | -$folder | ||
+ | -$fieldlist | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processMbox ($file)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$file | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processMessages($link, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$link | ||
+ | -$max | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processPop ($server, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$server | ||
+ | -$user | ||
+ | -$password | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processQueueStart()=== | ||
+ | < | ||
+ | * Explanation: | ||
+ | * Arguments: None | ||
+ | * Return value: None | ||
+ | ===processSendFailed($messageid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$messageid | ||
+ | -$userdata | ||
+ | -$isTest | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processSendStats($sent = 0,$invalid = 0, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$sent | ||
+ | -$invalid | ||
+ | -$failed_sent | ||
+ | -$unconfirmed | ||
+ | -$counters | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processSendSuccess($messageid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$messageid | ||
+ | -$userdata | ||
+ | -$isTest | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processSpamComplaint($email, | ||
+ | < | ||
+ | * Arguments: | ||
+ | |||
+ | -$date | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processSubscribePageEdit($subscribePageID)=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$subscribePageID | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processSuccesFailure($messageid, | ||
+ | < | ||
+ | * Arguments: | ||
+ | -$messageid | ||
+ | -$sendformat | ||
+ | -$userdata | ||
+ | -$success | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | ===processTestEmails_shutdown()=== | ||
+ | < | ||
+ | * Arguments: | ||
+ | * Return value: | ||
+ | * Comments: | ||
+ | |||
+ | |[[http:// |