Database abstraction
This commit is contained in:
12
core/Driver/SQL/Strategy/CascadeStrategy.class.php
Normal file
12
core/Driver/SQL/Strategy/CascadeStrategy.class.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Driver\SQL\Strategy;
|
||||
|
||||
class CascadeStrategy extends Strategy {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
?>
|
||||
12
core/Driver/SQL/Strategy/SetDefaultStrategy.class.php
Normal file
12
core/Driver/SQL/Strategy/SetDefaultStrategy.class.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Driver\SQL\Strategy;
|
||||
|
||||
class SetDefaultStrategy extends Strategy {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
?>
|
||||
12
core/Driver/SQL/Strategy/SetNullStrategy.class.php
Normal file
12
core/Driver/SQL/Strategy/SetNullStrategy.class.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Driver\SQL\Strategy;
|
||||
|
||||
class SetNullStrategy extends Strategy {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
?>
|
||||
9
core/Driver/SQL/Strategy/Strategy.class.php
Normal file
9
core/Driver/SQL/Strategy/Strategy.class.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace Driver\SQL\Strategy;
|
||||
|
||||
abstract class Strategy {
|
||||
|
||||
};
|
||||
|
||||
?>
|
||||
16
core/Driver/SQL/Strategy/UpdateStrategy.class.php
Normal file
16
core/Driver/SQL/Strategy/UpdateStrategy.class.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Driver\SQL\Strategy;
|
||||
|
||||
class UpdateStrategy extends Strategy {
|
||||
|
||||
private $values;
|
||||
|
||||
public function __construct($values) {
|
||||
$this->values = $values;
|
||||
}
|
||||
|
||||
public function getValues() { return $this->values; }
|
||||
};
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user