当前位置: 首页>>代码示例>>PHP>>正文


PHP FileUpload::__construct方法代码示例

本文整理汇总了PHP中FileUpload::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FileUpload::__construct方法的具体用法?PHP FileUpload::__construct怎么用?PHP FileUpload::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FileUpload的用法示例。


在下文中一共展示了FileUpload::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($name)
 {
     parent::__construct();
     $this->setName($name);
     $this->extensions = trimsplit(',', strtolower($GLOBALS['TL_CONFIG']['uploadTypes']));
     $this->maxFileSize = $GLOBALS['TL_CONFIG']['maxFileSize'];
     $this->imageWidth = $GLOBALS['TL_CONFIG']['imageWidth'];
     $this->imageHeight = $GLOBALS['TL_CONFIG']['imageHeight'];
     $this->gdMaxImgWidth = $GLOBALS['TL_CONFIG']['gdMaxImgWidth'];
     $this->gdMaxImgHeight = $GLOBALS['TL_CONFIG']['gdMaxImgHeight'];
 }
开发者ID:codefog,项目名称:contao-haste,代码行数:11,代码来源:FileUpload.php

示例2: __construct

 public function __construct($opts, $form)
 {
     parent::__construct($opts, $form);
     // make sure we have the thumb_path, if not default it to the upload path
     if ($this->make_thumb === true) {
         if ($this->thumb_path == null) {
             $this->thumb_path = $this->upload_path;
         }
         if ($this->thumb_name == null) {
             throw new \Exception('Thumb name not set for ' . $this->name);
         }
     }
 }
开发者ID:aronduby,项目名称:form,代码行数:13,代码来源:ImageUpload.php

示例3: __construct

 public function __construct($arrAttributes)
 {
     parent::__construct();
     $this->arrData = $arrAttributes;
     $file = \Input::get('file', true);
     // Send the file to the browser
     if ($file != '') {
         if (!static::isAllowedDownload($file)) {
             header('HTTP/1.1 403 Forbidden');
             die('No file access.');
         }
         \Controller::sendFileToBrowser($file);
     }
     global $objPage;
     $this->blnIsXhtml = $objPage->outputFormat == 'xhtml';
     $this->loadDcaConfig();
 }
开发者ID:heimrichhannot,项目名称:contao-multifileupload,代码行数:17,代码来源:MultiFileUpload.php

示例4: __construct

 public function __construct($arrAttributes)
 {
     parent::__construct();
     $this->arrData = $arrAttributes;
     $this->strName = $arrAttributes['name'];
 }
开发者ID:heimrichhannot,项目名称:contao-dropzone,代码行数:6,代码来源:DropZone.php


注:本文中的FileUpload::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。