- /fws/error/handler.php in line 204
[ Method: FWS_Error_Handler::get_error_message() ]
0199 // note that this means that nobody should set error-reporting to 0 because otherwise
0200 // we would log no error
0201 if($no > 0 && (error_reporting() & $no) == 0 || $this->_max_errors())
0202 return;
0203
0204 echo $this->get_error_message($no,$msg,$file,$line);
0205 $this->_error_count++;
0206 }
0207
0208 /**
0209 * Builds the error-message for the given error including backtrace, if possible.
0210 * Note that this method logs the error, too!
- /fws/input.php in line 155
[ Method: FWS_Error_Handler::handle_error() ]
0150 */
0151 public function __construct()
0152 {
0153 parent::__construct();
0154
0155 $this->_magic_quotes = get_magic_quotes_gpc();
0156 }
0157
0158 /**
0159 * @return boolean wether values should be escaped
0160 */
0161 public function get_escape_values()
- /fws/singleton.php in line 66
[ Method: FWS_Input::__construct() ]
0061 protected static function _get_instance($name)
0062 {
0063 if(!isset(self::$_instances[$name]))
0064 {
0065 self::$_locked = false;
0066 self::$_instances[$name] = new $name();
0067 self::$_locked = true;
0068 }
0069
0070 return self::$_instances[$name];
0071 }
0072
- /fws/input.php in line 103
[ Method: FWS_Singleton::_get_instance() ]
0098 *
0099 * @return FWS_Input the instance
0100 */
0101 public static function get_instance()
0102 {
0103 return parent::_get_instance(get_class());
0104 }
0105
0106 /**
0107 * All predefined values with the selected type.
0108 *
0109 * @var array
- /src/proploader.php in line 68
[ Method: FWS_Input::get_instance() ]
0063 /**
0064 * @return FWS_Input the input-class
0065 */
0066 protected function input()
0067 {
0068 $c = FWS_Input::get_instance();
0069
0070 // predefine values
0071 $c->set_predef(TDL_URL_ACTION,'get',FWS_Input::STRING);
0072 $c->set_predef(TDL_URL_ORDER,'get',FWS_Input::STRING,
0073 array('changed','type','title','project','start','fixed'));
0074 $c->set_predef(TDL_URL_AD,'get',FWS_Input::STRING,array('ASC','DESC'));
- /fws/proploader.php in line 49
[ Method: TDL_PropLoader::input() ]
0044 {
0045 if(!method_exists($this,$name))
0046 FWS_Helper::error('The method '.$name.'() does not exist.
0047 Does the property you requested exist?');
0048
0049 return $this->$name();
0050 }
0051
0052 /**
0053 * @return FWS_Document the document
0054 */
0055 protected function doc()
- /fws/propaccessor.php in line 116
[ Method: FWS_PropLoader::load() ]
0111 * @return mixed the property
0112 */
0113 protected final function get($name)
0114 {
0115 if(!isset($this->_instances[$name]))
0116 $this->_instances[$name] = $this->_loader->load($name);
0117 return $this->_instances[$name];
0118 }
0119
0120 /**
0121 * @return FWS_Document the document-instance
0122 */
- /fws/propaccessor.php in line 189
[ Method: FWS_PropAccessor::get() ]
0184 /**
0185 * @return FWS_Input the input-instance
0186 */
0187 public function input()
0188 {
0189 return $this->get('input');
0190 }
0191
0192 protected function get_dump_vars()
0193 {
0194 return get_object_vars($this);
0195 }
- /fws/user/current.php in line 593
[ Method: FWS_PropAccessor::input() ]
0588 *
0589 */
0590 private function _init_session()
0591 {
0592 $cookies = FWS_Props::get()->cookies();
0593 $input = FWS_Props::get()->input();
0594 $sessions = FWS_Props::get()->sessions();
0595
0596 $user_ip = $this->_determine_user_ip();
0597 $user_agent = $this->_determine_user_agent();
0598
0599 // retrieve session-id
- /fws/user/current.php in line 144
[ Method: FWS_User_Current::_init_session() ]
0139
0140 if(!($storage instanceof FWS_User_Storage))
0141 FWS_Helper::def_error('instance','storage','FWS_User_Storage',$storage);
0142
0143 $this->_storage = $storage;
0144 $this->_init_session();
0145 }
0146
0147 /**
0148 * Inits all stuff to use this class. You HAVE to call this method if you want to allow logins.
0149 */
0150 public function init()
- /fws/proploader.php in line 93
[ Method: FWS_User_Current::__construct() ]
0088 * @return FWS_User_Current the current-user-object
0089 */
0090 protected function user()
0091 {
0092 $storage = new FWS_User_Storage_Empty();
0093 return new FWS_User_Current($storage);
0094 }
0095
0096 /**
0097 * @return FWS_Cookies the cookies-object
0098 */
0099 protected function cookies()
- /fws/proploader.php in line 49
[ Method: FWS_PropLoader::user() ]
0044 {
0045 if(!method_exists($this,$name))
0046 FWS_Helper::error('The method '.$name.'() does not exist.
0047 Does the property you requested exist?');
0048
0049 return $this->$name();
0050 }
0051
0052 /**
0053 * @return FWS_Document the document
0054 */
0055 protected function doc()
- /fws/propaccessor.php in line 116
[ Method: FWS_PropLoader::load() ]
0111 * @return mixed the property
0112 */
0113 protected final function get($name)
0114 {
0115 if(!isset($this->_instances[$name]))
0116 $this->_instances[$name] = $this->_loader->load($name);
0117 return $this->_instances[$name];
0118 }
0119
0120 /**
0121 * @return FWS_Document the document-instance
0122 */
- /fws/propaccessor.php in line 157
[ Method: FWS_PropAccessor::get() ]
0152 /**
0153 * @return FWS_User_Current the current-user-object
0154 */
0155 public function user()
0156 {
0157 return $this->get('user');
0158 }
0159
0160 /**
0161 * @return FWS_Cookies the cookies-object
0162 */
0163 public function cookies()
- /index.php in line 48
[ Method: FWS_PropAccessor::user() ]
0043 $accessor = new TDL_PropAccessor();
0044 $accessor->set_loader(new TDL_PropLoader());
0045 FWS_Props::set_accessor($accessor);
0046
0047 // init user
0048 $user = FWS_Props::get()->user();
0049 $user->init();
0050
0051 // ok, now show the page
0052 $doc = FWS_Props::get()->doc();
0053 echo $doc->render();
0054 ?>