ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPaymentObject Class Reference
+ Collaboration diagram for ilPaymentObject:

Public Member Functions

 __construct ($user_obj, $a_pobject_id=null)
 getTopicId ()
 setTopicId ($a_topic_id)
 getPobjectId ()
 setRefId ($a_ref_id)
 getRefId ()
 setStatus ($a_status)
 getStatus ()
 setPayMethod ($a_method)
 getPayMethod ()
 setVendorId ($a_vendor_id)
 getVendorId ()
 getVatId ()
 setVatId ($a_vat_id)
 getVat ($a_amount=0, $type= 'CALCULATION')
 add ()
 delete ()
 update ()
 _lookupPobjectId ($a_ref_id)
 _getCountObjectsByPayMethod ($a_id)
 _getObjectsData ($a_user_id)
 _getAllObjectsData ()
 _getObjectData ($a_id)
 _isPurchasable ($a_ref_id, $a_vendor_id=0, $a_check_trustee=false, $a_check_status=false)
 _hasAccess ($a_ref_id, $a_transaction=0)
 _getActivation ($a_ref_id)

Static Public Member Functions

static _lookupTopicId ($a_ref_id)
static _isBuyable ($a_ref_id)
static _isNewObject ($a_ref_id)
static _requiresPurchaseToAccess ($a_ref_id)
static _isInCart ($a_ref_id)

Private Member Functions

 __read ()

Private Attributes

 $db = null
 $user_obj = null
 $pobject_id = null
 $ref_id = null
 $status = null
 $pay_method = null
 $vendor_id = null
 $topic_id = 0
 $vat_id = 0

Detailed Description

Definition at line 12 of file class.ilPaymentObject.php.

Constructor & Destructor Documentation

ilPaymentObject::__construct (   $user_obj,
  $a_pobject_id = null 
)

Definition at line 25 of file class.ilPaymentObject.php.

References $ilDB, $user_obj, and __read().

{
global $ilDB;
$this->db = $ilDB;
$this->user_obj = $user_obj;
$this->STATUS_NOT_BUYABLE = 0;
$this->STATUS_BUYABLE = 1;
$this->STATUS_EXPIRES = 2;
$this->PAY_METHOD_NOT_SPECIFIED = 0;
include_once './Services/Payment/classes/class.ilPayMethods.php';
$pmObj = new ilPayMethods();
$tmp = $pmObj->readAll();
foreach($tmp as $pm)
{
$tmp = strtoupper($pm['pm_title']);
$this->PAY_METHOD_.$tmp = $pm['pm_id'];
}
$this->pobject_id = $a_pobject_id;
$this->__read();
}

+ Here is the call graph for this function:

Member Function Documentation

ilPaymentObject::__read ( )
private

Definition at line 593 of file class.ilPaymentObject.php.

References $result, $row, getPobjectId(), setPayMethod(), setRefId(), setStatus(), setTopicId(), setVatId(), and setVendorId().

Referenced by __construct().

{
if($this->getPobjectId())
{
$result = $this->db->queryf('SELECT * FROM payment_objects WHERE pobject_id = %s',
array('integer'), array($this->getPobjectId()));
while($row = $this->db->fetchObject($result))
{
$this->setRefId($row->ref_id);
$this->setStatus($row->status);
$this->setPayMethod($row->pay_method);
$this->setVendorId($row->vendor_id);
$this->setTopicId($row->pt_topic_fk);
$this->setVatId($row->vat_id);
return true;
}
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaymentObject::_getActivation (   $a_ref_id)

Definition at line 503 of file class.ilPaymentObject.php.

References $ilDB, $res, and $row.

{
include_once './Services/Payment/classes/class.ilPaymentBookings.php';
global $rbacsystem,$ilDB;
$res = $ilDB->queryf('
SELECT * FROM payment_objects
WHERE ref_id = %s
AND (status = %s OR status = %s)',
array('integer', 'integer', 'integer'),
array($a_ref_id, '1', '2'));
$row = $ilDB->fetchObject($res);
}
ilPaymentObject::_getAllObjectsData ( )

Definition at line 294 of file class.ilPaymentObject.php.

References $_SESSION, $ilDB, $query, $res, and $row.

Referenced by ilObjPaymentSettingsGUI\objectsObject().

{
global $ilDB;
$data_types = array();
$data_values = array();
$query = 'SELECT * FROM payment_objects ';
if ($_SESSION['pay_objects']['title_value'] != '')
{
$query .= ', object_reference obr, object_data od ';
}
if ($_SESSION['pay_objects']['vendor'] != '')
{
$query .= ', usr_data ud ';
}
$query .= ' WHERE 1 = 1 ';
if ($_SESSION['pay_objects']['title_value'])
{
$query .= ' AND obr.ref_id = payment_objects.ref_id AND od.obj_id = obr.obj_id ';
$search_string = '';
$title_search = explode(' ', trim($_SESSION['pay_objects']['title_value']));
for ($i = 0; $i < count($title_search); $i++)
{
$title_search[$i] = trim($title_search[$i]);
if ($title_search[$i] != '')
{
//$search_string .= " od.title LIKE ".$ilDB->quote("%".$title_search[$i]."%")." ";
$search_string .= ' od.title LIKE %s '; // ".$ilDB->quote("%".$title_search[$i]."%")." ";
array_push($data_types, 'text');
array_push($data_values,'%'.$title_search[$i].'%');
switch ($_SESSION['pay_objects']['title_type'])
{
case 'or' :
if ($i < count($title_search) - 1)
{
$search_string .= ' OR ';
}
break;
case 'and' :
if ($i < count($title_search) - 1)
{
$search_string .= ' AND ';
}
break;
}
}
}
if ($search_string != '')
{
$query .= ' AND (' . $search_string . ') ';
}
}
if ($_SESSION['pay_objects']['vendor'] != '')
{
$query .= ' AND ud.usr_id = payment_objects.vendor_id AND login = %s';
array_push($data_types, 'text');
array_push($data_values, $_SESSION['pay_objects']['vendor']);
}
if($_SESSION['pay_objects']['pay_method'] > 0)
{
$query .= ' AND pay_method = %s';
array_push($data_types, 'integer');
array_push($data_values, $_SESSION['pay_objects']['pay_method']);
}
$res = $ilDB->queryf($query, $data_types, $data_values);
while($row = $ilDB->fetchObject($res))
{
$objects[$row->pobject_id]['pobject_id'] = $row->pobject_id;
$objects[$row->pobject_id]['ref_id'] = $row->ref_id;
$objects[$row->pobject_id]['status'] = $row->status;
$objects[$row->pobject_id]['pay_method'] = $row->pay_method;
$objects[$row->pobject_id]['vendor_id'] = $row->vendor_id;
$objects[$row->pobject_id]['topic_id'] = $row->pt_topic_fk;
$objects[$row->pobject_id]['vat_id'] = $row->vat_id;
}
return $objects ? $objects : array();
}

+ Here is the caller graph for this function:

ilPaymentObject::_getCountObjectsByPayMethod (   $a_id)

Definition at line 218 of file class.ilPaymentObject.php.

References $ilDB, $result, $row, and DB_FETCHMODE_OBJECT.

Referenced by ilObjPaymentSettingsGUI\savePayMethodsObject().

{
global $ilDB;
$result = $ilDB->queryf('SELECT COUNT(pay_method) pm FROM payment_objects WHERE pay_method = %s',
array('integer'), array($a_id));
while($row = $result->fetchRow(DB_FETCHMODE_OBJECT))
{
return (int)$row->pm;
}
return 0;
}

+ Here is the caller graph for this function:

ilPaymentObject::_getObjectData (   $a_id)

Definition at line 386 of file class.ilPaymentObject.php.

References $ilDB, and $res.

Referenced by ilPurchaseBaseGUI\__addBookings(), ilPurchasePaypal\__saveTransaction(), and ilPurchase\purchase().

{
global $ilDB;
$res = $ilDB->queryf('
SELECT * FROM payment_objects
WHERE pobject_id = %s',
array('integer'), array($a_id));
if (is_object($res))
{
return $ilDB->fetchAssoc($res);
}
return false;
}

+ Here is the caller graph for this function:

ilPaymentObject::_getObjectsData (   $a_user_id)

Definition at line 234 of file class.ilPaymentObject.php.

References $ilDB, $in, $query, $res, $row, $vendor, ilPaymentTrustees\_getVendorsForObjects(), and ilPaymentVendors\_isVendor().

Referenced by ilPaymentObjectGUI\showObjects().

{
global $ilDB;
// get all vendors user is assigned to
include_once './Services/Payment/classes/class.ilPaymentTrustees.php';
include_once './Services/Payment/classes/class.ilPaymentVendors.php';
{
$vendors[] = $a_user_id;
}
if(!count($vendors))
{
return array();
}
$data_types = array();
$data_values = array();
$cnt_vendors = count($vendors);
$query = 'SELECT * FROM payment_objects WHERE vendor_id IN';
if (is_array($vendors) &&
$cnt_vendors > 0)
{
$in = '(';
$counter = 0;
foreach($vendors as $vendor)
{
array_push($data_values, $vendor);
array_push($data_types, 'integer');
if($counter > 0) $in .= ',';
$in .= '%s';
++$counter;
}
$in .= ')';
$query .= $in;
}
$res= $ilDB->queryf($query, $data_types, $data_values);
while($row = $ilDB->fetchObject($res))
{
$objects[$row->pobject_id]['pobject_id'] = $row->pobject_id;
$objects[$row->pobject_id]['ref_id'] = $row->ref_id;
$objects[$row->pobject_id]['status'] = $row->status;
$objects[$row->pobject_id]['pay_method'] = $row->pay_method;
$objects[$row->pobject_id]['vendor_id'] = $row->vendor_id;
$objects[$row->pobject_id]['topic_id'] = $row->pt_topic_fk;
$objects[$row->pobject_id]['vat_id'] = $row->vat_id;
}
return $objects ? $objects : array();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaymentObject::_hasAccess (   $a_ref_id,
  $a_transaction = 0 
)

Definition at line 458 of file class.ilPaymentObject.php.

References $ilDB, $result, $row, ilGeneralSettings\_getInstance(), ilPaymentTrustees\_getVendorIdsByTrustee(), and ilPaymentBookings\_hasAccess().

Referenced by _requiresPurchaseToAccess(), ilObjFileGUI\executeCommand(), ilSAHSPresentationGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFileListGUI\getCommandFrame(), ilObjFileBasedLMListGUI\getCommandFrame(), ilObjSAHSLearningModuleListGUI\getCommandFrame(), ilObjDlBookListGUI\getCommandFrame(), ilObjLearningModuleListGUI\getCommandFrame(), ilObjLearningModuleListGUI\getProperties(), ilObjectListGUI\insertPayment(), and ilShopResultPresentationGUI\renderItems().

{
include_once './Services/Payment/classes/class.ilPaymentBookings.php';
include_once './Services/Payment/classes/class.ilPaymentTrustees.php';
include_once './Services/Payment/classes/class.ilPaymentVendors.php';
global $rbacsystem,$ilDB, $ilUser;
// check write access
if($rbacsystem->checkAccess('write', $a_ref_id))
{
return true;
}
// check if user is vendor/trustee
$vendors_of_trustee = ilPaymentTrustees::_getVendorIdsByTrustee($ilUser->getId());
include_once './Services/Payment/classes/class.ilGeneralSettings.php';
if(!(bool)ilGeneralSettings::_getInstance()->get('shop_enabled'))
{
return true;
}
$result = $ilDB->queryf('
SELECT * FROM payment_objects
WHERE ref_id = %s
AND (status = %s OR status = %s)
OR (vendor_id = %s)',
array('integer', 'integer', 'integer','integer'),
array($a_ref_id, '1', '2',$ilUser->getId()));
while($row = $ilDB->fetchObject($result))
{
if($row->vendor_id == $ilUser->getId() || in_array($row->vendor_id, $vendors_of_trustee))
{
return true;
}
else
if(!ilPaymentBookings::_hasAccess($row->pobject_id, '', $a_transaction))
{
return false;
}
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilPaymentObject::_isBuyable (   $a_ref_id)
static

Definition at line 520 of file class.ilPaymentObject.php.

References $ilDB, $result, $row, and ilGeneralSettings\_getInstance().

Referenced by _requiresPurchaseToAccess(), ilRepUtil\deleteObjects(), ilObjFileGUI\executeCommand(), ilSAHSPresentationGUI\executeCommand(), ilObjTestGUI\executeCommand(), ilObjFileBasedLMGUI\executeCommand(), ilObjCourseGUI\executeCommand(), ilObjFileListGUI\getCommandFrame(), ilObjFileBasedLMListGUI\getCommandFrame(), ilObjSAHSLearningModuleListGUI\getCommandFrame(), ilObjDlBookListGUI\getCommandFrame(), ilObjLearningModuleListGUI\getCommandFrame(), ilObjLearningModuleListGUI\getProperties(), and ilObjectListGUI\insertPayment().

{
global $ilDB;
include_once './Services/Payment/classes/class.ilGeneralSettings.php';
if(!(bool)ilGeneralSettings::_getInstance()->get('shop_enabled'))
{
return false;
}
$result = $ilDB->queryf('
SELECT * FROM payment_objects
WHERE ref_id = %s AND (status = %s or status = %s)',
array('integer', 'integer', 'integer'),
array($a_ref_id, '1', '2'));
while($row = $ilDB->fetchObject($result))
{
return true;
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilPaymentObject::_isInCart (   $a_ref_id)
static

Definition at line 561 of file class.ilPaymentObject.php.

References $ilDB, $result, and $row.

Referenced by ilObjLearningModuleListGUI\getProperties(), and ilObjectListGUI\insertPayment().

{
global $ilDB, $ilUser;
if(ANONYMOUS_USER_ID == $ilUser->getId())
{
$result = $ilDB->queryf('
SELECT psc_id FROM payment_objects po, payment_shopping_cart psc
WHERE ref_id = %s
AND session_id = %s
AND po.pobject_id = psc.pobject_id',
array('integer', 'text'),
array($a_ref_id, session_id()));
}
else
{
$result = $ilDB->queryf('
SELECT psc_id FROM payment_objects po, payment_shopping_cart psc
WHERE ref_id = %s
AND customer_id = %s
AND po.pobject_id = psc.pobject_id',
array('integer', 'integer'),
array($a_ref_id, $ilUser->getId()));
}
while($row = $ilDB->fetchObject($result))
{
return true;
}
return false;
}

+ Here is the caller graph for this function:

static ilPaymentObject::_isNewObject (   $a_ref_id)
static

Definition at line 544 of file class.ilPaymentObject.php.

References $ilDB, and $res.

Referenced by ilPaymentObjectSelector\isClickable().

{
global $ilDB;
$res = $ilDB->queryF('SELECT * FROM payment_objects WHERE ref_id = %s',
array('integer'), array($a_ref_id));
$rows = $ilDB->numRows($res);
return $rows ? false : true;
}

+ Here is the caller graph for this function:

ilPaymentObject::_isPurchasable (   $a_ref_id,
  $a_vendor_id = 0,
  $a_check_trustee = false,
  $a_check_status = false 
)

Definition at line 404 of file class.ilPaymentObject.php.

References $data, $ilDB, $query, $res, ilPaymentTrustees\_getVendorsForObjects(), and ilPaymentVendors\_isVendor().

Referenced by ilPaymentObjectGUI\addObject(), ilPaymentObjectSelector\isClickable(), and ilPaymentObjectSelector\showChilds().

{
global $ilDB;
// In the moment it's not possible to sell one object twice
$data = array();
$data_types = array();
$query = 'SELECT * FROM payment_objects WHERE ref_id = %s ';
$data_types[] = 'integer';
$data[]= $a_ref_id;
// check if object is buyable !!
if($a_check_status)
{
$query .= 'AND status > %s ';
$data_types[] = 'integer';
$data[] = 0;
}
if ($a_vendor_id > 0)
{
$query .= 'AND vendor_id = %s';
$data_types[] = 'integer';
$data[] = $a_vendor_id;
if($a_check_trustee)
{
include_once './Services/Payment/classes/class.ilPaymentTrustees.php';
include_once './Services/Payment/classes/class.ilPaymentVendors.php';
$vendors = ilPaymentTrustees::_getVendorsForObjects($a_vendor_id);
{
$vendors[] = $a_user_id;
}
if(is_array($vendors) && count($vendors))
{
$query .= ' OR '.$ilDB->in('vendor_id', $vendors, false, 'integer');
}
}
}
$res = $ilDB->queryf($query, $data_types, $data);
$rows = $ilDB->numRows($res);
return $rows ? true : false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaymentObject::_lookupPobjectId (   $a_ref_id)

Definition at line 179 of file class.ilPaymentObject.php.

References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.

Referenced by ilShopPurchaseGUI\__initPaymentObject(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilShopResultPresentationGUI\renderItems(), ilPaymentStatisticGUI\saveCustomer(), and ilObjPaymentSettingsGUI\saveCustomerObject().

{
global $ilDB;
$res = $ilDB->queryf('
SELECT * FROM payment_objects
WHERE ref_id = %s',
array('integer'),
array($a_ref_id));
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
return $row->pobject_id;
}
return 0;
}

+ Here is the caller graph for this function:

static ilPaymentObject::_lookupTopicId (   $a_ref_id)
static

Definition at line 196 of file class.ilPaymentObject.php.

References $ilDB, $result, $row, and DB_FETCHMODE_OBJECT.

Referenced by ilShopSearchResult\filter(), and ilShopSearchResult\getResultsForPresentation().

{
global $ilDB;
static $cache = array();
if(isset($cache[$a_ref_id]))
{
return $cache[$a_ref_id];
}
$result = $ilDB->queryf('SELECT pt_topic_fk FROM payment_objects WHERE ref_id = %s',
array('integer'),array($a_ref_id));
while($row = $result->fetchRow(DB_FETCHMODE_OBJECT))
{
$cache[$a_ref_id] = $row->pt_topic_fk;
return (int)$cache[$a_ref_id];
}
return 0;
}

+ Here is the caller graph for this function:

static ilPaymentObject::_requiresPurchaseToAccess (   $a_ref_id)
static

Definition at line 556 of file class.ilPaymentObject.php.

References _hasAccess(), and _isBuyable().

Referenced by ilLMPresentationGUI\ilLMPresentationGUI(), ilLMExplorer\isClickable(), ilLMTOCExplorer\isClickable(), ilTableOfContentsExplorer\isClickable(), and ilObjContentObjectGUI\setilLMMenu().

{
return (bool)(self::_isBuyable($a_ref_id) && !self::_hasAccess($a_ref_id));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPaymentObject::add ( )

Definition at line 125 of file class.ilPaymentObject.php.

References getPayMethod(), getRefId(), getStatus(), getTopicId(), getVatId(), and getVendorId().

{
$next_id = $this->db->nextId('payment_objects');
$this->db->insert('payment_objects',array(
'pobject_id' => array('integer', $next_id),
'ref_id' => array('integer', $this->getRefId()),
'status' => array('integer', $this->getStatus()),
'pay_method' => array('integer', $this->getPayMethod()),
'vendor_id' => array('integer', $this->getVendorId()),
'pt_topic_fk' => array('integer', $this->getTopicId()),
'vat_id' => array('integer', $this->getVatId())
));
return $next_id;
}

+ Here is the call graph for this function:

ilPaymentObject::delete ( )

Definition at line 141 of file class.ilPaymentObject.php.

References getPobjectId().

{
if($this->getPobjectId())
{
include_once 'Services/Payment/classes/class.ilFileDataShop.php';
$oFileData = new ilFileDataShop($this->getPobjectId());
$oFileData->deassignFileFromPaymentObject();
$statement = $this->db->manipulateF('DELETE FROM payment_objects WHERE pobject_id = %s',
array('integer'), array($this->getPobjectId()));
return true;
}
return false;
}

+ Here is the call graph for this function:

ilPaymentObject::getPayMethod ( )

Definition at line 86 of file class.ilPaymentObject.php.

References $pay_method.

Referenced by add(), and update().

{
}

+ Here is the caller graph for this function:

ilPaymentObject::getPobjectId ( )

Definition at line 62 of file class.ilPaymentObject.php.

References $pobject_id.

Referenced by __read(), delete(), and update().

{
}

+ Here is the caller graph for this function:

ilPaymentObject::getRefId ( )

Definition at line 70 of file class.ilPaymentObject.php.

References $ref_id.

Referenced by add(), and update().

{
return $this->ref_id;
}

+ Here is the caller graph for this function:

ilPaymentObject::getStatus ( )

Definition at line 78 of file class.ilPaymentObject.php.

References $status.

Referenced by add(), and update().

{
return $this->status;
}

+ Here is the caller graph for this function:

ilPaymentObject::getTopicId ( )

Definition at line 54 of file class.ilPaymentObject.php.

References $topic_id.

Referenced by add(), and update().

{
}

+ Here is the caller graph for this function:

ilPaymentObject::getVat (   $a_amount = 0,
  $type = 'CALCULATION' 
)

Definition at line 107 of file class.ilPaymentObject.php.

References $lng, ilShopUtils\_formatFloat(), and getVatId().

{
$oVAT = new ilShopVats($this->getVatId());
switch($type)
{
case 'CALCULATION':
$val = (float)($a_amount - (round(($a_amount / (1 + ($oVAT->getRate() / 100))) * 100) / 100));
return number_format($val,'2');
default:
global $lng;
$val = (float)($a_amount - (round(($a_amount / (1 + ($oVAT->getRate() / 100))) * 100) / 100));
return $val;
}
}

+ Here is the call graph for this function:

ilPaymentObject::getVatId ( )

Definition at line 98 of file class.ilPaymentObject.php.

References $vat_id.

Referenced by add(), getVat(), and update().

{
return $this->vat_id;
}

+ Here is the caller graph for this function:

ilPaymentObject::getVendorId ( )

Definition at line 94 of file class.ilPaymentObject.php.

References $vendor_id.

Referenced by add(), and update().

{
}

+ Here is the caller graph for this function:

ilPaymentObject::setPayMethod (   $a_method)

Definition at line 82 of file class.ilPaymentObject.php.

Referenced by __read().

{
$this->pay_method = $a_method;
}

+ Here is the caller graph for this function:

ilPaymentObject::setRefId (   $a_ref_id)

Definition at line 66 of file class.ilPaymentObject.php.

Referenced by __read().

{
$this->ref_id = $a_ref_id;
}

+ Here is the caller graph for this function:

ilPaymentObject::setStatus (   $a_status)

Definition at line 74 of file class.ilPaymentObject.php.

Referenced by __read().

{
$this->status = $a_status;
}

+ Here is the caller graph for this function:

ilPaymentObject::setTopicId (   $a_topic_id)

Definition at line 58 of file class.ilPaymentObject.php.

Referenced by __read().

{
$this->topic_id = $a_topic_id;
}

+ Here is the caller graph for this function:

ilPaymentObject::setVatId (   $a_vat_id)

Definition at line 102 of file class.ilPaymentObject.php.

Referenced by __read().

{
$this->vat_id = $a_vat_id;
}

+ Here is the caller graph for this function:

ilPaymentObject::setVendorId (   $a_vendor_id)

Definition at line 90 of file class.ilPaymentObject.php.

Referenced by __read().

{
$this->vendor_id = $a_vendor_id;
}

+ Here is the caller graph for this function:

ilPaymentObject::update ( )

Definition at line 159 of file class.ilPaymentObject.php.

References getPayMethod(), getPobjectId(), getRefId(), getStatus(), getTopicId(), getVatId(), and getVendorId().

{
if((int)$this->getPobjectId())
{
$this->db->update('payment_objects',array(
'ref_id' => array('integer', $this->getRefId()),
'status' => array('integer', $this->getStatus()),
'pay_method' => array('integer', $this->getPayMethod()),
'vendor_id' => array('integer', $this->getVendorId()),
'pt_topic_fk' => array('integer', $this->getTopicId()),
'vat_id' => array('integer', $this->getVatId())
),
array('pobject_id' => array('integer', $this->getPobjectId())));
return true;
}
else
return false;
}

+ Here is the call graph for this function:

Field Documentation

ilPaymentObject::$db = null
private

Definition at line 14 of file class.ilPaymentObject.php.

ilPaymentObject::$pay_method = null
private

Definition at line 19 of file class.ilPaymentObject.php.

Referenced by getPayMethod().

ilPaymentObject::$pobject_id = null
private

Definition at line 16 of file class.ilPaymentObject.php.

Referenced by getPobjectId().

ilPaymentObject::$ref_id = null
private

Definition at line 17 of file class.ilPaymentObject.php.

Referenced by getRefId().

ilPaymentObject::$status = null
private

Definition at line 18 of file class.ilPaymentObject.php.

Referenced by getStatus().

ilPaymentObject::$topic_id = 0
private

Definition at line 21 of file class.ilPaymentObject.php.

Referenced by getTopicId().

ilPaymentObject::$user_obj = null
private

Definition at line 15 of file class.ilPaymentObject.php.

Referenced by __construct().

ilPaymentObject::$vat_id = 0
private

Definition at line 22 of file class.ilPaymentObject.php.

Referenced by getVatId().

ilPaymentObject::$vendor_id = null
private

Definition at line 20 of file class.ilPaymentObject.php.

Referenced by getVendorId().


The documentation for this class was generated from the following file: