コード例 #1
0
ファイル: OpfUIObject.php プロジェクト: TheProjecter/openface
 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;
 }
コード例 #2
0
ファイル: OpfCallback.php プロジェクト: TheProjecter/openface
 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;
     }
 }
コード例 #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');
 }