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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe FOFModelFieldDate
+ Graphe d'héritage de FOFModelFieldDate:

Fonctions membres publiques

 getDefaultSearchMethod ()
 
 between ($from, $to, $include=true)
 
 outside ($from, $to, $include=false)
 
 interval ($value, $interval, $include=true)
 
 range ($from, $to, $include=true)
 
- Fonctions membres publiques hérités de FOFModelFieldText
 __construct ($db, $field, $table_alias=false)
 
 getDefaultSearchMethod ()
 
 partial ($value)
 
 exact ($value)
 
 between ($from, $to, $include=true)
 
 outside ($from, $to, $include=false)
 
 interval ($value, $interval, $include=true)
 
 range ($from, $to, $include=false)
 
 modulo ($from, $to, $include=false)
 
- 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 ()
 

Fonctions membres protégées

 getInterval ($interval)
 

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

◆ getDefaultSearchMethod()

getDefaultSearchMethod ( )

Returns the default search method for this field.

Renvoie
string

◆ getInterval()

getInterval (   $interval)
protected

Parses an interval –which may be given as a string, array or object– into a standardised hash array that can then be used bu the interval() method.

Paramètres
string | array | object$intervalThe interval expression to parse
Renvoie
array The parsed, hash array form of the interval

Références $value.

◆ interval()

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

Interval date search

Paramètres
string$valueThe value to search
string | array | object$intervalThe interval. Can be (+1 MONTH or array('value' => 1, 'unit' => 'MONTH', 'sign' => '+'))
boolean$includeIf the borders should be included
Renvoie
string the sql string

Références $function, et $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

◆ range()

range (   $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

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