forked from joomla/Component-Builder
Made a little tweak to placeholders, to remove uneeded space.
This commit is contained in:
parent
5962b557c8
commit
45c255485f
@ -21,7 +21,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
* ###Component### component helper.
|
* ###Component### component helper.
|
||||||
*/
|
*/
|
||||||
abstract class ###Component###Helper
|
abstract class ###Component###Helper
|
||||||
{###ADMIN_GLOBAL_EVENT_HELPER### ###CUSTOM_HELPER_SCRIPT### ###BOTH_CUSTOM_HELPER_SCRIPT###
|
{###ADMIN_GLOBAL_EVENT_HELPER######CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||||
/**
|
/**
|
||||||
* Load the Component xml manifest.
|
* Load the Component xml manifest.
|
||||||
**/
|
**/
|
||||||
@ -96,7 +96,7 @@ abstract class ###Component###Helper
|
|||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
// load the submenus to sidebar
|
// load the submenus to sidebar
|
||||||
###SUBMENU###
|
###SUBMENU###
|
||||||
}###HELPER_CREATEUSER### ###HELPER_UIKIT### ###HELPER_EXEL###
|
}###HELPER_CREATEUSER######HELPER_UIKIT######HELPER_EXEL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a Variable
|
* Get a Variable
|
||||||
|
@ -21,7 +21,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
* ###Component### component helper
|
* ###Component### component helper
|
||||||
*/
|
*/
|
||||||
abstract class ###Component###Helper
|
abstract class ###Component###Helper
|
||||||
{###SITE_GLOBAL_EVENT_HELPER### ###SITE_CUSTOM_HELPER_SCRIPT### ###BOTH_CUSTOM_HELPER_SCRIPT###
|
{###SITE_GLOBAL_EVENT_HELPER######SITE_CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||||
|
|
||||||
public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')
|
public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')
|
||||||
{
|
{
|
||||||
@ -459,7 +459,7 @@ abstract class ###Component###Helper
|
|||||||
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
||||||
// return the input
|
// return the input
|
||||||
return self::getFieldObject($buttonAttributes, $buttonAttributes['default'], $buttonOptions)->input;
|
return self::getFieldObject($buttonAttributes, $buttonAttributes['default'], $buttonOptions)->input;
|
||||||
}###HELPER_UIKIT### ###HELPER_CREATEUSER###
|
}###HELPER_UIKIT######HELPER_CREATEUSER###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a variable
|
* Get a variable
|
||||||
|
@ -44,5 +44,5 @@ class ###Component###Controller###Views### extends JControllerAdmin
|
|||||||
public function getModel($name = '###View###', $prefix = '###Component###Model', $config = array('ignore_request' => true))
|
public function getModel($name = '###View###', $prefix = '###Component###Model', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}###CONTROLLEREXIMPORTMETHOD### ###CUSTOM_ADMIN_DYNAMIC_BUTTONS_CONTROLLER### ###ADMIN_CUSTOM_BUTTONS_CONTROLLER_LIST###
|
}###CONTROLLEREXIMPORTMETHOD######CUSTOM_ADMIN_DYNAMIC_BUTTONS_CONTROLLER######ADMIN_CUSTOM_BUTTONS_CONTROLLER_LIST###
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}###LINKEDVIEWGLOBAL###
|
}###LINKEDVIEWGLOBAL###
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}###LINKEDVIEWMETHODS### ###LICENSE_LOCKED_SET_BOOL###
|
}###LINKEDVIEWMETHODS######LICENSE_LOCKED_SET_BOOL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -238,7 +238,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}###VALIDATIONFIX### ###UNIQUEFIELDS###
|
}###VALIDATIONFIX######UNIQUEFIELDS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to delete one or more records.
|
* Method to delete one or more records.
|
||||||
@ -373,7 +373,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}###MODEL_BATCH_COPY### ###MODEL_BATCH_MOVE###
|
}###MODEL_BATCH_COPY######MODEL_BATCH_MOVE###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to save the form data.
|
* Method to save the form data.
|
||||||
@ -397,7 +397,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}###CHECKBOX_SAVE### ###METHOD_ITEM_SAVE###
|
}###CHECKBOX_SAVE######METHOD_ITEM_SAVE###
|
||||||
|
|
||||||
// Set the Params Items to data
|
// Set the Params Items to data
|
||||||
if (isset($data['params']) && is_array($data['params']))
|
if (isset($data['params']) && is_array($data['params']))
|
||||||
|
@ -94,7 +94,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}###LINKEDVIEWGLOBAL###
|
}###LINKEDVIEWGLOBAL###
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}###LINKEDVIEWMETHODS### ###LICENSE_LOCKED_SET_BOOL###
|
}###LINKEDVIEWMETHODS######LICENSE_LOCKED_SET_BOOL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -238,7 +238,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}###VALIDATIONFIX### ###UNIQUEFIELDS###
|
}###VALIDATIONFIX######UNIQUEFIELDS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to delete one or more records.
|
* Method to delete one or more records.
|
||||||
@ -373,7 +373,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}###MODEL_BATCH_COPY### ###MODEL_BATCH_MOVE###
|
}###MODEL_BATCH_COPY######MODEL_BATCH_MOVE###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to save the form data.
|
* Method to save the form data.
|
||||||
@ -397,7 +397,7 @@ class ###Component###Model###View### extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}###CHECKBOX_SAVE### ###METHOD_ITEM_SAVE###
|
}###CHECKBOX_SAVE######METHOD_ITEM_SAVE###
|
||||||
|
|
||||||
// Set the Params Items to data
|
// Set the Params Items to data
|
||||||
if (isset($data['params']) && is_array($data['params']))
|
if (isset($data['params']) && is_array($data['params']))
|
||||||
|
@ -123,5 +123,5 @@ class ###Component###Model###SView### extends JModelItem
|
|||||||
}###CUSTOM_ADMIN_AFTER_GET_ITEM###
|
}###CUSTOM_ADMIN_AFTER_GET_ITEM###
|
||||||
|
|
||||||
return $this->_item[$pk];
|
return $this->_item[$pk];
|
||||||
}###CUSTOM_ADMIN_CUSTOM_METHODS### ###LICENSE_LOCKED_SET_BOOL### ###CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
}###CUSTOM_ADMIN_CUSTOM_METHODS######LICENSE_LOCKED_SET_BOOL######CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -116,5 +116,5 @@ class ###Component###Model###SView### extends JModelItem
|
|||||||
}###SITE_AFTER_GET_ITEM###
|
}###SITE_AFTER_GET_ITEM###
|
||||||
|
|
||||||
return $this->_item[$pk];
|
return $this->_item[$pk];
|
||||||
}###LICENSE_LOCKED_SET_BOOL### ###SITE_CUSTOM_METHODS### ###SITE_CUSTOM_BUTTONS_METHOD### ###SITE_CUSTOM_GET_FORM_METHOD###
|
}###LICENSE_LOCKED_SET_BOOL######SITE_CUSTOM_METHODS######SITE_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -78,9 +78,9 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{###LICENSE_LOCKED_CHECK### ###CHECKINCALL###
|
{###LICENSE_LOCKED_CHECK######CHECKINCALL###
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();###GET_ITEMS_METHOD_STRING_FIX### ###SELECTIONTRANSLATIONFIX### ###GET_ITEMS_METHOD_AFTER_ALL###
|
$items = parent::getItems();###GET_ITEMS_METHOD_STRING_FIX######SELECTIONTRANSLATIONFIX######GET_ITEMS_METHOD_AFTER_ALL###
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -94,7 +94,7 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
protected function getListQuery()
|
protected function getListQuery()
|
||||||
{###LICENSE_LOCKED_CHECK###
|
{###LICENSE_LOCKED_CHECK###
|
||||||
###LISTQUERY###
|
###LISTQUERY###
|
||||||
}###MODELEXPORTMETHOD### ###LICENSE_LOCKED_SET_BOOL###
|
}###MODELEXPORTMETHOD######LICENSE_LOCKED_SET_BOOL###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -71,14 +71,14 @@ class ###Component###Model###SViews### extends JModelList
|
|||||||
// redirect away if not a correct (TODO for now we go to default view)
|
// redirect away if not a correct (TODO for now we go to default view)
|
||||||
$app->redirect('index.php?option=com_###component###');
|
$app->redirect('index.php?option=com_###component###');
|
||||||
return false;
|
return false;
|
||||||
}###LICENSE_LOCKED_CHECK### ###CUSTOM_ADMIN_BEFORE_GET_ITEMS###
|
}###LICENSE_LOCKED_CHECK######CUSTOM_ADMIN_BEFORE_GET_ITEMS###
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// Get the global params
|
// Get the global params
|
||||||
$globalParams = JComponentHelper::getParams('com_###component###', true);###CUSTOM_ADMIN_GET_ITEMS### ###CUSTOM_ADMIN_AFTER_GET_ITEMS###
|
$globalParams = JComponentHelper::getParams('com_###component###', true);###CUSTOM_ADMIN_GET_ITEMS######CUSTOM_ADMIN_AFTER_GET_ITEMS###
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
}###CUSTOM_ADMIN_CUSTOM_METHODS### ###LICENSE_LOCKED_SET_BOOL### ###CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
}###CUSTOM_ADMIN_CUSTOM_METHODS######LICENSE_LOCKED_SET_BOOL######CUSTOM_ADMIN_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -62,14 +62,14 @@ class ###Component###Model###SViews### extends JModelList
|
|||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
$user = JFactory::getUser();###USER_PERMISSION_CHECK_ACCESS### ###LICENSE_LOCKED_CHECK### ###SITE_BEFORE_GET_ITEMS###
|
$user = JFactory::getUser();###USER_PERMISSION_CHECK_ACCESS######LICENSE_LOCKED_CHECK######SITE_BEFORE_GET_ITEMS###
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
// Get the global params
|
// Get the global params
|
||||||
$globalParams = JComponentHelper::getParams('com_###component###', true);###SITE_GET_ITEMS### ###SITE_AFTER_GET_ITEMS###
|
$globalParams = JComponentHelper::getParams('com_###component###', true);###SITE_GET_ITEMS######SITE_AFTER_GET_ITEMS###
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
}###LICENSE_LOCKED_SET_BOOL### ###SITE_CUSTOM_METHODS### ###SITE_CUSTOM_BUTTONS_METHOD### ###SITE_CUSTOM_GET_FORM_METHOD###
|
}###LICENSE_LOCKED_SET_BOOL######SITE_CUSTOM_METHODS######SITE_CUSTOM_BUTTONS_METHOD###
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class ###Component###Table###View### extends JTable
|
|||||||
*/
|
*/
|
||||||
function __construct(&$db)
|
function __construct(&$db)
|
||||||
{
|
{
|
||||||
parent::__construct('#__###component###_###view###', 'id', $db);###JTABLECONSTRUCTOR### ###LICENSE_LOCKED_CHECK###
|
parent::__construct('#__###component###_###view###', 'id', $db);###JTABLECONSTRUCTOR######LICENSE_LOCKED_CHECK###
|
||||||
}
|
}
|
||||||
|
|
||||||
public function bind($array, $ignore = '')
|
public function bind($array, $ignore = '')
|
||||||
|
@ -39,9 +39,9 @@ class ###Component###View###SView### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function setDocument()
|
protected function setDocument()
|
||||||
{###CUSTOM_ADMIN_LIBRARIES_LOADER### ###CUSTOM_ADMIN_DOCUMENT_METADATA### ###CUSTOM_ADMIN_UIKIT_LOADER### ###CUSTOM_ADMIN_GOOGLECHART_LOADER### ###CUSTOM_ADMIN_FOOTABLE_LOADER### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
{###CUSTOM_ADMIN_LIBRARIES_LOADER######CUSTOM_ADMIN_DOCUMENT_METADATA######CUSTOM_ADMIN_UIKIT_LOADER######CUSTOM_ADMIN_GOOGLECHART_LOADER######CUSTOM_ADMIN_FOOTABLE_LOADER######CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS######CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -115,7 +115,7 @@ class ###Component###View###View### extends JViewLegacy
|
|||||||
$this->document = JFactory::getDocument();
|
$this->document = JFactory::getDocument();
|
||||||
}
|
}
|
||||||
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
$this->document->setTitle(JText::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
||||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE######LINKEDVIEWTABLESCRIPTS###
|
||||||
$this->document->addScript(JURI::root() . $this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
$this->document->addScript(JURI::root() . $this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||||
$this->document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
$this->document->addScript(JURI::root() . "administrator/components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
||||||
JText::script('view not acceptable. Error');
|
JText::script('view not acceptable. Error');
|
||||||
|
@ -123,7 +123,7 @@ class ###Component###View###View### extends JViewLegacy
|
|||||||
$this->document->addStyleSheet(JURI::root()."administrator/templates/isis/css/template.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
$this->document->addStyleSheet(JURI::root()."administrator/templates/isis/css/template.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||||
$this->document->addScript(JURI::root()."administrator/templates/isis/js/template.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
$this->document->addScript(JURI::root()."administrator/templates/isis/js/template.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||||
// the default style of this view
|
// the default style of this view
|
||||||
$this->document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE### ###LINKEDVIEWTABLESCRIPTS###
|
$this->document->addStyleSheet(JURI::root()."components/com_###component###/assets/css/###view###.css", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###AJAXTOKE######LINKEDVIEWTABLESCRIPTS###
|
||||||
// default javascript of this view
|
// default javascript of this view
|
||||||
$this->document->addScript(JURI::root().$this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
$this->document->addScript(JURI::root().$this->script, (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||||
$this->document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
$this->document->addScript(JURI::root(). "components/com_###component###/views/###view###/submitbutton.js", (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript'); ###DOCUMENT_CUSTOM_PHP###
|
||||||
|
@ -116,7 +116,7 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
// add the button to the page
|
// add the button to the page
|
||||||
$dhtml = $layout->render(array('title' => $title));
|
$dhtml = $layout->render(array('title' => $title));
|
||||||
$bar->appendButton('Custom', $dhtml, 'batch');
|
$bar->appendButton('Custom', $dhtml, 'batch');
|
||||||
}###CUSTOM_ADMIN_DYNAMIC_BUTTONS### ###ADMIN_CUSTOM_BUTTONS_LIST###
|
}###CUSTOM_ADMIN_DYNAMIC_BUTTONS######ADMIN_CUSTOM_BUTTONS_LIST###
|
||||||
|
|
||||||
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
||||||
{
|
{
|
||||||
@ -126,7 +126,7 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
{
|
{
|
||||||
JToolbarHelper::trash('###views###.trash');
|
JToolbarHelper::trash('###views###.trash');
|
||||||
}###EXPORTBUTTON###
|
}###EXPORTBUTTON###
|
||||||
}###ADMIN_CUSTOM_FUNCTION_ONLY_BUTTONS_LIST### ###IMPORTBUTTON###
|
}###ADMIN_CUSTOM_FUNCTION_ONLY_BUTTONS_LIST######IMPORTBUTTON###
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = ###Component###Helper::getHelpUrl('###views###');
|
$help_url = ###Component###Helper::getHelpUrl('###views###');
|
||||||
@ -172,7 +172,7 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
'batch[access]',
|
'batch[access]',
|
||||||
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
|
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
|
||||||
);
|
);
|
||||||
}###CATEGORYFILTER### ###OTHERFILTERS###
|
}###CATEGORYFILTER######OTHERFILTERS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,9 +39,9 @@ class ###Component###View###SViews### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function setDocument()
|
protected function setDocument()
|
||||||
{###CUSTOM_ADMIN_LIBRARIES_LOADER### ###CUSTOM_ADMIN_UIKIT_LOADER### ###CUSTOM_ADMIN_GOOGLECHART_LOADER### ###CUSTOM_ADMIN_FOOTABLE_LOADER### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
{###CUSTOM_ADMIN_LIBRARIES_LOADER######CUSTOM_ADMIN_UIKIT_LOADER######CUSTOM_ADMIN_GOOGLECHART_LOADER######CUSTOM_ADMIN_FOOTABLE_LOADER######CUSTOM_ADMIN_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sviews###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS### ###CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
$this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_###component###/assets/css/###sviews###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###CUSTOM_ADMIN_DOCUMENT_CUSTOM_CSS######CUSTOM_ADMIN_DOCUMENT_CUSTOM_JS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,9 +37,9 @@ class ###Component###View###SViews### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function _prepareDocument()
|
protected function _prepareDocument()
|
||||||
{###SITE_LIBRARIES_LOADER### ###SITE_UIKIT_LOADER### ###SITE_GOOGLECHART_LOADER### ###SITE_FOOTABLE_LOADER### ###SITE_DOCUMENT_METADATA### ###SITE_DOCUMENT_CUSTOM_PHP###
|
{###SITE_LIBRARIES_LOADER######SITE_UIKIT_LOADER######SITE_GOOGLECHART_LOADER######SITE_FOOTABLE_LOADER######SITE_DOCUMENT_METADATA######SITE_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS### ###SITE_JAVASCRIPT_FOR_BUTTONS###
|
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS######SITE_DOCUMENT_CUSTOM_JS######SITE_JAVASCRIPT_FOR_BUTTONS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,9 +37,9 @@ class ###Component###View###SView### extends JViewLegacy
|
|||||||
* Prepares the document
|
* Prepares the document
|
||||||
*/
|
*/
|
||||||
protected function _prepareDocument()
|
protected function _prepareDocument()
|
||||||
{###SITE_LIBRARIES_LOADER### ###SITE_UIKIT_LOADER### ###SITE_GOOGLECHART_LOADER### ###SITE_FOOTABLE_LOADER### ###SITE_DOCUMENT_METADATA### ###SITE_DOCUMENT_CUSTOM_PHP###
|
{###SITE_LIBRARIES_LOADER######SITE_UIKIT_LOADER######SITE_GOOGLECHART_LOADER######SITE_FOOTABLE_LOADER######SITE_DOCUMENT_METADATA######SITE_DOCUMENT_CUSTOM_PHP###
|
||||||
// add the document default css file
|
// add the document default css file
|
||||||
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS### ###SITE_DOCUMENT_CUSTOM_JS### ###SITE_JAVASCRIPT_FOR_BUTTONS###
|
$this->document->addStyleSheet(JURI::root(true) .'/components/com_###component###/assets/css/###sview###.css', (###Component###Helper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');###SITE_DOCUMENT_CUSTOM_CSS######SITE_DOCUMENT_CUSTOM_JS######SITE_JAVASCRIPT_FOR_BUTTONS###
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###CUSTOM_ADMIN_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_CODE_BODY###
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||||
JHtml::_('behavior.tooltip');
|
JHtml::_('behavior.tooltip');
|
||||||
|
@ -15,6 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###CUSTOM_ADMIN_TEMPLATE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_TEMPLATE_CODE_BODY###
|
||||||
|
|
||||||
?>###CUSTOM_ADMIN_TEMPLATE_BODY###
|
?>###CUSTOM_ADMIN_TEMPLATE_BODY###
|
||||||
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
###LISTHEAD###
|
###LISTHEAD###
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###CUSTOM_ADMIN_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_CODE_BODY###
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||||
JHtml::_('behavior.tooltip');
|
JHtml::_('behavior.tooltip');
|
||||||
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###SITE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_CODE_BODY###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
###SITE_TOP_FORM### ###SITE_TOP_BUTTON### ###SITE_BODY### ###SITE_BOTTOM_BUTTON### ###SITE_BOTTOM_FORM###
|
###SITE_TOP_FORM######SITE_TOP_BUTTON######SITE_BODY######SITE_BOTTOM_BUTTON######SITE_BOTTOM_FORM###
|
||||||
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###SITE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_CODE_BODY###
|
||||||
|
|
||||||
?>
|
?>
|
||||||
###SITE_TOP_FORM### ###SITE_TOP_BUTTON### ###SITE_BODY### ###SITE_BOTTOM_BUTTON### ###SITE_BOTTOM_FORM###
|
###SITE_TOP_FORM######SITE_TOP_BUTTON######SITE_BODY######SITE_BOTTOM_BUTTON######SITE_BOTTOM_FORM###
|
||||||
|
@ -15,6 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
###BOM###
|
###BOM###
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED### ###SITE_TEMPLATE_CODE_BODY###
|
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_TEMPLATE_CODE_BODY###
|
||||||
|
|
||||||
?>###SITE_TEMPLATE_BODY###
|
?>###SITE_TEMPLATE_BODY###
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerAdmin_views extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=admin_views', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=admin_views', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerAdmins_custom_tabs extends JControllerAdmin
|
|||||||
public function getModel($name = 'Admin_custom_tabs', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Admin_custom_tabs', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerAdmins_fields extends JControllerAdmin
|
|||||||
public function getModel($name = 'Admin_fields', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Admin_fields', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerAdmins_fields_conditions extends JControllerAdmi
|
|||||||
public function getModel($name = 'Admin_fields_conditions', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Admin_fields_conditions', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerAdmins_fields_relations extends JControllerAdmin
|
|||||||
public function getModel($name = 'Admin_fields_relations', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Admin_fields_relations', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_admin_views extends JControllerAdmin
|
|||||||
public function getModel($name = 'Component_admin_views', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_admin_views', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_config extends JControllerAdmin
|
|||||||
public function getModel($name = 'Component_config', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_config', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_custom_admin_menus extends JControlle
|
|||||||
public function getModel($name = 'Component_custom_admin_menus', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_custom_admin_menus', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_custom_admin_views extends JControlle
|
|||||||
public function getModel($name = 'Component_custom_admin_views', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_custom_admin_views', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_dashboard extends JControllerAdmin
|
|||||||
public function getModel($name = 'Component_dashboard', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_dashboard', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_files_folders extends JControllerAdmi
|
|||||||
public function getModel($name = 'Component_files_folders', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_files_folders', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_mysql_tweaks extends JControllerAdmin
|
|||||||
public function getModel($name = 'Component_mysql_tweaks', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_mysql_tweaks', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_site_views extends JControllerAdmin
|
|||||||
public function getModel($name = 'Component_site_views', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_site_views', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerComponents_updates extends JControllerAdmin
|
|||||||
public function getModel($name = 'Component_updates', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Component_updates', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ class ComponentbuilderControllerCustom_admin_views extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_admin_views', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_admin_views', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSnippets()
|
public function getSnippets()
|
||||||
{
|
{
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerCustom_codes extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_codes', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=custom_codes', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerDynamic_gets extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=dynamic_gets', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=dynamic_gets', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerFields extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fields', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fields', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerFieldtypes extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fieldtypes', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=fieldtypes', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerHelp_documents extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=help_documents', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=help_documents', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function smartImport()
|
public function smartImport()
|
||||||
{
|
{
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerLanguage_translations extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=language_translations', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=language_translations', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ class ComponentbuilderControllerLanguages extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=languages', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=languages', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildLanguages()
|
public function buildLanguages()
|
||||||
{
|
{
|
||||||
|
@ -102,7 +102,7 @@ class ComponentbuilderControllerLayouts extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=layouts', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=layouts', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSnippets()
|
public function getSnippets()
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ class ComponentbuilderControllerLibraries extends JControllerAdmin
|
|||||||
public function getModel($name = 'Library', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Library', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSnippets()
|
public function getSnippets()
|
||||||
{
|
{
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerLibraries_config extends JControllerAdmin
|
|||||||
public function getModel($name = 'Library_config', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Library_config', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerLibraries_files_folders_urls extends JController
|
|||||||
public function getModel($name = 'Library_files_folders_urls', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Library_files_folders_urls', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerServers extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=servers', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=servers', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ class ComponentbuilderControllerSite_views extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=site_views', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=site_views', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSnippets()
|
public function getSnippets()
|
||||||
{
|
{
|
||||||
|
@ -39,5 +39,5 @@ class ComponentbuilderControllerSnippet_types extends JControllerAdmin
|
|||||||
public function getModel($name = 'Snippet_type', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
public function getModel($name = 'Snippet_type', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||||
{
|
{
|
||||||
return parent::getModel($name, $prefix, $config);
|
return parent::getModel($name, $prefix, $config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ class ComponentbuilderControllerSnippets extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=snippets', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=snippets', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSnippets()
|
public function getSnippets()
|
||||||
{
|
{
|
||||||
|
@ -102,7 +102,7 @@ class ComponentbuilderControllerTemplates extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=templates', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=templates', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSnippets()
|
public function getSnippets()
|
||||||
{
|
{
|
||||||
|
@ -102,5 +102,5 @@ class ComponentbuilderControllerValidation_rules extends JControllerAdmin
|
|||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=validation_rules', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=validation_rules', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
// the Session keeps track of all data related to the current session of this user
|
// the Session keeps track of all data related to the current session of this user
|
||||||
self::loadSession();
|
self::loadSession();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Locked Libraries (we can not have these change)
|
* Locked Libraries (we can not have these change)
|
||||||
@ -4054,7 +4054,7 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_componentbuilder&view=help_documents', $submenu === 'help_documents');
|
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_componentbuilder&view=help_documents', $submenu === 'help_documents');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UIKIT Component Classes
|
* UIKIT Component Classes
|
||||||
@ -4156,7 +4156,7 @@ abstract class ComponentbuilderHelper
|
|||||||
return $classes;
|
return $classes;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepares the xml document
|
* Prepares the xml document
|
||||||
|
@ -97,7 +97,7 @@ class ComponentbuilderModelAdmin_custom_tabs extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -350,7 +350,7 @@ class ComponentbuilderModelAdmin_custom_tabs extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -640,7 +640,7 @@ class ComponentbuilderModelAdmin_custom_tabs extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -772,7 +772,7 @@ class ComponentbuilderModelAdmin_custom_tabs extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the tabs items to data.
|
// Set the tabs items to data.
|
||||||
if (isset($data['tabs']) && is_array($data['tabs']))
|
if (isset($data['tabs']) && is_array($data['tabs']))
|
||||||
|
@ -117,7 +117,7 @@ class ComponentbuilderModelAdmin_fields extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -370,7 +370,7 @@ class ComponentbuilderModelAdmin_fields extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -660,7 +660,7 @@ class ComponentbuilderModelAdmin_fields extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -792,7 +792,7 @@ class ComponentbuilderModelAdmin_fields extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data['addfields']) && ComponentbuilderHelper::checkArray($data['addfields']))
|
if (isset($data['addfields']) && ComponentbuilderHelper::checkArray($data['addfields']))
|
||||||
{
|
{
|
||||||
|
@ -117,7 +117,7 @@ class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -370,7 +370,7 @@ class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -660,7 +660,7 @@ class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -792,7 +792,7 @@ class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addconditions items to data.
|
// Set the addconditions items to data.
|
||||||
if (isset($data['addconditions']) && is_array($data['addconditions']))
|
if (isset($data['addconditions']) && is_array($data['addconditions']))
|
||||||
|
@ -97,7 +97,7 @@ class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -350,7 +350,7 @@ class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -640,7 +640,7 @@ class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -772,7 +772,7 @@ class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addrelations items to data.
|
// Set the addrelations items to data.
|
||||||
if (isset($data['addrelations']) && is_array($data['addrelations']))
|
if (isset($data['addrelations']) && is_array($data['addrelations']))
|
||||||
|
@ -428,7 +428,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -734,7 +734,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return parent::validate($form, $data, $group);
|
return parent::validate($form, $data, $group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -1080,7 +1080,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -1212,7 +1212,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if system name is empty create from name_single
|
// if system name is empty create from name_single
|
||||||
if (empty($data['system_name']) || !ComponentbuilderHelper::checkString($data['system_name']))
|
if (empty($data['system_name']) || !ComponentbuilderHelper::checkString($data['system_name']))
|
||||||
|
@ -107,7 +107,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set selection value to a translatable value
|
// set selection value to a translatable value
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
@ -146,7 +146,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
$item->add_php_ajax = $this->selectionTranslation($item->add_php_ajax, 'add_php_ajax');
|
$item->add_php_ajax = $this->selectionTranslation($item->add_php_ajax, 'add_php_ajax');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -491,7 +491,7 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelAdmins_custom_tabs extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelAdmins_custom_tabs extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelAdmins_custom_tabs extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelAdmins_fields extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelAdmins_fields extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelAdmins_fields extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelAdmins_fields_conditions extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelAdmins_fields_conditions extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelAdmins_fields_conditions extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelAdmins_fields_relations extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelAdmins_fields_relations extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelAdmins_fields_relations extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -86,7 +86,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
|||||||
// redirect away if not a correct (TODO for now we go to default view)
|
// redirect away if not a correct (TODO for now we go to default view)
|
||||||
$app->redirect('index.php?option=com_componentbuilder');
|
$app->redirect('index.php?option=com_componentbuilder');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
|||||||
// Checking if copyright has uikit components that must be loaded.
|
// Checking if copyright has uikit components that must be loaded.
|
||||||
$this->uikitComp = ComponentbuilderHelper::getUikitComp($item->copyright,$this->uikitComp);
|
$this->uikitComp = ComponentbuilderHelper::getUikitComp($item->copyright,$this->uikitComp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -132,7 +132,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
|||||||
return $this->uikitComp;
|
return $this->uikitComp;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public $compiler;
|
public $compiler;
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ class ComponentbuilderModelComponent_admin_views extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -381,7 +381,7 @@ class ComponentbuilderModelComponent_admin_views extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -671,7 +671,7 @@ class ComponentbuilderModelComponent_admin_views extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -803,7 +803,7 @@ class ComponentbuilderModelComponent_admin_views extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addadmin_views items to data.
|
// Set the addadmin_views items to data.
|
||||||
if (isset($data['addadmin_views']) && is_array($data['addadmin_views']))
|
if (isset($data['addadmin_views']) && is_array($data['addadmin_views']))
|
||||||
|
@ -128,7 +128,7 @@ class ComponentbuilderModelComponent_config extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -381,7 +381,7 @@ class ComponentbuilderModelComponent_config extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -671,7 +671,7 @@ class ComponentbuilderModelComponent_config extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -803,7 +803,7 @@ class ComponentbuilderModelComponent_config extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addconfig items to data.
|
// Set the addconfig items to data.
|
||||||
if (isset($data['addconfig']) && is_array($data['addconfig']))
|
if (isset($data['addconfig']) && is_array($data['addconfig']))
|
||||||
|
@ -128,7 +128,7 @@ class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -381,7 +381,7 @@ class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -671,7 +671,7 @@ class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -803,7 +803,7 @@ class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addcustommenus items to data.
|
// Set the addcustommenus items to data.
|
||||||
if (isset($data['addcustommenus']) && is_array($data['addcustommenus']))
|
if (isset($data['addcustommenus']) && is_array($data['addcustommenus']))
|
||||||
|
@ -128,7 +128,7 @@ class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -381,7 +381,7 @@ class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -671,7 +671,7 @@ class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -803,7 +803,7 @@ class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addcustom_admin_views items to data.
|
// Set the addcustom_admin_views items to data.
|
||||||
if (isset($data['addcustom_admin_views']) && is_array($data['addcustom_admin_views']))
|
if (isset($data['addcustom_admin_views']) && is_array($data['addcustom_admin_views']))
|
||||||
|
@ -134,7 +134,7 @@ class ComponentbuilderModelComponent_dashboard extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -387,7 +387,7 @@ class ComponentbuilderModelComponent_dashboard extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -677,7 +677,7 @@ class ComponentbuilderModelComponent_dashboard extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -809,7 +809,7 @@ class ComponentbuilderModelComponent_dashboard extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the dashboard_tab items to data.
|
// Set the dashboard_tab items to data.
|
||||||
if (isset($data['dashboard_tab']) && is_array($data['dashboard_tab']))
|
if (isset($data['dashboard_tab']) && is_array($data['dashboard_tab']))
|
||||||
|
@ -153,7 +153,7 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -406,7 +406,7 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -696,7 +696,7 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -828,7 +828,7 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addfoldersfullpath items to data.
|
// Set the addfoldersfullpath items to data.
|
||||||
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
|
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
|
||||||
|
@ -128,7 +128,7 @@ class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -381,7 +381,7 @@ class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -671,7 +671,7 @@ class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -803,7 +803,7 @@ class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the sql_tweak items to data.
|
// Set the sql_tweak items to data.
|
||||||
if (isset($data['sql_tweak']) && is_array($data['sql_tweak']))
|
if (isset($data['sql_tweak']) && is_array($data['sql_tweak']))
|
||||||
|
@ -128,7 +128,7 @@ class ComponentbuilderModelComponent_site_views extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -381,7 +381,7 @@ class ComponentbuilderModelComponent_site_views extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -671,7 +671,7 @@ class ComponentbuilderModelComponent_site_views extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -803,7 +803,7 @@ class ComponentbuilderModelComponent_site_views extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the addsite_views items to data.
|
// Set the addsite_views items to data.
|
||||||
if (isset($data['addsite_views']) && is_array($data['addsite_views']))
|
if (isset($data['addsite_views']) && is_array($data['addsite_views']))
|
||||||
|
@ -128,7 +128,7 @@ class ComponentbuilderModelComponent_updates extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -381,7 +381,7 @@ class ComponentbuilderModelComponent_updates extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -671,7 +671,7 @@ class ComponentbuilderModelComponent_updates extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -803,7 +803,7 @@ class ComponentbuilderModelComponent_updates extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the version_update items to data.
|
// Set the version_update items to data.
|
||||||
if (isset($data['version_update']) && is_array($data['version_update']))
|
if (isset($data['version_update']) && is_array($data['version_update']))
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_admin_views extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_admin_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_admin_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_config extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_config extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_config extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_custom_admin_menus extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_custom_admin_menus extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_custom_admin_menus extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_custom_admin_views extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_custom_admin_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_custom_admin_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_dashboard extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_dashboard extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_dashboard extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_files_folders extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_files_folders extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_files_folders extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_mysql_tweaks extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_mysql_tweaks extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_mysql_tweaks extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_site_views extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_site_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_site_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -77,7 +77,7 @@ class ComponentbuilderModelComponents_updates extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class ComponentbuilderModelComponents_updates extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -161,7 +161,7 @@ class ComponentbuilderModelComponents_updates extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -245,7 +245,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -549,7 +549,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return parent::validate($form, $data, $group);
|
return parent::validate($form, $data, $group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -839,7 +839,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -971,7 +971,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// always reset the snippets
|
// always reset the snippets
|
||||||
$data['snippet'] = 0;
|
$data['snippet'] = 0;
|
||||||
|
@ -99,7 +99,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set selection value to a translatable value
|
// set selection value to a translatable value
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
@ -132,7 +132,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
$item->add_custom_button = $this->selectionTranslation($item->add_custom_button, 'add_custom_button');
|
$item->add_custom_button = $this->selectionTranslation($item->add_custom_button, 'add_custom_button');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -384,7 +384,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -95,7 +95,7 @@ class ComponentbuilderModelCustom_code extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -401,7 +401,7 @@ class ComponentbuilderModelCustom_code extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return parent::validate($form, $data, $group);
|
return parent::validate($form, $data, $group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -691,7 +691,7 @@ class ComponentbuilderModelCustom_code extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -823,7 +823,7 @@ class ComponentbuilderModelCustom_code extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the code string to base64 string.
|
// Set the code string to base64 string.
|
||||||
if (isset($data['code']))
|
if (isset($data['code']))
|
||||||
|
@ -95,7 +95,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
$item->type = 2;
|
$item->type = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set selection value to a translatable value
|
// set selection value to a translatable value
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
@ -147,7 +147,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
$item->comment_type = $this->selectionTranslation($item->comment_type, 'comment_type');
|
$item->comment_type = $this->selectionTranslation($item->comment_type, 'comment_type');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -412,7 +412,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -258,7 +258,7 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -562,7 +562,7 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return parent::validate($form, $data, $group);
|
return parent::validate($form, $data, $group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -852,7 +852,7 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -984,7 +984,7 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the join_db_table items to data.
|
// Set the join_db_table items to data.
|
||||||
if (isset($data['join_db_table']) && is_array($data['join_db_table']))
|
if (isset($data['join_db_table']) && is_array($data['join_db_table']))
|
||||||
|
@ -87,7 +87,7 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set selection value to a translatable value
|
// set selection value to a translatable value
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
@ -120,7 +120,7 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
$item->gettype = $this->selectionTranslation($item->gettype, 'gettype');
|
$item->gettype = $this->selectionTranslation($item->gettype, 'gettype');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -359,7 +359,7 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -150,7 +150,7 @@ class ComponentbuilderModelField extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -454,7 +454,7 @@ class ComponentbuilderModelField extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return parent::validate($form, $data, $group);
|
return parent::validate($form, $data, $group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -753,7 +753,7 @@ class ComponentbuilderModelField extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -901,7 +901,7 @@ class ComponentbuilderModelField extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the properties
|
// get the properties
|
||||||
$properties = $input->get('properties', null, 'ARRAY');
|
$properties = $input->get('properties', null, 'ARRAY');
|
||||||
|
@ -111,7 +111,7 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -131,7 +131,7 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set selection value to a translatable value
|
// set selection value to a translatable value
|
||||||
if (ComponentbuilderHelper::checkArray($items))
|
if (ComponentbuilderHelper::checkArray($items))
|
||||||
@ -148,7 +148,7 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
$item->store = $this->selectionTranslation($item->store, 'store');
|
$item->store = $this->selectionTranslation($item->store, 'store');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -462,7 +462,7 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -300,7 +300,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the record form.
|
* Method to get the record form.
|
||||||
@ -551,7 +551,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get the unique fields of this table.
|
* Method to get the unique fields of this table.
|
||||||
@ -850,7 +850,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
$this->cleanCache();
|
$this->cleanCache();
|
||||||
|
|
||||||
return $newIds;
|
return $newIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Batch move items to a new category
|
* Batch move items to a new category
|
||||||
@ -998,7 +998,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
|||||||
$metadata = new JRegistry;
|
$metadata = new JRegistry;
|
||||||
$metadata->loadArray($data['metadata']);
|
$metadata->loadArray($data['metadata']);
|
||||||
$data['metadata'] = (string) $metadata;
|
$data['metadata'] = (string) $metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the properties items to data.
|
// Set the properties items to data.
|
||||||
if (isset($data['properties']) && is_array($data['properties']))
|
if (isset($data['properties']) && is_array($data['properties']))
|
||||||
|
@ -95,7 +95,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
|||||||
* @return mixed An array of data items on success, false on failure.
|
* @return mixed An array of data items on success, false on failure.
|
||||||
*/
|
*/
|
||||||
public function getItems()
|
public function getItems()
|
||||||
{
|
{
|
||||||
// check in items
|
// check in items
|
||||||
$this->checkInNow();
|
$this->checkInNow();
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -312,7 +312,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
|||||||
return $headers;
|
return $headers;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to get a store id based on model configuration state.
|
* Method to get a store id based on model configuration state.
|
||||||
|
@ -94,7 +94,7 @@ class ComponentbuilderModelGet_snippets extends JModelList
|
|||||||
// redirect away if not a correct (TODO for now we go to default view)
|
// redirect away if not a correct (TODO for now we go to default view)
|
||||||
$app->redirect('index.php?option=com_componentbuilder');
|
$app->redirect('index.php?option=com_componentbuilder');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// load parent items
|
// load parent items
|
||||||
$items = parent::getItems();
|
$items = parent::getItems();
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ class ComponentbuilderModelGet_snippets extends JModelList
|
|||||||
// Always create a slug for sef URL's
|
// Always create a slug for sef URL's
|
||||||
$item->slug = (isset($item->alias) && isset($item->id)) ? $item->id.':'.$item->alias : $item->id;
|
$item->slug = (isset($item->alias) && isset($item->id)) ? $item->id.':'.$item->alias : $item->id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// return items
|
// return items
|
||||||
return $items;
|
return $items;
|
||||||
@ -128,5 +128,5 @@ class ComponentbuilderModelGet_snippets extends JModelList
|
|||||||
return $this->uikitComp;
|
return $this->uikitComp;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user