155. public function __construct(array $config = [])
156. {
157. $this->defaultConfig = Config::default('ZN\Database\DatabaseDefaultConfiguration')
158. ::get('Database', 'database');
159. $this->config = array_merge($this->defaultConfig, $config);
160. $this->db = $this->runDriver();
161. $this->prefix = $this->config['prefix'];
162. Properties::$prefix = $this->prefix;
163.
164. $this->db->connect($this->config);
165. }
166.
167. /**
168. * Magic Debug Info
169. */
170. public function __debugInfo()
171. {
172. return ['return' => $this->stringQuery ?: 'This is a general object, please call the sub method!'];
173. }
174.
1338. */
1339. public function query(string $query, array $secure = [])
1340. {
1341. $secure = $this->secure ?: $secure; $this->secure = [];
1342. $caching = $this->caching; $this->caching = [];
1343. $tableName = $this->tableName; $this->tableName = '';
1344. $jsonDecode = $this->jsonDecode; $this->jsonDecode = [];
1345. $paging = $this->paging ?? 'row'; $this->paging = NULL;
1346.
1347. return (new self($this->config))->setQueryByDriver($query, $secure,
1348. [
1349. 'caching' => $caching,
1350. 'tableName' => $tableName,
1351. 'jsonDecode' => $jsonDecode,
1352. 'paging' => $paging
1353. ]);
1354. }
1355.
1356. /**
1357. * Exec Basic Query
792. }
793.
794. if( $this->transaction === true )
795. {
796. $this->transactionQueries[] = $finalQuery;
797.
798. return $this;
799. }
800.
801. return $this->$returnQuery($finalQuery, $this->secure);
802. }
803.
804. /**
805. * Duplicate Check
806. *
807. * @param string ...$args
808. *
809. * @return DB
810. */
811. public function duplicateCheck(...$args) : DB
205. {
206. $result = 'value';
207.
208. $this->select($select);
209.
210. $whereClause = true;
211. }
212. }
213.
214. $return = $this->get($method);
215.
216. # Return ->get()
217. if( ! isset($result) )
218. {
219. return $return;
220. }
221.
222. # Return ->row(0) || result('object')
223. return $return->$result($whereClause);
224. }
84. return $this->callWhereHavingTalkingQuery($split, $parameters);
85. }
86. # Insert - Update - Delete
87. elseif( in_array($split[1] ?? NULL, ['Delete', 'Update', 'Insert']) )
88. {
89. return $this->callCrudTalkingQuery($split, $parameters);
90. }
91. else
92. {
93. return $this->callResultMethodsTalkingQuery($originMethodName, $split, $parameters);
94. }
95. }
96.
97. /**
98. * Protected call join talkin query
99. */
100. protected function callJoinTalkingQuery($split, $parameters)
101. {
102. $type = $split[0] ?? 'left';
103. $table1 = $split[2] ?? '';
60.
61. <div class="product-area shop-fullwidth-area style-two">
62. <div class="container">
63. <div class="row">
64. <div class="col-lg-12">
65. <div class="tab-content" id="nav-tabContent">
66. <div class="tab-pane fade show active" id="nav-grid" role="tabpanel" aria-labelledby="nav-grid-tab">
67. <div class="row row-gutter-20 ">
68. {[ foreach (DB::orderby('sira', 'asc')->where('status', 1)->koleksiyon_album()->result() as $album) { ]}
69. {[ foreach (DB::orderBy('sira', 'asc')->where('album_id', $album->albumID)->koleksiyon_galeri()->result() as $resim) { ]}
70. <div class="col-sm-6 col-md-4 col-xl-4 col-xxl-3">
71. <div class="product-item">
72. <div class="product-thumb">
73. <a class="lightbox-image" data-fancybox="gallery" href="{[ echo URL::base(UPLOADS_DIR."koleksiyon/".$resim->resim) ]}">
74. <img class="lazy-load" src="https://media0.giphy.com/media/KG4PMQ0jyimywxNt8i/giphy.gif?cid=ecf05e47mmkwuw6jokxudlwfrqztrkepnqiq66du2oo4ssfs&ep=v1_gifs_search&rid=giphy.gif&ct=g" data-src="{[ echo URL::base(UPLOADS_DIR."koleksiyon/".$resim->resim) ]}" alt="Product Image">
75. <span class="thumb-overlay">span>
76. a>
77. div>
78. div>
79. div>
1.
2.
3. <div class="as-mainwrapper">
4. {[ Import::view('Sections/header') ]}
5. {[ if (isset($page)) {
6. Import::view($page);
7. }]}
8.
9. {[ Import::view('Sections/footer') ]}
10.
11. div>
12.
13.
14.
15. <script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js">script>
16.
192.
193. echo $header;
194.
195. $randomPageVariable = $head['bodyPage'] ?? $masterPageSet['bodyPage'];
196.
197. if( ! empty($randomPageVariable) )
198. {
199. $randomDataVariable['view'] = $bodyContent;
200.
201. View::use($randomPageVariable, $randomDataVariable, false, $viewDirectory);
202. }
203. else
204. {
205. echo $bodyContent; // @codeCoverageIgnore
206. }
207.
208. $randomFooterVariable = EOL.'
'.EOL; 209. $randomFooterVariable .= '