コード例 #1
0
 public function stream_open($vd6fe1d0be6347b8ef2427fa629c04485, $v15d61712450a686a7f365adf4fef581f, $v93da65a9fd0004d9477aeac024e08e15, $v6385a5865e0b96f09e4142ab2d9e3736)
 {
     $v21ffce5b8a6cc8cc6a41448dd69623c9 = $this->parsePath($vd6fe1d0be6347b8ef2427fa629c04485);
     $vde70938849b75d3db63bba421c93e018 = umiMessages::getInstance();
     switch ($v21ffce5b8a6cc8cc6a41448dd69623c9['folder']) {
         case 'inbox':
             $vd8e44dc257374b1530df18045f18d268 = $vde70938849b75d3db63bba421c93e018->getMessages($v21ffce5b8a6cc8cc6a41448dd69623c9['user-id'], true);
             break;
         case 'outbox':
             $vd8e44dc257374b1530df18045f18d268 = $vde70938849b75d3db63bba421c93e018->getSendedMessages($v21ffce5b8a6cc8cc6a41448dd69623c9['user-id']);
             break;
         default:
             $vd8e44dc257374b1530df18045f18d268 = false;
     }
     if (isset($this->params['limit'])) {
         $vaa9f73eea60a006820d0f8768bc8a3fc = (int) $this->params['limit'];
         $vd8e44dc257374b1530df18045f18d268 = array_slice($vd8e44dc257374b1530df18045f18d268, 0, $vaa9f73eea60a006820d0f8768bc8a3fc);
     }
     if (is_array($vd8e44dc257374b1530df18045f18d268)) {
         $v8d777f385d3dfec8815d20f7496026dc = $this->translateToXml($vd8e44dc257374b1530df18045f18d268);
         $this->setData($v8d777f385d3dfec8815d20f7496026dc);
         return true;
     } else {
         return $this->setDataError('not-found');
     }
 }
コード例 #2
0
 public function setType($v599dcce2998a6b40b1e38e8c6006cb0a)
 {
     if (in_array($v599dcce2998a6b40b1e38e8c6006cb0a, umiMessages::getAllowedTypes()) == false) {
         throw new coreException("Unkown message type \"{$v599dcce2998a6b40b1e38e8c6006cb0a}\"");
     }
     $this->type = (string) $v599dcce2998a6b40b1e38e8c6006cb0a;
     $this->setIsUpdated();
 }
コード例 #3
0
 public function dispatchSystemEvent($title, $content)
 {
     $recipients = $this->getSystemEventRecipients();
     if (sizeof($recipients)) {
         $messages = umiMessages::getInstance();
         $message = $messages->create();
         $message->setTitle($title);
         $message->setContent($content);
         $message->setType("sys-log");
         $message->commit();
         $message->send($recipients);
     }
 }