本文整理汇总了PHP中Log::showForItem方法的典型用法代码示例。如果您正苦于以下问题:PHP Log::showForItem方法的具体用法?PHP Log::showForItem怎么用?PHP Log::showForItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Log
的用法示例。
在下文中一共展示了Log::showForItem方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
You should have received a copy of the GNU General Public License
along with GLPI; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file:
// Purpose of file:
// ----------------------------------------------------------------------
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
checkRight("config", 'r');
if (isset($_POST['id']) && $_POST['id'] > 0) {
if (!isset($_REQUEST['glpi_tab'])) {
exit;
}
$translation = new NotificationTemplateTranslation();
$translation->getFromDB($_POST['id']);
switch ($_REQUEST['glpi_tab']) {
case 12:
Log::showForItem($translation);
break;
default:
if (!Plugin::displayAction($translation, $_REQUEST['glpi_tab'])) {
}
}
}
ajaxFooter();
示例2: switch
switch ($_REQUEST['glpi_tab']) {
case -1:
$budget->showValuesByEntity();
$budget->showItems();
Document::showAssociated($budget);
Link::showForItem('Budget', $_POST["id"]);
Plugin::displayAction($budget, $_REQUEST['glpi_tab'], $_POST["withtemplate"]);
break;
case 2:
$budget->showItems();
break;
case 5:
Document::showAssociated($budget);
break;
case 7:
Link::showForItem('Budget', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Budget', $_POST["id"]);
break;
case 12:
Log::showForItem($budget);
break;
default:
if (!Plugin::displayAction($budget, $_REQUEST['glpi_tab'], $_POST["withtemplate"])) {
$budget->showValuesByEntity();
}
break;
}
}
ajaxFooter();
示例3: switch
}
}
} else {
switch ($_REQUEST['glpi_tab']) {
case -1:
$prof->showFormInventory($_POST['target'], true, false);
$prof->showFormTracking($_POST['target'], false, false);
$prof->showFormAdmin($_POST['target'], false, true);
Profile_User::showForProfile($prof);
Plugin::displayAction($prof, $_REQUEST['glpi_tab']);
break;
case 2:
$prof->showFormTracking($_POST['target']);
break;
case 3:
$prof->showFormAdmin($_POST['target']);
break;
case 4:
Profile_User::showForProfile($prof);
break;
case 12:
Log::showForItem($prof);
break;
default:
if (!Plugin::displayAction($prof, $_REQUEST['glpi_tab'])) {
$prof->showFormInventory($_POST['target']);
}
}
}
}
ajaxFooter();
示例4:
$authldap->showFormUserConfig($_POST['id'], $_POST['target']);
$authldap->showFormGroupsConfig($_POST['id'], $_POST['target']);
$authldap->showFormAdvancedConfig($_POST['id'], $_POST['target']);
$authldap->showFormReplicatesConfig($_POST['id'], $_POST['target']);
Log::showForItem($authldap);
break;
case 2:
$authldap->showFormUserConfig($_POST['id'], $_POST['target']);
break;
case 3:
$authldap->showFormGroupsConfig($_POST['id'], $_POST['target']);
break;
case 4:
$authldap->showFormEntityConfig($_POST['id'], $_POST['target']);
break;
case 5:
$authldap->showFormAdvancedConfig($_POST['id'], $_POST['target']);
break;
case 6:
$authldap->showFormReplicatesConfig($_POST['id'], $_POST['target']);
break;
case 12:
Log::showForItem($authldap);
break;
default:
if (!Plugin::displayAction($authldap, $_REQUEST['glpi_tab'])) {
$authldap->showFormTestLDAP($_POST['id'], $_POST['target']);
}
}
}
ajaxFooter();
示例5: displayMoreTabs
/**
* Display more tabs
*
* @param $tab
**/
function displayMoreTabs($tab)
{
switch ($tab) {
case 1:
self::showActions($this);
break;
case 3:
$this->displayOcsConsole();
break;
case 12:
Log::showForItem($this);
break;
case -1:
self::showActions($this);
Log::showForItem($this);
break;
}
}
示例6: define
// ----------------------------------------------------------------------
// Original Author of file: Julien Dombre
// Purpose of file:
// ----------------------------------------------------------------------
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
if (!isset($_POST['id'])) {
exit;
}
$slalevel = new SlaLevel();
if ($_POST['id'] > 0 && $slalevel->can($_POST['id'], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$slalevel->getRuleWithCriteriasAndActions($_POST['id'], 0, 1);
$slalevel->showActionsList($_POST["id"]);
break;
case 1:
$slalevel->getRuleWithCriteriasAndActions($_POST['id'], 0, 1);
$slalevel->showActionsList($_POST["id"]);
break;
case 12:
Log::showForItem($slalevel);
break;
default:
if (!Plugin::displayAction($slalevel, $_REQUEST['glpi_tab'])) {
}
}
}
ajaxFooter();
示例7: switch
if ($_POST['id'] > 0 && $contract->can($_POST['id'], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$contract->showSuppliers();
$contract->showItems();
Document::showAssociated($contract);
Link::showForItem('Contact', $_POST["id"]);
Plugin::displayAction($contract, $_REQUEST['glpi_tab']);
break;
case 2:
$contract->showItems();
break;
case 5:
Document::showAssociated($contract);
break;
case 7:
Link::showForItem('Contract', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Contract', $_POST["id"]);
break;
case 12:
Log::showForItem($contract);
break;
default:
if (!Plugin::displayAction($contract, $_REQUEST['glpi_tab'])) {
$contract->showSuppliers();
}
}
}
ajaxFooter();
示例8: checkRight
exit;
}
if (!isset($_REQUEST['glpi_tab'])) {
exit;
}
checkRight("ocsng", "w");
$ocs = new OcsServer();
if ($_POST["id"] > 0 && $ocs->can($_POST["id"], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$ocs->showDBConnectionStatus($_POST["id"]);
$ocs->ocsFormImportOptions($_POST['target'], $_POST["id"]);
$ocs->ocsFormConfig($_POST['target'], $_POST["id"]);
Plugin::displayAction($ocs, $_REQUEST['glpi_tab']);
break;
case 2:
$ocs->ocsFormImportOptions($_POST['target'], $_POST["id"]);
break;
case 3:
$ocs->ocsFormConfig($_POST['target'], $_POST["id"]);
break;
case 12:
Log::showForItem($ocs);
break;
default:
if (!Plugin::displayAction($ocs, $_REQUEST['glpi_tab'])) {
$ocs->showDBConnectionStatus($_POST["id"]);
}
}
}
ajaxFooter();
示例9: showNotesForm
case 4:
Infocom::showForItem($printer);
Contract::showAssociated($printer);
break;
case 5:
Document::showAssociated($printer);
break;
case 6:
Ticket::showListForItem('Printer', $_POST["id"]);
break;
case 7:
Link::showForItem('Printer', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Printer', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Printer', $_POST["id"]);
break;
case 12:
Log::showForItem($printer);
break;
default:
if (!Plugin::displayAction($printer, $_REQUEST['glpi_tab'])) {
Cartridge::showInstalled($printer);
Cartridge::showInstalled($printer, 1);
}
}
}
}
ajaxFooter();
示例10: showNotesForm
Link::showForItem('Supplier', $_POST["id"]);
Plugin::displayAction($supplier, $_REQUEST['glpi_tab']);
break;
case 4:
$supplier->showContracts();
break;
case 5:
Document::showAssociated($supplier);
break;
case 6:
Ticket::showListForSupplier($_POST["id"]);
break;
case 7:
Link::showForItem('Supplier', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Supplier', $_POST["id"]);
break;
case 12:
Log::showForItem($supplier);
break;
case 15:
$supplier->showInfocoms();
break;
default:
if (!Plugin::displayAction($supplier, $_REQUEST['glpi_tab'])) {
$supplier->showContacts();
}
}
}
ajaxFooter();
示例11: showNotesForm
break;
case 5:
Document::showAssociated($soft);
break;
case 6:
Ticket::showListForItem('Software', $_POST["id"]);
break;
case 7:
Link::showForItem('Software', $_POST["id"]);
break;
case 10:
showNotesForm($_POST['target'], 'Software', $_POST["id"]);
break;
case 11:
Reservation::showForItem('Software', $_POST["id"]);
break;
case 12:
Log::showForItem($soft);
break;
case 21:
$soft->showMergeCandidates();
break;
default:
if (!Plugin::displayAction($soft, $_REQUEST['glpi_tab'])) {
SoftwareVersion::showForSoftware($soft);
SoftwareLicense::showForSoftware($soft);
}
}
}
}
ajaxFooter();
示例12: header_nocache
header_nocache();
if (!isset($_POST["id"])) {
exit;
}
if (!isset($_REQUEST['glpi_tab'])) {
exit;
}
$doc = new Document();
if ($_POST["id"] > 0 && $doc->can($_POST["id"], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$doc->showItems();
Document::showAssociated($doc);
Plugin::displayAction($doc, $_REQUEST['glpi_tab']);
break;
case 5:
Document::showAssociated($doc);
break;
case 10:
showNotesForm($_POST['target'], 'Document', $_POST["id"]);
break;
case 12:
Log::showForItem($doc);
break;
default:
if (!Plugin::displayAction($doc, $_REQUEST['glpi_tab'])) {
$doc->showItems();
}
}
}
ajaxFooter();
示例13: header
include GLPI_ROOT . "/inc/includes.php";
header("Content-Type: text/html; charset=UTF-8");
header_nocache();
$notification = new Notification();
if (isset($_POST['id']) && $_POST['id'] > 0 && $notification->can($_POST['id'], 'r')) {
if (!isset($_REQUEST['glpi_tab'])) {
exit;
}
$target = NotificationTarget::getInstanceByType($notification->getField('itemtype'), $notification->getField('event'), array('entities_id' => $notification->getField('entities_id')));
switch ($_REQUEST['glpi_tab']) {
case -1:
if ($target) {
$target->showForNotification($notification);
}
Plugin::displayAction($notification, $_REQUEST['glpi_tab']);
break;
case 1:
if ($target) {
$target->showForNotification($notification);
}
break;
case 12:
$notification->getFromDB($_POST["id"]);
Log::showForItem($notification);
break;
default:
if (!Plugin::displayAction($notification, $_REQUEST['glpi_tab'])) {
}
}
}
ajaxFooter();
示例14: switch
// ----------------------------------------------------------------------
// Original Author of file: Julien Dombre
// Purpose of file:
// ----------------------------------------------------------------------
if (!isset($_POST['id'])) {
exit;
}
if (!isset($_REQUEST['glpi_tab'])) {
exit;
}
if ($_POST['id'] > 0 && $rule->can($_POST['id'], 'r')) {
switch ($_REQUEST['glpi_tab']) {
case -1:
$rule->getRuleWithCriteriasAndActions($_POST['id'], 1, 1);
$rule->showCriteriasList($_POST["id"]);
$rule->showActionsList($_POST["id"]);
break;
case 1:
$rule->getRuleWithCriteriasAndActions($_POST['id'], 1, 1);
$rule->showCriteriasList($_POST["id"]);
$rule->showActionsList($_POST["id"]);
break;
case 12:
Log::showForItem($rule);
break;
default:
if (!Plugin::displayAction($rule, $_REQUEST['glpi_tab'])) {
}
}
}
ajaxFooter();
示例15: Config
break;
case 3:
Ticket::showListForUser($_POST["id"]);
break;
case 4:
Group_User::showForUser($user);
break;
case 5:
Document::showAssociated($user);
break;
case 6:
$config = new Config();
$user->computePreferences();
$config->showFormUserPrefs($user->fields);
break;
case 11:
Reservation::showForUser($_POST["id"]);
break;
case 12:
Auth::showSynchronizationForm($_POST["id"]);
break;
case 13:
Log::showForItem($user);
break;
default:
if (!Plugin::displayAction($user, $_REQUEST['glpi_tab'])) {
Profile_User::showForUser($user);
}
}
}
ajaxFooter();