本文整理汇总了PHP中Dict类的典型用法代码示例。如果您正苦于以下问题:PHP Dict类的具体用法?PHP Dict怎么用?PHP Dict使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Dict类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ShowExamples
function ShowExamples($oP, $sExpression)
{
$bUsingExample = false;
$aExamples = array('Pedagogic examples' => array("Web applications" => "SELECT WebApplication", "Person having an 'A' in their name" => "SELECT Person AS B WHERE B.name LIKE '%A%'", "Servers having a name like dbserver1.demo.com or dbserver023.foo.fr" => "SELECT Server WHERE name REGEXP '^dbserver[0-9]+\\\\..+\\\\.[a-z]{2,3}\$'", "Changes planned on new year's day" => "SELECT Change AS ch WHERE ch.start_date >= '2009-12-31' AND ch.end_date <= '2010-01-01'", "IPs in a range" => "SELECT DatacenterDevice AS dev WHERE INET_ATON(dev.managementip) > INET_ATON('10.22.32.224') AND INET_ATON(dev.managementip) < INET_ATON('10.22.32.255')", "Persons below a given root organization" => "SELECT Person AS P JOIN Organization AS Node ON P.org_id = Node.id JOIN Organization AS Root ON Node.parent_id BELOW Root.id WHERE Root.id=1"), 'Usefull examples' => array("NW interfaces of equipment in production for customer 'Demo'" => "SELECT PhysicalInterface AS if JOIN DatacenterDevice AS dev ON if.connectableci_id = dev.id WHERE dev.status = 'production' AND dev.organization_name = 'Demo'", "My tickets" => "SELECT Ticket AS t WHERE t.agent_id = :current_contact_id", "People being owner of an active ticket" => "SELECT Person AS p JOIN UserRequest AS u ON u.agent_id = p.id WHERE u.status != 'closed'", "Contracts terminating in the next thirty days" => "SELECT Contract AS c WHERE c.end_date > NOW() AND c.end_date < DATE_ADD(NOW(), INTERVAL 30 DAY)", "Orphan tickets (opened one hour ago, still not assigned)" => "SELECT UserRequest AS u WHERE u.start_date < DATE_SUB(NOW(), INTERVAL 60 MINUTE) AND u.status = 'new'", "Long lasting incidents (duration > 8 hours)" => "SELECT UserRequest AS u WHERE u.close_date > DATE_ADD(u.start_date, INTERVAL 8 HOUR)"));
$aDisplayData = array();
$oAppContext = new ApplicationContext();
$sContext = $oAppContext->GetForForm();
foreach ($aExamples as $sTopic => $aQueries) {
foreach ($aQueries as $sDescription => $sOql) {
$sHighlight = '';
$sDisable = '';
if ($sOql == $sExpression) {
// this one is currently being tested, highlight it
$sHighlight = "background-color:yellow;";
$sDisable = 'disabled';
// and remember we are testing a query of the list
$bUsingExample = true;
}
//$aDisplayData[$sTopic][] = array(
$aDisplayData[Dict::S('UI:RunQuery:QueryExamples')][] = array('desc' => "<div style=\"{$sHighlight}\">" . htmlentities($sDescription, ENT_QUOTES, 'UTF-8') . "</div>", 'oql' => "<div style=\"{$sHighlight}\">" . htmlentities($sOql, ENT_QUOTES, 'UTF-8') . "</div>", 'go' => "<form method=\"get\"><input type=\"hidden\" name=\"expression\" value=\"{$sOql}\"><input type=\"submit\" value=\"" . Dict::S('UI:Button:Test') . "\" {$sDisable}>{$sContext}</form>\n");
}
}
$aDisplayConfig = array();
$aDisplayConfig['desc'] = array('label' => Dict::S('UI:RunQuery:HeaderPurpose'), 'description' => Dict::S('UI:RunQuery:HeaderPurpose+'));
$aDisplayConfig['oql'] = array('label' => Dict::S('UI:RunQuery:HeaderOQLExpression'), 'description' => Dict::S('UI:RunQuery:HeaderOQLExpression+'));
$aDisplayConfig['go'] = array('label' => '', 'description' => '');
foreach ($aDisplayData as $sTopic => $aQueriesDisplayData) {
$bShowOpened = $bUsingExample;
$oP->StartCollapsibleSection($sTopic, $bShowOpened);
$oP->table($aDisplayConfig, $aQueriesDisplayData);
$oP->EndCollapsibleSection();
}
}
示例2: GetCurrentUserName
public static function GetCurrentUserName()
{
if (UserRights::IsImpersonated()) {
$sUserString = Dict::Format('UI:Archive_User_OnBehalfOf_User', UserRights::GetRealUserFriendlyName(), UserRights::GetUserFriendlyName());
} else {
$sUserString = UserRights::GetUserFriendlyName();
}
return $sUserString;
}
示例3: DisplayDetails
function DisplayDetails(WebPage $oPage, $bEditMode = false)
{
// Object's details
//$this->DisplayBareHeader($oPage, $bEditMode);
$oPage->AddTabContainer(OBJECT_PROPERTIES_TAB);
$oPage->SetCurrentTabContainer(OBJECT_PROPERTIES_TAB);
$oPage->SetCurrentTab(Dict::S('UI:PropertiesTab'));
$this->DisplayBareProperties($oPage, $bEditMode);
}
示例4: GetUserFriendlyDescription
public function GetUserFriendlyDescription()
{
$sWrongClass = $this->GetWrongWord();
$sSuggest = self::FindClosestString($sWrongClass, $this->GetSuggestions());
if ($sSuggest != '') {
return Dict::Format('UI:OQL:UnknownClassAndFix', $sWrongClass, $sSuggest);
} else {
return Dict::Format('UI:OQL:UnknownClassNoFix', $sWrongClass);
}
}
示例5: result
public function result($xmlData, $intLevel = 0)
{
$xlyTemplate = new Dict();
if ($this->hasDataset('frame')) {
$strTemplate = $this->hasDataset('frame');
} elseif ($this->hasAttribute('file') && is_readable($this->attribute('file'))) {
$strTemplate = $this->fileRead($this->attribute('file'));
} else {
throw new beanException('No Template specified for view:frame');
}
$arrSection = $this->children('section');
foreach ($arrSection as $section) {
if ($section->hasAttribute('name')) {
$xlyTemplate->set($section->attribute('name'), $section->dump());
}
}
// Insert the blocks into the template and return the result
return $xlyTemplate->insertInto($strTemplate);
}
示例6: ComputeResults
public function ComputeResults()
{
$this->m_iToDelete = 0;
$this->m_iToUpdate = 0;
foreach ($this->m_aToDelete as $sClass => $aToDelete) {
foreach ($aToDelete as $iId => $aData) {
$this->m_iToDelete++;
if (isset($aData['issue'])) {
$this->m_bFoundStopper = true;
$this->m_bFoundManualOperation = true;
if (isset($aData['issue_security'])) {
$this->m_bFoundSecurityIssue = true;
}
}
if ($aData['mode'] == DEL_MANUAL) {
$this->m_aToDelete[$sClass][$iId]['issue'] = $sClass . '::' . $iId . ' ' . Dict::S('UI:Delete:MustBeDeletedManually');
$this->m_bFoundStopper = true;
$this->m_bFoundManualDelete = true;
}
}
}
// Getting and setting time limit are not symetric:
// www.php.net/manual/fr/function.set-time-limit.php#72305
$iPreviousTimeLimit = ini_get('max_execution_time');
$iLoopTimeLimit = MetaModel::GetConfig()->Get('max_execution_time_per_loop');
foreach ($this->m_aToUpdate as $sClass => $aToUpdate) {
foreach ($aToUpdate as $iId => $aData) {
set_time_limit($iLoopTimeLimit);
$this->m_iToUpdate++;
$oObject = $aData['to_reset'];
$aExtKeyLabels = array();
foreach ($aData['attributes'] as $sRemoteExtKey => $aRemoteAttDef) {
$oObject->Set($sRemoteExtKey, $aData['values'][$sRemoteExtKey]);
$aExtKeyLabels[] = $aRemoteAttDef->GetLabel();
}
$this->m_aToUpdate[$sClass][$iId]['attributes_list'] = implode(', ', $aExtKeyLabels);
list($bRes, $aIssues, $bSecurityIssues) = $oObject->CheckToWrite();
if (!$bRes) {
$this->m_aToUpdate[$sClass][$iId]['issue'] = implode(', ', $aIssues);
$this->m_bFoundStopper = true;
if ($bSecurityIssues) {
$this->m_aToUpdate[$sClass][$iId]['issue_security'] = true;
$this->m_bFoundSecurityIssue = true;
}
}
}
}
set_time_limit($iPreviousTimeLimit);
}
示例7: run
public function run()
{
DB::table('dicts')->delete();
Dict::create(array('code' => 'USER_LEVEL', 'name' => '会员等级', 'para_code' => '001', 'para_name' => '食客'));
Dict::create(array('code' => 'USER_LEVEL', 'name' => '会员等级', 'para_code' => '002', 'para_name' => '高级食客'));
Dict::create(array('code' => 'USER_LEVEL', 'name' => '会员等级', 'para_code' => '003', 'para_name' => '美食家'));
Dict::create(array('code' => 'USER_STATUS', 'name' => '会员状态', 'para_code' => '001', 'para_name' => '正常'));
Dict::create(array('code' => 'USER_STATUS', 'name' => '会员状态', 'para_code' => '002', 'para_name' => '待审核'));
Dict::create(array('code' => 'USER_STATUS', 'name' => '会员状态', 'para_code' => '003', 'para_name' => '已禁用'));
Dict::create(array('code' => 'ARTICLE_STATUS', 'name' => '文章状态', 'para_code' => '001', 'para_name' => '待发布'));
Dict::create(array('code' => 'ARTICLE_STATUS', 'name' => '文章状态', 'para_code' => '002', 'para_name' => '待审核'));
Dict::create(array('code' => 'ARTICLE_STATUS', 'name' => '文章状态', 'para_code' => '003', 'para_name' => '已审核'));
Dict::create(array('code' => 'ARTICLE_STATUS', 'name' => '文章状态', 'para_code' => '004', 'para_name' => '已拒绝'));
Dict::create(array('code' => 'COOKBOOK_STATUS', 'name' => '菜谱状态', 'para_code' => '001', 'para_name' => '待发布'));
Dict::create(array('code' => 'COOKBOOK_STATUS', 'name' => '菜谱状态', 'para_code' => '002', 'para_name' => '待审核'));
Dict::create(array('code' => 'COOKBOOK_STATUS', 'name' => '菜谱状态', 'para_code' => '003', 'para_name' => '已审核'));
Dict::create(array('code' => 'COOKBOOK_STATUS', 'name' => '菜谱状态', 'para_code' => '004', 'para_name' => '已拒绝'));
}
示例8: TestConfig
function TestConfig($sContents, $oP)
{
try {
ini_set('display_errors', 1);
ob_start();
eval('?' . '>' . trim($sContents));
$sNoise = trim(ob_get_contents());
ob_end_clean();
} catch (Exception $e) {
// well, never reach in case of parsing error :-(
throw new Exception('Error in configuration: ' . $e->getMessage());
}
if (strlen($sNoise) > 0) {
if (preg_match("/(Error|Parse error|Notice|Warning): (.+) in \\S+ : eval\\(\\)'d code on line (\\d+)/i", strip_tags($sNoise), $aMatches)) {
$sMessage = $aMatches[2];
$sLine = $aMatches[3];
$iLine = (int) $sLine;
// Highlight the line
$aLines = explode("\n", $sContents);
$iStart = 0;
for ($i = 0; $i < $iLine - 1; $i++) {
$iStart += strlen($aLines[$i]);
}
$iEnd = $iStart + strlen($aLines[$iLine - 1]);
$iTotalLines = count($aLines);
$oP->add_ready_script(<<<EOF
setCursorPos(\$('#new_config')[0], {$iStart}, {$iEnd});
\$('#new_config')[0].focus();
var iScroll = Math.floor(\$('#new_config')[0].scrollHeight * ({$iLine} - 20) / {$iTotalLines});
\$('#new_config').scrollTop(iScroll);
EOF
);
$sMessage = Dict::Format('config-parse-error', $sMessage, $sLine);
throw new Exception($sMessage);
} else {
// Note: sNoise is an html output, but so far it was ok for me (e.g. showing the entire call stack)
throw new Exception('Syntax error in configuration file: <tt>' . $sNoise . '</tt>');
}
}
}
示例9: Display
/**
* Get the HTML fragment corresponding to the linkset editing widget
* @param WebPage $oP The web page used for all the output
* @param Hash $aArgs Extra context arguments
* @return string The HTML fragment to be inserted into the page
*/
public function Display(WebPage $oPage, $aArgs = array())
{
$sCode = $this->sAttCode . $this->sNameSuffix;
$iWidgetIndex = self::$iWidgetIndex;
$aPasswordValues = utils::ReadPostedParam("attr_{$sCode}", null, 'raw_data');
$sPasswordValue = $aPasswordValues ? $aPasswordValues['value'] : '*****';
$sConfirmPasswordValue = $aPasswordValues ? $aPasswordValues['confirm'] : '*****';
$sChangedValue = $sPasswordValue != '*****' || $sConfirmPasswordValue != '*****' ? 1 : 0;
$sHtmlValue = '';
$sHtmlValue = '<input type="password" maxlength="255" name="attr_' . $sCode . '[value]" id="' . $this->iId . '" value="' . htmlentities($sPasswordValue, ENT_QUOTES, 'UTF-8') . '"/> <span class="form_validation" id="v_' . $this->iId . '"></span><br/>';
$sHtmlValue .= '<input type="password" maxlength="255" id="' . $this->iId . '_confirm" value="' . htmlentities($sConfirmPasswordValue, ENT_QUOTES, 'UTF-8') . '" name="attr_' . $sCode . '[confirm]"/> ' . Dict::S('UI:PasswordConfirm') . ' <input id="' . $this->iId . '_reset" type="button" value="' . Dict::S('UI:Button:ResetPassword') . '" onClick="ResetPwd(\'' . $this->iId . '\');">';
$sHtmlValue .= '<input type="hidden" id="' . $this->iId . '_changed" name="attr_' . $sCode . '[changed]" value="' . $sChangedValue . '"/>';
$oPage->add_ready_script("\$('#{$this->iId}').bind('keyup change', function(evt) { return PasswordFieldChanged('{$this->iId}') } );");
// Bind to a custom event: validate
$oPage->add_ready_script("\$('#{$this->iId}').bind('keyup change validate', function(evt, sFormId) { return ValidatePasswordField('{$this->iId}', sFormId) } );");
// Bind to a custom event: validate
$oPage->add_ready_script("\$('#{$this->iId}_confirm').bind('keyup change', function(evt, sFormId) { return ValidatePasswordField('{$this->iId}', sFormId) } );");
// Bind to a custom event: validate
$oPage->add_ready_script("\$('#{$this->iId}').bind('update', function(evt, sFormId)\n\t\t\t{\n\t\t\t\tif (\$(this).attr('disabled'))\n\t\t\t\t{\n\t\t\t\t\t\$('#{$this->iId}_confirm').attr('disabled', 'disabled');\n\t\t\t\t\t\$('#{$this->iId}_changed').attr('disabled', 'disabled');\n\t\t\t\t\t\$('#{$this->iId}_reset').attr('disabled', 'disabled');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\$('#{$this->iId}_confirm').removeAttr('disabled');\n\t\t\t\t\t\$('#{$this->iId}_changed').removeAttr('disabled');\n\t\t\t\t\t\$('#{$this->iId}_reset').removeAttr('disabled');\n\t\t\t\t}\n\t\t\t}\n\t\t);");
// Bind to a custom event: update to handle enabling/disabling
return $sHtmlValue;
}
示例10: array
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// iTop is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with iTop. If not, see <http://www.gnu.org/licenses/>
/**
* Localized data
*
* @copyright Copyright (C) 2010-2012 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
Dict::Add('PT BR', 'Brazilian', 'Brazilian', array('Menu:IncidentManagement' => 'Gerenciamento Incidentes', 'Menu:IncidentManagement+' => 'Gerenciamento Incidentes', 'Menu:Incident:Overview' => 'Visão geral', 'Menu:Incident:Overview+' => 'Visão geral', 'Menu:NewIncident' => 'Novo incidente', 'Menu:NewIncident+' => 'Criar uma novo incidente', 'Menu:SearchIncidents' => 'Pesquisar por incidentes', 'Menu:SearchIncidents+' => 'Pesquisar por solicitações incidentes', 'Menu:Incident:Shortcuts' => 'Atalho', 'Menu:Incident:Shortcuts+' => '', 'Menu:Incident:MyIncidents' => 'Incidentes atribuídos para mim', 'Menu:Incident:MyIncidents+' => 'Incidentes atribuídos para mim (como agente)', 'Menu:Incident:EscalatedIncidents' => 'Incidentes escalados', 'Menu:Incident:EscalatedIncidents+' => 'Incidentes escalados', 'Menu:Incident:OpenIncidents' => 'Todos incidentes abertos', 'Menu:Incident:OpenIncidents+' => 'Todos incidentes abertos', 'UI-IncidentManagementOverview-IncidentByPriority-last-14-days' => 'Últimos 14 dias por incidente prioridade', 'UI-IncidentManagementOverview-Last-14-days' => 'Últimos 14 dias por incidente prioridade', 'UI-IncidentManagementOverview-OpenIncidentByStatus' => 'Incidentes abertos por estado', 'UI-IncidentManagementOverview-OpenIncidentByAgent' => 'Incidentes abertos por agentes', 'UI-IncidentManagementOverview-OpenIncidentByCustomer' => 'Incidentes abertos por cliente'));
// Dictionnay conventions
// Class:<class_name>
// Class:<class_name>+
// Class:<class_name>/Attribute:<attribute_code>
// Class:<class_name>/Attribute:<attribute_code>+
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>+
// Class:<class_name>/Stimulus:<stimulus_code>
// Class:<class_name>/Stimulus:<stimulus_code>+
//
// Class: Incident
//
Dict::Add('PT BR', 'Brazilian', 'Brazilian', array('Class:Incident' => 'Incidente', 'Class:Incident+' => '', 'Class:Incident/Attribute:status' => 'Estado', 'Class:Incident/Attribute:status+' => '', 'Class:Incident/Attribute:status/Value:new' => 'Novo', 'Class:Incident/Attribute:status/Value:new+' => '', 'Class:Incident/Attribute:status/Value:escalated_tto' => 'TTO escalado', 'Class:Incident/Attribute:status/Value:escalated_tto+' => '', 'Class:Incident/Attribute:status/Value:assigned' => 'Atribuído', 'Class:Incident/Attribute:status/Value:assigned+' => '', 'Class:Incident/Attribute:status/Value:escalated_ttr' => 'TTR escalado', 'Class:Incident/Attribute:status/Value:escalated_ttr+' => '', 'Class:Incident/Attribute:status/Value:waiting_for_approval' => 'Aguardando aprovação', 'Class:Incident/Attribute:status/Value:waiting_for_approval+' => '', 'Class:Incident/Attribute:status/Value:pending' => 'Pendente', 'Class:Incident/Attribute:status/Value:pending+' => '', 'Class:Incident/Attribute:status/Value:resolved' => 'Resolvido', 'Class:Incident/Attribute:status/Value:resolved+' => '', 'Class:Incident/Attribute:status/Value:closed' => 'Fechado', 'Class:Incident/Attribute:status/Value:closed+' => '', 'Class:Incident/Attribute:impact' => 'Impacto', 'Class:Incident/Attribute:impact+' => '', 'Class:Incident/Attribute:impact/Value:1' => 'Um departamento', 'Class:Incident/Attribute:impact/Value:1+' => '', 'Class:Incident/Attribute:impact/Value:2' => 'Um serviço', 'Class:Incident/Attribute:impact/Value:2+' => '', 'Class:Incident/Attribute:impact/Value:3' => 'Uma pessoa', 'Class:Incident/Attribute:impact/Value:3+' => '', 'Class:Incident/Attribute:priority' => 'Prioridade', 'Class:Incident/Attribute:priority+' => '', 'Class:Incident/Attribute:priority/Value:1' => 'Crítica', 'Class:Incident/Attribute:priority/Value:1+' => 'Crítica', 'Class:Incident/Attribute:priority/Value:2' => 'Alta', 'Class:Incident/Attribute:priority/Value:2+' => 'Alta', 'Class:Incident/Attribute:priority/Value:3' => 'Média', 'Class:Incident/Attribute:priority/Value:3+' => 'Média', 'Class:Incident/Attribute:priority/Value:4' => 'Baixa', 'Class:Incident/Attribute:priority/Value:4+' => 'Baixa', 'Class:Incident/Attribute:urgency' => 'Urgência', 'Class:Incident/Attribute:urgency+' => '', 'Class:Incident/Attribute:urgency/Value:1' => 'Crítica', 'Class:Incident/Attribute:urgency/Value:1+' => 'Crítica', 'Class:Incident/Attribute:urgency/Value:2' => 'Alta', 'Class:Incident/Attribute:urgency/Value:2+' => 'Alta', 'Class:Incident/Attribute:urgency/Value:3' => 'Média', 'Class:Incident/Attribute:urgency/Value:3+' => 'Média', 'Class:Incident/Attribute:urgency/Value:4' => 'Baixa', 'Class:Incident/Attribute:urgency/Value:4+' => 'Baixa', 'Class:Incident/Attribute:origin' => 'Origem', 'Class:Incident/Attribute:origin+' => '', 'Class:Incident/Attribute:origin/Value:mail' => 'Email', 'Class:Incident/Attribute:origin/Value:mail+' => 'Email', 'Class:Incident/Attribute:origin/Value:monitoring' => 'Monitoramento', 'Class:Incident/Attribute:origin/Value:monitoring+' => 'Monitoramento', 'Class:Incident/Attribute:origin/Value:phone' => 'Telefone', 'Class:Incident/Attribute:origin/Value:phone+' => 'Telefone', 'Class:Incident/Attribute:origin/Value:portal' => 'Portal', 'Class:Incident/Attribute:origin/Value:portal+' => 'Portal', 'Class:Incident/Attribute:service_id' => 'Serviço', 'Class:Incident/Attribute:service_id+' => '', 'Class:Incident/Attribute:service_name' => 'Nome serviço', 'Class:Incident/Attribute:service_name+' => '', 'Class:Incident/Attribute:servicesubcategory_id' => 'Sub-categoria serviço', 'Class:Incident/Attribute:servicesubcategory_id+' => '', 'Class:Incident/Attribute:servicesubcategory_name' => 'Nome Sub-categoria serviço', 'Class:Incident/Attribute:servicesubcategory_name+' => '', 'Class:Incident/Attribute:escalation_flag' => 'Alerta vermelho', 'Class:Incident/Attribute:escalation_flag+' => '', 'Class:Incident/Attribute:escalation_flag/Value:no' => 'Não', 'Class:Incident/Attribute:escalation_flag/Value:no+' => 'Não', 'Class:Incident/Attribute:escalation_flag/Value:yes' => 'Sim', 'Class:Incident/Attribute:escalation_flag/Value:yes+' => 'Sim', 'Class:Incident/Attribute:escalation_reason' => 'Razão alerta', 'Class:Incident/Attribute:escalation_reason+' => '', 'Class:Incident/Attribute:assignment_date' => 'Data atribuição', 'Class:Incident/Attribute:assignment_date+' => '', 'Class:Incident/Attribute:resolution_date' => 'Data resolução', 'Class:Incident/Attribute:resolution_date+' => '', 'Class:Incident/Attribute:last_pending_date' => 'Última data pendente', 'Class:Incident/Attribute:last_pending_date+' => '', 'Class:Incident/Attribute:cumulatedpending' => 'Pendências acumuladas', 'Class:Incident/Attribute:cumulatedpending+' => '', 'Class:Incident/Attribute:tto' => 'TTO', 'Class:Incident/Attribute:tto+' => '', 'Class:Incident/Attribute:ttr' => 'TTR', 'Class:Incident/Attribute:ttr+' => '', 'Class:Incident/Attribute:tto_escalation_deadline' => 'Prazo determinado TTO', 'Class:Incident/Attribute:tto_escalation_deadline+' => '', 'Class:Incident/Attribute:sla_tto_passed' => 'SLA TTO passou', 'Class:Incident/Attribute:sla_tto_passed+' => '', 'Class:Incident/Attribute:sla_tto_over' => 'SLA TTO acima', 'Class:Incident/Attribute:sla_tto_over+' => '', 'Class:Incident/Attribute:ttr_escalation_deadline' => 'Prazo determinado TTR', 'Class:Incident/Attribute:ttr_escalation_deadline+' => '', 'Class:Incident/Attribute:sla_ttr_passed' => 'SLA TTR passou', 'Class:Incident/Attribute:sla_ttr_passed+' => '', 'Class:Incident/Attribute:sla_ttr_over' => 'SLA TTR acima', 'Class:Incident/Attribute:sla_ttr_over+' => '', 'Class:Incident/Attribute:time_spent' => 'Atraso resolução', 'Class:Incident/Attribute:time_spent+' => '', 'Class:Incident/Attribute:resolution_code' => 'Código resolução', 'Class:Incident/Attribute:resolution_code+' => '', 'Class:Incident/Attribute:resolution_code/Value:assistance' => 'Assistência', 'Class:Incident/Attribute:resolution_code/Value:assistance+' => 'Assistência', 'Class:Incident/Attribute:resolution_code/Value:bug fixed' => 'Bug corrigido', 'Class:Incident/Attribute:resolution_code/Value:bug fixed+' => 'Bug corrigido', 'Class:Incident/Attribute:resolution_code/Value:hardware repair' => 'Hardware reparado', 'Class:Incident/Attribute:resolution_code/Value:hardware repair+' => 'Hardware reparado', 'Class:Incident/Attribute:resolution_code/Value:other' => 'Outro', 'Class:Incident/Attribute:resolution_code/Value:other+' => 'Outro', 'Class:Incident/Attribute:resolution_code/Value:software patch' => 'Software patch', 'Class:Incident/Attribute:resolution_code/Value:software patch+' => 'Software patch', 'Class:Incident/Attribute:resolution_code/Value:system update' => 'Atualização sistema', 'Class:Incident/Attribute:resolution_code/Value:system update+' => 'Atualização sistema', 'Class:Incident/Attribute:resolution_code/Value:training' => 'Treinamento', 'Class:Incident/Attribute:resolution_code/Value:training+' => 'Treinamento', 'Class:Incident/Attribute:solution' => 'Solução', 'Class:Incident/Attribute:solution+' => '', 'Class:Incident/Attribute:pending_reason' => 'Razão pendência', 'Class:Incident/Attribute:pending_reason+' => '', 'Class:Incident/Attribute:parent_incident_id' => 'Incidente principal', 'Class:Incident/Attribute:parent_incident_id+' => '', 'Class:Incident/Attribute:parent_incident_ref' => 'Ref Incidente principal', 'Class:Incident/Attribute:parent_incident_ref+' => '', 'Class:Incident/Attribute:parent_problem_id' => 'Problema principal', 'Class:Incident/Attribute:parent_problem_id+' => '', 'Class:Incident/Attribute:parent_problem_ref' => 'Ref problema principal', 'Class:Incident/Attribute:parent_problem_ref+' => '', 'Class:Incident/Attribute:parent_change_id' => 'Mudança principal', 'Class:Incident/Attribute:parent_change_id+' => '', 'Class:Incident/Attribute:parent_change_ref' => 'Ref mudança principal', 'Class:Incident/Attribute:parent_change_ref+' => '', 'Class:Incident/Attribute:child_incidents_list' => 'Sub-Incidentes', 'Class:Incident/Attribute:child_incidents_list+' => 'Todos os sub-incidentes vinculados a esse incidente', 'Class:Incident/Attribute:public_log' => 'Log público', 'Class:Incident/Attribute:public_log+' => '', 'Class:Incident/Attribute:user_satisfaction' => 'Satisfação do usuário', 'Class:Incident/Attribute:user_satisfaction+' => '', 'Class:Incident/Attribute:user_satisfaction/Value:1' => 'Muito satisfeito', 'Class:Incident/Attribute:user_satisfaction/Value:1+' => 'Muito satisfeito', 'Class:Incident/Attribute:user_satisfaction/Value:2' => 'Bastante satisfeito', 'Class:Incident/Attribute:user_satisfaction/Value:2+' => 'Bastante satisfeito', 'Class:Incident/Attribute:user_satisfaction/Value:3' => 'Bastante insatisfeito', 'Class:Incident/Attribute:user_satisfaction/Value:3+' => 'Bastante insatisfeito', 'Class:Incident/Attribute:user_satisfaction/Value:4' => 'Muito insatisfeito', 'Class:Incident/Attribute:user_satisfaction/Value:4+' => 'Muito insatisfeito', 'Class:Incident/Attribute:user_comment' => 'Comentário usuário', 'Class:Incident/Attribute:user_comment+' => '', 'Class:Incident/Attribute:parent_incident_id_friendlyname' => 'parent_incident_id_friendlyname', 'Class:Incident/Attribute:parent_incident_id_friendlyname+' => '', 'Class:Incident/Stimulus:ev_assign' => 'Atribuir', 'Class:Incident/Stimulus:ev_assign+' => '', 'Class:Incident/Stimulus:ev_reassign' => 'Re-atribuir', 'Class:Incident/Stimulus:ev_reassign+' => '', 'Class:Incident/Stimulus:ev_pending' => 'Pendente', 'Class:Incident/Stimulus:ev_pending+' => '', 'Class:Incident/Stimulus:ev_timeout' => 'Timeout', 'Class:Incident/Stimulus:ev_timeout+' => '', 'Class:Incident/Stimulus:ev_autoresolve' => 'Resolvido automaticamente', 'Class:Incident/Stimulus:ev_autoresolve+' => '', 'Class:Incident/Stimulus:ev_autoclose' => 'Fechado automaticamente', 'Class:Incident/Stimulus:ev_autoclose+' => '', 'Class:Incident/Stimulus:ev_resolve' => 'Marcar como resolvido', 'Class:Incident/Stimulus:ev_resolve+' => '', 'Class:Incident/Stimulus:ev_close' => 'Fechar esta solicitação', 'Class:Incident/Stimulus:ev_close+' => '', 'Class:Incident/Stimulus:ev_reopen' => 'Re-abrir', 'Class:Incident/Stimulus:ev_reopen+' => '', 'Class:Incident/Error:CannotAssignParentIncidentIdToSelf' => 'Não é possível atribuir o incidente principal ao próprio incidente', 'Class:Incident/Attribute:related_request_list' => 'Child requests~~', 'Class:Incident/Method:ResolveChildTickets' => 'ResolveChildTickets~~', 'Class:Incident/Method:ResolveChildTickets+' => 'Cascade the resolution to child ticket (ev_autoresolve), and align the following characteristics: service, team, agent, resolution info~~', 'Tickets:Related:OpenIncidents' => 'Open incidents~~'));
示例11: array
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:SLA' => 'SLA', 'Class:SLA+' => '', 'Class:SLA/Attribute:name' => 'Naam', 'Class:SLA/Attribute:name+' => '', 'Class:SLA/Attribute:description' => 'omschrijving', 'Class:SLA/Attribute:description+' => '', 'Class:SLA/Attribute:org_id' => 'Provider', 'Class:SLA/Attribute:org_id+' => '', 'Class:SLA/Attribute:organization_name' => 'Leveranciers Naam', 'Class:SLA/Attribute:organization_name+' => 'Gemeenschappelijke naam', 'Class:SLA/Attribute:slts_list' => 'SLTs', 'Class:SLA/Attribute:slts_list+' => 'Alle service level doelstellingen voor deze SLA', 'Class:SLA/Attribute:customercontracts_list' => 'Klant contracten', 'Class:SLA/Attribute:customercontracts_list+' => 'Alle klant contracten die gebruik maken van deze SLA'));
//
// Class: SLT
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:SLT' => 'SLT', 'Class:SLT+' => '', 'Class:SLT/Attribute:name' => 'Naam', 'Class:SLT/Attribute:name+' => '', 'Class:SLT/Attribute:priority' => 'Prioriteit', 'Class:SLT/Attribute:priority+' => '', 'Class:SLT/Attribute:priority/Value:1' => 'kritisch', 'Class:SLT/Attribute:priority/Value:1+' => 'kritisch', 'Class:SLT/Attribute:priority/Value:2' => 'hoog', 'Class:SLT/Attribute:priority/Value:2+' => 'hoog', 'Class:SLT/Attribute:priority/Value:3' => 'normaal', 'Class:SLT/Attribute:priority/Value:3+' => 'normaal', 'Class:SLT/Attribute:priority/Value:4' => 'laag', 'Class:SLT/Attribute:priority/Value:4+' => 'laag', 'Class:SLT/Attribute:request_type' => 'Verzoek type', 'Class:SLT/Attribute:request_type+' => '', 'Class:SLT/Attribute:request_type/Value:incident' => 'incident', 'Class:SLT/Attribute:request_type/Value:incident+' => 'incident', 'Class:SLT/Attribute:request_type/Value:service_request' => 'service request', 'Class:SLT/Attribute:request_type/Value:service_request+' => 'service request', 'Class:SLT/Attribute:metric' => 'Metric', 'Class:SLT/Attribute:metric+' => '', 'Class:SLT/Attribute:metric/Value:tto' => 'TTO', 'Class:SLT/Attribute:metric/Value:tto+' => 'TTO', 'Class:SLT/Attribute:metric/Value:ttr' => 'TTR', 'Class:SLT/Attribute:metric/Value:ttr+' => 'TTR', 'Class:SLT/Attribute:value' => 'Waarde', 'Class:SLT/Attribute:value+' => '', 'Class:SLT/Attribute:unit' => 'Eenheid', 'Class:SLT/Attribute:unit+' => '', 'Class:SLT/Attribute:unit/Value:hours' => 'uren', 'Class:SLT/Attribute:unit/Value:hours+' => 'uren', 'Class:SLT/Attribute:unit/Value:minutes' => 'minuten', 'Class:SLT/Attribute:unit/Value:minutes+' => 'minuten'));
//
// Class: lnkSLAToSLT
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:lnkSLAToSLT' => 'Link SLA / SLT', 'Class:lnkSLAToSLT+' => '', 'Class:lnkSLAToSLT/Attribute:sla_id' => 'SLA', 'Class:lnkSLAToSLT/Attribute:sla_id+' => '', 'Class:lnkSLAToSLT/Attribute:sla_name' => 'SLA Naam', 'Class:lnkSLAToSLT/Attribute:sla_name+' => '', 'Class:lnkSLAToSLT/Attribute:slt_id' => 'SLT', 'Class:lnkSLAToSLT/Attribute:slt_id+' => '', 'Class:lnkSLAToSLT/Attribute:slt_name' => 'SLT Naam', 'Class:lnkSLAToSLT/Attribute:slt_name+' => ''));
//
// Class: lnkCustomerContractToService
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:lnkCustomerContractToService' => 'Link Customer Contract / Dienst', 'Class:lnkCustomerContractToService+' => '', 'Class:lnkCustomerContractToService/Attribute:customercontract_id' => 'Klant contract', 'Class:lnkCustomerContractToService/Attribute:customercontract_id+' => '', 'Class:lnkCustomerContractToService/Attribute:customercontract_name' => 'Klant contract Name', 'Class:lnkCustomerContractToService/Attribute:customercontract_name+' => '', 'Class:lnkCustomerContractToService/Attribute:service_id' => 'Dienst', 'Class:lnkCustomerContractToService/Attribute:service_id+' => '', 'Class:lnkCustomerContractToService/Attribute:service_name' => 'Dienst Naam', 'Class:lnkCustomerContractToService/Attribute:service_name+' => '', 'Class:lnkCustomerContractToService/Attribute:sla_id' => 'SLA', 'Class:lnkCustomerContractToService/Attribute:sla_id+' => '', 'Class:lnkCustomerContractToService/Attribute:sla_name' => 'SLA Naam', 'Class:lnkCustomerContractToService/Attribute:sla_name+' => ''));
//
// Class: lnkCustomerContractToProviderContract
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:lnkCustomerContractToProviderContract' => 'Link Klant Contract / Leveranciers Contract', 'Class:lnkCustomerContractToProviderContract+' => '', 'Class:lnkCustomerContractToProviderContract/Attribute:customercontract_id' => 'Leveranciers contract', 'Class:lnkCustomerContractToProviderContract/Attribute:customercontract_id+' => '', 'Class:lnkCustomerContractToProviderContract/Attribute:customercontract_name' => 'Klant contract Naam', 'Class:lnkCustomerContractToProviderContract/Attribute:customercontract_name+' => '', 'Class:lnkCustomerContractToProviderContract/Attribute:providercontract_id' => 'Leveranciers contract', 'Class:lnkCustomerContractToProviderContract/Attribute:providercontract_id+' => '', 'Class:lnkCustomerContractToProviderContract/Attribute:providercontract_name' => 'Leveranciers contract Naam', 'Class:lnkCustomerContractToProviderContract/Attribute:providercontract_name+' => ''));
//
// Class: lnkCustomerContractToFunctionalCI
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:lnkCustomerContractToFunctionalCI' => 'Link Klant Contract / FunctioneleCI', 'Class:lnkCustomerContractToFunctionalCI+' => '', 'Class:lnkCustomerContractToFunctionalCI/Attribute:customercontract_id' => 'Klant contract', 'Class:lnkCustomerContractToFunctionalCI/Attribute:customercontract_id+' => '', 'Class:lnkCustomerContractToFunctionalCI/Attribute:customercontract_name' => 'Klant contract Naam', 'Class:lnkCustomerContractToFunctionalCI/Attribute:customercontract_name+' => '', 'Class:lnkCustomerContractToFunctionalCI/Attribute:functionalci_id' => 'CI', 'Class:lnkCustomerContractToFunctionalCI/Attribute:functionalci_id+' => '', 'Class:lnkCustomerContractToFunctionalCI/Attribute:functionalci_name' => 'CI Naam', 'Class:lnkCustomerContractToFunctionalCI/Attribute:functionalci_name+' => ''));
//
// Class: DeliveryModel
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:DeliveryModel' => 'Delivery Model', 'Class:DeliveryModel+' => '', 'Class:DeliveryModel/Attribute:name' => 'Naam', 'Class:DeliveryModel/Attribute:name+' => '', 'Class:DeliveryModel/Attribute:org_id' => 'Organisatie', 'Class:DeliveryModel/Attribute:org_id+' => '', 'Class:DeliveryModel/Attribute:organization_name' => 'Organisatie Naam', 'Class:DeliveryModel/Attribute:organization_name+' => 'Gemeenschappelijke naam', 'Class:DeliveryModel/Attribute:description' => 'Omschrijving', 'Class:DeliveryModel/Attribute:description+' => '', 'Class:DeliveryModel/Attribute:contacts_list' => 'Contacten', 'Class:DeliveryModel/Attribute:contacts_list+' => 'Alle contacten (Teams en Personen) voor dit delivery model', 'Class:DeliveryModel/Attribute:customers_list' => 'Klanten', 'Class:DeliveryModel/Attribute:customers_list+' => 'Alle klanten die gebruik maken van dit delivering model'));
//
// Class: lnkDeliveryModelToContact
//
Dict::Add('NL NL', 'Dutch', 'Nederlands', array('Class:lnkDeliveryModelToContact' => 'Link Delivery Model / Contact', 'Class:lnkDeliveryModelToContact+' => '', 'Class:lnkDeliveryModelToContact/Attribute:deliverymodel_id' => 'Delivery model', 'Class:lnkDeliveryModelToContact/Attribute:deliverymodel_id+' => '', 'Class:lnkDeliveryModelToContact/Attribute:deliverymodel_name' => 'Delivery model naam', 'Class:lnkDeliveryModelToContact/Attribute:deliverymodel_name+' => '', 'Class:lnkDeliveryModelToContact/Attribute:contact_id' => 'Contact', 'Class:lnkDeliveryModelToContact/Attribute:contact_id+' => '', 'Class:lnkDeliveryModelToContact/Attribute:contact_name' => 'Contact naam', 'Class:lnkDeliveryModelToContact/Attribute:contact_name+' => '', 'Class:lnkDeliveryModelToContact/Attribute:role_id' => 'Rol', 'Class:lnkDeliveryModelToContact/Attribute:role_id+' => '', 'Class:lnkDeliveryModelToContact/Attribute:role_name' => 'Rol naam', 'Class:lnkDeliveryModelToContact/Attribute:role_name+' => '', 'Class:CustomerContract/Attribute:functionalcis_list' => 'CIs~~', 'Class:CustomerContract/Attribute:functionalcis_list+' => 'All the configuration items covered by this contract~~', 'Class:CustomerContract/Attribute:providercontracts_list' => 'Provider contracts~~', 'Class:CustomerContract/Attribute:providercontracts_list+' => 'All the provider contracts to deliver the services for this contract (underpinning contract)~~', 'Class:ServiceSubcategory/Attribute:service_provider' => 'Provider Name~~', 'Class:ServiceSubcategory/Attribute:service_org_id' => 'Provider~~'));
示例12: GetLabel
public function GetLabel()
{
return Dict::S('portal:' . $this->sPortalid);
}
示例13: array
// (at your option) any later version.
//
// iTop is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with iTop. If not, see <http://www.gnu.org/licenses/>
/**
* Localized data.
*
* @author Lukáš Dvořák <lukas.dvorak@itopportal.cz>
* @author Daniel Rokos <daniel.rokos@itopportal.cz>
* @copyright Copyright (C) 2010-2014 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
// Dictionnay conventions
// Class:<class_name>
// Class:<class_name>+
// Class:<class_name>/Attribute:<attribute_code>
// Class:<class_name>/Attribute:<attribute_code>+
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>+
// Class:<class_name>/Stimulus:<stimulus_code>
// Class:<class_name>/Stimulus:<stimulus_code>+
//
// Class: UserExternal
//
Dict::Add('CS CZ', 'Czech', 'Čeština', array('Class:UserExternal' => 'Externí uživatel', 'Class:UserExternal+' => 'Uživatel definovaný mimo iTop'));
示例14: array
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// iTop is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with iTop. If not, see <http://www.gnu.org/licenses/>
/**
* Localized data
*
* @author Hirofumi Kosaka <kosaka@rworks.jp>
* @copyright Copyright (C) 2010-2012 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
// Dictionnay conventions
// Class:<class_name>
// Class:<class_name>+
// Class:<class_name>/Attribute:<attribute_code>
// Class:<class_name>/Attribute:<attribute_code>+
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>+
// Class:<class_name>/Stimulus:<stimulus_code>
// Class:<class_name>/Stimulus:<stimulus_code>+
//
// Class: UserExternal
//
Dict::Add('JA JP', 'Japanese', '日本語', array('Class:UserExternal' => '外部ユーザー', 'Class:UserExternal+' => '外部認証ユーザー'));
示例15: array
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// iTop is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with iTop. If not, see <http://www.gnu.org/licenses/>
/**
* Localized data
*
* @author Vladimir Shilov <shilow@ukr.net>
* @copyright Copyright (C) 2010-2012 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
// Dictionnay conventions
// Class:<class_name>
// Class:<class_name>+
// Class:<class_name>/Attribute:<attribute_code>
// Class:<class_name>/Attribute:<attribute_code>+
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>
// Class:<class_name>/Attribute:<attribute_code>/Value:<value>+
// Class:<class_name>/Stimulus:<stimulus_code>
// Class:<class_name>/Stimulus:<stimulus_code>+
//
// Class: UserExternal
//
Dict::Add('RU RU', 'Russian', 'Русский', array('Class:UserExternal' => 'Внешний пользователь', 'Class:UserExternal+' => 'Пользователь аутентифицированный вне iTop'));