@param boolean $isPartial
@param boolean $isLayout

@return string
491825
private function renderTemplate($isPartial = false, $isLayout = false)
    {
        $adapter = $this->determineWhichAdapterToUse($this->templateFile);
        $dirs = true === $isLayout ? $this->_layoutdir : $this->_scriptdir;

        if (null === $adapter) {
            throw new RendererException(sprintf(
                'Unable to manage file \'%s\' in path (%s)', $this->templateFile, implode(', ', $dirs)
            ), RendererException::SCRIPTFILE_ERROR);
        }

        $this->getApplication()->debug(sprintf('Rendering file `%s`.', $this->templateFile));
        if (false === $isPartial) {
            $this->triggerEvent();
        }

        return $adapter->renderTemplate(
            $this->templateFile,
            $dirs,
            $this->getParam(),
            array_merge($this->getAssignedVars(), $this->getBBVariable())
        );
    }
482301
function isSearchPartIncomplete( $part )
    {
        switch ( $part['subtype'] )
        {
            case 'fulltext':
            {
                if ( !isset( $part['value'] ) || $part['value'] == '' )
                    return true;
            }
            break;

            case 'patterntext':
            {
                if ( !isset( $part['value'] ) || $part['value'] == '' )
                    return true;
            }
            break;

            case 'integer':
            {
                if ( !isset( $part['value'] ) || $part['value'] == '' )
                    return true;
            }
            break;

            case 'integers':
            {
                if ( !isset( $part['values'] ) || count( $part['values'] ) == 0 )
                    return true;
            }
            break;

            case 'byrange':
            {
                if ( !isset( $part['from'] ) || $part['from'] == '' ||
                     !isset( $part['to'] ) || $part['to'] == '' )
                    return true;
            }
            break;

            case 'byidentifier':
            {
                if ( !isset( $part['value'] ) || $part['value'] == '' )
                    return true;
            }
            break;

            case 'byidentifierrange':
            {
                if ( !isset( $part['from'] ) || $part['from'] == '' ||
                     !isset( $part['to'] ) || $part['to'] == '' )
                    return true;
            }
            break;

            case 'integersbyidentifier':
            {
                if ( !isset( $part['values'] ) || count( $part['values'] ) == 0 )
                    return true;
            }
            break;

            case 'byarea':
            {
                if ( !isset( $part['from'] ) || $part['from'] == '' ||
                     !isset( $part['to'] ) || $part['to'] == '' ||
                     !isset( $part['minvalue'] ) || $part['minvalue'] == '' ||
                     !isset( $part['maxvalue'] ) || $part['maxvalue'] == '' )
                {
                    return true;
                }
            }
        }
        return false;
    }
556954
protected function checkPart($partName, $min, $max, array $formats, \DateTime $now)
    {
        if ($this->parts[$partName] != '*') {
            foreach ($this->parseRule($this->parts[$partName], $min, $max) as $value) {
                foreach ($formats as $format) {
                    if ($now->format($format) == $value) {
                        return true;
                    }
                }
            }

            return false;
        }

        return true;
    }
661215
public function isLinkedToHisParentBy(ContentSet $contentset = null)
    {
        if (
            null !== $contentset &&
            true === array_key_exists($contentset->getUid(), $this->getInheritedZones())
        ) {
            return true;
        }

        return false;
    }
1168751
public function addStaticPartial($baseDir, $name)
    {
        $file = $this->createPartialPath($baseDir, $name);

        if (!is_file($file)) {
            throw new LogicException(sprintf('Invalid base directory or file name provided "%s"', $file));
        }

        $this->staticPartials[$name] = $file;
        return $this;
    }
185146
public function getSlideClass($isFirst = false, $isMiddle = false, $isLast = false)
    {
        return ViewTools::singleton()->array2att($this->getSlideClassNames($isFirst, $isMiddle, $isLast));
    }
476275
public function getReqInfoUrl($sIdent, $blPrint = true)
    {
        $oSysReq = getSystemReqCheck();
        $sUrl = $oSysReq->getReqInfoUrl($sIdent);

        return $blPrint ? print($sUrl) : $sUrl;
    }
690828
public static function getPartialBlock(&$vars) {
        if (isset($vars[static::PARTIALBLOCK])) {
            $id = $vars[static::PARTIALBLOCK];
            unset($vars[static::PARTIALBLOCK]);
            return $id;
        }
        return 0;
    }
733379
func (s SourceFilesystems) IsLayout(filename string) bool {
	return s.Layouts.Contains(filename)
}
1002728
public function readInet($isCollectionElement = false) {
		if ($isCollectionElement) {
			$data = $this->read($this->readShort());
		} else {
			$data = $this->data;
		}
		return inet_ntop($data);
	}
298321
public function isDesktop($userAgent = null, $httpHeaders = null)
    {
        return !$this->isMobile($userAgent, $httpHeaders) && !$this->isTablet($userAgent, $httpHeaders) && !$this->isRobot($userAgent);
    }
284603
public static function siretToSiren($siret, bool $format = false): string
    {
        $value = (string) (int) $siret;
        if (!self::isSiret($value)) {
            return '';
        }
        return $format 
             ? preg_replace('/^([0-9]{3})([0-9]{3})([0-9]{3})([0-9]{5})$/', '$1 $2 $3', $value)
             : substr($value, 0, 9);
    }
621260
private function shouldOperationFetchPartial(string $resourceClass, array $options): bool
    {
        return $this->getBooleanOperationAttribute($resourceClass, $options, 'fetch_partial', $this->fetchPartial);
    }
684848
public function renderPartial()
    {
        $this->controller->setComponentContext($this);
        $result = call_user_func_array([$this->controller, 'renderPartial'], func_get_args());
        $this->controller->setComponentContext(null);
        return $result;
    }
268862
public function getChildrenAction($isRoot = false)
    {
        $this->denyAccessUnlessGranted('ez:infocollector:read');

        $result = array();

        if ((bool) $isRoot) {
            $result[] = $this->getRootTreeData();
        } else {

            $query = new Query([
                'limit' => $this->getConfigResolver()->getParameter('admin.tree_limit', 'netgen_information_collection'),
            ]);

            $objects = $this->service->getObjectsWithCollections($query);
            foreach ($objects->contents as $content) {
                $result[] = $this->getCollections($content, $isRoot);
            }
        }

        return (new JsonResponse())->setData($result);
    }
412751
protected static function getStatusByBooleanFlags(
        bool $isPending,
        bool $isDeleted,
        bool $isBanned
    ): int {
        if ($isBanned === true) {
            return PostInterface::STATUS_DELETED;
        }

        if ($isDeleted === true) {
            return PostInterface::STATUS_DELETED;
        }

        if ($isPending === true) {
            return PostInterface::STATUS_PENDING_MODERATION;
        }

        return PostInterface::STATUS_PUBLISHED;
    }
1059531
public function getSlideAttributesHTML($isFirst = false, $isMiddle = false, $isLast = false)
    {
        return $this->getAttributesHTML($this->getSlideAttributes($isFirst, $isMiddle, $isLast));
    }