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
43811d2c
Commit
43811d2c
authored
Oct 07, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated all the necessary classes to use injectable
parent
13e75b2c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
10 deletions
+34
-10
Access.php
lib/Doctrine/Access.php
+1
-1
Configurable.php
lib/Doctrine/Configurable.php
+1
-1
Hydrate.php
lib/Doctrine/Hydrate.php
+1
-1
Record.php
lib/Doctrine/Hydrate/Record.php
+2
-2
Injectable.php
lib/Doctrine/Locator/Injectable.php
+25
-1
Manager.php
lib/Doctrine/Manager.php
+2
-2
Validator.php
lib/Doctrine/Validator.php
+2
-2
No files found.
lib/Doctrine/Access.php
View file @
43811d2c
...
...
@@ -32,7 +32,7 @@
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
abstract
class
Doctrine_Access
extends
Doctrine_
Object
implements
ArrayAccess
abstract
class
Doctrine_Access
extends
Doctrine_
Locator_Injectable
implements
ArrayAccess
{
/**
* setArray
...
...
lib/Doctrine/Configurable.php
View file @
43811d2c
...
...
@@ -31,7 +31,7 @@
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
abstract
class
Doctrine_Configurable
extends
Doctrine_
Object
abstract
class
Doctrine_Configurable
extends
Doctrine_
Locator_Injectable
{
/**
* @var array $attributes an array of containing all attributes
...
...
lib/Doctrine/Hydrate.php
View file @
43811d2c
...
...
@@ -32,7 +32,7 @@
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
class
Doctrine_Hydrate
extends
Doctrine_
Object
implements
Serializable
class
Doctrine_Hydrate
extends
Doctrine_
Locator_Injectable
implements
Serializable
{
/**
* QUERY TYPE CONSTANTS
...
...
lib/Doctrine/Hydrate/Record.php
View file @
43811d2c
...
...
@@ -31,7 +31,7 @@
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
class
Doctrine_Hydrate_Record
extends
Doctrine_
Object
class
Doctrine_Hydrate_Record
extends
Doctrine_
Locator_Injectable
{
protected
$_collections
=
array
();
...
...
lib/Doctrine/Locator/Injectable.php
View file @
43811d2c
...
...
@@ -43,7 +43,10 @@ class Doctrine_Locator_Injectable
* @var array an array of bound resources
*/
protected
$_resources
=
array
();
/**
* @var Doctrine_Null $null Doctrine_Null object, used for extremely fast null value checking
*/
protected
static
$_null
;
/**
* setLocator
* this method can be used for setting the locator object locally
...
...
@@ -115,4 +118,25 @@ class Doctrine_Locator_Injectable
return
$this
;
}
/**
* initNullObject
* initializes the null object
*
* @param Doctrine_Null $null
* @return void
*/
public
static
function
initNullObject
(
Doctrine_Null
$null
)
{
self
::
$_null
=
$null
;
}
/**
* getNullObject
* returns the null object associated with this object
*
* @return Doctrine_Null
*/
public
static
function
getNullObject
()
{
return
self
::
$_null
;
}
}
lib/Doctrine/Manager.php
View file @
43811d2c
...
...
@@ -68,7 +68,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
{
$this
->
_root
=
dirname
(
__FILE__
);
Doctrine_
Object
::
initNullObject
(
new
Doctrine_Null
);
Doctrine_
Locator_Injectable
::
initNullObject
(
new
Doctrine_Null
);
}
/**
* setDefaultAttributes
...
...
lib/Doctrine/Validator.php
View file @
43811d2c
...
...
@@ -30,7 +30,7 @@
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
class
Doctrine_Validator
extends
Doctrine_
Object
class
Doctrine_Validator
extends
Doctrine_
Locator_Injectable
{
/**
* @var array $validators an array of validator objects
...
...
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