예제 #1
0
 /**
  * Class constructor
  *
  * @param string View Type
  * @param CompanyModel[] $companyModels
  * @throws ViewException
  */
 public function __construct($viewType = 'html', $companyModels)
 {
     parent::__construct();
     if (!isset($this->_supportedViewTypes[$viewType])) {
         throw new ViewException("Unsupported view type\n");
     }
     $this->_viewType = $viewType;
     $this->setCompanyModels($companyModels);
 }
예제 #2
0
 /**
  * Class constructor
  *
  * @param string View Type
  * @throws ViewException
  */
 public function __construct($viewType = 'html', $applicationStatusModels = null)
 {
     parent::__construct();
     if (!isset($this->_supportedViewTypes[$viewType])) {
         throw new ViewException("Unsupported view type\n");
     }
     $this->_viewType = $viewType;
     $this->_applicationStatusModels = $applicationStatusModels;
 }