PHP Class Clickalicious\PhpMemAdmin\App

Core of phpMemAdmin. Responsible for aggregating data via Memcached.php. Dispatching requests and rendering views from templates.
Afficher le fichier Open project: clickalicious/phpmemadmin

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

    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
    Résultat App

    action() protected méthode

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

    actionToTemplates() protected méthode

    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
    Résultat array An collection of templates in logical order

    aggregateStatistics() protected méthode

    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.
    Résultat array The aggregated statistics

    authenticate() protected méthode

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

    baseUrl() protected méthode

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

    castAsPhpType() protected méthode

    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.
    Résultat mixed The resulting value

    client() protected méthode

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

    clients() protected méthode

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

    cluster() protected méthode

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

    config() protected méthode

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

    convertUptime() protected méthode

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

    credentials() protected méthode

    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 méthode

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

    dumpEntries() protected méthode

    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
    Résultat array List of entries indexed by key

    error() protected méthode

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

    errorContext() protected méthode

    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
    Résultat array An error context array containing key number and context

    formatNumberAsText() protected méthode

    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
    Résultat string The formatted value

    getAction() public méthode

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

    getActiveHost() public méthode

    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).
    Résultat string The active host name or ip

    getAppendButtonHtml() protected méthode

    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
    Résultat string The HTML of the button

    getBaseUrl() protected méthode

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

    getClient() protected méthode

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

    getClients() protected méthode

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

    getCluster() protected méthode

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

    getConfig() protected méthode

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

    getContent() protected méthode

    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
    Résultat string HTML

    getCredentials() protected méthode

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

    getDateFormat() protected méthode

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

    getDecrementButtonHtml() protected méthode

    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
    Résultat string The HTML of the button

    getDefaultTemplateVariables() protected méthode

    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
    Résultat array The default template variables

    getDeleteButtonHtml() protected méthode

    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
    Résultat string The HTML of the button

    getEditButtonHtml() protected méthode

    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
    Résultat string The HTML of the button

    getError() protected méthode

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

    getErrorMessageByNumber() protected méthode

    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
    Résultat string The error message

    getErrorMessageHtml() protected méthode

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

    getHostFromRequest() protected méthode

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

    getHosts() protected méthode

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

    getHtmlInfoMessage() protected méthode

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

    getHtmlNavigationEntry() protected méthode

    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
    Résultat string Generated HTML as string

    getHtmlSuccessMessage() protected méthode

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

    getIncrementButtonHtml() protected méthode

    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
    Résultat string The HTML of the button

    getInfo() protected méthode

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

    getLinkForAction() protected méthode

    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
    Résultat string The link to phpMemAdmin

    getMemcachedClient() protected méthode

    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
    Résultat Clickalicious\Memcached\Client A client instance

    getMemcachedLatestVersion() protected méthode

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

    getMenuHtml() public méthode

    public getMenuHtml ( ) : string
    Résultat string

    getMessages() protected méthode

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

    getPrependButtonHtml() protected méthode

    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
    Résultat string The HTML of the button

    getSettings() protected méthode

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

    getSuccess() protected méthode

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

    getTitle() protected méthode

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

    getUrl() protected méthode

    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
    Résultat string The URL

    hosts() protected méthode

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

    info() protected méthode

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

    loadTemplates() protected méthode

    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
    Résultat string Content of template(s) as string

    parseArguments() protected méthode

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

    processRequestOperations() protected méthode

    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
    Résultat void

    redirect() protected méthode

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

    render() public méthode

    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
    Résultat string The rendered HTML(5) template ready for delivery

    renderString() protected méthode

    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)
    Résultat string The rendered string

    renderTemplate() protected méthode

    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)
    Résultat string Rendered HTML as string

    retrieveStoredData() protected méthode

    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
    Résultat array The data requested

    setAction() protected méthode

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

    setBaseUrl() protected méthode

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

    setClient() protected méthode

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

    setClients() protected méthode

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

    setCluster() protected méthode

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

    setConfig() protected méthode

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

    setCredentials() protected méthode

    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
    Résultat void

    setDateFormat() protected méthode

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

    setError() protected méthode

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

    setHosts() protected méthode

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

    setInfo() protected méthode

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

    setSuccess() protected méthode

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

    setTitle() protected méthode

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

    success() protected méthode

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

    title() protected méthode

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

    uuid() protected méthode

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

    Property Details

    $action protected_oe property

    The action currently processed : defaults to 1
    protected int $action
    Résultat integer

    $authentication protected_oe property

    Whether authentication is required.
    protected bool $authentication
    Résultat 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
    Résultat string

    $client protected_oe property

    Master instance of Memcached client for cloning from.
    protected Client,Clickalicious\Memcached $client
    Résultat Clickalicious\Memcached\Client

    $clients protected_oe property

    The collection of clients instantiated and used by the current run.
    protected array $clients
    Résultat array

    $cluster protected_oe property

    The name of the cluster.
    protected string $cluster
    Résultat string

    $config protected_oe property

    The configuration.
    protected stdClass $config
    Résultat stdClass

    $connections protected_oe static_oe property

    The connections already established.
    protected static array $connections
    Résultat array

    $credentials protected_oe property

    Credentials valid for access.
    protected array $credentials
    Résultat array

    $dateFormat protected_oe property

    The format used when displaying date/time values.
    protected string $dateFormat
    Résultat string

    $defaultTemplateVariables protected_oe property

    The list of memcached hosts.
    protected array $defaultTemplateVariables
    Résultat array

    $error protected_oe property

    The last error's message.
    protected string $error
    Résultat string

    $errorMessages protected_oe property

    Error Messages.
    protected array $errorMessages
    Résultat array

    $hosts protected_oe property

    The list of memcached hosts.
    protected array $hosts
    Résultat array

    $info protected_oe property

    An info message
    protected string $info
    Résultat string

    $success protected_oe property

    An success message
    protected string $success
    Résultat string

    $title protected_oe property

    The app title.
    protected string $title
    Résultat string