PHP Класс Horde_Deprecated, horde

Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект

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

Метод Описание
base64ImgData ( mixed $in, integer $limit = null ) : string Generate RFC 2397-compliant image data strings.
callHook ( string $hook, array $args = [], string $app = 'horde' ) : mixed Call a Horde hook, handling all of the necessary lookups and parsing of the hook code.
fullSrcImg ( $src, array $opts = [] ) Same as img(), but returns a full source url for the image.
hookExists ( string $hook, string $app = 'horde' ) : boolean Returns whether a hook exists.
img ( mixed $src, string $alt = '', mixed $attr = '' ) : string Constructs a correctly-pathed tag to an image.
initMap ( array $params = [] ) Initialize a HordeMap.
loadConfiguration ( string $config_file, string | array $var_names = null, string $app = null, boolean $show_output = false ) : mixed Loads global and vhost specific configuration files.
prepareResponse ( mixed $data = null, boolean $notify = false ) : object Returns a response object with added notification information.
sendHTTPResponse ( mixed $data, string $ct ) Send response data to browser.

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

base64ImgData() публичный статический Метод

Generate RFC 2397-compliant image data strings.
Устаревший: Use Horde_Themes_Image::base64ImgData()
public static base64ImgData ( mixed $in, integer $limit = null ) : string
$in mixed URI or Horde_Themes_Image object containing image data.
$limit integer Sets a hard size limit for image data; if exceeded, will not string encode.
Результат string The string to use in the image 'src' attribute; either the image data if the browser supports, or the URI if not.

callHook() публичный статический Метод

WARNING: Throwing exceptions is expensive, so use callHook() with care and cache the results if you going to use the results more than once.
Устаревший: Use Horde_Core_Hooks object instead.
public static callHook ( string $hook, array $args = [], string $app = 'horde' ) : mixed
$hook string The function to call.
$args array An array of any arguments to pass to the hook function.
$app string The hook application.
Результат mixed The results of the hook.

fullSrcImg() публичный статический Метод

Useful for when the image may be part of embedded Horde content on an external site.
См. также: img()
Устаревший: Use Horde_Themes_Image::tag()
public static fullSrcImg ( $src, array $opts = [] )
$opts array

hookExists() публичный статический Метод

Use this if you have to call a hook many times and expect the hook to not exist.
Устаревший: Use Horde_Core_Hooks object instead.
public static hookExists ( string $hook, string $app = 'horde' ) : boolean
$hook string The function to call.
$app string The hook application.
Результат boolean True if the hook exists.

img() публичный статический Метод

Constructs a correctly-pathed tag to an image.
Устаревший: Use Horde_Themes_Image::tag()
public static img ( mixed $src, string $alt = '', mixed $attr = '' ) : string
$src mixed The image file (either a string or a Horde_Themes_Image object).
$alt string Text describing the image.
$attr mixed Any additional attributes for the image tag. Can be a pre-built string or an array of key/value pairs that will be assembled and html-encoded.
Результат string The full image tag.

initMap() публичный статический Метод

Initialize a HordeMap.
Устаревший: Call Horde_Core_HordeMap::init() instead.
public static initMap ( array $params = [] )
$params array

loadConfiguration() публичный статический Метод

Loads global and vhost specific configuration files.
Устаревший: Use Horde_Registry#loadConfigFile() instead.
public static loadConfiguration ( string $config_file, string | array $var_names = null, string $app = null, boolean $show_output = false ) : mixed
$config_file string The name of the configuration file.
$var_names string | array The name(s) of the variable(s) that is/are defined in the configuration file.
$app string The application. Defaults to the current application.
$show_output boolean If true, the contents of the requested config file are simply output instead of loaded into a variable.
Результат mixed The value of $var_names, in a compact()'ed array if $var_names is an array.

prepareResponse() публичный статический Метод

Returns a response object with added notification information.
Устаревший:
public static prepareResponse ( mixed $data = null, boolean $notify = false ) : object
$data mixed The 'response' data.
$notify boolean If true, adds notification info to object.
Результат object The Horde JSON response. It has the following properties: - msgs: (array) [OPTIONAL] List of notification messages. - response: (mixed) The response data for the request.

sendHTTPResponse() публичный статический Метод

Send response data to browser.
Устаревший:
public static sendHTTPResponse ( mixed $data, string $ct )
$data mixed The data to serialize and send to the browser.
$ct string The content-type to send the data with. Either 'json', 'js-json', 'html', 'plain', and 'xml'.