Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F776241
in-commerce
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 6, 11:29 PM
Size
6 KB
Mime Type
text/x-diff
Expires
Sat, Feb 8, 11:29 PM (1 d, 2 h)
Engine
blob
Format
Raw Data
Handle
558694
Attached To
rMINC Modules.In-Commerce
in-commerce
View Options
Index: branches/5.0.x/in-commerce/units/affiliate_plans_items/affiliate_plans_items_tag_processor.php
===================================================================
--- branches/5.0.x/in-commerce/units/affiliate_plans_items/affiliate_plans_items_tag_processor.php (revision 12495)
+++ branches/5.0.x/in-commerce/units/affiliate_plans_items/affiliate_plans_items_tag_processor.php (revision 12496)
@@ -1,48 +1,48 @@
<?php
/**
* @version $Id$
* @package In-Commerce
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license Commercial License
* This software is protected by copyright law and international treaties.
* Unauthorized reproduction or unlicensed usage of the code of this program,
* or any portion of it may result in severe civil and criminal penalties,
* and will be prosecuted to the maximum extent possible under the law
* See http://www.in-portal.net/license/commercial/ for copyright notices and details.
*/
defined('FULL_PATH') or die('restricted access!');
class AffiliatePlansItemsTagProcessor extends kDBTagProcessor {
function IsEntireOrder($params)
{
$table_name = $this->Application->getUnitOption($this->Prefix, 'TableName');
if ($this->Application->IsTempMode($this->Prefix)) {
$table_name = $this->Application->GetTempName($table_name, 'prefix:' . $this->Prefix);
}
$sql = 'SELECT COUNT(*)
FROM ' . $table_name . '
WHERE (ItemType = 0) AND (AffiliatePlanId = ' . $this->Application->GetVar('ap_id') . ')';
return $this->Conn->GetOne($sql);
}
function ItemIcon($params)
{
- $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params);
- if($object->GetDBField('ItemType') == 2)
- {
+ $object =& $this->getObject($params);
+ /* @var $object kDBList */
+
+ if ($object->GetDBField('ItemType') == 2) {
$cat_object =& $this->Application->recallObject('c');
$cat_object->Load( $object->GetDBField('CategoryId') );
$cat_tag_processor =& $this->Application->recallObject('c_TagProcessor');
+
return $cat_tag_processor->ItemIcon();
}
- else
- {
- return parent::ItemIcon($params);
- }
+
+ return parent::ItemIcon($params);
}
}
\ No newline at end of file
Index: branches/5.0.x/in-commerce/units/discount_items/discount_items_tag_processor.php
===================================================================
--- branches/5.0.x/in-commerce/units/discount_items/discount_items_tag_processor.php (revision 12495)
+++ branches/5.0.x/in-commerce/units/discount_items/discount_items_tag_processor.php (revision 12496)
@@ -1,48 +1,48 @@
<?php
/**
* @version $Id$
* @package In-Commerce
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license Commercial License
* This software is protected by copyright law and international treaties.
* Unauthorized reproduction or unlicensed usage of the code of this program,
* or any portion of it may result in severe civil and criminal penalties,
* and will be prosecuted to the maximum extent possible under the law
* See http://www.in-portal.net/license/commercial/ for copyright notices and details.
*/
defined('FULL_PATH') or die('restricted access!');
class DiscountItemsTagProcessor extends kDBTagProcessor {
function IsEntireOrder($params)
{
$table_name = $this->Application->getUnitOption($this->Prefix, 'TableName');
if ($this->Application->IsTempMode($this->Prefix)) {
$table_name = $this->Application->GetTempName($table_name, 'prefix:' . $this->Prefix);
}
$sql = 'SELECT COUNT(*)
FROM ' . $table_name . '
WHERE (ItemType = 0) AND (DiscountId = ' . $this->Application->GetVar('d_id') . ')';
return $this->Conn->GetOne($sql);
}
function ItemIcon($params)
{
- $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params);
- if($object->GetDBField('ItemType') == 2)
- {
+ $object =& $this->getObject($params);
+ /* @var $object kDBList */
+
+ if ($object->GetDBField('ItemType') == 2) {
$cat_object =& $this->Application->recallObject('c');
$cat_object->Load( $object->GetDBField('CategoryId') );
$cat_tag_processor =& $this->Application->recallObject('c_TagProcessor');
+
return $cat_tag_processor->ItemIcon();
}
- else
- {
- return parent::ItemIcon($params);
- }
+
+ return parent::ItemIcon($params);
}
}
\ No newline at end of file
Index: branches/5.0.x/in-commerce/units/coupon_items/coupon_items_tag_processor.php
===================================================================
--- branches/5.0.x/in-commerce/units/coupon_items/coupon_items_tag_processor.php (revision 12495)
+++ branches/5.0.x/in-commerce/units/coupon_items/coupon_items_tag_processor.php (revision 12496)
@@ -1,48 +1,48 @@
<?php
/**
* @version $Id$
* @package In-Commerce
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved.
* @license Commercial License
* This software is protected by copyright law and international treaties.
* Unauthorized reproduction or unlicensed usage of the code of this program,
* or any portion of it may result in severe civil and criminal penalties,
* and will be prosecuted to the maximum extent possible under the law
* See http://www.in-portal.net/license/commercial/ for copyright notices and details.
*/
defined('FULL_PATH') or die('restricted access!');
class CouponItemsTagProcessor extends kDBTagProcessor {
function IsEntireOrder($params)
{
$table_name = $this->Application->getUnitOption($this->Prefix, 'TableName');
if ($this->Application->IsTempMode($this->Prefix)) {
$table_name = $this->Application->GetTempName($table_name, 'prefix:' . $this->Prefix);
}
$sql = 'SELECT COUNT(*)
FROM ' . $table_name . '
WHERE (ItemType = 0) AND (CouponId = ' . $this->Application->GetVar('coup_id') . ')';
return $this->Conn->GetOne($sql);
}
function ItemIcon($params)
{
- $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params);
- if($object->GetDBField('ItemType') == 2)
- {
+ $object =& $this->getObject($params);
+ /* @var $object kDBList */
+
+ if ($object->GetDBField('ItemType') == 2) {
$cat_object =& $this->Application->recallObject('c');
$cat_object->Load( $object->GetDBField('CategoryId') );
$cat_tag_processor =& $this->Application->recallObject('c_TagProcessor');
+
return $cat_tag_processor->ItemIcon();
}
- else
- {
- return parent::ItemIcon($params);
- }
+
+ return parent::ItemIcon($params);
}
}
\ No newline at end of file
Event Timeline
Log In to Comment