Overview

Namespaces

  • Jlab
    • Eloglib

Classes

  • Attachment
  • FileAttachment
  • Logentry
  • LogentryUtil
  • URLAttachment
  • User

Exceptions

  • InvalidXMLException
  • IOException
  • LogentryException
  • LogRuntimeException
  • ServerException
  • UserException
  • Overview
  • Namespace
  • Class

Class FileAttachment

Class Attachment

Jlab\Eloglib\Attachment
Extended by Jlab\Eloglib\FileAttachment
Namespace: Jlab\Eloglib
Package: Jlab\Eloglib
Located at FileAttachment.php
Methods summary
public
# __construct( string $filename, string $caption = '', string $type = '' )

Parameters

$filename
full path to file
$caption
text description of attachment
$type
explicitly specify mime-type
protected
# readFromFile( $filename )

Reads contents of a file to $this->data and stores the base filename in $this->filename.

Reads contents of a file to $this->data and stores the base filename in $this->filename.

Parameters

$filename

Throws

Jlab\Eloglib\IOException
protected
# setMimeType( string $filename, mixed $type )

Sets the mime type.

Sets the mime type.

Parameters

$filename
full path to file
$type
string type-name or null for auto-detect
Methods inherited from Jlab\Eloglib\Attachment
__get(), getCaption(), getXML(), xmlWriteData()
Properties inherited from Jlab\Eloglib\Attachment
$caption, $data, $encoding, $type
API documentation generated by ApiGen