/** * @param APPLICATION $context Main application. * @param TYPE_INFO $type_info */ public function __construct($context, $type_info) { parent::__construct($context); $this->_type_info = $type_info; $this->_type = $type_info->id; $this->panel_name = $type_info->id; }
/** * @param APPLICATION $context Main application. */ public function __construct($context) { parent::__construct($context); $this->_type_info = $this->app->type_info_for('USER'); }