Application
Interfaces, Classes and Traits
- VersionRangeOperatorInterface
- autocomplete_htmlFormWidget
- Widget allowing to select a value by showing results from a search after the user starts to type a name. The search is made into a select html element filled by the datasource of the control, which should be a menulist.
- autocompleteajax_htmlFormWidget
- Widget allowing to select a value by showing results from a search after the user start to type a name. The search is made by doing an http request to the server. See jAutocompleteAjax jqueryui plugin, which is base on the autocomplete plugin.
- time_htmlFormWidget
- HTML form builder.
- upload2_htmlFormWidget
- Widget to display the selection of a file to upload
- Path
- Parser
- Version
- Embed version informations.
- VersionComparator
- class to compare version numbers. it supports the following keywords: "pre", "-dev", "b", "beta", "a", "alpha".
- versionRangeBinaryOperator
- Represents a binary operator (AND or OR) in a version range expression.
- versionRangeUnaryOperator
- Represents an unary operator (>,<,=,!=,<=,>=,~) in a version range expression.
- versionRangeTrueOperator
Table of Contents
- PASSWORD_BCRYPT = 1
- PASSWORD_DEFAULT = PASSWORD_BCRYPT
- can_use_password_API() : mixed
- function to check if the password API can be used In some PHP version ( <5.3.7), crypt() with blowfish is vulnerable.
- password_hash() : mixed
- Hash the password using the specified algorithm
- password_get_info() : array<string|int, mixed>
- Get information about the password hash. Returns an array of the information that was used to generate the password hash.
- password_needs_rehash() : bool
- Determine if the password hash needs to be rehashed according to the options provided
- password_verify() : bool
- Verify a password against a hash using a timing attack resistant approach
- jtpl_function_html_breadcrumb() : mixed
- breadcrumb plugin : display breadcrumb trails, ie. user navigation tracking
Constants
PASSWORD_BCRYPT
public
mixed
PASSWORD_BCRYPT
= 1
PASSWORD_DEFAULT
public
mixed
PASSWORD_DEFAULT
= PASSWORD_BCRYPT
Functions
can_use_password_API()
function to check if the password API can be used In some PHP version ( <5.3.7), crypt() with blowfish is vulnerable.
can_use_password_API() : mixed
But this issue has been fixed on some older PHP version (php 5.3.3 for most of them) in some distro, like Debian squeeze.
Tags
Return values
mixed —password_hash()
Hash the password using the specified algorithm
password_hash(string $password, int $algo[, array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $password : string
-
The password to hash
- $algo : int
-
The algorithm to use (Defined by PASSWORD_* constants)
- $options : array<string|int, mixed> = array()
-
The options for the algorithm to use
Tags
Return values
mixed —password_get_info()
Get information about the password hash. Returns an array of the information that was used to generate the password hash.
password_get_info(string $hash) : array<string|int, mixed>
array( 'algo' => 1, 'algoName' => 'bcrypt', 'options' => array( 'cost' => 10, ), )
Parameters
- $hash : string
-
The password hash to extract info from
Return values
array<string|int, mixed> —The array of information about the hash.
password_needs_rehash()
Determine if the password hash needs to be rehashed according to the options provided
password_needs_rehash(string $hash, int $algo[, array<string|int, mixed> $options = array() ]) : bool
If the answer is true, after validating the password using password_verify, rehash it.
Parameters
- $hash : string
-
The hash to test
- $algo : int
-
The algorithm used for new password hashes
- $options : array<string|int, mixed> = array()
-
The options array passed to password_hash
Return values
bool —True if the password needs to be rehashed.
password_verify()
Verify a password against a hash using a timing attack resistant approach
password_verify(string $password, string $hash) : bool
Parameters
- $password : string
-
The password to verify
- $hash : string
-
The hash to verify against
Return values
bool —If the password matches the hash
jtpl_function_html_breadcrumb()
breadcrumb plugin : display breadcrumb trails, ie. user navigation tracking
jtpl_function_html_breadcrumb(jTpl $tpl[, array<string|int, mixed> $nb = null ][, string $separator = '' ]) : mixed
Parameters
- $tpl : jTpl
-
template engine
- $nb : array<string|int, mixed> = null
-
the number of items displayed by the plugin
- $separator : string = ''
-
Symbol separating items