Changeset 1214 for branches/1.2/Hotaru.php
- Timestamp:
- 02/22/10 15:30:59 (3 years ago)
- File:
-
- 1 edited
-
branches/1.2/Hotaru.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/Hotaru.php
r1213 r1214 1192 1192 public function openLog($type = 'debug', $mode = 'a+') 1193 1193 { 1194 $this->debug->openLog($t his, $type, $mode);1194 $this->debug->openLog($type, $mode); 1195 1195 } 1196 1196 … … 1203 1203 public function writeLog($type = 'error', $string = '') 1204 1204 { 1205 $this->debug->writeLog($t his, $type, $string);1205 $this->debug->writeLog($type, $string); 1206 1206 } 1207 1207 … … 1214 1214 public function closeLog($type = 'error') 1215 1215 { 1216 $this->debug->closeLog($t his, $type);1216 $this->debug->closeLog($type); 1217 1217 } 1218 1218 … … 2029 2029 return $widget->getPluginFromFunction($this, $function); 2030 2030 } 2031 2032 2033 /* ************************************************************* 2034 * 2035 * EMAIL FUNCTIONS 2036 * 2037 * *********************************************************** */ 2038 2039 /** 2040 * Send emails 2041 * 2042 * @param string $to - defaults to SITE_EMAIL 2043 * @param string $subject - defaults to "No Subject"; 2044 * @param string $body - returns false if empty 2045 * @param string $headers default is "From: " . SITE_EMAIL . "\r\nReply-To: " . SITE_EMAIL . "\r\nX-Priority: 3\r\n"; 2046 * @param string $type - default is "email", but you can write to a "log" file, print to "screen" or "return" an array of the content 2047 * @return array|false - only if $type = "return" 2048 */ 2049 public function email($to = '', $subject = '', $body = '', $headers = '', $type = 'email') 2050 { 2051 require_once(LIBS . 'EmailFunctions.php'); 2052 $emailFunctions = new EmailFunctions($to, $subject, $body, $headers, $type); 2053 $emailFunctions->type = $type; 2054 return $emailFunctions->doEmail(); 2055 } 2031 2056 } 2032 2057 ?>
Note: See TracChangeset
for help on using the changeset viewer.