public function listLastInfo($lastInfo = null, $labelList = null, $controllerName = null, $actionName = null, $linkOptions = [], $length = 0) {
		if (!is_array($lastInfo)) {
			$lastInfo = [];
		}

		if (empty($labelList) && !empty($controllerName)) {
			$labelList = Inflector::humanize(Inflector::underscore($controllerName));
		}

		if (empty($actionName)) {
			$actionName = 'view';
		}

		$lastInfoList = '';
		if (!empty($labelList)) {
			$lastInfoList .= $this->Html->tag('dt', $labelList . ':');
		}
		if (!empty($lastInfo)) {
			$lastInfoListData = [];
			foreach ($lastInfo as $lastInfoItem) {
				$label = $this->truncateText(h($lastInfoItem['label']), $length);
				if (!empty($controllerName) && !empty($lastInfoItem['id'])) {
					$url = $this->addUserPrefixUrl(['controller' => $controllerName, 'action' => $actionName, $lastInfoItem['id']]);
					$label = $this->popupModalLink($label, $url, $linkOptions);
				}
				$lastInfoListData[] = $label .
					' (' . $this->timeAgo($lastInfoItem['modified']) . ')';
			}
			$lastInfoListItem = $this->Html->nestedList($lastInfoListData, null, null, 'ol');
		} else {
			$lastInfoListItem = $this->showEmpty(null);
		}
		$lastInfoList .= $this->Html->tag('dd', $lastInfoListItem);
		$result = $this->Html->tag('dl', $lastInfoList, ['class' => 'dl-horizontal']);

		return $result;
	}
public function listLastInfo($lastInfo = null, $labelList = null, $controllerName = null, $actionName = null, $linkOptions = [], $length = 0) {
		if (!is_array($lastInfo)) {
			$lastInfo = [];
		}

		if (empty($labelList) && !empty($controllerName)) {
			$labelList = Inflector::humanize(Inflector::underscore($controllerName));
		}

		if (empty($actionName)) {
			$actionName = 'view';
		}

		$lastInfoList = '';
		if (!empty($labelList)) {
			$lastInfoList .= $this->Html->tag('dt', $labelList . ':');
		}
		if (!empty($lastInfo)) {
			$lastInfoListData = [];
			foreach ($lastInfo as $lastInfoItem) {
				$label = $this->truncateText(h($lastInfoItem['label']), $length);
				if (!empty($controllerName) && !empty($lastInfoItem['id'])) {
					$url = $this->addUserPrefixUrl(['controller' => $controllerName, 'action' => $actionName, $lastInfoItem['id']]);
					$label = $this->popupModalLink($label, $url, $linkOptions);
				}
				$lastInfoListData[] = $label .
					' (' . $this->timeAgo($lastInfoItem['modified']) . ')';
			}
			$lastInfoListItem = $this->Html->nestedList($lastInfoListData, null, null, 'ol');
		} else {
			$lastInfoListItem = $this->showEmpty(null);
		}
		$lastInfoList .= $this->Html->tag('dd', $lastInfoListItem);
		$result = $this->Html->tag('dl', $lastInfoList, ['class' => 'dl-horizontal']);

		return $result;
	}
public function listLastInfo ( $ lastInfo = null , $ labelList = null , $ controllerName = null , $ actionName = null , $ linkOptions = [ ] , $ length = 0 ) { if ( ! is_array ( $ lastInfo ) ) { $ lastInfo = [ ] ; } if ( empty ( $ labelList ) && ! empty ( $ controllerName ) ) { $ labelList = Inflector :: humanize ( Inflector :: underscore ( $ controllerName ) ) ; } if ( empty ( $ actionName ) ) { $ actionName = 'view' ; } $ lastInfoList = '' ; if ( ! empty ( $ labelList ) ) { $ lastInfoList .= $ this -> Html -> tag ( 'dt' , $ labelList . ':' ) ; } if ( ! empty ( $ lastInfo ) ) { $ lastInfoListData = [ ] ; foreach ( $ lastInfo as $ lastInfoItem ) { $ label = $ this -> truncateText ( h ( $ lastInfoItem [ 'label' ] ) , $ length ) ; if ( ! empty ( $ controllerName ) && ! empty ( $ lastInfoItem [ 'id' ] ) ) { $ url = $ this -> addUserPrefixUrl ( [ 'controller' => $ controllerName , 'action' => $ actionName , $ lastInfoItem [ 'id' ] ] ) ; $ label = $ this -> popupModalLink ( $ label , $ url , $ linkOptions ) ; } $ lastInfoListData [ ] = $ label . ' (' . $ this -> timeAgo ( $ lastInfoItem [ 'modified' ] ) . ')' ; } $ lastInfoListItem = $ this -> Html -> nestedList ( $ lastInfoListData , null , null , 'ol' ) ; } else { $ lastInfoListItem = $ this -> showEmpty ( null ) ; } $ lastInfoList .= $ this -> Html -> tag ( 'dd' , $ lastInfoListItem ) ; $ result = $ this -> Html -> tag ( 'dl' , $ lastInfoList , [ 'class' => 'dl-horizontal' ] ) ; return $ result ; }
Return list of last changed data.

@param array $lastInfo Array of last information in format:
- key `label`, value: label of list item;
- key `modified`, value: date and time of last modification;
- key `id`, value: ID of record.
@param string $labelList Label of list.
@param string $controllerName Name of controller for viewing.
@param string $actionName Name of controller action for viewing.
@param array|string $linkOptions HTML options for link element.
@param int $length Length of list item label string.
@return string Return list of last changed data.
Return list of last changed data .