Model_User

class Nos\User\Model_User

Extend Nos\Orm\Model.

Relations

property Nos\User\Model_User::$roles
Nos\User\Model_User::check_permission($permission_name, $category_key = null)
Parameters:
  • $permission_name (string) – Name of the permission to check against
  • $category_key (string) – (optional) If the permission has categories, the category key to check against
Returns:

True if the user has the required authorisation, false otherwise

Methods

Nos\User\Model_User::check_password($password)
Parameters:
  • $password (string) – Password to check if it matches the user’s password
Returns:

True if passwords match, false otherwise.

Nos\User\Model_User::generate_md5()

Generate a new md5 for the user (store in the user_md5 column).

Read the Docs v: latest
Versions
latest
dubrovka
chiba.2
chiba.1
0.2
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.