PHP Класс Ansel_View_Upload, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Автор: Michael J Rubinsky ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_forceNoScript boolean Force the older, non-javascript uploader view.
$_gallery Ansel_Gallery
$_haveCarousel boolean Flag for when we already output the carousel code.
$_params array

Открытые методы

Метод Описание
__construct ( array $params = [] ) Initialize the view. Needs the following parameters:
  'browse_button' - Dom id of button to open file system browser.    
handleLegacy ( ) Handle uploads from non-js browsers
run ( )

Защищенные методы

Метод Описание
_doCarouselSetup ( ) : string Return javascript needed to initialize the carousel.
_handleFileUpload ( ) Checks for a file uploaded via the pluploader. If one is found, handle it, send the server json response and exit.
_isMetaFile ( string $filename ) : boolean Indicates if the specified filename is a known meta file type.

Приватные методы

Метод Описание
_handleZip ( string $filename ) : array Handle extracting images from uploaded zip files.

Описание методов

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

'target' - Url of the target page to upload images to. 'drop_target' - Dom id of the element to receive drag and drop images (If runtime supports it). 'gallery' - The gallery id we are uploading to.
public __construct ( array $params = [] )
$params array

_doCarouselSetup() защищенный Метод

Return javascript needed to initialize the carousel.
protected _doCarouselSetup ( ) : string
Результат string The javascript code.

_handleFileUpload() защищенный Метод

Checks for a file uploaded via the pluploader. If one is found, handle it, send the server json response and exit.
protected _handleFileUpload ( )

_isMetaFile() защищенный Метод

Indicates if the specified filename is a known meta file type.
protected _isMetaFile ( string $filename ) : boolean
$filename string
Результат boolean

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

Handle uploads from non-js browsers
public handleLegacy ( )

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

public run ( )

Описание свойств

$_forceNoScript защищенное свойство

Force the older, non-javascript uploader view.
protected bool $_forceNoScript
Результат boolean

$_haveCarousel защищенное свойство

Flag for when we already output the carousel code.
protected bool $_haveCarousel
Результат boolean

$_params защищенное свойство

protected array $_params
Результат array