Class Laika_User

Description

Laika_User class.

User class with methods coupling it with the Active User class

  • extends: Laika_Abstract_Model

Located in /library/module/user/model/User.php (line 24)

Laika
   |
   --Laika_Abstract_Model
      |
      --Laika_User
Class Constant Summary
LOGOUT_TIME = 300
Variable Summary
static mixed $instance
mixed $accessibles
mixed $created
mixed $email
mixed $firstname
mixed $id
mixed $lastname
mixed $level
mixed $logged_in
mixed $model
mixed $password
mixed $salt
mixed $table
mixed $updated
mixed $username
Method Summary
static object active ()
static void bind (int $id)
static void deactivate ()
static void sleep ()
static object wake_up ()
void account ()
void avatar ( $size, [ $options = NULL])
void link_to_user ()
void logged_in ()
string name ()
void valid_account ()
Variables
static mixed $instance (line 31)
  • access: protected
mixed $accessibles = array('id','username','email','firstname','lastname','logged_in','created','updated') (line 34)
  • access: protected

Redefinition of:
Laika_Abstract_Model::$accessibles
mixed $created (line 46)
  • access: protected

Redefinition of:
Laika_Abstract_Model::$created
mixed $email (line 40)
  • access: protected
mixed $firstname (line 42)
  • access: protected
mixed $id (line 36)
  • access: protected

Redefinition of:
Laika_Abstract_Model::$id
mixed $lastname (line 43)
  • access: protected
mixed $level (line 41)
  • access: protected
mixed $logged_in (line 44)
  • access: protected
mixed $model (line 32)
  • access: protected

Redefinition of:
Laika_Abstract_Model::$model
mixed $password (line 38)
  • access: protected
mixed $salt (line 39)
  • access: protected
mixed $table (line 33)
  • access: protected

Redefinition of:
Laika_Abstract_Model::$table
mixed $updated (line 47)
  • access: protected

Redefinition of:
Laika_Abstract_Model::$updated
mixed $username (line 37)
  • access: protected
Methods
static method active (line 79)

active function.

Retrieves the Active User object.

  • access: public
static object active ()
static method bind (line 63)

bind function.

Registers a user as the active user in the Registry.

  • access: public
static void bind (int $id)
  • int $id
static method deactivate (line 109)
  • access: public
static void deactivate ()
static method sleep (line 105)

sleep function.

Alias for the Active_User sleep method

  • access: public
static void sleep ()
static method wake_up (line 92)

wake_up function.

Alias for the Active_User wake method

  • access: public
static object wake_up ()
account (line 150)

account function.

Retrieves the account associated with a user

  • access: public
void account ()
avatar (line 176)
  • access: public
void avatar ( $size, [ $options = NULL])
  • $size
  • $options
link_to_user (line 186)
  • access: public
void link_to_user ()
logged_in (line 160)

logged_in function.

  • access: public
void logged_in ()
name (line 119)

name function.

Returns the full name of a user

  • access: public
string name ()
valid_account (line 135)

valid_account function.

Checks whether a user account is confirmed and not deactivated

  • access: public
void valid_account ()

Inherited Methods

Inherited From Laika_Abstract_Model

Laika_Abstract_Model::__construct()
Laika_Abstract_Model::accessible()
Laika_Abstract_Model::add()
Laika_Abstract_Model::ajax_pagination_link_helper()
Laika_Abstract_Model::collection()
Laika_Abstract_Model::count()
Laika_Abstract_Model::create()
Laika_Abstract_Model::created_to_date()
Laika_Abstract_Model::created_to_datetime()
Laika_Abstract_Model::created_to_shortdate()
Laika_Abstract_Model::created_to_time()
Laika_Abstract_Model::delete()
Laika_Abstract_Model::dget()
Laika_Abstract_Model::drop()
Laika_Abstract_Model::dset()
Laika_Abstract_Model::exists()
Laika_Abstract_Model::find()
Laika_Abstract_Model::find_with_offset()
Laika_Abstract_Model::find_with_offset_order_by()
Laika_Abstract_Model::first()
Laika_Abstract_Model::get_map()
Laika_Abstract_Model::last()
Laika_Abstract_Model::link_to()
Laika_Abstract_Model::load()
Laika_Abstract_Model::map_to_string()
Laika_Abstract_Model::offset()
Laika_Abstract_Model::paginate()
Laika_Abstract_Model::pagination_link_helper()
Laika_Abstract_Model::prep_conditions()
Laika_Abstract_Model::render_ajax_pagination()
Laika_Abstract_Model::render_pagination()
Laika_Abstract_Model::total_pages()
Laika_Abstract_Model::update()
Laika_Abstract_Model::updated_to_date()
Laika_Abstract_Model::updated_to_datetime()
Laika_Abstract_Model::updated_to_shortdate()
Laika_Abstract_Model::updated_to_time()

Inherited From Laika

Laika::__construct()
Laika::from_array()
Laika::img()
Laika::link_to()
Laika::pop_assoc()
Laika::pop_index()
Laika::redirect_to()
Laika::reflect()
Laika::release()
Laika::to_array()
Laika::version()
Laika::__call()
Laika::__get()
Laika::__set()
Class Constants
LOGOUT_TIME = 300 (line 29)

Inherited Constants

Inherited from Laika

Laika::LAIKA_RELEASE
Laika::LAIKA_VERSION

Documentation generated on Sat, 19 May 2012 02:17:04 -0400 by phpDocumentor 1.4.4