Added search by translated string to the translation area.
This commit is contained in:
@ -317,11 +317,19 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
return ComponentbuilderHelper::getClassCode($id, $type);
|
||||
}
|
||||
|
||||
public function getClassCodeIds($id, $type)
|
||||
public function getClassCodeIds($id, $type, $key)
|
||||
{
|
||||
if ('property' === $type || 'method' === $type)
|
||||
{
|
||||
return ComponentbuilderHelper::getVars('class_' . $type, $id, 'joomla_plugin_group', 'id');
|
||||
// we get the plugin group, or the powers
|
||||
if ($key == 1)
|
||||
{
|
||||
return ComponentbuilderHelper::getVars('class_' . $type, $id, 'joomla_plugin_group', 'id');
|
||||
}
|
||||
elseif ($key == 2)
|
||||
{
|
||||
return ComponentbuilderHelper::getVars('class_' . $type, 'powers', 'extension_type', 'id');
|
||||
}
|
||||
}
|
||||
elseif ('joomla_plugin_group' === $type)
|
||||
{
|
||||
@ -2659,6 +2667,13 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
'views' => 'class_methods',
|
||||
'not_base64' => array(),
|
||||
'name' => 'name'
|
||||
),
|
||||
// #__componentbuilder_power (v)
|
||||
'class_method' => array(
|
||||
'search' => array('id', 'name', 'description', 'head', 'head', 'main_class_code'),
|
||||
'views' => 'powers',
|
||||
'not_base64' => array('description'),
|
||||
'name' => 'name'
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -2073,6 +2073,13 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
'views' => 'class_methods',
|
||||
'not_base64' => array(),
|
||||
'name' => 'name'
|
||||
),
|
||||
// #__componentbuilder_power (v)
|
||||
'class_method' => array(
|
||||
'search' => array('id', 'name', 'description', 'head', 'head', 'main_class_code'),
|
||||
'views' => 'powers',
|
||||
'not_base64' => array('description'),
|
||||
'name' => 'name'
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -387,7 +387,7 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
||||
else
|
||||
{
|
||||
$search = $db->quote('%' . $db->escape($search) . '%');
|
||||
$query->where('(a.source LIKE '.$search.')');
|
||||
$query->where('(a.source LIKE '.$search.' OR a.translation LIKE '.$search.')');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user