|
Doctrine 1.2.4
|
Inherits Doctrine_Core.
Static Public Member Functions | |
| static | autoload ($className) |
| static | compile ($target=null, $includedDrivers=array()) |
| static | createDatabases ($specifiedConnections=array()) |
| static | createTablesFromArray ($array) |
| static | createTablesFromModels ($directory=null) |
| static | debug ($bool=null) |
| static | dropDatabases ($specifiedConnections=array()) |
| static | dump ($var, $output=true, $indent="") |
| static | dumpData ($yamlPath, $individualFiles=false) |
| static | extensionsAutoload ($className) |
| static | filterInvalidModels ($classes) |
| static | generateMigrationClass ($className, $migrationsPath) |
| static | generateMigrationsFromDb ($migrationsPath) |
| static | generateMigrationsFromDiff ($migrationsPath, $from, $to) |
| static | generateMigrationsFromModels ($migrationsPath, $modelsPath=null, $modelLoading=null) |
| static | generateModelsFromDb ($directory, array $connections=array(), array $options=array()) |
| static | generateModelsFromYaml ($yamlPath, $directory, $options=array()) |
| static | generateSqlFromArray ($array) |
| static | generateSqlFromModels ($directory=null) |
| static | generateYamlFromDb ($yamlPath, array $connections=array(), array $options=array()) |
| static | generateYamlFromModels ($yamlPath, $directory) |
| static | getConnectionByTableName ($tableName) |
| static | getExtensionsPath () |
| static | getLoadedModelFiles () |
| static | getLoadedModels ($classes=null) |
| static | getModelsDirectory () |
| static | getPath () |
| static | getTable ($componentName) |
| static | initializeModels ($models) |
| static | isValidModelClass ($class) |
| static | loadData ($yamlPath, $append=false) |
| static | loadModel ($className, $path=null) |
| static | loadModels ($directory, $modelLoading=null, $classPrefix=null) |
| static | migrate ($migrationsPath, $to=null) |
| static | setExtensionsPath ($extensionsPath) |
| static | setModelsDirectory ($directory) |
| static | setPath ($path) |
Definition at line 36 of file Doctrine.php.
|
staticinherited |
simple autoload function returns true if the class was loaded, otherwise false
| string | $className |
Definition at line 1110 of file Core.php.
|
staticinherited |
Method for making a single file of most used doctrine runtime components including the compiled file instead of multiple files (in worst cases dozens of files) can improve performance by an order of magnitude
| string | $target | |
| array | $includedDrivers |
| Doctrine_Exception |
|
staticinherited |
Creates databases for connections
| string | $specifiedConnections | Array of connections you wish to create the database for |
|
staticinherited |
Creates database tables for the models in the supplied array
| array | $array | An array of models to be exported |
|
staticinherited |
Creates database tables for the models in the specified directory
| string | $directory | Directory containing your models |
|
staticinherited |
|
staticinherited |
Drops databases for connections
| string | $specifiedConnections | Array of connections you wish to drop the database for |
|
staticinherited |
dumps a given variable
| mixed | $var | a variable of any type |
| boolean | $output | whether to output the content |
| string | $indent | indention string |
Definition at line 1196 of file Core.php.
|
staticinherited |
Dump data to a yaml fixtures file
| string | $yamlPath | Path to write the yaml data fixtures to |
| string | $individualFiles | Whether or not to dump data to individual fixtures files |
Definition at line 982 of file Core.php.
|
staticinherited |
Load classes from the Doctrine extensions directory/path
| string | $className |
Definition at line 1166 of file Core.php.
|
staticinherited |
Filter through an array of classes and return all the classes that are valid models. This will inflect the class, causing it to be loaded in to memory.
| classes | Array of classes to filter through, otherwise uses get_declared_classes() |
Definition at line 762 of file Core.php.
|
staticinherited |
Generate new migration class skeleton
| string | $className | Name of the Migration class to generate |
| string | $migrationsPath | Path to directory which contains your migration classes |
Definition at line 1025 of file Core.php.
|
staticinherited |
Generate a set of migration classes from an existing database
| string | $migrationsPath |
| new | Doctrine_Migration_Exception |
Definition at line 1039 of file Core.php.
|
staticinherited |
Generate a set of migration classes by generating differences between two sets of schema information
| string | $migrationsPath | Path to your Doctrine migration classes |
| string | $from | From schema information |
| string | $to | To schema information |
Definition at line 1070 of file Core.php.
|
staticinherited |
Generate a set of migration classes from an existing set of models
| string | $migrationsPath | Path to your Doctrine migration classes |
| string | $modelsPath | Path to your Doctrine model classes |
| integer | $modelLoading | Style of model loading to use for loading the models in order to generate migrations |
Definition at line 1054 of file Core.php.
|
staticinherited |
Method for importing existing schema to Doctrine_Record classes
| string | $directory | Directory to write your models to |
| array | $connections | Array of connection names to generate models for |
| array | $options | Array of options |
| Exception |
Definition at line 836 of file Core.php.
|
staticinherited |
Generate a yaml schema file from an existing directory of models
| string | $yamlPath | Path to your yaml schema files |
| string | $directory | Directory to generate your models in |
| array | $options | Array of options to pass to the schema importer |
Definition at line 878 of file Core.php.
|
staticinherited |
Generate a array of sql for the passed array of models
| array | $array |
|
staticinherited |
Generate a sql string to create the tables from all loaded models or the models found in the passed directory.
| string | $directory |
Definition at line 926 of file Core.php.
|
staticinherited |
Generates models from database to temporary location then uses those models to generate a yaml schema file. This should probably be fixed. We should write something to generate a yaml schema file directly from the database.
| string | $yamlPath | Path to write oyur yaml schema file to |
| array | $connections | Array of connection names to generate yaml for |
| array | $options | Array of options |
Definition at line 850 of file Core.php.
|
staticinherited |
Generate yaml schema file for the models in the specified directory
| string | $yamlPath | Path to your yaml schema files |
| string | $directory | Directory to generate your models in |
Definition at line 946 of file Core.php.
|
staticinherited |
Get the connection object for a table by the actual table name FIXME: I think this method is flawed because a individual connections could have the same table name
| string | $tableName |
Definition at line 812 of file Core.php.
|
staticinherited |
|
staticinherited |
|
staticinherited |
Get all the loaded models, you can provide an array of classes or it will use get_declared_classes()
Will filter through an array of classes and return the Doctrine_Records out of them. If you do not specify $classes it will return all of the currently loaded Doctrine_Records
| classes | Array of classes to filter through, otherwise uses get_declared_classes() |
Definition at line 713 of file Core.php.
|
staticinherited |
|
staticinherited |
|
staticinherited |
Get the Doctrine_Table object for the passed model
| string | $componentName |
Definition at line 1083 of file Core.php.
|
staticinherited |
Initialize all models so everything is present and loaded in to memory This will also inheritently initialize any model behaviors and add the models generated by Doctrine generators and add them to the $models array
| string | $models |
Definition at line 732 of file Core.php.
|
staticinherited |
Checks if what is passed is a valid Doctrine_Record Will load class in to memory in order to inflect it and find out information about the class
| mixed | $class | Can be a string named after the class, an instance of the class, or an instance of the class reflected |
Definition at line 782 of file Core.php.
|
staticinherited |
Load data from a yaml fixtures file. The output of dumpData can be fed to loadData
| string | $yamlPath | Path to your yaml data fixtures |
| string | $append | Whether or not to append the data |
|
staticinherited |
|
staticinherited |
Recursively load all models from a directory or array of directories
| string | $directory | Path to directory of models or array of directory paths |
| integer | $modelLoading | Pass value of Doctrine_Core::ATTR_MODEL_LOADING to force a certain style of model loading Allowed Doctrine_Core::MODEL_LOADING_AGGRESSIVE(default) or Doctrine_Core::MODEL_LOADING_CONSERVATIVE |
| string | $classPrefix | The class prefix of the models to load. This is useful if the class name and file name are not the same |
Definition at line 626 of file Core.php.
|
staticinherited |
Migrate database to specified $to version. Migrates from current to latest if you do not specify.
| string | $migrationsPath | Path to migrations directory which contains your migration classes |
| string | $to | Version you wish to migrate to. |
| new | Doctrine_Migration_Exception |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
MODEL_LOADING_CONSERVATIVE
Constant for conservative model loading Will not require_once() found model files inititally instead it will build an array and reference it in autoload() when a class is needed it will require_once() it
|
inherited |
MODEL_LOADING_PEAR
Constant for pear model loading Will simply store the path passed to Doctrine_Core::loadModels() and Doctrine_Core::autoload() will check there
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |