summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf2f270)
raw | patch | inline | side by side (parent: cf2f270)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Dec 2007 10:02:33 +0000 (10:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Dec 2007 10:02:33 +0000 (10:02 +0000) |
- Added comments to multiple edit related functions.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8055 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8055 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history | |
include/class_tabs.inc | patch | blob | history |
index 97872d370aae87668b1f2464c7569962358fe7a3..dd43046a6446cccfc0dcdc8496f9dc6a6e11dd35 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
}
- /* Save data to object */
+ /*! \brief Save HTML posted data to object
+ */
function save_object()
{
/* Update entry CSN if it is empty. */
$this->entryCSN = getEntryCSN($this->dn);
}
+ /* MULTIPLE_EDIT
+ Ensures that only selected values will be used.
+ Should be rewritten.
+ */
if($this->multiple_support_active){
foreach($this->attributes as $attr){
if(isset($_POST["use_".$attr])){
diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index 2127a6cdad8d8ae36086462e8cd414a2fd4e742b..a702aed71c09a292bbbd9ed687bf2f0a63b13eba 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
}
}
-
- function multiple_support_available()
- {
- foreach($this->by_object as $name => $obj){
- if($obj->multiple_support){
- return(TRUE);
- }
- }
- return(FALSE);
- }
-
- function enable_multiple_support()
- {
- if(!$this->multiple_support_available()){
- return(FALSE);
- }else{
- foreach($this->by_object as $name => $obj){
- if($obj->multiple_support){
- $this->by_object[$name]->multiple_support_active = TRUE;
- }else{
- unset($this->by_object[$name]);
- unset($this->by_name[$name]);
- }
- }
- }
- return(TRUE);
- }
-
function execute()
{
}
}
}
+
+
+ /*! \brief Checks if one of the used tab plugins supports multiple edit.
+ @param boolean Returns TRUE if at least one plugins supports multiple edit.
+ */
+ function multiple_support_available()
+ {
+ foreach($this->by_object as $name => $obj){
+ if($obj->multiple_support){
+ return(TRUE);
+ }
+ }
+ return(FALSE);
+ }
+
+
+ /*! \brief Enables multiple edit support for the given tab.
+ All unsupported plugins will be disabled.
+ @param boolean Returns TRUE if at least one plugin supports multiple edit
+ */
+ function enable_multiple_support()
+ {
+ if(!$this->multiple_support_available()){
+ return(FALSE);
+ }else{
+ foreach($this->by_object as $name => $obj){
+ if($obj->multiple_support){
+ $this->by_object[$name]->multiple_support_active = TRUE;
+ }else{
+ unset($this->by_object[$name]);
+ unset($this->by_name[$name]);
+ }
+ }
+ }
+ return(TRUE);
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>