PHP Class Clickalicious\PhpMemAdmin\App

Core of phpMemAdmin. Responsible for aggregating data via Memcached.php. Dispatching requests and rendering views from templates.
显示文件 Open project: clickalicious/phpmemadmin

Protected Properties

Property Type Description
$action integer The action currently processed : defaults to 1
$authentication boolean Whether authentication is required.
$baseUrl string Normally no need to be modified. But if App is run from outside a vhost that maps "/web" to "/" then it is required to inform the App about the new path/URL.
$client Clickalicious\Memcached\Client Master instance of Memcached client for cloning from.
$clients array The collection of clients instantiated and used by the current run.
$cluster string The name of the cluster.
$config stdClass The configuration.
$connections array The connections already established.
$credentials array Credentials valid for access.
$dateFormat string The format used when displaying date/time values.
$defaultTemplateVariables array The list of memcached hosts.
$error string The last error's message.
$errorMessages array Error Messages.
$hosts array The list of memcached hosts.
$info string An info message
$success string An success message
$title string The app title.

Public Methods

Method Description
__construct ( stdClass $config, Clickalicious\Memcached\Client $client, string $baseUrl = self::DEFAULT_BASEURL, string $dateFormat = self::DEFAULT_DATEFORMAT, string $title = self::DEFAULT_TITLE ) : App Constructor.
getAction ( ) : integer Getter for action.
getActiveHost ( boolean $asArray = false ) : string Returns currently active host. If no host is active, the first one found in list of servers is the active one.
getMenuHtml ( ) : string
render ( string $route = self::DEFAULT_BASEURL, array $arguments = [] ) : string Renders the result (HTML5 output) for passed $route and $arguments.

Protected Methods

Method Description
action ( integer $action ) Setter for action.
actionToTemplates ( integer $action ) : array Returns a collection in logical order of templates required for passed action.
aggregateStatistics ( array $hosts = [] ) : array Fetch statistics for a single host or (aggregated) for a collection of hosts (cluster).
authenticate ( ) Try to authenticate the user for active session.
baseUrl ( string $baseUrl ) Setter for baseUrl.
castAsPhpType ( mixed $value ) : mixed Returns the value casted to a native PHP type.
client ( Clickalicious\Memcached\Client $client ) Setter for client.
clients ( array $clients ) Setter for clients.
cluster ( string $cluster ) Setter for cluster.
config ( stdClass $config ) Setter for config.
convertUptime ( integer $timestamp ) : array Returns uptime converted to years, month, days, hours .
credentials ( string $username, string $password ) Setter for credentials.
dateFormat ( string $dateFormat ) Setter for dateFormat.
dumpEntries ( string $host, integer $port, string | null $namespace = null, boolean $flat = false ) : array Returns all entries for a passed slab (hostname & port) by passed namespace or all.
error ( string $error ) Setter for error.
errorContext ( integer $errorNumber, array $context = [] ) : array Returns an error context array which contains an error-number and variables related to the error.
formatNumberAsText ( mixed $value, string $lineEnding = '↵' ) : string Formats a number to display it better readable.
getAppendButtonHtml ( string $key ) : string Returns the HTML for the append button.
getBaseUrl ( ) : string Getter for baseUrl.
getClient ( ) : Clickalicious\Memcached\Client | null Getter for client.
getClients ( ) : Clickalicious\Memcached\Client[] Getter for clients.
getCluster ( ) : string Getter for cluster.
getConfig ( ) : stdClass Getter for config.
getContent ( integer $action ) : string Returns the inner content of the pages by action.
getCredentials ( ) : array Getter for credentials.
getDateFormat ( ) : string Getter for dateFormat.
getDecrementButtonHtml ( string $key ) : string Returns the HTML for the decrement button.
getDefaultTemplateVariables ( ) : array Returns the default template variables.
getDeleteButtonHtml ( string $key ) : string Returns the delete button rendered by template render engine.
getEditButtonHtml ( string $key, string $value ) : string Returns the edit button rendered by template render engine.
getError ( ) : string Getter for error.
getErrorMessageByNumber ( integer $number ) : string Returns the error for the passed number if set, otherwise the string 'n.a.'.
getErrorMessageHtml ( ) : string Returns the HTML for the error message if error is set, otherwise empty string.
getHostFromRequest ( ) : null\string Returns host from request if exist, otherwise NULL.
getHosts ( ) : array Getter for hosts.
getHtmlInfoMessage ( ) : string Returns the HTML for the info message if info is set, otherwise empty string.
getHtmlNavigationEntry ( integer $action, string $title, string $glyphicon = '' ) : string Creates
  • elements HTML used for generating navigation entries for example.
  • getHtmlSuccessMessage ( ) : string Returns the HTML for the success message if info is set, otherwise empty string.
    getIncrementButtonHtml ( string $key ) : string Returns the HTML for the increment button.
    getInfo ( ) : string Getter for info.
    getLinkForAction ( integer $action = null, array $arguments = [] ) : string Returns the link to the phpMemAdmin installation with optional action argument.
    getMemcachedClient ( string $host, integer $port = Client::DEFAULT_PORT, integer $timeout = null ) : Clickalicious\Memcached\Client Returns an instance of Client for host and port combination.
    getMemcachedLatestVersion ( ) : string Returns the latest version from memcached official website or 1.0.0 as fallback.
    getMessages ( ) : string Retrieves the messages to be shown in rendered page.
    getPrependButtonHtml ( string $key ) : string Returns the HTML for the prepend button.
    getSettings ( string $host ) : array Retrieve settings from Memcached instance.
    getSuccess ( ) : string Getter for success.
    getTitle ( ) : string Getter for title.
    getUrl ( array $arguments = [], string $prefix = '', $anchor = '' ) : string Return the URL for the current executed route.
    hosts ( array $hosts ) Setter for hosts.
    info ( string $info ) Setter for info.
    loadTemplates ( string | array $templates ) : string Loads a template from filesystem.
    parseArguments ( array $arguments ) : void Parser for arguments passed to this instance.
    processRequestOperations ( integer $action, array $arguments ) : void Processes the operations passed with the current request.
    redirect ( string $url ) : void Redirects to the passed URL.
    renderString ( string $string, array $variables = [] ) : string Renders the content of $string with variables from $variables.
    renderTemplate ( string $html, array $variables = [] ) : string Renders a template.
    retrieveStoredData ( string $host, integer $port ) : array Returns the stored data from a Memcached instance.
    setAction ( integer $action ) : void Setter for action.
    setBaseUrl ( string $baseUrl ) : void Setter for baseUrl.
    setClient ( Clickalicious\Memcached\Client $client ) : void Setter for client.
    setClients ( array $clients ) : void Setter for clients.
    setCluster ( string $cluster ) : void Setter for cluster.
    setConfig ( stdClass $config ) : void Setter for config.
    setCredentials ( string $username, string $password ) : void Setter for credentials.
    setDateFormat ( string $dateFormat ) : void Setter for dateFormat.
    setError ( string $error ) : void Setter for error.
    setHosts ( array $hosts ) : void Setter for hosts.
    setInfo ( string $info ) : void Setter for info.
    setSuccess ( string $success ) : void Setter for success.
    setTitle ( string $title ) : void Setter for title.
    success ( string $success ) Setter for success.
    title ( string $title ) Setter for title.
    uuid ( ) : string Simple generic hashing of dynamic input.

    Method Details

    __construct() public method

    Constructor.
    Author: Benjamin Carl ([email protected])
    public __construct ( stdClass $config, Clickalicious\Memcached\Client $client, string $baseUrl = self::DEFAULT_BASEURL, string $dateFormat = self::DEFAULT_DATEFORMAT, string $title = self::DEFAULT_TITLE ) : App
    $config stdClass The configuration containing all preset values at least.
    $client Clickalicious\Memcached\Client The master client instance used for cloning instances.
    $baseUrl string The base URL of the application
    $dateFormat string The date format used for formatting dates
    $title string The title of the application
    return App

    action() protected method

    Setter for action.
    Author: Benjamin Carl ([email protected])
    protected action ( integer $action )
    $action integer The action to set

    actionToTemplates() protected method

    Returns a collection in logical order of templates required for passed action.
    Author: Benjamin Carl ([email protected])
    protected actionToTemplates ( integer $action ) : array
    $action integer The action to return templates for
    return array An collection of templates in logical order

    aggregateStatistics() protected method

    Fetch statistics for a single host or (aggregated) for a collection of hosts (cluster).
    Author: Benjamin Carl ([email protected])
    protected aggregateStatistics ( array $hosts = [] ) : array
    $hosts array An array containing a single host or a collection of hosts to fetch statistics for.
    return array The aggregated statistics

    authenticate() protected method

    Try to authenticate the user for active session.
    Author: Benjamin Carl ([email protected])
    protected authenticate ( )

    baseUrl() protected method

    Setter for baseUrl.
    Author: Benjamin Carl ([email protected])
    protected baseUrl ( string $baseUrl )
    $baseUrl string The base URL to set.

    castAsPhpType() protected method

    Returns the value casted to a native PHP type.
    Author: Benjamin Carl ([email protected])
    protected castAsPhpType ( mixed $value ) : mixed
    $value mixed The value to cast magically.
    return mixed The resulting value

    client() protected method

    Setter for client.
    Author: Benjamin Carl ([email protected])
    protected client ( Clickalicious\Memcached\Client $client )
    $client Clickalicious\Memcached\Client The client to set

    clients() protected method

    Setter for clients.
    Author: Benjamin Carl ([email protected])
    protected clients ( array $clients )
    $clients array The clients to set

    cluster() protected method

    Setter for cluster.
    Author: Benjamin Carl ([email protected])
    protected cluster ( string $cluster )
    $cluster string The name of the cluster

    config() protected method

    Setter for config.
    Author: Benjamin Carl ([email protected])
    protected config ( stdClass $config )
    $config stdClass The config to set

    convertUptime() protected method

    ..
    Author: Benjamin Carl ([email protected])
    protected convertUptime ( integer $timestamp ) : array
    $timestamp integer The timestamp to parse
    return array The result

    credentials() protected method

    Setter for credentials.
    Author: Benjamin Carl ([email protected])
    protected credentials ( string $username, string $password )
    $username string The username used to authenticate
    $password string The password used to authenticate

    dateFormat() protected method

    Setter for dateFormat.
    Author: Benjamin Carl ([email protected])
    protected dateFormat ( string $dateFormat )
    $dateFormat string The date-format string.

    dumpEntries() protected method

    Returns all entries for a passed slab (hostname & port) by passed namespace or all.
    Author: Benjamin Carl ([email protected])
    protected dumpEntries ( string $host, integer $port, string | null $namespace = null, boolean $flat = false ) : array
    $host string The host (slab) to fetch items from
    $port integer The port
    $namespace string | null The namespace to filter on as string, otherwise NULL to fetch all
    $flat boolean TRUE to return plain key/value pairs, FALSE to return meta-data as well
    return array List of entries indexed by key

    error() protected method

    Setter for error.
    Author: Benjamin Carl ([email protected])
    protected error ( string $error )
    $error string The error to set

    errorContext() protected method

    Returns an error context array which contains an error-number and variables related to the error.
    Author: Benjamin Carl ([email protected])
    protected errorContext ( integer $errorNumber, array $context = [] ) : array
    $errorNumber integer The error number
    $context array The related variables
    return array An error context array containing key number and context

    formatNumberAsText() protected method

    Formats a number to display it better readable.
    Author: Benjamin Carl ([email protected])
    protected formatNumberAsText ( mixed $value, string $lineEnding = '↵' ) : string
    $value mixed The value to format
    $lineEnding string The line-ending used for formatting value
    return string The formatted value

    getAction() public method

    Getter for action.
    Author: Benjamin Carl ([email protected])
    public getAction ( ) : integer
    return integer The current action if set, otherwise NULL

    getActiveHost() public method

    Returns currently active host. If no host is active, the first one found in list of servers is the active one.
    Author: Benjamin Carl ([email protected])
    public getActiveHost ( boolean $asArray = false ) : string
    $asArray boolean TRUE to return the host as prepared array, otherwise FALSE to return as string (default).
    return string The active host name or ip

    getAppendButtonHtml() protected method

    Returns the HTML for the append button.
    Author: Benjamin Carl ([email protected])
    protected getAppendButtonHtml ( string $key ) : string
    $key string The key to render button for
    return string The HTML of the button

    getBaseUrl() protected method

    Getter for baseUrl.
    Author: Benjamin Carl ([email protected])
    protected getBaseUrl ( ) : string
    return string The base URL for this instance

    getClient() protected method

    Getter for client.
    Author: Benjamin Carl ([email protected])
    protected getClient ( ) : Clickalicious\Memcached\Client | null
    return Clickalicious\Memcached\Client | null $client The client if set, otherwise NULL

    getClients() protected method

    Getter for clients.
    Author: Benjamin Carl ([email protected])
    protected getClients ( ) : Clickalicious\Memcached\Client[]
    return Clickalicious\Memcached\Client[] The clients if set, otherwise empty array

    getCluster() protected method

    Getter for cluster.
    Author: Benjamin Carl ([email protected])
    protected getCluster ( ) : string
    return string The name of the cluster

    getConfig() protected method

    Getter for config.
    Author: Benjamin Carl ([email protected])
    protected getConfig ( ) : stdClass
    return stdClass config

    getContent() protected method

    Returns the inner content of the pages by action.
    Author: Benjamin Carl ([email protected])
    protected getContent ( integer $action ) : string
    $action integer The action to return content for
    return string HTML

    getCredentials() protected method

    Getter for credentials.
    Author: Benjamin Carl ([email protected])
    protected getCredentials ( ) : array
    return array The credentials

    getDateFormat() protected method

    Getter for dateFormat.
    Author: Benjamin Carl ([email protected])
    protected getDateFormat ( ) : string
    return string The active date-time format

    getDecrementButtonHtml() protected method

    Returns the HTML for the decrement button.
    Author: Benjamin Carl ([email protected])
    protected getDecrementButtonHtml ( string $key ) : string
    $key string The key to render button for
    return string The HTML of the button

    getDefaultTemplateVariables() protected method

    This method merges the pre-defined variables (defaultTemplateVariables) with runtime and date/time information to a final collection of template variables.
    Author: Benjamin Carl ([email protected])
    protected getDefaultTemplateVariables ( ) : array
    return array The default template variables

    getDeleteButtonHtml() protected method

    Returns the delete button rendered by template render engine.
    Author: Benjamin Carl ([email protected])
    protected getDeleteButtonHtml ( string $key ) : string
    $key string The key for button
    return string The HTML of the button

    getEditButtonHtml() protected method

    Returns the edit button rendered by template render engine.
    Author: Benjamin Carl ([email protected])
    protected getEditButtonHtml ( string $key, string $value ) : string
    $key string The key for button
    $value string The value to edit
    return string The HTML of the button

    getError() protected method

    Getter for error.
    Author: Benjamin Carl ([email protected])
    protected getError ( ) : string
    return string Error

    getErrorMessageByNumber() protected method

    Returns the error for the passed number if set, otherwise the string 'n.a.'.
    Author: Benjamin Carl ([email protected])
    protected getErrorMessageByNumber ( integer $number ) : string
    $number integer The number to return error for
    return string The error message

    getErrorMessageHtml() protected method

    Returns the HTML for the error message if error is set, otherwise empty string.
    Author: Benjamin Carl ([email protected])
    protected getErrorMessageHtml ( ) : string
    return string The HTML as string

    getHostFromRequest() protected method

    Returns host from request if exist, otherwise NULL.
    Author: Benjamin Carl ([email protected])
    protected getHostFromRequest ( ) : null\string
    return null\string

    getHosts() protected method

    Getter for hosts.
    Author: Benjamin Carl ([email protected])
    protected getHosts ( ) : array
    return array The list of hosts

    getHtmlInfoMessage() protected method

    Returns the HTML for the info message if info is set, otherwise empty string.
    Author: Benjamin Carl ([email protected])
    protected getHtmlInfoMessage ( ) : string
    return string The HTML as string

    getHtmlNavigationEntry() protected method

    Creates
  • elements HTML used for generating navigation entries for example.
  • Author: Benjamin Carl ([email protected])
    protected getHtmlNavigationEntry ( integer $action, string $title, string $glyphicon = '' ) : string
    $action integer The action of the entry
    $title string The text of the menu element
    $glyphicon string The optional glyphicon
    return string Generated HTML as string

    getHtmlSuccessMessage() protected method

    Returns the HTML for the success message if info is set, otherwise empty string.
    Author: Benjamin Carl ([email protected])
    protected getHtmlSuccessMessage ( ) : string
    return string The HTML as string

    getIncrementButtonHtml() protected method

    Returns the HTML for the increment button.
    Author: Benjamin Carl ([email protected])
    protected getIncrementButtonHtml ( string $key ) : string
    $key string The key to render button for
    return string The HTML of the button

    getInfo() protected method

    Getter for info.
    Author: Benjamin Carl ([email protected])
    protected getInfo ( ) : string
    return string The info message

    getLinkForAction() protected method

    Returns the link to the phpMemAdmin installation with optional action argument.
    Author: Benjamin Carl ([email protected])
    protected getLinkForAction ( integer $action = null, array $arguments = [] ) : string
    $action integer The action to attach
    $arguments array The arguments to attach to URL
    return string The link to phpMemAdmin

    getMemcachedClient() protected method

    Returns an instance of Client for host and port combination.
    Author: Benjamin Carl ([email protected])
    protected getMemcachedClient ( string $host, integer $port = Client::DEFAULT_PORT, integer $timeout = null ) : Clickalicious\Memcached\Client
    $host string The host to return instance for
    $port integer The port to return instance for
    $timeout integer The timeout used when connecting
    return Clickalicious\Memcached\Client A client instance

    getMemcachedLatestVersion() protected method

    Returns the latest version from memcached official website or 1.0.0 as fallback.
    Author: Benjamin Carl ([email protected])
    protected getMemcachedLatestVersion ( ) : string
    return string The latest version of Memcached from website or 1.0.0 as fallback (timeout)

    getMenuHtml() public method

    public getMenuHtml ( ) : string
    return string

    getMessages() protected method

    Retrieves the messages to be shown in rendered page.
    Author: Benjamin Carl ([email protected])
    protected getMessages ( ) : string
    return string The message HTML string

    getPrependButtonHtml() protected method

    Returns the HTML for the prepend button.
    Author: Benjamin Carl ([email protected])
    protected getPrependButtonHtml ( string $key ) : string
    $key string The key to render button for
    return string The HTML of the button

    getSettings() protected method

    Retrieve settings from Memcached instance.
    Author: Benjamin Carl ([email protected])
    protected getSettings ( string $host ) : array
    $host string The host to retrieve statistics from.
    return array Containing the result

    getSuccess() protected method

    Getter for success.
    Author: Benjamin Carl ([email protected])
    protected getSuccess ( ) : string
    return string The success message

    getTitle() protected method

    Getter for title.
    Author: Benjamin Carl ([email protected])
    protected getTitle ( ) : string
    return string The title of the application

    getUrl() protected method

    Return the URL for the current executed route.
    Author: Benjamin Carl ([email protected])
    protected getUrl ( array $arguments = [], string $prefix = '', $anchor = '' ) : string
    $arguments array Optional arguments to add
    $prefix string An optional prefix to prepend
    return string The URL

    hosts() protected method

    Setter for hosts.
    Author: Benjamin Carl ([email protected])
    protected hosts ( array $hosts )
    $hosts array The host array

    info() protected method

    Setter for info.
    Author: Benjamin Carl ([email protected])
    protected info ( string $info )
    $info string The info message to set

    loadTemplates() protected method

    Loads a template from filesystem.
    Author: Benjamin Carl ([email protected])
    protected loadTemplates ( string | array $templates ) : string
    $templates string | array A single template as string or a collection as array
    return string Content of template(s) as string

    parseArguments() protected method

    Parses arguments and stores the values.
    Author: Benjamin Carl ([email protected])
    protected parseArguments ( array $arguments ) : void
    $arguments array The arguments to parse
    return void

    processRequestOperations() protected method

    Processes the operations passed with the current request.
    Author: Benjamin Carl ([email protected])
    protected processRequestOperations ( integer $action, array $arguments ) : void
    $action integer The action we are running
    $arguments array The arguments to parse for commands
    return void

    redirect() protected method

    Redirects to the passed URL.
    Author: Benjamin Carl ([email protected])
    protected redirect ( string $url ) : void
    $url string The URL to redirect to
    return void

    render() public method

    The application is split in this way so we are able to execute the whole stack painless with mock data for unit tests and stuff like that.
    Author: Benjamin Carl ([email protected])
    public render ( string $route = self::DEFAULT_BASEURL, array $arguments = [] ) : string
    $route string The route running
    $arguments array Arguments from request
    return string The rendered HTML(5) template ready for delivery

    renderString() protected method

    Renders the content of $string with variables from $variables.
    Author: Benjamin Carl ([email protected])
    protected renderString ( string $string, array $variables = [] ) : string
    $string string The html of the template
    $variables array The template vars used for rendering (key => value)
    return string The rendered string

    renderTemplate() protected method

    Renders a template.
    Author: Benjamin Carl ([email protected])
    protected renderTemplate ( string $html, array $variables = [] ) : string
    $html string The html of the template
    $variables array The template vars used for rendering (key => value)
    return string Rendered HTML as string

    retrieveStoredData() protected method

    Returns the stored data from a Memcached instance.
    Author: Benjamin Carl ([email protected])
    protected retrieveStoredData ( string $host, integer $port ) : array
    $host string The host to return data from
    $port integer The port the Memcached daemon is listening on
    return array The data requested

    setAction() protected method

    Setter for action.
    Author: Benjamin Carl ([email protected])
    protected setAction ( integer $action ) : void
    $action integer The action to set
    return void

    setBaseUrl() protected method

    Setter for baseUrl.
    Author: Benjamin Carl ([email protected])
    protected setBaseUrl ( string $baseUrl ) : void
    $baseUrl string The base URL to set.
    return void

    setClient() protected method

    Setter for client.
    Author: Benjamin Carl ([email protected])
    protected setClient ( Clickalicious\Memcached\Client $client ) : void
    $client Clickalicious\Memcached\Client The client to set
    return void

    setClients() protected method

    Setter for clients.
    Author: Benjamin Carl ([email protected])
    protected setClients ( array $clients ) : void
    $clients array The client to set
    return void

    setCluster() protected method

    Setter for cluster.
    Author: Benjamin Carl ([email protected])
    protected setCluster ( string $cluster ) : void
    $cluster string The name of the cluster
    return void

    setConfig() protected method

    Setter for config.
    Author: Benjamin Carl ([email protected])
    protected setConfig ( stdClass $config ) : void
    $config stdClass The config to set
    return void

    setCredentials() protected method

    Setter for credentials.
    Author: Benjamin Carl ([email protected])
    protected setCredentials ( string $username, string $password ) : void
    $username string The username used to authenticate
    $password string The password used to authenticate
    return void

    setDateFormat() protected method

    Setter for dateFormat.
    Author: Benjamin Carl ([email protected])
    protected setDateFormat ( string $dateFormat ) : void
    $dateFormat string The date-format string.
    return void

    setError() protected method

    Setter for error.
    Author: Benjamin Carl ([email protected])
    protected setError ( string $error ) : void
    $error string The error to set
    return void

    setHosts() protected method

    Setter for hosts.
    Author: Benjamin Carl ([email protected])
    protected setHosts ( array $hosts ) : void
    $hosts array The host array
    return void

    setInfo() protected method

    Setter for info.
    Author: Benjamin Carl ([email protected])
    protected setInfo ( string $info ) : void
    $info string The info message to set
    return void

    setSuccess() protected method

    Setter for success.
    Author: Benjamin Carl ([email protected])
    protected setSuccess ( string $success ) : void
    $success string The success message to set
    return void

    setTitle() protected method

    Setter for title.
    Author: Benjamin Carl ([email protected])
    protected setTitle ( string $title ) : void
    $title string The title
    return void

    success() protected method

    Setter for success.
    Author: Benjamin Carl ([email protected])
    protected success ( string $success )
    $success string The success message to set

    title() protected method

    Setter for title.
    Author: Benjamin Carl ([email protected])
    protected title ( string $title )
    $title string The title

    uuid() protected method

    Simple generic hashing of dynamic input.
    Author: Benjamin Carl ([email protected])
    protected uuid ( ) : string
    return string The calculated UUID

    Property Details

    $action protected_oe property

    The action currently processed : defaults to 1
    protected int $action
    return integer

    $authentication protected_oe property

    Whether authentication is required.
    protected bool $authentication
    return boolean

    $baseUrl protected_oe property

    Normally no need to be modified. But if App is run from outside a vhost that maps "/web" to "/" then it is required to inform the App about the new path/URL.
    protected string $baseUrl
    return string

    $client protected_oe property

    Master instance of Memcached client for cloning from.
    protected Client,Clickalicious\Memcached $client
    return Clickalicious\Memcached\Client

    $clients protected_oe property

    The collection of clients instantiated and used by the current run.
    protected array $clients
    return array

    $cluster protected_oe property

    The name of the cluster.
    protected string $cluster
    return string

    $config protected_oe property

    The configuration.
    protected stdClass $config
    return stdClass

    $connections protected_oe static_oe property

    The connections already established.
    protected static array $connections
    return array

    $credentials protected_oe property

    Credentials valid for access.
    protected array $credentials
    return array

    $dateFormat protected_oe property

    The format used when displaying date/time values.
    protected string $dateFormat
    return string

    $defaultTemplateVariables protected_oe property

    The list of memcached hosts.
    protected array $defaultTemplateVariables
    return array

    $error protected_oe property

    The last error's message.
    protected string $error
    return string

    $errorMessages protected_oe property

    Error Messages.
    protected array $errorMessages
    return array

    $hosts protected_oe property

    The list of memcached hosts.
    protected array $hosts
    return array

    $info protected_oe property

    An info message
    protected string $info
    return string

    $success protected_oe property

    An success message
    protected string $success
    return string

    $title protected_oe property

    The app title.
    protected string $title
    return string