PHP Класс Clickalicious\PhpMemAdmin\App

Core of phpMemAdmin. Responsible for aggregating data via Memcached.php. Dispatching requests and rendering views from templates.
Автор: Benjamin Carl ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

    Описание методов

    __construct() публичный Метод

    Constructor.
    Автор: 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
    Результат App

    action() защищенный Метод

    Setter for action.
    Автор: Benjamin Carl ([email protected])
    protected action ( integer $action )
    $action integer The action to set

    actionToTemplates() защищенный Метод

    Returns a collection in logical order of templates required for passed action.
    Автор: Benjamin Carl ([email protected])
    protected actionToTemplates ( integer $action ) : array
    $action integer The action to return templates for
    Результат array An collection of templates in logical order

    aggregateStatistics() защищенный Метод

    Fetch statistics for a single host or (aggregated) for a collection of hosts (cluster).
    Автор: 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.
    Результат array The aggregated statistics

    authenticate() защищенный Метод

    Try to authenticate the user for active session.
    Автор: Benjamin Carl ([email protected])
    protected authenticate ( )

    baseUrl() защищенный Метод

    Setter for baseUrl.
    Автор: Benjamin Carl ([email protected])
    protected baseUrl ( string $baseUrl )
    $baseUrl string The base URL to set.

    castAsPhpType() защищенный Метод

    Returns the value casted to a native PHP type.
    Автор: Benjamin Carl ([email protected])
    protected castAsPhpType ( mixed $value ) : mixed
    $value mixed The value to cast magically.
    Результат mixed The resulting value

    client() защищенный Метод

    Setter for client.
    Автор: Benjamin Carl ([email protected])
    protected client ( Clickalicious\Memcached\Client $client )
    $client Clickalicious\Memcached\Client The client to set

    clients() защищенный Метод

    Setter for clients.
    Автор: Benjamin Carl ([email protected])
    protected clients ( array $clients )
    $clients array The clients to set

    cluster() защищенный Метод

    Setter for cluster.
    Автор: Benjamin Carl ([email protected])
    protected cluster ( string $cluster )
    $cluster string The name of the cluster

    config() защищенный Метод

    Setter for config.
    Автор: Benjamin Carl ([email protected])
    protected config ( stdClass $config )
    $config stdClass The config to set

    convertUptime() защищенный Метод

    ..
    Автор: Benjamin Carl ([email protected])
    protected convertUptime ( integer $timestamp ) : array
    $timestamp integer The timestamp to parse
    Результат array The result

    credentials() защищенный Метод

    Setter for credentials.
    Автор: 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() защищенный Метод

    Setter for dateFormat.
    Автор: Benjamin Carl ([email protected])
    protected dateFormat ( string $dateFormat )
    $dateFormat string The date-format string.

    dumpEntries() защищенный Метод

    Returns all entries for a passed slab (hostname & port) by passed namespace or all.
    Автор: 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
    Результат array List of entries indexed by key

    error() защищенный Метод

    Setter for error.
    Автор: Benjamin Carl ([email protected])
    protected error ( string $error )
    $error string The error to set

    errorContext() защищенный Метод

    Returns an error context array which contains an error-number and variables related to the error.
    Автор: Benjamin Carl ([email protected])
    protected errorContext ( integer $errorNumber, array $context = [] ) : array
    $errorNumber integer The error number
    $context array The related variables
    Результат array An error context array containing key number and context

    formatNumberAsText() защищенный Метод

    Formats a number to display it better readable.
    Автор: 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
    Результат string The formatted value

    getAction() публичный Метод

    Getter for action.
    Автор: Benjamin Carl ([email protected])
    public getAction ( ) : integer
    Результат integer The current action if set, otherwise NULL

    getActiveHost() публичный Метод

    Returns currently active host. If no host is active, the first one found in list of servers is the active one.
    Автор: 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).
    Результат string The active host name or ip

    getAppendButtonHtml() защищенный Метод

    Returns the HTML for the append button.
    Автор: Benjamin Carl ([email protected])
    protected getAppendButtonHtml ( string $key ) : string
    $key string The key to render button for
    Результат string The HTML of the button

    getBaseUrl() защищенный Метод

    Getter for baseUrl.
    Автор: Benjamin Carl ([email protected])
    protected getBaseUrl ( ) : string
    Результат string The base URL for this instance

    getClient() защищенный Метод

    Getter for client.
    Автор: Benjamin Carl ([email protected])
    protected getClient ( ) : Clickalicious\Memcached\Client | null
    Результат Clickalicious\Memcached\Client | null $client The client if set, otherwise NULL

    getClients() защищенный Метод

    Getter for clients.
    Автор: Benjamin Carl ([email protected])
    protected getClients ( ) : Clickalicious\Memcached\Client[]
    Результат Clickalicious\Memcached\Client[] The clients if set, otherwise empty array

    getCluster() защищенный Метод

    Getter for cluster.
    Автор: Benjamin Carl ([email protected])
    protected getCluster ( ) : string
    Результат string The name of the cluster

    getConfig() защищенный Метод

    Getter for config.
    Автор: Benjamin Carl ([email protected])
    protected getConfig ( ) : stdClass
    Результат stdClass config

    getContent() защищенный Метод

    Returns the inner content of the pages by action.
    Автор: Benjamin Carl ([email protected])
    protected getContent ( integer $action ) : string
    $action integer The action to return content for
    Результат string HTML

    getCredentials() защищенный Метод

    Getter for credentials.
    Автор: Benjamin Carl ([email protected])
    protected getCredentials ( ) : array
    Результат array The credentials

    getDateFormat() защищенный Метод

    Getter for dateFormat.
    Автор: Benjamin Carl ([email protected])
    protected getDateFormat ( ) : string
    Результат string The active date-time format

    getDecrementButtonHtml() защищенный Метод

    Returns the HTML for the decrement button.
    Автор: Benjamin Carl ([email protected])
    protected getDecrementButtonHtml ( string $key ) : string
    $key string The key to render button for
    Результат string The HTML of the button

    getDefaultTemplateVariables() защищенный Метод

    This method merges the pre-defined variables (defaultTemplateVariables) with runtime and date/time information to a final collection of template variables.
    Автор: Benjamin Carl ([email protected])
    protected getDefaultTemplateVariables ( ) : array
    Результат array The default template variables

    getDeleteButtonHtml() защищенный Метод

    Returns the delete button rendered by template render engine.
    Автор: Benjamin Carl ([email protected])
    protected getDeleteButtonHtml ( string $key ) : string
    $key string The key for button
    Результат string The HTML of the button

    getEditButtonHtml() защищенный Метод

    Returns the edit button rendered by template render engine.
    Автор: Benjamin Carl ([email protected])
    protected getEditButtonHtml ( string $key, string $value ) : string
    $key string The key for button
    $value string The value to edit
    Результат string The HTML of the button

    getError() защищенный Метод

    Getter for error.
    Автор: Benjamin Carl ([email protected])
    protected getError ( ) : string
    Результат string Error

    getErrorMessageByNumber() защищенный Метод

    Returns the error for the passed number if set, otherwise the string 'n.a.'.
    Автор: Benjamin Carl ([email protected])
    protected getErrorMessageByNumber ( integer $number ) : string
    $number integer The number to return error for
    Результат string The error message

    getErrorMessageHtml() защищенный Метод

    Returns the HTML for the error message if error is set, otherwise empty string.
    Автор: Benjamin Carl ([email protected])
    protected getErrorMessageHtml ( ) : string
    Результат string The HTML as string

    getHostFromRequest() защищенный Метод

    Returns host from request if exist, otherwise NULL.
    Автор: Benjamin Carl ([email protected])
    protected getHostFromRequest ( ) : null\string
    Результат null\string

    getHosts() защищенный Метод

    Getter for hosts.
    Автор: Benjamin Carl ([email protected])
    protected getHosts ( ) : array
    Результат array The list of hosts

    getHtmlInfoMessage() защищенный Метод

    Returns the HTML for the info message if info is set, otherwise empty string.
    Автор: Benjamin Carl ([email protected])
    protected getHtmlInfoMessage ( ) : string
    Результат string The HTML as string

    getHtmlNavigationEntry() защищенный Метод

    Creates
  • elements HTML used for generating navigation entries for example.
  • Автор: 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
    Результат string Generated HTML as string

    getHtmlSuccessMessage() защищенный Метод

    Returns the HTML for the success message if info is set, otherwise empty string.
    Автор: Benjamin Carl ([email protected])
    protected getHtmlSuccessMessage ( ) : string
    Результат string The HTML as string

    getIncrementButtonHtml() защищенный Метод

    Returns the HTML for the increment button.
    Автор: Benjamin Carl ([email protected])
    protected getIncrementButtonHtml ( string $key ) : string
    $key string The key to render button for
    Результат string The HTML of the button

    getInfo() защищенный Метод

    Getter for info.
    Автор: Benjamin Carl ([email protected])
    protected getInfo ( ) : string
    Результат string The info message

    getLinkForAction() защищенный Метод

    Returns the link to the phpMemAdmin installation with optional action argument.
    Автор: 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
    Результат string The link to phpMemAdmin

    getMemcachedClient() защищенный Метод

    Returns an instance of Client for host and port combination.
    Автор: 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
    Результат Clickalicious\Memcached\Client A client instance

    getMemcachedLatestVersion() защищенный Метод

    Returns the latest version from memcached official website or 1.0.0 as fallback.
    Автор: Benjamin Carl ([email protected])
    protected getMemcachedLatestVersion ( ) : string
    Результат string The latest version of Memcached from website or 1.0.0 as fallback (timeout)

    getMenuHtml() публичный Метод

    public getMenuHtml ( ) : string
    Результат string

    getMessages() защищенный Метод

    Retrieves the messages to be shown in rendered page.
    Автор: Benjamin Carl ([email protected])
    protected getMessages ( ) : string
    Результат string The message HTML string

    getPrependButtonHtml() защищенный Метод

    Returns the HTML for the prepend button.
    Автор: Benjamin Carl ([email protected])
    protected getPrependButtonHtml ( string $key ) : string
    $key string The key to render button for
    Результат string The HTML of the button

    getSettings() защищенный Метод

    Retrieve settings from Memcached instance.
    Автор: Benjamin Carl ([email protected])
    protected getSettings ( string $host ) : array
    $host string The host to retrieve statistics from.
    Результат array Containing the result

    getSuccess() защищенный Метод

    Getter for success.
    Автор: Benjamin Carl ([email protected])
    protected getSuccess ( ) : string
    Результат string The success message

    getTitle() защищенный Метод

    Getter for title.
    Автор: Benjamin Carl ([email protected])
    protected getTitle ( ) : string
    Результат string The title of the application

    getUrl() защищенный Метод

    Return the URL for the current executed route.
    Автор: 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
    Результат string The URL

    hosts() защищенный Метод

    Setter for hosts.
    Автор: Benjamin Carl ([email protected])
    protected hosts ( array $hosts )
    $hosts array The host array

    info() защищенный Метод

    Setter for info.
    Автор: Benjamin Carl ([email protected])
    protected info ( string $info )
    $info string The info message to set

    loadTemplates() защищенный Метод

    Loads a template from filesystem.
    Автор: Benjamin Carl ([email protected])
    protected loadTemplates ( string | array $templates ) : string
    $templates string | array A single template as string or a collection as array
    Результат string Content of template(s) as string

    parseArguments() защищенный Метод

    Parses arguments and stores the values.
    Автор: Benjamin Carl ([email protected])
    protected parseArguments ( array $arguments ) : void
    $arguments array The arguments to parse
    Результат void

    processRequestOperations() защищенный Метод

    Processes the operations passed with the current request.
    Автор: 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
    Результат void

    redirect() защищенный Метод

    Redirects to the passed URL.
    Автор: Benjamin Carl ([email protected])
    protected redirect ( string $url ) : void
    $url string The URL to redirect to
    Результат void

    render() публичный Метод

    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.
    Автор: Benjamin Carl ([email protected])
    public render ( string $route = self::DEFAULT_BASEURL, array $arguments = [] ) : string
    $route string The route running
    $arguments array Arguments from request
    Результат string The rendered HTML(5) template ready for delivery

    renderString() защищенный Метод

    Renders the content of $string with variables from $variables.
    Автор: 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)
    Результат string The rendered string

    renderTemplate() защищенный Метод

    Renders a template.
    Автор: 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)
    Результат string Rendered HTML as string

    retrieveStoredData() защищенный Метод

    Returns the stored data from a Memcached instance.
    Автор: 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
    Результат array The data requested

    setAction() защищенный Метод

    Setter for action.
    Автор: Benjamin Carl ([email protected])
    protected setAction ( integer $action ) : void
    $action integer The action to set
    Результат void

    setBaseUrl() защищенный Метод

    Setter for baseUrl.
    Автор: Benjamin Carl ([email protected])
    protected setBaseUrl ( string $baseUrl ) : void
    $baseUrl string The base URL to set.
    Результат void

    setClient() защищенный Метод

    Setter for client.
    Автор: Benjamin Carl ([email protected])
    protected setClient ( Clickalicious\Memcached\Client $client ) : void
    $client Clickalicious\Memcached\Client The client to set
    Результат void

    setClients() защищенный Метод

    Setter for clients.
    Автор: Benjamin Carl ([email protected])
    protected setClients ( array $clients ) : void
    $clients array The client to set
    Результат void

    setCluster() защищенный Метод

    Setter for cluster.
    Автор: Benjamin Carl ([email protected])
    protected setCluster ( string $cluster ) : void
    $cluster string The name of the cluster
    Результат void

    setConfig() защищенный Метод

    Setter for config.
    Автор: Benjamin Carl ([email protected])
    protected setConfig ( stdClass $config ) : void
    $config stdClass The config to set
    Результат void

    setCredentials() защищенный Метод

    Setter for credentials.
    Автор: 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
    Результат void

    setDateFormat() защищенный Метод

    Setter for dateFormat.
    Автор: Benjamin Carl ([email protected])
    protected setDateFormat ( string $dateFormat ) : void
    $dateFormat string The date-format string.
    Результат void

    setError() защищенный Метод

    Setter for error.
    Автор: Benjamin Carl ([email protected])
    protected setError ( string $error ) : void
    $error string The error to set
    Результат void

    setHosts() защищенный Метод

    Setter for hosts.
    Автор: Benjamin Carl ([email protected])
    protected setHosts ( array $hosts ) : void
    $hosts array The host array
    Результат void

    setInfo() защищенный Метод

    Setter for info.
    Автор: Benjamin Carl ([email protected])
    protected setInfo ( string $info ) : void
    $info string The info message to set
    Результат void

    setSuccess() защищенный Метод

    Setter for success.
    Автор: Benjamin Carl ([email protected])
    protected setSuccess ( string $success ) : void
    $success string The success message to set
    Результат void

    setTitle() защищенный Метод

    Setter for title.
    Автор: Benjamin Carl ([email protected])
    protected setTitle ( string $title ) : void
    $title string The title
    Результат void

    success() защищенный Метод

    Setter for success.
    Автор: Benjamin Carl ([email protected])
    protected success ( string $success )
    $success string The success message to set

    title() защищенный Метод

    Setter for title.
    Автор: Benjamin Carl ([email protected])
    protected title ( string $title )
    $title string The title

    uuid() защищенный Метод

    Simple generic hashing of dynamic input.
    Автор: Benjamin Carl ([email protected])
    protected uuid ( ) : string
    Результат string The calculated UUID

    Описание свойств

    $action защищенное свойство

    The action currently processed : defaults to 1
    protected int $action
    Результат integer

    $authentication защищенное свойство

    Whether authentication is required.
    protected bool $authentication
    Результат boolean

    $baseUrl защищенное свойство

    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
    Результат string

    $client защищенное свойство

    Master instance of Memcached client for cloning from.
    protected Client,Clickalicious\Memcached $client
    Результат Clickalicious\Memcached\Client

    $clients защищенное свойство

    The collection of clients instantiated and used by the current run.
    protected array $clients
    Результат array

    $cluster защищенное свойство

    The name of the cluster.
    protected string $cluster
    Результат string

    $config защищенное свойство

    The configuration.
    protected stdClass $config
    Результат stdClass

    $connections защищенное статическое свойство

    The connections already established.
    protected static array $connections
    Результат array

    $credentials защищенное свойство

    Credentials valid for access.
    protected array $credentials
    Результат array

    $dateFormat защищенное свойство

    The format used when displaying date/time values.
    protected string $dateFormat
    Результат string

    $defaultTemplateVariables защищенное свойство

    The list of memcached hosts.
    protected array $defaultTemplateVariables
    Результат array

    $error защищенное свойство

    The last error's message.
    protected string $error
    Результат string

    $errorMessages защищенное свойство

    Error Messages.
    protected array $errorMessages
    Результат array

    $hosts защищенное свойство

    The list of memcached hosts.
    protected array $hosts
    Результат array

    $info защищенное свойство

    An info message
    protected string $info
    Результат string

    $success защищенное свойство

    An success message
    protected string $success
    Результат string

    $title защищенное свойство

    The app title.
    protected string $title
    Результат string