Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Protected Member Functions | Protected Attributes
Https Class Reference
Inheritance diagram for Https:
Http File DriverInterface

Protected Member Functions

 parseUrl ($path)
 
 open ($hostname, $port)
 
- Protected Member Functions inherited from Http
 getScheme ($scheme=null)
 
 open ($hostname, $port)
 
 parseUrl ($path)
 
- Protected Member Functions inherited from File
 getWarningMessage ()
 
 fixSeparator ($path)
 
 getScheme ($scheme=null)
 

Protected Attributes

 $scheme = 'https'
 
- Protected Attributes inherited from Http
 $scheme = 'http'
 
- Protected Attributes inherited from File
 $scheme = ''
 

Additional Inherited Members

- Public Member Functions inherited from Http
 isExists ($path)
 
 stat ($path)
 
 fileGetContents ($path, $flags=null, $context=null)
 
 filePutContents ($path, $content, $mode=null, $context=null)
 
 fileOpen ($path, $mode)
 
 fileReadLine ($resource, $length, $ending=null)
 
 getAbsolutePath ($basePath, $path, $scheme=null)
 
- Public Member Functions inherited from File
 isExists ($path)
 
 stat ($path)
 
 isReadable ($path)
 
 isFile ($path)
 
 isDirectory ($path)
 
 fileGetContents ($path, $flag=null, $context=null)
 
 isWritable ($path)
 
 getParentDirectory ($path)
 
 createDirectory ($path, $permissions=0777)
 
 search ($pattern, $path)
 
 rename ($oldPath, $newPath, DriverInterface $targetDriver=null)
 
 copy ($source, $destination, DriverInterface $targetDriver=null)
 
 symlink ($source, $destination, DriverInterface $targetDriver=null)
 
 deleteFile ($path)
 
 changePermissions ($path, $permissions)
 
 touch ($path, $modificationTime=null)
 
 filePutContents ($path, $content, $mode=null)
 
 fileOpen ($path, $mode)
 
 fileReadLine ($resource, $length, $ending=null)
 
 fileRead ($resource, $length)
 
 fileGetCsv ($resource, $length=0, $delimiter=',', $enclosure='"', $escape = '\\')
 
 fileTell ($resource)
 
 fileSeek ($resource, $offset, $whence=SEEK_SET)
 
 endOfFile ($resource)
 
 fileClose ($resource)
 
 fileWrite ($resource, $data)
 
 fileFlush ($resource)
 
 fileLock ($resource, $lockMode=LOCK_EX)
 
 fileUnlock ($resource)
 
 getAbsolutePath ($basePath, $path, $scheme=null)
 
 getRelativePath ($basePath, $path=null)
 
 getRealPath ($path)
 
 getRealPathSafety ($path)
 
- Public Member Functions inherited from DriverInterface
 readDirectory ($path)
 
 readDirectoryRecursively ($path=null)
 
 deleteDirectory ($path)
 
 changePermissionsRecursively ($path, $dirPermissions, $filePermissions)
 
 filePutCsv ($resource, array $data, $delimiter=',', $enclosure='"')
 
- Data Fields inherited from DriverInterface
const WRITEABLE_DIRECTORY_MODE = 0770
 
const WRITEABLE_FILE_MODE = 0660
 

Detailed Description

Class Https

Definition at line 14 of file Https.php.

Member Function Documentation

◆ open()

open (   $hostname,
  $port 
)
protected

Open a https url

Parameters
string$hostname
int$port
Returns
array

Definition at line 47 of file Https.php.

48  {
49  return parent::open('ssl://' . $hostname, $port);
50  }

◆ parseUrl()

parseUrl (   $path)
protected

Parse a https url

Parameters
string$path
Returns
array

Definition at line 29 of file Https.php.

30  {
31  $urlProp = parent::parseUrl($path);
32 
33  if (!isset($urlProp['port'])) {
34  $urlProp['port'] = 443;
35  }
36 
37  return $urlProp;
38  }

Field Documentation

◆ $scheme

$scheme = 'https'
protected

Definition at line 21 of file Https.php.


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