本文整理汇总了PHP中Map::values方法的典型用法代码示例。如果您正苦于以下问题:PHP Map::values方法的具体用法?PHP Map::values怎么用?PHP Map::values使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Map
的用法示例。
在下文中一共展示了Map::values方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAllLinesValues
public function getAllLinesValues()
{
$titles = $this->values->get("rowTitles");
$this->values->remove("rowTitles");
$valuesToReturn = $this->values->values();
$this->setTitles($titles);
return $valuesToReturn;
}
示例2: concatAnythingToStatement
private function concatAnythingToStatement($anything)
{
$statements = $this->statements->values();
$attributesToSelect = "";
foreach ($statements as $statement) {
if ($statement[$anything] != "") {
$attributesToSelect .= " " . $statement[$anything];
}
}
return $attributesToSelect;
}
示例3: setValues
private function setValues(array $years, Map $mapGroupedData, $dualY = false, $setToAxis = false)
{
$groups = $mapGroupedData->values();
foreach ($groups as $groupedData) {
$group = $groupedData;
$this->groupValuesByYear($years, $group, $dualY, $setToAxis);
}
}
示例4: addValuesToARow
protected function addValuesToARow(Map $values, array $years)
{
$list = $values->values();
$groupsNumber = $list->count();
for ($i = 0; $i < $groupsNumber; $i++) {
$group = $list->offsetGet($i);
$data = $group->offsetGet(0);
$this->setValues($group, $data, $years);
}
$this->config();
}
示例5: hashMapFilteredToJSON
private function hashMapFilteredToJSON(Map $map)
{
$json = '{';
$listValues = $map->values()->getIterator();
$n = 1;
while ($listValues->valid()) {
$json .= '"subgroup_' . $n++ . '":';
$json .= $this->toJson($listValues->current()->getIterator());
if ($n - 1 < $listValues->count()) {
$json .= ',';
}
$listValues->next();
}
$json .= '}';
return $json;
}