当前位置: 首页>>代码示例>>PHP>>正文


PHP CommonFunctions::extractSingleValueFromMultiValueArray方法代码示例

本文整理汇总了PHP中CommonFunctions::extractSingleValueFromMultiValueArray方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonFunctions::extractSingleValueFromMultiValueArray方法的具体用法?PHP CommonFunctions::extractSingleValueFromMultiValueArray怎么用?PHP CommonFunctions::extractSingleValueFromMultiValueArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommonFunctions的用法示例。


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

示例1:

<?php

if (sizeof($chartLegendValues) == 0) {
    ?>
		<h1><i class="fa fa-line-chart hidden-xs"></i> График авторизаций<span class="hidden-xs"> в&nbsp;сети</span></h1>
		<div class="page-wrapper">
			<p class="text-center">Нет данных</p>
		</div>
	<?php 
} else {
    // Соц. сети и их названия
    $loginOptions = $database->getLoginOptions();
    $socialNetworksNames = CommonFunctions::extractSingleValueFromMultiValueArray($loginOptions, 'NAME');
    ?>
<div class="complex-h1">
	<i class="fa fa-line-chart hidden-xs"></i>
	<h1>График авторизаций<span class="hidden-xs"> в&nbsp;сети</span></h1>
	
	<h2 class="hidden-xs">Количество пользователей за&nbsp;последние <?php 
    echo $temp;
    ?>
&nbsp;дней</h2>
	<span class="options hidden-xs">
		<select id="main-stats-chart-period">
			<option value="365"<?php 
    if ($temp == 365) {
        echo ' selected';
    }
    ?>
>1 год</option>
			<option value="183"<?php 
开发者ID:anthonyboutinov,项目名称:WiFiAuth,代码行数:31,代码来源:mainStatsChart.php

示例2: getDBUsersCount

 /**
  *	@author Anthony Boutinov
  *	
  *	@param bool $count_deactivated		(Опционально) Считать вмете с деактивированными. По умолчанию, не считать их.
  *	@retval int
  */
 public function getDBUsersCount($count_deactivated = false)
 {
     $sql = 'select count(ID_DB_USER) as COUNT from CM$DB_USER where IS_SUPERADMIN=\'F\' ' . 'union select count(ID_DB_USER) as COUNT from CM$DB_USER where IS_SUPERADMIN=\'T\'';
     if ($count_deactivated == false) {
         $sql = $sql . ' and IS_ACTIVE=\'T\'';
     }
     $array = $this->toArray($this->getQueryResultWithErrorNoticing($sql));
     return CommonFunctions::extractSingleValueFromMultiValueArray($array, 'COUNT');
 }
开发者ID:anthonyboutinov,项目名称:WiFiAuth,代码行数:15,代码来源:DBWiFiInterface.php

示例3: drawChart

        $height = $charthHeight + 30;
    }
    include_once 'googleChartAPI.html';
    ?>
<script type="text/javascript">
	// Set a callback to run when the Google Visualization API is loaded.
	google.setOnLoadCallback(drawChart);

	// Callback that creates and populates a data table,
	// instantiates the pie chart, passes in the data and
	// draws it.
	function drawChart() {
		var data = new google.visualization.arrayToDataTable([
			[{type: 'date', label: 'День'},
			<?php 
    echo CommonFunctions::arrayToString(CommonFunctions::extractSingleValueFromMultiValueArray($database->getLoginOptions(), 'NAME'), false, true, true, ' ', '],', "{type: 'number', label: '", "'}");
    if (isset($_SESSION['main-stats-chart-data-offset']) && isset($_SESSION['main-stats-chart-data-limit'])) {
        echo CommonFunctions::arrayToString($database->getMainStatsTable($_SESSION['main-stats-chart-data-limit'], $_SESSION['main-stats-chart-data-offset']), false, false, false);
    } else {
        echo CommonFunctions::arrayToString($database->getMainStatsTable(30), false, false, false);
    }
    ?>
		]);

		var options = {
			animation: {duration: 1000, startup: true, easing: 'inAndOut' },
			explorer: {},
			selectionMode: 'single',
			tooltip: {trigger: 'selection'},
			backgroundColor: { fill:'transparent' },
			fontName: 'Fontatigo, "Helvetica Nueue", Helvetica, Arial, "Lucida Grande", sans-serif',
开发者ID:anthonyboutinov,项目名称:WiFiAuth,代码行数:31,代码来源:mainStatsChartGoogleChartJS.php


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