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
521ad6d9
Commit
521ad6d9
authored
Sep 20, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added license to Doctrine_Null, removed Doctrine_Module (depracated component)
parent
17f0c82b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
60 deletions
+23
-60
Module.php
Doctrine/Module.php
+0
-60
Null.php
Doctrine/Null.php
+23
-0
No files found.
Doctrine/Module.php
deleted
100644 → 0
View file @
17f0c82b
<?php
class
Doctrine_Module
implements
IteratorAggregate
,
Countable
{
/**
* @var array $components an array containing all the components in this module
*/
protected
$components
=
array
();
/**
* @var string $name the name of this module
*/
private
$name
;
/**
* constructor
*
* @param string $name the name of this module
*/
public
function
__construct
(
$name
)
{
$this
->
name
=
$name
;
}
/**
* returns the name of this module
*
* @return string
*/
public
function
getName
()
{
return
$this
->
name
;
}
/**
* flush
* saves all components
*
* @return void
*/
public
function
flush
()
{
$connection
=
Doctrine_Manager
::
getInstance
()
->
getCurrentConnection
();
$tree
=
$connection
->
buildFlushTree
(
$this
->
components
);
}
/**
* getIterator
* this class implements IteratorAggregate interface
* returns an iterator that iterates through the components
* in this module
*
* @return ArrayIterator
*/
public
function
getIterator
()
{
return
new
ArrayIterator
(
$this
->
components
);
}
/**
* count
* this class implements Countable interface
* returns the number of components in this module
*
* @return integer
*/
public
function
count
()
{
return
count
(
$this
->
components
);
}
}
Doctrine/Null.php
View file @
521ad6d9
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* Doctrine_Null
*
* Simple empty class representing a null value
* used for extra fast null value testing with isset() rather than array_key_exists()
*
* @package Doctrine ORM
* @url www.phpdoctrine.com
* @license LGPL
*/
class
Doctrine_Null
{
}
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