__construct() публичный Метод

Constructor.
public __construct ( Horde_Mime_Part $part, array $conf = [] )
$part Horde_Mime_Part
$conf array Configuration:
temp_file - (callback) A callback function that returns a temporary
            filename.  Is passed one parameter: a prefix string.
            DEFAULT: Uses Horde_Util::getTempFile().
text_filter - (callback) A callback function used to filter text. Is
              called the same as Horde_Text_Filter::filter().
              DEFAULT: Uses Horde_Text_Filter::filter().
Пример #1
0
 /**
  * Constructor.
  *
  * @param Horde_Mime_Part $mime_part  The object with the data to be
  *                                    rendered.
  * @param array $conf                 Configuration.
  */
 public function __construct(Horde_Mime_Part $part, array $conf = array())
 {
     parent::__construct($part, $conf);
     /* TODO: Are there other image types that are compressed? */
     $this->_metadata['compressed'] = in_array($this->_getType(), array('image/gif', 'image/jpeg', 'image/png'));
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param Horde_Mime_Part $mime_part  The object with the data to be
  *                                    rendered.
  * @param array $conf                 Configuration:
  * <pre>
  * 'monospace' - (string) A class to use to display monospace text inline.
  *               DEFAULT: Uses style="font-family:monospace"
  * 'rar' - (Horde_Compress_Rar) A zip object.
  * </pre>
  */
 public function __construct(Horde_Mime_Part $part, array $conf = array())
 {
     parent::__construct($part, $conf);
 }
Пример #3
0
 /**
  * Constructor.
  *
  * @param Horde_Mime_Part $part  The object with the data to be rendered.
  * @param array $conf            Configuration:
  *   - browser: (Horde_Browser) Browser object.
  *   - notification: (Horde_Notification_Base) Notification object.
  *   - prefs: (Horde_Prefs) Prefs object.
  *   - registry: (Horde_Registry) Registry object.
  *
  * @throws InvalidArgumentException
  */
 public function __construct(Horde_Mime_Part $part, array $conf = array())
 {
     $this->_required = array_merge($this->_required, array('browser', 'notification', 'prefs', 'registry'));
     parent::__construct($part, $conf);
 }
Пример #4
0
 /**
  * Constructor.
  *
  * @param Horde_Mime_Part $mime_part  The object with the data to be
  *                                    rendered.
  * @param array $conf                 Configuration:
  * <pre>
  * 'location' - (string) Location of the unrtf binary.
  * </pre>
  *
  * @throws InvalidArgumentException
  */
 public function __construct(Horde_Mime_Part $part, array $conf = array())
 {
     $this->_required = array_merge($this->_required, array('location'));
     parent::__construct($part, $conf);
 }
Пример #5
0
 /**
  * Constructor.
  *
  * @param Horde_Mime_Part $mime_part  The object with the data to be
  *                                    rendered.
  * @param array $conf                 Configuration:
  * <pre>
  * 'gzip' - (Horde_Compress_Gzip) A gzip object.
  * 'monospace' - (string) A class to use to display monospace text inline.
  *               DEFAULT: Uses style="font-family:monospace"
  * 'tar' - (Horde_Compress_Tar) A tar object.
  * </pre>
  */
 public function __construct(Horde_Mime_Part $part, array $conf = array())
 {
     parent::__construct($part, $conf);
     $this->_metadata['compressed'] = in_array($part->getSubType(), $this->_gzipSubtypes);
 }