note replacement functions for WebGUI::Utility in migration docs
This commit is contained in:
parent
ed04b99872
commit
494b270dab
1 changed files with 18 additions and 0 deletions
|
|
@ -37,6 +37,24 @@ WebGUI::Session::Env has been moved into WebGUI::Session::Request. A listing of
|
|||
$session->env->getIp => $session->request->address
|
||||
|
||||
|
||||
WebGUI::Utility
|
||||
===============
|
||||
This module has been removed. It had many functions that weren't used, and others have better replacements.
|
||||
|
||||
formatBytes -> Number::Format::format_bytes
|
||||
commify -> Number::Format::format_number
|
||||
emailRegex -> Email::Valid->address()
|
||||
isBetween -> <= / >=
|
||||
makeArrayTabSafe -> Text::CSV_XS methods
|
||||
scalarEquals -> eq
|
||||
randint -> int( rand( $x ) )
|
||||
isInSubnet -> Net::CIDR::Lite->new(@filters)->find($ip)
|
||||
round -> sprintf '%.0f', $x
|
||||
isIn -> smart match
|
||||
sortHash -> sort with map
|
||||
|
||||
All other subs were unused and were just removed.
|
||||
|
||||
|
||||
WebGUI::Cache
|
||||
=============
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue