Nette\Http\Session::getSection PHP Method

getSection() public method

Returns specified session section.
public getSection ( $section, $class = SessionSection::class ) : SessionSection
return SessionSection
    public function getSection($section, $class = SessionSection::class)
    {
        return new $class($this, $section);
    }

Usage Example

 /**
  * @return AjaxFileUploaderControl
  */
 public function invoke($basePath)
 {
     $control = new AjaxFileUploaderControl($this->ajaxDir, $basePath . $this->getRelativeAjaxPath(), $this->session->getSection('ajaxFileUploader'));
     $control->onFileUpload[] = $this->handleFileUpload;
     $control->onAfterFileUpload[] = $this->handleFileUploadUnlink;
     return $control;
 }
All Usage Examples Of Nette\Http\Session::getSection