PHP Class Voodoo\Core\Model

Inheritance: extends Voodoo\VoodOrm
Show file Open project: voodoophp/voodoo Class Usage Examples

Protected Properties

Property Type Description
$dbAlias string The DB Alias to use. It is saved in App/Config/DB.ini
$foreignKeyName string The foreign key name for one to many
$primaryKeyName string The primary ke name
$tableName type The table name

Public Methods

Method Description
__construct ( PDO $pdo = null ) The constructor
create ( mixed $obj = null ) : Model Create a new instance

Method Details

__construct() public method

The constructor
public __construct ( PDO $pdo = null )
$pdo PDO

create() public static method

Create a new instance
public static create ( mixed $obj = null ) : Model
$obj mixed
return Model

Property Details

$dbAlias protected property

The DB Alias to use. It is saved in App/Config/DB.ini
protected string $dbAlias
return string

$foreignKeyName protected property

The foreign key name for one to many
protected string $foreignKeyName
return string

$primaryKeyName protected property

The primary ke name
protected string $primaryKeyName
return string

$tableName protected property

The table name
protected type $tableName
return type