| core_net

# Class: Bs_LittleSister Source Location: /core/net/http/Bs_LittleSister.class.php
### Class Overview
    Bs_Object
       |
       --Bs_LittleSister
Little Sister Class. #### Author(s): Andrej Arn <at blueshoes dot org> #### Version: 4.3.$Revision: 1.4 $ $Date: 2003/10/29 17:48:42 $ #### Copyright: blueshoes.org | ### Variables $blobFormat $cookieName $doAutoCreate $logPath | ### Methods Bs_LittleSister doItYourself logRequest logThis setCookie _lookupUser
### Inherited Variables | ### Inherited Methods #### Class: Bs_Object Bs_Object::Bs_Object() Bs_Object::getErrors() Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack. Bs_Object::getLastError() Basic error handling: Get last error string from the global Bs_Error-error stack. Bs_Object::getLastErrors() Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors(). Bs_Object::persist() Persists this object by serializing it and saving it to a file with unique name. Bs_Object::setError() Basic error handling: Push an error string on the global Bs_Error-error stack. Bs_Object::toHtml() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::toString() Dumps the content of this object to a string using PHP's var_dump(). Bs_Object::unpersist() Fetches an object that was persisted with persist()
### Class Details [line 25] Little Sister Class. dependencies: Bs_Dir, Bs_File, #### Tags:
access: | public
pattern: | singleton: (pseudostatic)
since: | bs4.2
version: | 4.3.$Revision: 1.4 $ $Date: 2003/10/29 17:48:42 $
copyright: | blueshoes.org
author: | Andrej Arn <at blueshoes dot org>
[ Top ] ### Class Variables #### $blobFormat = [line 71] how shoud blob data, for example POST data, be stored? dump => the human-readable output of dump() (default) s_php => serialize using php s_wddx => serialize using wddx. note: wddx must be installed! #### Tags:
todo: | all
Type: | mixed
[ Top ] #### $cookieName = 'SESS10N' [line 36] the name of the little-sister cookie to identify the user the default is the uppercase version of sess10n, that is "sess-ten-n". looks like session :-) if ppl see that such a cookie gets set, the chance is better they accept it.
Type: | string
[ Top ] #### $doAutoCreate = FALSE [line 62] if set to true then 'accounts' will be created for unknown users. #### Tags:
access: | public
Type: | bool
[ Top ] #### $logPath = [line 55] the path where the logfiles will be stored. each unique user gets its own log dir. if not specified then $APP['path']['site'] . 'data/littleSister/' will be used. any path that does not exist will be created. please don't forget the last slash. #### Tags:
see: | $this->_getLogPath()
access: | public
Type: | string
[ Top ] ### Class Methods ### constructor Bs_LittleSister [line 78]
`Bs_LittleSister Bs_LittleSister( )`
Constructor. #### Tags:
access: | public
[ Top ] ### method doItYourself [line 90]
`bool doItYourself( )`
#### Tags:
see: | var $this->doAutoCreate
access: | public
[ Top ] ### method logRequest [line 135]
`void logRequest( )`
logs the current request including get and post data. [ Top ] ### method logThis [line 166]
`void logThis( )`
log a var (string, array, whatever) into the log file. arrays and objects will be dumped. #### Tags:
todo: | all
[ Top ] ### method setCookie [line 123]
`void setCookie( [string $userId = NULL])`
sets a cookie to the users machine using the userId, if given. otherwise a unique userId is made up. #### Parameters:
string | $userId |
[ Top ] ### method _lookupUser [line 108]
`bool _lookupUser( )`
checks if we have a record for that user, and if so, sets it for this instance. [ Top ] Documentation generated on Mon, 29 Dec 2003 21:11:41 +0100 by phpDocumentor 1.2.3