/**
  * Constructor
  *
  * @param integer $account_id   Account id defaults to current account id
  * @param string  $account_type Account type 'u': account; 'g' : group; defaults to current account type
  *
  * @return void
  */
 public function __construct($account_id = null, $account_type = null)
 {
     parent::__construct($account_id, $account_type);
 }
 /**
  * Create account or group
  *
  * @param array $account_info Account/group information
  * @param string $default_prefs Unused
  * @return array|boolean Id of the newly created account or false
  */
 function create_old($account_info, $group, $acls = array(), $modules = array())
 {
     //echo 'accounts_ldap::create called!';
     if (!isset($account_info->id) || empty($account_info->id) || !$account_info->id == 0) {
         //echo 'need new acct id for new entry';
         $account_info->id = $this->_get_nextid($account_info->type);
         //echo "- got given {$account_info->id}<br>";
     }
     if ($account_info->type == 'u') {
         $this->create_account($account_info);
     } elseif ($account_info->type == 'g') {
         $this->create_group($account_info);
     } else {
         return false;
     }
     return parent::create($account_info, $group, $acls, $modules);
 }