OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxwidget.php
Go to the documentation of this file.
1 <?php
2 
7 class oxWidget extends oxUBase
8 {
9 
17  protected $_aComponentNames = array();
18 
25  protected $_blLoadComponents = false;
26 
31  public function init()
32  {
33  self::$_aCollectedComponentNames = null;
34 
35  if (!empty($this->_aComponentNames)) {
36  foreach ($this->_aComponentNames as $sComponentName => $sCompCache) {
37  $oActTopView = $this->getConfig()->getTopActiveView();
38  if ($oActTopView) {
39  $this->_oaComponents[$sComponentName] = $oActTopView->getComponent($sComponentName);
40  if (!isset($this->_oaComponents[$sComponentName])) {
41  $this->_blLoadComponents = true;
42  break;
43  } else {
44  $this->_oaComponents[$sComponentName]->setParent($this);
45  }
46  }
47  }
48  }
49 
50  parent::init();
51 
52  }
53 
58  protected function _processRequest()
59  {
60  }
61 }