PHP Class Amranidev\ScaffoldInterface\Datasystem\Database\DatabaseManager

Author: Athi Krishnan ([email protected])
Afficher le fichier Open project: amranidev/scaffold-interface Class Usage Examples

Protected Properties

Свойство Type Description
$database Amranidev\ScaffoldInterface\DataSystem\DatabaseContract Database holder.

Méthodes publiques

Méthode Description
__construct ( Amranidev\ScaffoldInterface\Datasystem\Database\DatabaseContractInterface $database )
getTablesNames ( ) : Collection Get all tables names.
make ( ) : self New instance based on app's database driver.
tableNames ( ) : Collection Retrieve table names from database.

Method Details

__construct() public méthode

public __construct ( Amranidev\ScaffoldInterface\Datasystem\Database\DatabaseContractInterface $database )
$database Amranidev\ScaffoldInterface\Datasystem\Database\DatabaseContractInterface

getTablesNames() public méthode

Get all tables names.
public getTablesNames ( ) : Collection
Résultat Illuminate\Support\Collection

make() public static méthode

New instance based on app's database driver.
public static make ( ) : self
Résultat self

tableNames() public static méthode

Retrieve table names from database.
public static tableNames ( ) : Collection
Résultat Illuminate\Support\Collection

Property Details

$database protected_oe property

Database holder.
protected DatabaseContract,Amranidev\ScaffoldInterface\DataSystem $database
Résultat Amranidev\ScaffoldInterface\DataSystem\DatabaseContract