예제 #1
0
파일: user.php 프로젝트: cepharum/txf
 private static function &session()
 {
     return txf::session(config::get('user.auth.global') ? session::SCOPE_GLOBAL : session::SCOPE_APPLICATION);
 }
예제 #2
0
파일: captcha.php 프로젝트: cepharum/txf
 public function __construct()
 {
     $this->session =& txf::session();
 }
예제 #3
0
파일: view.php 프로젝트: cepharum/txf
 /**
  * Adds message to be flashed on next rendered page.
  *
  * @param string $message message to flash
  * @param string $context context/kind of message, e.g. notice, error, alert
  */
 public static function flash($message, $context = 'notice')
 {
     $session =& txf::session(session::SCOPE_GLOBAL);
     $session['view']['flashes'][$context][] = $message;
 }
예제 #4
0
파일: stateful.php 프로젝트: cepharum/txf
 public function __construct()
 {
     $this->set =& txf::session(session::SCOPE_CLASS + session::SCOPE_SCRIPT, 'input_source_stateful');
 }