Exemple #1
0
 /**
  * Constructor with parameters
  * Array of arguments with keys
  *  - 'connection' Varien_Db_Adapter_Interface
  *  - 'metadata' Enterprise_Mview_Model_Metadata
  *  - 'factory' Enterprise_Mview_Model_Factory
  *
  * @param array $args
  */
 public function __construct(array $args)
 {
     $this->_setConnection($args['connection']);
     $this->_setMetadata($args['metadata']);
     $this->_setFactory($args['factory']);
     $this->_table = $this->_factory->getMagentoDbObjectTable($this->_connection, $this->_metadata->getTableName());
     $this->_view = $this->_factory->getMagentoDbObjectView($this->_connection, $this->_metadata->getViewName());
 }