ActiveRecord_ColumnA class containing information about a table column.
Located in /activerecord/lib/ActiveRecord/Column.php (line 15)
ActiveRecord_Column
__construct
(string $name, string $default, [string $sql_type = NULL], [bool $null_allowed = true])
mixed
$default
(line 47)
The default value
mixed
$limit
(line 31)
The size limit of the column
mixed
$name
(line 19)
The column name
mixed
$null_allowed
(line 43)
Whether or not the column may contain nulls
mixed
$precision
(line 39)
The precision of the column
mixed
$primary
(line 52)
A flag indicating whether or not this is the primary key for the
table
mixed
$scale
(line 35)
The scale of the columm
mixed
$sql_type
(line 23)
The column data type (as reported by the DB)
mixed
$type
(line 27)
The simplified column data type
Constructor __construct (line 62)
Constructor
default_value (line 136)
Return the default value for the column
extract_limit (line 264)
Retrieve the size limit from a raw SQL type
extract_precision (line 279)
Retrieve the precision (for decimal types) from a raw SQL type
extract_scale (line 294)
Retrieve the scale (for decimal types) from a raw SQL type
is_number (line 173)
Return true if the data type is a numeric type
is_text (line 163)
Return true if the data type is a text type
limit (line 104)
Return the size limit of the column
name (line 77)
Return the column name
null_allowed (line 128)
Returns true if the column may contain nulls, false otherwise.
precision (line 120)
Return the precision of the column
primary (line 144)
Returns true if this column is the tables primary key, false otherwise.
reverse_type_cast (line 227)
The opposite of type_cast. Accepts a data type appropriate for this column and converts it (if required) back to a value appropriate for use in a SQL statement.
scale (line 112)
Return the scale of the columm
set_primary (line 154)
Set whether or not this column is the tables primary key.
simplified_type (line 311)
Return a normalized type name from a raw SQL type
sql_type (line 85)
Return the column data type (as reported by the DB)
type (line 96)
Return the column data type as a normalized name. May be one of integer, float, decimal, datetime, date, timestamp, time, text, string, binary, or boolean.
type_cast (line 186)
Cast a string or raw database value to the correct type for this column
Documentation generated on Wed, 25 Apr 2012 09:46:41 -0700 by phpDocumentor 1.4.3