Re: Joining users to another table

Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
On 18/05/2005, at 9:56 AM, Lukas Smith wrote:
>
> What you would need to do is have a look at
>
> PEAR/LiveUser/Perm/Storage/Globals.php
>
> this file defines the entire permission structure. also keep in mind 
> that users are unique identified by their id in the perm container and 
> not by their id in the auth container (as there can be multiple auth 
> containers using the same auth id naming scheme). therefore you want 
> to create the relation on perm_user_id. i hope the file itself is 
> somewhat self explaining.
>
> This is all quite new territory but you have the following options.
>
> 1)
>
> include LiveUser/Perm/Storage/Globals.php;
> and modify the arrays at runtime
> $GLOBALS['_LiveUser']['perm']['tables']
> $GLOBALS['_LiveUser']['perm']['fields']
> $GLOBALS['_LiveUser']['perm']['alias']
>
> 2)
>
> modify the LiveUser/Perm/Storage/Globals.php in your pear directory, 
> or stick a modified version into an include path that is checked 
> before your pear path
>
> 3)
>
> pass in the necessary arrays as permission container parameters. these 
> arrays will be merged with the default 
> LiveUser/Perm/Storage/Globals.php arrays.
>
>         'permContainer' => array(
>             'type'  => 'Complex',
>             'storage' => array(
>                 $perm => array(
>                     'connection' => $db,
>                     'dsn' => $dsn,
>                     'prefix' => 'liveuser_',
>                     'tables' => array(),
>                     'fields' => array(),
>                     'alias' => array(),
>                 ),
>             ),
>         ),
>
>

Uhh a little bit confusing but this is just global config settings ?  I 
need to collect data from the customer directory once the customer is 
logged in, would would have to either search for the record with their 
userID or the customerID.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.