protected function _resourceExists($config = array()) { $config = new KConfig($config); $config->append(array('table' => 'extensions', 'identity_column' => 'extension_id')); $result = parent::_resourceExists($config); $activity = $config->activity; if ($result && $activity->name == 'component') { // Check if an entry point file exists. $element = $activity->metadata->element; $result = (bool) file_exists(JPATH_ADMINISTRATOR . '/components/' . $element . '/' . str_replace('com_', '', $element) . '.php'); } return $result; }
protected function _resourceExists($config = array()) { $config = new KConfig($config); switch ($config->activity->name) { case 'item': $table = 'menu'; break; case 'menu': $table = 'menu_types'; break; } $config->append(array('table' => $table, 'identity_column' => 'id')); return parent::_resourceExists($config); }
protected function _resourceExists($config = array()) { $config = new KConfig($config); switch ($config->activity->name) { default: case 'banner': $table = 'banners'; break; case 'client': $table = 'banner_clients'; break; } $config->append(array('table' => $table, 'identity_column' => 'id')); return parent::_resourceExists($config); }
protected function _resourceExists($config = array()) { $config = new KConfig($config); $version = $this->_getComponentVersion(); $parts = explode('.', $version); switch ($parts[0]) { case '-1': // DOCman not installed. Target does not exists. $result = false; break; case '1': $config->append(array('table' => 'docman', 'identity_column' => 'id')); default: $result = parent::_resourceExists($config); break; } return $result; }
protected function _resourceExists($config = array()) { $config = new KConfig($config); $config->append(array('table' => 'newsfeeds', 'identity_column' => 'id')); return parent::_resourceExists($config); }