Answers true if the content 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
19139
public function isContentShown($isFirst = false, $isMiddle = false, $isLast = false)
    {
        return $this->isShown('Content', $isFirst, $isMiddle, $isLast);
    }
346612
public function renderListItem($isFirst = false, $isMiddle = false, $isLast = false, $wtf = false)
    {
        return $this->owner->customise([
            'isFirst' => $isFirst,
            'isMiddle' => $isMiddle,
            'isLast' => $isLast
        ])->renderWith($this->owner->getListItemTemplate());
    }
977293
public function isFirstCall() {
        if (!$this->stepAction && $this->stepCollection->isFirst($this->stepCollectionIterator->current()))
            return true;
        else return false;
    }
1012688
public function show_intro() {
        if ($this->get_instance()->alwaysshowdescription ||
                time() > $this->get_instance()->allowsubmissionsfromdate) {
            return true;
        }
        return false;
    }
1321084
protected function lexDirectives(bool $isConst = false): array
    {
        $directives = [];

        while ($this->peek(TokenKindEnum::AT)) {
            $directives[] = $this->lexDirective($isConst);
        }

        return $directives;
    }
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;
    }
207078
public function getCheckboxes($fid, $is_admmod, $is_subscribed)
    {
        Container::get('hooks')->fire('model.post.get_checkboxes_start', $fid, $is_admmod, $is_subscribed);

        $cur_index = 1;

        $checkboxes = [];
        if ($fid && $is_admmod) {
            $checkboxes[] = '<label class="checkbox-inline">'.
                '<input type="checkbox" name="stick_topic" value="1" tabindex="'.
                ($cur_index++).'"'.(Input::post('stick_topic') ? ' checked="checked"' : '').' />'.
                __('Stick topic').'<br /></label>';
        }

        if (!User::get()->is_guest) {
            if (ForumSettings::get('o_smilies') == '1') {
                $checkboxes[] = '<label class="checkbox-inline">'.
                    '<input type="checkbox" name="hide_smilies" value="1" tabindex="'.
                    ($cur_index++).'"'.(Input::post('hide_smilies') ? ' checked="checked"' : '').' />'.
                    __('Hide smilies').'<br /></label>';
            }

            if (ForumSettings::get('o_topic_subscriptions') == '1') {
                $subscr_checked = false;

                // If it's a preview
                if (Input::post('preview')) {
                    $subscr_checked = (Input::post('subscribe')) ? true : false;
                } // If auto subscribed
                elseif (User::get()->auto_notify) {
                    $subscr_checked = true;
                } // If already subscribed to the topic
                elseif ($is_subscribed) {
                    $subscr_checked = true;
                }

                $checkboxes[] = '<label class="checkbox-inline">'.
                    '<input type="checkbox" name="subscribe" value="1" tabindex="'.
                    ($cur_index++).'"'.($subscr_checked ? ' checked="checked"' : '').' />'.
                    ($is_subscribed ? __('Stay subscribed') : __('Subscribe')).'<br /></label>';
            }
        } elseif (ForumSettings::get('o_smilies') == '1') {
            $checkboxes[] = '<label class="checkbox-inline">'.
                '<input type="checkbox" name="hide_smilies" value="1" tabindex="'.
                ($cur_index++).'"'.(Input::post('hide_smilies') ? ' checked="checked"' : '').' />'.
                __('Hide smilies').'<br /></label>';
        }

        $checkboxes = Container::get('hooks')->fire('model.post.get_checkboxes', $checkboxes);

        return $checkboxes;
    }
1374686
protected function setFirstViewBlockerId($banner_categorie=0)
	{
	    if ($banner_categorie==0) { return; }// keine Banner Kategorie, nichts zu tun
	     
	    $this->statusFirstViewBlocker = true;
	    $this->setSession('FirstViewBlocker'.$this->module_id, array( $banner_categorie => time() ));
	    return ;
	}
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;
    }
1311304
private function cleanNodes(DOMElement $elem, $isFirstNode = false)
    {
        $nodeName = strtolower($elem->nodeName);
        $textContent = $elem->textContent;
        if ($isFirstNode || array_key_exists($nodeName, $this->config->WhiteListTag)) {
            if ($elem->hasAttributes()) {
                $this->cleanAttributes($elem);
            }
            /*
             * Iterate over the element's children. The reason we go backwards is because
             * going forwards will cause indexes to change when elements get removed
             */
            if ($elem->hasChildNodes()) {
                $children = $elem->childNodes;
                $index = $children->length;
                while (--$index >= 0) {
                    $cleanNode = $children->item($index);// DOMElement or DOMText
                    if ($cleanNode instanceof DOMElement) {
                        $this->cleanNodes($cleanNode);
                    }
                }
            } else {
                if (!in_array($nodeName, $this->emptyElementList) && !$this->isValidText($textContent)) {
                    $elem->nodeValue = $this->TEMP_CONTENT;
                }
            }
        } else {
            if ($this->config->KeepText === true && $this->isValidText($textContent)) {
                $result = $elem->parentNode->replaceChild($this->dom->createTextNode($textContent), $elem);
            } else {
                $result = $elem->parentNode->removeChild($elem);
            }
            if ($result) {
                $this->removedTags[] = $nodeName;
            } else {
                throw new Exception('Failed to remove node from DOM');
            }
        }
    }
78048
public function getSlideAttributes($isFirst = false, $isMiddle = false, $isLast = false)
    {
        $attributes = ['class' => $this->getSlideClass($isFirst, $isMiddle, $isLast)];
        
        if ($this->getParent()->hasMethod('getSlideAttributes')) {
            
            $attributes = array_merge(
                $attributes,
                $this->getParent()->getSlideAttributes(
                    $this,
                    $isFirst,
                    $isMiddle,
                    $isLast
                )
            );
            
        }
        
        $this->extend('updateSlideAttributes', $attributes);
        
        return $attributes;
    }
43860
public function isRegistered($identifier)
    {
        if (false === parent::isRegistered($identifier)) {
            $entity = $this->getContentById($identifier);

            if (!empty($entity)) {
                return true;
            }
        } else {

            return true;
        }

        return false;
    }
751471
private function isPartiallyItem($shippingItem, $includeDeliveryNoteStatus = false)
    {
        $item = $shippingItem->getItem();
        $sumShipped = $this->getSumOfShippedItemsByItemId($item->getId(), $includeDeliveryNoteStatus);
        $orderItem = $shippingItem->getShipping()->getOrder()->getItem($item->getId());
        // if all items are shipped (exclude current item)
        if ($sumShipped == $orderItem->getQuantity() - $shippingItem->getQuantity()) {
            return false;
        }
        return true;
    }
1163622
public function isTrustedResourceDir($filepath, $isConfig = null)
    {
        if ($this->_include_path_status !== $this->smarty->use_include_path) {
            foreach ($this->_include_dir as $directory) {
                unset($this->_resource_dir[$directory]);
            }
            if ($this->smarty->use_include_path) {
                $this->_include_dir = array();
                $_dirs = $this->smarty->ext->_getIncludePath->getIncludePathDirs($this->smarty);
                foreach ($_dirs as $directory) {
                    $this->_include_dir[] = $directory;
                    $this->_resource_dir[$directory] = true;
                }
            }
            $this->_include_path_status = $this->smarty->use_include_path;
        }
        if ($isConfig !== true &&
            (!isset($this->smarty->_cache['template_dir_new']) || $this->smarty->_cache['template_dir_new'])
        ) {
            $_dir = $this->smarty->getTemplateDir();
            if ($this->_template_dir !== $_dir) {
                foreach ($this->_template_dir as $directory) {
                    unset($this->_resource_dir[$directory]);
                }
                foreach ($_dir as $directory) {
                    $this->_resource_dir[$directory] = true;
                }
                $this->_template_dir = $_dir;
            }
            $this->smarty->_cache['template_dir_new'] = false;
        }
        if ($isConfig !== false &&
            (!isset($this->smarty->_cache['config_dir_new']) || $this->smarty->_cache['config_dir_new'])
        ) {
            $_dir = $this->smarty->getConfigDir();
            if ($this->_config_dir !== $_dir) {
                foreach ($this->_config_dir as $directory) {
                    unset($this->_resource_dir[$directory]);
                }
                foreach ($_dir as $directory) {
                    $this->_resource_dir[$directory] = true;
                }
                $this->_config_dir = $_dir;
            }
            $this->smarty->_cache['config_dir_new'] = false;
        }
        if ($this->_secure_dir !== (array) $this->secure_dir) {
            foreach ($this->_secure_dir as $directory) {
                unset($this->_resource_dir[$directory]);
            }
            foreach ((array) $this->secure_dir as $directory) {
                $directory = $this->smarty->_realpath($directory . DS, true);
                $this->_resource_dir[$directory] = true;
            }
            $this->_secure_dir = (array) $this->secure_dir;
        }
        $this->_resource_dir = $this->_checkDir($filepath, $this->_resource_dir);
        return true;
    }
489030
public boolean moveToFirst() {
        try {
            return resultSet.first();
        } catch (SQLException e) {
            logger.error(e.getMessage(),e);
        }
        return false;
    }
951524
public function isFooterShown($isFirst = false, $isMiddle = false, $isLast = false)
    {
        return $this->isShown('Footer', $isFirst, $isMiddle, $isLast);
    }
832118
public function hasNextSibling(): bool
    {
        try
        {
            $this->nextSibling();

            // sibling found, return true;
            return true;
        }
        catch (ParentNotFoundException $e)
        {
            // no parent, no next sibling
            return false;
        }
        catch (ChildNotFoundException $e)
        {
            // no sibling found
            return false;
        }
    }