FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\UI\Page\UploadSrvPage Class Reference
Inheritance diagram for Fossology\UI\Page\UploadSrvPage:
Inheritance graph
Collaboration diagram for Fossology\UI\Page\UploadSrvPage:
Collaboration graph

Public Member Functions

 check_if_host_is_allowed ($host)
 
 check_by_whitelist ($path)
 checks, whether a normalized path starts with an path in the whiteliste More...
 
 remote_file_permission ($path, $server='localhost', $persmission='r')
 chck if one file/dir has one permission More...
 
 remote_file_exists ($path, $server='localhost')
 chck if one file/dir exist or not More...
 
- Public Member Functions inherited from Fossology\UI\Page\UploadPageBase
 __construct ($name, $parameters=array())
 
 str_contains_notescaped_char ($str, $char)
 checks, whether a string contains some special character without escaping More...
 
 path_is_pattern ($path)
 checks, whether a path is a pattern from the perspective of a shell More...
 
 normalize_path ($path, $host="localhost", $appendix="")
 normalizes an path and returns FALSE on errors More...
 
 basicShEscaping ($str)
 
- Public Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin
 getName ()
 
 getVersion ()
 
 getTitle ()
 
 isRequiresLogin ()
 
 getDependency ()
 
 getPluginLevel ()
 
 getDBaccess ()
 
 getState ()
 
 getInitOrder ()
 
 getNoMenu ()
 
 getResponse ()
 
 getObject ($name)
 
 preInstall ()
 
 postInstall ()
 
 unInstall ()
 
 execute ()
 
 isLoggedIn ()
 
 __get ($name)
 
 __toString ()
 

Public Attributes

const NAME = 'upload_srv_files'
 
const NAME_PARAM = 'name'
 
const SOURCE_FILES_FIELD = 'sourceFiles'
 
- Public Attributes inherited from Fossology\UI\Page\UploadPageBase
const NAME = "upload_file"
 
const FOLDER_PARAMETER_NAME = 'folder'
 
const DESCRIPTION_INPUT_NAME = 'descriptionInputName'
 
const DESCRIPTION_VALUE = 'descriptionValue'
 
const UPLOAD_FORM_BUILD_PARAMETER_NAME = 'uploadformbuild'
 
const PUBLIC_ALL = 'public'
 
const PUBLIC_GROUPS = 'protected'
 
- Public Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin
const PERMISSION = "permission"
 
const REQUIRES_LOGIN = "requiresLogin"
 
const ENABLE_MENU = "ENABLE_MENU"
 
const LEVEL = "level"
 
const DEPENDENCIES = "dependencies"
 
const INIT_ORDER = "initOrder"
 
const MENU_LIST = "menuList"
 
const MENU_ORDER = "menuOrder"
 
const MENU_TARGET = "menuTarget"
 
const TITLE = "title"
 

Protected Member Functions

 handleView (Request $request, $vars)
 
 handleUpload (Request $request)
 Process the upload request.
 
- Protected Member Functions inherited from Fossology\UI\Page\UploadPageBase
 handle (Request $request)
 
 postUploadAddJobs (Request $request, $fileName, $uploadId, $jobId=null, $wgetDependency=false)
 
 path_can_escape ($path)
 checks, whether a path contains substrings, which could enable it to escape his prefix More...
 
- Protected Member Functions inherited from Fossology\Lib\Plugin\DefaultPlugin
 RegisterMenus ()
 Customize submenus.
 
 render ($templateName, $vars=null, $headers=null)
 
 getDefaultHeaders ()
 
 getDefaultVars ()
 
 mergeWithDefault ($vars)
 
 flushContent ($content)
 

Additional Inherited Members

- Protected Attributes inherited from Fossology\Lib\Plugin\DefaultPlugin
 $container
 
 $renderer
 
 $microMenu
 

Detailed Description

Definition at line 15 of file UploadSrvPage.php.

Member Function Documentation

◆ check_by_whitelist()

Fossology\UI\Page\UploadSrvPage::check_by_whitelist (   $path)

checks, whether a normalized path starts with an path in the whiteliste

Parameters
$path- the path to check
Returns
boolean

Definition at line 54 of file UploadSrvPage.php.

◆ handleView()

Fossology\UI\Page\UploadSrvPage::handleView ( Request  $request,
  $vars 
)
protected
Parameters
Request$request
$vars
Returns
Response

Reimplemented from Fossology\UI\Page\UploadPageBase.

Definition at line 121 of file UploadSrvPage.php.

◆ remote_file_exists()

Fossology\UI\Page\UploadSrvPage::remote_file_exists (   $path,
  $server = 'localhost' 
)

chck if one file/dir exist or not

Parameters
$path- file path
$server- host name
Returns
1: exist; 0: not

local file

Definition at line 103 of file UploadSrvPage.php.

◆ remote_file_permission()

Fossology\UI\Page\UploadSrvPage::remote_file_permission (   $path,
  $server = 'localhost',
  $persmission = 'r' 
)

chck if one file/dir has one permission

Parameters
$path- file path
$server- host name
$permission- permission x/r/w
Returns
1: yes; 0: no

local file

Definition at line 82 of file UploadSrvPage.php.


The documentation for this class was generated from the following file: