File/plugins/UserManager/lib.inc.php

Description

UserManager plugin for StockManiac.

This plugin allows to create and modify user accounts and permissions. This file is a function library with generic functionality used thoughout the plugin.

Functions
create_password (line 24)

Create a random, but still good pronounceable password

thanks to Zend + Rival7 (http://www.zend.com/codex.php?id=215&single=1))

  • access: public
string create_password (int $length)
  • int $length
delete_account (line 67)

Delete account and all related records from all tables

NOTE:

  • yeah, this implementation is painfull
  • we used to do this with a single multi-table-delete statement, but that has been disabled cause it appeard to be slow and unreliable
  • future versions may use a stored procedure for this
  • the order of queries is crucial!
  • StockManiac usually stops when a query fails

  • stockmaniac-tables: Order, Position, Portfolio, Document, DocumentData, DocumentAssign, user, Setting, Access, timetag
  • access: public
void delete_account (int $id_user, StockManiac $SM)
  • int $id_user
  • StockManiac $SM

Documentation generated on Sun, 22 Aug 2010 11:20:22 +0200 by phpDocumentor 1.4.3