Home > Archive > PHP Pear > June 2004 > Re: [PEAR] elementTypeMap
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] elementTypeMap
|
|
| Justin Patrin 2004-06-24, 6:14 pm |
| On Thu, 24 Jun 2004 17:08:07 -0500, Sarah Gray <sarah@fabled.net> wrote:
>
> Hi,
>
> I thought elementTypeMap was set in formBuilder and didn't need to be
> configured (it's there in the file),
It doesn't and shouldn't be set unless you're using a custom or
different element type.
> but textareas are not created for
> my longtext or text field types -- everything is created in an input
> type text.
>
> The longtext and text fieldtypes in my DO are generated as
> var $test_description; // blob(16777215) blob -- does
> that have something to do with it?
> (Should it be generating as longtext instead of blob, if so how should I
> change that?)
The issue here isn't actually FormBuilder, it's DataObject. The
createTables.php script sets the type of those fields to
DB_DATAOBJECT_STR instead of DB_DATAOBJECT_TXT. You can either alter
your database.ini to make them type DB_DATAOBJECT_TXT or put a
textFields array in the DataObject listing the text fields.
>
> At any rate, to set elementTypeMap through the database.formBuilder.ini
> file, what's the exact syntax?
> I tried:
> elementTypeMap = shorttext:text,longtext:textarea
> but nothing happened. Wrong ini file? Wrong syntax? Both?
>
> thanks,
> s.
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> !DSPAM:40db4ea768561151165702!
>
>
--
paperCrane --Justin Patrin--
| |
| Alan Knowles 2004-06-25, 6:46 pm |
| The ideal solution for this is the generator should store field lengths
in the ini file
[{tablename}__len]
id = 11
test_description = 167777215
......
and the data should be accessable somehow.. - I've not had time to look
into how to do this, and where to put it.. yet..
Regards
Alan
Justin Patrin wrote:
> On Thu, 24 Jun 2004 17:08:07 -0500, Sarah Gray <sarah@fabled.net> wrote:
>
>
>
> It doesn't and shouldn't be set unless you're using a custom or
> different element type.
>
>
>
>
> The issue here isn't actually FormBuilder, it's DataObject. The
> createTables.php script sets the type of those fields to
> DB_DATAOBJECT_STR instead of DB_DATAOBJECT_TXT. You can either alter
> your database.ini to make them type DB_DATAOBJECT_TXT or put a
> textFields array in the DataObject listing the text fields.
>
>
>
>
>
| |
| Alan Knowles 2004-06-25, 6:46 pm |
| The ideal solution for this is the generator should store field lengths
in the ini file
[{tablename}__len]
id = 11
test_description = 167777215
......
and the data should be accessable somehow.. - I've not had time to look
into how to do this, and where to put it.. yet..
Regards
Alan
Justin Patrin wrote:
> On Thu, 24 Jun 2004 17:08:07 -0500, Sarah Gray <sarah@fabled.net> wrote:
>
>
>
> It doesn't and shouldn't be set unless you're using a custom or
> different element type.
>
>
>
>
> The issue here isn't actually FormBuilder, it's DataObject. The
> createTables.php script sets the type of those fields to
> DB_DATAOBJECT_STR instead of DB_DATAOBJECT_TXT. You can either alter
> your database.ini to make them type DB_DATAOBJECT_TXT or put a
> textFields array in the DataObject listing the text fields.
>
>
>
>
>
|
|
|
|
|