Esempio n. 1
0
 public function __construct($parentUIObject = null)
 {
     if (OpfConfig::DEBUG_LEVEL > 0) {
         OpfDebugUtil::logOutput(get_class($this));
     }
     // if
     $this->parentUIObject = $parentUIObject;
     $this->responseDivId = OpfConfig::DIV_SHOW_PROGRESS;
 }
Esempio n. 2
0
 public function render()
 {
     $str = null;
     /* return something to debug */
     if ($this->debug == 1) {
         $str .= '<span>';
     }
     // if
     $str .= $this->renderMessage();
     if ($this->debug == 1) {
         $str .= '<hr>' . $this->actionTitle . ' input parameters: [' . $this->renderPostParameters() . '] Parameter Block:' . OpfDebugUtil::formatArrayInString($this->parameterBlock) . '<hr>';
         $str .= '</span>';
     }
     // if
     if (isset($this->parameterBlock[OpfConfig::PARAM_MODAL_DIALOG_CALLBACK])) {
         return OpfDataSource::renderDialogResponse($this->actionTitle, $str);
     } else {
         return $str;
     }
 }
Esempio n. 3
0
 public function notificationsSend($uid, $message)
 {
     if (OpfConfig::DEBUG_LEVEL > 0) {
         OpfDebugUtil::logOutput('notificationsSend $uid=' . $uid . ' $message="' . $message . '"');
     }
     // if
     $this->facebook->api_client->notifications_send($uid, $message, 'user_to_user');
 }