Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence de la classe FOFModelFieldNumber
+ Graphe d'héritage de FOFModelFieldNumber:

Fonctions membres publiques

 partial ($value)
 
 between ($from, $to, $include=true)
 
 outside ($from, $to, $include=false)
 
 interval ($value, $interval, $include=true)
 
 range ($from, $to, $include=true)
 
 modulo ($value, $interval, $include=true)
 
- Fonctions membres publiques hérités de FOFModelField
 __construct ($db, $field, $table_alias=false)
 
 isEmpty ($value)
 
 getDefaultSearchMethod ()
 
 getSearchMethods ()
 
 exact ($value)
 
 partial ($value)
 
 between ($from, $to, $include=true)
 
 outside ($from, $to, $include=false)
 
 interval ($from, $interval)
 
 range ($from, $to, $include=true)
 
 modulo ($from, $interval, $include=true)
 
 search ($value, $operator='=')
 
 getFieldName ()
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de FOFModelField
static getField ($field, $config=array())
 
static getFieldType ($type)
 
- Champs de données hérités de FOFModelField
 $null_value = null
 
- Attributs protégés hérités de FOFModelField
 $_db = null
 
 $name = ''
 
 $type = ''
 
 $table_alias = false
 

Documentation des fonctions membres

◆ between()

between (   $from,
  $to,
  $include = true 
)

Perform a between limits match. When $include is true the condition tested is: $from <= VALUE <= $to When $include is false the condition tested is: $from < VALUE < $to

Paramètres
mixed$fromThe lowest value to compare to
mixed$toThe higherst value to compare to
boolean$includeShould we include the boundaries in the search?
Renvoie
string The SQL where clause for this search

◆ interval()

interval (   $value,
  $interval,
  $include = true 
)

Perform an interval match. It's similar to a 'between' match, but the from and to values are calculated based on $value and $interval: $value - $interval < VALUE < $value + $interval

Paramètres
integer | float$valueThe center value of the search space
integer | float$intervalThe width of the search space
boolean$includeShould I include the boundaries in the search?
Renvoie
string The SQL where clause

Références $value.

◆ modulo()

modulo (   $value,
  $interval,
  $include = true 
)

Perform an interval match. It's similar to a 'between' match, but the from and to values are calculated based on $value and $interval: $value - $interval < VALUE < $value + $interval

Paramètres
integer | float$valueThe starting value of the search space
integer | float$intervalThe interval period of the search space
boolean$includeShould I include the boundaries in the search?
Renvoie
string The SQL where clause

Références $value.

◆ outside()

outside (   $from,
  $to,
  $include = false 
)

Perform an outside limits match. When $include is true the condition tested is: (VALUE <= $from) || (VALUE >= $to) When $include is false the condition tested is: (VALUE < $from) || (VALUE > $to)

Paramètres
mixed$fromThe lowest value of the excluded range
mixed$toThe higherst value of the excluded range
boolean$includeShould we include the boundaries in the search?
Renvoie
string The SQL where clause for this search

◆ partial()

partial (   $value)

The partial match is mapped to an exact match

Paramètres
mixed$valueThe value to compare to
Renvoie
string The SQL where clause for this search

Références $value.

◆ range()

range (   $from,
  $to,
  $include = true 
)

Perform a range limits match. When $include is true the condition tested is: $from <= VALUE <= $to When $include is false the condition tested is: $from < VALUE < $to

Paramètres
mixed$fromThe lowest value to compare to
mixed$toThe higherst value to compare to
boolean$includeShould we include the boundaries in the search?
Renvoie
string The SQL where clause for this search

La documentation de cette classe a été générée à partir du fichier suivant :