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])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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