public function linkList($field = null)
    {
        $result = [];
        foreach ($this->getFileList() as $path) {
            $name = basename($path);
            $result[$name] = $this->getFileLink($field, basename($path));
        }
        return $result;
    }
public function linkList($field = null)
    {
        $result = [];
        foreach ($this->getFileList() as $path) {
            $name = basename($path);
            $result[$name] = $this->getFileLink($field, basename($path));
        }
        return $result;
    }
public function linkList ( $ field = null ) { $ result = [ ] ; foreach ( $ this -> getFileList ( ) as $ path ) { $ name = basename ( $ path ) ; $ result [ $ name ] = $ this -> getFileLink ( $ field , basename ( $ path ) ) ; } return $ result ; }
Gets links for all model files.
@param null $field
@return array
Gets links for all model files .