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
7bacdf07
Commit
7bacdf07
authored
Jun 07, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
a00c6061
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
1 deletion
+63
-1
AuditLog.php
lib/Doctrine/AuditLog.php
+63
-1
No files found.
lib/Doctrine/AuditLog.php
View file @
7bacdf07
...
...
@@ -45,7 +45,69 @@ class Doctrine_AuditLog
{
$this
->
_table
=
$table
;
}
/**
* __get
* an alias for getOption
*
* @param string $option
*/
public
function
__get
(
$option
)
{
if
(
isset
(
$this
->
options
[
$option
]))
{
return
$this
->
options
[
$option
];
}
return
null
;
}
/**
* __isset
*
* @param string $option
*/
public
function
__isset
(
$option
)
{
return
isset
(
$this
->
options
[
$option
]);
}
/**
* getOptions
* returns all options of this table and the associated values
*
* @return array all options and their values
*/
public
function
getOptions
()
{
return
$this
->
options
;
}
/**
* setOption
* sets an option and returns this object in order to
* allow flexible method chaining
*
* @see slef::$_options for available options
* @param string $name the name of the option to set
* @param mixed $value the value of the option
* @return Doctrine_AuditLog this object
*/
public
function
setOption
(
$name
,
$value
)
{
if
(
!
isset
(
$this
->
_options
[
$name
]))
{
throw
new
Doctrine_Exception
(
'Unknown option '
.
$name
);
}
$this
->
options
[
$name
]
=
$value
;
}
/**
* getOption
* returns the value of given option
*
* @param string $name the name of the option
* @return mixed the value of given option
*/
public
function
getOption
(
$name
)
{
if
(
isset
(
$this
->
options
[
$name
]))
{
return
$this
->
options
[
$name
];
}
return
null
;
}
public
function
audit
()
{
$conn
=
$this
->
_table
->
getConnection
();
...
...
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