Namespaces | |
ApiUsage | |
ApplicationParameterManager | |
AttributeIdentifiers | |
AttributeValue | |
Core | |
Db | |
Family | |
Fmtc | |
Layout | |
Lex | |
PMGT | |
Pu | |
Sacc | |
SearchDoc | |
Style | |
Upat | |
Utils | |
Vault | |
Data Structures | |
class | ExportDocument |
class | WriteCsv |
class | CrontabDocument |
class | CrontabElement |
class | CrontabParser |
class | CrontabParserException |
class | CrontabSectionElement |
class | CrontabTextElement |
class | AttributeValue |
class | ConsoleProgressOMeter |
class | ExportCollection |
class | FamilyAbsoluteOrder |
class | FamilyImport |
class | PgFetchArrayIterator |
class | Exception |
Exception class use exceptionCode to identifiy correctly exception. More... | |
class | ExportXmlDocument |
class | VerifyAttributeAccess |
class | VaultManager |
class | WSHMailError |
class | Autoloader |
class | ExtensionFilterIteratorDecorator |
interface | IClassHunter |
class | ClassHunterForPHP5_3 |
class | DirectoriesAutoloaderException |
class | DirectoriesAutoloader |
class | ClassHunterFactory |
Class vidExtractor
Extract VIDs from documents or families (suitable for updating and maintaining the "docvaultindex" table)
Analyse a general filter string
Class Detector
Try to detect CSV separator (either ";" or ",") and enclosure (either "'" or '"') by applying some rules to detect patterns and count scores when there is a match: highest score >= 75% wins!
Not bulletproof, but it seems to perform correctly (i.e. as expected) with CSV from dynacase-core and tests.
Observed confidence scores being either 0% or > 90% (no score observed in-between).
Architecture specific type manipulation.
Class MailAddrParser
Try to parse a UTF8 string containing multiple mail addresses in RFC5322/RFC2822 notation, and extract them as a list of objects.
Jöhn Dôé <john.doe@example.net>, "Foo, Bar <ACME Corp.>" <foo.bar@acme.corp>, xyz@example.net
And returns a list of objects with display names and mail adresses :
array( new \Dcp\Mail\Address("john.doe@example.net", "Jöhn Dôé"), new \Dcp\Mail\Address("foo.bar@acme.corp", "Foo, Bar <ACME Corp.>"), new \Dcp\Mail\Address("xyz@example.net", "") )
Note:
Compose a mail with body and attachments and send it using the SMTP server referenced by Dynacase's parameters.
The (MIME) structure of the mail is:
MIME[multipart/mixed] |-(1)-> MIME[multipart/related] | |-(1.1)-> A 'text/html' or 'text/plain' body (::setBody()) | '-(1.2)-> Images related to body (::addBodyRelatedAttachment()) '-(2)-> n x attachments (::addAttachment())
Sample usage:
--8<-- $message = new \Dcp\Mail\Message(); $message->setFrom(new \Dcp\Mail\Address('john.steed@example.net', 'John Steed (The Avengers)')); $message->addTo(new \Dcp\Mail\Address('emma.peel@example.net', 'Emma Peel (The Avengers)')); $message->addCc(new \Dcp\Mail\Address('mother@eexample.net', 'Mother')); $message->setSubject('Our next mission'); $message->setBody(new \Dcp\Mail\Body('<html>A picture is worth a thousand words: <img src="cid:img01" /></html>', 'text/html')); $message->addBodyRelatedAttachment(new \Dcp\Mail\RelatedAttachment('/tmp/next-mission.png', 'next-mission.png', 'image/png', 'img01')); $message->addAttachment(new \Dcp\Mail\Attachment('/tmp/plan.pdf', 'The plan.pdf', 'application/pdf')); $err = $message->send(); if ($err != '') { throw new \Exception(sprintf("Error sending message: %s", $err)); } -->8--
Test HTML Text in ODT representation
Ooo Layout test
Extra attribute test
Class TestAffect1