Helper
- Full name:
\Qubus\View\Helper
- This class is marked as final and can't be subclassed
- This class is a Final class
Methods
abs
Absolute value of a number.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed|null |
bytes
public static bytes(mixed $obj = null, int $decimals = 1, ?string $dec = '.', ?string $sep = ','): string
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$decimals | int | |
$dec | ?string | |
$sep | ?string |
capitalize
Capitalize a string
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$var | mixed | String to capitalize. |
cycle
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$var | mixed |
date
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$format | string |
dump
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
esc
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$force | bool |
escape
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$force | bool |
first
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$default | mixed |
format
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$args | mixed |
isIterable
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
isDivisibleBy
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$number | mixed |
isEmpty
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
isEven
Check if scalar is even number.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
isOdd
Check if scalar is odd number.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
join
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$glue | array|string |
jsonEncode
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
keys
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
last
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$default | mixed |
length
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
lower
Convert string to lowercase.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
nl2br
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$isXhtml | mixed |
numberFormat
public static numberFormat(mixed $obj = null, int $decimals, ?string $decPoint = '.', ?string $thousandsSep = ','): string
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$decimals | int | |
$decPoint | ?string | |
$thousandsSep | ?string |
repeat
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$times | int |
replace
public static replace(mixed $obj = null, array|string $search = '', array|string $replace = '', bool $regex = false): array|string|null
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$search | array|string | |
$replace | array|string | |
$regex | bool |
stripTags
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$allowableTags | mixed |
title
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
trim
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$charlist | string |
truncate
public static truncate(mixed $string = null, int $limit = 255, string $continuation = '…', bool $isHtml = false): string
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$string | mixed | |
$limit | int | |
$continuation | string | |
$isHtml | bool |
unescape
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
upper
Converts string to uppercase.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
urlEncode
Url encodes a string.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed |
wordWrap
public static wordWrap(mixed $obj = null, int $width = 75, string $break = "
", bool $cut = false): string
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$width | int | |
$break | string | |
$cut | bool |
imageTag
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$options | array |
cssTag
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$options | array |
scriptTag
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$obj | mixed | |
$options | array |
htmlAttribute
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$attrs | array | |
$data | array |
extract
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$attrs | array | |
$data | array |
Automatically generated on 2025-10-13