source: pro-violet-viettel/sourcecode/application/libraries/Doctrine/ORM/Mapping/Driver/Driver.php @ 345

Last change on this file since 345 was 345, checked in by quyenla, 11 years ago

collaborator page

File size: 2.0 KB
Line 
1<?php
2/*
3 *  $Id$
4 *
5 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
6 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
8 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
9 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
10 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
11 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
12 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
13 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
14 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
15 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16 *
17 * This software consists of voluntary contributions made by many individuals
18 * and is licensed under the LGPL. For more information, see
19 * <http://www.doctrine-project.org>.
20 */
21
22namespace Doctrine\ORM\Mapping\Driver;
23
24use Doctrine\ORM\Mapping\ClassMetadataInfo;
25
26/**
27 * Contract for metadata drivers.
28 *
29 * @since 2.0
30 * @author Jonathan H. Wage <jonwage@gmail.com>
31 * @todo Rename: MetadataDriver or MappingDriver
32 */
33interface Driver
34{
35    /**
36     * Loads the metadata for the specified class into the provided container.
37     *
38     * @param string $className
39     * @param ClassMetadataInfo $metadata
40     */
41    function loadMetadataForClass($className, ClassMetadataInfo $metadata);
42
43    /**
44     * Gets the names of all mapped classes known to this driver.
45     *
46     * @return array The names of all mapped classes known to this driver.
47     */
48    function getAllClassNames();
49
50    /**
51     * Whether the class with the specified name should have its metadata loaded.
52     * This is only the case if it is either mapped as an Entity or a
53     * MappedSuperclass.
54     *
55     * @param string $className
56     * @return boolean
57     */
58    function isTransient($className);
59}
Note: See TracBrowser for help on using the repository browser.