Пример #1
0
 /**
  * @param AdviniAdapter $adapter
  * @param string $value
  *
  * @return void
  */
 public function processValue(AdviniAdapter $adapter, &$value)
 {
     while (false !== strpos($value, static::PROCESS_TOKEN)) {
         $adapter->matchValue($value, static::PROCESS_TOKEN, static::PROCESS_PATTERN);
     }
 }
Пример #2
0
 /**
  * @param AdviniAdapter $adapter
  * @param string $value
  *
  * @return void
  */
 public function processValue(AdviniAdapter $adapter, &$value)
 {
     $matches = $adapter->matchValue($value, self::PROCESS_TOKEN, '\\[( *[^\\[\\]]+ *)\\]');
     $value = $this->importFromFile($adapter, trim($matches[1]));
 }