本文整理汇总了PHP中CommonGLPI::getField方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonGLPI::getField方法的具体用法?PHP CommonGLPI::getField怎么用?PHP CommonGLPI::getField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonGLPI
的用法示例。
在下文中一共展示了CommonGLPI::getField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
global $CFG_GLPI;
if ($item->getType() == 'Profile') {
$prof = new self();
self::addDefaultProfileInfos($item->getField('id'), array('plugin_racks' => 0, 'plugin_racks_model' => 0, 'plugin_racks_open_ticket' => 0));
$prof->showForm($item->getField('id'));
}
return true;
}
示例2: displayTabContentForItem
/**
* Fonction native GLPI
* @param CommonGLPI $item
* @param int $tabnum
* @param int $withtemplate
* @return boolean
*/
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == 'Computer' || $item->getType() == 'Monitor') {
if (Session::haveRightsOr('plugin_reforme_reforme', array(CREATE))) {
$reforme = new self();
$ID = $item->getField('id');
$Name = $item->getField('name');
// j'affiche le formulaire
$reforme->showForm($ID, $item->getType());
}
}
}
示例3: displayTabContentForItem
/**
* Fonction native GLPI
* @param CommonGLPI $item
* @param int $tabnum
* @param int $withtemplate
* @return boolean
*/
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == 'Computer') {
if (Session::haveRight('plugin_twins_twins', CREATE)) {
$groupeAD = new self();
$ID = $item->getField('id');
$Name = $item->getField('name');
// j'affiche le formulaire
$groupeAD->showForm($ID, $Name);
}
}
return true;
}
示例4: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
global $CFG_GLPI;
if ($item->getType() == 'Profile') {
$ID = $item->getField('id');
$prof = new self();
if (!$prof->getFromDBByProfile($item->getField('id'))) {
$prof->createAccess($item->getField('id'));
}
$prof->showForm($item->getField('id'), array('target' => $CFG_GLPI["root_doc"] . "/plugins/mreporting/front/profile.form.php"));
}
return true;
}
示例5: displayTabContentForItem
/**
* Fonction native GLPI
* @param CommonGLPI $item
* @param int $tabnum
* @param int $withtemplate
* @return boolean
*/
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == 'Computer') {
$profile = new PluginGroupeadProfileold();
if ($profile->estAutorise()) {
$groupeAD = new self();
$ID = $item->getField('id');
$Name = $item->getField('name');
// j'affiche le formulaire
$groupeAD->showForm($ID, $Name);
}
}
return true;
}
示例6: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == 'Profile') {
$prof = new self();
$ID = $item->getField('id');
$name = $item->getField('name');
// si le profil n'existe pas dans la base, je l'ajoute
if (!$prof->GetfromDB($ID)) {
$prof->createAccess($ID, $name);
}
// j'affiche le formulaire
$prof->showForm($ID);
}
return true;
}
示例7: getTabNameForItem
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
return PluginShellcommandsShellcommand::getTypeName(2);
}
return '';
}
示例8: getTabNameForItem
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
return PluginEnvironmentDisplay::getTypeName(1);
}
return '';
}
示例9: getTabNameForItem
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
return __('More ticket', 'moreticket');
}
return '';
}
示例10: getTabNameForItem
/**
* @see inc/CommonGLPI::getTabNameForItem()
**/
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
return __('OCSNG', 'ocsinventoryng');
}
return '';
}
示例11: getTabNameForItem
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if ($item->getType() == 'CronTask' && $item->getField('name') == "DomainsAlert") {
return __('Plugin Setup', 'domains');
}
return '';
}
示例12: getTabNameForItem
function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
{
if ($item->getType() == 'Profile' && $item->getField('interface') != 'helpdesk') {
return PluginFinancialreportsFinancialreport::getTypeName();
}
return '';
}
示例13: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == 'PluginResourcesResource') {
$self = new self();
$self->showItemHelpdesk($item->getField('id'), 0, $withtemplate);
}
return true;
}
示例14: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
if ($item->getType() == 'Supplier') {
$self = new self();
$self->showPluginFromSupplier($item->getField('id'));
}
return true;
}
示例15: displayTabContentForItem
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{
global $CFG_GLPI;
$self = new self();
if (in_array($item->getType(), self::getModelClasses(true))) {
$self->showForm("", array('items_id' => $item->getField('id'), 'itemtype' => get_class($item), 'target' => $CFG_GLPI['root_doc'] . "/plugins/racks/front/itemspecification.form.php"));
}
return true;
}