DatabaseService::CreateProfile  (since version 2.0)
Syntax
boolean CreateProfile (  string $profileName [, array $arguments ] )
Parameters
profileName
The profile name to create. This name is unique within the DatabaseService. It can exists or be created in other services.
arguments
The arguments to bind to the profile.
driver, hostname, database, username, password, DAO
Description
Create an database service profile. This profile properties can be changed at any time with the available database service methods.

Note:
If the profile already exists it will be not created or overwritten.
Return
boolean Returns true on success, false on fail.
Examples
<?php

  DatabaseService
::CreateProfile
  
(
     
'my_profile',
     array
     (
    
'driver'            => 'mysql',
    
'hostname'        => 'localhost',
    
'database'        => 'sample',
    
'username'        => 'root',
    
'password'        => '',
    
'DAO'            => 'PDOMySQLDAO'
     
)
  );

?>

Last change 10/13/2009




Administration