Class FOFModelFieldText
FrameworkOnFramework model behavior class
-
FOFModelField
-
FOFModelFieldText
Methods summary
public
|
#
__construct( FOFDatabaseDriver $db, object $field, string $table_alias = false )
Constructor
Parameters
- $db
FOFDatabaseDriver - $db The database object
- $field
object - $field The field informations as taken from the db
- $table_alias
string - $table_alias The table alias to use when filtering
Overrides
|
public
string
|
#
getDefaultSearchMethod( )
Returns the default search method for this field.
Returns the default search method for this field.
Returns
string
Overrides
|
public
string
|
#
partial( mixed $value )
Perform a partial match (search in string)
Perform a partial match (search in string)
Parameters
- $value
mixed - $value The value to compare to
Returns
string - The SQL where clause for this search
|
public
string
|
#
exact( mixed $value )
Perform an exact match (match string)
Perform an exact match (match string)
Parameters
- $value
mixed - $value The value to compare to
Returns
string - The SQL where clause for this search
Overrides
|
public
string
|
#
between( mixed $from, mixed $to, boolean $include = true )
Dummy method; this search makes no sense for text fields
Dummy method; this search makes no sense for text fields
Parameters
- $from
mixed - $from Ignored
- $to
mixed - $to Ignored
- $include
boolean - $include Ignored
Returns
string - Empty string
|
public
string
|
#
outside( mixed $from, mixed $to, boolean $include = false )
Dummy method; this search makes no sense for text fields
Dummy method; this search makes no sense for text fields
Parameters
- $from
mixed - $from Ignored
- $to
mixed - $to Ignored
- $include
boolean - $include Ignored
Returns
string - Empty string
|
public
string
|
#
interval( mixed $value, mixed $interval, boolean $include = true )
Dummy method; this search makes no sense for text fields
Dummy method; this search makes no sense for text fields
Parameters
- $value
mixed - $value Ignored
- $interval
mixed - $interval Ignored
- $include
boolean - $include Ignored
Returns
string - Empty string
|
public
string
|
#
range( mixed $from, mixed $to, boolean $include = false )
Dummy method; this search makes no sense for text fields
Dummy method; this search makes no sense for text fields
Parameters
- $from
mixed - $from Ignored
- $to
mixed - $to Ignored
- $include
boolean - $include Ignored
Returns
string - Empty string
|
public
string
|
#
modulo( mixed $from, mixed $to, boolean $include = false )
Dummy method; this search makes no sense for text fields
Dummy method; this search makes no sense for text fields
Parameters
- $from
mixed - $from Ignored
- $to
mixed - $to Ignored
- $include
boolean - $include Ignored
Returns
string - Empty string
|
getField()
,
getFieldName()
,
getFieldType()
,
getSearchMethods()
,
isEmpty()
,
search()
Magic methods summary
Properties summary
$_db
,
$name
,
$null_value
,
$table_alias
,
$type