Answers true if the summary is to be shown for the current list item.

@param boolean $isFirst Item is first in the list.
@param boolean $isMiddle Item is in the middle of the list.
@param boolean $isLast Item is last in the list.

@return boolean
193442
public function isSummaryShown($isFirst = false, $isMiddle = false, $isLast = false)
    {
        return $this->isShown('Summary', $isFirst, $isMiddle, $isLast);
    }
1298524
public final function is_last() {
        $lastindex = count(core_component::get_plugin_list($this->get_subtype()))-1;
        $currentindex = get_config($this->get_subtype() . '_' . $this->get_type(), 'sortorder');
        if ($lastindex == $currentindex) {
            return true;
        }

        return false;
    }
1012688
public function show_intro() {
        if ($this->get_instance()->alwaysshowdescription ||
                time() > $this->get_instance()->allowsubmissionsfromdate) {
            return true;
        }
        return false;
    }
822797
public function isContentEmpty($isFirst = false, $isMiddle = false, $isLast = false)
    {
        return !(
            $this->isHeaderShown($isFirst, $isMiddle, $isLast) ||
            $this->isDetailsShown($isFirst, $isMiddle, $isLast) ||
            $this->isSummaryShown($isFirst, $isMiddle, $isLast) ||
            $this->isContentShown($isFirst, $isMiddle, $isLast) ||
            $this->isFooterShown($isFirst, $isMiddle, $isLast)
        );
    }
503667
public function isFirstIdHistoriqueEvenementFromHistorique($idEvenement = 0)
    {

        /*
		 * Modification due to historiqueEvenement and evenements split
		 *
		 * Previously working on idHistoriqueEvenement and checking if it was the first one with the same idEvenement as input
		 *
		 * Now : Just checking number of evenements in historiqueEvenement with $idEvenement
		 * If there is more than 2 events with same idEvenement (1 for the group of events and 1 for the event itself)
		 * there has been modification(s) on this event
		 */
        $requete = "SELECT idEvenement
				FROM historiqueEvenement
				WHERE idEvenement = ".$idEvenement;
        $result = $this->connexionBdd->requete($requete);
        if (mysql_num_rows($result)>=2) {
            return false;
        }
        return true;

    }
904926
protected function getSetFirstView()
	{
	    //return true; // for Test only
	    //FirstViewBanner gewünscht?
	    if ($this->banner_firstview !=1) { return false; }

	    $this->BannerReferrer = new \Banner\BannerReferrer();
	    $this->BannerReferrer->checkReferrer();
	    $ReferrerDNS = $this->BannerReferrer->getReferrerDNS();
	    // o own , w wrong
	    if ($ReferrerDNS === 'o')
	    {
	        // eigener Referrer, Begrenzung auf First View nicht nötig.
	        $this->statusBannerFirstView = false;
	        return false;
	    }
	    
	    if ( $this->getFirstViewBlockerId() === false )
	    {
	        // nichts geblockt, also blocken fürs den nächsten Aufruf
	        $this->setFirstViewBlockerId($this->banner_categories);
	        
	        // kein firstview block gefunden, Anzeigen erlaubt
	        $this->statusBannerFirstView = true;
	        return true;
	    }
	    else
	    {
	        $this->statusBannerFirstView = false;
	        return false;
	    }
	    
	}
188096
protected function calculateFirstAndLastPage()
    {
        $delta = \floor($this->maximumNumberOfLinks / 2);
        $firstPage = $this->currentPage - $delta;
        $lastPage = $this->currentPage + $delta + ($this->maximumNumberOfLinks % 2 === 0 ? 1 : 0);

        if ($firstPage < 1) {
            $lastPage -= $firstPage - 1;
        }
        if ($lastPage > $this->numberOfPages) {
            $firstPage -= ($lastPage - $this->numberOfPages);
        }

        $this->firstPage = \max($firstPage, 1);
        $this->lastPage = \min($lastPage, $this->numberOfPages);
    }
1206836
public function first()
    {
        if ($this->isEmpty()) {
            return $this->makeItem(null);
        }

        $arResultIDList = $this->arElementIDList;

        $iElementID = array_shift($arResultIDList);

        return $this->makeItem($iElementID);
    }
802721
public static function getAccessTreeByParentId($isSuper, $menuIdList, $parentId, $condition = '', $params = [], $order = 'display_order asc')
    {
        $data = static::find()
            ->active()
            ->findByParentId($parentId)
            ->andWhere($condition, $params)
            ->orderBy($order)
            ->all();
        $tree = [];
        if ($data) {
            foreach ($data as $item) {
                if ($isSuper || in_array($item['menu_id'], $menuIdList)) {
                    $node = [
                        'menu_id' => $item['menu_id'],
                        'parent_id' => $item['parent_id'],
                        'tab_id' => 'tab_' . $item['menu_id'],
                        'text' => $item['text'],
                        'origin_text' => $item['text'],
                        'title' => $item['title'],
                        'url' => $item['url'],
                        'view_package' => $item['view_package'],
                        'expanded' => (bool) $item['expanded'],
                        'is_expand' => (bool) $item['expanded'],
                        'closable' => (bool) $item['closable'],
                        'is_open_url' => (bool) $item['is_open_url'],
                        'is_open_target' => (bool) $item['is_open_target'],
                        'is_every_open' => (bool) $item['is_every_open'],
                        'is_hide' => (bool) $item['is_hide'],
                        'display_order' => $item['display_order'],
                        'params' => $item['params'],
                        'note' => $item['note'],
                        'status' => intval($item['status']),
                    ];
                    $children = static::getAccessTreeByParentId($isSuper, $menuIdList, $item['menu_id'], $condition, $params, $order);
                    if ($children) {
                        $node['leaf'] = false;
                        $node['children'] = $children;
                    } else {
                        $node['leaf'] = true;
                    }
                    $tree[] = $node;
                }
            }
        }

        return $tree;
    }
627107
private function isCurrentlyFirstPage()
    {
        if ($this->page_number_type === 'start_num') {
            if ($this->page_number_value === 0) {
                return true;
            }
            return false;
        } elseif ($this->page_number_type === 'page_num') {
            if ($this->page_number_value === 1) {
                return true;
            }
            return false;
        }
        return false;
    }
1276284
public function sizeIsBetween(int $fromSize, int $toSize): bool
    {
        if ($fromSize > $toSize) {
            $tmp = $toSize;
            $toSize = $fromSize;
            $fromSize = $tmp;
        }

        // init
        $itemsTempCount = 0;

        foreach ($this->getGenerator() as $key => $value) {
            ++$itemsTempCount;
            if ($itemsTempCount > $toSize) {
                return false;
            }
        }

        return $fromSize < $itemsTempCount && $itemsTempCount < $toSize;
    }
1237246
public function getFirstShown()
    {
        $firstShown = $this->getGridPagerState()->firstShown ?: 1;
        // Prevent visiting a page with an offset higher than the total number of items
        if ($firstShown > $this->getTotalRecords()) {
            $this->getGridPagerState()->firstShown = $firstShown = 1;
        }
        return $firstShown;
    }
929505
public function canFilterBy($by)
    {
        if (empty($this->items)) {
            return false;
        }

        $firstRecord = $this->first();

        return array_key_exists($by, $firstRecord);
    }
32791
public function has_summary() {
        if (isset($this->record->hassummary)) {
            return !empty($this->record->hassummary);
        }
        if (!isset($this->record->summary)) {
            // We need to retrieve summary.
            $this->__get('summary');
        }
        return !empty($this->record->summary);
    }
316202
public function hasChilds($idParent)
    {
        if ($numOfChilds = $this->getNumOfChilds($idParent)) {
            return (bool)($numOfChilds == 0 ? false : true);
        }

        return false;
    }
1258310
public function exclusivelyMultipleOrOrdered()
    {
        if (count($this) === 0) {
            return false;
        }

        foreach (array_keys($this->getDataPlaceHolder()) as $key) {
            $v = $this[$key];
            if (!$v instanceof MultipleContainer && !$v instanceof OrderedContainer) {
                return false;
            }
        }

        return true;
    }
1342582
def toggle_first_last_piece_priority(self, infohash_list):
        
        data = self._process_infohash_list(infohash_list)
        return self._post('command/toggleFirstLastPiecePrio', data=data)