$addHeadString =
[line 247]
string that should be added into the head of the output (after the <html> tag).
Tags:
$Bs_Array =
[line 111]
reference to the pseudostatic Bs_Array.
Tags:
$Bs_TextUtil =
[line 104]
reference to the global pseudostatic Bs_TextUtil.
Tags:
$dbName =
[line 150]
the database name. if not given then the current db will be used.
Tags:
$dbTableName =
[line 156]
the database table name.
Tags:
$formName =
[line 136]
the internal name of the form (as it is persisted).
if no form is used or if it cannot be loaded/found then a form will be produced on the fly based on the information that's available (db table structure). that's not as good, misses tons of features, but it's ok. i mean it's not that hard to spit out a textarea html field for a blob db field.
Tags:
$guiStrings =
[line 325]
hash with the gui strings loaded from language files in the constructor.
feel free to modify it. but better create your own files.
Tags:
$internalName =
[line 123]
the internal unique name of this debedoo object. we need to be able to identify it.
maybe you want to use the tablename here, maybe along with the dbname and host somehow.
Tags:
$overviewSettings =
[line 231]
this var is used for the overview data tables. it defines how the overview table will look.
you can define different "profiles". one might need that for different user groups or so.
examples: $overviewSettings['myProfile'] = array( 'userGroups' => array('admin', 'superman'), 'limit' => 20, 'trim' => 20, ... );
KEY DATATYPE DEFAULT EXAMPLE DESCRIPTION 'userGroups' array (vector) array() array('-all-') the users or groups that may use this profile. the entry '-all-' means 'everyone'. 'limit' int 20 0 the number of records per page. 20 is the default. 0 = no limit. 'trim' int 20 0 the number of chars after which we trim (and attach '...' to the string). 0 = don't trim. 'trimBlob' int 20 100 same as trim but for blobs this time. 'hideID' bool TRUE FALSE whether the ID field should be hidden or not. 'resolveKeys' bool TRUE FALSE whether to resolve foreign keys or not (ID => caption). 'autoNumbers' bool TRUE FALSE whether to add auto-numbers on the left side of the table or not. //'fields' hash, key is the fieldname, value is a hash with the following keys: // 'caption' the caption to use. if not set then the field name will be used. maybe an array (language dependancy) or just a string. // 'trim' (like above) // 'trimBlob' (like above) // 'foreignKey' if it's a foreign key then you can give the fields in the foreign table that should be used in the // view.
ideas to implement: makeLinksClickable (email, url, all) emailToLink urlToLink sortable = TRUE pageable = TRUE fieldsToShow alignNumRight align numeric values (depending on db field definition) to the right, like excel.
if no profile is given or may be used, the following rules apply: userGroups : everyone fieldsToShow: the first 5 fields that are not blobs. the ID field is omitted. char fields are trimmed at 20 chars and extended with '...'. the caption will be the field name (except if it's a known field name like 'phone' or 'street' or so).
Tags:
$overviewWindroseStyles =
[line 256]
if set then these styles will be applied to the overview table. otherwise a default style will be used.
Tags:
$persister = NULL
[line 55]
instance of Bs_ObjPersisterForMySql to persist the settings.
$persisterID =
[line 62]
reserved var for the persister. don't fuck with this.
Tags:
$persisterVarSettings = array('internalName' => array('mode'=>'lonely', 'metaType'=>'string', 'index'=>TRUE),'formName'=>array('mode'=>'lonely','metaType'=>'string','index'=>TRUE),'_dbDsn'=>array('mode'=>'stream','crypt'=>TRUE),'dbName'=>array('mode'=>'lonely','metaType'=>'string','index'=>TRUE),'dbTableName'=>array('mode'=>'lonely','metaType'=>'string','index'=>TRUE),'searchSettings'=>array('mode'=>'stream'),'overviewSettings'=>array('mode'=>'stream'),'addHeadString'=>array('mode'=>'stream'),)
[line 64]
$searchSettings =
[line 169]
sqlQuery ("select * from table where field = %s")
fields fieldName = 'firstname' operator = 'AND' compare = '=', 'LIKE', 'LIKE x%', 'LIKE %x', 'LIKE %x%'
Tags:
$selfDocument =
[line 300]
the document where the links should go to (get, post).
this will be set to $_SERVER['PHP_SELF'] in the constructor. feel free to change it.
Tags:
$useLongID = FALSE
[line 268]
normally id's in foreign key tables are called "ID". some ppl like to name them tablenameID, eg "fooID" when the table name is "foo".
if you do that, set this var to TRUE.
Tags:
$userGroup =
[line 279]
the user or group that currently uses the page. used to determine what may be showed and what may be editable (rights).
Tags:
$_clickOffset = 0
[line 363]
the offset in case the user is clicking through the result data pages.
$_searchTerm =
[line 358]
the search term we got from the user - if any.