As the name says, it is made to be basic and direct.
DataBase Class
| Name | Description | |——|————-| |__construct|Function __construct| |extractUrlParams|Function extractUrlParams Extract url a params to array ans return this| |getManager|Function getManager Get a instance of Doctrine ORM EntityManager an return this, or null| |isPath|Function isPath Check if string is a database path| |isUrl|Function isUrl Check if string is a database url| |setDBConfig|Function setDBConfig Set database configurations, driver, url and/or path (for sqlite)| |setORMConfig|Function setORMConfig Set database orm configurations, a array of entities paths and if is dev mode, for this, default value is true|
Description
public __construct (void)
Function __construct
Parameters
This function has no parameters.
Return Values
void
Description
public extractUrlParams (string $url)
Function extractUrlParams Extract url a params to array ans return this
Parameters
(string) $url
Return Values
array
Description
public getManager (void)
Function getManager Get a instance of Doctrine ORM EntityManager an return this, or null
Parameters
This function has no parameters.
Return Values
\EntityManager|null
Description
public isPath (string $url)
Function isPath Check if string is a database path
Parameters
(string) $url
Return Values
bool
Description
public isUrl (string $url)
Function isUrl Check if string is a database url
Parameters
(string) $url
Return Values
bool
Description
public setDBConfig (array $options)
Function setDBConfig Set database configurations, driver, url and/or path (for sqlite)
Parameters
(array) $options
Return Values
void
Description
public setORMConfig (array $entityPaths, bool $isDevMode)
Function setORMConfig Set database orm configurations, a array of entities paths and if is dev mode, for this, default value is true
Parameters
(array) $entityPaths
(bool) $isDevMode
Return Values
void