Stores section content, replacing '@parent' with the previous section
content if any.

@param string $section
@param string $content
505349
protected function _section_extend($section, $content)
    {
        if (isset($this->_sections[$section])) {
            $this->_sections[$section] = str_replace('@parent', $content, $this->_sections[$section]);
        } else {
            $this->_sections[$section] = $content;
        }
    }
664245
public function set(string $section, string $key, $value) : bool
    {
        return $this->config->set($this->concat($section, $key), $value);
    }
953093
public function addSection(\Coral\ContentBundle\Entity\Section $sections)
    {
        $this->sections[] = $sections;

        return $this;
    }
449441
public function setContent($content)
    {
        if (! $content) {
            return $this;
        }
        if (! is_array($content)) {
            $content = array( $content );
        }
        $this->clearContent();
        foreach ($content as $child) {
            $this->addChild($child);
        }

        return $this;
    }
1312841
public function setContent($content): void
    {
        try {
            $this->content = value($content);
        } catch (\Exception $e) {
            $this->content = $e->getMessage();
        }
    }
1057707
protected function extendPush($section, $content)
    {
        if (! isset($this->pushes[$section])) {
            $this->pushes[$section] = [];
        }

        if (! isset($this->pushes[$section][$this->renderCount])) {
            $this->pushes[$section][$this->renderCount] = $content;
        } else {
            $this->pushes[$section][$this->renderCount] .= $content;
        }
    }
584719
public function setProperty( $key, $value, $section = NULL )
	{
		if( $this->usesSections() )
		{
			if( $this->hasSection( $section ) && $this->hasProperty( $key, $section ) )
				$this->properties[$section][$key] = $value;
			else
				$this->addProperty( $key, $value, FALSE, TRUE, $section );
		}
		else
		{
			if( $this->hasProperty( $key ) )
				$this->properties[$key] = $value;
			else
				$this->addProperty( $key, $value, FALSE, TRUE );
		}
		return is_int( $this->write() );
	}
733262
protected function saveContent(string $hash, string $content): void
    {
        $this->adapter->save($this->namespace, $hash, $content);
        $this->cache[$hash] = $content;
    }
125444
protected static function extend($section, $content)
	{
		if (isset(static::$sections[$section])) {
			static::$sections[$section] = str_replace('@@parent', $content, static::$sections[$section]);
		} else {
			static::$sections[$section] = $content;
		}
	}
820534
public function setSection(string $section, array $data): self
    {
        $this->propertyData[$section] = $data;
        return $this;
    }
219552
public function startSection($section, $content = null)
    {
        if ($content === null) {
            if (ob_start()) {
                $this->sectionStack[] = $section;
            }
        } else {
            $this->extendSection($section, e($content));
        }
    }
1343845
public function addSections($sections)
    {
        if (current($sections) instanceof Section) {
            foreach ($sections as $section) {
                $this->addSection($section);
            }
        } else {
            foreach ($sections as $key => $value) {
                $this->addSection($key, $value);
            }
        }
    }
35562
public function renderSettingsSection($section)
    {
        if (!isset($this->settingSections[$section['id']]))
            return;

        $settingSection=$this->settingSections[$section['id']];

        echo "<a name='{$section['id']}'></a>";

        if (is_array($settingSection['description'])) {
			foreach($settingSection['description'] as $description) {
				echo "<p>$description</p>";
			}
        } else {
	        echo "<p>{$settingSection['description']}</p>";
        }
    }
920222
public function setSection( Section$section=null ):self
	{
		if( !$section ){
			$this->sectionLevel= 0;
			$this->currentSection= null;

			return $this;
		}

		if( $this->currentSection ){
			$this->throw('Nesting definition of section is forbidden.');
		}

		if( isset($this->parent->sections[$section->name]) ){
			$this->throw("Section {$section->name} already defined.");
		}

		$this->currentSection= $section;

		if( $section->name ){
			$this->parent->sections[$section->name]=$section;
		}

		$this->sectionLevel= $this->level+1;

		return $this;
	}
1302207
public void addSection(final Section SECTION) {
        if (null == SECTION) return;
        getSections().add(SECTION);
        getSections().sort(new SectionComparator());
        fireTileEvent(SECTION_EVENT);
    }
1029189
protected function storeContent($key, $content, $tag) {
		$key = $this->getRealKey ( $key );
		$item = $this->cacheInstance->getItem ( $key );
		$item->set ( $content );
		$item->addTag ( $tag );
		$this->cacheInstance->save ( $item );
	}
207716
public function putContent($content)
    {
        // write to io stream
        $this->size = fwrite($this->inputStream, $content);
        // rewind file pointer
        rewind($this->inputStream);
    }