public function actionFiles() {
		$sources = [];

		$currentSource = $this->getSource();

		foreach ($this->config->sources as $key => $source) {
			if ($this->request->source && $this->request->source !== 'default' && $currentSource !== $source && $this->request->path !== './') {
				continue;
			}

			if ($this->accessControl->isAllow($this->getUserRole(), $this->action, $source->getPath())) {
				$sources[$key] = $this->read($source);
			}


		}

		return [
			'sources' => $sources
		];
	}
public function actionFiles() {
		$sources = [];

		$currentSource = $this->getSource();

		foreach ($this->config->sources as $key => $source) {
			if ($this->request->source && $this->request->source !== 'default' && $currentSource !== $source && $this->request->path !== './') {
				continue;
			}

			if ($this->accessControl->isAllow($this->getUserRole(), $this->action, $source->getPath())) {
				$sources[$key] = $this->read($source);
			}


		}

		return [
			'sources' => $sources
		];
	}
public function actionFiles ( ) { $ sources = [ ] ; $ currentSource = $ this -> getSource ( ) ; foreach ( $ this -> config -> sources as $ key => $ source ) { if ( $ this -> request -> source && $ this -> request -> source !== 'default' && $ currentSource !== $ source && $ this -> request -> path !== './' ) { continue ; } if ( $ this -> accessControl -> isAllow ( $ this -> getUserRole ( ) , $ this -> action , $ source -> getPath ( ) ) ) { $ sources [ $ key ] = $ this -> read ( $ source ) ; } } return [ 'sources' => $ sources ] ; }
Load all files from folder ore source or sources
Load all files from folder ore source or sources