Prado\Web\UI\TControlAdapter::__construct PHP Метод

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

Constructor.
public __construct ( $control )
    public function __construct($control)
    {
        $this->_control = $control;
    }

Usage Example

Пример #1
0
 /**
  * Constructor, trap errors and exception to let the callback response
  * handle them.
  */
 public function __construct(TPage $control)
 {
     parent::__construct($control);
     //TODO: can this be done later?
     $response = $this->getApplication()->getResponse();
     $response->setAdapter(new TCallbackResponseAdapter($response));
     $this->trapCallbackErrorsExceptions();
 }
All Usage Examples Of Prado\Web\UI\TControlAdapter::__construct