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
c5828271
Commit
c5828271
authored
Aug 08, 2009
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] More docblocks and changed exception thrown in Annotations parser
parent
92f22c85
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
122 additions
and
42 deletions
+122
-42
AnnotationException.php
lib/Doctrine/Common/Annotations/AnnotationException.php
+47
-0
Parser.php
lib/Doctrine/Common/Annotations/Parser.php
+1
-1
ApcCache.php
lib/Doctrine/Common/Cache/ApcCache.php
+8
-7
ArrayCache.php
lib/Doctrine/Common/Cache/ArrayCache.php
+8
-6
Cache.php
lib/Doctrine/Common/Cache/Cache.php
+8
-7
MemcacheCache.php
lib/Doctrine/Common/Cache/MemcacheCache.php
+8
-6
XcacheCache.php
lib/Doctrine/Common/Cache/XcacheCache.php
+8
-6
ClassLoader.php
lib/Doctrine/Common/ClassLoader.php
+27
-3
QueryException.php
lib/Doctrine/ORM/Query/QueryException.php
+7
-6
No files found.
lib/Doctrine/Common/Annotations/AnnotationException.php
0 → 100644
View file @
c5828271
<?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.doctrine-project.org>.
*/
namespace
Doctrine\Common\Annotations
;
/**
* Description of AnnotationException
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.org
* @since 2.0
* @version $Revision: 3938 $
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
class
AnnotationException
extends
\Doctrine\Common\DoctrineException
{
public
static
function
syntaxError
(
$message
)
{
return
new
self
(
'[Syntax Error] '
.
$message
);
}
public
static
function
semanticalError
(
$message
)
{
return
new
self
(
'[Semantical Error] '
.
$message
);
}
}
\ No newline at end of file
lib/Doctrine/Common/Annotations/Parser.php
View file @
c5828271
...
@@ -168,7 +168,7 @@ class Parser
...
@@ -168,7 +168,7 @@ class Parser
$message
.=
"'
{
$token
[
'value'
]
}
'"
;
$message
.=
"'
{
$token
[
'value'
]
}
'"
;
}
}
throw
\Doctrine\Common\Doctrine
Exception
::
syntaxError
(
$message
);
throw
Annotation
Exception
::
syntaxError
(
$message
);
}
}
/**
/**
...
...
lib/Doctrine/Common/Cache/ApcCache.php
View file @
c5828271
<?php
<?php
/*
/*
* $Id
: Apc.php 4910 2008-09-12 08:51:56Z romanb
$
* $Id$
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
@@ -24,12 +24,13 @@ namespace Doctrine\Common\Cache;
...
@@ -24,12 +24,13 @@ namespace Doctrine\Common\Cache;
/**
/**
* APC cache driver.
* APC cache driver.
*
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.org
* @link www.doctrine-project.org
* @since 1.0
* @since 2.0
* @version $Revision: 4910 $
* @version $Revision: 3938 $
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Roman Borschel <roman@code-factory.org>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
*/
class
ApcCache
implements
Cache
class
ApcCache
implements
Cache
{
{
...
...
lib/Doctrine/Common/Cache/ArrayCache.php
View file @
c5828271
<?php
<?php
/*
/*
* $Id
: Array.php 4910 2008-09-12 08:51:56Z romanb
$
* $Id$
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
@@ -24,11 +24,13 @@ namespace Doctrine\Common\Cache;
...
@@ -24,11 +24,13 @@ namespace Doctrine\Common\Cache;
/**
/**
* Array cache driver.
* Array cache driver.
*
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.org
* @link www.doctrine-project.org
* @since 1.0
* @since 2.0
* @version $Revision: 4910 $
* @version $Revision: 3938 $
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
*/
class
ArrayCache
implements
Cache
class
ArrayCache
implements
Cache
{
{
...
...
lib/Doctrine/Common/Cache/Cache.php
View file @
c5828271
<?php
<?php
/*
/*
* $Id
: Interface.php 3931 2008-03-05 11:24:33Z romanb
$
* $Id$
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
@@ -24,12 +24,13 @@ namespace Doctrine\Common\Cache;
...
@@ -24,12 +24,13 @@ namespace Doctrine\Common\Cache;
/**
/**
* Interface for cache drivers.
* Interface for cache drivers.
*
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.org
* @link www.doctrine-project.org
* @since 1.0
* @since 2.0
* @version $Revision: 3931 $
* @version $Revision: 3938 $
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Roman Borschel <roman@code-factory.org>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
*/
interface
Cache
interface
Cache
{
{
...
...
lib/Doctrine/Common/Cache/MemcacheCache.php
View file @
c5828271
<?php
<?php
/*
/*
* $Id
: Memcache.php 4910 2008-09-12 08:51:56Z romanb
$
* $Id$
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
@@ -26,11 +26,13 @@ use \Memcache;
...
@@ -26,11 +26,13 @@ use \Memcache;
/**
/**
* Memcache cache driver.
* Memcache cache driver.
*
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.phpdoctrine.org
* @link www.doctrine-project.org
* @since 1.0
* @since 2.0
* @version $Revision: 4910 $
* @version $Revision: 3938 $
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
*/
class
MemcacheCache
implements
Cache
class
MemcacheCache
implements
Cache
{
{
...
...
lib/Doctrine/Common/Cache/XcacheCache.php
View file @
c5828271
<?php
<?php
/*
/*
* $Id
: Xcache.php 2007-11-19 14:47:59Z demongloom
$
* $Id$
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
@@ -24,11 +24,13 @@ namespace Doctrine\Common\Cache;
...
@@ -24,11 +24,13 @@ namespace Doctrine\Common\Cache;
/**
/**
* Xcache cache driver.
* Xcache cache driver.
*
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.org
* @link www.doctrine-project.org
* @since 1.0
* @since 2.0
* @version $Revision: $
* @version $Revision: 3938 $
* @author Dmitry Bakaleinik (dima@snaiper.net)
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
*/
class
XcacheCache
implements
Cache
class
XcacheCache
implements
Cache
{
{
...
...
lib/Doctrine/Common/ClassLoader.php
View file @
c5828271
<?php
<?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.doctrine-project.org>.
*/
namespace
Doctrine\Common
;
namespace
Doctrine\Common
;
/**
/**
...
@@ -17,8 +36,13 @@ namespace Doctrine\Common;
...
@@ -17,8 +36,13 @@ namespace Doctrine\Common;
* 3) DO NOT setCheckFileExists(true). Doing so is expensive in terms of performance.
* 3) DO NOT setCheckFileExists(true). Doing so is expensive in terms of performance.
* 4) Use an opcode-cache (i.e. APC) (STRONGLY RECOMMENDED).
* 4) Use an opcode-cache (i.e. APC) (STRONGLY RECOMMENDED).
*
*
* @since 2.0
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Roman S. Borschel <roman@code-factory.org>
* @link www.doctrine-project.org
* @since 2.0
* @version $Revision: 3938 $
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
*/
class
ClassLoader
class
ClassLoader
{
{
...
...
lib/Doctrine/ORM/Query/QueryException.php
View file @
c5828271
...
@@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query;
...
@@ -24,12 +24,13 @@ namespace Doctrine\ORM\Query;
/**
/**
* Description of QueryException
* Description of QueryException
*
*
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Roman Borschel <roman@code-factory.org>
* @link www.doctrine-project.org
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @since 2.0
* @link http://www.doctrine-project.org
* @version $Revision: 3938 $
* @since 2.0
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @version $Revision$
* @author Jonathan Wage <jonwage@gmail.com>
* @author Roman Borschel <roman@code-factory.org>
*/
*/
class
QueryException
extends
\Doctrine\Common\DoctrineException
class
QueryException
extends
\Doctrine\Common\DoctrineException
{
{
...
...
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