Load blueprint file.

@param  string  $name  Name of the blueprint.
@return Blueprint
357077
protected function loadFile($name)
    {
        $blueprint = new Blueprint($name);

        if (\is_array($this->search) || \is_object($this->search)) {
            // Page types.
            $blueprint->setOverrides($this->search);
            $blueprint->setContext('blueprints://pages');
        } else {
            $blueprint->setContext($this->search);
        }

        return $blueprint->load()->init();
    }
757231
public static function load($groupname)
    {
        $groups = self::groups();

        $content = $groups[$groupname] ?? [];
        $content += ['groupname' => $groupname];

        $blueprints = new Blueprints();
        $blueprint = $blueprints->get('user/group');

        return new Group($content, $blueprint);
    }
1200079
public function getFile($name)
    {
        if (!isset($this->files)) {
            $files = $this->getUploadedFiles();
            foreach ($files as $file) {
                $key = $file->getKey();
                if (isset($key)) {
                    $this->files[$key] = $file;
                } else {
                    $this->files[] = $file;
                }
            }
        }
        if (isset($this->files[$name])) {
            return $this->files[$name];
        } else {
            throw new \InvalidArgumentException("Upload file '$name' is empty");
        }
    }
241466
protected function load($name)
    {
        if ($name instanceof Template) {
            return $name;
        }

        try {
            return $this->environment->loadTemplate((string) $name);
        } catch (LoaderError $e) {
            throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
        }
    }
214987
public static function load($name)
    {
        $fixturePath = realpath(static::$fixturePath . '/' . $name);

        if (empty($fixturePath)) {
            throw new \RuntimeException(sprintf(
                'Unknown fixture %s',
                $name
            ));
        }

        return file_get_contents($fixturePath);
    }
121823
public function getChild($name)
    {
        $path = $this->path.'/'.$name;

        if (!file_exists($path)) {
            throw new NotFound('File could not be located');
        }
        if ('.' == $name || '..' == $name) {
            throw new Forbidden('Permission denied to . and ..');
        }
        if (is_dir($path)) {
            return new self($path, $this->acl, $this->owner);
        } else {
            return new File($path, $this->acl, $this->owner);
        }
    }
532826
protected function getCommandsByName(Blueprint $blueprint, $name)
    {
        return array_filter($blueprint->getCommands(), function ($value) use ($name) {
            return $value->name === $name;
        });
    }
4076
public static function loadFile( $file, $name ) {

		if( !isset( $file ) ) {

			$file	= new File();
		}

		$file->load( Yii::$app->request->post(), $name );

		return $file;
	}
1212017
public static function load($name) {
		if( empty($_FILES[$name]['name']) ) { /*text('load() Name not found'); */return null; }
		if( is_array($_FILES[$name]['name']) ) {
// 			text('load() Name is an array');
// 			$r	= array();
			return static::loadPath($_FILES[$name]);
// 			foreach( $_FILES[$name]['name'] as $ind => $fileName ) {
// 				if( empty($fileName) ) { continue; }
// 				static::loadPath($r, $_FILES[$name]);
// // 				$r[] = new static($fileName, $_FILES[$name]['size'][$ind], $_FILES[$name]['tmp_name'][$ind], $_FILES[$name]['error'][$ind]);
// 			}
// 			return $r;
		}
// 		text('load() Name is a single object');
		return new static($_FILES[$name]['name'], $_FILES[$name]['size'], $_FILES[$name]['tmp_name'], $_FILES[$name]['error']);
// 		return !empty($_FILES[$name]['name']) ? new static($_FILES[$name]['name'], $_FILES[$name]['size'], $_FILES[$name]['tmp_name'], $_FILES[$name]['error']) : null;
	}
35803
public function file($name = null)
    {
        return File::create()
            ->attributeIf($name, 'name', $this->fieldName($name))
            ->attributeIf($name, 'id', $this->fieldName($name));
    }
1209150
public function getSource($name)
    {
        $this->getFileOrFail($name);

        return $this->filesystem->read($this->resolveTemplateName($name));
    }
108697
protected function loadFile($name, $filename)
    {
        $file = CompiledYamlFile::instance($filename);
        if (preg_match('|languages\.yaml$|', $filename)) {
            $this->object->mergeRecursive((array) $file->content());
        } else {
            $this->object->mergeRecursive([$name => $file->content()]);
        }
        $file->free();
    }
713591
static function load($name){

		$lang = Config::read('App.Base.language');
		
		$prop = Loader::getName($name,'locale'.DS.$lang);
		
		// if file already loaded? if so done!
		if(isset(self::$language[$prop->app])){
			return self::$language[$prop->app];
		}
		
		// is file not exists?
		if(!file_exists($prop->path)){
			user_error('Language Not Found '.$prop->path);
			exit;
		}

		self::$language[$prop->app] = (require_once $prop->path);
	}
949972
public function getFile(string $name)
    {
        $contentArea = $this->content->getFile($name);

        if ($contentArea) {
            return $contentArea->file;
        }

        return null;
    }
1328313
public static function loadProfileByName($name)
  {
    $list = self::getProfileList();
    $definition = $list[$name];

    return self::getSource($definition['source'])->load($definition);
  }
797432
protected function get($name)
    {
        $this->load();

        return isset($this->lng[$name]) ? $this->lng[$name] : $name;
    }
1220140
protected function loadIndexSchema($name)
    {
        $index = new IndexSchema();
        $this->resolveIndexNames($index, $name);
        $this->resolveIndexType($index);

        if ($this->findColumns($index)) {
            return $index;
        }
        return null;
    }