Static methods which 'generate'.
| package | dstruct_common |
|---|
mailTo(string $email, string $linktext, string $anchortitle, string $class)
If JS is not available,, you can encode the email address with toASCIIEntities(). The document.write() line from the out put MUST NOT be split over multiple lines when output to the browser.
stringIs encoded.
stringThe text which will show in the browser. Is encoded.
stringText for the HTML 'a' element title. Is encoded.
stringAny class(es) you want on the HTML 'a' element
password(integer $charcount, integer $characters, integer $case, string $exclude, string $include) : string
integerNumber of characters required in output
integerHex characters or Alpha-Numeric output
integerUpper, Lower or Mixed case
stringCharacters not allowed in password
stringCharacters allowed in password which are not otherwise included
stringpostRequest(string $url, array $data, string $optional_headers)
| link | http://wezfurlong.org/blog/2006/nov/http-post-from-php-without-curl/ |
|---|
stringThe target page
arraye.g. 'id' => 3, 'name' => 'myname'
stringAdditional HTTP headers that you would like to send in your request.
pullPage(string $host, string $usepath, string $postdata) : string
Origin of this method?
stringHost
stringPath of URL
stringPOST data
stringtoASCIIArray(string $str) : array
string
arraytoASCIIEntities(string $str) : string
string
stringtruncatedText(string $text, integer $maxchars, boolean $forcelinebreak, string $oversuffix) : string
Useful for when inserting a summary of a longer bit of text somewhere. $forcelinebreak makes a break at the first \n (newline) regardless of whether line is short. $oversuffix is appended if the text is too long. Typically, it might be used to append '...' to the end of the output. If the text is shorter than $maxchars then the original text is returned. Should be UTF-8 safe.
stringText to truncate
integerMaximum characters allowed in output
booleanBreak at first \n
stringSuffixed to the output if it was truncated.
stringCASE_LOWER : integer
CASE_MIXED : integer
CASE_UPPER : integer
CHARACTERS_ALPHA_NUMERIC : integer
CHARACTERS_HEX : integer