Evaluate this Fusion object and return the result

@return mixed
325579
public function evaluate()
    {
        $content = $this->getValue();

        /** @var $node NodeInterface */
        $node = $this->fusionValue('node');
        if (!$node instanceof NodeInterface) {
            return $content;
        }

        /** @var $property string */
        $property = $this->fusionValue('property');

        /** @var $contentContext ContentContext */
        $contentContext = $node->getContext();
        if ($contentContext->getWorkspaceName() === 'live') {
            return $content;
        }

        if (!$this->privilegeManager->isPrivilegeTargetGranted('Neos.Neos:Backend.GeneralAccess')) {
            return $content;
        }

        if ($node->isRemoved()) {
            $content = '';
        }
        return $this->contentElementEditableService->wrapContentProperty($node, $property, $content);
    }
504899
public function render()
    {
        $returnValue = $this->renderLabel();
        
        $checkAll = false;
        if (isset($this->attributes['checkAll'])) {
            $checkAll = (bool) $this->attributes['checkAll'];
            unset($this->attributes['checkAll']);
        }
        $i = 0;
        $checked = 0;
        $returnValue .= '<div class="form_radlst form_checklst plain">';
        $readOnlyOptions = $this->getReadOnly();
        foreach ($this->options as $optionId => $optionLabel) {
            $readOnly = isset($readOnlyOptions[$optionId]);
            if($readOnly){
                $returnValue .= '<div class="grid-row readonly">';
            }else{
                $returnValue .= '<div class="grid-row">';
            }

            $returnValue .= '<div class="col-1">';
            $returnValue .= "<input type='checkbox' value='{$optionId}' name='{$this->name}_{$i}' id='{$this->name}_{$i}' ";
            $returnValue .= $this->renderAttributes();

            if ($readOnly) {
                $returnValue .= "disabled='disabled' readonly='readonly' ";
            }

            if (in_array($optionId, $this->values)) {
                $returnValue .= " checked='checked' ";
                $checked ++;
            }
            $returnValue .= ' />';
            $returnValue .= '</div><div class="col-10">';
            $returnValue .= "<label class='elt_desc' for='{$this->name}_{$i}'>" . _dh($optionLabel) . "</label>";
            $returnValue .= '</div><div class="col-1">';
            if ($readOnly) {
                $readOnlyReason = $readOnlyOptions[$optionId];
                if(!empty($readOnlyReason)){
                    $returnValue .= '<span class="tooltip-trigger icon-warning" data-tooltip="~ .tooltip-content" data-tooltip-theme="info"></span><div class="tooltip-content">'._dh($readOnlyReason).'</div>';
                }
            }
            $returnValue .= '</div></div>';
            $i ++;
        }
        $returnValue .= "</div>";
        
        // add a small link
        if ($checkAll) {
            if ($checked == (count($this->options) - count($readOnlyOptions))) {
                $returnValue .= "<span class='checker-container'><a id='{$this->name}_checker' class='box-checker box-checker-uncheck' href='#'>" . __('Uncheck All') . "</a></span>";
            } else {
                $returnValue .= "<span class='checker-container'><a id='{$this->name}_checker' class='box-checker' href='#'>" . __('Check All') . "</a></span>";
            }
        }
        
        return (string) $returnValue;
    }
598529
public function toUnit()
    {
        if ($this->divisibility <= 0)
            return $this->toMicro();

        $div = pow(10, $this->getDivisibility());
        return ($this->toMicro() / $div);
    }
236010
public function evaluate()
    {
        $collection = $this->getItems();

        $result = [];
        if ($collection === null) {
            return $result;
        }
        $this->numberOfRenderedNodes = 0;
        $itemName = $this->getItemName();
        if ($itemName === null) {
            throw new FusionException('The Collection needs an itemName to be set.', 1344325771);
        }
        $itemKey = $this->getItemKey();
        $iterationName = $this->getIterationName();
        $collectionTotalCount = count($collection);

        $itemRenderPath = $this->path . '/itemRenderer';
        $fallbackRenderPath =  $this->path . '/content';
        if ($this->runtime->canRender($itemRenderPath) === false && $this->runtime->canRender($fallbackRenderPath)) {
            $itemRenderPath = $fallbackRenderPath;
        }

        foreach ($collection as $collectionKey => $collectionElement) {
            $context = $this->runtime->getCurrentContext();
            $context[$itemName] = $collectionElement;
            if ($itemKey !== null) {
                $context[$itemKey] = $collectionKey;
            }
            if ($iterationName !== null) {
                $context[$iterationName] = $this->prepareIterationInformation($collectionTotalCount);
            }

            $this->runtime->pushContextArray($context);
            $result[$collectionKey] =  $this->runtime->render($itemRenderPath);
            $this->runtime->popContext();
            $this->numberOfRenderedNodes++;
        }

        return $result;
    }
1304282
public function delta()
    {

        $mergeOptions = $this->__delta( $this->optionsData, $this->_value );


        $result = WpOption::updateOrCreate(
            ['option_name' => $this->optionsName],
            ['option_value' => json_encode( $mergeOptions )]
        );


        $this->_value = (array) $mergeOptions;

        return $result;

    }
265008
public static function merge()
	{
		$result = array();
		$args = func_get_args();
		foreach ($args as &$array) {
			if ($array instanceof \Traversable) {
				foreach ($array as $key => $value) {
					$result[$key] = $value;
				}
			}
		}
		return $result;
	}
433681
protected function evaluateNodeContext()
    {
        $eelContext = new Context($this->nodeContext);
        return $this->eelCompilingEvaluator->evaluate($this->getParsedMatcher(), $eelContext);
    }
992045
public function getResult()
	{
		$result = $this->error ?? $this->result ?? null;
		if ($result === null) {
			return null;
		}

		return Dumper::toHtml($result, [
			Dumper::COLLAPSE => true
		]);
	}
1017133
public function getIterator()
    {
        $evaluatedArray = [];
        foreach ($this->partialFusionTree as $key => $value) {
            if (!is_array($value)) {
                $evaluatedArray[$key] = $value;
            } elseif (isset($value['__objectType'])) {
                $evaluatedArray[$key] = $this->fusionRuntime->evaluate($this->path . '/' . $key);
            } elseif (isset($value['__eelExpression'])) {
                $evaluatedArray[$key] = $this->fusionRuntime->evaluate($this->path . '/' . $key, $this->templateImplementation);
            } else {
                $evaluatedArray[$key] = new FusionPathProxy($this->templateImplementation, $this->path . '/' . $key, $this->partialFusionTree[$key]);
            }
        }
        return new \ArrayIterator($evaluatedArray);
    }
621415
public function evaluate()
    {
        $content = $this->getValue();

        /** @var $node NodeInterface */
        $node = $this->fusionValue('node');
        if (!$node instanceof NodeInterface) {
            return $content;
        }

        /** @var $contentContext ContentContext */
        $contentContext = $node->getContext();
        if ($contentContext->getWorkspaceName() === 'live') {
            return $content;
        }

        if (!$this->privilegeManager->isPrivilegeTargetGranted('Neos.Neos:Backend.GeneralAccess')) {
            return $content;
        }

        if ($node->isRemoved()) {
            $content = '';
        }

        if ($this->fusionValue('renderCurrentDocumentMetadata')) {
            return $this->contentElementWrappingService->wrapCurrentDocumentMetadata($node, $content, $this->getContentElementFusionPath(), $this->getAdditionalAttributes());
        }

        return $this->contentElementWrappingService->wrapContentObject($node, $content, $this->getContentElementFusionPath(), $this->getAdditionalAttributes());
    }
299462
public function evaluate()
    {
        if ($this->file === null) {
            throw new BuildException('file attribute not set');
        }
        $this->validate();
        $myBaseDir = $this->baseDir;
        if ($myBaseDir === null) {
            $myBaseDir = $this->getProject()->getBaseDir();
        }

        /**
         * @var FileSelector $f
         */
        $file = $this->getSelectors($this->getProject());
        $f = $file[0];
        return $f->isSelected($myBaseDir, $this->file->getName(), $this->file);
    }
176056
public function evaluate()
    {
        $tagName = $this->getTagName();
        $omitClosingTag = $this->getOmitClosingTag();
        $selfClosingTag = $this->isSelfClosingTag($tagName);
        $content = '';
        if (!$omitClosingTag && !$selfClosingTag) {
            $content = $this->fusionValue('content');
        }
        return '<' . $tagName . $this->fusionValue('attributes') . ($selfClosingTag ? ' /' : '') . '>' . (!$omitClosingTag && !$selfClosingTag ? $content . '</' . $tagName . '>' : '');
    }
321061
public function run()
    {
        if ($this->help) {

            return $this->showHelp();
        }
        if ($this->confFile) {
            $fakerino = Fakerino::create($this->confFile);
        } else {
            $fakerino = Fakerino::create();
            if ($this->locale) {
                $conf = array();
                $conf['locale'] = $this->locale;
                $fakerino = Fakerino::create($conf);
            }
        }
        if (!$this->num) {
            $this->num = 1;
        }
        if ($this->table) {
            $fakerino->num($this->num)->fakeTable($this->table);

            return;
        }
        if ($this->templateSource) {
            return $fakerino->num($this->num)->fakeTemplate($this->templateSource) . PHP_EOL;
        }
        $fakerino = $fakerino->fake($this->input)->num($this->num);

        if ($this->json) {
            $result = $fakerino->toJson();
        } else {
            $result = (string)$fakerino;
        }

        return $result . PHP_EOL;
    }
1207945
protected function getResult()
    {
        $result = new TestResult($this->eventEmitter);
        $this->getLoader()->load($this->configuration->getPath());
        $this->factory->createComposite($this->configuration->getReporters());
        $this->runner->run($result);

        if ($result->getFailureCount() > 0) {
            return 1;
        }

        if ($result->isFocusedByDsl()) {
            return 2;
        }

        return 0;
    }
797120
function evaluate() {
        if ($this->_nfx == false) {
            return false;
        }
        $res = $this->_em->pfx($this->_nfx);
        if ($res === false) {
            $this->_error = $this->_em->last_error;
            return false;
        } else {
            $this->_error = false;
            return $res;
        }
    }
424800
public function evaluateDependency()
	{
		if ($this->reuseDependentData)
		{
			$hash=$this->getHash();
			if(!isset(self::$_reusableData[$hash]['dependentData']))
				self::$_reusableData[$hash]['dependentData']=$this->generateDependentData();
			$this->_data=self::$_reusableData[$hash]['dependentData'];
		}
		else
			$this->_data=$this->generateDependentData();
	}
119052
public function render()
    {
        $returnValue = (string) '';

        
        
        if(file_exists($this->path) && is_readable($this->path)){
        	
	        extract($this->variables);
	      
	        ob_start();
	        
	        common_Logger::i('including \''.$this->path.'\' into form', array('TAO'));
	        
	       include $this->path;
	        
	        $returnValue = ob_get_contents();
	        
	        ob_end_clean();
	        
	        //clean the extracted variables
	        foreach($this->variables as $key => $name){
	        	unset($$key);
	        }
        	
        }
        
        

        return (string) $returnValue;
    }