Overview

Packages

  • Onion::Controllers
  • Onion::Core
  • Onion::UI
  • Onion::Utils

Classes

  • Authenticator
  • Controller
  • Database
  • DatabaseResult
  • Log
  • Model
  • Onion
  • Request
  • Response
  • User
  • Overview
  • Package
  • Class
  • Tree

Class User

Onion Framework - Práca s užívateľmi

Copyright (c) 2011 Jano Gašpar (http://webstranky.net)

User implements Iterator, Countable, ArrayAccess

Direct Known Subclasses

Authenticator
Package: Onion::Core
Copyright: Copyright (c) 2011 Jano Gašpar
Author: Jano Gašpar
Located at Core/User.php
Methods summary
public static
# create( $user_id = NULL, $by = 'user_name' )
public static
# load( $user_id, $by = 'user_name' )
public static
# load_by_user_name( $user_name )
public static
# load_by_id( $user_id )
public
# load_data( $user_id, $by = 'user_name' )
public
# set_data( $data, $merge = TRUE )
public boolean|integer
# save_data( )
Uloženie modelu

Uloženie modelu

Returns

boolean|integer
FALSE alebo ID modelu
public
# save( )
public
# delete( )
protected
# load_permissions( )
public
# has_permissions( $permissions, $strict = FALSE )
public
# add_permissions( $permissions )
public
# remove_permissions( $permissions )
protected
# save_permissions( )
public
# has_roles( $roles, $strict = FALSE )
public
# add_roles( $roles )
public
# remove_roles( $roles )
public
# create_password_hash( $password )
public
# rewind( )
Rewinds the iterator to the first element.

Rewinds the iterator to the first element.

Implementation of

Iterator::rewind
public mixed
# key( )
Returns the key of the current element.

Returns the key of the current element.

Returns

mixed

Implementation of

Iterator::key
public mixed
# current( )
Returns the current element.

Returns the current element.

Returns

mixed

Implementation of

Iterator::current
public
# next( )
Moves forward to next element.

Moves forward to next element.

Implementation of

Iterator::next
public boolean
# valid( )
Checks if there is a current element after calls to rewind() or next().

Checks if there is a current element after calls to rewind() or next().

Returns

boolean

Implementation of

Iterator::valid
public integer
# count( )
Required by the Countable interface.

Required by the Countable interface.

Returns

integer

Implementation of

Countable::count
public
# offsetSet( $pointer, $value )

Implementation of

ArrayAccess::offsetSet
public
# offsetExists( $pointer )

Implementation of

ArrayAccess::offsetExists
public
# offsetUnset( $pointer )

Implementation of

ArrayAccess::offsetUnset
public
# offsetGet( $pointer )

Implementation of

ArrayAccess::offsetGet
public &
# __get( $property )
Properties summary
protected object $db
#
protected array $storage array()
#
protected array $permissions array()
#
protected array $old_permissions array()
#
protected array $roles array()
#
protected array $old_roles array()
#
Onion API documentation generated by ApiGen.
Generated using the TokenReflection library.