Exemple #1
0
 /**
  * Return theme customizations collection
  *
  * @return Mage_Core_Model_Resource_Theme_Collection
  */
 protected function _getThemeCustomizations()
 {
     /** @var $collection Mage_Core_Model_Resource_Theme_Collection */
     $collection = $this->_themeFactory->create()->getCollection();
     $collection->addAreaFilter(Mage_Core_Model_App_Area::AREA_FRONTEND)->addFilter('theme_path', 'theme_path IS NULL', 'string');
     return $collection;
 }
Exemple #2
0
 /**
  * Get parent theme model
  *
  * @return Mage_Core_Model_Theme|null
  */
 public function getParentTheme()
 {
     if ($this->hasData('parent_theme')) {
         return $this->getData('parent_theme');
     }
     $theme = null;
     if ($this->getParentId()) {
         $theme = $this->_themeFactory->create()->load($this->getParentId());
     }
     $this->setParentTheme($theme);
     return $theme;
 }