author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 5 Mar 2010 13:22:19 +0000 (13:22 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 5 Mar 2010 13:22:19 +0000 (13:22 +0000) | ||
commit | 0b380e56ad794821387ae0bd60ae71d09a48f77a | |
tree | 1976a91482788b62f24bbb6a452b1cf2e5e6045e | tree | snapshot |
parent | 3cd11aa4fca0307dc7fa37dc51bafa0c493b39d9 | commit | diff |
Fix for #144
- Improve tests::is_in_ip_range:
- Check if the specified address is a valid address at all,
otherwise return FALSE
- If both 'to' and 'from' are set to '*' or empty return TRUE
- Add new function ldap_equality_check
- This function compares a string similar as a LDAP equality match
would do. It does so by replacing any occurence of a * with a
regex pattern and test it with preg_match. The default mapping is
but the test can be extended by changing that mapping, so that the
asterisk can stand for a certain range of chars for example.
- Add new filters for MAC-Address, FAI-Classes and FAI-release
based on this.
- Add a new function AddTextCheckbox. This is similar to AddCheckbox
but also has a parameter regexes that gets a list of regexes (as
returned by AddRegex with the return_regex=TRUE parameter) which
are displayed directly after the checkbox.
- Add a function Draw() that gets a smarty object from
MultiSelectWindow::Draw and additionally renders the special filters
with a special template.
- Make save_object() handle the somewhat special structure of
this->array_TextCheckboxes which stores the TextCheckboxes as
created by AddTextCheckbox
- Make filter_iprange (and its text field ifrom and ipto) use the
nex AddCheckBox feature.
- Add a template for the event target add list
- Add a new parameter to AddRegex so that it is possible to get a
regex array instead of returning the objects array_Regexes
- Add new functions GetCheckbox and GetRegex that contain the
code from the Draw() function to draw textfields and checkboxes.
This enables inheritting implementations to use these functions
when altering the behaviour.
- Allow Draw function to return smarty object
This change allows to change the behaviour of the
Draw function to return a smarty object.
If the class that inherits from MultiSelectWindow sets
$this->DrawReturnsSmartyObject to a true value a
smarty object is returned instead of html.
A certain class can now alter this smarty object and after that
fetch the HTML itself.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16231 594d385d-05f5-0310-b6e9-bd551577e9d8
- Improve tests::is_in_ip_range:
- Check if the specified address is a valid address at all,
otherwise return FALSE
- If both 'to' and 'from' are set to '*' or empty return TRUE
- Add new function ldap_equality_check
- This function compares a string similar as a LDAP equality match
would do. It does so by replacing any occurence of a * with a
regex pattern and test it with preg_match. The default mapping is
but the test can be extended by changing that mapping, so that the
asterisk can stand for a certain range of chars for example.
- Add new filters for MAC-Address, FAI-Classes and FAI-release
based on this.
- Add a new function AddTextCheckbox. This is similar to AddCheckbox
but also has a parameter regexes that gets a list of regexes (as
returned by AddRegex with the return_regex=TRUE parameter) which
are displayed directly after the checkbox.
- Add a function Draw() that gets a smarty object from
MultiSelectWindow::Draw and additionally renders the special filters
with a special template.
- Make save_object() handle the somewhat special structure of
this->array_TextCheckboxes which stores the TextCheckboxes as
created by AddTextCheckbox
- Make filter_iprange (and its text field ifrom and ipto) use the
nex AddCheckBox feature.
- Add a template for the event target add list
- Add a new parameter to AddRegex so that it is possible to get a
regex array instead of returning the objects array_Regexes
- Add new functions GetCheckbox and GetRegex that contain the
code from the Draw() function to draw textfields and checkboxes.
This enables inheritting implementations to use these functions
when altering the behaviour.
- Allow Draw function to return smarty object
This change allows to change the behaviour of the
Draw function to return a smarty object.
If the class that inherits from MultiSelectWindow sets
$this->DrawReturnsSmartyObject to a true value a
smarty object is returned instead of html.
A certain class can now alter this smarty object and after that
fetch the HTML itself.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@16231 594d385d-05f5-0310-b6e9-bd551577e9d8