Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
e65b0663
Commit
e65b0663
authored
Sep 15, 2015
by
MBoretto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdo also inside Telegram.php
parent
c7438436
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
DB.php
src/DB.php
+1
-0
Telegram.php
src/Telegram.php
+7
-1
No files found.
src/DB.php
View file @
e65b0663
...
...
@@ -65,6 +65,7 @@ class DB
}
self
::
$pdo
=
$pdo
;
return
self
::
$pdo
;
}
/**
...
...
src/Telegram.php
View file @
e65b0663
...
...
@@ -87,6 +87,12 @@ class Telegram
* @var boolean
*/
protected
$mysql_enabled
=
false
;
/**
* PDO object
*
* @var \PDO
*/
protected
$pdo
;
/**
* Commands config
...
...
@@ -148,7 +154,7 @@ class Telegram
*/
public
function
enableMySQL
(
array
$credential
,
$table_prefix
=
null
)
{
DB
::
initialize
(
$credential
,
$table_prefix
);
$this
->
pdo
=
DB
::
initialize
(
$credential
,
$table_prefix
);
$this
->
mysql_enabled
=
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment