dolibarr  16.0.5
Functions
emailcollector.lib.php File Reference

Library files with common functions for EmailCollector. More...

Go to the source code of this file.

Functions

 emailcollectorPrepareHead ($object)
 Prepare array of tabs for EmailCollector. More...
 
 getParts ($structure)
 Get parts of a message. More...
 
 getDParameters ($part)
 Array with joined files. More...
 
 getAttachments ($jk, $mbox)
 Get attachments of a given mail. More...
 
 getFileData ($jk, $fpos, $type, $mbox)
 Get content of a joined file from its position into a given email. More...
 
 saveAttachment ($path, $filename, $data)
 Save joined file into a directory with a given name. More...
 
 getDecodeValue ($message, $coding)
 Decode content of a message. More...
 

Detailed Description

Library files with common functions for EmailCollector.

Definition in file emailcollector.lib.php.

Function Documentation

◆ emailcollectorPrepareHead()

emailcollectorPrepareHead (   $object)

Prepare array of tabs for EmailCollector.

Parameters
EmailCollector$objectEmailCollector
Returns
array Array of tabs

Definition at line 31 of file emailcollector.lib.php.

◆ getAttachments()

getAttachments (   $jk,
  $mbox 
)

Get attachments of a given mail.

Parameters
integer$jkNumber of email
object$mboxobject connection imaap
Returns
array type, filename, pos

Definition at line 118 of file emailcollector.lib.php.

References getParts().

◆ getDecodeValue()

getDecodeValue (   $message,
  $coding 
)

Decode content of a message.

Parameters
string$messageMessage
integer$codingType of content
Returns
string Decoded message

Definition at line 200 of file emailcollector.lib.php.

◆ getDParameters()

getDParameters (   $part)

Array with joined files.

Parameters
object$partPart of message
Returns
object|boolean Definition of message|false en cas d'erreur

Definition at line 106 of file emailcollector.lib.php.

◆ getFileData()

getFileData (   $jk,
  $fpos,
  $type,
  $mbox 
)

Get content of a joined file from its position into a given email.

Parameters
integer$jknuméro du mail
integer$fposposition de la pièce jointe
integer$typetype de la pièce jointe
object$mboxobject connection imaap
Returns
mixed data

Definition at line 154 of file emailcollector.lib.php.

◆ getParts()

getParts (   $structure)

Get parts of a message.

Parameters
object$structureStructure of message
Returns
object|boolean Parties du message|false en cas d'erreur

Definition at line 95 of file emailcollector.lib.php.

Referenced by getAttachments().

◆ saveAttachment()

saveAttachment (   $path,
  $filename,
  $data 
)

Save joined file into a directory with a given name.

Parameters
string$pathPath to file
string$filenameName of file
mixed$datacontenu à sauvegarder
Returns
string emplacement du fichier

Definition at line 170 of file emailcollector.lib.php.