示例#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');
 }