<?php
-/**\r
+/**
* @file class_erConfig.inc
- * Class that handles the configuration\r
- * @author Roland Hieber (roland.hieber@wilhelm-gym.net)\r
- * @date 21.10.2007\r
- * \r
- * Copyright © 2007 Roland Hieber\r
- * \r
- * Permission is hereby granted, free of charge, to any person obtaining\r
- * copy of this software and associated documentation files (the "Software"),\r
- * to deal in the Software without restriction, including without limitation\r
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,\r
- * and/or sell copies of the Software, and to permit persons to whom the\r
- * Software is furnished to do so, subject to the following conditions:\r
- * \r
- * The above copyright notice and this permission notice shall be included in\r
- * all copies or substantial portions of the Software.\r
- * \r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
- * THE SOFTWARE.\r
+ * Class that handles the configuration
+ * @author Roland Hieber (roland.hieber@wilhelm-gym.net)
+ * @date 21.10.2007
+ *
+ * Copyright © 2007 Roland Hieber
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
*/
require_once("sec/secure.inc");
/**
* Write the current state of this instance to the config file.
- * @return (bool) If the function fails, it returns <tt>false</tt>. Call getLastError() to get
- * more information about the error.
+ * @return (bool) If the function fails, it returns <tt>false</tt>. Call
+ * getLastError() to get more information about the error.
*/
public function writeConfig() {
// Open config file
// Mail notification
$strFile .= sprintf("\$cfgErrors->setMailNotify(%s);\n",
$this->isMailNotify() ? "true" : "false");
- $strFile .= sprintf("\$cfgErrors->setMailNotifyAddr('%s');\n", $this->getMailNotifyAddr());
+ $strFile .= sprintf("\$cfgErrors->setMailNotifyAddr('%s');\n",
+ $this->getMailNotifyAddr());
$strFile .= "?>";
/**
* Enable or disable mail notification
- * @param $b (bool) <tt>true</tt> to enable mail notification, <tt>false</tt> to disable it.
+ * @param $b (bool) <tt>true</tt> to enable mail notification, <tt>false</tt>
+ * to disable it.
*/
public function setMailNotify($b) { $this->bMailNotify = ($b == true); }
/**
* Set the mail address(es) for mail notification
- * @param $str (string) The adresses to send the notofication mails to, comma-separated
+ * @param $str (string) The adresses to send the notofication mails to,
+ * comma-separated
*/
public function setMailNotifyAddr($str) { $this->strMailNotifyAddr = $str; }
/**
* Determine if mail notification is enabled
- * @return (bool) <tt>true</tt> if mail notification is enabled, otherwise <tt>false</tt>
+ * @return (bool) <tt>true</tt> if mail notification is enabled, otherwise
+ * <tt>false</tt>
*/
public function isMailNotify() { return $this->bMailNotify; }
/** @} */
}
-?>
\ No newline at end of file
+?>