Overview

Namespaces

  • Jlab
    • Eloglib

Classes

  • Jlab\Eloglib\Attachment
  • Jlab\Eloglib\FileAttachment
  • Jlab\Eloglib\Logentry
  • Jlab\Eloglib\LogentryUtil
  • Jlab\Eloglib\URLAttachment
  • Jlab\Eloglib\User

Exceptions

  • Jlab\Eloglib\InvalidXMLException
  • Jlab\Eloglib\IOException
  • Jlab\Eloglib\LogentryException
  • Jlab\Eloglib\LogRuntimeException
  • Jlab\Eloglib\ServerException
  • Jlab\Eloglib\UserException
  • Overview
  • Namespace
  • Class
 1: <?php
 2: /**
 3:  * Created by PhpStorm.
 4:  * User: theo
 5:  * Date: 9/6/17
 6:  * Time: 10:51 AM
 7:  */
 8: 
 9: namespace Jlab\Eloglib;
10: 
11: 
12: class URLAttachment extends Attachment
13: {
14: 
15: 
16:     /**
17:      *
18:      * @param string $url resource address
19:      * @param string $caption text description of attachment
20:      * @param string $type explicitly specify mime-type
21:      * @internal param string $filename full path to file
22:      */
23:     function __construct($url, $caption = '', $type = '')
24:     {
25:         $this->encoding = 'url';
26:         $this->filename = urldecode(basename($url));
27:         $this->caption = $caption;
28:         $this->data = $url;
29:         $this->type = $type;
30: 
31:     }
32: 
33: 
34: } //class
API documentation generated by ApiGen