テンプレートファイルをロードします。

@return	Object	テンプレートインスタンス
540408
public function twigLoadFileTemplate ($template_file = null, $template_dir_list = [], $options = []) {
		if (isset($this->textTemplate)) {
			return $this->twigLoadStringTemplate($this->textTemplate, $template_dir_list);
		}

		$twig = $this->twigTemplateSetting(null, $template_dir_list, $options);
		$this->templateDir = $this->templateDir ?: $this->controller;
		$this->template = $this->template ?: $this->action;

		if ($template_file === null) {
			if (!isset($this->templateFile) || $this->templateFile === null) {
				$this->templateFile = PathTrait::CreateFilePath([implode('.', [Strings::ToSnakeCase($this->template), $this->mimeType, 'twig'])]);
			}
			$template_file = $this->templateFile;
		}

		return $twig->loadTemplate($template_file);
	}
707477
public function get()
    {

        $result = $this->query->select([$this->pageTable().'.*'])->get();

        if ($this->withHidden) {
            return $result;
        }

        return $this->menuFilters->filteredChildren($result,'');

    }
1107926
public function getOwner() {

		if(false !== $this -> file -> getExists()) {

			$this -> refresh();
			
			return $this -> file -> getOwner();
		}
	}
344199
public function getFile(){
        if(!$this->isPropertyAvailable('File')){
            $this->setProperty("File", new File($this->getContext(),new ResourcePathEntity($this->getContext(),$this->getResourcePath(), "File")),false);
        }
        return $this->getProperty("File");
    }
87878
public function getDebugLocation()
    {
        $location = '';
        if ($this->class && ($this->method || $this->property)) {
            $location .= $this->fullyQualifiedName($this->class);
            if ($this->method) {
                $location .= ($this->static ? '::' : '->') . $this->method . '()';
            } elseif ($this->property) {
                $location .= ($this->static ? '::$' : '->') . $this->property;
            }
        }
        if ($this->filename) {
            if ($location !== '') {
                $location .= ' in ';
            }
            $location .= $this->filename;
        }
        if ($this->line) {
            if ($location !== '') {
                $location .= ' on';
            }
            $location .= ' line ' . $this->line;
            if ($this->character) {
                $location .= ':' . $this->character;
            }
        }

        return $location;
    }
826190
protected function get_iterator() {
        global $DB;

        // Build the SQL dynamically here
        $fieldslist = 't.' . implode(', t.', $this->fields);
        $sql = "SELECT t.id, $fieldslist
                  FROM {" . $this->tablename . "} t
                  JOIN {backup_ids_temp} b ON b.newitemid = t.id
                 WHERE b.backupid = ?
                   AND b.itemname = ?
                   AND t.blockname = 'html'";
        $params = array($this->restoreid, $this->mapping);
        return ($DB->get_recordset_sql($sql, $params));
    }
899860
public function getCreateTemplate()
    {
        if (null === $this->createTemplate) {
            $template = rtrim($this->getTemplatePrefix(), '/') . '/' . $this->getCreateSuffix();
            $this->setCreateTemplate($template);
        }

        return $this->createTemplate;
    }
1229072
public function find()
    {
        $this->getFileList()->clear();
        foreach ($this->searchLocations as $location) {
            if (! is_dir($location)) {
                continue;
            }
            $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($location));
            foreach ($iterator as $file) {
                if (! $this->filter($file)) {
                    continue;
                }
                $this->getFileList()->add($file);
            }
        }

        return $this->getFileList();
    }
723635
public function getFinder()
    {
        if (!$this->finder) {
            $this->finder = new FileViewFinder($this->getFilesystem(), $this->dumpPaths());
        }

        return $this->finder;
    }
837338
public function getSavedFile()
    {
        if($this->savedAttribute && $this->owner->{$this->savedAttribute}){
            return FileModel::findOne($this->owner->{$this->savedAttribute});
        }
    }
1207506
public static function GetActiveInstance()
    {
        static $oInstance = false;
        if (false === $oInstance) {
            /** @var $filterApi FilterApiInterface */
            $filterApi = \ChameleonSystem\CoreBundle\ServiceLocator::get('chameleon_system_shop_list_filter.filter_api');
            $baseQuery = $filterApi->getArticleListQuery();

            $oInstance = self::getInstanceForPage(self::getMyActivePageService()->getActivePage(), $baseQuery);
            if (null === $oInstance) {
                return $oInstance;
            }
            $listState = $filterApi->getArticleListFilterRelevantState();
            $oInstance->setListState($listState);

            $oFilterList = &$oInstance->GetFieldPkgShopListfilterItemList();
            $oFilterList->GoToStart();
            $aCloneList = array();
            while ($oFilterItem = &$oFilterList->Next()) {
                $filterQueryRestriction = $oFilterList->GetQueryRestriction($oFilterItem);
                $sBaseQueryHash = 'h'.md5($filterQueryRestriction);
                if (false === isset($aCloneList[$sBaseQueryHash])) {
                    $articleList = TdbShopArticleList::GetList($baseQuery);
                    if ('' !== $filterQueryRestriction) {
                        $articleList->AddFilterString($filterQueryRestriction);
                    }
                    $aCloneList[$sBaseQueryHash] = $articleList;
                }
                $oFilterItem->SetFilteredItemList($aCloneList[$sBaseQueryHash]);
            }
        }

        return $oInstance;
    }
832217
public function get()
    {
        $permalink = $this->getView()->getParam('this.permalink', null);

        if ($permalink === null) {
            return rtrim($this->getView()->getOutputDir(), '/')
                . '/'
                . ltrim($this->getRelativeFile('entries', false), '/') . '.html';
        }

        $class = 'Phrozn\\Site\\View\\OutputPath\\Entry\\' . ucfirst($permalink);
        if (!class_exists($class)) {
            $class = 'Phrozn\\Site\\View\\OutputPath\\Entry\\Parametrized';
        }

        $object = new $class($this->getView());
        return $object->get();
    }
16203
public function extract()
    {
        $iterator = new \RecursiveDirectoryIterator($this->path);
        $iterator = new \RecursiveIteratorIterator($iterator);

        $pages = [];
        $files = iterator_to_array($iterator);
        $files = array_filter($files, function($file)
        {
            return $file->isFile();
        });
        
        foreach($files as $path)
        {
            $pages[$this->exclude($path)] = compact('path');
        }
        
        return $pages;
    }
752566
public function index()
    {
        if (request()->ajax()) {
            return response()->json([
                'status' => true,
                'files' => $this->model
                    ->when('owner' != user('role'), function ($query) {
                        // Show files only to current user.
                        $query->where('user_id', user('id'));
                    })
                    ->filter(request([
                        'attachment_id',
                        'attachment_type',
                    ]))
                    ->get(),
            ], 200);
        }

        return $this->makeResponse('index', [
            'filetype' => html_secure(request('filetype', null)),
            'files' => $this->model
                ->with([
                    'attachment'
                ])
                ->when('owner' != user('role'), function ($query) {
                    // Show files only to current user.
                    $query->where('user_id', user('id'));
                })
                // Show files only to articles.
                // ->where('attachment_type', (new Article)->getMorphClass())
                ->filter(request(['filetype', 'user']))
                ->latest()
                ->paginate(18)
                ->appends(
                    request()->except(['page'])
                )
        ]);
    }
1042484
private function getViewFinder(): FileViewFinder
    {
        if (!$this->finder) {
            $this->finder = new FileViewFinder(new Filesystem(), [$this->path]);
        }

        return $this->finder;
    }
200353
public function getPrevious()
    {
        return is_null($this->previous) ? null : new ViewFile($this->project, $this->previous);
    }
127658
public function current()
    {
        // the logic here avoids redoing the same work in all iterations

        if (null === $subPathname = $this->subPath) {
            $subPathname = $this->subPath = (string) $this->getSubPath();
        }
        if ('' !== $subPathname) {
            $subPathname .= $this->directorySeparator;
        }
        $subPathname .= $this->getFilename();

        return new SplFileInfo($this->rootPath.$this->directorySeparator.$subPathname, $this->subPath, $subPathname);
    }