Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
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
Tomáš Trávníček
doctrine-dbal
Commits
14e9bf62
Commit
14e9bf62
authored
Mar 27, 2011
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DDC-1014] Add abstract non-implemented methods for datediff, add and sub.
parent
b21fc426
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+62
-0
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
14e9bf62
...
...
@@ -719,6 +719,68 @@ abstract class AbstractPlatform
return
'COS('
.
$value
.
')'
;
}
/**
* Calculate the difference in days between the two passed dates.
*
* Computes diff = date1 - date2
*
* @param string $date1
* @param string $date2
* @return string
*/
public
function
getDateDiffExpression
(
$date1
,
$date2
)
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
/**
* Add the number of given days to a date.
*
* @param string $date
* @param int $days
* @return string
*/
public
function
getDateAddDaysExpression
(
$date
,
$days
)
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
/**
* Substract the number of given days to a date.
*
* @param string $date
* @param int $days
* @return string
*/
public
function
getDateSubDaysExpression
(
$date
,
$days
)
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
/**
* Add the number of given months to a date.
*
* @param string $date
* @param int $months
* @return string
*/
public
function
getDateAddMonthExpression
(
$date
,
$months
)
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
/**
* Substract the number of given months to a date.
*
* @param string $date
* @param int $months
* @return string
*/
public
function
getDateSubMonthExpression
(
$date
,
$months
)
{
throw
DBALException
::
notSupported
(
__METHOD__
);
}
public
function
getForUpdateSQL
()
{
return
'FOR UPDATE'
;
...
...
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