PHP 클래스 Thumb

파일 보기 프로젝트 열기: getkirby/toolkit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$defaults
$destination
$drivers
$error
$options
$result
$source

공개 메소드들

메소드 설명
__call ( string $method, mixed $arguments ) : mixed Makes all public methods of the result object available to the thumb class
__construct ( mixed $source, array $params = [] ) Constructor
__toString ( ) Makes it possible to echo the entire object
destination ( ) : Obj Build the destination object
error ( ) : Exception Returns the exception if available
isObsolete ( ) : boolean Checks if the thumbnail is not needed because the original image is small enough
isThere ( ) : boolean Checks if the thumbnail already exists and is newer than the original file
params ( array $params ) : array Makes it possible to pass a string of params which is shorter and more convenient than passing a full array of keys and values: width:300|height:200|crop:true
settingsIdentifier ( ) : string Builds a hash for all relevant settings
source ( ) : Media Returns the source media object
tag ( array $attr = [] ) : string Generates and returns the full html tag for the thumbnail

보호된 메소드들

메소드 설명
create ( ) Calls the driver function and creates the thumbnail

메소드 상세

__call() 공개 메소드

Makes all public methods of the result object available to the thumb class
public __call ( string $method, mixed $arguments ) : mixed
$method string
$arguments mixed
리턴 mixed

__construct() 공개 메소드

Constructor
public __construct ( mixed $source, array $params = [] )
$source mixed
$params array

__toString() 공개 메소드

Makes it possible to echo the entire object
public __toString ( )

create() 보호된 메소드

Calls the driver function and creates the thumbnail
protected create ( )

destination() 공개 메소드

Build the destination object
public destination ( ) : Obj
리턴 Obj

error() 공개 메소드

Returns the exception if available
public error ( ) : Exception
리턴 Exception

isObsolete() 공개 메소드

Checks if the thumbnail is not needed because the original image is small enough
public isObsolete ( ) : boolean
리턴 boolean

isThere() 공개 메소드

Checks if the thumbnail already exists and is newer than the original file
public isThere ( ) : boolean
리턴 boolean

params() 공개 메소드

Makes it possible to pass a string of params which is shorter and more convenient than passing a full array of keys and values: width:300|height:200|crop:true
public params ( array $params ) : array
$params array
리턴 array

settingsIdentifier() 공개 메소드

Builds a hash for all relevant settings
public settingsIdentifier ( ) : string
리턴 string

source() 공개 메소드

Returns the source media object
public source ( ) : Media
리턴 Media

tag() 공개 메소드

Generates and returns the full html tag for the thumbnail
public tag ( array $attr = [] ) : string
$attr array An optional array of attributes, which should be added to the image tag
리턴 string

프로퍼티 상세

$defaults 공개적으로 정적으로 프로퍼티

public static $defaults

$destination 공개적으로 프로퍼티

public $destination

$drivers 공개적으로 정적으로 프로퍼티

public static $drivers

$error 공개적으로 프로퍼티

public $error

$options 공개적으로 프로퍼티

public $options

$result 공개적으로 프로퍼티

public $result

$source 공개적으로 프로퍼티

public $source