xplo.re Medusa Core Framework 3.1
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • URL

Class URL

Specialises on the URL subset of URIs and provides extended parsing of the authority part, namely a hostname (or IP address), explicit port number and login credentials (further split up into username and password).

In general, a server-based authority is in the form of user [":" password] "@" host [":" port]. The host part is mandatory, all other parts and their delimiters are optional and initialised to null, if not specified.

For security reasons the complete authority is automatically in-memory encrypted, if login credentials with a non-empty password are contained.

History

In Medusa 3.0, the initial draft of this class was named Server and was later renamed to the current name in 3.1.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\URI
Extended by Core\URI\URL

Direct known subclasses

Core\URI\Driver\file, Core\URI\Driver\ftp, Core\URI\Driver\http, Core\URI\Driver\ssl, Core\URI\Driver\tcp

Namespace: Core\URI
Package: Core\URI
Since: 3.1
Requires: PHP 5.3
Version: 1.1
Located at URI/URL.inc.php

Methods summary

public
# __construct( string|array|Core\URI $uri, array $mods = null )

Initialises a URI instance. Also parses authority part for extended URL attributes.

Initialises a URI instance. Also parses authority part for extended URL attributes.

Parameters

$uri

$resource Properties to initialise URI with. Supports the following types of initialisation data:

  • URI string to parse and read properties from.

  • Reference to an existing URI instance to clone properties from.

  • Hash of URI properties to initialise new instance with.

$mods

Hash of URI properties that overwrite properties derived from the resource parameter. This is mainly used to create modified URI instances based on an existing URI and a delta set.

Since

3.0

Overrides

Core\URI::__construct

Methods inherited from Core\URI

__toString(), _parseArray(), _parseURI(), autocreate(), cloneWithAppendedParameters(), decode(), encode(), isAbsolute(), parameters(), remoteURIForPath(), validate()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), attachMethod(), chain(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected string $_v_user

KVC property.

KVC property.

Since

3.0
#
protected Core\String\Encrypted $_v_password

KVC property.

KVC property.

Since

3.1
#
protected string $_v_host

KVC property.

KVC property.

Since

3.0
#
protected integer $_v_port

KVC property.

KVC property.

Since

3.0
#

Properties inherited from Core\URI

$_parameterCache, $_v_authority, $_v_fragment, $_v_path, $_v_query, $_v_scheme, $_v_schemeNS

Magic properties

public read-only string $user

Username extracted from authority part or null, if no username has been specified.

public read-only Core\String\Encrypted $password

In-memory encrypted password extracted from authority part or null, if no password has been specified. Automatic password encryption has been added in Medusa 3.1.

public read-only string $host

Hostname extracted from authority part or null, if no hostname has been specified.

public read-only integer $port

Port number extracted from authority part or null, if no port has been explicitly specified.

Magic properties inherited from Core\URI

$authority, $fragment, $isAbsolute, $parameters, $path, $query, $scheme, $schemeNS

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.1 API documentation generated by ApiGen