本文整理汇总了PHP中get_namelist_from_objectlist函数的典型用法代码示例。如果您正苦于以下问题:PHP get_namelist_from_objectlist函数的具体用法?PHP get_namelist_from_objectlist怎么用?PHP get_namelist_from_objectlist使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_namelist_from_objectlist函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
}
示例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;
}
}