Public paste
Undefined
By: Guest | Date: Mar 21 2010 20:58 | Format: PHP | Expires: never | Size: 749 B | Hits: 1557

  1. <?php
  2.  
  3.         FINAL CLASS User_Broadcast EXTENDS ILLI_Broadcast
  4.         {
  5.                 private $USER       = NULL;
  6.                 private $loggenIn   = FALSE;
  7.                
  8.                 final public function exec()
  9.                 {
  10.                        
  11.                         $this->USER  = new ILLI_ArrayObject;
  12.                         $this->USER->setFlags(ILLI_ArrayObject::ARRAY_AS_PROPS);
  13.                        
  14.                         if($this->_root->Boot->System->Registry->get()->SESSION->COOKIE === TRUE)
  15.                         {
  16.                                 $this->_root->Api->Database->db_connect();
  17.                        
  18.                                 $this->USER->SESSION =
  19.                                         $this->_root->Api->Database->simple_select_search
  20.                                         (
  21.                                                 'user_session',
  22.                                                 $this->_root->Boot->System->Registry->get()->SESSION->ID,
  23.                                                 'sid'
  24.                                         )->{0};
  25.                        
  26.                                 v($this->USER);
  27.                         }
  28.                        
  29.                        
  30.                 }
  31.        
  32.                 final public function loggedIn()
  33.                 {
  34.                         return 'loggedIn';
  35.                 }
  36.         }