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

Source for file TImageCapture.php

Documentation is available at TImageCapture.php

  1. <?php
  2. namespace Adianti\Widget\Form;
  3.  
  4. use Adianti\Widget\Util\TImage;
  5.  
  6. /**
  7.  * Image capture
  8.  *
  9.  * @version    7.4
  10.  * @package    widget
  11.  * @subpackage form
  12.  * @author     Lucas Tomasi
  13.  * @author     Pablo Dall'Oglio
  14.  * @copyright  Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
  15.  * @license    http://www.adianti.com.br/framework-license
  16.  */
  17. class TImageCapture extends TImageCropper
  18. {
  19.     public function __construct($name)
  20.     {
  21.         parent::__construct($name);
  22.         // $this->enableFileHandling(TRUE);
  23.         $this->enableWebCam(TRUE);
  24.         $this->setImagePlaceholder(new TImage('fa:camera'));
  25.     }
  26. }