Получить код формы

@param string $name

@return string

@since 1.01
556500
public function getFormCode($name)
	{
		$templates = $this->getTemplates();
		return $templates->get($name, $this->plugin->name);
	}
1087535
public function getFormat($name)
    {
        if (isset($this->formats[$name])) {
            return $this->formats[$name];
        }

        return null;
    }
1323980
private function getFullQualifiedAssetName($name)
    {
        $name = $this->getUnquotedAssetName($name);

        if (strpos($name, '.') === false) {
            $name = $this->getName() . '.' . $name;
        }

        return strtolower($name);
    }
974977
protected function getPathWorkflowFile($name)
    {
        $paths = static::getDefaultPathsToWorkflows();

        $pathWorkflowFile = null;
        foreach ($paths as $path) {
            $path = realpath($path);
            if ($path) {
                $filePath = $path . DIRECTORY_SEPARATOR . $name;
                if (file_exists($filePath)) {
                    $pathWorkflowFile = $filePath;
                    break;
                }
            }
        }

        if (null === $pathWorkflowFile) {
            $errMsg = 'Не удалось найти файл workflow';
            throw new FactoryException($errMsg);
        }

        return $pathWorkflowFile;
    }
1309719
public function getSource($name) {
        $path = $this->findTemplate($name);
        if(!$path){
            \Debug::stop($name,'Шаблон "'.$name.'" не найден');
        }
        return file_get_contents($path);
    }
1211477
public static function convertName($name)
    {
        if (0 === strpos($name, '@') && false !== strpos($name, '/')) {
            $name = ltrim(str_replace('/', '--', $name), '@');
        }

        return $name;
    }
1195120
public function generateView($name)
    {
        if (!$content = $this->getViewContent($name)) {
            return '';
        }

        $sectionSegments = $this->sectionSegments;

        if ($this->viewsDir) {
            array_unshift($sectionSegments, $this->viewsDir);
        }

        $path = base_path('resources/views/'.implode('/', $sectionSegments).'/'.$name.'.php');

        if (is_file($path)) {
            return '';
        }

        $this->createMissingDirs($path);

        return file_put_contents($path, $content) !== false ? $path : '';
    }
1051439
protected function getStub($name)
    {
        if (is_file($path = base_path("resources/stubs/vendor/crud-generator/{$this->stubsGroup}/$name.stub"))) {
            return file_get_contents($path);
        }

        if (is_file($path = __DIR__."/../resources/stubs/{$this->stubsGroup}/$name.stub")) {
            return file_get_contents($path);
        }

        return '';
    }
784173
public function server(string $name): string {
        if (!isset($this->server[$name])) {
            return "";
        }
        return $this->server[$name];
    }
805156
public static function get(string $name)
    {
        return (isset($_GET[$name]) && $_GET[$name] != '') ? $_GET[$name] : '';
    }
932395
protected function getTokenValue($name)
    {
        $method = "get{$name}";
        
        if ($this->hasMethod($method)) {
            return $this->{$method}();
        }
        
        return $this->$name;
    }
394412
public function getUrlFromName($name)
    {
        $searchEngineNames = $this->getNames();
        if (isset($searchEngineNames[$name])) {
            $url = 'http://' . $searchEngineNames[$name];
        } else {
            $url = 'URL unknown!';
        }
        return $url;
    }
420132
public function post(string $name): string {
        if (!isset($this->post[$name])) {
            return "";
        }
        return $this->post[$name];
    }
1083968
public function getFieldCaption(string $name): string
    {
        $caption = $this->getFieldProperty($name, 'caption');

        if ($caption) {
            return $this->translate($caption);
        }

        return $name;
    }
338716
protected function getPathToRelationshipId(string $name): string
    {
        return $this->getPathToRelationship($name) . '/' .
            DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_ID;
    }
594018
public function getOptionalField(string $name) : string
    {
        if (isset($this->fields[$name])) {
            if ($this->fields[$name]) {
                return \array_shift($this->fields[$name]);
            }
        }

        return '';
    }
265099
public function getField(string $name)
    {
        $name = trim($name);
        if (!$this->isFieldSet($name)) {
            return null;
        }

        $field_key = array_search($name, $this->keys);
        return $this->method[$field_key] ?? $_FILES[$field_key];
    }