Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TImageCropper

Description

Implements interfaces:

Image uploader with cropper

Located in /widget/form/TImageCropper.php (line 24)

TField
   |
   --TImageCropper
Direct descendents
Class Description
TImageCapture Image capture
Class Constant Summary
Variable Summary
mixed $height
mixed $value
mixed $width
Variables
mixed $height (line 26)
  • access: protected
mixed $value (line 28)
  • access: protected

Redefinition of:
TField::$value
mixed $width (line 27)
  • access: protected

Inherited Variables

Inherited from TField

TField::$editable
TField::$formName
TField::$id
TField::$label
TField::$name
TField::$properties
TField::$size
TField::$tag
TField::$valueCallback
Methods
Constructor __construct (line 54)
  • access: public
__construct ($name)
  • $name

Redefinition of:
TField::__construct()
Class Constructor

Redefined in descendants as:
disableButtonReset (line 178)

Disable button reset

  • access: public
disableButtonReset ()
disableButtonsDrag (line 154)

Disable buttons drag move | resize

  • access: public
disableButtonsDrag ()
disableButtonsRotate (line 186)

Disable buttons rotates

  • access: public
disableButtonsRotate ()
disableButtonsScale (line 170)

Disable buttons scale

  • access: public
disableButtonsScale ()
disableButtonsZoom (line 162)

Disable buttons zoom

  • access: public
disableButtonsZoom ()
enableBase64 (line 133)

Define usage base64

  • access: public
enableBase64 ()
enableFileHandling (line 146)

Define to file handling

  • access: public
enableFileHandling ()
enableWebCam (line 138)
  • access: public
enableWebCam ()
getAllowedExtensions (line 236)

Get the allowed extensions

  • access: public
getAllowedExtensions ()
getOptions (line 281)

Return component specific options

  • access: public
getOptions ()
setAllowedExtensions (line 228)

Define the allowed extensions

  • access: public
setAllowedExtensions ($extensions)
  • $extensions
setAspectRatio (line 125)

Define initial aspect ratio

  • access: public
setAspectRatio ($aspectRatio)
  • $aspectRatio: Aspect ratio crop image
setButtonLabel (line 114)

Set text button crop

  • access: public
setButtonLabel ($text)
  • $text: Text button confirm
setCropSize (line 270)

Set image size after crop

  • access: public
setCropSize ($width, $height)
  • $width
  • $height
setImagePlaceholder (line 92)

Set image placeholder

  • access: public
setImagePlaceholder ($image)
  • $image: image placeholder
setService (line 244)

Define the service class for response

  • access: public
setService ($service)
  • $service
setSize (line 254)

Define the Field's width

  • access: public
setSize ($width, [$height = NULL])
  • $width: Field's width in pixels
  • $height: Field's heigth in pixels

Redefinition of:
TField::setSize()
Define the Field's width
setValue (line 196)

Define image initial

  • access: public
setValue ($value, $data)
  • $data: Image url or image base64
  • $value

Redefinition of:
TField::setValue()
Define the field's value

Implementation of:
AdiantiWidgetInterface::setValue()
setWindowTitle (line 104)

Set window title

  • access: public
setWindowTitle ($title)
  • $title: Window title
show (line 309)

Show

  • access: public
show ()

Implementation of:
AdiantiWidgetInterface::show()

Inherited Methods

Inherited From TField

TField::__construct()
TField::addValidation()
TField::clearField()
TField::disableField()
TField::enableField()
TField::getContents()
TField::getEditable()
TField::getFormName()
TField::getId()
TField::getLabel()
TField::getName()
TField::getPostData()
TField::getPropertiesAsString()
TField::getProperty()
TField::getSize()
TField::getValidations()
TField::getValue()
TField::isRequired()
TField::setEditable()
TField::setFormName()
TField::setId()
TField::setLabel()
TField::setName()
TField::setProperty()
TField::setSize()
TField::setTip()
TField::setValue()
TField::setValueCallback()
TField::validate()
TField::__call()
TField::__clone()
TField::__get()
TField::__isset()
TField::__set()
TField::__toString()
Class Constants
CROPPER_RATIO_1_1 = 1/1 (line 51)
CROPPER_RATIO_2_3 = 2/3 (line 52)
CROPPER_RATIO_4_3 = 4/3 (line 50)
CROPPER_RATIO_16_9 = 16/9 (line 49)