• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_namelist_from_objectlist函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_namelist_from_objectlist函数的典型用法代码示例。如果您正苦于以下问题:PHP get_namelist_from_objectlist函数的具体用法?PHP get_namelist_from_objectlist怎么用?PHP get_namelist_from_objectlist使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_namelist_from_objectlist函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: storeinGblvariables

function storeinGblvariables()
{
    global $gbl, $sgbl, $login, $ghtml;
    return;
    $firstofmonth = @mktime(00, 01, 00, @date("n"), 1, @date("Y"));
    $today = time() + 2 * 24 * 60 * 60;
    $vpslist = $login->loadAllVps();
    $vpslist = $login->getList('vps');
    if ($vpslist) {
        foreach ($vpslist as $vps) {
            $vpst = $vps->getList("vpstraffic");
            $list = get_namelist_from_objectlist($vpst);
            $total[$vps->getClName()] = trafficGetIndividualObjectTotal($vpst, $firstofmonth, $today, $vps->nname);
            list($month, $year) = get_last_month_and_year();
            $last_traffic = VpstrafficHistory::getMonthTotal($vpst, $month, $year, null);
            if (!isset($sgbl->__var_traffic_last_usage)) {
                $sgbl->__var_traffic_last_usage = null;
            }
            $sgbl->__var_traffic_last_usage[$vps->getClName()] = $last_traffic['traffic_usage'];
            /*
            	try {
            		$sgbl->__var_backupdisk_usage[$vps->getClName()] = rl_exec_get(null, $vps->syncserver, array("vps", "getBackupDiskSize"), array($vps->nname));
            	} catch (Exception $e) {
            		$sgbl->__var_backupdisk_usage[$vps->getClName()] = null;
            	}
            */
        }
    }
    //dprintr($sgbl->__var_backupdisk_usage);
    $sgbl->__var_traffic_usage = $total;
    dprintr($sgbl->__var_traffic_last_usage);
}
开发者ID:digideskio,项目名称:hypervm,代码行数:32,代码来源:collectquota.php


示例2: getTrafficMonthly

 static function getTrafficMonthly($object, $trafficname, $extra_var)
 {
     $tobjectlist = $object->getList($trafficname);
     if (!$tobjectlist) {
         return null;
     }
     $list1 = get_namelist_from_objectlist($tobjectlist);
     $list = lx_array_keys($list1);
     list(, $start, ) = explode(':', $list[0]);
     $count = count($list);
     list(, , $end) = explode(':', $list[$count - 1]);
     $smonth = @strftime("%m", $start);
     $emonth = @strftime("%m", $end);
     $name = $object->nname;
     $month = @date("n");
     $year = @date("Y");
     $count = 0;
     while ($count < 13) {
         $totallist[] = self::getMonthTotal($tobjectlist, $month, $year, $extra_var);
         if ($month == 1) {
             $month = 12;
             $year--;
         } else {
             $month--;
         }
         $count++;
     }
     return $totallist;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:29,代码来源:traffichistorylib.php


示例3: getTrafficMonthly

 static function getTrafficMonthly($object, $trafficname, $extra_var)
 {
     $tobjectlist = $object->getList($trafficname);
     if (!$tobjectlist) {
         return null;
     }
     $list1 = get_namelist_from_objectlist($tobjectlist);
     $list = lx_array_keys($list1);
     list(, $start, ) = explode(':', $list[0]);
     $count = count($list);
     list(, , $end) = explode(':', $list[$count - 1]);
     $smonth = @strftime("%m", $start);
     $emonth = @strftime("%m", $end);
     $name = $object->nname;
     $thmonth = @date("n");
     $year = @date("Y");
     $count = 0;
     for ($i = $thmonth; $i != $thmonth + 1;) {
         $count++;
         if ($count > 14) {
             break;
         }
         $totallist[] = self::getMonthTotal($tobjectlist, $i, $year, $extra_var);
         if ($i == 1) {
             $i = 13;
             $year = $year - 1;
         }
         $i--;
     }
     return $totallist;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:31,代码来源:traffichistorylib.php


示例4: getExtraP

 function getExtraP($class, $list)
 {
     $res = rl_exec_get(null, $this->nname, array("dirlocation__linux", "getSizeForAll"), array(get_namelist_from_objectlist($list)));
     foreach ($res as $k => $v) {
         $list[$k]->diskfree = $v;
     }
     return $list;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:8,代码来源:dirlocationlib.php


示例5: get_slave_list

 static function get_slave_list()
 {
     global $gbl, $sgbl, $login, $ghtml;
     $list = $login->getList('pserver');
     $list = get_namelist_from_objectlist($list);
     $list = add_disabled($list);
     return $list;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:8,代码来源:centralbackupserver.php


示例6: createListSlist

 static function createListSlist($parent)
 {
     $list = get_namelist_from_objectlist($parent->getList('datacenter'));
     $clist[] = '__any__';
     $clist = lx_merge_good($clist, $list);
     $nlist['nname'] = null;
     $nlist['datacenter'] = array('s', $clist);
     return $nlist;
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:9,代码来源:pserverlib.php


示例7: addform

 static function addform($parent, $class, $typetd = null)
 {
     if ($parent->isClient()) {
         $list = get_namelist_from_objectlist($parent->getList('domain'));
         $vv = array('var' => 'real_clparent_f', 'val' => array('s', $list));
         $vlist['nname'] = array('m', array('posttext' => "@", 'postvar' => $vv));
     } else {
         $vlist['nname'] = array('m', array('posttext' => "@{$parent->nname}"));
     }
     if ($typetd['val'] === 'alias') {
         $mlist = get_namelist_from_objectlist($parent->getList('mailaccount'));
         $vlist['forwardaddress'] = array('s', $mlist);
     } else {
         $vlist['forwardaddress'] = null;
     }
     $ret['variable'] = $vlist;
     $ret['action'] = 'add';
     return $ret;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:19,代码来源:mailforwardlib.php


示例8: addform

 static function addform($parent, $class, $typetd = null)
 {
     global $gbl, $sgbl, $login, $ghtml;
     if ($login->isAdmin()) {
         $vlist['__m_message_pre'] = "ftpuser_admin";
     }
     $char = "@";
     $dlist = get_namelist_from_objectlist($parent->getList('domain'));
     if ($login->isAdmin()) {
         $dlist = lx_array_merge(array(array("--direct--"), $dlist));
     }
     $vv = array('var' => 'complete_name_f', 'val' => array('s', $dlist));
     $vlist['nname'] = array('m', array('posttext' => "{$char}", 'postvar' => $vv));
     $vlist['password'] = "";
     $vlist['directory'] = array('L', array('pretext' => "/home/{$parent->nname}/"));
     $vlist['ftp_disk_usage'] = null;
     $ret['variable'] = $vlist;
     $ret['action'] = "add";
     return $ret;
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:20,代码来源:ftpuserlib.php


示例9: updateform

 function updateform($subaction, $param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $driverapp = $gbl->getSyncClass($this->__masterserver, $this->__readserver, 'web');
     /*
     	if ($this->getParentO()->is__table('ipaddress')) {
     		$vlist['__m_message_pre'] = 'sslipaddress_updateform_update_pre_ipaddress';
     	} else {
     		$vlist['__m_message_pre'] = 'sslipaddress_updateform_update_pre_client';
     	}
     */
     $clientparent = $this->getRealClientParentO();
     $list = $clientparent->getList('sslcert');
     $certlist = get_namelist_from_objectlist($list, 'nname');
     if ($certlist) {
         $vlist['sslcert'] = array('s', $certlist);
     } else {
         $vlist['sslcert'] = array('M', "Default Kloxo Certificate. Please Upload Your Own.");
         $vlist['__v_button'] = array();
     }
     return $vlist;
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:22,代码来源:sslipaddresslib.php


示例10: continueFormClientFinish

 static function continueFormClientFinish($parent, $class, $param, $continueaction)
 {
     $weblist = explode(',', $param['listpriv_s_webpserver_list']);
     //$vlist['dbtype_list'] = null;
     $vlist['ipaddress_list'] = array('Q', $parent->getIpaddress($weblist));
     if (!isOn($param['priv_s_dns_manage_flag'])) {
         $dlist = $parent->getList('dnstemplate');
         $nlist = get_namelist_from_objectlist($dlist);
         $vlist['dnstemplate_list'] = array('U', $nlist);
     }
     $ret['action'] = 'add';
     $ret['variable'] = $vlist;
     $ret['param'] = $param;
     return $ret;
 }
开发者ID:zseand,项目名称:kloxo,代码行数:15,代码来源:clientlib.php


示例11: getAllContactEmail

 function getAllContactEmail()
 {
     $list = $this->getList('emailalert');
     $nlist = get_namelist_from_objectlist($list, 'nname', 'emailid');
     $email = $this->contactemail;
     if ($nlist) {
         $total = implode(",", $nlist);
         $email = "{$email},{$total}";
     }
     return $email;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:11,代码来源:lxclient.php


示例12: setDhCP

 public function setDhCP()
 {
     if (!$this->main->isWindows()) {
         return;
     }
     $this->main->iplist = get_namelist_from_objectlist($this->main->vmipaddress_a);
     $res = merge_array_object_not_deleted($this->main->__var_win_iplist, $this->main);
     dhcp__dhcpd::createDhcpConfFile($res);
 }
开发者ID:digideskio,项目名称:hypervm,代码行数:9,代码来源:vps__xenlib.php


示例13: addform

 static function addform($parent, $class, $typetd = null)
 {
     if ($parent->isClient()) {
         $list = get_namelist_from_objectlist($parent->getList('domain'));
         $vv = array('var' => 'real_clparent_f', 'val' => array('s', $list));
         $vlist['nname'] = array('m', array('posttext' => "@", 'postvar' => $vv));
     } else {
         $vlist['nname'] = array('m', array('posttext' => "@{$parent->nname}"));
     }
     $vlist['password'] = "";
     $qvlist = getQuotaListForClass('mailaccount', array());
     $vlist = lx_array_merge(array($vlist, $qvlist));
     $ret['variable'] = $vlist;
     $ret['action'] = "add";
     return $ret;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:16,代码来源:mailaccountlib.php


示例14: getSelectList

 static function getSelectList($parent, $var)
 {
     global $gbl, $sgbl, $login, $ghtml;
     switch ($var) {
         case "cttype":
             return array("customer", "reseller");
         case "ipaddresslist":
             $iplist = $parent->getIpaddress();
             $iplist = null;
             if (!$iplist) {
                 //dprintr($parent->__parent_o);
                 throw new lxException("no_ipaddress", 'ipaddresslist');
             }
             return $iplist;
         case "template":
             $ol = $login->getList("clienttemplate");
             if (!$ol) {
                 throw new lxException("no_template", 'template');
             }
             $onl = get_namelist_from_objectlist($ol);
             return $onl;
     }
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:23,代码来源:clientcorelib.php


示例15: updateform

 function updateform($subaction, $param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $progname = $sgbl->__var_program_name;
     switch ($subaction) {
         case "skin":
             // ACtually the skin_color list should be dependent on the skin_name,
             // but currently just reading the current skin directory itself.
             // So all the skins should have the same color sets, which is not very practical,
             // so this should be changed in the future.
             if (!$this->getParentO()->isLogin() || $this->isClass('sp_childspecialplay')) {
                 $vlist['specialplay_b-dont_show_disabled_permission'] = null;
             }
             $vlist['specialplay_b-enable_ajax'] = null;
             $vlist['specialplay_b-simple_skin'] = null;
             if ($this->specialplay_b->skin_name === 'feather') {
                 $vlist['specialplay_b-show_thin_header'] = null;
             }
             $vlist['specialplay_b-close_add_form'] = null;
             if (!$this->isAdmin()) {
                 $list = get_namelist_from_objectlist($login->getList('interface_template'));
                 $list = lx_array_merge(array(array("--{$progname}-default--"), $list));
             }
             //$vlist['specialplay_b-interface_template'] = array('s', $list);
             $vlist['specialplay_b-skin_name'] = array('s', lscandir_without_dot(getreal("/img/skin/{$progname}")));
             $vlist['specialplay_b-skin_color'] = array('s', lscandir_without_dot(getreal("/img/skin/{$progname}/" . $this->specialplay_b->skin_name)));
             // DT #799 - Scan also the dir for new iconsets.
             $vlist['specialplay_b-icon_name'] = array('s', lscandir_without_dot(getreal("/img/image")));
             $vlist['specialplay_b-language'] = array('A', $this->getLanguage());
             //$vlist['specialplay_b-login_page'] =array('s', $this->getParentO()->getLoginTo());
             //$vlist['specialplay_b-split_frame'] = null;
             //$vlist['specialplay_b-show_help'] =null;
             if ($this->getParentO()->isLte('reseller') && $sgbl->isKloxo()) {
                 $vlist['specialplay_b-customermode_flag'] = null;
             }
             //$vlist['specialplay_b-disable_quickaction'] = null;
             if (!$this->getParentO()->isLogin()) {
                 $vlist['specialplay_b-logo_image'] = null;
                 $vlist['specialplay_b-logo_image_loading'] = null;
             }
             /*
             	if ($sgbl->isKloxo()) {
             		if (!$this->getParentO()->isLogin()) {
             			$vlist['specialplay_b-disable_docroot'] = null;
             		}
             	}
             */
             //$vlist['specialplay_b_s_show_add_buttons'] =null;
             //$vlist['specialplay_b-lpanel_scrollbar'] = null;
             //$vlist['specialplay_b-resource_bottom'] =null;
             //$vlist['specialplay_b_s_show_brethren_list'] = array('s', array('off', 'top', 'left'));
             //$vlist['specialplay_b_s_lpanel_group_resource'] =null;
             //$vlist['specialplay_b_s_ultra_navig'] =null;
             //$vlist['specialplay_b-lpanel_depth'] = null;
             $vlist['__v_updateall_button'] = array();
             //$vlist['specialplay_b_s_per_page'] = null;
             return $vlist;
         case "upload_logo":
             if ($login->priv->isOn('logo_manage_flag')) {
                 //	$vlist['specialplay_b-logo_image'] =array('I', array("width" => 20, "height" => 20, "value" => $this->specialplay_b->logo_image));
                 // trick use 'null' for guarantee 100% size of img (not 100% size div container)
                 $vlist['specialplay_b-logo_image'] = array('I', array("width" => "null", "height" => "null", "value" => "/img/user-logo.png"));
                 $vlist['logo_image_f'] = null;
                 //	$vlist['specialplay_b-logo_image_loading'] =array('I', array("width" => 20, "height" => 20, "value" => $this->specialplay_b->logo_image_loading));
                 //	$vlist['logo_image_loading_f'] = null;
             }
             return $vlist;
         case "login_options":
             if ($login->isAdmin()) {
                 $gen = $login->getObject('general')->generalmisc_b;
                 $this->specialplay_b->disableipcheck = $gen->disableipcheck;
                 $vlist['specialplay_b-disableipcheck'] = null;
             }
             $vlist['specialplay_b-ssession_timeout'] = null;
             return $vlist;
         case "demo_status":
             $vlist['specialplay_b-demo_status'] = null;
             return $vlist;
     }
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:80,代码来源:appearancelib.php


示例16: addform

 static function addform($parent, $class, $typetd = null)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $revc = $login->getObject('general')->reversedns_b;
     $res = get_namelist_from_objectlist($parent->vmipaddress_a);
     if (!$res) {
         throw new lxexception('no_ip_address', 'parent');
     }
     $vlist['nname'] = null;
     $vlist['webipaddress'] = array('s', $res);
     $vlist['mmailipaddress'] = array('s', $res);
     $vlist['nameserver_f'] = array('M', $revc->primarydns);
     $vlist['secnameserver_f'] = array('M', $revc->secondarydns);
     $ret['action'] = 'add';
     $ret['variable'] = $vlist;
     return $ret;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:17,代码来源:dnslib.php


示例17: updateform

 function updateform($subaction, $param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     switch ($subaction) {
         case "centralbackupconfig":
             $list = $login->getList('centralbackupserver');
             $list = get_namelist_from_objectlist($list);
             $vlist['centralbackupserver'] = array('s', add_disabled($list));
             $vlist['internalnetworkip'] = null;
             $vlist['tmpdir'] = null;
             //$vlist['__v_updateall_button'] = array();
             return $vlist;
         case "commandcenter":
             return $this->commandCenter($param);
             break;
         case "timezone":
             $vlist['timezone'] = array('s', pserver::getTimeZoneList());
             return $vlist;
         case "ssl_key":
             $this->createPublicPrivate();
             $this->setUpdateSubaction();
             $vlist['text_public_key'] = array('t', null);
             return $vlist;
         case "switchprogram":
             $this->web_driver = $gbl->getSyncClass($this->__masterserver, $this->nname, 'web');
             $this->dns_driver = $gbl->getSyncClass($this->__masterserver, $this->nname, 'dns');
             $this->spam_driver = $gbl->getSyncClass($this->__masterserver, $this->nname, 'spam');
             $vlist['web_driver'] = array('s', array('apache', 'lighttpd'));
             $vlist['dns_driver'] = array('s', array('bind', 'djbdns'));
             $vlist['spam_driver'] = array('s', array('spamassassin', 'bogofilter'));
             return $vlist;
         case "mysqlpasswordreset":
             $vlist['newpassword_f'] = null;
             return $vlist;
         case "importvps":
             $vlist['importvps'] = array('M', 'Import Vpses on this server?');
             $vlist['__v_button'] = "Import";
             return $vlist;
         case "importhypervmvps":
             $vlist['importvps'] = array('M', 'Import HyperVM Vpses on this server?');
             $vlist['__v_button'] = "Import";
             return $vlist;
         case "savevpsdata":
             $vlist['__v_button'] = "Save";
             return $vlist;
         case "information":
             $sq = new Sqlite(null, 'client');
             $res = $sq->getRowsWhere("cttype = 'wholesale'", null, array('nname'));
             $clientlist = get_namelist_from_arraylist($res);
             $vlist['description'] = null;
             $vlist['realhostname'] = null;
             if ($sgbl->isHyperVm()) {
                 $list = get_namelist_from_objectlist($login->getList('datacenter'));
                 if (!$list) {
                     $list[] = '--no-dc--';
                     $this->datacenter = '--no-dc--';
                 }
                 $vlist['datacenter'] = array('s', $list);
                 $newclientlist = lx_array_merge(array(array('--unassigned--'), $clientlist));
                 if ($this->nname === 'localhost') {
                     $vlist['clientname'] = array('M', $login->getKeyword('master_cannot_be_assigned'));
                 } else {
                     $vlist['clientname'] = array('s', $newclientlist);
                 }
             }
             if ($sgbl->isHyperVm()) {
                 $vlist['max_vps_num'] = null;
             }
             $this->setDefaultValue("load_threshold", "20");
             $vlist['load_threshold'] = null;
             return $vlist;
         case "backupconfig":
             return $vlist;
         case "phpsmtp":
             $vlist['pserverconf_b_s_usesmtp'] = null;
             $vlist['pserverconf_b_s_smtpserver'] = null;
             $vlist['pserverconf_b_s_smtpport'] = null;
             $vlist['pserverconf_b_s_smtpuseauth'] = null;
             $vlist['pserverconf_b_s_smtpuser'] = null;
             $vlist['pserverconf_b_s_smtppass'] = null;
             return $vlist;
         case "cron_mailto":
             $vlist['cron_mailto'] = null;
             return $vlist;
         case "vpslist":
             $vlist['used_vpslist_f'] = array('M', $this->getUsed());
             $vlist['__v_button'] = array();
             return $vlist;
         case "showused":
             $res = $this->createUsedDomainList();
             foreach ($res as $k => $v) {
                 $var = "used_domainlist_{$k}_f";
                 $vlist[$var] = array('M', $this->{$var});
             }
             $vlist['__v_button'] = array();
             return $vlist;
         case "update":
             $vlist['nname'] = array('M', null);
             $vlist['password'] = null;
             return $vlist;
//.........这里部分代码省略.........
开发者ID:soar-team,项目名称:kloxo,代码行数:101,代码来源:pservercorelib.php


示例18: print_quick_action

function print_quick_action($class)
{
    global $gbl, $sgbl, $login, $ghtml;
    $iconpath = get_image_path() . "/button/";
    if ($class === 'self') {
        $object = $login;
        $class = $login->getClass();
    } else {
        $list = $login->getVirtualList($class, $count);
        $object = getFirstFromList($list);
    }
    if (!$object) {
        return "No Object";
    }
    $namelist = get_namelist_from_objectlist($list);
    $alist = get_quick_action_list($object);
    foreach ($alist as $a) {
        $ac_descr = $ghtml->getActionDetails($a, null, $iconpath, $path, $post, $_t_file, $_t_name, $_t_image, $__t_identity);
    }
    $stylestr = "style=\"font-size: 10px\"";
    $res = null;
    $res .= " <tr style=\"background:#d6dff7\"> <td ><form name=quickaction method={$sgbl->method} target=mainframe action=\"/htmllib/lbin/redirect.php\">";
    $desc = $ghtml->get_class_description($class);
    //$res .= "$desc[2] <br> ";
    if (!$object->isLogin()) {
        $res .= "<select {$stylestr} name=frm_redirectname>";
        foreach ($namelist as $l) {
            $pl = substr($l, 0, 26);
            $res .= "<option {$stylestr} value={$l}> {$pl} </option>";
        }
        $res .= "</select> </td> </tr>  ";
    }
    $res .= " <tr style=\"background:#d6dff7\"> <td ><select {$stylestr} name=frm_redirectaction>";
    foreach ($alist as $k => $a) {
        if (csb($k, "__title")) {
            $res .= "<option value=>------{$a}----</option>";
            continue;
        }
        $ac_descr = $ghtml->getActionDetails($a, null, $iconpath, $path, $post, $_t_file, $_t_name, $_t_image, $__t_identity);
        $a = base64_encode($a);
        //$res .= "<option value=$a style='background-image: url($_t_image); background-repeat:no-repeat; left-padding: 35px; text-align:right'>  $ac_descr[2] </option>";
        $desc = substr($ac_descr[2], 0, 20);
        $res .= "<option {$stylestr} value={$a}>  {$desc} </option>";
    }
    $res .= "</select> </td> </tr> ";
    $res .= "</form> <tr > <td align=right> <a href=javascript:quickaction.submit() > Go </a> </td> </tr> ";
    return $res;
}
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:48,代码来源:lib.php


示例19: updateform

 function updateform($subaction, $param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $progname = $sgbl->__var_program_name;
     switch ($subaction) {
         case "multi":
             $vlist['multi'] = null;
             break;
         case "browsebackup":
             $vlist['browsebackup_b-browsebackup_flag'] = null;
             break;
         case "historytime":
             $vlist['generalmisc_b-traffichistory_time'] = null;
             $vlist['generalmisc_b-loginhistory_time'] = null;
             break;
         case "disableper":
             $vlist['generalmisc_b-dpercentage'] = array('s', array('90', '95', '100', '105', '110', '120'));
             break;
         case "npercentage":
             $vlist['generalmisc_b-npercentage'] = null;
             break;
         case "ssh_config":
             $vlist['generalmisc_b-sshport'] = null;
             return $vlist;
         case "kloxo_config":
             $vlist['kloxoconfig_b-remoteinstall_flag'] = null;
             $vlist['kloxoconfig_b-installapp_url'] = null;
             return $vlist;
         case "portconfig":
             $this->portconfig_b->setDefaultValue('sslport', $sgbl->__var_prog_ssl_port);
             $this->portconfig_b->setDefaultValue('nonsslport', $sgbl->__var_prog_port);
             $vlist['portconfig_b-sslport'] = null;
             $vlist['portconfig_b-nonsslport'] = null;
             $vlist['portconfig_b-redirectnonssl_flag'] = null;
             return $vlist;
         case "download_config":
             $vlist['generalmisc_b-masterdownload'] = null;
             return $vlist;
         case "attempts":
             $vlist['generalmisc_b-attempts'] = null;
             break;
         case "maintenance":
             $vlist['generalmisc_b-maintenance_flag'] = null;
             $vlist['text_maintenance_message'] = array('t', null);
             return $vlist;
         case "generalsetting":
             $vlist['generalmisc_b-autoupdate'] = null;
             if (!isset($this->generalmisc_b->installkloxo)) {
                 $this->generalmisc_b->installkloxo = 'on';
             }
             $vlist['generalmisc_b-installkloxo'] = null;
             $vlist['generalmisc_b-openvzincrement'] = null;
             $vlist['generalmisc_b-xenimportdriver'] = null;
             $vlist['generalmisc_b-rebuild_time_limit'] = null;
             $vlist['generalmisc_b-no_console_user'] = null;
             $vlist['generalmisc_b-disable_hostname_change'] = null;
             $vlist['generalmisc_b-htmltitle'] = null;
             $vlist['generalmisc_b-ticket_url'] = null;
             $vlist['login_pre'] = null;
             break;
         case "hostdiscovery":
             $vlist['generalmisc_b-usenmapforping'] = null;
             break;
         case "reversedns":
             if (!$this->reversedns_b) {
                 $this->reversedns_b = new reversedns_b(null, null, 'general');
             }
             $vlist['reversedns_b-enableflag'] = null;
             $vlist['reversedns_b-forwardenableflag'] = null;
             $this->dns_slave_list = $this->reversedns_b->dns_slave_list;
             $vlist['reversedns_b-primarydns'] = null;
             $vlist['reversedns_b-secondarydns'] = null;
             $serverlist = get_namelist_from_objectlist($login->getRealPserverList('dns'));
             $vlist['dns_slave_list'] = array('U', $serverlist);
             break;
         case "scavengetime":
             $tcron = new Cron(null, null, 'test');
             $v = cron::$hourlist;
             unset($v[0]);
             $vlist['generalmisc_b-scavengehour'] = array('s', $v);
             $vlist['generalmisc_b-scavengeminute'] = array('s', array("0", "15", "30", "45"));
             break;
         case "selfbackupconfig":
             $vlist['selfbackupparam_b-selfbackupflag'] = null;
             $vlist['selfbackupparam_b-ftp_server'] = null;
             $vlist['selfbackupparam_b-rm_directory'] = null;
             $vlist['selfbackupparam_b-rm_username'] = null;
             $vlist['selfbackupparam_b-rm_password'] = array('m', '***');
             break;
         case "hackbuttonconfig":
             $vlist['hackbuttonconfig_b-nobackup'] = null;
             $vlist['hackbuttonconfig_b-nomonitor'] = null;
             break;
         case "session_config":
             $vlist['generalmisc_b-disableipcheck'] = null;
             break;
     }
     return $vlist;
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:99,代码来源:generallib.php


示例20: addform

 static function addform($parent, $class, $typetd = null)
 {
     global $gbl, $sgbl, $login, $ghtml;
     if ($parent->get__table() === 'client') {
         $tag['key'] = "--all_children--";
         $tag['val'] = "-----Children";
         $list = $parent->getAllChildrenAndParents($tag);
     }
     $gen = $login->getObject('general');
     $cat = get_namelist_from_objectlist($gen->helpdeskcategory_a);
     $vlist['made_by'] = array('M', $parent->nname);
     if ($parent->get__table() === 'client') {
         $vlist['sent_to'] = array('A', $list);
     } else {
         $vlist['sent_to'] = array('M', $parent->getParentO()->nname);
     }
     if (!$cat) {
         $cat = array("billing");
     }
     $vlist['category'] = array('s', $cat);
     $vlist['subject'] = null;
     //$vlist['priority'] = array('s', array('low', 'medium', 'high', 'urgent'));
     $vlist['descr_f'] = null;
     if ($sgbl->isLxlabsClient()) {
         $vlist['__m_message_pre'] = "lxlabsclient_ticket_forum";
     }
     $ret['variable'] = $vlist;
     $ret['action'] = 'add';
     return $ret;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:30,代码来源:ticketlib.php



注:本文中的get_namelist_from_objectlist函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_nav函数代码示例发布时间:2022-05-15
下一篇:
PHP get_namelist_from_arraylist函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap