1 | <?php |
||
11 | class Rentgen |
||
12 | { |
||
13 | private $container; |
||
14 | |||
15 | /** |
||
16 | * Constructor. |
||
17 | */ |
||
18 | public function __construct() |
||
29 | |||
30 | /** |
||
31 | * Get a service. |
||
32 | * |
||
33 | * @param string $service A service name. |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function get($service) |
||
41 | |||
42 | /** |
||
43 | * Create the manipulation instance. |
||
44 | * |
||
45 | * @return Rentgen\Schema\Manipulation |
||
46 | */ |
||
47 | public function createManipulationInstance() |
||
51 | |||
52 | /** |
||
53 | * Create the info instance. |
||
54 | * |
||
55 | * @return Rentgen\Schema\Info |
||
56 | */ |
||
57 | public function createInfoInstance() |
||
61 | |||
62 | /** |
||
63 | * Execute sql query. |
||
64 | * |
||
65 | * @param string $sql A sql query. |
||
66 | * |
||
67 | * @return integer |
||
68 | */ |
||
69 | public function execute($sql) |
||
75 | |||
76 | /** |
||
77 | * Execute sql query with select intention. |
||
78 | * |
||
79 | * @param string $sql A sql query. |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | public function query($sql) |
||
89 | } |
||
90 |