Changeset 2281

Show
Ignore:
Timestamp:
12/04/10 00:18:21 (18 months ago)
Author:
petsagouris
Message:

[Branch 1.5] Removing messaging functionality from main Hotaru class. fix #183

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/Hotaru.php

    r2260 r2281  
    23552355        } 
    23562356 
    2357  
    2358  /* ************************************************************* 
    2359  * 
    2360  *  MESSAGING FUNCTIONS 
    2361  * 
    2362  * *********************************************************** */ 
    2363  
    2364  
    2365         /** 
    2366          * Get Messages 
    2367          * 
    2368          * @param string $box "inbox" or "outbox" 
    2369          * @param string $type blank or "count" or "query" 
    2370          * @return int | array | false 
    2371          */ 
    2372         public function getMessages($box = 'inbox', $type = '') 
    2373         { 
    2374                 $pm = new PrivateMessaging(); 
    2375                 return $pm->getMessages($this, $box, $type); 
    2376         } 
    2377  
    2378  
    2379         /** 
    2380          * Get Message 
    2381          * 
    2382          * @param int $message_id 
    2383          * @return array 
    2384          */ 
    2385         public function getMessage($message_id = 0) 
    2386         { 
    2387                 $pm = new PrivateMessaging(); 
    2388                 return $pm->getMessage($this, $message_id); 
    2389         } 
    2390  
    2391  
    2392         /** 
    2393          * Mark message as read 
    2394          * 
    2395          * @param int $message_id 
    2396          */ 
    2397         public function markRead($message_id = 0) 
    2398         { 
    2399                 $pm = new PrivateMessaging(); 
    2400                 $pm->markRead($this, $message_id); 
    2401         } 
    2402  
    2403  
    2404         /** 
    2405          * Delete Message 
    2406          * 
    2407          * @param int $message_id 
    2408          * @param string $box "inbox" or "outbox" 
    2409          * @return bool 
    2410          */ 
    2411         public function deleteMessage($message_id = 0, $box = 'inbox') 
    2412         { 
    2413                 $pm = new PrivateMessaging(); 
    2414                 $pm->deleteMessage($this, $message_id, $box); 
    2415         } 
    2416  
    2417  
    2418         /** 
    2419          * Send Message 
    2420          * 
    2421          * @param string $to 
    2422          * @param string $from 
    2423          * @param string $subject 
    2424          * @param string $body 
    2425          * @return int | array (int on success, array on failure) 
    2426          */ 
    2427         public function sendMessage($to = '', $from = '', $subject = '', $body = '') 
    2428         { 
    2429                 $pm = new PrivateMessaging(); 
    2430                 return $pm->sendMessage($this, $to, $from, $subject, $body); 
    2431         } 
    2432  
    2433  
    24342357 /* ************************************************************* 
    24352358 * 
     
    25232446        } 
    25242447} 
    2525 ?>