本文整理汇总了PHP中flexicontent_db::useAssociations方法的典型用法代码示例。如果您正苦于以下问题:PHP flexicontent_db::useAssociations方法的具体用法?PHP flexicontent_db::useAssociations怎么用?PHP flexicontent_db::useAssociations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flexicontent_db
的用法示例。
在下文中一共展示了flexicontent_db::useAssociations方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ob_get_clean
?>
">
<?php
echo $infoimage;
?>
</span>
</div>
<?php
}
?>
</div>
</fieldset>
<?php
$captured['tags'] = ob_get_clean();
}
if (!isset($all_tab_fields['lang']) && $captured['lang'] || flexicontent_db::useAssociations() && $this->params->get('uselang_fe', 1) == 1) {
ob_start();
// language
?>
<fieldset class="basicfields_set" id="fcform_language_container">
<legend>
<?php
echo !isset($all_tab_fields['lang']) ? JText::_('FLEXI_LANGUAGE') : JText::_('FLEXI_LANGUAGE') . ' ' . JText::_('FLEXI_ASSOCIATIONS');
?>
</legend>
<?php
if (!isset($all_tab_fields['lang'])) {
echo $captured['lang'];
unset($captured['lang']);
}
示例2: foreach
foreach ($this->tmpls as $tmpl) {
$layouts[] = $tmpl->name;
}
$layouts = implode("','", $layouts);
$this->document->addScriptDeclaration("
window.addEvent('domready', function() {
activatePanel('blog');
});
");
dump($this->row);
*/
?>
<?php
$useAssocs = flexicontent_db::useAssociations();
// Load JS tabber lib
$this->document->addScriptVersion(JURI::root(true) . '/components/com_flexicontent/assets/js/tabber-minimized.js', FLEXI_VERSION);
$this->document->addStyleSheetVersion(JURI::root(true) . '/components/com_flexicontent/assets/css/tabber.css', FLEXI_VERSION);
$this->document->addScriptDeclaration(' document.write(\'<style type="text/css">.fctabber{display:none;}<\\/style>\'); ');
// temporarily hide the tabbers until javascript runs
$js = "\n\tjQuery(document).ready(function(){\n\t\tfc_bindFormDependencies('#flexicontent', 0, '');\n\t});\n";
?>
<style>
.current:after{
clear: both;
content: "";
display: block;
}
</style>
示例3: defined
$end_text = '<div class="icon-arrow-up-2" title="' . JText::_('FLEXI_HIDE') . '" style="cursor: pointer;" onclick="fc_toggle_box_via_btn(\\\'mainChooseColBox\\\', document.getElementById(\\\'fc_mainChooseColBox_btn\\\'), \\\'btn-primary\\\');"></div>';
flexicontent_html::jscode_to_showhide_table('mainChooseColBox', 'adminListTableFCitems', $start_text, $end_text);
global $globalcats;
$cparams = JComponentHelper::getParams('com_flexicontent');
$limit = $this->pagination->limit;
$ctrl = 'items.';
$items_task = 'task=items.';
$cats_task = 'task=category.';
$db = JFactory::getDBO();
$config = JFactory::getConfig();
$nullDate = $db->getNullDate();
$user = JFactory::getUser();
//$_sh404sef = JPluginHelper::isEnabled('system', 'sh404sef') && $config->get('sef');
$_sh404sef = defined('SH404SEF_IS_RUNNING') && $config->get('sef');
$isAdmin = JFactory::getApplication()->isAdmin();
$enable_translation_groups = flexicontent_db::useAssociations();
//$cparams->get("enable_translation_groups");
$autologin = '';
//$cparams->get('autoflogin', 1) ? '&fcu='.$user->username . '&fcp='.$user->password : '';
$list_total_cols = 18;
if ($enable_translation_groups) {
$list_total_cols++;
}
$list_total_cols += count($this->extra_fields);
$image_flag_path = "../media/mod_languages/images/";
$attribs_preview = ' class="fc-man-icon-s ' . $tip_class . '" title="' . flexicontent_html::getToolTip('FLEXI_PREVIEW', 'FLEXI_DISPLAY_ENTRY_IN_FRONTEND_DESC', 1, 1) . '" ';
$image_preview = JHTML::image('components/com_flexicontent/assets/images/' . 'monitor_go.png', JText::_('FLEXI_PREVIEW'), $attribs_preview);
$attribs_editlayout = ' class="fc-man-icon-s" title="' . flexicontent_html::getToolTip('FLEXI_EDIT_LAYOUT', null, 1, 1) . '" ';
$image_editlayout = JHTML::image('components/com_flexicontent/assets/images/' . 'layout_edit.png', JText::_('FLEXI_EDIT_LAYOUT'), $attribs_editlayout);
$ordering_draggable = $cparams->get('draggable_reordering', 1);
if ($this->ordering) {
示例4: _displayForm
/**
* Creates the item submit form
*
* @since 1.0
*/
function _displayForm($tpl)
{
jimport('joomla.html.parameter');
// ... we use some strings from administrator part
// load english language file for 'com_content' component then override with current language file
JFactory::getLanguage()->load('com_content', JPATH_ADMINISTRATOR, 'en-GB', true);
JFactory::getLanguage()->load('com_content', JPATH_ADMINISTRATOR, null, true);
// load english language file for 'com_flexicontent' component then override with current language file
JFactory::getLanguage()->load('com_flexicontent', JPATH_ADMINISTRATOR, 'en-GB', true);
JFactory::getLanguage()->load('com_flexicontent', JPATH_ADMINISTRATOR, null, true);
// ********************************
// Initialize variables, flags, etc
// ********************************
$app = JFactory::getApplication();
$dispatcher = JDispatcher::getInstance();
$document = JFactory::getDocument();
$session = JFactory::getSession();
$user = JFactory::getUser();
$db = JFactory::getDBO();
$uri = JFactory::getURI();
$nullDate = $db->getNullDate();
$menu = $app->getMenu()->getActive();
// We do not have item parameters yet, but we need to do some work before creating the item
// Get the COMPONENT only parameter
$params = new JRegistry();
$cparams = JComponentHelper::getParams('com_flexicontent');
$params->merge($cparams);
// Merge the active menu parameters
if ($menu) {
$params->merge($menu->params);
}
// Some flags
$enable_translation_groups = flexicontent_db::useAssociations();
//$params->get("enable_translation_groups");
$print_logging_info = $params->get('print_logging_info');
if ($print_logging_info) {
global $fc_run_times;
}
// *****************
// Load JS/CSS files
// *****************
FLEXI_J30GE ? JHtml::_('behavior.framework', true) : JHTML::_('behavior.mootools');
flexicontent_html::loadFramework('jQuery');
flexicontent_html::loadFramework('select2');
flexicontent_html::loadFramework('flexi-lib');
// Load custom behaviours: form validation, popup tooltips
JHTML::_('behavior.formvalidation');
// load default validation JS to make sure it is overriden
JHTML::_('behavior.tooltip');
if (FLEXI_J30GE) {
JHtml::_('bootstrap.tooltip');
}
//JHTML::_('script', 'joomla.javascript.js', 'includes/js/');
// Add css files to the document <head> section (also load CSS joomla template override)
$document->addStyleSheet(JURI::base(true) . '/components/com_flexicontent/assets/css/flexicontent.css');
if (file_exists(JPATH_SITE . DS . 'templates' . DS . $app->getTemplate() . DS . 'css' . DS . 'flexicontent.css')) {
$document->addStyleSheet($this->baseurl . '/templates/' . $app->getTemplate() . '/css/flexicontent.css');
}
// Fields common CSS
$document->addStyleSheet($this->baseurl . '/components/com_flexicontent/assets/css/flexi_form_fields.css');
// Load backend / frontend shared and Joomla version specific CSS (different for frontend / backend)
FLEXI_J30GE ? $document->addStyleSheet(JURI::base(true) . '/components/com_flexicontent/assets/css/j3x.css') : $document->addStyleSheet(JURI::base(true) . '/components/com_flexicontent/assets/css/j25.css');
// Add js function to overload the joomla submitform
$document->addScript(JURI::base(true) . '/components/com_flexicontent/assets/js/admin.js');
$document->addScript(JURI::base(true) . '/components/com_flexicontent/assets/js/validate.js');
// Add js function for custom code used by FLEXIcontent item form
$document->addScript(JURI::base(true) . '/components/com_flexicontent/assets/js/itemscreen.js');
// *********************************************************
// Get item data and create item form (that loads item data)
// *********************************************************
if ($print_logging_info) {
$start_microtime = microtime(true);
}
$model = $this->getModel();
// ** WE NEED TO get OR decide the Content Type, before we call the getItem
// ** We rely on typeid Request variable to decide type for new items so make sure this is set,
// ZERO means allow user to select type, but if user is only allowed a single type, then autoselect it!
// Try type from session
$jdata = $app->getUserState('com_flexicontent.edit.item.data');
//print_r($jdata);
if (!empty($jdata['type_id'])) {
JRequest::setVar('typeid', (int) $jdata['type_id']);
// This also forces zero if value not set
} else {
if ($menu && isset($menu->query['typeid'])) {
JRequest::setVar('typeid', (int) $menu->query['typeid']);
// This also forces zero if value not set
}
}
$new_typeid = JRequest::getVar('typeid', 0, '', 'int');
// Verify type is allowed to the user
if (!$new_typeid) {
$types = $model->getTypeslist($type_ids_arr = false, $check_perms = true, $_published = true);
if ($types && count($types) == 1) {
$new_typeid = $types[0]->id;
//.........这里部分代码省略.........
示例5: saveAssociations
/**
* Method to save language associations
*
* @return boolean True if successful
*/
static function saveAssociations(&$item, &$data, $context)
{
$assoc = flexicontent_db::useAssociations();
if (!$assoc) {
return true;
}
// **********************************
// Prepare / check associations array
// **********************************
// Unset empty associations from associations array, to avoid save them in the associations table
$associations = isset($data['associations']) ? $data['associations'] : array();
foreach ($associations as $tag => $id) {
if (empty($id)) {
unset($associations[$tag]);
}
}
// Raise notice that associations should be empty if language of current item is '*' (ALL)
$all_language = $item->language == '*';
if ($all_language && !empty($associations)) {
JError::raiseNotice(403, JText::_('FLEXI_ERROR_ALL_LANGUAGE_ASSOCIATED'));
}
// Make sure that current item id, is the association id of the language of the current item
$associations[$item->language] = $item->id;
// Make sure associations ids are integers
JArrayHelper::toInteger($associations);
// ***********************
// Delete old associations
// ***********************
$db = JFactory::getDbo();
$query = $db->getQuery(true)->delete('#__associations')->where($db->quoteName('context') . ' = ' . $db->quote($context . '.item'))->where($db->quoteName('id') . ' IN (' . implode(',', $associations) . ')');
$db->setQuery($query);
$db->execute();
if ($error = $db->getErrorMsg()) {
$this->setError($error);
return false;
}
// ********************
// Add new associations
// ********************
// Only add language associations if item language is not '*' (ALL)
if ($all_language || !count($associations)) {
return true;
}
$key = md5(json_encode($associations));
$query->clear()->insert('#__associations');
foreach ($associations as $id) {
$query->values($id . ',' . $db->quote($context . '.item') . ',' . $db->quote($key));
}
$db->setQuery($query);
$db->execute();
if ($error = $db->getErrorMsg()) {
$this->setError($error);
return false;
}
return true;
}
示例6: display
/**
* Creates the item page
*
* @since 1.0
*/
function display($tpl = null)
{
// ********************************
// Initialize variables, flags, etc
// ********************************
global $globalcats;
$categories = $globalcats;
$app = JFactory::getApplication();
$dispatcher = JDispatcher::getInstance();
$document = JFactory::getDocument();
$config = JFactory::getConfig();
$session = JFactory::getSession();
$user = JFactory::getUser();
$db = JFactory::getDBO();
$option = JRequest::getVar('option');
$nullDate = $db->getNullDate();
// Get the COMPONENT only parameters
// Get component parameters
$params = new JRegistry();
$cparams = JComponentHelper::getParams('com_flexicontent');
$params->merge($cparams);
$params = clone JComponentHelper::getParams('com_flexicontent');
// Some flags
$enable_translation_groups = flexicontent_db::useAssociations();
//$params->get("enable_translation_groups");
$print_logging_info = $params->get('print_logging_info');
if ($print_logging_info) {
global $fc_run_times;
}
// *****************
// Load JS/CSS files
// *****************
// Add css to document
$document->addStyleSheetVersion(JURI::base(true) . '/components/com_flexicontent/assets/css/flexicontentbackend.css', FLEXI_VERSION);
$document->addStyleSheetVersion(JURI::base(true) . '/components/com_flexicontent/assets/css/j3x.css', FLEXI_VERSION);
// Fields common CSS
$document->addStyleSheetVersion(JURI::root(true) . '/components/com_flexicontent/assets/css/flexi_form_fields.css', FLEXI_VERSION);
// Add JS frameworks
flexicontent_html::loadFramework('select2');
$prettycheckable_added = flexicontent_html::loadFramework('prettyCheckable');
flexicontent_html::loadFramework('flexi-lib');
// Add js function to overload the joomla submitform validation
JHTML::_('behavior.formvalidation');
// load default validation JS to make sure it is overriden
$document->addScriptVersion(JURI::root(true) . '/components/com_flexicontent/assets/js/admin.js', FLEXI_VERSION);
$document->addScriptVersion(JURI::root(true) . '/components/com_flexicontent/assets/js/validate.js', FLEXI_VERSION);
// Add js function for custom code used by FLEXIcontent item form
$document->addScriptVersion(JURI::root(true) . '/components/com_flexicontent/assets/js/itemscreen.js', FLEXI_VERSION);
// ***********************
// Get data from the model
// ***********************
if ($print_logging_info) {
$start_microtime = microtime(true);
}
$model = $this->getModel();
$item = $model->getItem();
$form = $this->get('Form');
if ($print_logging_info) {
$fc_run_times['get_item_data'] = round(1000000 * 10 * (microtime(true) - $start_microtime)) / 10;
}
// ***************************
// Get Associated Translations
// ***************************
if ($enable_translation_groups) {
$langAssocs = $this->get('LangAssocs');
}
$langs = FLEXIUtilities::getLanguages('code');
// Get item id and new flag
$cid = $model->getId();
$isnew = !$cid;
// Create and set a unique item id for plugins that needed it
if ($cid) {
$unique_tmp_itemid = $cid;
} else {
$unique_tmp_itemid = $app->getUserState('com_flexicontent.edit.item.unique_tmp_itemid');
$unique_tmp_itemid = $unique_tmp_itemid ? $unique_tmp_itemid : date('_Y_m_d_h_i_s_', time()) . uniqid(true);
}
//print_r($unique_tmp_itemid);
JRequest::setVar('unique_tmp_itemid', $unique_tmp_itemid);
// Get number of subscribers
$subscribers = $model->getSubscribersCount();
// ******************
// Version Panel data
// ******************
// Get / calculate some version related variables
$versioncount = $model->getVersionCount();
$versionsperpage = $params->get('versionsperpage', 10);
$pagecount = (int) ceil($versioncount / $versionsperpage);
// Data need by version panel: (a) current version page, (b) currently active version
$current_page = 1;
$k = 1;
$allversions = $model->getVersionList();
foreach ($allversions as $v) {
if ($k > 1 && ($k - 1) % $versionsperpage == 0) {
$current_page++;
//.........这里部分代码省略.........
示例7: useAssociations
/**
* Method to determine if J3.1+ associations should be used
*
* @return boolean True if using J3 associations; false otherwise.
*/
public function useAssociations()
{
return flexicontent_db::useAssociations();
}
示例8: copyitems
//.........这里部分代码省略.........
//print_r($row->fulltext); exit;
// Create a new item in the content fc_items_ext table
$row->store();
// Not doing a translation, we start a new language group for the new item
if ($translate_method == 0) {
$row->lang_parent_id = 0;
//$row->id;
$row->store();
}
// ***********************************************************
// Copy custom fields, translating the fields if so configured
// ***********************************************************
$doTranslation = $translate_method == 3 || $translate_method == 4;
$query = 'SELECT fir.*, f.* ' . ' FROM #__flexicontent_fields_item_relations as fir' . ' LEFT JOIN #__flexicontent_fields as f ON f.id=fir.field_id' . ' WHERE item_id = ' . $sourceid;
$this->_db->setQuery($query);
$fields = $this->_db->loadObjectList();
//echo "<pre>"; print_r($fields); exit;
if ($doTranslation) {
$this->translateFieldValues($fields, $row, $lang_from, $lang_to);
}
//foreach ($fields as $field) if ($field->field_type!='text' && $field->field_type!='textarea') { print_r($field->value); echo "<br><br>"; }
foreach ($fields as $field) {
if (strlen($field->value)) {
$query = 'INSERT INTO #__flexicontent_fields_item_relations (`field_id`, `item_id`, `valueorder`, `suborder`, `value`)' . ' VALUES(' . $field->field_id . ', ' . $row->id . ', ' . $field->valueorder . ', ' . $field->suborder . ', ' . $this->_db->Quote($field->value) . ')';
$this->_db->setQuery($query);
$this->_db->execute();
}
}
if ($use_versioning) {
$v = new stdClass();
$v->item_id = (int) $item->id;
$v->version_id = 1;
$v->created = $item->created;
$v->created_by = $item->created_by;
//$v->comment = 'copy version.';
$this->_db->insertObject('#__flexicontent_versions', $v);
}
// get the items versions
$query = 'SELECT *' . ' FROM #__flexicontent_items_versions' . ' WHERE item_id = ' . $sourceid . ' AND version = ' . $curversion;
$this->_db->setQuery($query);
$curversions = $this->_db->loadObjectList();
foreach ($curversions as $cv) {
$query = 'INSERT INTO #__flexicontent_items_versions (`version`, `field_id`, `item_id`, `valueorder`, `suborder`, `value`)' . ' VALUES(1 ,' . $cv->field_id . ', ' . $row->id . ', ' . $cv->valueorder . ', ' . $cv->suborder . ', ' . $this->_db->Quote($cv->value) . ')';
$this->_db->setQuery($query);
$this->_db->execute();
}
// get the item categories
$query = 'SELECT catid' . ' FROM #__flexicontent_cats_item_relations' . ' WHERE itemid = ' . $sourceid;
$this->_db->setQuery($query);
$cats = $this->_db->loadColumn();
foreach ($cats as $cat) {
$query = 'INSERT INTO #__flexicontent_cats_item_relations (`catid`, `itemid`)' . ' VALUES(' . $cat . ',' . $row->id . ')';
$this->_db->setQuery($query);
$this->_db->execute();
}
if ($keeptags) {
// get the item tags
$query = 'SELECT tid' . ' FROM #__flexicontent_tags_item_relations' . ' WHERE itemid = ' . $sourceid;
$this->_db->setQuery($query);
$tags = $this->_db->loadColumn();
foreach ($tags as $tag) {
$query = 'INSERT INTO #__flexicontent_tags_item_relations (`tid`, `itemid`)' . ' VALUES(' . $tag . ',' . $row->id . ')';
$this->_db->setQuery($query);
$this->_db->execute();
}
}
if ($method == 3) {
$this->moveitem($row->id, $maincat, $seccats);
} else {
if ($method == 99 && ($maincat || $seccats)) {
$row->catid = $maincat ? $maincat : $row->catid;
$this->moveitem($row->id, $row->catid, $seccats);
}
}
// Load item model and save it once, e.g. updating Joomla featured FLAG data
//$itemmodel = new FlexicontentModelItem();
//$itemmodel->getItem($row->id);
//$itemmodel->store((array)$row);
// If new item is a tranlation, load the language associations of item
// that was copied, and save the associations, adding the new item to them
if ($method == 99 && $item->language != '*' && $row->language != '*' && flexicontent_db::useAssociations()) {
$associations = JLanguageAssociations::getAssociations('com_content', '#__content', 'com_content.item', $item->id);
// associations of item that was copied
$_data = array();
foreach ($associations as $tag => $association) {
$_data['associations'][$tag] = (int) $association->id;
}
$_data['associations'][$row->language] = $row->id;
// Add new item itself
$_data['associations'][$item->language] = $item->id;
// unneeded, done by saving ...
$context = 'com_content';
flexicontent_db::saveAssociations($row, $_data, $context);
// Save associations, adding the new item
//$app->enqueueMessage( print_r($_data, true), 'message' );
}
}
}
return true;
}
示例9: getPropertySupport
static function getPropertySupport($field_type, $iscore, $spname = null)
{
static $fi = null;
if ($fi === null) {
$fi = FlexicontentFields::getPropertySupport_BuiltIn();
}
static $cparams = null;
if ($cparams === null) {
$cparams = JComponentHelper::getParams('com_flexicontent');
}
static $support_ft = array();
if (isset($support_ft[$field_type])) {
return !$spname ? $support_ft[$field_type] : $support_ft[$field_type]->{$spname};
}
// Existing fields with field type
if ($field_type) {
// Make sure that the Joomla plugin that implements the type of current flexi field, has been imported
//JPluginHelper::importPlugin('flexicontent_fields', $field_type);
FLEXIUtilities::call_FC_Field_Func($iscore ? 'core' : $field_type, null, null);
// Get Methods implemented by the field
$classname = 'plgFlexicontent_fields' . ($iscore ? 'core' : $field_type);
$classmethods = get_class_methods($classname);
// SEARCH/FILTER related properties
$supportsearch = $iscore ? in_array($field_type, $fi->core_search) : in_array('onIndexSearch', $classmethods);
$supportfilter = $iscore ? in_array($field_type, $fi->core_filters) : in_array('onDisplayFilter', $classmethods);
$supportadvsearch = $iscore ? in_array($field_type, $fi->core_advsearch) : in_array('onIndexAdvSearch', $classmethods);
$supportadvfilter = $iscore ? in_array($field_type, $fi->core_advfilters) : in_array('onAdvSearchDisplayFilter', $classmethods);
// ITEM FORM related properties
$supportuntranslatable = !$iscore || $field_type == 'maintext';
$supportvalueseditable = !$iscore || $field_type == 'maintext';
$supportformhidden = !$iscore || $field_type == 'maintext';
$supportedithelp = !$iscore || $field_type == 'maintext';
// New fields without field type
} else {
// SEARCH/FILTER related properties
$supportsearch = false;
$supportfilter = false;
$supportadvsearch = false;
$supportadvfilter = false;
// ITEM FORM related properties
$supportuntranslatable = !$iscore;
$supportvalueseditable = !$iscore;
$supportformhidden = !$iscore;
$supportedithelp = !$iscore;
}
// This property is usable only when Translation Groups are enabled
$supportuntranslatable = $supportuntranslatable && flexicontent_db::useAssociations();
//$cparams->get('enable_translation_groups');
$support_ft[$field_type] = new stdClass();
$support_ft[$field_type]->supportsearch = $supportsearch;
$support_ft[$field_type]->supportfilter = $supportfilter;
$support_ft[$field_type]->supportadvsearch = $supportadvsearch;
$support_ft[$field_type]->supportadvfilter = $supportadvfilter;
$support_ft[$field_type]->supportuntranslatable = $supportuntranslatable;
$support_ft[$field_type]->supportvalueseditable = $supportvalueseditable;
$support_ft[$field_type]->supportformhidden = $supportformhidden;
$support_ft[$field_type]->supportedithelp = $supportedithelp;
return !$spname ? $support_ft[$field_type] : $support_ft[$field_type]->{$spname};
}
示例10: getItemsNoLang
/**
* Method to get if language of items is initialized properly
*
* @access public
* @return boolean True on success
* @since 1.5
*/
function getItemsNoLang()
{
static $return;
if ($return !== NULL) {
return $return;
}
$return = false;
$cparams = JComponentHelper::getParams('com_flexicontent');
$enable_translation_groups = flexicontent_db::useAssociations();
//$cparams->get("enable_translation_groups");
// Check for emtpy language in flexicontent EXT table
$query = "SELECT COUNT(*)" . " FROM #__flexicontent_items_ext as ie" . " WHERE ie.language='' " . " LIMIT 1";
$this->_db->setQuery($query);
$cnt = $this->_db->loadResult();
if ($cnt) {
return $return = true;
}
$query = "SELECT COUNT(*)" . " FROM #__content as i" . " WHERE i.language=''" . " LIMIT 1";
$this->_db->setQuery($query);
$cnt = $this->_db->loadResult();
if ($cnt) {
return $return = true;
}
$query = "SELECT COUNT(*)" . " FROM #__content as i" . " JOIN #__flexicontent_items_ext as ie ON i.id=ie.item_id " . " WHERE i.language<>ie.language" . " LIMIT 1";
$this->_db->setQuery($query);
$cnt = $this->_db->loadResult();
if ($cnt) {
return $return = true;
}
// Check for not yet transfered language associations
$query = "SELECT COUNT(*)" . " FROM #__flexicontent_items_ext as ie" . " WHERE ie.lang_parent_id <> 0" . " LIMIT 1";
$this->_db->setQuery($query);
$cnt = $this->_db->loadResult();
if ($cnt) {
return $return = true;
}
return $return;
}