-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.0.0RC8
- Loading branch information
Showing
253 changed files
with
9,228 additions
and
2,317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/* @package Joomla | ||
* @copyright Copyright (C) Open Source Matters. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* @extension Phoca Extension | ||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
*/ | ||
defined('_JEXEC') or die(); | ||
require_once JPATH_COMPONENT.'/controllers/phocacartcommons.php'; | ||
class PhocaCartCpControllerPhocaCartEditProductPointGroup extends PhocaCartCpControllerPhocaCartCommons | ||
{ | ||
public function &getModel($name = 'PhocaCartEditProductPointGroup', $prefix = 'PhocaCartCpModel', $config = array()) { | ||
$model = parent::getModel($name, $prefix, array('ignore_request' => true)); | ||
return $model; | ||
} | ||
|
||
function save() { | ||
|
||
if (!JSession::checkToken('request')) { | ||
$app->enqueueMessage('Invalid Token', 'message'); | ||
return false; | ||
} | ||
|
||
$app = JFactory::getApplication(); | ||
$jform = $app->input->get('jform', array(), 'array'); | ||
$id = $app->input->get('id', 0, 'int'); | ||
|
||
|
||
if (!empty($jform)) { | ||
$model = $this->getModel( 'phocacarteditproductpointgroup' ); | ||
if(!$model->save($jform, $id)) { | ||
$message = JText::_( 'COM_PHOCACART_ERROR_ADD_CUSTOMER_GROUP_DATA' ); | ||
$app->enqueueMessage($message, 'error'); | ||
} else { | ||
$message = JText::_( 'COM_PHOCACART_SUCCESS_ADD_CUSTOMER_GROUP_DATA' ); | ||
$app->enqueueMessage($message, 'message'); | ||
} | ||
$app->redirect('index.php?option=com_phocacart&view=phocacarteditproductpointgroup&tmpl=component&id='.(int)$id); | ||
} else { | ||
|
||
$app->enqueueMessage(JText::_('COM_PHOCACART_NO_ITEM_FOUND'), 'error'); | ||
$app->redirect('index.php?option=com_phocacart&view=phocacarteditproductpointgroup&tmpl=component'); | ||
} | ||
} | ||
|
||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/* @package Joomla | ||
* @copyright Copyright (C) Open Source Matters. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* @extension Phoca Extension | ||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
*/ | ||
defined('_JEXEC') or die(); | ||
require_once JPATH_COMPONENT.'/controllers/phocacartcommons.php'; | ||
class PhocaCartCpControllerPhocaCartEditProductPriceGroup extends PhocaCartCpControllerPhocaCartCommons | ||
{ | ||
public function &getModel($name = 'PhocaCartEditProductPriceGroup', $prefix = 'PhocaCartCpModel', $config = array()) { | ||
$model = parent::getModel($name, $prefix, array('ignore_request' => true)); | ||
return $model; | ||
} | ||
|
||
function save() { | ||
|
||
if (!JSession::checkToken('request')) { | ||
$app->enqueueMessage('Invalid Token', 'message'); | ||
return false; | ||
} | ||
|
||
$app = JFactory::getApplication(); | ||
$jform = $app->input->get('jform', array(), 'array'); | ||
$id = $app->input->get('id', 0, 'int'); | ||
|
||
|
||
if (!empty($jform)) { | ||
$model = $this->getModel( 'phocacarteditproductpricegroup' ); | ||
if(!$model->save($jform, $id)) { | ||
$message = JText::_( 'COM_PHOCACART_ERROR_ADD_CUSTOMER_GROUP_DATA' ); | ||
$app->enqueueMessage($message, 'error'); | ||
} else { | ||
$message = JText::_( 'COM_PHOCACART_SUCCESS_ADD_CUSTOMER_GROUP_DATA' ); | ||
$app->enqueueMessage($message, 'message'); | ||
} | ||
$app->redirect('index.php?option=com_phocacart&view=phocacarteditproductpricegroup&tmpl=component&id='.(int)$id); | ||
} else { | ||
|
||
$app->enqueueMessage(JText::_('COM_PHOCACART_NO_ITEM_FOUND'), 'error'); | ||
$app->redirect('index.php?option=com_phocacart&view=phocacarteditproductpricegroup&tmpl=component'); | ||
} | ||
} | ||
|
||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/* @package Joomla | ||
* @copyright Copyright (C) Open Source Matters. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* @extension Phoca Extension | ||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
*/ | ||
defined('_JEXEC') or die(); | ||
require_once JPATH_COMPONENT.'/controllers/phocacartcommons.php'; | ||
class PhocaCartCpControllerPhocaCartEditProductPriceHistory extends PhocaCartCpControllerPhocaCartCommons | ||
{ | ||
public function &getModel($name = 'PhocaCartEditProductPriceHistory', $prefix = 'PhocaCartCpModel', $config = array()) { | ||
$model = parent::getModel($name, $prefix, array('ignore_request' => true)); | ||
return $model; | ||
} | ||
|
||
function save() { | ||
|
||
if (!JSession::checkToken('request')) { | ||
$app->enqueueMessage('Invalid Token', 'message'); | ||
return false; | ||
} | ||
|
||
$app = JFactory::getApplication(); | ||
$jform = $app->input->get('jform', array(), 'array'); | ||
$id = $app->input->get('id', 0, 'int'); | ||
|
||
|
||
if (!empty($jform)) { | ||
$model = $this->getModel( 'phocacarteditproductpricehistory' ); | ||
if(!$model->save($jform, $id)) { | ||
$message = JText::_( 'COM_PHOCACART_ERROR_ADD_PRODUCT_PRICE_HISTORY' ); | ||
$app->enqueueMessage($message, 'error'); | ||
} else { | ||
$message = JText::_( 'COM_PHOCACART_SUCCESS_ADD_PRODUCT_PRICE_HISTORY' ); | ||
$app->enqueueMessage($message, 'message'); | ||
} | ||
$app->redirect('index.php?option=com_phocacart&view=phocacarteditproductpricehistory&tmpl=component&id='.(int)$id); | ||
} else { | ||
|
||
$app->enqueueMessage(JText::_('COM_PHOCACART_NO_ITEM_FOUND'), 'error'); | ||
$app->redirect('index.php?option=com_phocacart&view=phocacarteditproductpricehistory&tmpl=component&id='.(int)$id); | ||
} | ||
} | ||
|
||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
/* @package Joomla | ||
* @copyright Copyright (C) Open Source Matters. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* @extension Phoca Extension | ||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
*/ | ||
defined('_JEXEC') or die(); | ||
require_once JPATH_COMPONENT.'/controllers/phocacartcommon.php'; | ||
class PhocaCartCpControllerPhocacartGroup extends PhocaCartCpControllerPhocaCartCommon {} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/* @package Joomla | ||
* @copyright Copyright (C) Open Source Matters. All rights reserved. | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php | ||
* @extension Phoca Extension | ||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
*/ | ||
defined('_JEXEC') or die(); | ||
require_once JPATH_COMPONENT.'/controllers/phocacartcommons.php'; | ||
class PhocaCartCpControllerPhocacartGroups extends PhocaCartCpControllerPhocaCartCommons | ||
{ | ||
public function &getModel($name = 'PhocacartGroup', $prefix = 'PhocaCartCpModel', $config = array()) { | ||
$model = parent::getModel($name, $prefix, array('ignore_request' => true)); | ||
return $model; | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.