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


PHP UploadHandler::set_additional_file_properties方法代码示例

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


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

示例1: set_additional_file_properties

 protected function set_additional_file_properties($file)
 {
     parent::set_additional_file_properties($file);
     if ($_SERVER['REQUEST_METHOD'] === 'GET') {
         $sql = 'SELECT `nome`, `type` FROM `' . $this->options['db_table'] . '` WHERE `nome`=?';
         $query = $this->db->prepare($sql);
         $query->bind_param('s', $file->name);
         $query->execute();
         $query->bind_result($nome, $type);
         while ($query->fetch()) {
             $file->id = $nome;
             $file->type = $type;
         }
     }
 }
开发者ID:anderfilth,项目名称:Painel-Workapp,代码行数:15,代码来源:image_upload.php

示例2: set_additional_file_properties

 protected function set_additional_file_properties($file)
 {
     parent::set_additional_file_properties($file);
     if ($_SERVER['REQUEST_METHOD'] === 'GET') {
         $sql = 'SELECT `id`, `type`, `description`,`classifier` FROM `' . $this->options['db_table'] . '` WHERE `name`=?';
         $query = $this->db->prepare($sql);
         $query->bind_param('s', $file->name);
         $query->execute();
         $query->bind_result($id, $type, $description, $classifier);
         while ($query->fetch()) {
             $file->id = $id;
             $file->type = $type;
             $file->description = $description;
             $file->classifier = $classifier;
         }
     }
 }
开发者ID:students-alumni-cell-iitkgp,项目名称:yearbook-central-php,代码行数:17,代码来源:index.php

示例3: set_additional_file_properties

 protected function set_additional_file_properties($file)
 {
     parent::set_additional_file_properties($file);
     if ($_SERVER['REQUEST_METHOD'] === 'GET') {
         $sql = 'SELECT `imggrafmed_id`, `imggrafmed_descripcion`, `imggrafmed_size`, `imggrafmed_type`, `imggrafmed_fechar`, `imggrafmed_orden`, `imggrafmed_configuracion` FROM `' . $this->options['db_table'] . '` WHERE `imggrafmed_nombre`=?';
         $query = $this->db->prepare($sql);
         $query->bind_param('s', $file->name);
         $query->execute();
         $query->bind_result($id, $descripcion, $size, $type, $fechar, $orden, $configuracion);
         while ($query->fetch()) {
             $file->id = $id;
             $file->descripcion = $descripcion;
             $file->size = $size;
             $file->type = $type;
             $file->fechar = $fechar;
             $file->orden = $orden;
             $file->configuracion = $configuracion;
         }
     }
 }
开发者ID:cruni505,项目名称:prestomed,代码行数:20,代码来源:imggrafmed.php

示例4: set_additional_file_properties

 protected function set_additional_file_properties($file)
 {
     parent::set_additional_file_properties($file);
     if ($_SERVER['REQUEST_METHOD'] === 'GET') {
         $sql = 'SELECT `incentivoimg_id`, `incentivoimg_nombre`, `incentivoimg_incentivo`, `incentivoimg_fechar`, `incentivoimg_horar`, `incentivoimg_descripcion`, `incentivoimg_tipo`, `incentivoimg_tamanio` FROM `' . $this->options['db_table'] . '` WHERE `name`=?';
         $query = $this->db->prepare($sql);
         $query->bind_param('s', $file->name);
         $query->execute();
         $query->bind_result($id, $type, $title, $description, $empresa, $cat, $orden);
         while ($query->fetch()) {
             $file->id = $id;
             $file->type = $type;
             $file->title = $title;
             $file->description = $description;
             $file->empresa = $empresa;
             $file->cat = $cat;
             $file->orden = $orden;
         }
     }
 }
开发者ID:cruni505,项目名称:prestomed,代码行数:20,代码来源:incentivofile.php

示例5: set_additional_file_properties

 protected function set_additional_file_properties($file)
 {
     parent::set_additional_file_properties($file);
     if ($_SERVER['REQUEST_METHOD'] === 'GET') {
         $mapper = Core::model('Core/Attachment');
         $row = $mapper->getRowByCode($file->name);
         //var_dump($row);exit;
         if ($row != null) {
             $file->id = $row['id'];
             $file->type = $row['mime'];
             $file->folder = $row['folder'];
             $file->url = $row['url'];
             $file->code = $row['code'];
             $file->create_at = $row['created_at'];
             $file->created_by = $row['created_by'];
             $file->type_id = $row['type_id'];
             $file->filename = $row['filename'];
             $file->object_id = $row['object_id'];
         }
     }
 }
开发者ID:phucdnict,项目名称:cbcc_05062015,代码行数:21,代码来源:index.php

示例6: set_additional_file_properties

 protected function set_additional_file_properties($file)
 {
     parent::set_additional_file_properties($file);
     // Do not return delete URL
     $file->deleteUrl = null;
 }
开发者ID:01J,项目名称:topm,代码行数:6,代码来源:uploader.php


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