/**
  * {@inheritDoc}
  */
 public function getInstalled()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getInstalled', array());
     return parent::getInstalled();
 }
示例#2
0
 /**
  * Get all data to dependency item in list
  *
  * @param \XLite\Model\Module $module Current module
  *
  * @return array
  */
 protected function getDependencyData(\XLite\Model\Module $module)
 {
     if ($module->isPersistent()) {
         if ($module->getInstalled()) {
             if ($module->getEnabled()) {
                 $result = array('status' => 'enabled', 'class' => 'good');
             } else {
                 $result = array('status' => 'disabled', 'class' => 'none');
             }
             $result['href'] = $this->getModulePageURL($module);
         } else {
             $url = $this->buildURL('addons_list_marketplace', '', array('substring' => $module->getModuleName()));
             $url .= '#' . $module->getName();
             $result = array('href' => $url, 'status' => 'not installed', 'class' => 'none');
         }
     } else {
         $result = array('status' => 'unknown', 'class' => 'poor');
     }
     return $result;
 }