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


PHP message::save方法代码示例

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


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

示例1: add

 public static function add($_type, $_message, $_action = '', $_logicalId = '')
 {
     $list_plugin = config::byKey('message::disallowPlugin', 'core', array());
     if (in_array($_type, $list_plugin)) {
         return;
     }
     $message = new message();
     $message->setPlugin($_type);
     $message->setMessage($_message);
     $message->setAction($_action);
     $message->setDate(date('Y-m-d H:i:m'));
     $message->setLogicalId($_logicalId);
     $message->save();
 }
开发者ID:GaelGRIFFON,项目名称:core,代码行数:14,代码来源:message.class.php

示例2:

				verification_submit_message_$default ='$fVsubmit_message', verification_rej_sub_$default='$fVReject_subject',
				verification_rej_message_$default='$fVReject_message',verification_remind_sub_$default='$fRemind_subject',
				verification_remind_message_$default='$fRemind_message',app_feedback_subject_$default='$fFeedback_subject',
				app_feedback_message_$default='$fFeedback_message',plan_subject_$default='$fPlan_subject',
				
				plan_message_$default='$fPlan_message',plan_approved_subject_$default='$fPlan_Approved_subject',
				
				plan_approved_message_$default='$fPlan_Approved_message',appraisal_approved_subject_$default='$fAppraisal_Approved_subject',
				
				appraisal_approved_message_$default='$fAppraisal_Approved_message',appraisal_approved_subject_final_$default='$fAppraisal_Approved_subject_final',
				
				appraisal_approved_message_final_$default='$fAppraisal_Approved_message_final',
				
				plan_expiry_message_1='$fPIP_Exp_message',plan_expiry_subject_1='$fPIP_Exp_subject'  where m_id='1'";
				
				//echo $qry;
	
			$db_object->insert($qry);
		}
	}//end class
		$ob= new message;
		if($submit!="")
		{
			$ob->save($db_object,$common,$default,$_POST);
		}
		$ob->view($db_object,$common,$default,$_POST);
	

include_once("footer.php");
?>
开发者ID:nloadholtes,项目名称:people-prodigy,代码行数:30,代码来源:performance_message.php

示例3: function

<?php

$app->group('/dashboard', function () use($app) {
    $app->group('/message', function () use($app) {
        $app->get('/create', function () use($app) {
            $app->view->setData('form_action', BASEURL . "dashboard/message/confirm");
            $app->view->setData('page_title', "Create message");
            $app->render(new u('message.create'));
        });
        // Display Confirm
        $app->post('/confirm', function () use($app) {
            $POST = $app->request()->post();
            $message = new message();
            $message->form_post_value = $POST;
            $message->save();
            if ($message->fails()) {
                $app->view->setData('error', "1");
                $app->view->setData('msg', $message->getError());
                $app->render(new u('msg'));
            } else {
                $app->view->setData('success', "1");
                $app->view->setData('msg', "Succesfully User Created");
                $app->render(new u('msg'));
            }
        });
        // Save Form Data
        $app->post('/store', function () use($app) {
            $app->render(new u('message.store'));
        });
        /******************************************View************************************************/
        $app->get('/view/', function () use($app) {
开发者ID:bogiesoft,项目名称:Slim_PHP_Project,代码行数:31,代码来源:message_route.php

示例4: save

 public function save()
 {
     global $DB, $USER;
     $admin = get_admin();
     // possible cronjob
     if ($USER->id != $admin->id and $USER->id != $this->_authorid) {
         throw new \moodle_exception("This conversation doesn't belong to you!");
     }
     $course = $this->dialogue->course;
     $dialogueid = $this->dialogue->dialogueid;
     // conversation record
     $record = new \stdClass();
     $record->id = $this->_conversationid;
     $record->course = $course->id;
     $record->dialogueid = $dialogueid;
     $record->subject = $this->_subject;
     // we need a conversationid
     if (is_null($this->_conversationid)) {
         // create new record
         $this->_conversationid = $DB->insert_record('dialogue_conversations', $record);
     } else {
         $record->timemodified = time();
         // update existing record
         $DB->update_record('dialogue_conversations', $record);
     }
     $this->save_participants();
     $this->save_bulk_open_rule();
     // now let dialogue_message do it's thing
     parent::save();
 }
开发者ID:troywilliams,项目名称:moodle-mod_dialogue,代码行数:30,代码来源:conversation.php


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