Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
ManaPHP
Mvc
ModelInterface
average
ManaPHP\Mvc\ModelInterface::average PHP Method
ModelInterface Interface Documentation
Show file
Open project: manaphp/manaphp
average()
public
static
method
Allows to calculate the average value on a column matching the specified conditions
public
static
average
(
string
$column
,
string
|
array
$parameters
= null,
integer
|
array
$cacheOptions
= null ) :
double
$column
string
$parameters
string
|
array
$cacheOptions
integer
|
array
return
double
public static function average($column, $parameters = null, $cacheOptions = null);
ModelInterface
assign
average
count
create
delete
deleteAll
exists
find
findAll
findFirst
getChangedFields
getReadConnection
getReadConnectionService
getSnapshotData
getSource
getWriteConnection
getWriteConnectionService
hasChanged
max
min
query
save
setConnectionService
setReadConnectionService
setWriteConnectionService
sum
toArray
update
updateAll