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


PHP Agenda::model方法代码示例

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


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

示例1: actionAbrir

 public function actionAbrir($id)
 {
     $abrirAgenda = Agenda::model()->findByPk($id);
     $this->render('formEditarAgenda', ['agenda' => $abrirAgenda]);
 }
开发者ID:jralison,项目名称:chrono,代码行数:5,代码来源:AgendaController.php

示例2: actionViewAgenda

 public function actionViewAgenda($id)
 {
     date_default_timezone_set("Asia/Manila");
     $activity = new Activity();
     $activity->act_desc = 'Viewed Agenda ID: ' . $id;
     $activity->act_datetime = date('Y-m-d G:i:s');
     $activity->act_by = User::model()->findByPK(Yii::app()->user->name)->emp_id;
     $activity->save();
     $model = Agenda::model()->findByPk($id);
     $communication = new CActiveDataProvider('Communication', array('criteria' => array('condition' => 'date_agenda = :date_agenda', 'params' => array(':date_agenda' => $model->session_date)), 'pagination' => array('pageSize' => 10)));
     $resoMeeting = new CActiveDataProvider('CommMeetingReso', array('criteria' => array('condition' => 'comm_report = :comm_report', 'params' => array(':comm_report' => $model->session_date)), 'pagination' => array('pageSize' => 10)));
     $ordMeeting = new CActiveDataProvider('CommMeetingReso', array('criteria' => array('condition' => 'comm_report = :comm_report', 'params' => array(':comm_report' => $model->session_date)), 'pagination' => array('pageSize' => 10)));
     $this->render('/reportsOthers/viewAgenda', array('communication' => $communication, 'resoMeeting' => $resoMeeting, 'ordMeeting' => $ordMeeting));
 }
开发者ID:JexIboy,项目名称:lis-pglu,代码行数:14,代码来源:ReportsOthersController.php

示例3: drawAgendaListBox

 /**
  * Draws list box containing agenda(s)
  */
 protected function drawAgendaListBox($listName, $data = null, $multiple = false, $temp = null)
 {
     echo "<select class='{$listName}' rows=2";
     if ($multiple) {
         echo " multiple='multiple'";
     }
     if ($temp) {
         echo " name='{$temp}'";
     }
     echo ">";
     if ($data) {
         foreach ($data as $datum) {
             $model = Agenda::model()->findByAttributes(array('topik' => $datum));
             echo "<option value={$model->id}>{$datum}</option>";
         }
     }
     echo "</select>";
 }
开发者ID:OlviLora,项目名称:PHPKeren,代码行数:21,代码来源:RapatController.php

示例4: getAgendas

 /**
  * Gets detail of some agendas.
  */
 private function getAgendas($agendaRapats)
 {
     foreach ($agendaRapats as $agendaRapat) {
         $agenda[] = Agenda::model()->findByPk($agendaRapat->id_agenda);
     }
     return $agenda;
 }
开发者ID:OlviLora,项目名称:PHPKeren,代码行数:10,代码来源:MailController.php

示例5: getAgenda

 /**
  * Gets detail of a current agenda.
  */
 private function getAgenda($idAgenda)
 {
     $agenda = Agenda::model()->findByPk($idAgenda);
     return $agenda;
 }
开发者ID:OlviLora,项目名称:PHPKeren,代码行数:8,代码来源:SiteController.php

示例6: loadModel

 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return Agenda the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Agenda::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
开发者ID:JexIboy,项目名称:lis-pglu,代码行数:15,代码来源:AgendaController.php


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