Hier werden die verschiedenen Moeglichen Werte erkannt und jenachdem wird mit der passenden
Methode weitergefahren <br />
EBNF:<br />
<code>string | number | dynamic | sharp;</code>

@return CFXD Element
@throws PageException
772678
private Ref checker() throws PageException {

	Ref ref = null;
	// String
	if (cfml.isCurrentQuoter()) {
	    // mode=STATIC; is at the end of the string function because must set after execution
	    return string();
	}
	// Number
	if (cfml.isCurrentDigit() || cfml.isCurrent('.')) {
	    // mode=STATIC; is at the end of the string function because must set after execution
	    return number();
	}
	// Dynamic
	if ((ref = dynamic()) != null) {
	    mode = DYNAMIC;
	    return ref;
	}
	// Sharp
	if (!limited && (ref = sharp()) != null) {
	    mode = DYNAMIC;
	    return ref;
	}
	// JSON
	if ((ref = json(isJson ? JSON_ARRAY : LITERAL_ARRAY, '[', ']')) != null) {
	    mode = DYNAMIC;
	    return ref;
	}
	if ((ref = json(isJson ? JSON_STRUCT : LITERAL_STRUCT, '{', '}')) != null) {
	    mode = DYNAMIC;
	    return ref;
	}

	if (cfml.isAfterLast() && cfml.toString().trim().length() == 0) return new LString("");

	// else Error
	String str = cfml.toString();
	int pos = cfml.getPos();
	if (str.length() > 100) {
	    // Failure is in the beginning
	    if (pos <= 10) {
		str = str.substring(0, 20) + " ...";
	    }
	    // Failure is in the end
	    else if ((str.length() - pos) <= 10) {
		str = "... " + str.substring(str.length() - 20, str.length());
	    }
	    else {
		str = "... " + str.substring(pos - 10, pos + 10) + " ...";
	    }
	}
	throw new InterpreterException("Syntax Error, Invalid Construct", "at position " + (pos + 1) + " in [" + str + "]");
    }
998953
public String transform(String html, URL url, boolean setBaseTag) throws PageException {
	StringBuffer target = new StringBuffer();
	SourceCode cfml = new SourceCode(html, false, CFMLEngine.DIALECT_CFML);
	while (!cfml.isAfterLast()) {
	    if (cfml.forwardIfCurrent('<')) {
		target.append('<');
		try {
		    for (int i = 0; i < tags.length; i++) {
			if (cfml.forwardIfCurrent(tags[i].tag + " ")) {
			    target.append(tags[i].tag + " ");
			    transformTag(target, cfml, tags[i], url);
			}
		    }
		}
		catch (MalformedURLException me) {
		    throw Caster.toPageException(me);
		}
	    }
	    else {
		target.append(cfml.getCurrent());
		cfml.next();
	    }

	}
	if (!setBaseTag) return target.toString();

	html = target.toString();
	String prefix = "", postfix = "";
	int index = StringUtil.indexOfIgnoreCase(html, "</head>");
	if (index == -1) {
	    prefix = "<head>";
	    postfix = "</head>";
	    index = StringUtil.indexOfIgnoreCase(html, "</html>");
	}

	if (index != -1) {
	    StringBuffer sb = new StringBuffer();
	    sb.append(html.substring(0, index));
	    String port = url.getPort() == -1 ? "" : ":" + url.getPort();
	    sb.append(prefix + "<base href=\"" + (url.getProtocol() + "://" + url.getHost() + port) + "\">" + postfix);
	    sb.append(html.substring(index));
	    html = sb.toString();

	}
	return html;
    }
1002018
public int doStartTag()
            throws JspException
    {
        // evaluate the datasource and disabled state.
        Object val = evaluateDataSource();
        if (val != null)
            _match = val.toString();

        // Store this tag itself as a page attribute
        pageContext.setAttribute(RADIOBUTTONGROUP_KEY, this);
        _defaultRadio = evaluateDefaultValue();

        // see if there are errors in the evaluation
        if (hasErrors())
            return SKIP_BODY;

        ServletRequest req = pageContext.getRequest();
        if (_cr == null)
            _cr = TagRenderingBase.Factory.getConstantRendering(req);

        _writer = new WriteRenderAppender(pageContext);
        if (isVertical()) {
            _cr.TABLE(_writer);
        }

        // if this is a repeater then we shouid prime the pump...
        _dynamicAttrs = evaluateOptionsDataSource();
        assert (_dynamicAttrs != null);
        assert (_dynamicAttrs instanceof Map ||
                _dynamicAttrs instanceof Iterator);

        if (_repeater) {
            if (_dynamicAttrs instanceof Map) {
                _dynamicAttrs = ((Map) _dynamicAttrs).entrySet().iterator();

            }
            if (!(_dynamicAttrs instanceof Iterator)) {
                String s = Bundle.getString("Tags_OptionsDSIteratorError");
                registerTagError(s, null);
                return SKIP_BODY;
            }
            while (((Iterator) _dynamicAttrs).hasNext()) {
                _repCurItem = ((Iterator) _dynamicAttrs).next();
                if (_repCurItem != null)
                    break;
            }
            if (isVertical())
                _cr.TR_TD(_writer);

            DataAccessProviderStack.addDataAccessProvider(this, pageContext);
        }
        //write(results.toString());
        // This is basically this is if enough for 5 options
        _saveBody = new InternalStringBuilder(640);
        return EVAL_BODY_INCLUDE;
    }
660450
public function setFromUrl()
    {
        // Cache?
        $cacheRebuild = true;
        if ($this->options->cache) {
            $cacheKey = md5($this->get());
            $cacheData = $this->cache->get($cacheKey);

            if (!empty($cacheData)) {
                $cacheRebuild = false;
                $this->set($cacheData);
            }
        }

        // Get dom
        if ($cacheRebuild) {
            $dom = new \PHPHtmlParser\Dom;
            $dom->load($this->url, $this->PHPHtmlParserOptions);
            $element = $dom->find($this->selector)[0];

            if (!empty($element)) {
                // Filter?
                if (!empty($this->filter->selector)) {
                    $newElement = new \PHPHtmlParser\Dom;
                    $newElement->load($element->outerHtml, $this->PHPHtmlParserOptions);
                    $filter = $newElement->find($this->filter->selector);

                    if (!empty($filter)) {
                        $i = 0;
                        foreach ($filter as $item) {
                            if ($i >= $this->filter->length) {
                                $item->delete();
                            }
                            $i++;
                        }
                    }
                    unset($filter);

                    $html = $newElement->outerHtml;

                } else {
                    $html = $element->outerHtml;
                }

                $this->set($html);

                if ($this->options->cache && !empty($cacheKey)) {
                    $this->cache->set($cacheKey, $html);
                }
            }
        }

        return $this;
    }
187767
protected function getPageButtonsArrayText()
    {
        if (empty($this->buttons)) {
            return Builder::getArray(array('' => 0), true);
        }
        $pageButtons = array();
        foreach ($this->buttons as $pageButton) {
            $pageButtons[$pageButton->getControl()
                                    ->getId()] = $pageButton->getPagingCount();
        }
        return Builder::getArray($pageButtons, true);
    }
955944
public function selectPage()
    {
        if ($this->pageTotal <= 1) {
            return '';
        }

        $page = (int)$this->getOption('page', 1);
        $select = ' <select class="page-num-input" style="max-height: 400px"
        onchange="javascript:location.href=\'' . $this->getUrl() . '\'+this.value;">';

        for ($i = 1; $i <= $this->pageTotal; $i++) {
            $select .= ($page === $i) ?
                '<option value="' . $i . '" selected="selected"">' . $i . '</option>' :
                '<option value="' . $i . '" >' . $i . '</option>';
        }

        $select .= '</select> ';

        $this->html['select'] = $select;

        return $this;
    }
16604
public function getRenderValue()
    {
        $name = $this->getName();
        $defaultValue = $this->getDefaultValue();
        $bean = $this->getBean();
        $value = "";

        if ($this->isCreate()) {

            // Create Page
            // Use Default Value if not null
            if ($this->value !== null) {
                $value = $this->value;
            } else if ($defaultValue !== null) {
                $value = $defaultValue;
            }

        } else {

            // Edit Page
            if ($this->getFieldRelation() == Field::MANY_TO_MANY) {
                // Many to many, Value list
                $keyName = "shared". ucfirst($name) . "List";

                $relatedBeans = $bean->{$keyName};
                $value = [];

                foreach ($relatedBeans as $relatedBean) {
                    $value[$relatedBean->id] = $relatedBean->id;
                }

            } else {

                // Single Value
                if ($this->isOverwriteValue() && $this->value !== null) {
                    // Use the value set by user.
                    $value = $this->value;
                } else {
                    // Use the value from Database
                    $value = $this->getFieldType()->beforeRenderValue($bean->{$name});

                    // Escape the html
                    $value = htmlspecialchars($value);
                }
            }

        }

        return $value;
    }
903583
private function createFullPages()
    {
        $pageStart = 1;
        $pageEnd = $this->maxPage;
        $tmp = $this->currentPage;
        $pager = [];
        while (($pageEnd - $tmp) < 4) {
            $tmp--; // @codeCoverageIgnore
        }

        if ($tmp != $this->currentPage) {
            $pageStart = 1 + ($tmp - 5); // @codeCoverageIgnore
        }

        if ($this->currentPage > 5 && $this->currentPage == $tmp) {
            $pageStart = 1 + ($this->currentPage - 5);
        }

        $page = 0;
        for ($i = $pageStart; $i < $tmp; $i++) {
            $pager[$page] = '<a href="' . $this->buildHref($i) . '">' . $i . '</a>';
            $page++;
        }

        for ($i = $tmp; $i <= $pageEnd && $page < 9; $i++) {
            $pager[$page] = $this->buildAnchor($i);
            $page++;
        }
        return $pager;
    }
702798
private void doGetComponent() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	// Base Component
	try {
	    PageSource psCFML = config.getBaseComponentPageSource(CFMLEngine.DIALECT_CFML);

	    if (psCFML != null && psCFML.exists()) sct.set("baseComponentTemplateCFML", psCFML.getDisplayPath());
	    else sct.set("baseComponentTemplateCFML", "");
	}
	catch (PageException e) {
	    sct.set("baseComponentTemplateCFML", "");
	}
	try {
	    PageSource psLucee = config.getBaseComponentPageSource(CFMLEngine.DIALECT_LUCEE);

	    if (psLucee != null && psLucee.exists()) sct.set("baseComponentTemplateLucee", psLucee.getDisplayPath());
	    else sct.set("baseComponentTemplateLucee", "");

	}
	catch (PageException e) {
	    sct.set("baseComponentTemplateLucee", "");
	}
	sct.set("strBaseComponentTemplateCFML", config.getBaseComponentTemplate(CFMLEngine.DIALECT_CFML));
	sct.set("strBaseComponentTemplateLucee", config.getBaseComponentTemplate(CFMLEngine.DIALECT_LUCEE));

	// dump template
	try {
	    PageSource ps = ((PageContextImpl) pageContext).getPageSourceExisting(config.getComponentDumpTemplate());
	    if (ps != null) sct.set("componentDumpTemplate", ps.getDisplayPath());
	    else sct.set("componentDumpTemplate", "");
	}
	catch (PageException e) {
	    sct.set("componentDumpTemplate", "");
	}
	sct.set("strComponentDumpTemplate", config.getComponentDumpTemplate());

	sct.set("deepSearch", Caster.toBoolean(config.doComponentDeepSearch()));
	sct.set("componentDataMemberDefaultAccess", ComponentUtil.toStringAccess(config.getComponentDataMemberDefaultAccess()));
	sct.set("triggerDataMember", Caster.toBoolean(config.getTriggerComponentDataMember()));
	sct.set("useShadow", Caster.toBoolean(config.useComponentShadow()));
	sct.set("ComponentDefaultImport", config.getComponentDefaultImport());
	sct.set("componentLocalSearch", config.getComponentLocalSearch());
	sct.set("componentPathCache", config.useComponentPathCache());

    }
336681
public function actionGet() 
	{
		if(Yii::app()->request->isAjaxRequest) {
			$criteria=new CDbCriteria; 
			$criteria->condition = 'publish = :publish'; 
			$criteria->params = array(':publish'=>1); 
			$criteria->order = 'creation_date DESC'; 

			$dataProvider = new CActiveDataProvider('OmmuWalls', array( 
				'criteria'=>$criteria, 
				'pagination'=>array( 
					'pageSize'=>5, 
				), 
			));
			
			$data = '';
			$wall = $dataProvider->getData();
			if(!empty($wall)) {
				foreach($wall as $key => $item) {
					$data .= Utility::otherDecode($this->renderPartial('_view', array('data'=>$item), true, false));
				}
			}
			$pager = OFunction::getDataProviderPager($dataProvider);
			if($pager[nextPage] != '0') {
				$summaryPager = 'Displaying 1-'.($pager[currentPage]*$pager[pageSize]).' of '.$pager[itemCount].' results.';
			} else {
				$summaryPager = 'Displaying 1-'.$pager[itemCount].' of '.$pager[itemCount].' results.';
			}
			$nextPager = $pager['nextPage'] != 0 ? Yii::app()->controller->createUrl('get', array($pager['pageVar']=>$pager['nextPage'])) : 0;
			
			$return = array(
				'type'=>0,
				'data'=>$data,
				'pager'=>$pager,
				'summarypager'=>$summaryPager,
				'nextpage'=>$nextPager,
			);
			echo CJSON::encode($return);
			
		} else
			throw new CHttpException(404, Yii::t('phrase', 'The requested page does not exist.'));
	}
1371212
public function indexAction()
    {
        $request = $this->getCurrentRequest();
        $page = $request->get('page', 1);
        $displayMax = $request->get('max', 9);
        $displayMode = $request->get('mode', 'grid');
        $filter = $request->get('filter');
        $option = $request->get('option');

        if (!\in_array($displayMode, ['grid'], true)) { // "list" mode will be added later
            throw new NotFoundHttpException(sprintf('Given display_mode "%s" doesn\'t exist.', $displayMode));
        }

        $category = $this->retrieveCategoryFromQueryString();

        $this->get('sonata.seo.page')->setTitle($category ? $category->getName() : $this->get('translator')->trans('catalog_index_title'));

        $pager = $this->get('knp_paginator');
        $pagination = $pager->paginate($this->getProductSetManager()->getCategoryActiveProductsQueryBuilder($category, $filter, $option), $page, $displayMax);

        return $this->render('SonataProductBundle:Catalog:index.html.twig', [
            'display_mode' => $displayMode,
            'pager' => $pagination,
            'currency' => $this->getCurrencyDetector()->getCurrency(),
            'category' => $category,
            'provider' => $this->getProviderFromCategory($category),
        ]);
    }
556524
@Override
    public int doEndTag() throws JspException {

        ServletRequest req = pageContext.getRequest();
        ServletResponse res = pageContext.getResponse();

        if (CmsFlexController.isCmsRequest(req)) {
            // this will always be true if the page is called through OpenCms
            CmsObject cms = CmsFlexController.getCmsObject(req);
            String target = null;

            // try to find out what to do
            if (m_target != null) {
                // option 1: target is set with "page" or "file" parameter
                target = m_target + getSuffix();
            } else if (m_property != null) {
                // option 2: target is set with "property" parameter
                try {
                    String prop = cms.readPropertyObject(cms.getRequestContext().getUri(), m_property, true).getValue();
                    if (prop != null) {
                        target = prop + getSuffix();
                    }
                } catch (RuntimeException e) {
                    // target must be null
                    target = null;
                } catch (Exception e) {
                    // target will be null
                    e = null;
                }
            } else if (m_attribute != null) {
                // option 3: target is set in "attribute" parameter
                try {
                    String attr = (String)req.getAttribute(m_attribute);
                    if (attr != null) {
                        target = attr + getSuffix();
                    }
                } catch (RuntimeException e) {
                    // target must be null
                    target = null;
                } catch (Exception e) {
                    // target will be null
                    e = null;
                }
            } else {
                // option 4: target might be set in body
                String body = null;
                if (getBodyContent() != null) {
                    body = getBodyContent().getString();
                    if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(body)) {
                        // target IS set in body
                        target = body + getSuffix();
                    }
                    // else target is not set at all, default will be used
                }
            }

            // now perform the include action
            includeTagAction(
                pageContext,
                target,
                m_element,
                null,
                m_editable,
                m_cacheable,
                m_parameterMap,
                CmsRequestUtil.getAtrributeMap(req),
                req,
                res);

            release();
        }

        return EVAL_PAGE;
    }
1086614
public static Object call(PageContext pc, String sql, Object params, Struct options, String name) throws PageException {
	PageContextImpl pci = (PageContextImpl) pc;
	lucee.runtime.tag.Query qry = (lucee.runtime.tag.Query) pci.use(lucee.runtime.tag.Query.class.getName(), "cfquery", TagLibTag.ATTRIBUTE_TYPE_FIXED);

	try {
	    try {
		qry.hasBody(true);
		// set attributes
		qry.setReturnVariable(true);
		qry.setName(StringUtil.isEmpty(name) ? "QueryExecute" : name);
		if (options != null) TagUtil.setAttributeCollection(pc, qry, null, options, TagLibTag.ATTRIBUTE_TYPE_FIXED);
		qry.setParams(params);

		int res = qry.doStartTag();
		pc.initBody(qry, res);
		pc.forceWrite(sql);
		qry.doAfterBody();
	    }
	    catch (Throwable t) {
		ExceptionUtil.rethrowIfNecessary(t);
		try {
		    qry.doCatch(t);
		}
		catch (Throwable t2) {
		    ExceptionUtil.rethrowIfNecessary(t);
		    throw Caster.toPageException(t2);
		}
	    }
	    finally {
		pc.popBody();
		qry.doFinally();
	    }
	    qry.doEndTag();
	    return qry.getReturnVariable();
	}
	finally {
	    pci.reuse(qry);
	}

    }
835067
private Ref divMultiOp() throws PageException {
	Ref ref = expoOp();

	while (!cfml.isLast()) {
	    // Multiply Operation
	    if (cfml.forwardIfCurrent('*')) {
		ref = _multi(ref);
	    }
	    // Divide Operation
	    else if (cfml.isCurrent('/') && (!cfml.isCurrent("/>"))) {
		cfml.next();
		ref = _div(ref);
	    }
	    // Divide Operation
	    else if (cfml.isCurrent('\\')) {
		cfml.next();
		ref = _intdiv(ref);
	    }
	    else {
		break;
	    }
	}
	return ref;
    }
288144
public static function preRenderWebformElement($element) {
    $webform = ($element['#webform'] instanceof WebformInterface) ? $element['#webform'] : WebformEntity::load($element['#webform']);
    if (!$webform) {
      return $element;
    }

    if ($webform->access('submission_create')) {
      $values = [];

      // Set data.
      $values['data'] = $element['#default_data'];

      // Set source entity type and id.
      if (!empty($element['#entity']) && $element['#entity'] instanceof EntityInterface) {
        $values['entity_type'] = $element['#entity']->getEntityTypeId();
        $values['entity_id'] = $element['#entity']->id();
      }
      elseif (!empty($element['#entity_type']) && !empty($element['#entity_id'])) {
        $values['entity_type'] = $element['#entity_type'];
        $values['entity_id'] = $element['#entity_id'];
      }

      if (!empty($element['#override'])) {
        $new_settings = $element['#override'];
        $webform->setSettingsOverride($new_settings);
        $values['strawberryfield:override'] = $new_settings;

      }

      // Build the webform.
      $element['webform_build'] = $webform->getSubmissionForm($values);

      // Set custom form action.
      if (!empty($element['#action'])) {
        $element['webform_build']['#action'] = $element['#action'];
      }
    }
    elseif ($webform->getSetting('form_access_denied') !== WebformInterface::ACCESS_DENIED_DEFAULT) {
      // Set access denied message.
      $element['webform_access_denied'] = static::buildAccessDenied($webform);
    }
    else {
      // Add config and webform to cache contexts.
      $config = \Drupal::configFactory()->get('webform.settings');
      $renderer = \Drupal::service('renderer');
      $renderer->addCacheableDependency($element, $config);
      $renderer->addCacheableDependency($element, $webform);
    }

    return $element;
  }
678916
public void updateJavaCFX(String name, ClassDefinition cd) throws PageException {
	checkWriteAccess();
	boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_CFX_SETTING);

	if (!hasAccess) throw new SecurityException("no access to change cfx settings");

	if (name == null || name.length() == 0) throw new ExpressionException("class name can't be a empty value");

	renameOldstyleCFX();

	Element tags = _getRootElement("ext-tags");

	// Update
	Element[] children = XMLConfigWebFactory.getChildren(tags, "ext-tag");
	for (int i = 0; i < children.length; i++) {
	    String n = children[i].getAttribute("name");

	    if (n != null && n.equalsIgnoreCase(name)) {
		Element el = children[i];
		if (!"java".equalsIgnoreCase(el.getAttribute("type"))) throw new ExpressionException("there is already a c++ cfx tag with this name");
		setClass(el, CustomTag.class, "", cd);
		el.setAttribute("type", "java");
		return;
	    }

	}

	// Insert
	Element el = doc.createElement("ext-tag");
	tags.appendChild(el);
	setClass(el, CustomTag.class, "", cd);
	el.setAttribute("name", name);
	el.setAttribute("type", "java");
    }
297718
public int doEndTag() throws JspException
    {
        ServletRequest req = pageContext.getRequest();

        // Create an appropriate "input" element based on our parameters
        if (_password) {
            _state.type = INPUT_PASSWORD;
        }
        else {
            _state.type = INPUT_TEXT;
        }


        // Create the state for the input tag
        ByRef ref = new ByRef();
        nameHtmlControl(_state, ref);

        _state.disabled = isDisabled();

        // Create the text value of the TextBox
        Object textObject = evaluateDataSource();
        if ((textObject == null) || (textObject.toString().length() == 0)) {
            textObject = _defaultValue;
        }

        // Get the text value for the textbox, the result
        String text = null;
        if (textObject != null) {
            text = formatText(textObject);
            InternalStringBuilder sb = new InternalStringBuilder(text.length() + 16);
            StringBuilderRenderAppender sbAppend = new StringBuilderRenderAppender(sb);
            HtmlUtils.filter(text, sbAppend);
            text = sb.toString();
        }
        _state.value = text;

        // if there were format errors then report them
        if (_formatErrors) {
            if (bodyContent != null) {
                String value = bodyContent.getString().trim();
                bodyContent.clearBody();
                write(value);
            }
        }

        if (hasErrors())
            return reportAndExit(EVAL_PAGE);

        // create the input tag.
        WriteRenderAppender writer = new WriteRenderAppender(pageContext);
        TagRenderingBase br = TagRenderingBase.Factory.getRendering(TagRenderingBase.INPUT_TEXT_TAG, req);
        assert(br != null);

        br.doStartTag(writer, _state);
        br.doEndTag(writer);

        // write any script that needs to be written
        if (!ref.isNull())
            write((String) ref.getRef());

        localRelease();
        return EVAL_PAGE;
    }