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


PHP Session::getValue方法代码示例

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


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

示例1: processPetition

 function processPetition()
 {
     if ($this->issetViewVariable('status')) {
         $status = $this->getViewVariable('status');
     } else {
         $status = 'main';
         $status = $this->setViewVariable('status', 'main');
     }
     //$this->addNavElement(Util::format_URLPath('secretariatPage/index.php'), 'Página de Secretaría');
     switch ($status) {
         case 'main':
         default:
             //Presentación de mensajería
             $arrMessages = $this->obj_data->getNewUserMessages(Session::getValue('USERINFO_USER_ID'));
             $this->setViewVariable('arrMessages', $arrMessages);
             //Presentación de tablón de anuncios
             $NoticeArray = $this->obj_data->getNotices();
             $this->setViewVariable('notice_array', $NoticeArray);
             //Presentación de candidatos
             $CandidatesArray = $this->obj_data->getCandidates();
             $this->setViewVariable('candidates_array', $CandidatesArray);
             break;
     }
     $this->setPageTitle("miguel Secretariat Page");
     $this->setMessage('');
     $this->setHelp("");
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:27,代码来源:miguel_csecretariatpage.class.php

示例2: processPetition

 function processPetition()
 {
     if ($this->issetViewVariable('status')) {
         $status = $this->getViewVariable('status');
     } else {
         $status = 'main';
         $status = $this->setViewVariable('status', 'main');
     }
     switch ($status) {
         case 'main':
         default:
             //Presentación de mensajería
             $arrMessages = $this->obj_data->getNewUserMessages(Session::getValue('USERINFO_USER_ID'));
             $this->setViewVariable('arrMessages', $arrMessages);
             //Presentación de tablón de anuncios
             $NoticeArray = $this->obj_data->getNotices();
             $this->setViewVariable('notice_array', $NoticeArray);
             break;
     }
     $this->clearNavBarr();
     $this->addNavElement(Util::format_URLPath('alumnPage/index.php'), agt('Inicio'));
     $this->setPageTitle('miguel Alumn Page');
     $this->setMessage('');
     $this->setHelp('');
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:25,代码来源:miguel_calumnpage.class.php

示例3: processPetition

 function processPetition()
 {
     if ($this->issetViewVariable('status')) {
         $status = $this->getViewVariable('status');
     } else {
         $status = 'main';
         $status = $this->setViewVariable('status', 'main');
     }
     //$this->addNavElement(Util::format_URLPath('teacherPage/index.php'), 'Página del Profesor');
     switch ($status) {
         case 'main':
         default:
             //Presentación de mensajería
             $arrMessages = $this->obj_data->getNewUserMessages(Session::getValue('USERINFO_USER_ID'));
             $this->setViewVariable('arrMessages', $arrMessages);
             //Presentación de tablón de anuncios
             $NoticeArray = $this->obj_data->getNotices();
             $this->setViewVariable('notice_array', $NoticeArray);
             break;
     }
     //Establecer el título de la página
     $this->setPageTitle("miguel Teacher Page");
     $this->setMessage('');
     //Establecer cual va a ser el archivo de la ayuda on-line, este se obtiene del directorio help/
     $this->setHelp("");
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:26,代码来源:miguel_cteacherpage.class.php

示例4: login

 public function login()
 {
     if (Session::getValue("ID-ASPIRANTE")) {
         header('Location: ' . URL . 'Aspirante/perfil');
         //echo '<script> window.location.href="'.URL.'Aspirante/perfil"</script>';
     }
     $this->view->render($this, "index");
 }
开发者ID:JordyPiedra,项目名称:cnel,代码行数:8,代码来源:Acceso.php

示例5: getNewUserMessages

 function getNewUserMessages()
 {
     $iMyId = Session::getValue('USERINFO_USER_ID');
     $ret_val = $this->SelectMultiTable('message,receiver_message,user', 'user.user_alias, message.sender,message.subject,message.body,message.date,receiver_message.status,message.id', "user.user_id = receiver_message.id_receiver AND receiver_message.id_message = message.id AND receiver_message.id_receiver = {$iMyId} AND receiver_message.status < 1");
     if ($this->hasError()) {
         $ret_val = null;
     }
     return $ret_val;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:9,代码来源:miguel_malumnPage.class.php

示例6: updateCourseCard

 function updateCourseCard($course_id, $objectives, $descripton, $contents)
 {
     $iMyId = Session::getValue('USERINFO_USER_ID');
     //Atención: Los mensajes con estado 2 no se verán afectados.
     $ret_val = $this->Update('course_card', ' objectives, description, contents', array($objectives, $descripton, $contents), "course_id = {$course_id}");
     if ($this->hasError()) {
         $ret_val = null;
     }
     return $ret_val;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:10,代码来源:miguel_mcoursecard.class.php

示例7: __construct

 public function __construct($route = NULL)
 {
     /**
      * If this is a redirect signal
      * reset the $_POST data.
      */
     if (($data = Session::getValue('POST_DATA')) && ($_POST = array_merge($_POST, (array) $data))) {
         Session::removeValue('POST_DATA');
     }
     $this->parent = static::active();
     return $this->route = $route;
 }
开发者ID:aidenfoxx,项目名称:foxxmvc,代码行数:12,代码来源:router.php

示例8: insertPost

 function insertPost($topic_id, $forum_id, $text, $ip, $title, $parent_id = 0)
 {
     $now = date("Y-m-d H:i:s");
     $iMyId = Session::getValue('USERINFO_USER_ID');
     $post_id = $this->Insert('forum_post', 'forum_topic_id, forum_id, forum_post_text, forum_post_poster, forum_post_time, forum_post_ip, forum_post_title, forum_post_parent', array($topic_id, $forum_id, $text, $iMyId, $now, $ip, $title, $parent_id));
     if ($parent_id == 0) {
         $this->Update('forum_post', 'forum_post_parent', "{$post_id}", "forum_post_id = {$post_id}");
     }
     if ($this->hasError()) {
         $post_id = null;
     }
     //Actualizamos el último mensaje del foro
     $this->Update('forum_topic', 'last_post_id', "{$post_id}", "forum_id = {$forum_id}");
     return $post_id;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:15,代码来源:miguel_mdiscuss.class.php

示例9: getMessages

 public static function getMessages($status)
 {
     $messages = array();
     switch ($status) {
         case Log::MESSAGE:
             $messages = (array) Session::getValue('messages');
             Session::removeValue('messages');
             break;
         case Log::ALERT:
             $messages = (array) Session::getValue('alerts');
             Session::removeValue('alerts');
             break;
         case Log::ERROR:
             $messages = (array) Session::getValue('errors');
             Session::removeValue('errors');
             break;
     }
     return $messages;
 }
开发者ID:aidenfoxx,项目名称:foxxmvc,代码行数:19,代码来源:log.php

示例10: grabarUsuario

 function grabarUsuario()
 {
     header('Content-Type: application/json');
     if ($_POST['id_personal'] == '') {
         $error['id'] = 0;
         $error['mensaje'] = "Seleccione al personal";
         echo json_encode($error);
     } else {
         if ($_POST['nom_usuario'] == '') {
             $error['id'] = 0;
             $error['mensaje'] = "Ingrese un nombre de usuario valido";
             echo json_encode($error);
         } else {
             if ($_POST['password'] == '') {
                 $error['id'] = 0;
                 $error['mensaje'] = "Ingrese una Contraseña";
                 echo json_encode($error);
             } else {
                 $funcion = new funciones();
                 Session::init();
                 $dataUsuario['id_usuario'] = $funcion->model->getLastID('s_usuario', 5);
                 $dataUsuario['id_personal'] = $_POST['id_personal'];
                 $dataUsuario['nom_usuario'] = $_POST['nom_usuario'];
                 $dataUsuario['password'] = Hash::create(ALGO, $_POST["password"], HASH_KEY);
                 $dataUsuario['id_estado'] = '01';
                 $dataUsuario['id_usuario_crea'] = Session::getValue('ID');
                 $dataUsuario['fecha_crea'] = Date::invertDate2(Date::today()) . ' ' . Date::now();
                 if ($this->model->grabarUsuario($dataUsuario)) {
                     echo 1;
                 } else {
                     $error['id'] = 0;
                     $error['mensaje'] = "No se registró";
                     echo json_encode($error);
                 }
             }
         }
     }
 }
开发者ID:joshluq,项目名称:sysexcel,代码行数:38,代码来源:Usuario.php

示例11:

<header> 
  <div class="row" style="margin-bottom: 0px;">
  <nav class="blue darken-4 z-depth-1" >
    <div class="nav-wrapper">
      <a href="<?php 
echo URL;
?>
Management/index" class="brand-logo">&nbsp;&nbsp;<img src="<?php 
echo URL;
?>
public/images/logo.png" alt="" class=" responsive-img"></a>
      <a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
      <div class="col l10">
      <ul class="right hide-on-med-and-down">
        <?php 
if (Session::getValue("TIP-ADMIN") == 'D') {
    echo '
        <li id="mconfiguracion" ><a href="' . URL . 'Management/configuracion">&nbsp;&nbsp;Configuración&nbsp;&nbsp;</a></li>
        <li id="mconcursos" ><a href="' . URL . 'Management/concursos">&nbsp;&nbsp;Concursos&nbsp;&nbsp;</a></li> ';
}
?>
        <li id="maspirante"><a href="<?php 
echo URL;
?>
Management/gestion_aspirante">&nbsp;&nbsp;&nbsp;&nbsp;Aspirantes</a></li>
       
        <li id="mprocess"><a href="<?php 
echo URL;
?>
Management/procesos">&nbsp;&nbsp;&nbsp;&nbsp;Procesos</a></li>
        <!--<li id="mreclutamiento"><a href="<?php 
开发者ID:JordyPiedra,项目名称:cnel,代码行数:31,代码来源:MENU_F.php

示例12: processPetitionNew

 function processPetitionNew()
 {
     $bol_cuestion = true;
     //Comprueba el contenido de la Variable nombre. Esta se le pasa como entrada al controlador y puede venir de un formulario o un link
     if ($this->issetViewVariable('asunto') && $this->getViewVariable('asunto') != '') {
         if ($this->issetViewVariable('comentario') && $this->getViewVariable('comentario') != '') {
             //Poner control
             $bol_cuestion = false;
             $now = date("Y-m-d H:i:s");
             $strAuthor = Session::getValue('USERINFO_USER_ALIAS');
             $strSubject = $this->getViewVariable('asunto');
             $strText = $this->getViewVariable('comentario');
             //Realizamos una llamada al Modelo $this->obj_data->Método(Parámetros);
             $this->obj_data->insertSugestion($strAuthor, $strSubject, $strText, $now);
             //Enviamos a la vista la información a Mostrar
             //$this->setViewVariable('notice_nombre', $this->arr_form['nombre']);
             //$this->setViewVariable('notice_comentario', $this->arr_form['comentario']);
         }
     }
     //Si está relleno se muestra el contenido
     if (!$bol_cuestion) {
         $this->setViewVariable('author', $strAuthor);
         $this->setViewVariable('subject', $strSubject);
         $this->setViewVariable('time', $now);
         $this->setViewVariable('text', $strText);
         $this->setViewVariable('status', 'show');
     }
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:28,代码来源:miguel_cnotice.class.php

示例13: processNewEvento

 function processNewEvento()
 {
     if ($this->issetViewVariable('_days') && $this->issetViewVariable('_months') && $this->issetViewVariable('_years')) {
         $date = $this->getViewVariable('_years') . '-' . $this->getViewVariable('_months') . '-' . $this->getViewVariable('_days');
     }
     if ($this->issetViewVariable('hora_inicio_hours') && $this->issetViewVariable('hora_inicio_minutes')) {
         $ini_time = $this->getViewVariable('hora_inicio_hours') . ':' . $this->getViewVariable('hora_inicio_minutes') . ':00';
     }
     if ($this->issetViewVariable('hora_fin_hours') && $this->issetViewVariable('hora_fin_minutes')) {
         $fin_time = $this->getViewVariable('hora_fin_hours') . ':' . $this->getViewVariable('hora_fin_minutes') . ':00';
     }
     $bol_cuestion = true;
     //Comprueba el contenido de la Variable nombre. Esta se le pasa como entrada al controlador y puede venir de un formulario o un link
     if ($this->issetViewVariable('asunto') && $this->getViewVariable('asunto') != '') {
         if ($this->issetViewVariable('comentario') && $this->getViewVariable('comentario') != '') {
             //Poner control
             $bol_cuestion = false;
             $course_id = Session::getValue('courseinfo_course_id');
             $course_name = Session::getValue('courseinfo_course_name');
             if (empty($course_id)) {
                 $course_id = 0;
                 $course_name = '';
             }
             $event = $this->getViewVariable('tipo_de_evento');
             $subject = $this->getViewVariable('asunto');
             $content = $this->getViewVariable('comentario');
             $dt_ini = $date . ' ' . $ini_time;
             $dt_fin = $date . ' ' . $fin_time;
             $dt_aud = date("Y-m-d H:i:s");
             $user_aud = Session::getValue('userinfo_user_id');
             //Realizamos una llamada al Modelo $this->obj_data->Método(Parámetros);
             $calendar_id = $this->obj_data->insertEvent($course_id, $event, $subject, $content, $dt_ini, $dt_fin, $dt_aud, $user_aud);
         }
     }
     //Si está relleno se muestra el contenido
     if (!$bol_cuestion) {
         $this->setViewVariable('calendar', $calendar_id);
         $this->setViewVariable('course', $course_name);
         $this->setViewVariable('event', $this->obj_data->getEventTypeDescription($event));
         $this->setViewVariable('subject', $subject);
         $this->setViewVariable('content', $content);
         $this->setViewVariable('dt_ini', $dt_ini);
         $this->setViewVariable('dt_fin', $dt_fin);
         $this->setViewVariable('status', 'show');
     }
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:46,代码来源:miguel_ccalendar.class.php

示例14: flash

 protected function flash($name, $value)
 {
     if ($this->session->hasValue('flash')) {
         $this->session->putValue('flash', array_merge($this->session->getValue('flash'), array($name => $value)));
     } else {
         $this->session->putValue('flash', array($name => $value));
     }
 }
开发者ID:BackupTheBerlios,项目名称:medick-svn,代码行数:8,代码来源:Base.php

示例15: right_block

 /**
  * this function returns the contents
  * of the left block.  It is already wrapped
  * in a TD
  *
  * @return HTMLTag object
  */
 function right_block()
 {
     $ret_val = container();
     $hr = html_hr();
     $hr->set_tag_attribute("noshade");
     $hr->set_tag_attribute("size", 2);
     $ret_val->add($hr);
     $div = html_div("ul-big");
     $div->add(Theme::getThemeImage("edcenters.png"));
     $div->add(agt('miguel_Courses'));
     $div->add(html_br(2));
     $course = $this->getViewVariable("arr_courses");
     $ul = html_ul();
     if ($course[0]['course_id'] != '') {
         $countCourse = count($course);
         for ($i = 0; $i < $countCourse; $i++) {
             $elem = container();
             $link = html_a(Util::format_URLPath("course/index.php", "course=" . $course[$i]["course_id"]), $course[$i]["course_name"], null, "_top");
             $link->set_tag_attribute('tabindex', $i + 7);
             $elem->add($link);
             $elem->add(html_br());
             $elem->add($course[$i]["course_description"]);
             $elem->add(html_br());
             $mailLink = Theme::getMailURL($course[$i]['course_email'], Session::getValue('migueloo_userinfo_user_id'));
             $elem->add(html_b(agt('miguel_responsable') . ' '), html_a($mailLink, $course[$i]["course_responsable"]));
             $elem->add(html_br());
             $elem->add(html_a(Util::format_URLPath("unsubscribe/index.php", "course_id=" . $course[$i]["course_id"]), agt('miguel_unsubscribe'), null, '_top'));
             $ul->add($elem);
         }
         $div->add($ul);
     }
     $ret_val->add($div);
     return $ret_val;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:41,代码来源:miguel_vusercourses.class.php


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