PHP 클래스 LiquidStandardFilters, php-liquid

파일 보기 프로젝트 열기: harrydeluxe/php-liquid

공개 메소드들

메소드 설명
append ( $input, $append ) : string Append characters to a string
capitalize ( string $input ) : string Capitalize words in the input sentence
date ( mixed $input, string $format ) : string Formats a date using strftime
divided_by ( float $input, float $operand ) : float division
downcase ( string $input ) : string Convert an input to lowercase
escape ( string $input ) : string Escape a string
first ( array $input ) : mixed Returns the first element of an array
join ( array $input, string $glue = ' ' ) : string Joins elements of an array with a given character between them
last ( array $input ) : mixed Returns the last element of an array
minus ( float $input, float $operand ) : float subtraction
modulo ( integer $input, integer $operand ) : integer modulo
newline_to_br ( string $input ) : string Replace each newline (\n) with html break
plus ( float $input, float $operand ) : float addition
prepend ( $input, $prepend ) : string Prepend characters to a string
remove ( string $input, string $find ) : string Remove all occurrences of a string.
remove_first ( string $input, string $find ) : string Remove first occurrence of a string.
replace ( string $input, string $find, string $replace ) : string Replace all occurrences of a string with another.
replace_first ( string $input, string $find, string $replace ) : string Replace first occurrence of a string with another.
size ( mixed $input ) : integer Return the size of an array or of an string
split ( string $input, string $pattern ) : array Split input string into an array of substrings separated by given pattern.
strip_html ( string $input ) : string Removes html tags from text
strip_newlines ( string $input ) : string Strip all newlines (\n, \r) from string
times ( float $input, float $operand ) : float multiplication
truncate ( string $input, integer $characters = 100 ) : string Truncate a string down to x characters
truncatewords ( string $input, integer $words = 3 ) : string Truncate string down to x words
upcase ( string $input ) : string Convert an input to uppercase

메소드 상세

append() 공개 정적인 메소드

Append characters to a string
public static append ( $input, $append ) : string
리턴 string

capitalize() 공개 정적인 메소드

Capitalize words in the input sentence
public static capitalize ( string $input ) : string
$input string
리턴 string

date() 공개 정적인 메소드

Formats a date using strftime
public static date ( mixed $input, string $format ) : string
$input mixed
$format string
리턴 string

divided_by() 공개 정적인 메소드

division
public static divided_by ( float $input, float $operand ) : float
$input float
$operand float
리턴 float

downcase() 공개 정적인 메소드

Convert an input to lowercase
public static downcase ( string $input ) : string
$input string
리턴 string

escape() 공개 정적인 메소드

Escape a string
public static escape ( string $input ) : string
$input string
리턴 string

first() 공개 정적인 메소드

Returns the first element of an array
public static first ( array $input ) : mixed
$input array
리턴 mixed

join() 공개 정적인 메소드

Joins elements of an array with a given character between them
public static join ( array $input, string $glue = ' ' ) : string
$input array
$glue string
리턴 string

last() 공개 정적인 메소드

Returns the last element of an array
public static last ( array $input ) : mixed
$input array
리턴 mixed

minus() 공개 정적인 메소드

subtraction
public static minus ( float $input, float $operand ) : float
$input float
$operand float
리턴 float

modulo() 공개 정적인 메소드

modulo
public static modulo ( integer $input, integer $operand ) : integer
$input integer
$operand integer
리턴 integer

newline_to_br() 공개 정적인 메소드

Replace each newline (\n) with html break
public static newline_to_br ( string $input ) : string
$input string
리턴 string

plus() 공개 정적인 메소드

addition
public static plus ( float $input, float $operand ) : float
$input float
$operand float
리턴 float

prepend() 공개 정적인 메소드

Prepend characters to a string
public static prepend ( $input, $prepend ) : string
리턴 string

remove() 공개 정적인 메소드

Remove all occurrences of a string.
public static remove ( string $input, string $find ) : string
$input string
$find string
리턴 string

remove_first() 공개 정적인 메소드

Remove first occurrence of a string.
public static remove_first ( string $input, string $find ) : string
$input string
$find string
리턴 string

replace() 공개 정적인 메소드

Replace all occurrences of a string with another.
public static replace ( string $input, string $find, string $replace ) : string
$input string
$find string
$replace string
리턴 string

replace_first() 공개 정적인 메소드

Replace first occurrence of a string with another.
public static replace_first ( string $input, string $find, string $replace ) : string
$input string
$find string
$replace string
리턴 string

size() 공개 정적인 메소드

Return the size of an array or of an string
public static size ( mixed $input ) : integer
$input mixed
리턴 integer

split() 공개 정적인 메소드

Split input string into an array of substrings separated by given pattern.
public static split ( string $input, string $pattern ) : array
$input string
$pattern string
리턴 array

strip_html() 공개 정적인 메소드

Removes html tags from text
public static strip_html ( string $input ) : string
$input string
리턴 string

strip_newlines() 공개 정적인 메소드

Strip all newlines (\n, \r) from string
public static strip_newlines ( string $input ) : string
$input string
리턴 string

times() 공개 정적인 메소드

multiplication
public static times ( float $input, float $operand ) : float
$input float
$operand float
리턴 float

truncate() 공개 정적인 메소드

Truncate a string down to x characters
public static truncate ( string $input, integer $characters = 100 ) : string
$input string
$characters integer
리턴 string

truncatewords() 공개 정적인 메소드

Truncate string down to x words
public static truncatewords ( string $input, integer $words = 3 ) : string
$input string
$words integer
리턴 string

upcase() 공개 정적인 메소드

Convert an input to uppercase
public static upcase ( string $input ) : string
$input string
리턴 string