The representation of a user
The representation of a user, outside of Authentification purposes, which are handled by PEAR Auth.
Note: this class assumes that the prefs field is a serialized value. It needs to be manipulated through set_pref(), get_pref() and others instead of the plain set() and get(), which still deal with the serialized data. Failure to use the proper API might lead to corruption of the prefs field.
Located in /User.php (line 61)
Storable | --User
The Object representation of the 'prefs' columns, which is normally a serialized value.
Inherited from Storable
Storable::$_count
Storable::$_data
Storable::$_data_orig
Storable::$_db
Storable::$_dsn
Storable::$_exists
Storable::$_join
Storable::$_match
Storable::$_num_rows
Storable::$_num_rows_unlimited
Storable::$_offset
Storable::$_order
Storable::$_res
Storable::$_select
the customers a user has access to
WARNING!!!
The Customer object created uses a JOIN and might cause problems when saved. You have been warned.
the list of allowed customers, as an array
unserialize the prefs data
Make the prefs member a valid member by unserializing the data stored in the database.
Backup the data array before doing so, because we can't back it up later on.
fetch the given preference
wether the customer is allowed for the user
Override the parent next()
This is done to have a consistent 'prefs' array
The current punch.
"punch in" in the given project
Note: this function immediatly save()s the data structure as not doing so will lead to inconsistency between the TimeEntry and the punch.
Sets the "punch" and "punchtime" preferences for later use by punch() and punch_out() the previous punch.
Punch out.
Note: this function immediatly save()s the data structure as not doing so will lead to inconsistency between the TimeEntry and the punch.
Stop "counting" time for this project and add a related time entry, if necessary.
stack a preference in a preference array
override the parent save()
Again, this is done to have a consistent 'prefs' value. We check here if the prefs were modified, and backup_data() if so.
set the given preference
Inherited From Storable
Storable::Storable()
Storable::backup_data()
Storable::connect()
Storable::count()
Storable::disconnect()
Storable::exists()
Storable::feed_hash()
Storable::get()
Storable::get_data()
Storable::handle_result()
Storable::is_limited()
Storable::next()
Storable::num_rows()
Storable::num_rows_unlimited()
Storable::offset()
Storable::remove()
Storable::save()
Storable::set()
Storable::set_data()
Storable::start_request()
Storable::tablename()
Storable::where_clause()
Documentation generated on Tue, 11 Jan 2005 01:38:35 -0500 by phpDocumentor 1.3.0RC3