PHP code example of jeyroik / extas-values-self
1. Go to this page and download the library: Download jeyroik/extas-values-self library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jeyroik / extas-values-self example snippets
use extas\components\values\WithComplexValue;
$item = new class ([WithComplexValue::FIELD__VALUE => '@parent.name']) extends WithComplexValue {
use \extas\components\THasName;
};
$item->setName('test');
$item['replaces'] = ['parent' => $item];
echo $item->buildValue($item->getValue()); // test