cmdbAbstractObjectbizmodel,searchable,structurefalseautoincrementorganizationidstatusnamefalsecodetrueactiveinactivestatusactivetruelistparent_idtrueDEL_MANUALparent_idnametrueDashboardLayoutTwoColsOrganization:Overviewfalse30000Organization:Overview:FunctionalCIsOrganization:Overview:FunctionalCIs:subtitleSELECT FunctionalCI WHERE org_id=:this->idfinalclassNetworkDevice,Server,ApplicationSolution200Organization:Overview:UsersSELECT Person AS p JOIN User AS u ON u.contactid=p.id WHERE p.org_id=:this->id5010203040501010203040102030cmdbAbstractObjectbizmodel,searchable,structurefalseautoincrementlocationidstatusnamefalseactiveinactivestatusactivetruelistorg_idOrganizationfalseDEL_MANUALorg_idnameaddresstruepostal_codetruecitytruecountrytruePersonlocation_idadd_only00102030405010203040506070801020301020304050607010203040cmdbAbstractObjectbizmodel,searchable,structuretrueautoincrementcontactidfinalclassstatusstatus='inactive'namefalseactiveinactivestatusactivefalselistorg_idOrganizationfalseDEL_MANUALorg_idnameemailtruephonetrueyesnonotifyyestrueradio_horizontalfunctiontrue1020304050607010203040506070102030401020304050Contactbizmodel,searchable,structurefalseautoincrementpersonidpicturefalsetruefalsefalseEVENT_DB_CHECK_TO_WRITECheckUsersOnUpdate19696128128images/silhouette.pngtruefirst_namefalseemployee_numbertruemobile_phonetrueorg_id]]>location_idLocationtrueDEL_MANUALfalselocation_idnamemanager_idPersontrueDEL_MANUALmanager_idnamelnkPersonToTeamperson_id00team_idUsercontactidadd_onlyon_host_display00falsepublicEventListenerListChanges();
// Current User may not be allowed to see User class, so we can't use $this->Get('user_list')
$oSearch = new DBObjectSearch('User');
$oSearch->AddCondition('contactid', $this->GetKey(), '=');
$oSearch->AllowAllData();
$oUserSet = new DBObjectSet($oSearch);
// Change was not made by a DataSynchro and the organization's person was changed and there are associated Users
if (!ContextTag::Check(ContextTag::TAG_SYNCHRO) && array_key_exists('org_id', $aChanges) && ($oUserSet->Count() > 0)) {
while($oUser = $oUserSet->Fetch())
{
$oAddon = UserRights::GetModuleInstance();
$aOrgs = $oAddon->GetUserOrgs($oUser,'Organization');
$oSet = $oUser->Get('profile_list');
$aProfiles = $oSet->GetColumnAsArray('profile');
// User is not allowed on the new Organization and has 'Portal user' Profile and is enabled
if ((count($aOrgs) > 0) && !in_array($this->Get('org_id'), $aOrgs) && in_array('Portal user',$aProfiles) && ($oUser->Get('status') === 'enabled'))
{ // Let's block the Person modification,
// replace by $this->AddCheckWarning(...) if you don't want to block the modification
$this->AddCheckIssue(Dict::Format('Class:Person/Error:ChangingOrgDenied', $this->Get('org_id_friendlyname')));
}
}
}
}
]]>falsepublicOverload-DBObjectGet('demo_mode'))
{
if ($this->HasUserAccount())
{
// Do not let users change user accounts in demo mode
$oDeletionPlan->AddToDelete($this, null);
$oDeletionPlan->SetDeletionIssues($this, array('deletion not allowed in demo mode.'), true);
$oDeletionPlan->ComputeResults();
return false;
}
}
return parent::CheckToDelete($oDeletionPlan);
}
]]>falsepublicOverload-DBObjectGet('demo_mode'))
{
if ($this->HasUserAccount())
{
// Do not let users change user accounts in demo mode
return;
}
}
parent::DBDeleteSingleObject();
}
]]>falsepublicOverload-DBObjectIsNew()) )
{
if (MetaModel::GetConfig()->Get('demo_mode'))
{
if ($this->HasUserAccount())
{
// Do not let users change user accounts in demo mode
return OPT_ATT_READONLY;
}
}
}
return parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
}
]]>falsepublicHelper $this->GetKey())));
$bHasUserAccount = ($oUserSet->Count() > 0);
}
return $bHasUserAccount;
}
]]>1020304050105540101020304050607080505101010203040102030405060708090100110102030405060Contactbizmodel,searchablefalseautoincrementteamidtrueDashboardLayoutTwoColsTeam:Overviewfalse30000Team:Overview:ActiveTicketsSELECT Ticket WHERE team_id=:this->id AND operational_status = 'ongoing'finalclasscountattributeasc10Class:UserRequestitop-structure/../../images/icons/icons8-customer.svgTeam:Overview:UserRequest-ByStatusSELECT UserRequest
WHERE team_id=:this->idstatusnew,assigned,pending,resolved,closed20UI-RequestManagementOverview-OpenRequestByAgentSELECT UserRequest WHERE team_id=:this->id AND status!='closed'agent_idcountattributedesc30Team:Overview:FunctionalCIs-ByTypeSELECT FunctionalCI AS fci JOIN lnkContactToFunctionalCI AS lnk ON lnk.functionalci_id = fci.id WHERE lnk.contact_id=:this->idfinalclasscountattributeasc40Team:Overview:UserRequest-ClosedByMonthSELECT UserRequest WHERE team_id=:this->id AND close_date > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 12 MONTH),'%Y-%m-01 00:00:00') AND status='closed'close_date:monthcountattributeasc50Team:Overview:UserRequest-ClosedByAgentSELECT UserRequest WHERE team_id=:this->id AND close_date > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 12 MONTH),'%Y-%m-01 00:00:00') AND status='closed'agent_idcountattributedesclnkPersonToTeamteam_id00person_id102030401020304050607080901020304050607010203040cmdbAbstractObject1bizmodelfalseautoincrementlnkpersontoteamidfalsetrueteam_idTeamfalseDEL_AUTOteam_idnameperson_idPersonfalseDEL_AUTOperson_idnamerole_idContactTypetrueDEL_MANUALrole_idname102030102030102030cmdbAbstractObjectbizmodel,searchabletrueautoincrementtypologyidfinalclassnamefalse10101010cmdbAbstractObjectbizmodel,searchabletrueautoincrementdocumentidfinalclassstatusnamefalseorg_idOrganizationfalseDEL_MANUALorg_idnamedocumenttype_idDocumentTypetrueDEL_MANUALdocumenttype_idnameversiontruedescriptiontruerankdraft10published20obsolete30statustruelist102030354050102030102030405010203040Documentbizmodel,searchablefalseautoincrementdocumentfileidfiletruefalsepublicOverload-cmdbAbstractObjectadd('');
}
return $aFieldsMap;
}]]>10203035405060102030405010203040Documentbizmodel,searchablefalseautoincrementdocumentnoteidtextfalse10203035405060102030405010203040Documentbizmodel,searchablefalseautoincrementdocumentwebidurltrue_blank102030354050102030405010203040Typologybizmodel,searchablefalseautoincrementdocumenttypeid101010Typologybizmodel,searchablefalseautoincrementcontacttypeid101010../css/backoffice/main.scssitop-structure/precompiled-themes/fullmoon/main.css$ibo-color-red-600$ibo-color-red-100"THIS IS A TEST INSTANCE"../css/backoffice/main.scss../css/backoffice/themes/page-banner.scssitop-structure/precompiled-themes/test-red/main.cssmoduleitop-structure-1
.ibo-has-description::after, .ibo-input-with-label--label.ibo-has-description::after{content:"\1F6C8"; font-weight: 200;} ';
}
}
]]>