added another field to the component view, to add helper methods to both admin and site area of the component

This commit is contained in:
2016-11-25 04:56:16 +02:00
parent 082196378b
commit 0cd5660141
382 changed files with 3714 additions and 3580 deletions

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.3
@build 22nd November, 2016
@version 2.2.4
@build 25th November, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.php
@ -113,6 +113,12 @@ class ComponentbuilderModelComponent extends JModelAdmin
$item->php_helper_site = base64_decode($item->php_helper_site);
}
if (!empty($item->php_helper_both))
{
// base64 Decode php_helper_both.
$item->php_helper_both = base64_decode($item->php_helper_both);
}
if (!empty($item->php_admin_event))
{
// base64 Decode php_admin_event.
@ -213,7 +219,7 @@ class ComponentbuilderModelComponent extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVwkadmin_views()
public function getVwladmin_views()
{
// Get the user object.
$user = JFactory::getUser();
@ -300,7 +306,7 @@ class ComponentbuilderModelComponent extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVwlsite_views()
public function getVwmsite_views()
{
// Get the user object.
$user = JFactory::getUser();
@ -1116,6 +1122,12 @@ class ComponentbuilderModelComponent extends JModelAdmin
$data['php_helper_site'] = base64_encode($data['php_helper_site']);
}
// Set the php_helper_both string to base64 string.
if (isset($data['php_helper_both']))
{
$data['php_helper_both'] = base64_encode($data['php_helper_both']);
}
// Set the php_admin_event string to base64 string.
if (isset($data['php_admin_event']))
{