Answers the asset folder used by the receiver.

@return string
352828
protected function getAssetFolder()
    {
        $folders = $this->owner->config()->asset_folders;
        
        if (is_array($folders) && isset($folders[static::class])) {
            return $folders[static::class];
        }
    }
39727
public static function getAssets(){

    // first call? include styles and javascript
    if(static::$didAssets)
      return '';

    ob_start();

    if(ref::config('stylePath') !== false){
      ?>
      <style scoped>
        <?php readfile(str_replace('{:dir}', __DIR__, ref::config('stylePath'))); ?>
      </style>
      <?php
    }

    if(ref::config('scriptPath') !== false){
      ?>
      <script>
        <?php readfile(str_replace('{:dir}', __DIR__, ref::config('scriptPath'))); ?>
      </script>
      <?php
    }

    // normalize space and remove comments
    $output = preg_replace('/\s+/', ' ', trim(ob_get_clean()));
    $output = preg_replace('!/\*.*?\*/!s', '', $output);
    $output = preg_replace('/\n\s*\n/', "\n", $output);

    static::$didAssets = true;
    return $output;
  }
578350
public function getRequiredAssetsToOutput()
    {
        $required = $this->requiredAssetGroup->getAssetPointers();
        $assetPointers = array_filter($required, array('\Concrete\Core\Http\ResponseAssetGroup', 'filterProvidedAssets'));
        $assets = array();
        $al = AssetList::getInstance();
        foreach ($assetPointers as $ap) {
            $asset = $ap->getAsset();
            if ($asset instanceof Asset) {
                $assets[] = $asset;
            }
        }
        // also include any hard-passed $assets into the group. This is rare but it's used for handle-less
        // assets like layout css
        $assets = array_merge($this->requiredAssetGroup->getAssets(), $assets);

        return $assets;
    }
206090
protected function getStoragePath()
    {
        if ($override = $this->input->getOption('path')) {
            return $override;
        }
        $config = $this->getConfig();

        return getcwd().'/'.$config->path;
    }
999284
protected function getDestinationFolder()
    {
        $destination = \Config::get('uploadPath');
        $folder = null;

        // Specify the target folder in the DCA (eval)
        if (isset($this->arrConfiguration['uploadFolder'])) {
            $folder = $this->arrConfiguration['uploadFolder'];
        }

        // Use the user's home directory
        if ($this->arrConfiguration['useHomeDir'] && FE_USER_LOGGED_IN) {
            $user = FrontendUser::getInstance();

            if ($user->assignDir && $user->homeDir) {
                $folder = $user->homeDir;
            }
        }

        if ($folder !== null && \Validator::isUuid($folder)) {
            $folderModel = \FilesModel::findByUuid($folder);

            if ($folderModel !== null) {
                $destination = $folderModel->path;
            }
        } else {
            $destination = $folder;
        }

        return $destination;
    }
642533
public function getRootFolderName()
    {
        if ($this->owner->NewsRootFolderID) {
            return str_replace(ASSETS_DIR . '/', '', $this->owner->NewsRootFolder()->getRelativePath());
        }

        return Config::inst()->get($this->class, 'uploads_folder');
    }
1339044
protected function getWebpackAssets()
    {
        $assets = public_path('builds/manifest.json');
        $assets = file_get_contents($assets);
        $assets = json_decode($assets, true);

        return $assets;
    }
652787
public function getFolder()
    {
        if ($this->_folder === null) {
            $this->_folder = Yii::getAlias("@webroot/svg");
        }

        return rtrim($this->_folder, DIRECTORY_SEPARATOR);
    }
282827
protected function getImagePath()
    {
        if (null == $this->imagePath) {
            $dir = $this->getImageDir();
            $name = $this->getImageName();

            if ($dir && $name && $this->fileExists($dir . $name)) {
                $this->imagePath = $dir . $name;
            }
        }

        return $this->imagePath;
    }
114942
public function getavatardir(){
		if(empty($this->created)){
			return false;
			}
		if(empty($this->provider)){
			return false;
			}
		if(empty($this->social_id)){
			return false;
			}
		$DS=DIRECTORY_SEPARATOR;
		$avatardir=MEDIA_PATH_ORIGINAL.$DS.'users'.$DS.'avatars'.$DS;
		$avatardir.=$this->created->format('Y').$DS;
		$avatardir.=$this->created->format('m').$DS;
		$avatardir.=$this->created->format('d').$DS;
		$avatardir.=$this->provider.'-'.$this->social_id;
		return $avatardir;
		}
386507
public function assetsFolderUrlToBeWritten() {
        $url = null;

        //the default rules only require the object to have an ID
        //but more sophisticated rules might require more - e.g. a title to be set
        //thus we check if the object is ready for folder creation - if custom rules
        //(UploadDirRulesInterface) have been set
        if (method_exists($this->owner, 'getReadyForFolderCreation')) {
            if (!$this->owner->getReadyForFolderCreation()) {
                return false;
            }
        }

        //check if the page we're having is implementing the UploadDirRulesInterface
        //for rule customization
        if ($this->owner instanceof UploadDirRulesInterface) {
            $url = $this->owner->getCalcAssetsFolderDirectory();
        } else {
            //else use the default settings

            $class = UploadDirRules::get_rules_class();
            $url = $class::calc_full_directory_for_object($this->owner);
        }
        return $url;
    }
446285
protected function resolveAssets(): ?string
    {
        $module = $this->getModuleInfo();
        if (!isset($module['assets'])) {
            return null;
        }
        $directory = $this->directory() . DIRECTORY_SEPARATOR . trim($module['assets'], DIRECTORY_SEPARATOR);
        return is_dir($directory) ? realpath($directory) : null;
    }
311112
private function getDirectory()
    {
        // Fallback to default directory if no storage path defined
        if (defined('CRAFT_STORAGE_PATH')) {
            $basePath = CRAFT_STORAGE_PATH;
        } else {
            $basePath = CRAFT_BASE_PATH . DIRECTORY_SEPARATOR . 'storage';
        }

        return $basePath . DIRECTORY_SEPARATOR . 'runtime' . DIRECTORY_SEPARATOR . 'htmlcache' . DIRECTORY_SEPARATOR;
    }
809106
public function getArray()
    {
        $package = array(
            'name'=>$this->getName(),
            'version'=>$this->getVersion(),
            'relative_path'=>$this->getRelativePath(),
            'assets_path'=>$this->getAssetsPath(),
            'assets_presets'=>$this->getAssetsPresets(),
            'layouts_path'=>$this->getLayoutsPaths(),
            'views_path'=>$this->getViewsPaths(),
            'views_functions'=>$this->getViewsFunctionsPaths(),
        );
        return $package;
    }
1361341
public function getFolder()
    {
        $table = $this->getTable();
        $table = (!empty($table)) ? $table . DS : null;

        $seed = $this->getSeed();
        $seed = (!empty($seed)) ? $seed . DS : null;

        return $this->getRoot() . DS . $table . $this->getField() . DS . $seed;
    }
324983
public function getAssetFilesCacheManager()
    {
        if (!$this->assetFilesCacheManager instanceof \AssetsBundle\AssetFile\AssetFilesCacheManager) {
            $this->setAssetFilesCacheManager(new \AssetsBundle\AssetFile\AssetFilesCacheManager());
        }
        return $this->assetFilesCacheManager;
    }
368789
public function getAssetsUrl() {
		
		if (isset($this->_assetsUrl)) {
			return $this->_assetsUrl;
		} else {
			return $this->_assetsUrl = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('booster.assets'), false, -1, $this->forceCopyAssets);
		}
	}