Changeset 2813 for trunk/lib/Doctrine.php
- Timestamp:
- 10/11/07 05:23:00 (15 months ago)
- Files:
-
- 1 modified
-
trunk/lib/Doctrine.php (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine.php
r2809 r2813 421 421 * @param string $directory Path to directory of models or array of directory paths 422 422 * @return void 423 * @author Jonathan H. Wage424 423 */ 425 424 public static function loadModels($directory) … … 450 449 * Get all the loaded models, you can provide an array of classes or it will use get_declared_classes() 451 450 * 452 * @pa ckage default453 * @ author Jonathan H. Wage451 * @param $classes Array of classes to filter through, otherwise uses get_declared_classes() 452 * @return void 454 453 */ 455 454 public static function getLoadedModels($classes = null) … … 490 489 * @param string $tableName 491 490 * @return void 492 * @author Jonathan H. Wage493 491 */ 494 492 public static function getConnectionByTableName($tableName) … … 509 507 * method for importing existing schema to Doctrine_Record classes 510 508 * 511 * @param string $directory 512 * @param array $ info509 * @param string $directory Directory to write your models to 510 * @param array $databases Array of databases to generate models for 513 511 * @return boolean 514 512 */ … … 522 520 * Generate your model definitions from an existing database 523 521 * 524 * @param string $directory 525 * @param string $ array522 * @param string $directory Directory to write your models to 523 * @param string $databases Array of databases to generate models for 526 524 * @return void 527 525 */ … … 536 534 * This should probably be fixed. We should write something to generate a yaml schema file directly from the database. 537 535 * 538 * @param string $yamlPath 536 * @param string $yamlPath Path to write oyur yaml schema file to 539 537 * @return void 540 538 */ … … 554 552 * Generate a yaml schema file from an existing directory of models 555 553 * 556 * @param string $yamlPath 557 * @param string $directory 554 * @param string $yamlPath Path to your yaml schema files 555 * @param string $directory Directory to generate your models in 558 556 * @return void 559 557 */ … … 568 566 * method for exporting Doctrine_Record classes to a schema 569 567 * 570 * @param string $directory 568 * @param string $directory Directory containing your models 569 * @return void 571 570 */ 572 571 public static function exportSchema($directory = null) … … 579 578 * Creates database tables for the models in the specified directory 580 579 * 581 * @param string $directory 580 * @param string $directory Directory containing your models 582 581 * @return void 583 582 */ … … 591 590 * Generate yaml schema file for the models in the specified directory 592 591 * 593 * @param string $yamlPath 594 * @param string $directory 592 * @param string $yamlPath Path to your yaml schema files 593 * @param string $directory Directory to generate your models in 595 594 * @return void 596 595 */ … … 606 605 * Creates databases for connections 607 606 * 608 * @param string $specifiedConnections 607 * @param string $specifiedConnections Array of connections you wish to create the database for 609 608 * @return void 610 609 */ … … 630 629 * Drops databases for connections 631 630 * 632 * @param string $specifiedConnections 631 * @param string $specifiedConnections Array of connections you wish to drop the database for 633 632 * @return void 634 633 */ … … 654 653 * Dump data to a yaml fixtures file 655 654 * 656 * @param string $yamlPath 657 * @param string $individualFiles 655 * @param string $yamlPath Path to write the yaml data fixtures to 656 * @param string $individualFiles Whether or not to dump data to individual fixtures files 658 657 * @return void 659 658 */ … … 670 669 * The output of dumpData can be fed to loadData 671 670 * 672 * @param string $yamlPath 673 * @param string $append 671 * @param string $yamlPath Path to your yaml data fixtures 672 * @param string $append Whether or not to append the data 674 673 * @return void 675 674 */ … … 699 698 * Populdate your models with dummy data 700 699 * 701 * @param string $append 702 * @param string $num 700 * @param string $append Whether or not to append the data 701 * @param string $num Number of records to populate 703 702 * @return void 704 703 */ … … 723 722 return $data->importDummyData($num); 724 723 } 725 724 /** 725 * migrate 726 * 727 * Migrate database to specified $to version. Migrates from current to latest if you do not specify. 728 * 729 * @param string $directory Directory which contains your migration classes 730 * @param string $to Version you wish to migrate to. 731 * @return void 732 */ 726 733 public static function migrate($directory, $to = null) 727 734 { … … 730 737 return $migration->migrate($to); 731 738 } 732 739 /** 740 * generateMigrationClass 741 * 742 * Generate new migration class skeleton 743 * 744 * @param string $className Name of the Migration class to generate 745 * @param string $directory Directory which contains your migration classes 746 * @package default 747 */ 733 748 public static function generateMigrationClass($className, $directory) 734 749 {