LiveUser questions

From: Date: Wed, 08 Jun 2005 10:18:36 +0000
Subject: LiveUser questions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19513@lists.php.net to get a copy of this message
Hi PEARs, I'm trying to set up LiveUser for my next website. I want to use the Medium perm level, so I have this $options array: $options = array( 'autoInit' => true, 'authContainers' => array(
    'test'  =>  array(
      'type'  =>  'DB',
      'dsn'  =>  $config['database'],
      'authTableCols'  =>  array(
        'required'  =>  array(
          'auth_user_id'  =>  array('type'  =>  'text',  'name'  => 'user_id'),
          'handle'    =>  array('type'  =>  'text',  'name'  =>  'handle'),
          'passwd'    =>  array('type'  =>  'text',  'name'  => 'password')
        ),
        'optional'  =>  array(
          'lastlogin'  =>  array('name'  =>  'lastLogin',  'type'  => 'timestamp'),
          'is_active'  =>  array('name'  =>  'isActive',  'type'  => 'boolean')
        )
      )
    )
), 'permContainer' => array(
    'type'  =>  'Medium',
    'storage'  =>  array(
      'DB'  =>  array(
        'dsn'  =>  $config['database'],
        'prefix'          =>  'liveuser_'
      )
    )
) ); I pass those options to LiveUser::factory($options), but I don't know if this is the way to do it. At this point, $_perm and $_auth are empty properties, that I don't know how to initialize them. Should I use the other factory methods? Should I instantiate the containers as shown in the pear.limbourg.org tutorial? Please, give me some advice. Thanks in advance, Rodrigo.

« previous php.pear.general (#19513) next »