PHP 클래스 Horde_Deprecated, horde

저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
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'.