Beispiel #1
0
 /**
  * Create changelog table
  * @param $mviewName
  * @param $changelogName
  * @param $ruleColumn
  * @return false|Mage_Core_Model_Abstract
  */
 public function getCommandChangelogCreate($mviewName, $changelogName, $ruleColumn)
 {
     return $this->_factory->getModel('mview/command_changelog_create', array('connection' => $this->_connection, 'mview' => new Magento_Db_Object_Table($this->_connection, $mviewName), 'changelog' => new Magento_Db_Object_Table($this->_connection, $changelogName), 'rule_column' => $ruleColumn));
 }
Beispiel #2
0
 /**
  * Returns materialized view by name
  *
  * @param $mviewName
  * @return Mage_Core_Model_Abstract
  */
 public function get($mviewName)
 {
     return $this->_factory->getModel('mview/mview', array('factory' => $this->_factory))->load($mviewName, 'mview_name');
 }