Commit Graph

12817 Commits

Author SHA1 Message Date
Ralf Becker
6cfde1148b "added (depricated) $link_table var" 2008-03-08 23:17:10 +00:00
Ralf Becker
f9315dc39c reworked for new link-class and added titles method 2008-03-08 22:45:01 +00:00
Ralf Becker
e311150947 boinfolog::search(&$param) 2008-03-08 22:39:07 +00:00
Ralf Becker
b1c2d9ac47 titles was not caching the returned titles and new param for get_links_multiple() to cache the titles of all found links 2008-03-08 22:38:09 +00:00
Ralf Becker
15ca7e90ed eGW wide index over all applications (superindex)
This index allows a fulltext search over all applications (or of
cause also a single app).
Whenever an applications stores an entry it calls: 

             boolean egw_index::save($app,$id,$owner,array $fields,array $cat_id=null)

which calls, as the application do when is deletes an entry (!), 

             boolean egw_index::delete($app,$id)

and then splits all fields into keywords and add these to the index by 

             boolean private egw_index::add($app,$id,$keyword).

Applications can then use the index to search for a given keyword
(and optional application):

             array egw_index::search($keyword,$app=null) or

             foreach(new egw_index($keyword,$app=null) as $app_id => $title)

To also allow to search by a category or keyword part of it, the index
also tracks the categories of the entries. Applications can choose to
only use it for category storage, or cat do it redundant in there own
table too. To retrieve the categories of one or multiple entries: 

             array egw_index::cats($app,$ids)

Applications can use a sql (sub-)query to get the id's of there app
matching a certain keyword and include that in there own queries:

             string egw_index::sql_ids_by_keyword($app,$keyword)

Please note: the index knows nothing about ACL, so it's the task of
the application to ensure ACL rights.
2008-03-08 21:51:12 +00:00
Ralf Becker
50f5c1b116 using new egw_link class and reading all links of the whole index page in one go 2008-03-08 21:43:13 +00:00
Ralf Becker
37c3933e0b using new egw_link class with static methods 2008-03-08 21:41:59 +00:00
Ralf Becker
a515bdeffb reworked link classes:
- new public egw_link class, which has only static methods and can NOT be instanciated
- depricated bolink class, for existing code instanciating the bolink class in $egw->link
- new method and application hook *titles* to retrieve the title of multiple entries of an app in one go
- new method *get_links_multiple* to retrieve all links of multiple entries of an app
2008-03-08 21:41:20 +00:00
Ralf Becker
407b4defad static strip_array_keys method to strip a colum-prefix from a result, docu update about depricated functions which use the internal result-set 2008-03-08 21:31:12 +00:00
Nathan Gray
09556f8fb0 Preserve ajax_select_widget options across a loop 2008-03-07 17:47:06 +00:00
Klaus Leithoff
85c7be0259 checking if apparray exist in __autoload, before looping through 2008-03-07 10:18:17 +00:00
Ralf Becker
cc6f013f6f performance optimisation for many cf's, most important was to remove the unnecessary join with the extra-table, if there's no search 2008-03-06 22:41:36 +00:00
Ralf Becker
d36c179645 fixed account-migration to work with current accounts-class 2008-03-06 20:02:30 +00:00
Ralf Becker
108cb59d3c fixed bug introduced by Connys performance stuff: function returned limited resultset with unset or empty start parameter 2008-03-06 16:11:49 +00:00
Ralf Becker
4f941b5a61 (hopefully) final fix: default for select() is now again ASSOC, but next_record() adds numerical indexes again, if they are required. That is a slight penality for old code, but gives full speed / lowest memory for new code. 2008-03-06 14:20:47 +00:00
Ralf Becker
046713e00f temp. fixed problem introduced with last egw_db commit (db::f() not working with db::select()), thought I want to check how often that is used, as an only asociative fetchmod needs half the memory 2008-03-06 13:33:38 +00:00
Ralf Becker
e03425c90b fixed an error with the initialisation of the static $db var (under LDAP and php4-restore sessions) and or by using the global db object without cloning it 2008-03-06 11:43:45 +00:00
Ralf Becker
9de6c2884f added fetchmode parameter to query() and set it to ADODB_FETCH_ASSOC for select(), also added comment about how to avoid cloning the global db object and looping over result sets via the returned result object 2008-03-06 11:42:21 +00:00
Ralf Becker
f4b534904f fixed delete user: select new owner, was showing only the first maxmatches accounts 2008-03-06 09:03:27 +00:00
Klaus Leithoff
d10607a16e fast fix for the bug regarding infolog config, caused by the drop of the intantiation of config in boinfolog 2008-03-06 07:58:08 +00:00
Ralf Becker
a53b69af40 setting the session.save_path to /tmp only for session.save_handler=files and !is_writable(session.save_path) 2008-03-06 06:03:18 +00:00
Ralf Becker
60a65bb560 Added an id tag to templates, contact and infolog widget
New js_pseudo_function to fetch the styles of a template:
template::styles('template.name')
2008-03-05 18:38:46 +00:00
Klaus Leithoff
2bb4fd1df1 fixed a problem regarding search in extra fields for addressbook when using the advanced search dialog 2008-03-05 11:41:40 +00:00
Ralf Becker
db165536e1 configurable fields belonging to our (virtual) organisations, patch from Stefan Becker 2008-03-05 10:31:26 +00:00
Klaus Leithoff
627aa2c228 replacing the concatenation of extra and value array by array_merge, since it crashed in line 535 in some installations 2008-03-05 09:53:44 +00:00
Ralf Becker
c1647bfcbf added a get-parameter "empty_post=1" if process_exec redirects to the app, because the _POST array is completly empty. That happens if post_max_size <= max_upload_size and is neccessary to give an adequte error-message about the failed upload in filemanager. 2008-03-04 16:56:19 +00:00
Ralf Becker
d0ccfa4b98 added checks and messages for failed uploads because of to small max_upload_size and post_max_size (memory_limit plays no role any more using the new vfs stuff) 2008-03-04 16:53:14 +00:00
Ralf Becker
c522cd7a0b Patch from Stefan Becker to implement a default category for new infolog entries 2008-03-04 12:50:16 +00:00
Ralf Becker
83a2341c3a Use our webdav handler as download url instead of an own download method 2008-03-04 08:35:45 +00:00
Ralf Becker
42688f5cd2 removed unnecessary checkAuth function, because the regular eGW session cookie got not recogniced and all checks are done by the header include anyway 2008-03-04 08:33:08 +00:00
Ralf Becker
9327beb6e4 "Fixed bugs reported by uwe.redecker-at-hspl.de on the german list" 2008-03-04 07:35:05 +00:00
Ralf Becker
acd8659508 Popup to rename, change permissions or perview a file 2008-03-03 22:15:44 +00:00
Ralf Becker
76e75dea7b new options to restore the default fstab and options to specify user,password&domain 2008-03-03 12:18:32 +00:00
Ralf Becker
b638e9117b set old vfs as default again for easier testing of the new UI 2008-03-03 12:17:08 +00:00
Ralf Becker
d2094b8958 search, lettersearch, merge content of subdirs (recursive display) 2008-03-03 12:16:11 +00:00
Ralf Becker
78395acc04 some new images 2008-03-03 07:56:57 +00:00
Ralf Becker
99913a8837 ordering and limited resultsets 2008-03-03 07:55:24 +00:00
Ralf Becker
0af252ad55 ordering and limited resultsets 2008-03-03 07:53:43 +00:00
Ralf Becker
233875a181 "using ungreeded search for egw::lang()" 2008-03-03 05:47:12 +00:00
Ralf Becker
4df4fd9f06 first work on UI for a new filemanager and some vfs bugfixes and improvments 2008-03-02 21:44:15 +00:00
Ralf Becker
9887c58b4d fixed not working ldap connection using php4-restore session-mode 2008-03-02 13:13:23 +00:00
Ralf Becker
e9003d58f2 fixed not working ldap connection using php4-restore session-mode 2008-03-02 13:11:01 +00:00
Ralf Becker
6c6c2e21b8 CA holiday file from dion-AT-privatelabelcc.com 2008-03-01 05:18:48 +00:00
Klaus Leithoff
91e5c2ab9c deleting the obsolete hook_admin.inc.php file 2008-02-29 13:06:52 +00:00
Klaus Leithoff
e51e180478 resolving of problems regarding 2 classes responsible for the admin prefs_sidebox (admin_prefs_sidebox_hooks + hook_admin) 2008-02-29 13:05:22 +00:00
Klaus Leithoff
6c3b456216 renaming the admin_prefs_sidebox_hooks because of a naming convention clash with the admin applications admin_prefs_sidebox_hooks 2008-02-29 13:00:22 +00:00
Ralf Becker
7da0cd0dd0 fixed static use of config::save_value() 2008-02-29 07:36:29 +00:00
Ralf Becker
5755acdbe2 renamed ls.php to cli.php, changed syntax a bit and added mount and find command 2008-02-29 07:29:19 +00:00
Ralf Becker
3cd2ce8dd2 fixed mount command and enhanced egw_vfs::find() 2008-02-29 07:27:49 +00:00
Ralf Becker
ea5cda5310 fixed typo preventing non-root access 2008-02-29 07:23:14 +00:00