OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
oxwidget.php
Go to the documentation of this file.
1 <?php
2 
7 class oxWidget extends oxUBase
8 {
15  protected $_aComponentNames = array();
16 
23  protected $_blLoadComponents = false;
24 
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 
60  protected function _processRequest()
61  {
62  }
63 
64 }