当前位置: 首页>>代码示例>>PHP>>正文


PHP Message::setData方法代码示例

本文整理汇总了PHP中Message::setData方法的典型用法代码示例。如果您正苦于以下问题:PHP Message::setData方法的具体用法?PHP Message::setData怎么用?PHP Message::setData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Message的用法示例。


在下文中一共展示了Message::setData方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: generateDashboardMsgContent

 function generateDashboardMsgContent()
 {
     $do_msg = new Message();
     $do_msg->setData(array("user_firstname" => $_SESSION["do_User"]->firstname));
     //$message = $do_msg->getMessage("db_msgblock1");
     $message = $do_msg->getMessageFromContext("db_side-info");
     if ($message) {
         return $message;
     } else {
         $this->setIsActive(false);
     }
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:12,代码来源:DashboardMessageBlock.class.php

示例2: _

</a></span> | <span class="bluelink"><a href="#" onclick="fnSelNone(); return false;"><?php 
echo _('select none');
?>
</a></span> )</span>
                </div>
                <div class="contentfull">
				<?php 
if (!is_resource($_SESSION['do_Contacts']->getResultSet())) {
    $_SESSION['do_Contacts']->query("SELECT * FROM " . $_SESSION['do_Contacts']->getSqlViewName() . " ORDER BY " . $_SESSION['do_Contacts']->sql_view_order . " LIMIT " . $_SESSION['do_Contacts']->sql_qry_start . "," . $_SESSION['do_Contacts']->sql_view_limit);
}
if (strlen($_SESSION['do_Contacts']->search_keyword) > 0 && $_SESSION['do_Contacts']->getNumRows() == 0) {
    echo '<br /><br />';
    $e_clear_search = new Event("do_Contacts->eventClearSearch");
    $data = array("click_here" => $e_clear_search->getLink(_('click here')));
    $msg = new Message();
    $msg->setData(array("click_here" => $e_clear_search->getLink(_('click here'))));
    $msg->getMessage("no_contact_found");
    $msg->displayMessage();
} else {
    $_SESSION['do_Contacts']->first();
    $OfuzList = new OfuzListContact($_SESSION['do_Contacts']);
    $OfuzList->setMultiSelect(true);
    $OfuzList->displayList();
}
?>
                </div>
				<div id="last_contact_loader"></div>
                </form>
    </td></tr></table>
    <div class="spacerblock_40"></div>
    <div class="layout_footer"></div>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:contacts.php

示例3: Message

?>
 
    <div class="grayline1"></div>
    <div class="spacerblock_20"></div>
    <div class="mainheader">
        <div class="pad20">
            <span class="headline11"><?php 
_('Opt-out');
?>
</span>
        </div>
    </div>
    <div class="contentfull">
	<!--	<div class="messageshadow">
            <div class="messages">  -->
            <?php 
$msg = new Message();
$sender_name = $_SESSION['user_unsub']->getFullName();
$msg->setData(array("user_name" => $sender_name));
$msg->getMessage("contact unsubscribe email");
$msg->displayMessage();
?>
      <!--      </div>
        </div> -->

    </div>
    <div class="spacerblock_40"></div>
    <div class="layout_footer"></div>
</div>
</td><td class="layout_rmargin"></td></tr></table>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:unsubscribe_message.php

示例4: _

            <span class="headline11"><?php 
echo _('Welcome to the ') . $do_user->company . _(' portal');
?>
</span>
        </div>
    </div>
    <div class="contentfull">
	    <div class="vpad10">
            <?php 
$contact_message = new ContactMessage();
$personalized_message = $contact_message->getPersonalizedMessage($idcontact, $iduser_for_feed);
if ($personalized_message) {
    echo $contact_message->displayPersonalizedMessage($personalized_message);
} else {
    $msg = new Message();
    $msg->setData(array("user_firstname" => $do_user->firstname, "user_lastname" => $do_user->lastname, "user_company" => $do_user->company));
    $msg->getMessage("welcome client portal");
    $msg->setCanClose("no");
    echo $msg->displayMessage();
}
?>
	    </div>
        <div class="grayline2"></div>
        <div class="headline_fuscia"><?php 
echo _('Add a Note or File');
?>
</div>
        <div class="percent95">
        <?php 
$ContactNotes = new ContactNotes($GLOBALS['conx']);
$ContactNotes->sessionPersistent("ContactNoteEditSave", "contacts.php", 300);
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:contact_portal.php

示例5: _

$do_breadcrumb = new Breadcrumb();
$do_breadcrumb->getBreadcrumbs();
?>
<div class="grayline1"></div>
<div class="spacerblock_20"></div>
<table class="layout_columns"><tr><td class="layout_lcolumn">
<?php 
include_once 'plugin_block.php';
?>

</td><td class="layout_rcolumn">
<?php 
if ($_SESSION['in_page_message'] != '') {
    $msg = new Message();
    if ($_SESSION['in_page_message'] == "cw_already-have-pending-invitation-to") {
        $msg->setData(array("enc_email" => $_SESSION['in_page_message_data']['enc_email']));
        $msg->getMessage($_SESSION['in_page_message']);
        $msg->displayMessage();
    } else {
        $msg->getMessage($_SESSION['in_page_message']);
        $msg->displayMessage();
    }
    $_SESSION['in_page_message'] = '';
}
?>
<table class="mainheader pad20" width="100%">
<tr>
<td><span class="headline14">Co-Workers</span>
<td align="right">&nbsp;&nbsp;&nbsp;&nbsp;
<!--<a href="teams.php"><?php 
echo _('Teams');
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:co_workers.php

示例6: array

    $do_contact_view->setUser($iduser);
    $do_contact_view->deleteTag($do_tag->tag_name, $idcontact);
    //$message = $firstname." ".$lastname.' '._('you have successfully unsubscribed from the autoresponder series called').' '.$responder;
    $message = 'unsub_list_message';
    $data = array("firstname" => $firstname, "lastname" => $lastname, "responder" => $responder);
    $do_contact->sendMessage(new EmailTemplate("unsubscribe_auto_responder"), $data);
} else {
    $message = 'already_unsub_from_list';
}
//header("Location: http://ofuz.com");
//exit();
?>
<div class="loginbg1">
    <!--<div class="loginheader"><a href="/index.php"><img src="/images/ofuz_logo2.jpg" width="170" height="90" alt="" /></a></div>-->
    <div style = "width:500px;margin: 0 auto; padding: 10px; text-align:left;">
        <?php 
if ($message != '') {
    $msg = new Message();
    $msg->setData(array("firstname" => $firstname, "lastname" => $lastname, "responder" => $responder));
    $msg->getMessage($message);
    $msg->displayMessage();
}
?>
    </div>
    <div style = "width:500px;margin: 0 auto; padding: 10px; text-align:left;">
        <?php 
echo '<b>' . _('Powered By') . '</b> ' . '<a href="http://www.ofuz.com"><img style="vertical-align: top;" src = "http://www.ofuz.com/images/ofuz_title_small.png" ></a>';
?>
    </div>
</div>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:30,代码来源:unsubscribe_auto_responder.php

示例7: getMessageByID

 public static function getMessageByID($idMessage)
 {
     include $_SERVER["DOCUMENT_ROOT"] . "/scripts/bdd/connect.php";
     $req = $bdd->prepare("SELECT * FROM message WHERE idMessage=:idMessage");
     $req->execute(array(":idMessage" => $idMessage));
     $message = new Message(null, '');
     if ($req->rowCount() == 1) {
         $message->setData($req->fetch());
         return $message;
     } else {
         return false;
     }
 }
开发者ID:Chortan,项目名称:Chat,代码行数:13,代码来源:Message.php

示例8: Event

        $msg->displayMessage();
        echo '<div style="margin-left:0px;">';
        echo '<div class="messages_unauthorized">';
        $e_set_email = new Event("Contact->eventSetEmailId");
        $e_set_email->addParam('id', $_SESSION['do_invoice']->idinvoice);
        $e_set_email->addParam('contact', $_SESSION['do_invoice']->idcontact);
        $e_set_email->addParam("goto", $_SERVER['PHP_SELF']);
        $e_set_email->addEventAction("do_invoice->eventSendInvoiceByEmail", 105);
        echo $e_set_email->getFormHeader();
        echo $e_set_email->getFormEvent();
        echo '<br />' . _("Please enter the Email address : ");
        echo '<input type="text" name="emailid" value="" >';
        echo $e_set_email->getFormFooter("Submit");
        echo '</div></div><br /><br />';
    } else {
        $msg->setData(array("contact_email" => $_SESSION['in_page_message_data']['contact_email']));
        $msg->getMessage($_SESSION['in_page_message']);
        $msg->displayMessage();
    }
    $_SESSION['in_page_message'] = '';
    $_SESSION['in_page_message_data']['contact_email'] = '';
}
?>
             <div id="show_past_due">
                <?php 
if ($_SESSION['show_past_due'] == 'Yes') {
    // echo $_SESSION['do_invoice']->getInvoicesPastDue($_SESSION['do_invoice']->idcontact,$_SESSION['do_invoice']->idcompany);
    $_SESSION['show_past_due'] = '';
}
?>
             </div>
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:31,代码来源:invoice.php

示例9: testSetData

 public function testSetData()
 {
     $msg = new Message();
     $msg->setData(['aps' => 'foo', 'foo' => 'bar']);
     $this->assertEquals(['aps' => [], 'foo' => 'bar'], $this->serialized($msg));
 }
开发者ID:gepo,项目名称:apns-http2,代码行数:6,代码来源:MessageTest.php


注:本文中的Message::setData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。