function Load($iType = DCL_ENTITY_GLOBAL, $iID = 0, $iID2 = 0, $sName = 'FrontPage') { if ($iType != DCL_ENTITY_WORKORDER) { $iID2 = 0; } return parent::Load(array('dcl_entity_type_id' => $iType, 'dcl_entity_id' => $iID, 'dcl_entity_id2' => $iID2, 'page_name' => $sName)); }
function Load($id) { $iRetVal = parent::Load(array('personnel_id' => $id), false); if ($iRetVal != -1 && is_string($this->preferences_data)) { $this->preferences_data = unserialize($this->preferences_data); } return $iRetVal; }
function Load($id) { return parent::Load(array('dcl_lookup_id' => $id)); }
function Load($id) { return parent::Load(array('faqid' => $id)); }
function Load($resid) { return parent::Load(array('resid' => $resid)); }
function Load($id) { return parent::Load(array('dcl_chklst_id' => $id)); }
function Load($projectid) { return parent::Load(array('projectid' => $projectid)); }
function Load($id) { return parent::Load(array('answerid' => $id)); }
function Load($id) { return parent::Load(array('topicid' => $id)); }
function Load($ticketid) { global $g_oSec; $oRetVal = parent::Load(array('ticketid' => $ticketid)); if ($oRetVal !== -1) { $bIsPublic = false; if (($g_oSec->IsPublicUser() || $g_oSec->IsOrgUser()) && !$this->CanView($this, $GLOBALS['DCLID'], $bIsPublic)) { $oRetVal = -1; $this->Clear(); PrintPermissionDenied(); } } return $oRetVal; }
function Load($id) { return parent::Load(array('questionid' => $id)); }
function Load($jcn, $seq) { global $g_oSec; if (!isset($jcn) || !is_numeric($jcn) || $jcn < 1 || !isset($seq) || !is_numeric($seq) || $seq < 1) { return trigger_error("Invalid work order ID passed to Load: {$jcn}-{$seq}"); } $this->Clear(); $oRetVal = parent::Load(array('jcn' => $jcn, 'seq' => $seq)); if ($oRetVal !== -1) { $bIsPublic = false; if (($g_oSec->IsPublicUser() || $g_oSec->IsOrgUser()) && !$this->CanView($this, $GLOBALS['DCLID'], $bIsPublic)) { $oRetVal = -1; $this->Clear(); PrintPermissionDenied(); } } return $oRetVal; }
function Load($jcn, $seq) { return parent::Load(array('entity_id' => $jcn, 'entity_id2' => $seq)); }