From 3daa10bf41099ba77b7abe993e282603c2d12c0c Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Wed, 3 Oct 2007 19:56:22 +0000 Subject: [PATCH] Removed. --- .../trunk/Doctrine/Doctrine.html | 4686 ------------- .../trunk/Doctrine/Doctrine_Access.html | 1077 --- .../trunk/Doctrine/Doctrine_Adapter.html | 1852 ----- .../Doctrine_Adapter_Db2.html | 1495 ---- .../Doctrine_Adapter_Mock.html | 1506 ---- .../Doctrine_Adapter_Mysqli.html | 1135 --- .../Doctrine_Adapter_Oracle.html | 1519 ---- .../Doctrine_Adapter_Statement_Mock.html | 1655 ----- .../_Doctrine---Adapter---Db2.php.html | 327 - .../_Doctrine---Adapter---Mock.php.html | 327 - .../_Doctrine---Adapter---Mysqli.php.html | 327 - .../_Doctrine---Adapter---Oracle.php.html | 327 - ...rine---Adapter---Statement---Mock.php.html | 327 - .../Doctrine_Adapter_Db2_Exception.html | 525 -- .../Doctrine/Doctrine_Adapter_Exception.html | 453 -- .../Doctrine/Doctrine_Adapter_Interface.html | 788 --- .../Doctrine/Doctrine_Adapter_Statement.html | 772 --- .../Doctrine_Adapter_Statement_Interface.html | 1388 ---- .../trunk/Doctrine/Doctrine_AuditLog.html | 884 --- .../Doctrine/Doctrine_AuditLog_Listener.html | 761 -- .../Doctrine_Cache/Doctrine_Cache.html | 1673 ----- .../Doctrine_Cache/Doctrine_Cache_Apc.html | 749 -- .../Doctrine_Cache/Doctrine_Cache_Array.html | 790 --- .../Doctrine_Cache/Doctrine_Cache_Db.html | 925 --- .../Doctrine_Cache/Doctrine_Cache_Driver.html | 681 -- .../Doctrine_Cache_Exception.html | 423 -- .../Doctrine_Cache_Interface.html | 607 -- .../Doctrine_Cache_Memcache.html | 801 --- .../_Doctrine---Cache---Apc.php.html | 327 - .../_Doctrine---Cache---Array.php.html | 327 - .../_Doctrine---Cache---Db.php.html | 327 - .../_Doctrine---Cache---Driver.php.html | 327 - .../_Doctrine---Cache---Exception.php.html | 327 - .../_Doctrine---Cache---Interface.php.html | 327 - .../_Doctrine---Cache---Memcache.php.html | 327 - .../Doctrine_Cache/_Doctrine---Cache.php.html | 327 - .../trunk/Doctrine/Doctrine_Collection.html | 2449 ------- .../Doctrine_Collection_Exception.html | 423 -- .../Doctrine_Collection_Iterator.html | 839 --- ...ctrine_Collection_Iterator_Expandable.html | 528 -- .../Doctrine_Collection_Iterator_Normal.html | 531 -- .../Doctrine_Collection_Iterator_Offset.html | 528 -- .../Doctrine/Doctrine_Collection_Offset.html | 967 --- .../trunk/Doctrine/Doctrine_Column.html | 1066 --- .../trunk/Doctrine/Doctrine_Compiler.html | 429 -- .../Doctrine/Doctrine_Compiler_Exception.html | 423 -- .../trunk/Doctrine/Doctrine_Configurable.html | 1391 ---- .../trunk/Doctrine/Doctrine_Connection.html | 4014 ----------- .../Doctrine/Doctrine_Connection_Common.html | 1100 --- .../Doctrine/Doctrine_Connection_Db2.html | 1039 --- .../Doctrine_Connection_Exception.html | 748 -- .../Doctrine_Connection_Firebird.html | 1220 ---- ...octrine_Connection_Firebird_Exception.html | 728 -- .../Doctrine_Connection_Informix.html | 1093 --- ...octrine_Connection_Informix_Exception.html | 565 -- .../Doctrine/Doctrine_Connection_Mock.html | 1100 --- .../Doctrine/Doctrine_Connection_Module.html | 676 -- .../Doctrine/Doctrine_Connection_Mssql.html | 1354 ---- .../Doctrine_Connection_Mssql_Exception.html | 700 -- .../Doctrine/Doctrine_Connection_Mysql.html | 1231 ---- .../Doctrine_Connection_Mysql_Exception.html | 700 -- .../Doctrine/Doctrine_Connection_Oracle.html | 1209 ---- .../Doctrine_Connection_Oracle_Exception.html | 700 -- .../Doctrine/Doctrine_Connection_Pgsql.html | 1356 ---- .../Doctrine_Connection_Pgsql_Exception.html | 707 -- .../Doctrine_Connection_Profiler.html | 889 --- ...octrine_Connection_Profiler_Exception.html | 423 -- .../Doctrine/Doctrine_Connection_Sqlite.html | 1206 ---- .../Doctrine_Connection_Sqlite_Exception.html | 706 -- .../Doctrine_Connection_Statement.html | 1777 ----- .../Doctrine_Connection_UnitOfWork.html | 992 --- .../trunk/Doctrine/Doctrine_DataDict.html | 652 -- .../Doctrine_DataDict_Firebird.html | 696 -- .../Doctrine_DataDict_Mssql.html | 589 -- .../Doctrine_DataDict_Mysql.html | 808 --- .../Doctrine_DataDict_Oracle.html | 592 -- .../Doctrine_DataDict_Pgsql.html | 761 -- .../Doctrine_DataDict_Sqlite.html | 654 -- .../_Doctrine---DataDict---Firebird.php.html | 327 - .../_Doctrine---DataDict---Mssql.php.html | 327 - .../_Doctrine---DataDict---Mysql.php.html | 327 - .../_Doctrine---DataDict---Oracle.php.html | 327 - .../_Doctrine---DataDict---Pgsql.php.html | 327 - .../_Doctrine---DataDict---Sqlite.php.html | 327 - .../Doctrine/Doctrine_DataDict_Exception.html | 423 -- .../Doctrine/Doctrine_DataDict_Informix.html | 533 -- .../trunk/Doctrine/Doctrine_DataType.html | 481 -- .../trunk/Doctrine/Doctrine_Db.html | 407 -- .../trunk/Doctrine/Doctrine_Event.html | 1700 ----- .../Doctrine/Doctrine_EventListener.html | 2153 ------ .../Doctrine_EventListener_Chain.html | 2393 ------- .../Doctrine_EventListener_Exception.html | 423 -- .../Doctrine_EventListener_Interface.html | 1448 ---- .../trunk/Doctrine/Doctrine_Exception.html | 823 --- .../trunk/Doctrine/Doctrine_Export.html | 3303 --------- .../Doctrine/Doctrine_Export_Exception.html | 423 -- .../Doctrine/Doctrine_Export_Firebird.html | 1535 ----- .../Doctrine/Doctrine_Export_Frontbase.html | 1174 ---- .../trunk/Doctrine/Doctrine_Export_Mssql.html | 1088 --- .../trunk/Doctrine/Doctrine_Export_Mysql.html | 1508 ---- .../Doctrine/Doctrine_Export_Oracle.html | 1489 ---- .../trunk/Doctrine/Doctrine_Export_Pgsql.html | 1262 ---- .../Doctrine/Doctrine_Export_Reporter.html | 578 -- .../Doctrine/Doctrine_Export_Schema.html | 651 -- .../Doctrine/Doctrine_Export_Schema_Xml.html | 551 -- .../Doctrine/Doctrine_Export_Schema_Yml.html | 551 -- .../Doctrine/Doctrine_Export_Sqlite.html | 1182 ---- .../trunk/Doctrine/Doctrine_Expression.html | 812 --- .../Doctrine/Doctrine_Expression_Driver.html | 2970 -------- .../Doctrine_Expression_Exception.html | 423 -- .../Doctrine_Expression_Firebird.html | 797 --- .../Doctrine_Expression_Informix.html | 463 -- .../Doctrine/Doctrine_Expression_Mock.html | 692 -- .../Doctrine/Doctrine_Expression_Mssql.html | 970 --- .../Doctrine/Doctrine_Expression_Mysql.html | 917 --- .../Doctrine/Doctrine_Expression_Oracle.html | 995 --- .../Doctrine/Doctrine_Expression_Pgsql.html | 1208 ---- .../Doctrine/Doctrine_Expression_Sqlite.html | 1413 ---- .../trunk/Doctrine/Doctrine_File.html | 1360 ---- .../trunk/Doctrine/Doctrine_File_Index.html | 1298 ---- .../trunk/Doctrine/Doctrine_Formatter.html | 901 --- .../trunk/Doctrine/Doctrine_Hook.html | 971 --- .../trunk/Doctrine/Doctrine_Hook_Equal.html | 532 -- .../trunk/Doctrine/Doctrine_Hook_Integer.html | 557 -- .../trunk/Doctrine/Doctrine_Hook_Parser.html | 667 -- .../Doctrine_Hook_Parser_Complex.html | 721 -- .../Doctrine/Doctrine_Hook_WordLike.html | 557 -- .../trunk/Doctrine/Doctrine_Hydrate.html | 3684 ---------- .../Doctrine/Doctrine_Hydrate_Array.html | 766 --- .../Doctrine/Doctrine_Hydrate_Exception.html | 423 -- .../Doctrine/Doctrine_Hydrate_Record.html | 959 --- .../trunk/Doctrine/Doctrine_Import.html | 1484 ---- .../Doctrine/Doctrine_Import_Builder.html | 923 --- .../Doctrine_Import_Builder_BaseClass.html | 475 -- .../Doctrine_Import_Builder_Exception.html | 525 -- .../Doctrine/Doctrine_Import_Exception.html | 453 -- .../Doctrine/Doctrine_Import_Firebird.html | 947 --- .../Doctrine/Doctrine_Import_Informix.html | 580 -- .../trunk/Doctrine/Doctrine_Import_Mssql.html | 1014 --- .../trunk/Doctrine/Doctrine_Import_Mysql.html | 995 --- .../Doctrine/Doctrine_Import_Oracle.html | 1203 ---- .../trunk/Doctrine/Doctrine_Import_Pgsql.html | 1002 --- .../Doctrine/Doctrine_Import_Reader.html | 461 -- .../Doctrine/Doctrine_Import_Reader_Db.html | 575 -- .../Doctrine_Import_Reader_Exception.html | 337 - .../Doctrine_Import_Reader_Xml_Propel.html | 575 -- .../Doctrine/Doctrine_Import_Schema.html | 603 -- .../Doctrine/Doctrine_Import_Schema_Xml.html | 539 -- .../Doctrine/Doctrine_Import_Schema_Yml.html | 539 -- .../Doctrine/Doctrine_Import_Sqlite.html | 1204 ---- .../Doctrine/Doctrine_IntegrityMapper.html | 594 -- .../trunk/Doctrine/Doctrine_Lib.html | 937 --- .../Doctrine/Doctrine_Locking_Exception.html | 423 -- .../Doctrine_Locking_Manager_Pessimistic.html | 854 --- .../trunk/Doctrine/Doctrine_Manager.html | 2201 ------ .../Doctrine/Doctrine_Manager_Exception.html | 423 -- .../trunk/Doctrine/Doctrine_Node.html | 1058 --- .../Doctrine/Doctrine_Node_AdjacencyList.html | 499 -- ...Node_AdjacencyList_LevelOrderIterator.html | 348 - ..._Node_AdjacencyList_PostOrderIterator.html | 348 - ...e_Node_AdjacencyList_PreOrderIterator.html | 348 - .../Doctrine/Doctrine_Node_Exception.html | 423 -- .../Doctrine/Doctrine_Node_Interface.html | 1895 ----- .../Doctrine_Node_MaterializedPath.html | 499 -- ...e_MaterializedPath_LevelOrderIterator.html | 739 -- ...de_MaterializedPath_PostOrderIterator.html | 739 -- ...ode_MaterializedPath_PreOrderIterator.html | 739 -- .../Doctrine/Doctrine_Node_NestedSet.html | 3010 -------- ...ine_Node_NestedSet_LevelOrderIterator.html | 336 - ...rine_Node_NestedSet_PostOrderIterator.html | 336 - ...trine_Node_NestedSet_PreOrderIterator.html | 1011 --- .../trunk/Doctrine/Doctrine_Null.html | 444 -- .../trunk/Doctrine/Doctrine_Object.html | 600 -- .../trunk/Doctrine/Doctrine_Overloadable.html | 431 -- .../trunk/Doctrine/Doctrine_Plugin.html | 595 -- .../trunk/Doctrine/Doctrine_Query.html | 3399 --------- .../Doctrine/Doctrine_Query_Abstract.html | 2200 ------ .../trunk/Doctrine/Doctrine_Query_Check.html | 816 --- .../Doctrine/Doctrine_Query_Condition.html | 601 -- .../Doctrine/Doctrine_Query_Exception.html | 423 -- .../trunk/Doctrine/Doctrine_Query_Filter.html | 489 -- .../Doctrine/Doctrine_Query_Filter_Chain.html | 700 -- .../Doctrine_Query_Filter_Interface.html | 472 -- .../trunk/Doctrine/Doctrine_Query_From.html | 500 -- .../Doctrine/Doctrine_Query_Groupby.html | 507 -- .../trunk/Doctrine/Doctrine_Query_Having.html | 570 -- .../Doctrine_Query_JoinCondition.html | 517 -- .../trunk/Doctrine/Doctrine_Query_Limit.html | 498 -- .../trunk/Doctrine/Doctrine_Query_Offset.html | 498 -- .../Doctrine/Doctrine_Query_Orderby.html | 507 -- .../trunk/Doctrine/Doctrine_Query_Parser.html | 336 - .../trunk/Doctrine/Doctrine_Query_Part.html | 606 -- .../trunk/Doctrine/Doctrine_Query_Select.html | 498 -- .../trunk/Doctrine/Doctrine_Query_Set.html | 498 -- .../trunk/Doctrine/Doctrine_Query_Where.html | 638 -- .../trunk/Doctrine/Doctrine_RawSql.html | 1374 ---- .../Doctrine/Doctrine_RawSql_Exception.html | 423 -- .../trunk/Doctrine/Doctrine_Record.html | 4949 -------------- .../Doctrine/Doctrine_Record_Abstract.html | 1692 ----- .../Doctrine/Doctrine_Record_Exception.html | 453 -- .../Doctrine/Doctrine_Record_Filter.html | 761 -- .../Doctrine/Doctrine_Record_Iterator.html | 805 --- .../Doctrine/Doctrine_Record_Listener.html | 1094 --- .../Doctrine_Record_Listener_Chain.html | 1385 ---- .../Doctrine_Record_Listener_Interface.html | 958 --- .../Doctrine_Record_State_Exception.html | 525 -- .../trunk/Doctrine/Doctrine_Relation.html | 1588 ----- .../Doctrine_Relation_Association.html | 860 --- .../Doctrine_Relation_Association_Self.html | 755 -- .../Doctrine/Doctrine_Relation_Exception.html | 453 -- .../Doctrine_Relation_ForeignKey.html | 713 -- .../Doctrine/Doctrine_Relation_LocalKey.html | 713 -- .../Doctrine/Doctrine_Relation_Nest.html | 755 -- .../Doctrine/Doctrine_Relation_Parser.html | 1130 --- .../Doctrine_Relation_Parser_Exception.html | 525 -- .../trunk/Doctrine/Doctrine_Schema.html | 801 --- .../Doctrine/Doctrine_Schema_Column.html | 856 --- .../Doctrine/Doctrine_Schema_Database.html | 857 --- .../Doctrine/Doctrine_Schema_Exception.html | 499 -- .../Doctrine/Doctrine_Schema_Object.html | 1001 --- .../Doctrine/Doctrine_Schema_Relation.html | 991 --- .../trunk/Doctrine/Doctrine_Schema_Table.html | 931 --- .../trunk/Doctrine/Doctrine_Search.html | 741 -- .../Doctrine/Doctrine_Search_Analyzer.html | 429 -- .../Doctrine_Search_Analyzer_Exception.html | 525 -- .../Doctrine_Search_Analyzer_Interface.html | 419 -- .../Doctrine_Search_Analyzer_Standard.html | 497 -- .../Doctrine/Doctrine_Search_Exception.html | 459 -- .../Doctrine/Doctrine_Search_Indexer.html | 419 -- .../Doctrine/Doctrine_Search_Indexer_Dir.html | 419 -- .../Doctrine_Search_Indexer_Exception.html | 525 -- .../Doctrine/Doctrine_Search_Listener.html | 761 -- .../Doctrine/Doctrine_Search_Parser.html | 419 -- .../trunk/Doctrine/Doctrine_Search_Query.html | 1019 --- .../Doctrine/Doctrine_Search_Record.html | 757 -- .../Doctrine/Doctrine_Search_Scorer.html | 603 -- .../Doctrine/Doctrine_Search_Template.html | 816 --- .../trunk/Doctrine/Doctrine_Sequence.html | 779 --- .../trunk/Doctrine/Doctrine_Sequence_Db2.html | 670 -- .../Doctrine/Doctrine_Sequence_Exception.html | 423 -- .../Doctrine/Doctrine_Sequence_Firebird.html | 671 -- .../Doctrine/Doctrine_Sequence_Informix.html | 464 -- .../Doctrine/Doctrine_Sequence_Mssql.html | 731 -- .../Doctrine/Doctrine_Sequence_Mysql.html | 677 -- .../Doctrine/Doctrine_Sequence_Oracle.html | 659 -- .../Doctrine/Doctrine_Sequence_Pgsql.html | 680 -- .../Doctrine/Doctrine_Sequence_Sqlite.html | 677 -- .../trunk/Doctrine/Doctrine_Table.html | 4168 ----------- .../Doctrine/Doctrine_Table_Exception.html | 496 -- .../Doctrine/Doctrine_Table_Repository.html | 944 --- .../Doctrine_Table_Repository_Exception.html | 423 -- .../trunk/Doctrine/Doctrine_Template.html | 903 --- .../Doctrine/Doctrine_Template_NestedSet.html | 816 --- .../Doctrine_Template_Searchable.html | 816 --- .../Doctrine/Doctrine_Template_Taggable.html | 651 -- .../Doctrine_Template_Versionable.html | 853 --- .../trunk/Doctrine/Doctrine_Tokenizer.html | 793 --- .../trunk/Doctrine/Doctrine_Transaction.html | 1794 ----- .../Doctrine_Transaction_Exception.html | 423 -- .../Doctrine_Transaction_Firebird.html | 878 --- .../Doctrine_Transaction_Informix.html | 611 -- .../Doctrine/Doctrine_Transaction_Mock.html | 613 -- .../Doctrine/Doctrine_Transaction_Mssql.html | 710 -- .../Doctrine/Doctrine_Transaction_Mysql.html | 919 --- .../Doctrine/Doctrine_Transaction_Oracle.html | 871 --- .../Doctrine/Doctrine_Transaction_Pgsql.html | 872 --- .../Doctrine/Doctrine_Transaction_Sqlite.html | 700 -- .../trunk/Doctrine/Doctrine_Tree.html | 929 --- .../Doctrine/Doctrine_Tree_AdjacencyList.html | 481 -- .../Doctrine/Doctrine_Tree_Exception.html | 423 -- .../Doctrine/Doctrine_Tree_Interface.html | 590 -- .../Doctrine_Tree_MaterializedPath.html | 481 -- .../Doctrine/Doctrine_Tree_NestedSet.html | 1395 ---- .../trunk/Doctrine/Doctrine_Util.html | 439 -- .../trunk/Doctrine/Doctrine_Validator.html | 875 --- .../Doctrine/Doctrine_Validator_Country.html | 547 -- .../Doctrine_Validator_Creditcard.html | 446 -- .../Doctrine/Doctrine_Validator_Date.html | 440 -- .../Doctrine/Doctrine_Validator_Email.html | 446 -- .../Doctrine/Doctrine_Validator_Enum.html | 440 -- .../Doctrine_Validator_ErrorStack.html | 1026 --- .../Doctrine_Validator_Exception.html | 755 -- .../Doctrine_Validator_HtmlColor.html | 440 -- .../Doctrine_Validator_Interface.html | 394 -- .../trunk/Doctrine/Doctrine_Validator_Ip.html | 440 -- .../Doctrine_Validator_Minlength.html | 440 -- .../Doctrine/Doctrine_Validator_Nospace.html | 440 -- .../Doctrine/Doctrine_Validator_Notblank.html | 440 -- .../Doctrine/Doctrine_Validator_Notnull.html | 433 -- .../Doctrine/Doctrine_Validator_Range.html | 440 -- .../Doctrine/Doctrine_Validator_Regexp.html | 440 -- .../Doctrine/Doctrine_Validator_Unique.html | 440 -- .../Doctrine/Doctrine_Validator_Unsigned.html | 440 -- .../Doctrine/Doctrine_Validator_Usstate.html | 545 -- .../trunk/Doctrine/Doctrine_View.html | 948 --- .../Doctrine/Doctrine_View_Exception.html | 423 -- .../Doctrine/_Doctrine---Access.php.html | 327 - ...trine---Adapter---Db2---Exception.php.html | 327 - .../_Doctrine---Adapter---Exception.php.html | 327 - .../_Doctrine---Adapter---Interface.php.html | 327 - ...--Adapter---Statement---Interface.php.html | 327 - .../_Doctrine---Adapter---Statement.php.html | 327 - .../Doctrine/_Doctrine---Adapter.php.html | 327 - .../_Doctrine---AuditLog---Listener.php.html | 327 - .../Doctrine/_Doctrine---AuditLog.php.html | 327 - ...Doctrine---Collection---Exception.php.html | 327 - ...ollection---Iterator---Expandable.php.html | 327 - ...---Collection---Iterator---Normal.php.html | 327 - ...---Collection---Iterator---Offset.php.html | 327 - ..._Doctrine---Collection---Iterator.php.html | 327 - .../_Doctrine---Collection---Offset.php.html | 327 - .../Doctrine/_Doctrine---Collection.php.html | 327 - .../Doctrine/_Doctrine---Column.php.html | 327 - .../_Doctrine---Compiler---Exception.php.html | 327 - .../Doctrine/_Doctrine---Compiler.php.html | 327 - .../_Doctrine---Configurable.php.html | 327 - .../_Doctrine---Connection---Common.php.html | 327 - .../_Doctrine---Connection---Db2.php.html | 327 - ...Doctrine---Connection---Exception.php.html | 327 - ...Connection---Firebird---Exception.php.html | 327 - ..._Doctrine---Connection---Firebird.php.html | 327 - ...Connection---Informix---Exception.php.html | 327 - ..._Doctrine---Connection---Informix.php.html | 327 - .../_Doctrine---Connection---Mock.php.html | 327 - .../_Doctrine---Connection---Module.php.html | 327 - ...---Connection---Mssql---Exception.php.html | 327 - .../_Doctrine---Connection---Mssql.php.html | 327 - ...---Connection---Mysql---Exception.php.html | 327 - .../_Doctrine---Connection---Mysql.php.html | 327 - ...--Connection---Oracle---Exception.php.html | 327 - .../_Doctrine---Connection---Oracle.php.html | 327 - ...---Connection---Pgsql---Exception.php.html | 327 - .../_Doctrine---Connection---Pgsql.php.html | 327 - ...Connection---Profiler---Exception.php.html | 327 - ..._Doctrine---Connection---Profiler.php.html | 327 - ...--Connection---Sqlite---Exception.php.html | 327 - .../_Doctrine---Connection---Sqlite.php.html | 327 - ...Doctrine---Connection---Statement.php.html | 327 - ...octrine---Connection---UnitOfWork.php.html | 327 - .../Doctrine/_Doctrine---Connection.php.html | 327 - .../_Doctrine---DataDict---Exception.php.html | 327 - .../_Doctrine---DataDict---Informix.php.html | 327 - .../Doctrine/_Doctrine---DataDict.php.html | 327 - .../Doctrine/_Doctrine---DataType.php.html | 327 - .../trunk/Doctrine/_Doctrine---Db.php.html | 327 - .../trunk/Doctrine/_Doctrine---Event.php.html | 327 - ..._Doctrine---EventListener---Chain.php.html | 327 - ...trine---EventListener---Exception.php.html | 327 - ...trine---EventListener---Interface.php.html | 327 - .../_Doctrine---EventListener.php.html | 327 - .../Doctrine/_Doctrine---Exception.php.html | 327 - .../_Doctrine---Export---Exception.php.html | 327 - .../_Doctrine---Export---Firebird.php.html | 327 - .../_Doctrine---Export---Frontbase.php.html | 327 - .../_Doctrine---Export---Mssql.php.html | 327 - .../_Doctrine---Export---Mysql.php.html | 327 - .../_Doctrine---Export---Oracle.php.html | 327 - .../_Doctrine---Export---Pgsql.php.html | 327 - .../_Doctrine---Export---Reporter.php.html | 327 - ..._Doctrine---Export---Schema---Xml.php.html | 327 - ..._Doctrine---Export---Schema---Yml.php.html | 327 - .../_Doctrine---Export---Schema.php.html | 327 - .../_Doctrine---Export---Sqlite.php.html | 327 - .../Doctrine/_Doctrine---Export.php.html | 327 - .../_Doctrine---Expression---Driver.php.html | 327 - ...Doctrine---Expression---Exception.php.html | 327 - ..._Doctrine---Expression---Firebird.php.html | 327 - ..._Doctrine---Expression---Informix.php.html | 327 - .../_Doctrine---Expression---Mock.php.html | 327 - .../_Doctrine---Expression---Mssql.php.html | 327 - .../_Doctrine---Expression---Mysql.php.html | 327 - .../_Doctrine---Expression---Oracle.php.html | 327 - .../_Doctrine---Expression---Pgsql.php.html | 327 - .../_Doctrine---Expression---Sqlite.php.html | 327 - .../Doctrine/_Doctrine---Expression.php.html | 327 - .../_Doctrine---File---Index.php.html | 327 - .../trunk/Doctrine/_Doctrine---File.php.html | 327 - .../Doctrine/_Doctrine---Formatter.php.html | 327 - .../_Doctrine---Hook---Equal.php.html | 327 - .../_Doctrine---Hook---Integer.php.html | 327 - ...octrine---Hook---Parser---Complex.php.html | 327 - .../_Doctrine---Hook---Parser.php.html | 327 - .../_Doctrine---Hook---WordLike.php.html | 327 - .../trunk/Doctrine/_Doctrine---Hook.php.html | 327 - .../_Doctrine---Hydrate---Array.php.html | 327 - .../_Doctrine---Hydrate---Exception.php.html | 327 - .../_Doctrine---Hydrate---Record.php.html | 327 - .../Doctrine/_Doctrine---Hydrate.php.html | 327 - ...ne---Import---Builder---BaseClass.php.html | 330 - ...ne---Import---Builder---Exception.php.html | 330 - .../_Doctrine---Import---Builder.php.html | 327 - .../_Doctrine---Import---Exception.php.html | 327 - .../_Doctrine---Import---Firebird.php.html | 327 - .../_Doctrine---Import---Informix.php.html | 327 - .../_Doctrine---Import---Mssql.php.html | 327 - .../_Doctrine---Import---Mysql.php.html | 327 - .../_Doctrine---Import---Oracle.php.html | 327 - .../_Doctrine---Import---Pgsql.php.html | 327 - .../_Doctrine---Import---Reader---Db.php.html | 330 - ...ine---Import---Reader---Exception.php.html | 327 - ...ctrine---Import---Reader---Propel.php.html | 330 - .../_Doctrine---Import---Reader.php.html | 327 - ..._Doctrine---Import---Schema---Xml.php.html | 327 - ..._Doctrine---Import---Schema---Yml.php.html | 327 - .../_Doctrine---Import---Schema.php.html | 327 - .../_Doctrine---Import---Sqlite.php.html | 327 - .../Doctrine/_Doctrine---Import.php.html | 327 - .../_Doctrine---IntegrityMapper.php.html | 327 - .../trunk/Doctrine/_Doctrine---Lib.php.html | 327 - .../_Doctrine---Locking---Exception.php.html | 327 - ...--Locking---Manager---Pessimistic.php.html | 327 - .../_Doctrine---Manager---Exception.php.html | 327 - .../Doctrine/_Doctrine---Manager.php.html | 327 - ...djacencyList---LevelOrderIterator.php.html | 327 - ...AdjacencyList---PostOrderIterator.php.html | 327 - ...-AdjacencyList---PreOrderIterator.php.html | 327 - .../_Doctrine---Node---AdjacencyList.php.html | 327 - .../_Doctrine---Node---Exception.php.html | 327 - .../_Doctrine---Node---Interface.php.html | 327 - ...rializedPath---LevelOrderIterator.php.html | 327 - ...erializedPath---PostOrderIterator.php.html | 327 - ...terializedPath---PreOrderIterator.php.html | 327 - ...octrine---Node---MaterializedPath.php.html | 327 - ...---NestedSet---LevelOrderIterator.php.html | 327 - ...e---NestedSet---PostOrderIterator.php.html | 327 - ...de---NestedSet---PreOrderIterator.php.html | 327 - .../_Doctrine---Node---NestedSet.php.html | 327 - .../trunk/Doctrine/_Doctrine---Node.php.html | 327 - .../trunk/Doctrine/_Doctrine---Null.php.html | 327 - .../Doctrine/_Doctrine---Object.php.html | 327 - .../_Doctrine---Overloadable.php.html | 327 - .../Doctrine/_Doctrine---Plugin.php.html | 327 - .../_Doctrine---Query---Abstract.php.html | 327 - .../_Doctrine---Query---Check.php.html | 327 - .../_Doctrine---Query---Condition.php.html | 327 - .../_Doctrine---Query---Exception.php.html | 327 - ...Doctrine---Query---Filter---Chain.php.html | 327 - ...rine---Query---Filter---Interface.php.html | 327 - .../_Doctrine---Query---Filter.php.html | 327 - .../_Doctrine---Query---From.php.html | 327 - .../_Doctrine---Query---Groupby.php.html | 327 - .../_Doctrine---Query---Having.php.html | 327 - ..._Doctrine---Query---JoinCondition.php.html | 327 - .../_Doctrine---Query---Limit.php.html | 327 - .../_Doctrine---Query---Offset.php.html | 327 - .../_Doctrine---Query---Orderby.php.html | 327 - .../_Doctrine---Query---Parser.php.html | 327 - .../_Doctrine---Query---Part.php.html | 327 - .../_Doctrine---Query---Select.php.html | 327 - .../Doctrine/_Doctrine---Query---Set.php.html | 327 - .../_Doctrine---Query---Where.php.html | 327 - .../trunk/Doctrine/_Doctrine---Query.php.html | 327 - .../_Doctrine---RawSql---Exception.php.html | 327 - .../Doctrine/_Doctrine---RawSql.php.html | 327 - .../_Doctrine---Record---Abstract.php.html | 327 - .../_Doctrine---Record---Exception.php.html | 327 - .../_Doctrine---Record---Filter.php.html | 327 - .../_Doctrine---Record---Iterator.php.html | 327 - ...trine---Record---Listener---Chain.php.html | 327 - ...e---Record---Listener---Interface.php.html | 327 - .../_Doctrine---Record---Listener.php.html | 327 - ...rine---Record---State---Exception.php.html | 327 - .../Doctrine/_Doctrine---Record.php.html | 327 - ...e---Relation---Association---Self.php.html | 327 - ...Doctrine---Relation---Association.php.html | 327 - .../_Doctrine---Relation---Exception.php.html | 327 - ..._Doctrine---Relation---ForeignKey.php.html | 327 - .../_Doctrine---Relation---LocalKey.php.html | 327 - .../_Doctrine---Relation---Nest.php.html | 327 - ...e---Relation---Parser---Exception.php.html | 327 - .../_Doctrine---Relation---Parser.php.html | 327 - .../Doctrine/_Doctrine---Relation.php.html | 327 - .../_Doctrine---Schema---Column.php.html | 330 - .../_Doctrine---Schema---Database.php.html | 330 - .../_Doctrine---Schema---Exception.php.html | 330 - .../_Doctrine---Schema---Object.php.html | 327 - .../_Doctrine---Schema---Relation.php.html | 330 - .../_Doctrine---Schema---Table.php.html | 330 - .../Doctrine/_Doctrine---Schema.php.html | 327 - ...e---Search---Analyzer---Exception.php.html | 327 - ...e---Search---Analyzer---Interface.php.html | 327 - ...ne---Search---Analyzer---Standard.php.html | 327 - .../_Doctrine---Search---Analyzer.php.html | 327 - .../_Doctrine---Search---Exception.php.html | 327 - ...Doctrine---Search---Indexer---Dir.php.html | 327 - ...ne---Search---Indexer---Exception.php.html | 327 - .../_Doctrine---Search---Indexer.php.html | 327 - .../_Doctrine---Search---Listener.php.html | 327 - .../_Doctrine---Search---Parser.php.html | 327 - .../_Doctrine---Search---Query.php.html | 327 - .../_Doctrine---Search---Record.php.html | 327 - .../_Doctrine---Search---Scorer.php.html | 327 - .../_Doctrine---Search---Template.php.html | 327 - .../Doctrine/_Doctrine---Search.php.html | 327 - .../_Doctrine---Sequence---Db2.php.html | 327 - .../_Doctrine---Sequence---Exception.php.html | 327 - .../_Doctrine---Sequence---Firebird.php.html | 327 - .../_Doctrine---Sequence---Informix.php.html | 327 - .../_Doctrine---Sequence---Mssql.php.html | 327 - .../_Doctrine---Sequence---Mysql.php.html | 327 - .../_Doctrine---Sequence---Oracle.php.html | 327 - .../_Doctrine---Sequence---Pgsql.php.html | 327 - .../_Doctrine---Sequence---Sqlite.php.html | 327 - .../Doctrine/_Doctrine---Sequence.php.html | 327 - .../_Doctrine---Table---Exception.php.html | 327 - ...---Table---Repository---Exception.php.html | 327 - .../_Doctrine---Table---Repository.php.html | 327 - .../trunk/Doctrine/_Doctrine---Table.php.html | 327 - .../_Doctrine---Template---NestedSet.php.html | 327 - ..._Doctrine---Template---Searchable.php.html | 327 - .../_Doctrine---Template---Taggable.php.html | 327 - ...Doctrine---Template---Versionable.php.html | 327 - .../Doctrine/_Doctrine---Template.php.html | 327 - .../Doctrine/_Doctrine---Tokenizer.php.html | 327 - ...octrine---Transaction---Exception.php.html | 327 - ...Doctrine---Transaction---Firebird.php.html | 327 - ...Doctrine---Transaction---Informix.php.html | 327 - .../_Doctrine---Transaction---Mock.php.html | 327 - .../_Doctrine---Transaction---Mssql.php.html | 327 - .../_Doctrine---Transaction---Mysql.php.html | 327 - .../_Doctrine---Transaction---Oracle.php.html | 327 - .../_Doctrine---Transaction---Pgsql.php.html | 327 - .../_Doctrine---Transaction---Sqlite.php.html | 327 - .../Doctrine/_Doctrine---Transaction.php.html | 327 - .../_Doctrine---Tree---AdjacencyList.php.html | 327 - .../_Doctrine---Tree---Exception.php.html | 327 - .../_Doctrine---Tree---Interface.php.html | 327 - ...octrine---Tree---MaterializedPath.php.html | 327 - .../_Doctrine---Tree---NestedSet.php.html | 327 - .../trunk/Doctrine/_Doctrine---Tree.php.html | 327 - .../trunk/Doctrine/_Doctrine---Util.php.html | 327 - .../_Doctrine---Validator---Country.php.html | 327 - ...Doctrine---Validator---Creditcard.php.html | 327 - .../_Doctrine---Validator---Date.php.html | 327 - .../_Doctrine---Validator---Email.php.html | 327 - .../_Doctrine---Validator---Enum.php.html | 327 - ...Doctrine---Validator---ErrorStack.php.html | 327 - ..._Doctrine---Validator---Exception.php.html | 327 - ..._Doctrine---Validator---Htmlcolor.php.html | 327 - ...ine---Validator---Interface.class.php.html | 327 - .../_Doctrine---Validator---Ip.php.html | 327 - ..._Doctrine---Validator---Minlength.php.html | 327 - .../_Doctrine---Validator---Nospace.php.html | 327 - .../_Doctrine---Validator---Notblank.php.html | 327 - .../_Doctrine---Validator---Notnull.php.html | 327 - ..._Doctrine---Validator---Protected.php.html | 301 - .../_Doctrine---Validator---Range.php.html | 327 - .../_Doctrine---Validator---Regexp.php.html | 327 - .../_Doctrine---Validator---Unique.php.html | 327 - .../_Doctrine---Validator---Unsigned.php.html | 327 - .../_Doctrine---Validator---Usstate.php.html | 327 - .../Doctrine/_Doctrine---Validator.php.html | 327 - .../_Doctrine---View---Exception.php.html | 327 - .../trunk/Doctrine/_Doctrine---View.php.html | 327 - .../trunk/Doctrine/_Doctrine.php.html | 327 - ...ctrine_Adapter_DoctrineAdapterDb2.php.html | 341 - ...trine_Adapter_DoctrineAdapterMock.php.html | 170 - ...ine_Adapter_DoctrineAdapterMysqli.php.html | 149 - ...ine_Adapter_DoctrineAdapterOracle.php.html | 276 - ...pter_DoctrineAdapterStatementMock.php.html | 342 - ...rine_Doctrine_Cache_DoctrineCache.php.html | 409 -- ...e_Doctrine_Cache_DoctrineCacheApc.php.html | 113 - ...Doctrine_Cache_DoctrineCacheArray.php.html | 117 - ...ne_Doctrine_Cache_DoctrineCacheDb.php.html | 204 - ...octrine_Cache_DoctrineCacheDriver.php.html | 87 - ...rine_Cache_DoctrineCacheException.php.html | 43 - ...rine_Cache_DoctrineCacheInterface.php.html | 82 - ...trine_Cache_DoctrineCacheMemcache.php.html | 140 - ...DataDict_DoctrineDataDictFirebird.php.html | 224 - ...ne_DataDict_DoctrineDataDictMssql.php.html | 197 - ...ne_DataDict_DoctrineDataDictMysql.php.html | 463 -- ...e_DataDict_DoctrineDataDictOracle.php.html | 203 - ...ne_DataDict_DoctrineDataDictPgsql.php.html | 629 -- ...e_DataDict_DoctrineDataDictSqlite.php.html | 307 - .../fsource_Doctrine__Doctrine.php.html | 556 -- .../fsource_Doctrine__DoctrineAccess.php.html | 149 - ...fsource_Doctrine__DoctrineAdapter.php.html | 112 - ...rine__DoctrineAdapterDb2Exception.php.html | 42 - ...octrine__DoctrineAdapterException.php.html | 42 - ...octrine__DoctrineAdapterInterface.php.html | 52 - ...octrine__DoctrineAdapterStatement.php.html | 96 - ...DoctrineAdapterStatementInterface.php.html | 283 - ...source_Doctrine__DoctrineAuditLog.php.html | 171 - ...octrine__DoctrineAuditLogListener.php.html | 85 - ...urce_Doctrine__DoctrineCollection.php.html | 689 -- ...rine__DoctrineCollectionException.php.html | 41 - ...trine__DoctrineCollectionIterator.php.html | 119 - ...trineCollectionIteratorExpandable.php.html | 62 - ..._DoctrineCollectionIteratorNormal.php.html | 50 - ..._DoctrineCollectionIteratorOffset.php.html | 45 - ...octrine__DoctrineCollectionOffset.php.html | 70 - .../fsource_Doctrine__DoctrineColumn.php.html | 156 - ...source_Doctrine__DoctrineCompiler.php.html | 110 - ...ctrine__DoctrineCompilerException.php.html | 41 - ...ce_Doctrine__DoctrineConfigurable.php.html | 371 - ...urce_Doctrine__DoctrineConnection.php.html | 1142 ---- ...octrine__DoctrineConnectionCommon.php.html | 65 - ...e_Doctrine__DoctrineConnectionDb2.php.html | 72 - ...rine__DoctrineConnectionException.php.html | 121 - ...trine__DoctrineConnectionFirebird.php.html | 116 - ...ctrineConnectionFirebirdException.php.html | 143 - ...trine__DoctrineConnectionInformix.php.html | 59 - ...ctrineConnectionInformixException.php.html | 42 - ..._Doctrine__DoctrineConnectionMock.php.html | 58 - ...octrine__DoctrineConnectionModule.php.html | 86 - ...Doctrine__DoctrineConnectionMssql.php.html | 197 - ..._DoctrineConnectionMssqlException.php.html | 82 - ...Doctrine__DoctrineConnectionMysql.php.html | 215 - ..._DoctrineConnectionMysqlException.php.html | 92 - ...octrine__DoctrineConnectionOracle.php.html | 124 - ...DoctrineConnectionOracleException.php.html | 87 - ...Doctrine__DoctrineConnectionPgsql.php.html | 198 - ..._DoctrineConnectionPgsqlException.php.html | 115 - ...trine__DoctrineConnectionProfiler.php.html | 182 - ...ctrineConnectionProfilerException.php.html | 43 - ...octrine__DoctrineConnectionSqlite.php.html | 111 - ...DoctrineConnectionSqliteException.php.html | 85 - ...rine__DoctrineConnectionStatement.php.html | 446 -- ...ine__DoctrineConnectionUnitOfWork.php.html | 549 -- ...source_Doctrine__DoctrineDataDict.php.html | 102 - ...ctrine__DoctrineDataDictException.php.html | 42 - ...octrine__DoctrineDataDictInformix.php.html | 118 - ...source_Doctrine__DoctrineDataType.php.html | 57 - .../fsource_Doctrine__DoctrineDb.php.html | 46 - .../fsource_Doctrine__DoctrineEvent.php.html | 299 - ...e_Doctrine__DoctrineEventListener.php.html | 128 - ...trine__DoctrineEventListenerChain.php.html | 396 -- ...e__DoctrineEventListenerException.php.html | 43 - ...e__DoctrineEventListenerInterface.php.html | 77 - ...ource_Doctrine__DoctrineException.php.html | 98 - .../fsource_Doctrine__DoctrineExport.php.html | 1138 --- ...Doctrine__DoctrineExportException.php.html | 42 - ..._Doctrine__DoctrineExportFirebird.php.html | 548 -- ...Doctrine__DoctrineExportFrontbase.php.html | 318 - ...rce_Doctrine__DoctrineExportMssql.php.html | 261 - ...rce_Doctrine__DoctrineExportMysql.php.html | 643 -- ...ce_Doctrine__DoctrineExportOracle.php.html | 501 -- ...rce_Doctrine__DoctrineExportPgsql.php.html | 356 - ..._Doctrine__DoctrineExportReporter.php.html | 53 - ...ce_Doctrine__DoctrineExportSchema.php.html | 97 - ...Doctrine__DoctrineExportSchemaXml.php.html | 87 - ...Doctrine__DoctrineExportSchemaYml.php.html | 70 - ...ce_Doctrine__DoctrineExportSqlite.php.html | 336 - ...urce_Doctrine__DoctrineExpression.php.html | 110 - ...octrine__DoctrineExpressionDriver.php.html | 719 -- ...rine__DoctrineExpressionException.php.html | 42 - ...trine__DoctrineExpressionFirebird.php.html | 64 - ...trine__DoctrineExpressionInformix.php.html | 42 - ..._Doctrine__DoctrineExpressionMock.php.html | 43 - ...Doctrine__DoctrineExpressionMssql.php.html | 97 - ...Doctrine__DoctrineExpressionMysql.php.html | 118 - ...octrine__DoctrineExpressionOracle.php.html | 112 - ...Doctrine__DoctrineExpressionPgsql.php.html | 213 - ...octrine__DoctrineExpressionSqlite.php.html | 173 - .../fsource_Doctrine__DoctrineFile.php.html | 61 - ...ource_Doctrine__DoctrineFileIndex.php.html | 64 - ...ource_Doctrine__DoctrineFormatter.php.html | 229 - .../fsource_Doctrine__DoctrineHook.php.html | 223 - ...ource_Doctrine__DoctrineHookEqual.php.html | 60 - ...rce_Doctrine__DoctrineHookInteger.php.html | 83 - ...urce_Doctrine__DoctrineHookParser.php.html | 73 - ...ctrine__DoctrineHookParserComplex.php.html | 103 - ...ce_Doctrine__DoctrineHookWordLike.php.html | 74 - ...fsource_Doctrine__DoctrineHydrate.php.html | 1226 ---- ...ce_Doctrine__DoctrineHydrateArray.php.html | 90 - ...octrine__DoctrineHydrateException.php.html | 42 - ...e_Doctrine__DoctrineHydrateRecord.php.html | 126 - .../fsource_Doctrine__DoctrineImport.php.html | 211 - ...e_Doctrine__DoctrineImportBuilder.php.html | 264 - ...e__DoctrineImportBuilderBaseClass.php.html | 50 - ...e__DoctrineImportBuilderException.php.html | 48 - ...Doctrine__DoctrineImportException.php.html | 42 - ..._Doctrine__DoctrineImportFirebird.php.html | 130 - ..._Doctrine__DoctrineImportInformix.php.html | 63 - ...rce_Doctrine__DoctrineImportMssql.php.html | 200 - ...rce_Doctrine__DoctrineImportMysql.php.html | 212 - ...ce_Doctrine__DoctrineImportOracle.php.html | 233 - ...rce_Doctrine__DoctrineImportPgsql.php.html | 242 - ...ce_Doctrine__DoctrineImportReader.php.html | 65 - ..._Doctrine__DoctrineImportReaderDb.php.html | 110 - ...ne__DoctrineImportReaderException.php.html | 55 - ...trine__DoctrineImportReaderPropel.php.html | 74 - ...ce_Doctrine__DoctrineImportSchema.php.html | 96 - ...Doctrine__DoctrineImportSchemaXml.php.html | 112 - ...Doctrine__DoctrineImportSchemaYml.php.html | 108 - ...ce_Doctrine__DoctrineImportSqlite.php.html | 238 - ...Doctrine__DoctrineIntegrityMapper.php.html | 150 - .../fsource_Doctrine__DoctrineLib.php.html | 268 - ...octrine__DoctrineLockingException.php.html | 24 - ...DoctrineLockingManagerPessimistic.php.html | 298 - ...fsource_Doctrine__DoctrineManager.php.html | 565 -- ...octrine__DoctrineManagerException.php.html | 41 - .../fsource_Doctrine__DoctrineNode.php.html | 173 - ...ctrine__DoctrineNodeAdjacencyList.php.html | 41 - ...deAdjacencyListLevelOrderIterator.php.html | 41 - ...odeAdjacencyListPostOrderIterator.php.html | 41 - ...NodeAdjacencyListPreOrderIterator.php.html | 41 - ...e_Doctrine__DoctrineNodeException.php.html | 41 - ...e_Doctrine__DoctrineNodeInterface.php.html | 275 - ...ine__DoctrineNodeMaterializedPath.php.html | 41 - ...aterializedPathLevelOrderIterator.php.html | 75 - ...MaterializedPathPostOrderIterator.php.html | 75 - ...eMaterializedPathPreOrderIterator.php.html | 75 - ...e_Doctrine__DoctrineNodeNestedSet.php.html | 1001 --- ...neNodeNestedSetLevelOrderIterator.php.html | 41 - ...ineNodeNestedSetPostOrderIterator.php.html | 41 - ...rineNodeNestedSetPreOrderIterator.php.html | 184 - .../fsource_Doctrine__DoctrineNull.php.html | 53 - .../fsource_Doctrine__DoctrineObject.php.html | 68 - ...ce_Doctrine__DoctrineOverloadable.php.html | 52 - .../fsource_Doctrine__DoctrinePlugin.php.html | 87 - .../fsource_Doctrine__DoctrineQuery.php.html | 1572 ----- ...e_Doctrine__DoctrineQueryAbstract.php.html | 364 - ...urce_Doctrine__DoctrineQueryCheck.php.html | 167 - ..._Doctrine__DoctrineQueryCondition.php.html | 120 - ..._Doctrine__DoctrineQueryException.php.html | 42 - ...rce_Doctrine__DoctrineQueryFilter.php.html | 70 - ...octrine__DoctrineQueryFilterChain.php.html | 112 - ...ine__DoctrineQueryFilterInterface.php.html | 65 - ...ource_Doctrine__DoctrineQueryFrom.php.html | 99 - ...ce_Doctrine__DoctrineQueryGroupby.php.html | 70 - ...rce_Doctrine__DoctrineQueryHaving.php.html | 110 - ...trine__DoctrineQueryJoinCondition.php.html | 112 - ...urce_Doctrine__DoctrineQueryLimit.php.html | 47 - ...rce_Doctrine__DoctrineQueryOffset.php.html | 47 - ...ce_Doctrine__DoctrineQueryOrderby.php.html | 82 - ...rce_Doctrine__DoctrineQueryParser.php.html | 44 - ...ource_Doctrine__DoctrineQueryPart.php.html | 61 - ...rce_Doctrine__DoctrineQuerySelect.php.html | 49 - ...source_Doctrine__DoctrineQuerySet.php.html | 63 - ...urce_Doctrine__DoctrineQueryWhere.php.html | 183 - .../fsource_Doctrine__DoctrineRawSql.php.html | 290 - ...Doctrine__DoctrineRawSqlException.php.html | 42 - .../fsource_Doctrine__DoctrineRecord.php.html | 1538 ----- ..._Doctrine__DoctrineRecordAbstract.php.html | 322 - ...Doctrine__DoctrineRecordException.php.html | 42 - ...ce_Doctrine__DoctrineRecordFilter.php.html | 178 - ..._Doctrine__DoctrineRecordIterator.php.html | 54 - ..._Doctrine__DoctrineRecordListener.php.html | 79 - ...rine__DoctrineRecordListenerChain.php.html | 180 - ...__DoctrineRecordListenerInterface.php.html | 67 - ...ine__DoctrineRecordStateException.php.html | 42 - ...source_Doctrine__DoctrineRelation.php.html | 322 - ...rine__DoctrineRelationAssociation.php.html | 102 - ...__DoctrineRelationAssociationSelf.php.html | 116 - ...ctrine__DoctrineRelationException.php.html | 42 - ...trine__DoctrineRelationForeignKey.php.html | 106 - ...octrine__DoctrineRelationLocalKey.php.html | 90 - ...ce_Doctrine__DoctrineRelationNest.php.html | 150 - ..._Doctrine__DoctrineRelationParser.php.html | 469 -- ...__DoctrineRelationParserException.php.html | 42 - .../fsource_Doctrine__DoctrineSchema.php.html | 92 - ...ce_Doctrine__DoctrineSchemaColumn.php.html | 88 - ..._Doctrine__DoctrineSchemaDatabase.php.html | 106 - ...Doctrine__DoctrineSchemaException.php.html | 48 - ...ce_Doctrine__DoctrineSchemaObject.php.html | 110 - ..._Doctrine__DoctrineSchemaRelation.php.html | 134 - ...rce_Doctrine__DoctrineSchemaTable.php.html | 119 - .../fsource_Doctrine__DoctrineSearch.php.html | 168 - ..._Doctrine__DoctrineSearchAnalyzer.php.html | 47 - ...__DoctrineSearchAnalyzerException.php.html | 42 - ...__DoctrineSearchAnalyzerInterface.php.html | 44 - ...e__DoctrineSearchAnalyzerStandard.php.html | 299 - ...Doctrine__DoctrineSearchException.php.html | 42 - ...e_Doctrine__DoctrineSearchIndexer.php.html | 83 - ...octrine__DoctrineSearchIndexerDir.php.html | 55 - ...e__DoctrineSearchIndexerException.php.html | 42 - ..._Doctrine__DoctrineSearchListener.php.html | 64 - ...ce_Doctrine__DoctrineSearchParser.php.html | 49 - ...rce_Doctrine__DoctrineSearchQuery.php.html | 245 - ...ce_Doctrine__DoctrineSearchRecord.php.html | 55 - ...ce_Doctrine__DoctrineSearchScorer.php.html | 74 - ..._Doctrine__DoctrineSearchTemplate.php.html | 68 - ...source_Doctrine__DoctrineSequence.php.html | 80 - ...rce_Doctrine__DoctrineSequenceDb2.php.html | 131 - ...ctrine__DoctrineSequenceException.php.html | 42 - ...octrine__DoctrineSequenceFirebird.php.html | 113 - ...octrine__DoctrineSequenceInformix.php.html | 44 - ...e_Doctrine__DoctrineSequenceMssql.php.html | 163 - ...e_Doctrine__DoctrineSequenceMysql.php.html | 118 - ..._Doctrine__DoctrineSequenceOracle.php.html | 102 - ...e_Doctrine__DoctrineSequencePgsql.php.html | 100 - ..._Doctrine__DoctrineSequenceSqlite.php.html | 120 - .../fsource_Doctrine__DoctrineTable.php.html | 1339 ---- ..._Doctrine__DoctrineTableException.php.html | 49 - ...Doctrine__DoctrineTableRepository.php.html | 159 - ..._DoctrineTableRepositoryException.php.html | 42 - ...source_Doctrine__DoctrineTemplate.php.html | 73 - ...ctrine__DoctrineTemplateNestedSet.php.html | 54 - ...trine__DoctrineTemplateSearchable.php.html | 71 - ...octrine__DoctrineTemplateTaggable.php.html | 44 - ...rine__DoctrineTemplateVersionable.php.html | 59 - ...ource_Doctrine__DoctrineTokenizer.php.html | 325 - ...rce_Doctrine__DoctrineTransaction.php.html | 531 -- ...ine__DoctrineTransactionException.php.html | 42 - ...rine__DoctrineTransactionFirebird.php.html | 145 - ...rine__DoctrineTransactionInformix.php.html | 42 - ...Doctrine__DoctrineTransactionMock.php.html | 45 - ...octrine__DoctrineTransactionMssql.php.html | 76 - ...octrine__DoctrineTransactionMysql.php.html | 120 - ...ctrine__DoctrineTransactionOracle.php.html | 111 - ...octrine__DoctrineTransactionPgsql.php.html | 110 - ...ctrine__DoctrineTransactionSqlite.php.html | 74 - .../fsource_Doctrine__DoctrineTree.php.html | 138 - ...ctrine__DoctrineTreeAdjacencyList.php.html | 41 - ...e_Doctrine__DoctrineTreeException.php.html | 41 - ...e_Doctrine__DoctrineTreeInterface.php.html | 72 - ...ine__DoctrineTreeMaterializedPath.php.html | 41 - ...e_Doctrine__DoctrineTreeNestedSet.php.html | 363 - .../fsource_Doctrine__DoctrineUtil.php.html | 44 - ...ource_Doctrine__DoctrineValidator.php.html | 271 - ...octrine__DoctrineValidatorCountry.php.html | 307 - ...rine__DoctrineValidatorCreditcard.php.html | 57 - ...e_Doctrine__DoctrineValidatorDate.php.html | 61 - ..._Doctrine__DoctrineValidatorEmail.php.html | 88 - ...e_Doctrine__DoctrineValidatorEnum.php.html | 63 - ...rine__DoctrineValidatorErrorStack.php.html | 143 - ...trine__DoctrineValidatorException.php.html | 90 - ...trine__DoctrineValidatorHtmlcolor.php.html | 57 - ..._DoctrineValidatorInterface.class.php.html | 12 - ...rce_Doctrine__DoctrineValidatorIp.php.html | 54 - ...trine__DoctrineValidatorMinlength.php.html | 55 - ...octrine__DoctrineValidatorNospace.php.html | 54 - ...ctrine__DoctrineValidatorNotblank.php.html | 54 - ...octrine__DoctrineValidatorNotnull.php.html | 56 - ...trine__DoctrineValidatorProtected.php.html | 9 - ..._Doctrine__DoctrineValidatorRange.php.html | 60 - ...Doctrine__DoctrineValidatorRegexp.php.html | 67 - ...Doctrine__DoctrineValidatorUnique.php.html | 79 - ...ctrine__DoctrineValidatorUnsigned.php.html | 62 - ...octrine__DoctrineValidatorUsstate.php.html | 113 - .../fsource_Doctrine__DoctrineView.php.html | 164 - ...e_Doctrine__DoctrineViewException.php.html | 42 - .../trunk/classtrees_Doctrine.html | 552 -- api_documentation/trunk/elementindex.html | 5817 ---------------- .../trunk/elementindex_Doctrine.html | 6089 ----------------- api_documentation/trunk/errors.html | 1138 --- api_documentation/trunk/index.html | 281 - api_documentation/trunk/li_Doctrine.html | 281 - api_documentation/trunk/media/background.png | Bin 307 -> 0 bytes api_documentation/trunk/media/empty.png | Bin 206 -> 0 bytes api_documentation/trunk/media/logo.png | Bin 7724 -> 0 bytes api_documentation/trunk/media/style.css | 134 - api_documentation/trunk/todolist.html | 57 - 844 files changed, 398152 deletions(-) delete mode 100644 api_documentation/trunk/Doctrine/Doctrine.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Access.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Db2.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mock.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mysqli.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Statement_Mock.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Db2.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mock.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mysqli.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Statement---Mock.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter_Db2_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_AuditLog.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_AuditLog_Listener.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Apc.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Array.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Db.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Driver.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Memcache.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Apc.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Array.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Db.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Driver.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Memcache.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Collection.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Collection_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Expandable.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Normal.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Offset.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Collection_Offset.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Column.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Compiler.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Compiler_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Configurable.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Common.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Db2.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Informix.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Informix_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Mock.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Module.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_Statement.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Connection_UnitOfWork.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Firebird.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mssql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mysql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Pgsql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Sqlite.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Firebird.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mssql.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mysql.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Pgsql.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Sqlite.php.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataDict_Informix.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_DataType.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Db.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Event.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_EventListener.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_EventListener_Chain.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_EventListener_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_EventListener_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Firebird.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Frontbase.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Mssql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Mysql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Pgsql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Reporter.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Schema.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Xml.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Yml.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Export_Sqlite.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Driver.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Firebird.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Informix.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Mock.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Mssql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Mysql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Pgsql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Expression_Sqlite.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_File.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_File_Index.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Formatter.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hook.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hook_Equal.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hook_Integer.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hook_Parser.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hook_Parser_Complex.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hook_WordLike.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hydrate.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hydrate_Array.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hydrate_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Hydrate_Record.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Builder.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Builder_BaseClass.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Builder_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Firebird.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Informix.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Mssql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Mysql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Pgsql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Reader.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Db.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Xml_Propel.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Schema.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Xml.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Yml.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Import_Sqlite.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_IntegrityMapper.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Lib.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Locking_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Locking_Manager_Pessimistic.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Manager.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Manager_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_LevelOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PostOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PreOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_LevelOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PostOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PreOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_LevelOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PostOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PreOrderIterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Null.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Object.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Overloadable.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Plugin.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Abstract.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Check.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Condition.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Filter.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Chain.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_From.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Groupby.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Having.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_JoinCondition.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Limit.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Offset.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Orderby.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Parser.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Part.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Select.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Set.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Query_Where.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_RawSql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_RawSql_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_Abstract.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_Filter.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_Iterator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_Listener.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Chain.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Record_State_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_Association.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_Association_Self.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_ForeignKey.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_LocalKey.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_Nest.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_Parser.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Relation_Parser_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Schema.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Schema_Column.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Schema_Database.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Schema_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Schema_Object.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Schema_Relation.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Schema_Table.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Standard.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Indexer.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Dir.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Listener.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Parser.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Query.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Record.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Scorer.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Search_Template.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Db2.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Firebird.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Informix.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Mssql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Mysql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Pgsql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Sequence_Sqlite.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Table.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Table_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Table_Repository.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Table_Repository_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Template.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Template_NestedSet.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Template_Searchable.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Template_Taggable.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Template_Versionable.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Tokenizer.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Firebird.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Informix.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Mock.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Mssql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Mysql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Oracle.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Pgsql.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Transaction_Sqlite.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Tree.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Tree_AdjacencyList.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Tree_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Tree_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Tree_MaterializedPath.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Tree_NestedSet.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Util.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Country.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Creditcard.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Date.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Email.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Enum.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_ErrorStack.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_HtmlColor.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Interface.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Ip.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Minlength.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Nospace.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Notblank.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Notnull.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Range.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Regexp.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Unique.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Unsigned.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_Validator_Usstate.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_View.html delete mode 100644 api_documentation/trunk/Doctrine/Doctrine_View_Exception.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Access.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Adapter---Db2---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Adapter---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Adapter---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Adapter.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---AuditLog---Listener.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---AuditLog.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Collection---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Expandable.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Normal.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Offset.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Collection---Offset.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Collection.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Column.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Compiler---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Compiler.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Configurable.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Common.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Db2.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Mock.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Module.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---Statement.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection---UnitOfWork.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Connection.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---DataDict---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---DataDict---Informix.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---DataDict.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---DataType.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Db.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Event.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---EventListener---Chain.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---EventListener---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---EventListener---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---EventListener.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Firebird.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Frontbase.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Mssql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Mysql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Pgsql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Reporter.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Xml.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Yml.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Schema.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export---Sqlite.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Export.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Driver.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Firebird.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Informix.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Mock.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Mssql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Mysql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Pgsql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression---Sqlite.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Expression.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---File---Index.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---File.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Formatter.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hook---Equal.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hook---Integer.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser---Complex.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hook---WordLike.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hook.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Array.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Record.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Hydrate.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---BaseClass.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Builder.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Firebird.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Informix.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Mssql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Mysql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Pgsql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Db.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Propel.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Reader.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Xml.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Yml.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Schema.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import---Sqlite.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Import.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---IntegrityMapper.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Lib.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Locking---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Locking---Manager---Pessimistic.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Manager---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Manager.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---LevelOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PostOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PreOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---LevelOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PostOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PreOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---LevelOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PostOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PreOrderIterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Node.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Null.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Object.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Overloadable.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Plugin.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Abstract.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Check.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Condition.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Chain.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Filter.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---From.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Groupby.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Having.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---JoinCondition.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Limit.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Offset.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Orderby.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Parser.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Part.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Select.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Set.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query---Where.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Query.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---RawSql---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---RawSql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---Abstract.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---Filter.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---Iterator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Chain.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---Listener.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record---State---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Record.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---Association---Self.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---Association.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---ForeignKey.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---LocalKey.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---Nest.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Relation.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Schema---Column.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Schema---Database.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Schema---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Schema---Object.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Schema---Relation.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Schema---Table.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Schema.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Standard.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Dir.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Listener.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Parser.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Query.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Record.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Scorer.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search---Template.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Search.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Db2.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Firebird.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Informix.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mssql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mysql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Pgsql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence---Sqlite.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Sequence.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Table---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Table---Repository---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Table---Repository.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Table.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Template---NestedSet.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Template---Searchable.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Template---Taggable.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Template---Versionable.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Template.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Tokenizer.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Firebird.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Informix.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mock.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mssql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mysql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Oracle.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Pgsql.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction---Sqlite.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Transaction.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Tree---AdjacencyList.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Tree---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Tree---Interface.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Tree---MaterializedPath.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Tree---NestedSet.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Tree.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Util.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Country.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Creditcard.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Date.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Email.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Enum.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---ErrorStack.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Htmlcolor.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Interface.class.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Ip.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Minlength.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Nospace.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Notblank.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Notnull.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Protected.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Range.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Regexp.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Unique.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Unsigned.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator---Usstate.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---Validator.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---View---Exception.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine---View.php.html delete mode 100644 api_documentation/trunk/Doctrine/_Doctrine.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterDb2.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMock.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMysqli.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterStatementMock.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCache.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheApc.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheArray.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDb.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDriver.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheMemcache.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictFirebird.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMssql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMysql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictPgsql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictSqlite.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__Doctrine.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAccess.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapter.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterDb2Exception.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatement.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatementInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLog.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLogListener.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollection.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorExpandable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorNormal.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorOffset.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionOffset.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineColumn.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompiler.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompilerException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConfigurable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnection.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionCommon.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionDb2.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebird.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebirdException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformix.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformixException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMock.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionModule.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssqlException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysqlException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracleException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsqlException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfiler.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfilerException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqlite.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqliteException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionStatement.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionUnitOfWork.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDict.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictInformix.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataType.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDb.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEvent.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListener.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerChain.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExport.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFirebird.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFrontbase.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMssql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMysql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportPgsql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportReporter.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchema.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaXml.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaYml.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSqlite.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpression.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionDriver.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionFirebird.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionInformix.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMock.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMssql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMysql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionPgsql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionSqlite.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFile.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFileIndex.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFormatter.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHook.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookEqual.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookInteger.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParser.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParserComplex.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookWordLike.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrate.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateArray.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateRecord.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImport.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilder.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderBaseClass.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportFirebird.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportInformix.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMssql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMysql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportPgsql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReader.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderDb.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderPropel.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchema.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaXml.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaYml.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSqlite.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineIntegrityMapper.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLib.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingManagerPessimistic.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManager.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManagerException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNode.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyList.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListLevelOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPostOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPreOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPath.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathLevelOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPostOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPreOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSet.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetLevelOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPostOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPreOrderIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNull.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineObject.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineOverloadable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrinePlugin.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuery.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryAbstract.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCheck.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCondition.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilter.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterChain.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFrom.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryGroupby.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryHaving.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryJoinCondition.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryLimit.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOffset.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOrderby.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryParser.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryPart.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySelect.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySet.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryWhere.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSqlException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecord.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordAbstract.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordFilter.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordIterator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListener.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerChain.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordStateException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelation.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociation.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociationSelf.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationForeignKey.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationLocalKey.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationNest.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParser.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParserException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchema.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaColumn.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaDatabase.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaObject.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaRelation.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaTable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearch.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzer.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerStandard.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexer.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerDir.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchListener.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchParser.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchQuery.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchRecord.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchScorer.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchTemplate.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequence.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceDb2.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceFirebird.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceInformix.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMssql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMysql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequencePgsql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceSqlite.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepository.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepositoryException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplate.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateNestedSet.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateSearchable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateTaggable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateVersionable.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTokenizer.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransaction.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionFirebird.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionInformix.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMock.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMssql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMysql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionOracle.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionPgsql.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionSqlite.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTree.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeAdjacencyList.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeInterface.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeMaterializedPath.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeNestedSet.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineUtil.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidator.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCountry.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCreditcard.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorDate.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEmail.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEnum.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorErrorStack.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorException.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorHtmlcolor.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorInterface.class.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorIp.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorMinlength.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNospace.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotblank.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotnull.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorProtected.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRange.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRegexp.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnique.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnsigned.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUsstate.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineView.php.html delete mode 100644 api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineViewException.php.html delete mode 100644 api_documentation/trunk/classtrees_Doctrine.html delete mode 100644 api_documentation/trunk/elementindex.html delete mode 100644 api_documentation/trunk/elementindex_Doctrine.html delete mode 100644 api_documentation/trunk/errors.html delete mode 100644 api_documentation/trunk/index.html delete mode 100644 api_documentation/trunk/li_Doctrine.html delete mode 100644 api_documentation/trunk/media/background.png delete mode 100644 api_documentation/trunk/media/empty.png delete mode 100644 api_documentation/trunk/media/logo.png delete mode 100644 api_documentation/trunk/media/style.css delete mode 100644 api_documentation/trunk/todolist.html diff --git a/api_documentation/trunk/Doctrine/Doctrine.html b/api_documentation/trunk/Doctrine/Doctrine.html deleted file mode 100644 index cf09404f8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine.html +++ /dev/null @@ -1,4686 +0,0 @@ - - -
-

Class: Doctrine

-Source Location: /Doctrine.php

- -

Class Doctrine

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine the base class of Doctrine framework -

- -

- Located in /Doctrine.php [line 35] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 2255 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
ATTR_ACCESSORS  
ATTR_ACCESSOR_PREFIX_GET  
ATTR_ACCESSOR_PREFIX_SET  
ATTR_AUTOCOMMIT  PDO derived attributes
ATTR_AUTO_LENGTH_VLD  
ATTR_AUTO_TYPE_VLD  
ATTR_BATCH_SIZE  
ATTR_CACHE  
ATTR_CACHE_LIFESPAN  
ATTR_CASE  
ATTR_CLIENT_VERSION  
ATTR_CMPNAME_FORMAT  
ATTR_COLL_KEY  
ATTR_COLL_LIMIT  
ATTR_CONNECTION_STATUS  
ATTR_CREATE_TABLES  
ATTR_CURSOR  
ATTR_CURSOR_NAME  
ATTR_DBNAME_FORMAT  
ATTR_DECIMAL_PLACES  
ATTR_DEFAULT_SEQUENCE  
ATTR_DEFAULT_TABLE_TYPE  
ATTR_DEF_TABLESPACE  
ATTR_DEF_TEXT_LENGTH  
ATTR_DEF_VARCHAR_LENGTH  
ATTR_DRIVER_NAME  
ATTR_EMULATE_DATABASE  
ATTR_ERRMODE  
ATTR_EXPORT  
ATTR_FETCHMODE  TODO: REMOVE THE FOLLOWING CONSTANTS AND UPDATE THE DOCS !
ATTR_FETCH_CATALOG_NAMES  
ATTR_FETCH_TABLE_NAMES  
ATTR_FIELD_CASE  
ATTR_IDXNAME_FORMAT  
ATTR_LISTENER  Doctrine constants
ATTR_LOAD_REFERENCES  
ATTR_LOCKMODE  
ATTR_MAX_COLUMN_LEN  
ATTR_NAME_PREFIX  
ATTR_NS_GAP_DECREASE_EXP  
ATTR_NS_GAP_SIZE  
ATTR_NS_ROOT_COLUMN_NAME  NESTED SET CONSTANTS
ATTR_ORACLE_NULLS  
ATTR_PERSISTENT  
ATTR_PORTABILITY  
ATTR_PREFETCH  
ATTR_QUERY_LIMIT  
ATTR_QUOTE_IDENTIFIER  
ATTR_RECORD_LISTENER  
ATTR_SEQCOL_NAME  
ATTR_SEQNAME_FORMAT  
ATTR_SERVER_INFO  
ATTR_SERVER_VERSION  
ATTR_STATEMENT_CLASS  
ATTR_STRINGIFY_FETCHES  
ATTR_TBLCLASS_FORMAT  
ATTR_THROW_EXCEPTIONS  
ATTR_TIMEOUT  
ATTR_VLD  
CASE_LOWER  PDO derived constants
CASE_NATURAL  
CASE_UPPER  
CURSOR_FWDONLY  
CURSOR_SCROLL  
ERR  ERROR CONSTANTS
ERRMODE_EXCEPTION  
ERRMODE_SILENT  
ERRMODE_WARNING  
ERR_ACCESS_VIOLATION  
ERR_ALREADY_EXISTS  
ERR_CANNOT_ALTER  
ERR_CANNOT_CREATE  
ERR_CANNOT_DELETE  
ERR_CANNOT_DROP  
ERR_CANNOT_REPLACE  
ERR_CLASS_NAME  
ERR_CONNECT_FAILED  
ERR_CONSTRAINT  
ERR_CONSTRAINT_NOT_NULL  
ERR_DEADLOCK  
ERR_DIVZERO  
ERR_EXTENSION_NOT_FOUND  
ERR_INSUFFICIENT_DATA  
ERR_INVALID  
ERR_INVALID_DATE  
ERR_INVALID_DSN  
ERR_INVALID_NUMBER  
ERR_LOADMODULE  
ERR_MANAGER  
ERR_MANAGER_PARSE  
ERR_MISMATCH  
ERR_NEED_MORE_DATA  
ERR_NODBSELECTED  
ERR_NOSUCHDB  
ERR_NOSUCHFIELD  
ERR_NOSUCHTABLE  
ERR_NOT_CAPABLE  
ERR_NOT_FOUND  
ERR_NOT_LOCKED  
ERR_SYNTAX  
ERR_TRUNCATED  
ERR_UNSUPPORTED  
ERR_VALUE_COUNT_ON_ROW  
EXPORT_ALL  export all
EXPORT_CONSTRAINTS  export constraints
EXPORT_NONE  turns of exporting
EXPORT_TABLES  export tables
FETCH_ARRAY  FETCH ARRAY
FETCH_ASSOC  
FETCH_BATCH  BATCH FETCHING
FETCH_BOTH  
FETCH_BOUND  
FETCH_CLASS  
FETCH_CLASSTYPE  
FETCH_COLUMN  
FETCH_FUNC  
FETCH_GROUP  
FETCH_IMMEDIATE  IMMEDIATE FETCHING
FETCH_INTO  
FETCH_LAZY  
FETCH_LAZY_OFFSET  LAZY OFFSET FETCHING
FETCH_NAMED  
FETCH_NUM  
FETCH_OBJ  
FETCH_OFFSET  LAZY FETCHING
FETCH_ORI_ABS  
FETCH_ORI_FIRST  
FETCH_ORI_LAST  
FETCH_ORI_NEXT  
FETCH_ORI_PRIOR  
FETCH_ORI_REL  
FETCH_RECORD  FETCH RECORD
FETCH_SERIALIZE  
FETCH_UNIQUE  
FETCH_VHOLDER  FETCH VALUEHOLDER
IDENTIFIER_AUTOINC  constant for auto_increment identifier
IDENTIFIER_COMPOSITE  constant for composite identifier
IDENTIFIER_NATURAL  constant for normal identifier
IDENTIFIER_SEQUENCE  constant for sequence identifier
LIMIT_RECORDS  constant for record limiting
LIMIT_ROWS  constant for row limiting
LOCK_OPTIMISTIC  mode for optimistic locking
LOCK_PESSIMISTIC  mode for pessimistic locking
NULL_EMPTY_STRING  
NULL_NATURAL  
NULL_TO_STRING  
PARAM_BOOL  
PARAM_INPUT_OUTPUT  
PARAM_INT  
PARAM_LOB  
PARAM_NULL  
PARAM_STMT  
PARAM_STR  
PORTABILITY_ALL  Portability: turn on all portability features.
PORTABILITY_DELETE_COUNT  Portability: force reporting the number of rows deleted.
PORTABILITY_EMPTY_TO_NULL  Portability: convert empty values to null strings in data output by query*() and fetch*().
PORTABILITY_EXPR  Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions
PORTABILITY_FIX_ASSOC_FIELD_NAMES  Portability: removes database/table qualifiers from associative indexes
PORTABILITY_FIX_CASE  Portability: convert names of tables and fields to case defined in the "field_case" option when using the query*(), fetch*() methods.
PORTABILITY_NONE  Portability: turn off all portability features.
PORTABILITY_RTRIM  Portability: right trim the data output by query*() and fetch*().
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
static string  $path  
static boolean  $_debug  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - boolean   - autoload()  simple autoload function returns true if the class was loaded, otherwise false
static - string   - classify()  returns class name from table name
static - void   - compile()  compile
static - void   - debug()  
static - void|string   - dump()  dump
static - void   - exportSchema()  exportSchema method for exporting Doctrine_Record classes to a schema
static - void   - exportSql()  exportSql method for exporting Doctrine_Record classes to a schema
static - string   - getPath()  getPath returns the doctrine root
static - boolean   - importSchema()  importSchema method for importing existing schema to Doctrine_Record classes
static - boolean   - isValidClassname()  checks for valid class name (uses camel case and underscores)
static - void   - loadAll()  loadAll loads all runtime classes
static - string   - tableize()  returns table name from class name
Doctrine  __construct()  constructor
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static string   - $path - [line 370] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - static boolean   - $_debug - = false [line 374] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method autoload  [line 464] -
-
- -
-
-
  - static boolean autoload( -string -$classname  -) -
-

- -

simple autoload function returns true if the class was loaded, otherwise false -

- - Parameters:
- - - - -
- string   - $classname:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method classify  [line 529] -
-
- -
-
-
  - static string classify( -string -$tablename  -) -
-

- -

returns class name from table name -

- - Parameters:
- - - - -
- string   - $tablename:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method compile  [line 453] -
-
- -
-
-
  - static void compile( -[string -$target = null]  -) -
-

- -

compile -

-

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

- Parameters:
- - - - -
- string   - $target:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Exception
- - -
-
[ Top ]
-
- -
- -
- static method debug  [line 376] -
-
- -
-
-
  - static void debug( -[ -$bool = null]  -) -
-

- - - Parameters:
- - - - -
-    - $bool:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method dump  [line 491] -
-
- -
-
-
  - static void|string dump( -mixed -$var, [boolean -$output = true]  -) -
-

- -

dump -

-

dumps a given variable

- Parameters:
- - - - - - - -
- mixed   - $var:  - a variable of any type
- boolean   - $output:  - whether to output the content
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method exportSchema  [line 428] -
-
- -
-
-
  - static void exportSchema( -[string -$directory = null]  -) -
-

- -

exportSchema method for exporting Doctrine_Record classes to a schema -

- - Parameters:
- - - - -
- string   - $directory:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method exportSql  [line 438] -
-
- -
-
-
  - static void exportSql( -[string -$directory = null]  -) -
-

- -

exportSql method for exporting Doctrine_Record classes to a schema -

- - Parameters:
- - - - -
- string   - $directory:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getPath  [line 389] -
-
- -
-
-
  - static string getPath( -) -
-

- -

getPath returns the doctrine root -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method importSchema  [line 418] -
-
- -
-
-
  - static boolean importSchema( -string -$directory, [ -$databases = array()], array -$info  -) -
-

- -

importSchema method for importing existing schema to Doctrine_Record classes -

- - Parameters:
- - - - - - - - - - -
- string   - $directory:  -
- array   - $info:  -
- array   - $databases:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method isValidClassname  [line 539] -
-
- -
-
-
  - static boolean isValidClassname( -string -$classname  -) -
-

- -

checks for valid class name (uses camel case and underscores) -

- - Parameters:
- - - - -
- string   - $classname:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method loadAll  [line 402] -
-
- -
-
-
  - static void loadAll( -) -
-

- -

loadAll loads all runtime classes -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method tableize  [line 519] -
-
- -
-
-
  - static string tableize( -string -$classname  -) -
-

- -

returns table name from class name -

- - Parameters:
- - - - -
- string   - $classname:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 363] -
-
- -
-
-
  - Doctrine __construct( -) -
-

- -

constructor -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - ATTR_ACCESSORS - = 124 - [line 183] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_ACCESSOR_PREFIX_GET - = 125 - [line 184] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_ACCESSOR_PREFIX_SET - = 126 - [line 185] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_AUTOCOMMIT - = 0 - [line 126] - -
- -

PDO derived attributes -

- - -
-
[ Top ]
-
- -
- -
- - ATTR_AUTO_LENGTH_VLD - = 110 - [line 165] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_AUTO_TYPE_VLD - = 111 - [line 166] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_BATCH_SIZE - = 119 - [line 178] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CACHE - = 150 - [line 194] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CACHE_LIFESPAN - = 151 - [line 195] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CASE - = 8 - [line 134] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CLIENT_VERSION - = 5 - [line 131] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CMPNAME_FORMAT - = 118 - [line 155] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_COLL_KEY - = 108 - [line 163] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_COLL_LIMIT - = 123 - [line 182] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CONNECTION_STATUS - = 7 - [line 133] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CREATE_TABLES - = 122 - [line 181] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CURSOR - = 10 - [line 136] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CURSOR_NAME - = 9 - [line 135] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DBNAME_FORMAT - = 117 - [line 156] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DECIMAL_PLACES - = 141 - [line 159] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DEFAULT_SEQUENCE - = 133 - [line 172] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DEFAULT_TABLE_TYPE - = 112 - [line 167] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DEF_TABLESPACE - = 115 - [line 170] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DEF_TEXT_LENGTH - = 113 - [line 168] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DEF_VARCHAR_LENGTH - = 114 - [line 169] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DRIVER_NAME - = 16 - [line 142] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_EMULATE_DATABASE - = 116 - [line 171] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_ERRMODE - = 3 - [line 129] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_EXPORT - = 140 - [line 158] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_FETCHMODE - = 118 - [line 177] - -
- -

TODO: REMOVE THE FOLLOWING CONSTANTS AND UPDATE THE DOCS ! -

- - -
-
[ Top ]
-
- -
- -
- - ATTR_FETCH_CATALOG_NAMES - = 15 - [line 141] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_FETCH_TABLE_NAMES - = 14 - [line 140] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_FIELD_CASE - = 102 - [line 151] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_IDXNAME_FORMAT - = 103 - [line 152] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_LISTENER - = 100 - [line 149] - -
- -

Doctrine constants -

- - -
-
[ Top ]
-
- -
- -
- - ATTR_LOAD_REFERENCES - = 153 - [line 196] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_LOCKMODE - = 120 - [line 179] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_MAX_COLUMN_LEN - = 18 - [line 144] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_NAME_PREFIX - = 121 - [line 180] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_NS_GAP_DECREASE_EXP - = 132 - [line 192] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_NS_GAP_SIZE - = 131 - [line 191] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_NS_ROOT_COLUMN_NAME - = 130 - [line 190] - -
- -

NESTED SET CONSTANTS -

- - -
-
[ Top ]
-
- -
- -
- - ATTR_ORACLE_NULLS - = 11 - [line 137] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_PERSISTENT - = 12 - [line 138] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_PORTABILITY - = 106 - [line 161] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_PREFETCH - = 1 - [line 127] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_QUERY_LIMIT - = 109 - [line 164] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_QUOTE_IDENTIFIER - = 101 - [line 150] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_RECORD_LISTENER - = 154 - [line 197] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_SEQCOL_NAME - = 105 - [line 154] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_SEQNAME_FORMAT - = 104 - [line 153] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_SERVER_INFO - = 6 - [line 132] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_SERVER_VERSION - = 4 - [line 130] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_STATEMENT_CLASS - = 13 - [line 139] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_STRINGIFY_FETCHES - = 17 - [line 143] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_TBLCLASS_FORMAT - = 119 - [line 157] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_THROW_EXCEPTIONS - = 155 - [line 198] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_TIMEOUT - = 2 - [line 128] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_VLD - = 107 - [line 162] - -
- - - -
-
[ Top ]
-
- -
- -
- - CASE_LOWER - = 2 - [line 80] - -
- -

PDO derived constants -

- - -
-
[ Top ]
-
- -
- -
- - CASE_NATURAL - = 0 - [line 81] - -
- - - -
-
[ Top ]
-
- -
- -
- - CASE_UPPER - = 1 - [line 82] - -
- - - -
-
[ Top ]
-
- -
- -
- - CURSOR_FWDONLY - = 0 - [line 83] - -
- - - -
-
[ Top ]
-
- -
- -
- - CURSOR_SCROLL - = 1 - [line 84] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR - = -1 - [line 40] - -
- -

ERROR CONSTANTS -

- - -
-
[ Top ]
-
- -
- -
- - ERRMODE_EXCEPTION - = 2 - [line 85] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERRMODE_SILENT - = 0 - [line 86] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERRMODE_WARNING - = 1 - [line 87] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_ACCESS_VIOLATION - = -27 - [line 66] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_ALREADY_EXISTS - = -5 - [line 44] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CANNOT_ALTER - = -31 - [line 70] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CANNOT_CREATE - = -15 - [line 54] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CANNOT_DELETE - = -16 - [line 55] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CANNOT_DROP - = -17 - [line 56] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CANNOT_REPLACE - = -28 - [line 67] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CLASS_NAME - = -36 - [line 75] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CONNECT_FAILED - = -24 - [line 63] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CONSTRAINT - = -3 - [line 42] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CONSTRAINT_NOT_NULL - = -29 - [line 68] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_DEADLOCK - = -30 - [line 69] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_DIVZERO - = -13 - [line 52] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_EXTENSION_NOT_FOUND - = -25 - [line 64] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_INSUFFICIENT_DATA - = -35 - [line 74] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_INVALID - = -8 - [line 47] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_INVALID_DATE - = -12 - [line 51] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_INVALID_DSN - = -23 - [line 62] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_INVALID_NUMBER - = -11 - [line 50] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_LOADMODULE - = -34 - [line 73] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_MANAGER - = -32 - [line 71] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_MANAGER_PARSE - = -33 - [line 72] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_MISMATCH - = -7 - [line 46] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NEED_MORE_DATA - = -20 - [line 59] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NODBSELECTED - = -14 - [line 53] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOSUCHDB - = -26 - [line 65] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOSUCHFIELD - = -19 - [line 58] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOSUCHTABLE - = -18 - [line 57] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOT_CAPABLE - = -9 - [line 48] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOT_FOUND - = -4 - [line 43] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOT_LOCKED - = -21 - [line 60] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_SYNTAX - = -2 - [line 41] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_TRUNCATED - = -10 - [line 49] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_UNSUPPORTED - = -6 - [line 45] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_VALUE_COUNT_ON_ROW - = -22 - [line 61] - -
- - - -
-
[ Top ]
-
- -
- -
- - EXPORT_ALL - = 3 - [line 341] - -
- -

export all -

- - -
-
[ Top ]
-
- -
- -
- - EXPORT_CONSTRAINTS - = 2 - [line 337] - -
- -

export constraints -

- - -
-
[ Top ]
-
- -
- -
- - EXPORT_NONE - = 0 - [line 329] - -
- -

turns of exporting -

- - -
-
[ Top ]
-
- -
- -
- - EXPORT_TABLES - = 1 - [line 333] - -
- -

export tables -

- - -
-
[ Top ]
-
- -
- -
- - FETCH_ARRAY - = 3 - [line 261] - -
- -

FETCH ARRAY -

- - -
-
[ Top ]
-
- -
- -
- - FETCH_ASSOC - = 2 - [line 88] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_BATCH - = 1 - [line 227] - -
- -

BATCH FETCHING -

-

mode for batch fetching

- -
-
[ Top ]
-
- -
- -
- - FETCH_BOTH - = 4 - [line 89] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_BOUND - = 6 - [line 90] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_CLASS - = 8 - [line 91] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_CLASSTYPE - = 262144 - [line 92] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_COLUMN - = 7 - [line 93] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_FUNC - = 10 - [line 94] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_GROUP - = 65536 - [line 95] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_IMMEDIATE - = 0 - [line 222] - -
- -

IMMEDIATE FETCHING -

-

mode for immediate fetching

- -
-
[ Top ]
-
- -
- -
- - FETCH_INTO - = 9 - [line 96] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_LAZY - = 1 - [line 97] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_LAZY_OFFSET - = 4 - [line 237] - -
- -

LAZY OFFSET FETCHING -

-

mode for lazy offset fetching

- -
-
[ Top ]
-
- -
- -
- - FETCH_NAMED - = 11 - [line 98] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_NUM - = 3 - [line 99] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_OBJ - = 5 - [line 100] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_OFFSET - = 3 - [line 232] - -
- -

LAZY FETCHING -

-

mode for offset fetching

- -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_ABS - = 4 - [line 101] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_FIRST - = 2 - [line 102] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_LAST - = 3 - [line 103] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_NEXT - = 0 - [line 104] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_PRIOR - = 1 - [line 105] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_REL - = 5 - [line 106] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_RECORD - = 2 - [line 256] - -
- -

FETCH RECORD -

-

Specifies that the fetch method shall return Doctrine_Record objects as the elements of the result set.

This is the default fetchmode.

- -
-
[ Top ]
-
- -
- -
- - FETCH_SERIALIZE - = 524288 - [line 107] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_UNIQUE - = 196608 - [line 108] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_VHOLDER - = 1 - [line 247] - -
- -

FETCH VALUEHOLDER -

- - -
-
[ Top ]
-
- -
- -
- - IDENTIFIER_AUTOINC - = 1 - [line 347] - -
- -

constant for auto_increment identifier -

- - -
-
[ Top ]
-
- -
- -
- - IDENTIFIER_COMPOSITE - = 4 - [line 359] - -
- -

constant for composite identifier -

- - -
-
[ Top ]
-
- -
- -
- - IDENTIFIER_NATURAL - = 3 - [line 355] - -
- -

constant for normal identifier -

- - -
-
[ Top ]
-
- -
- -
- - IDENTIFIER_SEQUENCE - = 2 - [line 351] - -
- -

constant for sequence identifier -

- - -
-
[ Top ]
-
- -
- -
- - LIMIT_RECORDS - = 2 - [line 212] - -
- -

constant for record limiting -

- - -
-
[ Top ]
-
- -
- -
- - LIMIT_ROWS - = 1 - [line 208] - -
- -

constant for row limiting -

- - -
-
[ Top ]
-
- -
- -
- - LOCK_OPTIMISTIC - = 0 - [line 317] - -
- -

mode for optimistic locking -

- - -
-
[ Top ]
-
- -
- -
- - LOCK_PESSIMISTIC - = 1 - [line 321] - -
- -

mode for pessimistic locking -

- - -
-
[ Top ]
-
- -
- -
- - NULL_EMPTY_STRING - = 1 - [line 109] - -
- - - -
-
[ Top ]
-
- -
- -
- - NULL_NATURAL - = 0 - [line 110] - -
- - - -
-
[ Top ]
-
- -
- -
- - NULL_TO_STRING - = NULL - [line 111] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_BOOL - = 5 - [line 112] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_INPUT_OUTPUT - = -2147483648 - [line 113] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_INT - = 1 - [line 114] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_LOB - = 3 - [line 115] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_NULL - = 0 - [line 116] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_STMT - = 4 - [line 117] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_STR - = 2 - [line 118] - -
- - - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_ALL - = 33 - [line 308] - -
- -

Portability: turn on all portability features. -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_DELETE_COUNT - = 4 - [line 287] - -
- -

Portability: force reporting the number of rows deleted. -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_EMPTY_TO_NULL - = 8 - [line 293] - -
- -

Portability: convert empty values to null strings in data output by query*() and fetch*(). -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_EXPR - = 32 - [line 303] - -
- -

Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_FIX_ASSOC_FIELD_NAMES - = 16 - [line 298] - -
- -

Portability: removes database/table qualifiers from associative indexes -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_FIX_CASE - = 1 - [line 276] - -
- -

Portability: convert names of tables and fields to case defined in the "field_case" option when using the query*(), fetch*() methods. -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_NONE - = 0 - [line 270] - -
- -

Portability: turn off all portability features. -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
- -
- -
- - PORTABILITY_RTRIM - = 2 - [line 282] - -
- -

Portability: right trim the data output by query*() and fetch*(). -

- API Tags:
- - - - -
See:  Doctrine::ATTR_PORTABILITY
-
- - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Access.html b/api_documentation/trunk/Doctrine/Doctrine_Access.html deleted file mode 100644 index 6486d4596..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Access.html +++ /dev/null @@ -1,1077 +0,0 @@ - - -
-

Class: Doctrine_Access

-Source Location: /Doctrine/Access.php

- -

Class Doctrine_Access

- - -
-
Class Overview
- -
- - - - - - -
- -

- Implements interfaces: -

    -
  • ArrayAccess (internal interface)
-

-

Doctrine_Access -

-

the purpose of Doctrine_Access is to provice array access and property overload interface for subclasses

-

- Located in /Doctrine/Access.php [line 35] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1604 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Collection - Doctrine_Collection Collection of Doctrine_Record objects. -
Doctrine_Column - Doctrine_Column This class represents a database column -
Doctrine_EventListener_Chain - Doctrine_EventListener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time -
Doctrine_Record_Abstract - Doctrine_Record_Abstract -
Doctrine_Record_Listener_Chain - Doctrine_Record_Listener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time -
Doctrine_Schema_Object - class Doctrine_Schema_Object Catches any non-property call from child classes and throws an exception. -
Doctrine_Validator_ErrorStack - Doctrine_Validator_ErrorStack -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
boolean  offsetExists()  
mixed  offsetGet()  offsetGet an alias of get()
void  offsetSet()  sets $offset to $value
void  offsetUnset()  unset a given offset
Doctrine_Access  setArray()  setArray
mixed  __get()  __get -- an alias of get()
boolean  __isset()  __isset()
void  __set()  __set an alias of set()
void  __unset()  __unset()
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- offsetExists  [line 103] -
-
- -
-
-
  - boolean offsetExists( -mixed -$offset  -) -
-

- - - Parameters:
- - - - -
- mixed   - $offset:  -
- -
- API Tags:
- - - - - - - -
Return:  whether or not this object contains $offset
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetExists
-
- -
-
[ Top ]
-
- -
- -
- offsetGet  [line 113] -
-
- -
-
-
  - mixed offsetGet( -mixed -$offset  -) -
-

- -

offsetGet an alias of get() -

- - Parameters:
- - - - -
- mixed   - $offset:  -
- -
- API Tags:
- - - - - - - -
See:  get, Doctrine_Access::__get()
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetGet
-
- -
-
[ Top ]
-
- -
- -
- offsetSet  [line 124] -
-
- -
-
-
  - void offsetSet( -mixed -$offset, mixed -$value  -) -
-

- -

sets $offset to $value -

- - Parameters:
- - - - - - - -
- mixed   - $offset:  -
- mixed   - $value:  -
- -
- API Tags:
- - - - - - - -
See:  set, Doctrine_Access::__set()
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetSet
-
- -
-
[ Top ]
-
- -
- -
- offsetUnset  [line 137] -
-
- -
-
-
  - void offsetUnset( -mixed -$offset  -) -
-

- -

unset a given offset -

- - Parameters:
- - - - -
- mixed   - $offset:  -
- -
- API Tags:
- - - - - - - -
See:  set, Doctrine_Access::offsetSet(), Doctrine_Access::__set()
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetUnset
-
- -
-
[ Top ]
-
- -
- -
- setArray  [line 44] -
-
- -
-
-
  - Doctrine_Access setArray( - -$array  -) -
-

- -

setArray -

- - Parameters:
- - - - -
- array   - $array:  - an array of key => value pairs
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
- -
- -
- __get  [line 73] -
-
- -
-
-
  - mixed __get( -mixed -$name  -) -
-

- -

__get -- an alias of get() -

- - Parameters:
- - - - -
- mixed   - $name:  -
- -
- API Tags:
- - - - - - - -
See:  get, Doctrine_Access::offsetGet()
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
- -
- -
- __isset  [line 84] -
-
- -
-
-
  - boolean __isset( -string -$name  -) -
-

- -

__isset() -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - - - - -
Return:  whether or not this object contains $name
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
- -
- -
- __set  [line 61] -
-
- -
-
-
  - void __set( -$name -$name, $value -$value  -) -
-

- -

__set an alias of set() -

- - Parameters:
- - - - - - - -
- $name   - $name:  -
- $value   - $value:  -
- -
- API Tags:
- - - - - - - -
See:  set, Doctrine_Access::offsetSet()
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
- -
- -
- __unset  [line 95] -
-
- -
-
-
  - void __unset( -string -$name  -) -
-

- -

__unset() -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter.html deleted file mode 100644 index 7456667b9..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter.html +++ /dev/null @@ -1,1852 +0,0 @@ - - -
-

Class: Doctrine_Adapter

-Source Location: /Doctrine/Adapter.php

- -

Class Doctrine_Adapter

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Adapter -

- -

- Located in /Doctrine/Adapter.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Adapter_Db2 - Doctrine_Adapter_Db2 IBM DB2 Adapter [BORROWED FROM ZEND FRAMEWORK] -
Doctrine_Adapter_Mysqli - Doctrine_Adapter_Mysqli This class is used for special testing purposes. -
Doctrine_Adapter_Oracle - Doctrine_Adapter_Oracle [BORROWED FROM ZEND FRAMEWORK] -
-
[ Top ]
-
-
- - - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
ATTR_AUTOCOMMIT  
ATTR_CASE  
ATTR_CLIENT_VERSION  
ATTR_CONNECTION_STATUS  
ATTR_CURSOR  
ATTR_CURSOR_NAME  
ATTR_DRIVER_NAME  
ATTR_ERRMODE  
ATTR_FETCH_CATALOG_NAMES  
ATTR_FETCH_TABLE_NAMES  
ATTR_MAX_COLUMN_LEN  
ATTR_ORACLE_NULLS  
ATTR_PERSISTENT  
ATTR_PREFETCH  
ATTR_SERVER_INFO  
ATTR_SERVER_VERSION  
ATTR_STATEMENT_CLASS  
ATTR_STRINGIFY_FETCHES  
ATTR_TIMEOUT  
CASE_LOWER  
CASE_NATURAL  
CASE_UPPER  
CURSOR_FWDONLY  
CURSOR_SCROLL  
ERRMODE_EXCEPTION  
ERRMODE_SILENT  
ERRMODE_WARNING  
ERR_ALREADY_EXISTS  
ERR_CANT_MAP  
ERR_CONSTRAINT  
ERR_DISCONNECTED  
ERR_MISMATCH  
ERR_NONE  
ERR_NOT_FOUND  
ERR_NOT_IMPLEMENTED  
ERR_NO_PERM  
ERR_SYNTAX  
ERR_TRUNCATED  
FETCH_ASSOC  
FETCH_BOTH  
FETCH_BOUND  
FETCH_CLASS  
FETCH_CLASSTYPE  
FETCH_COLUMN  
FETCH_FUNC  
FETCH_GROUP  
FETCH_INTO  
FETCH_LAZY  
FETCH_NAMED  
FETCH_NUM  
FETCH_OBJ  
FETCH_ORI_ABS  
FETCH_ORI_FIRST  
FETCH_ORI_LAST  
FETCH_ORI_NEXT  
FETCH_ORI_PRIOR  
FETCH_ORI_REL  
FETCH_SERIALIZE  
FETCH_UNIQUE  
NULL_EMPTY_STRING  
NULL_NATURAL  
NULL_TO_STRING  
PARAM_BOOL  
PARAM_INPUT_OUTPUT  
PARAM_INT  
PARAM_LOB  
PARAM_NULL  
PARAM_STMT  
PARAM_STR  
-
-
[ Top ]
-
-
- - - - - - -
-
Constants
- -
- -
- -
- - ATTR_AUTOCOMMIT - = 0 - [line 35] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CASE - = 8 - [line 36] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CLIENT_VERSION - = 5 - [line 37] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CONNECTION_STATUS - = 7 - [line 38] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CURSOR - = 10 - [line 39] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_CURSOR_NAME - = 9 - [line 40] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_DRIVER_NAME - = 16 - [line 41] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_ERRMODE - = 3 - [line 42] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_FETCH_CATALOG_NAMES - = 15 - [line 43] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_FETCH_TABLE_NAMES - = 14 - [line 44] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_MAX_COLUMN_LEN - = 18 - [line 45] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_ORACLE_NULLS - = 11 - [line 46] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_PERSISTENT - = 12 - [line 47] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_PREFETCH - = 1 - [line 48] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_SERVER_INFO - = 6 - [line 49] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_SERVER_VERSION - = 4 - [line 50] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_STATEMENT_CLASS - = 13 - [line 51] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_STRINGIFY_FETCHES - = 17 - [line 52] - -
- - - -
-
[ Top ]
-
- -
- -
- - ATTR_TIMEOUT - = 2 - [line 53] - -
- - - -
-
[ Top ]
-
- -
- -
- - CASE_LOWER - = 2 - [line 54] - -
- - - -
-
[ Top ]
-
- -
- -
- - CASE_NATURAL - = 0 - [line 55] - -
- - - -
-
[ Top ]
-
- -
- -
- - CASE_UPPER - = 1 - [line 56] - -
- - - -
-
[ Top ]
-
- -
- -
- - CURSOR_FWDONLY - = 0 - [line 57] - -
- - - -
-
[ Top ]
-
- -
- -
- - CURSOR_SCROLL - = 1 - [line 58] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERRMODE_EXCEPTION - = 2 - [line 70] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERRMODE_SILENT - = 0 - [line 71] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERRMODE_WARNING - = 1 - [line 72] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_ALREADY_EXISTS - = NULL - [line 59] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CANT_MAP - = NULL - [line 60] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_CONSTRAINT - = NULL - [line 61] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_DISCONNECTED - = NULL - [line 62] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_MISMATCH - = NULL - [line 63] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NONE - = '00000' - [line 65] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOT_FOUND - = NULL - [line 66] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NOT_IMPLEMENTED - = NULL - [line 67] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_NO_PERM - = NULL - [line 64] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_SYNTAX - = NULL - [line 68] - -
- - - -
-
[ Top ]
-
- -
- -
- - ERR_TRUNCATED - = NULL - [line 69] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ASSOC - = 2 - [line 73] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_BOTH - = 4 - [line 74] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_BOUND - = 6 - [line 75] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_CLASS - = 8 - [line 76] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_CLASSTYPE - = 262144 - [line 77] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_COLUMN - = 7 - [line 78] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_FUNC - = 10 - [line 79] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_GROUP - = 65536 - [line 80] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_INTO - = 9 - [line 81] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_LAZY - = 1 - [line 82] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_NAMED - = 11 - [line 83] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_NUM - = 3 - [line 84] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_OBJ - = 5 - [line 85] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_ABS - = 4 - [line 86] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_FIRST - = 2 - [line 87] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_LAST - = 3 - [line 88] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_NEXT - = 0 - [line 89] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_PRIOR - = 1 - [line 90] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_ORI_REL - = 5 - [line 91] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_SERIALIZE - = 524288 - [line 92] - -
- - - -
-
[ Top ]
-
- -
- -
- - FETCH_UNIQUE - = 196608 - [line 93] - -
- - - -
-
[ Top ]
-
- -
- -
- - NULL_EMPTY_STRING - = 1 - [line 94] - -
- - - -
-
[ Top ]
-
- -
- -
- - NULL_NATURAL - = 0 - [line 95] - -
- - - -
-
[ Top ]
-
- -
- -
- - NULL_TO_STRING - = NULL - [line 96] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_BOOL - = 5 - [line 97] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_INPUT_OUTPUT - = -2147483648 - [line 98] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_INT - = 1 - [line 99] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_LOB - = 3 - [line 100] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_NULL - = 0 - [line 101] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_STMT - = 4 - [line 102] - -
- - - -
-
[ Top ]
-
- -
- -
- - PARAM_STR - = 2 - [line 103] - -
- - - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Db2.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Db2.html deleted file mode 100644 index 7e46d502b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Db2.html +++ /dev/null @@ -1,1495 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Db2

-Source Location: /Doctrine/Adapter/Db2.php

- -

Class Doctrine_Adapter_Db2

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Adapter_Db2 IBM DB2 Adapter [BORROWED FROM ZEND FRAMEWORK] -

- -

- Located in /Doctrine/Adapter/Db2.php [line 35] -

- - -
Doctrine_Adapter
-   |
-   --Doctrine_Adapter_Db2
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- - -

Inherited From Doctrine_Adapter

-
-
-
- Doctrine_Adapter::ATTR_AUTOCOMMIT -
-
- -
-
- Doctrine_Adapter::ATTR_CASE -
-
- -
-
- Doctrine_Adapter::ATTR_CLIENT_VERSION -
-
- -
-
- Doctrine_Adapter::ATTR_CONNECTION_STATUS -
-
- -
-
- Doctrine_Adapter::ATTR_CURSOR -
-
- -
-
- Doctrine_Adapter::ATTR_CURSOR_NAME -
-
- -
-
- Doctrine_Adapter::ATTR_DRIVER_NAME -
-
- -
-
- Doctrine_Adapter::ATTR_ERRMODE -
-
- -
-
- Doctrine_Adapter::ATTR_FETCH_CATALOG_NAMES -
-
- -
-
- Doctrine_Adapter::ATTR_FETCH_TABLE_NAMES -
-
- -
-
- Doctrine_Adapter::ATTR_MAX_COLUMN_LEN -
-
- -
-
- Doctrine_Adapter::ATTR_ORACLE_NULLS -
-
- -
-
- Doctrine_Adapter::ATTR_PERSISTENT -
-
- -
-
- Doctrine_Adapter::ATTR_PREFETCH -
-
- -
-
- Doctrine_Adapter::ATTR_SERVER_INFO -
-
- -
-
- Doctrine_Adapter::ATTR_SERVER_VERSION -
-
- -
-
- Doctrine_Adapter::ATTR_STATEMENT_CLASS -
-
- -
-
- Doctrine_Adapter::ATTR_STRINGIFY_FETCHES -
-
- -
-
- Doctrine_Adapter::ATTR_TIMEOUT -
-
- -
-
- Doctrine_Adapter::CASE_LOWER -
-
- -
-
- Doctrine_Adapter::CASE_NATURAL -
-
- -
-
- Doctrine_Adapter::CASE_UPPER -
-
- -
-
- Doctrine_Adapter::CURSOR_FWDONLY -
-
- -
-
- Doctrine_Adapter::CURSOR_SCROLL -
-
- -
-
- Doctrine_Adapter::ERRMODE_EXCEPTION -
-
- -
-
- Doctrine_Adapter::ERRMODE_SILENT -
-
- -
-
- Doctrine_Adapter::ERRMODE_WARNING -
-
- -
-
- Doctrine_Adapter::ERR_ALREADY_EXISTS -
-
- -
-
- Doctrine_Adapter::ERR_CANT_MAP -
-
- -
-
- Doctrine_Adapter::ERR_CONSTRAINT -
-
- -
-
- Doctrine_Adapter::ERR_DISCONNECTED -
-
- -
-
- Doctrine_Adapter::ERR_MISMATCH -
-
- -
-
- Doctrine_Adapter::ERR_NONE -
-
- -
-
- Doctrine_Adapter::ERR_NOT_FOUND -
-
- -
-
- Doctrine_Adapter::ERR_NOT_IMPLEMENTED -
-
- -
-
- Doctrine_Adapter::ERR_NO_PERM -
-
- -
-
- Doctrine_Adapter::ERR_SYNTAX -
-
- -
-
- Doctrine_Adapter::ERR_TRUNCATED -
-
- -
-
- Doctrine_Adapter::FETCH_ASSOC -
-
- -
-
- Doctrine_Adapter::FETCH_BOTH -
-
- -
-
- Doctrine_Adapter::FETCH_BOUND -
-
- -
-
- Doctrine_Adapter::FETCH_CLASS -
-
- -
-
- Doctrine_Adapter::FETCH_CLASSTYPE -
-
- -
-
- Doctrine_Adapter::FETCH_COLUMN -
-
- -
-
- Doctrine_Adapter::FETCH_FUNC -
-
- -
-
- Doctrine_Adapter::FETCH_GROUP -
-
- -
-
- Doctrine_Adapter::FETCH_INTO -
-
- -
-
- Doctrine_Adapter::FETCH_LAZY -
-
- -
-
- Doctrine_Adapter::FETCH_NAMED -
-
- -
-
- Doctrine_Adapter::FETCH_NUM -
-
- -
-
- Doctrine_Adapter::FETCH_OBJ -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_ABS -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_FIRST -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_LAST -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_NEXT -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_PRIOR -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_REL -
-
- -
-
- Doctrine_Adapter::FETCH_SERIALIZE -
-
- -
-
- Doctrine_Adapter::FETCH_UNIQUE -
-
- -
-
- Doctrine_Adapter::NULL_EMPTY_STRING -
-
- -
-
- Doctrine_Adapter::NULL_NATURAL -
-
- -
-
- Doctrine_Adapter::NULL_TO_STRING -
-
- -
-
- Doctrine_Adapter::PARAM_BOOL -
-
- -
-
- Doctrine_Adapter::PARAM_INPUT_OUTPUT -
-
- -
-
- Doctrine_Adapter::PARAM_INT -
-
- -
-
- Doctrine_Adapter::PARAM_LOB -
-
- -
-
- Doctrine_Adapter::PARAM_NULL -
-
- -
-
- Doctrine_Adapter::PARAM_STMT -
-
- -
-
- Doctrine_Adapter::PARAM_STR -
-
- -
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
array  $_config  User-provided configuration.
int  $_execute_mode  Execution mode
string  $_lastInsertTable  Table name of the last accessed table for an insert operation This is a DB2-Adapter-specific member variable with the utmost probability you might not find it in other adapters...
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Adapter_Db2  __construct()  Constructor.
void  closeConnection()  Force the connection to close.
string  getQuoteIdentifierSymbol()  
Doctrine_Statement_Db2  prepare()  Returns an SQL statement for preparation.
void  setFetchMode()  Set the fetch mode.
void  _beginTransaction()  Begin a transaction.
void  _commit()  Commit a transaction.
void  _connect()  Creates a connection resource.
int  _getExecuteMode()  Gets the execution mode
string  _quote()  Quote a raw string.
void  _rollBack()  Rollback a transaction.
void  _setExecuteMode()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_config - = array(
'dbname' => null,
'username' => null,
'password' => null,
'host' => 'localhost',
'port' => '50000',
'protocol' => 'TCPIP',
'persistent' => false
)
[line 52] -
-
- -

User-provided configuration. -

-

Basic keys are:

username => (string) Connect to the database as this username. password => (string) Password associated with the username. host => (string) What host to connect to (default 127.0.0.1) dbname => (string) The name of the database to user protocol => (string) Protocol to use, defaults to "TCPIP" port => (integer) Port number to use for TCP/IP if protocol is "TCPIP" persistent => (boolean) Set TRUE to use a persistent connection (db2_pconnect)

API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - int   - $_execute_mode - = DB2_AUTOCOMMIT_ON [line 68] - -
- -

Execution mode -

- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $_lastInsertTable - = null [line 78] - -
- -

Table name of the last accessed table for an insert operation This is a DB2-Adapter-specific member variable with the utmost probability you might not find it in other adapters... -

- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 97] -
-
- -
-
-
  - Doctrine_Adapter_Db2 __construct( - -$config  -) -
-

- -

Constructor. -

-

$config is an array of key/value pairs containing configuration options. These options are common to most adapters:

dbname => (string) The name of the database to user username => (string) Connect to the database as this username. password => (string) Password associated with the username. host => (string) What host to connect to, defaults to localhost port => (string) The port of the database, defaults to 50000 persistent => (boolean) Whether to use a persistent connection or not, defaults to false protocol => (string) The network protocol, defaults to TCPIP options => (array) Other database options such as autocommit, case, and cursor options

- Parameters:
- - - - -
- array   - $config:  - An array of configuration keys.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- closeConnection  [line 194] -
-
- -
-
-
  - void closeConnection( -) -
-

- -

Force the connection to close. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuoteIdentifierSymbol  [line 266] -
-
- -
-
-
  - string getQuoteIdentifierSymbol( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepare  [line 206] -
-
- -
-
-
  - Doctrine_Statement_Db2 prepare( -string -$sql  -) -
-

- -

Returns an SQL statement for preparation. -

- - Parameters:
- - - - -
- string   - $sql:  - The SQL statement with placeholders.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setFetchMode  [line 319] -
-
- -
-
-
  - void setFetchMode( -integer -$mode  -) -
-

- -

Set the fetch mode. -

- - Parameters:
- - - - -
- integer   - $mode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- _beginTransaction  [line 277] -
-
- -
-
-
  - void _beginTransaction( -) -
-

- -

Begin a transaction. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _commit  [line 287] -
-
- -
-
-
  - void _commit( -) -
-

- -

Commit a transaction. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _connect  [line 129] -
-
- -
-
-
  - void _connect( -) -
-

- -

Creates a connection resource. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _getExecuteMode  [line 219] -
-
- -
-
-
  - int _getExecuteMode( -) -
-

- -

Gets the execution mode -

- -
- API Tags:
- - - - - - - -
Return:  the execution mode (DB2_AUTOCOMMIT_ON or DB2_AUTOCOMMIT_OFF)
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- _quote  [line 248] -
-
- -
-
-
  - string _quote( -string -$value  -) -
-

- -

Quote a raw string. -

- - Parameters:
- - - - -
- string   - $value:  - Raw string
- -
- API Tags:
- - - - - - - -
Return:  Quoted string
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _rollBack  [line 303] -
-
- -
-
-
  - void _rollBack( -) -
-

- -

Rollback a transaction. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _setExecuteMode  [line 228] -
-
- -
-
-
  - void _setExecuteMode( -integer -$mode  -) -
-

- - - Parameters:
- - - - -
- integer   - $mode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mock.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mock.html deleted file mode 100644 index cd9b2b1f4..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mock.html +++ /dev/null @@ -1,1506 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Mock

-Source Location: /Doctrine/Adapter/Mock.php

- -

Class Doctrine_Adapter_Mock

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Adapter_Mock This class is used for special testing purposes. -

- -

- Located in /Doctrine/Adapter/Mock.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1819 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
mixed  $exception  
mixed  $lastInsertIdFail  
mixed  $name  
mixed  $queries  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Adapter_Mock  __construct()  
void  addQuery()  
void  beginTransaction()  
void  commit()  
void  count()  
void  errorCode()  
void  errorInfo()  
void  exec()  
void  forceException()  
void  forceLastInsertIdFail()  
void  getAll()  
void  getAttribute()  
void  getName()  
void  lastInsertId()  
void  pop()  
void  prepare()  
void  query()  
void  quote()  
void  rollBack()  
void  setAttribute()  
void  sqliteCreateFunction()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $exception - = array() [line 40] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $lastInsertIdFail - = false [line 42] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $name - [line 36] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $queries - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 44] -
-
- -
-
-
  - Doctrine_Adapter_Mock __construct( -[ -$name = null]  -) -
-

- - - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addQuery  [line 67] -
-
- -
-
-
  - void addQuery( - -$query  -) -
-

- - - Parameters:
- - - - -
-    - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- beginTransaction  [line 135] -
-
- -
-
-
  - void beginTransaction( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::beginTransaction()
-
- -
-
[ Top ]
-
- -
- -
- commit  [line 139] -
-
- -
-
-
  - void commit( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::commit()
-
- -
-
[ Top ]
-
- -
- -
- count  [line 131] -
-
- -
-
-
  - void count( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- errorCode  [line 147] -
-
- -
-
-
  - void errorCode( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::errorCode()
-
- -
-
[ Top ]
-
- -
- -
- errorInfo  [line 149] -
-
- -
-
-
  - void errorInfo( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::errorInfo()
-
- -
-
[ Top ]
-
- -
- -
- exec  [line 98] -
-
- -
-
-
  - void exec( - -$statement  -) -
-

- - - Parameters:
- - - - -
-    - $statement:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::exec()
-
- -
-
[ Top ]
-
- -
- -
- forceException  [line 56] -
-
- -
-
-
  - void forceException( - -$name, [ -$message = ''], [ -$code = 0]  -) -
-

- - - Parameters:
- - - - - - - - - - -
-    - $name:  -
-    - $message:  -
-    - $code:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- forceLastInsertIdFail  [line 114] -
-
- -
-
-
  - void forceLastInsertIdFail( -[ -$fail = true]  -) -
-

- - - Parameters:
- - - - -
-    - $fail:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAll  [line 90] -
-
- -
-
-
  - void getAll( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAttribute  [line 151] -
-
- -
-
-
  - void getAttribute( - -$attribute  -) -
-

- - - Parameters:
- - - - -
-    - $attribute:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getName  [line 48] -
-
- -
-
-
  - void getName( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 122] -
-
- -
-
-
  - void lastInsertId( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::lastInsertId()
-
- -
-
[ Top ]
-
- -
- -
- pop  [line 52] -
-
- -
-
-
  - void pop( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepare  [line 60] -
-
- -
-
-
  - void prepare( - -$query  -) -
-

- - - Parameters:
- - - - -
-    - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::prepare()
-
- -
-
[ Top ]
-
- -
- -
- query  [line 71] -
-
- -
-
-
  - void query( - -$query  -) -
-

- - - Parameters:
- - - - -
-    - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::query()
-
- -
-
[ Top ]
-
- -
- -
- quote  [line 94] -
-
- -
-
-
  - void quote( - -$input  -) -
-

- - - Parameters:
- - - - -
-    - $input:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::quote()
-
- -
-
[ Top ]
-
- -
- -
- rollBack  [line 143] -
-
- -
-
-
  - void rollBack( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Interface::rollBack()
-
- -
-
[ Top ]
-
- -
- -
- setAttribute  [line 156] -
-
- -
-
-
  - void setAttribute( - -$attribute, -$value  -) -
-

- - - Parameters:
- - - - - - - -
-    - $attribute:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- sqliteCreateFunction  [line 160] -
-
- -
-
-
  - void sqliteCreateFunction( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mysqli.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mysqli.html deleted file mode 100644 index e5b50c570..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Mysqli.html +++ /dev/null @@ -1,1135 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Mysqli

-Source Location: /Doctrine/Adapter/Mysqli.php

- -

Class Doctrine_Adapter_Mysqli

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Adapter_Mysqli This class is used for special testing purposes. -

- -

- Located in /Doctrine/Adapter/Mysqli.php [line 34] -

- - -
Doctrine_Adapter
-   |
-   --Doctrine_Adapter_Mysqli
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- - -

Inherited From Doctrine_Adapter

-
-
-
- Doctrine_Adapter::ATTR_AUTOCOMMIT -
-
- -
-
- Doctrine_Adapter::ATTR_CASE -
-
- -
-
- Doctrine_Adapter::ATTR_CLIENT_VERSION -
-
- -
-
- Doctrine_Adapter::ATTR_CONNECTION_STATUS -
-
- -
-
- Doctrine_Adapter::ATTR_CURSOR -
-
- -
-
- Doctrine_Adapter::ATTR_CURSOR_NAME -
-
- -
-
- Doctrine_Adapter::ATTR_DRIVER_NAME -
-
- -
-
- Doctrine_Adapter::ATTR_ERRMODE -
-
- -
-
- Doctrine_Adapter::ATTR_FETCH_CATALOG_NAMES -
-
- -
-
- Doctrine_Adapter::ATTR_FETCH_TABLE_NAMES -
-
- -
-
- Doctrine_Adapter::ATTR_MAX_COLUMN_LEN -
-
- -
-
- Doctrine_Adapter::ATTR_ORACLE_NULLS -
-
- -
-
- Doctrine_Adapter::ATTR_PERSISTENT -
-
- -
-
- Doctrine_Adapter::ATTR_PREFETCH -
-
- -
-
- Doctrine_Adapter::ATTR_SERVER_INFO -
-
- -
-
- Doctrine_Adapter::ATTR_SERVER_VERSION -
-
- -
-
- Doctrine_Adapter::ATTR_STATEMENT_CLASS -
-
- -
-
- Doctrine_Adapter::ATTR_STRINGIFY_FETCHES -
-
- -
-
- Doctrine_Adapter::ATTR_TIMEOUT -
-
- -
-
- Doctrine_Adapter::CASE_LOWER -
-
- -
-
- Doctrine_Adapter::CASE_NATURAL -
-
- -
-
- Doctrine_Adapter::CASE_UPPER -
-
- -
-
- Doctrine_Adapter::CURSOR_FWDONLY -
-
- -
-
- Doctrine_Adapter::CURSOR_SCROLL -
-
- -
-
- Doctrine_Adapter::ERRMODE_EXCEPTION -
-
- -
-
- Doctrine_Adapter::ERRMODE_SILENT -
-
- -
-
- Doctrine_Adapter::ERRMODE_WARNING -
-
- -
-
- Doctrine_Adapter::ERR_ALREADY_EXISTS -
-
- -
-
- Doctrine_Adapter::ERR_CANT_MAP -
-
- -
-
- Doctrine_Adapter::ERR_CONSTRAINT -
-
- -
-
- Doctrine_Adapter::ERR_DISCONNECTED -
-
- -
-
- Doctrine_Adapter::ERR_MISMATCH -
-
- -
-
- Doctrine_Adapter::ERR_NONE -
-
- -
-
- Doctrine_Adapter::ERR_NOT_FOUND -
-
- -
-
- Doctrine_Adapter::ERR_NOT_IMPLEMENTED -
-
- -
-
- Doctrine_Adapter::ERR_NO_PERM -
-
- -
-
- Doctrine_Adapter::ERR_SYNTAX -
-
- -
-
- Doctrine_Adapter::ERR_TRUNCATED -
-
- -
-
- Doctrine_Adapter::FETCH_ASSOC -
-
- -
-
- Doctrine_Adapter::FETCH_BOTH -
-
- -
-
- Doctrine_Adapter::FETCH_BOUND -
-
- -
-
- Doctrine_Adapter::FETCH_CLASS -
-
- -
-
- Doctrine_Adapter::FETCH_CLASSTYPE -
-
- -
-
- Doctrine_Adapter::FETCH_COLUMN -
-
- -
-
- Doctrine_Adapter::FETCH_FUNC -
-
- -
-
- Doctrine_Adapter::FETCH_GROUP -
-
- -
-
- Doctrine_Adapter::FETCH_INTO -
-
- -
-
- Doctrine_Adapter::FETCH_LAZY -
-
- -
-
- Doctrine_Adapter::FETCH_NAMED -
-
- -
-
- Doctrine_Adapter::FETCH_NUM -
-
- -
-
- Doctrine_Adapter::FETCH_OBJ -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_ABS -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_FIRST -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_LAST -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_NEXT -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_PRIOR -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_REL -
-
- -
-
- Doctrine_Adapter::FETCH_SERIALIZE -
-
- -
-
- Doctrine_Adapter::FETCH_UNIQUE -
-
- -
-
- Doctrine_Adapter::NULL_EMPTY_STRING -
-
- -
-
- Doctrine_Adapter::NULL_NATURAL -
-
- -
-
- Doctrine_Adapter::NULL_TO_STRING -
-
- -
-
- Doctrine_Adapter::PARAM_BOOL -
-
- -
-
- Doctrine_Adapter::PARAM_INPUT_OUTPUT -
-
- -
-
- Doctrine_Adapter::PARAM_INT -
-
- -
-
- Doctrine_Adapter::PARAM_LOB -
-
- -
-
- Doctrine_Adapter::PARAM_NULL -
-
- -
-
- Doctrine_Adapter::PARAM_STMT -
-
- -
-
- Doctrine_Adapter::PARAM_STR -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  closeConnection()  Force the connection to close.
integer  lastInsertId()  Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
Doctrine_Statement_Mysqli  prepare()  Prepare a statement and return a PDOStatement-like object.
void  _beginTransaction()  Begin a transaction.
void  _commit()  Commit a transaction.
void  _connect()  Creates a connection to the database.
void  _rollBack()  Roll-back a transaction.
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- closeConnection  [line 65] -
-
- -
-
-
  - void closeConnection( -) -
-

- -

Force the connection to close. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 101] -
-
- -
-
-
  - integer lastInsertId( -[string -$tableName = null], [string -$primaryKey = null]  -) -
-

- -

Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column. -

-

As a convention, on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence from the arguments and returns the last id generated by that sequence. On RDBMS brands that support IDENTITY/AUTOINCREMENT columns, this method returns the last value generated for such a column, and the table name argument is disregarded.

MySQL does not support sequences, so $tableName and $primaryKey are ignored.

- Parameters:
- - - - - - - -
- string   - $tableName:  - OPTIONAL Name of table.
- string   - $primaryKey:  - OPTIONAL Name of primary key column.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepare  [line 77] -
-
- -
-
-
  - Doctrine_Statement_Mysqli prepare( -string -$sql  -) -
-

- -

Prepare a statement and return a PDOStatement-like object. -

- - Parameters:
- - - - -
- string   - $sql:  - SQL query
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- _beginTransaction  [line 112] -
-
- -
-
-
  - void _beginTransaction( -) -
-

- -

Begin a transaction. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _commit  [line 123] -
-
- -
-
-
  - void _commit( -) -
-

- -

Commit a transaction. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _connect  [line 42] -
-
- -
-
-
  - void _connect( -) -
-

- -

Creates a connection to the database. -

- -
- API Tags:
- - - - -
Access:  protected
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Mysqli_Exception
- - -
-
[ Top ]
-
- -
- -
- _rollBack  [line 135] -
-
- -
-
-
  - void _rollBack( -) -
-

- -

Roll-back a transaction. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Oracle.html deleted file mode 100644 index a04b2cb98..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Oracle.html +++ /dev/null @@ -1,1519 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Oracle

-Source Location: /Doctrine/Adapter/Oracle.php

- -

Class Doctrine_Adapter_Oracle

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Adapter_Oracle [BORROWED FROM ZEND FRAMEWORK] -

- -

- Located in /Doctrine/Adapter/Oracle.php [line 35] -

- - -
Doctrine_Adapter
-   |
-   --Doctrine_Adapter_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- - -

Inherited From Doctrine_Adapter

-
-
-
- Doctrine_Adapter::ATTR_AUTOCOMMIT -
-
- -
-
- Doctrine_Adapter::ATTR_CASE -
-
- -
-
- Doctrine_Adapter::ATTR_CLIENT_VERSION -
-
- -
-
- Doctrine_Adapter::ATTR_CONNECTION_STATUS -
-
- -
-
- Doctrine_Adapter::ATTR_CURSOR -
-
- -
-
- Doctrine_Adapter::ATTR_CURSOR_NAME -
-
- -
-
- Doctrine_Adapter::ATTR_DRIVER_NAME -
-
- -
-
- Doctrine_Adapter::ATTR_ERRMODE -
-
- -
-
- Doctrine_Adapter::ATTR_FETCH_CATALOG_NAMES -
-
- -
-
- Doctrine_Adapter::ATTR_FETCH_TABLE_NAMES -
-
- -
-
- Doctrine_Adapter::ATTR_MAX_COLUMN_LEN -
-
- -
-
- Doctrine_Adapter::ATTR_ORACLE_NULLS -
-
- -
-
- Doctrine_Adapter::ATTR_PERSISTENT -
-
- -
-
- Doctrine_Adapter::ATTR_PREFETCH -
-
- -
-
- Doctrine_Adapter::ATTR_SERVER_INFO -
-
- -
-
- Doctrine_Adapter::ATTR_SERVER_VERSION -
-
- -
-
- Doctrine_Adapter::ATTR_STATEMENT_CLASS -
-
- -
-
- Doctrine_Adapter::ATTR_STRINGIFY_FETCHES -
-
- -
-
- Doctrine_Adapter::ATTR_TIMEOUT -
-
- -
-
- Doctrine_Adapter::CASE_LOWER -
-
- -
-
- Doctrine_Adapter::CASE_NATURAL -
-
- -
-
- Doctrine_Adapter::CASE_UPPER -
-
- -
-
- Doctrine_Adapter::CURSOR_FWDONLY -
-
- -
-
- Doctrine_Adapter::CURSOR_SCROLL -
-
- -
-
- Doctrine_Adapter::ERRMODE_EXCEPTION -
-
- -
-
- Doctrine_Adapter::ERRMODE_SILENT -
-
- -
-
- Doctrine_Adapter::ERRMODE_WARNING -
-
- -
-
- Doctrine_Adapter::ERR_ALREADY_EXISTS -
-
- -
-
- Doctrine_Adapter::ERR_CANT_MAP -
-
- -
-
- Doctrine_Adapter::ERR_CONSTRAINT -
-
- -
-
- Doctrine_Adapter::ERR_DISCONNECTED -
-
- -
-
- Doctrine_Adapter::ERR_MISMATCH -
-
- -
-
- Doctrine_Adapter::ERR_NONE -
-
- -
-
- Doctrine_Adapter::ERR_NOT_FOUND -
-
- -
-
- Doctrine_Adapter::ERR_NOT_IMPLEMENTED -
-
- -
-
- Doctrine_Adapter::ERR_NO_PERM -
-
- -
-
- Doctrine_Adapter::ERR_SYNTAX -
-
- -
-
- Doctrine_Adapter::ERR_TRUNCATED -
-
- -
-
- Doctrine_Adapter::FETCH_ASSOC -
-
- -
-
- Doctrine_Adapter::FETCH_BOTH -
-
- -
-
- Doctrine_Adapter::FETCH_BOUND -
-
- -
-
- Doctrine_Adapter::FETCH_CLASS -
-
- -
-
- Doctrine_Adapter::FETCH_CLASSTYPE -
-
- -
-
- Doctrine_Adapter::FETCH_COLUMN -
-
- -
-
- Doctrine_Adapter::FETCH_FUNC -
-
- -
-
- Doctrine_Adapter::FETCH_GROUP -
-
- -
-
- Doctrine_Adapter::FETCH_INTO -
-
- -
-
- Doctrine_Adapter::FETCH_LAZY -
-
- -
-
- Doctrine_Adapter::FETCH_NAMED -
-
- -
-
- Doctrine_Adapter::FETCH_NUM -
-
- -
-
- Doctrine_Adapter::FETCH_OBJ -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_ABS -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_FIRST -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_LAST -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_NEXT -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_PRIOR -
-
- -
-
- Doctrine_Adapter::FETCH_ORI_REL -
-
- -
-
- Doctrine_Adapter::FETCH_SERIALIZE -
-
- -
-
- Doctrine_Adapter::FETCH_UNIQUE -
-
- -
-
- Doctrine_Adapter::NULL_EMPTY_STRING -
-
- -
-
- Doctrine_Adapter::NULL_NATURAL -
-
- -
-
- Doctrine_Adapter::NULL_TO_STRING -
-
- -
-
- Doctrine_Adapter::PARAM_BOOL -
-
- -
-
- Doctrine_Adapter::PARAM_INPUT_OUTPUT -
-
- -
-
- Doctrine_Adapter::PARAM_INT -
-
- -
-
- Doctrine_Adapter::PARAM_LOB -
-
- -
-
- Doctrine_Adapter::PARAM_NULL -
-
- -
-
- Doctrine_Adapter::PARAM_STMT -
-
- -
-
- Doctrine_Adapter::PARAM_STR -
-
- -
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
array  $_config  User-provided configuration.
integer  $_execute_mode  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Adapter_Oracle  __construct()  Constructor.
void  closeConnection()  Force the connection to close.
Doctrine_Statement_Oracle  prepare()  Returns an SQL statement for preparation.
string  quoteTableAs()  Quote a table identifier and alias.
void  setFetchMode()  Set the fetch mode.
void  _beginTransaction()  Leave autocommit mode and begin a transaction.
void  _commit()  Commit a transaction and return to autocommit mode.
void  _connect()  Creates a connection resource.
void  _getExecuteMode()  
string  _quote()  Quote a raw string.
void  _rollBack()  Roll back a transaction and return to autocommit mode.
void  _setExecuteMode()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_config - = array(
'dbname' => null,
'username' => null,
'password' => null,
)
[line 49] -
-
- -

User-provided configuration. -

-

Basic keys are:

username => (string) Connect to the database as this username. password => (string) Password associated with the username. dbname => Either the name of the local Oracle instance, or the name of the entry in tnsnames.ora to which you want to connect.

API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_execute_mode - = OCI_COMMIT_ON_SUCCESS [line 58] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 74] -
-
- -
-
-
  - Doctrine_Adapter_Oracle __construct( - -$config  -) -
-

- -

Constructor. -

-

$config is an array of key/value pairs containing configuration options. These options are common to most adapters:

username => (string) Connect to the database as this username. password => (string) Password associated with the username. dbname => Either the name of the local Oracle instance, or the name of the entry in tnsnames.ora to which you want to connect.

- Parameters:
- - - - -
- array   - $config:  - An array of configuration keys.
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Exception
- - -
-
[ Top ]
-
- -
- -
- closeConnection  [line 139] -
-
- -
-
-
  - void closeConnection( -) -
-

- -

Force the connection to close. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepare  [line 153] -
-
- -
-
-
  - Doctrine_Statement_Oracle prepare( -string -$sql  -) -
-

- -

Returns an SQL statement for preparation. -

- - Parameters:
- - - - -
- string   - $sql:  - The SQL statement with placeholders.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- quoteTableAs  [line 180] -
-
- -
-
-
  - string quoteTableAs( -string|array|Doctrine_Expr -$ident, string -$alias  -) -
-

- -

Quote a table identifier and alias. -

- - Parameters:
- - - - - - - -
- string|array|Doctrine_Expr   - $ident:  - The identifier or expression.
- string   - $alias:  - An alias for the table.
- -
- API Tags:
- - - - - - - -
Return:  The quoted identifier and alias.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setFetchMode  [line 230] -
-
- -
-
-
  - void setFetchMode( -integer -$mode  -) -
-

- -

Set the fetch mode. -

- - Parameters:
- - - - -
- integer   - $mode:  - A fetch mode.
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Todo:  Support FETCH_CLASS and FETCH_INTO.
Throws:  Doctrine_Adapter_Exception
- - -
-
[ Top ]
-
- -
- -
- _beginTransaction  [line 190] -
-
- -
-
-
  - void _beginTransaction( -) -
-

- -

Leave autocommit mode and begin a transaction. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _commit  [line 200] -
-
- -
-
-
  - void _commit( -) -
-

- -

Commit a transaction and return to autocommit mode. -

- -
- API Tags:
- - - - -
Access:  protected
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Oracle_Exception
- - -
-
[ Top ]
-
- -
- -
- _connect  [line 106] -
-
- -
-
-
  - void _connect( -) -
-

- -

Creates a connection resource. -

- -
- API Tags:
- - - - -
Access:  protected
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Oracle_Exception
- - -
-
[ Top ]
-
- -
- -
- _getExecuteMode  [line 264] -
-
- -
-
-
  - void _getExecuteMode( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- _quote  [line 167] -
-
- -
-
-
  - string _quote( -string -$value  -) -
-

- -

Quote a raw string. -

- - Parameters:
- - - - -
- string   - $value:  - Raw string
- -
- API Tags:
- - - - - - - -
Return:  Quoted string
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- _rollBack  [line 213] -
-
- -
-
-
  - void _rollBack( -) -
-

- -

Roll back a transaction and return to autocommit mode. -

- -
- API Tags:
- - - - -
Access:  protected
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Oracle_Exception
- - -
-
[ Top ]
-
- -
- -
- _setExecuteMode  [line 248] -
-
- -
-
-
  - void _setExecuteMode( -integer -$mode  -) -
-

- - - Parameters:
- - - - -
- integer   - $mode:  -
- -
- API Tags:
- - - - -
Access:  private
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Exception
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Statement_Mock.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Statement_Mock.html deleted file mode 100644 index de9e160b7..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/Doctrine_Adapter_Statement_Mock.html +++ /dev/null @@ -1,1655 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Statement_Mock

-Source Location: /Doctrine/Adapter/Statement/Mock.php

- -

Class Doctrine_Adapter_Statement_Mock

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Adapter_Statement_Mock This class is used for special testing purposes. -

- -

- Located in /Doctrine/Adapter/Statement/Mock.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1917 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $mock  
mixed  $queryString  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Adapter_Statement_Mock  __construct()  
boolean  bindColumn()  bindColumn Bind a column to a PHP variable
boolean  bindParam()  bindParam
boolean  bindValue()  bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
boolean  closeCursor()  closeCursor Closes the cursor, enabling the statement to be executed again.
integer  columnCount()  columnCount Returns the number of columns in the result set
string  errorCode()  errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
array  errorInfo()  errorInfo Fetch extended error information associated with the last operation on the statement handle
boolean  execute()  execute Executes a prepared statement
mixed  fetch()  fetch
array  fetchAll()  fetchAll Returns an array containing all of the result set rows
string  fetchColumn()  fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
mixed  fetchObject()  fetchObject Fetches the next row and returns it as an object.
mixed  getAttribute()  getAttribute Retrieve a statement attribute
array  getColumnMeta()  getColumnMeta Returns metadata for a column in a result set
boolean  nextRowset()  nextRowset Advances to the next rowset in a multi-rowset statement handle
integer  rowCount()  rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
boolean  setAttribute()  setAttribute Set a statement attribute
boolean  setFetchMode()  setFetchMode Set the default fetch mode for this statement
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $mock - [line 36] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $queryString - [line 38] - -
- - API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 40] -
-
- -
-
-
  - Doctrine_Adapter_Statement_Mock __construct( - -$mock  -) -
-

- - - Parameters:
- - - - -
-    - $mock:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- bindColumn  [line 55] -
-
- -
-
-
  - boolean bindColumn( -mixed -$column, string -$param, [integer -$type = null]  -) -
-

- -

bindColumn Bind a column to a PHP variable -

- - Parameters:
- - - - - - - - - - -
- mixed   - $column:  - Number of the column (1-indexed) or name of the column in the result set. If using the column name, be aware that the name should match the case of the column, as returned by the driver.
- string   - $param:  - Name of the PHP variable to which the column will be bound.
- integer   - $type:  - Data type of the parameter, specified by the Doctrine::PARAM_* constants.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::bindColumn()
-
bindColumn Bind a column to a PHP variable
-
- -
-
[ Top ]
-
- -
- -
- bindParam  [line 104] -
-
- -
-
-
  - boolean bindParam( - -$column, mixed -$variable, [integer -$type = null], [integer -$length = null], [mixed -$driverOptions = array()], mixed -$param  -) -
-

- -

bindParam -

-

Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. Unlike Doctrine_Adapter_Statement_Interface->bindValue(), the variable is bound as a reference and will only be evaluated at the time that Doctrine_Adapter_Statement_Interface->execute() is called.

Most parameters are input parameters, that is, parameters that are used in a read-only fashion to build up the query. Some drivers support the invocation of stored procedures that return data as output parameters, and some also as input/output parameters that both send in data and are updated to receive it.

- Parameters:
- - - - - - - - - - - - - - - - - - - -
- mixed   - $param:  - Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter
- mixed   - $variable:  - Name of the PHP variable to bind to the SQL statement parameter.
- integer   - $type:  - Explicit data type for the parameter using the Doctrine::PARAM_* constants. To return an INOUT parameter from a stored procedure, use the bitwise OR operator to set the Doctrine::PARAM_INPUT_OUTPUT bits for the data_type parameter.
- integer   - $length:  - Length of the data type. To indicate that a parameter is an OUT parameter from a stored procedure, you must explicitly set the length.
- mixed   - $driverOptions:  -
-    - $column:  -
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::bindParam()
-
bindParam
-
- -
-
[ Top ]
-
- -
- -
- bindValue  [line 73] -
-
- -
-
-
  - boolean bindValue( -mixed -$param, mixed -$value, [integer -$type = null]  -) -
-

- -

bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. -

- - Parameters:
- - - - - - - - - - -
- mixed   - $param:  - Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter
- mixed   - $value:  - The value to bind to the parameter.
- integer   - $type:  - Explicit data type for the parameter using the Doctrine::PARAM_* constants.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::bindValue()
-
bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
- -
-
[ Top ]
-
- -
- -
- closeCursor  [line 114] -
-
- -
-
-
  - boolean closeCursor( -) -
-

- -

closeCursor Closes the cursor, enabling the statement to be executed again. -

- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::closeCursor()
-
closeCursor Closes the cursor, enabling the statement to be executed again.
-
- -
-
[ Top ]
-
- -
- -
- columnCount  [line 126] -
-
- -
-
-
  - integer columnCount( -) -
-

- -

columnCount Returns the number of columns in the result set -

- -
- API Tags:
- - - - - - - -
Return:  Returns the number of columns in the result set represented by the Doctrine_Adapter_Statement_Interface object. If there is no result set, this method should return 0.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::columnCount()
-
columnCount Returns the number of columns in the result set
-
- -
-
[ Top ]
-
- -
- -
- errorCode  [line 137] -
-
- -
-
-
  - string errorCode( -) -
-

- -

errorCode Fetch the SQLSTATE associated with the last operation on the statement handle -

- -
- API Tags:
- - - - - - - - - - -
Return:  error code string
See:  Doctrine_Adapter_Interface::errorCode()
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::errorCode()
-
errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
- -
-
[ Top ]
-
- -
- -
- errorInfo  [line 148] -
-
- -
-
-
  - array errorInfo( -) -
-

- -

errorInfo Fetch extended error information associated with the last operation on the statement handle -

- -
- API Tags:
- - - - - - - - - - -
Return:  error info array
See:  Doctrine_Adapter_Interface::errorInfo()
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::errorInfo()
-
errorInfo Fetch extended error information associated with the last operation on the statement handle
-
- -
-
[ Top ]
-
- -
- -
- execute  [line 217] -
-
- -
-
-
  - boolean execute( -[array -$params = null]  -) -
-

- -

execute Executes a prepared statement -

-

If the prepared statement included parameter markers, you must either: call PDOStatement->bindParam() to bind PHP variables to the parameter markers: bound variables pass their value as input and receive the output value, if any, of their associated parameter markers or pass an array of input-only parameter values

- Parameters:
- - - - -
- array   - $params:  - An array of values with as many elements as there are bound parameters in the SQL statement being executed.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::execute()
-
execute Executes a prepared statement
-
- -
-
[ Top ]
-
- -
- -
- fetch  [line 179] -
-
- -
-
-
  - mixed fetch( -[integer -$fetchStyle = Doctrine::FETCH_BOTH], [integer -$cursorOrientation = Doctrine::FETCH_ORI_NEXT], [integer -$cursorOffset = null]  -) -
-

- -

fetch -

- - Parameters:
- - - - - - - - - - -
- integer   - $fetchStyle:  - Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH
- integer   - $cursorOrientation:  - For a PDOStatement object representing a scrollable cursor, this value determines which row will be returned to the caller. This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your Doctrine_Adapter_Statement_Interface object, you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
- integer   - $cursorOffset:  -

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies the absolute number of the row in the result set that shall be fetched.

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value specifies the row to fetch relative to the cursor position before Doctrine_Adapter_Statement_Interface->fetch() was called.

- -
- API Tags:
- - - - - - - -
See:  Doctrine::FETCH_* constants
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetch()
-
fetch
-
- -
-
[ Top ]
-
- -
- -
- fetchAll  [line 198] -
-
- -
-
-
  - array fetchAll( -[ -$fetchMode = Doctrine::FETCH_BOTH], integer -$fetchStyle, integer -$columnIndex  -) -
-

- -

fetchAll Returns an array containing all of the result set rows -

- - Parameters:
- - - - - - - - - - -
- integer   - $fetchStyle:  - Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH
- integer   - $columnIndex:  - Returns the indicated 0-indexed column when the value of $fetchStyle is Doctrine::FETCH_COLUMN. Defaults to 0.
-    - $fetchMode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetchAll()
-
fetchAll Returns an array containing all of the result set rows
-
- -
-
[ Top ]
-
- -
- -
- fetchColumn  [line 235] -
-
- -
-
-
  - string fetchColumn( -[integer -$columnIndex = 0]  -) -
-

- -

fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows. -

- - Parameters:
- - - - -
- integer   - $columnIndex:  - 0-indexed number of the column you wish to retrieve from the row. If no value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn() fetches the first column.
- -
- API Tags:
- - - - - - - -
Return:  returns a single column in the next row of a result set.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetchColumn()
-
fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
- -
-
[ Top ]
-
- -
- -
- fetchObject  [line 252] -
-
- -
-
-
  - mixed fetchObject( -[string -$className = 'stdClass'], [array -$args = array()]  -) -
-

- -

fetchObject Fetches the next row and returns it as an object. -

-

Fetches the next row and returns it as an object. This function is an alternative to Doctrine_Adapter_Statement_Interface->fetch() with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.

- Parameters:
- - - - - - - -
- string   - $className:  - Name of the created class, defaults to stdClass.
- array   - $args:  - Elements of this array are passed to the constructor.
- -
- API Tags:
- - - - - - - -
Return:  an instance of the required class with property names that correspond to the column names or FALSE in case of an error.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetchObject()
-
fetchObject Fetches the next row and returns it as an object.
-
- -
-
[ Top ]
-
- -
- -
- getAttribute  [line 313] -
-
- -
-
-
  - mixed getAttribute( -integer -$attribute  -) -
-

- -

getAttribute Retrieve a statement attribute -

- - Parameters:
- - - - -
- integer   - $attribute:  -
- -
- API Tags:
- - - - - - - - - - -
Return:  the attribute value
See:  Doctrine::ATTR_* constants
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::getAttribute()
-
getAttribute Retrieve a statement attribute
-
- -
-
[ Top ]
-
- -
- -
- getColumnMeta  [line 303] -
-
- -
-
-
  - array getColumnMeta( -integer -$column  -) -
-

- -

getColumnMeta Returns metadata for a column in a result set -

- - Parameters:
- - - - -
- integer   - $column:  - The 0-indexed column in the result set.
- -
- API Tags:
- - - - - - - -
Return:  

Associative meta data array with the following structure:

native_type The PHP native type used to represent the column value. driver:decl_ type The SQL type used to represent the column value in the database. If the column in the result set is the result of a function, this value is not returned by PDOStatement->getColumnMeta(). flags Any flags set for this column. name The name of this column as returned by the database. len The length of this column. Normally -1 for types other than floating point decimals. precision The numeric precision of this column. Normally 0 for types other than floating point decimals. pdo_type The type of this column as represented by the PDO::PARAM_* constants.

Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::getColumnMeta()
-
getColumnMeta Returns metadata for a column in a result set
-
- -
-
[ Top ]
-
- -
- -
- nextRowset  [line 267] -
-
- -
-
-
  - boolean nextRowset( -) -
-

- -

nextRowset Advances to the next rowset in a multi-rowset statement handle -

-

Some database servers support stored procedures that return more than one rowset (also known as a result set). The nextRowset() method enables you to access the second and subsequent rowsets associated with a PDOStatement object. Each rowset can have a different set of columns from the preceding rowset.

-
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::nextRowset()
-
nextRowset Advances to the next rowset in a multi-rowset statement handle
-
- -
-
[ Top ]
-
- -
- -
- rowCount  [line 283] -
-
- -
-
-
  - integer rowCount( -) -
-

- -

rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object. -

-

If the last SQL statement executed by the associated Statement object was a SELECT statement, some databases may return the number of rows returned by that statement. However, this behaviour is not guaranteed for all databases and should not be relied on for portable applications.

-
- API Tags:
- - - - - - - -
Return:  Returns the number of rows.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::rowCount()
-
rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
- -
-
[ Top ]
-
- -
- -
- setAttribute  [line 323] -
-
- -
-
-
  - boolean setAttribute( -integer -$attribute, mixed -$value  -) -
-

- -

setAttribute Set a statement attribute -

- - Parameters:
- - - - - - - -
- integer   - $attribute:  -
- mixed   - $value:  - the value of given attribute
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::setAttribute()
-
setAttribute Set a statement attribute
-
- -
-
[ Top ]
-
- -
- -
- setFetchMode  [line 332] -
-
- -
-
-
  - boolean setFetchMode( -integer -$mode, [ -$arg1 = null], [ -$arg2 = null]  -) -
-

- -

setFetchMode Set the default fetch mode for this statement -

- - Parameters:
- - - - - - - - - - -
- integer   - $mode:  - The fetch mode must be one of the Doctrine::FETCH_* constants.
-    - $arg1:  -
-    - $arg2:  -
- -
- API Tags:
- - - - - - - -
Return:  Returns 1 on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::setFetchMode()
-
setFetchMode Set the default fetch mode for this statement
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Db2.php.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Db2.php.html deleted file mode 100644 index 65f9036c3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Db2.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Db2.php

-Source Location: /Doctrine/Adapter/Db2.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Db2 - - Doctrine_Adapter_Db2 IBM DB2 Adapter [BORROWED FROM ZEND FRAMEWORK] -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mock.php.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mock.php.html deleted file mode 100644 index d78a4ad39..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mock.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mock.php

-Source Location: /Doctrine/Adapter/Mock.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Mock - - Doctrine_Adapter_Mock This class is used for special testing purposes. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mysqli.php.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mysqli.php.html deleted file mode 100644 index 7ce80c170..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Mysqli.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysqli.php

-Source Location: /Doctrine/Adapter/Mysqli.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Mysqli - - Doctrine_Adapter_Mysqli This class is used for special testing purposes. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Oracle.php.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Oracle.php.html deleted file mode 100644 index 6f999db2d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/Adapter/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Oracle - - Doctrine_Adapter_Oracle [BORROWED FROM ZEND FRAMEWORK] -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Statement---Mock.php.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Statement---Mock.php.html deleted file mode 100644 index 43a65a865..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter/_Doctrine---Adapter---Statement---Mock.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mock.php

-Source Location: /Doctrine/Adapter/Statement/Mock.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Statement_Mock - - Doctrine_Adapter_Statement_Mock This class is used for special testing purposes. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Db2_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter_Db2_Exception.html deleted file mode 100644 index 58ff34732..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Db2_Exception.html +++ /dev/null @@ -1,525 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Db2_Exception

-Source Location: /Doctrine/Adapter/Db2/Exception.php

- -

Class Doctrine_Adapter_Db2_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Adapter_Db2_Exception -

- -

- Located in /Doctrine/Adapter/Db2/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Adapter_Exception
-         |
-         --Doctrine_Adapter_Db2_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter_Exception.html deleted file mode 100644 index 0e8332439..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Exception.html +++ /dev/null @@ -1,453 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Exception

-Source Location: /Doctrine/Adapter/Exception.php

- -

Class Doctrine_Adapter_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Adapter_Exception -

- -

- Located in /Doctrine/Adapter/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Adapter_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Adapter_Db2_Exception - Doctrine_Adapter_Db2_Exception -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter_Interface.html deleted file mode 100644 index d5cfa890a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Interface.html +++ /dev/null @@ -1,788 +0,0 @@ - - -
-

Interface: Doctrine_Adapter_Interface

-Source Location: /Doctrine/Adapter/Interface.php

- -

Interface Doctrine_Adapter_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Adapter_Interface This adapter interface should be implemented by all custom adapters -

- -

- Located in /Doctrine/Adapter/Interface.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  beginTransaction()  
void  commit()  
void  errorCode()  
void  errorInfo()  
void  exec()  
void  lastInsertId()  
void  prepare()  
void  query()  
void  quote()  
void  rollBack()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- beginTransaction  [line 39] -
-
- -
-
-
  - void beginTransaction( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- commit  [line 40] -
-
- -
-
-
  - void commit( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorCode  [line 42] -
-
- -
-
-
  - void errorCode( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorInfo  [line 43] -
-
- -
-
-
  - void errorInfo( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- exec  [line 37] -
-
- -
-
-
  - void exec( - -$statement  -) -
-

- - - Parameters:
- - - - -
-    - $statement:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 38] -
-
- -
-
-
  - void lastInsertId( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepare  [line 34] -
-
- -
-
-
  - void prepare( - -$prepareString  -) -
-

- - - Parameters:
- - - - -
-    - $prepareString:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- query  [line 35] -
-
- -
-
-
  - void query( - -$queryString  -) -
-

- - - Parameters:
- - - - -
-    - $queryString:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- quote  [line 36] -
-
- -
-
-
  - void quote( - -$input  -) -
-

- - - Parameters:
- - - - -
-    - $input:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- rollBack  [line 41] -
-
- -
-
-
  - void rollBack( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement.html deleted file mode 100644 index feba4571b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement.html +++ /dev/null @@ -1,772 +0,0 @@ - - -
-

Class: Doctrine_Adapter_Statement

-Source Location: /Doctrine/Adapter/Statement.php

- -

Class Doctrine_Adapter_Statement

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Adapter_Statement -

- -

- Located in /Doctrine/Adapter/Statement.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1917 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  bindValue()  
void  columnCount()  
void  errorCode()  
void  errorInfo()  
void  execute()  
mixed  fetch()  fetch
void  nextRowset()  
void  rowCount()  
void  setFetchMode()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- bindValue  [line 34] -
-
- -
-
-
  - void bindValue( - -$no, -$value  -) -
-

- - - Parameters:
- - - - - - - -
-    - $no:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- columnCount  [line 85] -
-
- -
-
-
  - void columnCount( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorCode  [line 73] -
-
- -
-
-
  - void errorCode( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorInfo  [line 76] -
-
- -
-
-
  - void errorInfo( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- execute  [line 70] -
-
- -
-
-
  - void execute( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetch  [line 64] -
-
- -
-
-
  - mixed fetch( -integer -$fetchStyle, integer -$cursorOrientation, integer -$cursorOffset  -) -
-

- -

fetch -

- - Parameters:
- - - - - - - - - - -
- integer   - $fetchStyle:  - Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH
- integer   - $cursorOrientation:  - For a PDOStatement object representing a scrollable cursor, this value determines which row will be returned to the caller. This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your Doctrine_Adapter_Statement_Interface object, you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
- integer   - $cursorOffset:  -

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies the absolute number of the row in the result set that shall be fetched.

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value specifies the row to fetch relative to the cursor position before Doctrine_Adapter_Statement_Interface->fetch() was called.

- -
- API Tags:
- - - - - - - -
See:  Doctrine::FETCH_* constants
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- nextRowset  [line 67] -
-
- -
-
-
  - void nextRowset( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- rowCount  [line 79] -
-
- -
-
-
  - void rowCount( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setFetchMode  [line 82] -
-
- -
-
-
  - void setFetchMode( - -$mode  -) -
-

- - - Parameters:
- - - - -
-    - $mode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement_Interface.html deleted file mode 100644 index f2c325b95..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Adapter_Statement_Interface.html +++ /dev/null @@ -1,1388 +0,0 @@ - - -
-

Interface: Doctrine_Adapter_Statement_Interface

-Source Location: /Doctrine/Adapter/Statement/Interface.php

- -

Interface Doctrine_Adapter_Statement_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Adapter_Statement -

- -

- Located in /Doctrine/Adapter/Statement/Interface.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
boolean  bindColumn()  bindColumn Bind a column to a PHP variable
boolean  bindParam()  bindParam
boolean  bindValue()  bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
boolean  closeCursor()  closeCursor Closes the cursor, enabling the statement to be executed again.
integer  columnCount()  columnCount Returns the number of columns in the result set
string  errorCode()  errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
array  errorInfo()  errorInfo Fetch extended error information associated with the last operation on the statement handle
boolean  execute()  execute Executes a prepared statement
mixed  fetch()  fetch
array  fetchAll()  fetchAll Returns an array containing all of the result set rows
string  fetchColumn()  fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
mixed  fetchObject()  fetchObject Fetches the next row and returns it as an object.
mixed  getAttribute()  getAttribute Retrieve a statement attribute
array  getColumnMeta()  getColumnMeta Returns metadata for a column in a result set
boolean  nextRowset()  nextRowset Advances to the next rowset in a multi-rowset statement handle
integer  rowCount()  rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
boolean  setAttribute()  setAttribute Set a statement attribute
boolean  setFetchMode()  setFetchMode Set the default fetch mode for this statement
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- bindColumn  [line 45] -
-
- -
-
-
  - boolean bindColumn( -mixed -$column, string -$param, [integer -$type = null]  -) -
-

- -

bindColumn Bind a column to a PHP variable -

- - Parameters:
- - - - - - - - - - -
- mixed   - $column:  - Number of the column (1-indexed) or name of the column in the result set. If using the column name, be aware that the name should match the case of the column, as returned by the driver.
- string   - $param:  - Name of the PHP variable to which the column will be bound.
- integer   - $type:  - Data type of the parameter, specified by the Doctrine::PARAM_* constants.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- bindParam  [line 88] -
-
- -
-
-
  - boolean bindParam( - -$column, mixed -$variable, [integer -$type = null], [integer -$length = null], [mixed -$driverOptions = array()], mixed -$param  -) -
-

- -

bindParam -

-

Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. Unlike Doctrine_Adapter_Statement_Interface->bindValue(), the variable is bound as a reference and will only be evaluated at the time that Doctrine_Adapter_Statement_Interface->execute() is called.

Most parameters are input parameters, that is, parameters that are used in a read-only fashion to build up the query. Some drivers support the invocation of stored procedures that return data as output parameters, and some also as input/output parameters that both send in data and are updated to receive it.

- Parameters:
- - - - - - - - - - - - - - - - - - - -
- mixed   - $param:  - Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter
- mixed   - $variable:  - Name of the PHP variable to bind to the SQL statement parameter.
- integer   - $type:  - Explicit data type for the parameter using the Doctrine::PARAM_* constants. To return an INOUT parameter from a stored procedure, use the bitwise OR operator to set the Doctrine::PARAM_INPUT_OUTPUT bits for the data_type parameter.
- integer   - $length:  - Length of the data type. To indicate that a parameter is an OUT parameter from a stored procedure, you must explicitly set the length.
- mixed   - $driverOptions:  -
-    - $column:  -
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- bindValue  [line 60] -
-
- -
-
-
  - boolean bindValue( -mixed -$param, mixed -$value, [integer -$type = null]  -) -
-

- -

bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. -

- - Parameters:
- - - - - - - - - - -
- mixed   - $param:  - Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter
- mixed   - $value:  - The value to bind to the parameter.
- integer   - $type:  - Explicit data type for the parameter using the Doctrine::PARAM_* constants.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- closeCursor  [line 95] -
-
- -
-
-
  - boolean closeCursor( -) -
-

- -

closeCursor Closes the cursor, enabling the statement to be executed again. -

- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- columnCount  [line 104] -
-
- -
-
-
  - integer columnCount( -) -
-

- -

columnCount Returns the number of columns in the result set -

- -
- API Tags:
- - - - - - - -
Return:  Returns the number of columns in the result set represented by the Doctrine_Adapter_Statement_Interface object. If there is no result set, this method should return 0.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorCode  [line 112] -
-
- -
-
-
  - string errorCode( -) -
-

- -

errorCode Fetch the SQLSTATE associated with the last operation on the statement handle -

- -
- API Tags:
- - - - - - - - - - -
Return:  error code string
See:  Doctrine_Adapter_Interface::errorCode()
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorInfo  [line 120] -
-
- -
-
-
  - array errorInfo( -) -
-

- -

errorInfo Fetch extended error information associated with the last operation on the statement handle -

- -
- API Tags:
- - - - - - - - - - -
Return:  error info array
See:  Doctrine_Adapter_Interface::errorInfo()
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- execute  [line 136] -
-
- -
-
-
  - boolean execute( -[array -$params = null]  -) -
-

- -

execute Executes a prepared statement -

-

If the prepared statement included parameter markers, you must either: call PDOStatement->bindParam() to bind PHP variables to the parameter markers: bound variables pass their value as input and receive the output value, if any, of their associated parameter markers or pass an array of input-only parameter values

- Parameters:
- - - - -
- array   - $params:  - An array of values with as many elements as there are bound parameters in the SQL statement being executed.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetch  [line 164] -
-
- -
-
-
  - mixed fetch( -[integer -$fetchStyle = Doctrine::FETCH_BOTH], [integer -$cursorOrientation = Doctrine::FETCH_ORI_NEXT], [integer -$cursorOffset = null]  -) -
-

- -

fetch -

- - Parameters:
- - - - - - - - - - -
- integer   - $fetchStyle:  - Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH
- integer   - $cursorOrientation:  - For a PDOStatement object representing a scrollable cursor, this value determines which row will be returned to the caller. This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your Doctrine_Adapter_Statement_Interface object, you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
- integer   - $cursorOffset:  -

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies the absolute number of the row in the result set that shall be fetched.

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value specifies the row to fetch relative to the cursor position before Doctrine_Adapter_Statement_Interface->fetch() was called.

- -
- API Tags:
- - - - - - - -
See:  Doctrine::FETCH_* constants
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchAll  [line 180] -
-
- -
-
-
  - array fetchAll( -[integer -$fetchStyle = Doctrine::FETCH_BOTH], integer -$columnIndex  -) -
-

- -

fetchAll Returns an array containing all of the result set rows -

- - Parameters:
- - - - - - - -
- integer   - $fetchStyle:  - Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH
- integer   - $columnIndex:  - Returns the indicated 0-indexed column when the value of $fetchStyle is Doctrine::FETCH_COLUMN. Defaults to 0.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchColumn  [line 192] -
-
- -
-
-
  - string fetchColumn( -[integer -$columnIndex = 0]  -) -
-

- -

fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows. -

- - Parameters:
- - - - -
- integer   - $columnIndex:  - 0-indexed number of the column you wish to retrieve from the row. If no value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn() fetches the first column.
- -
- API Tags:
- - - - - - - -
Return:  returns a single column in the next row of a result set.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchObject  [line 206] -
-
- -
-
-
  - mixed fetchObject( -[string -$className = 'stdClass'], [array -$args = array()]  -) -
-

- -

fetchObject Fetches the next row and returns it as an object. -

-

Fetches the next row and returns it as an object. This function is an alternative to Doctrine_Adapter_Statement_Interface->fetch() with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.

- Parameters:
- - - - - - - -
- string   - $className:  - Name of the created class, defaults to stdClass.
- array   - $args:  - Elements of this array are passed to the constructor.
- -
- API Tags:
- - - - - - - -
Return:  an instance of the required class with property names that correspond to the column names or FALSE in case of an error.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAttribute  [line 215] -
-
- -
-
-
  - mixed getAttribute( -integer -$attribute  -) -
-

- -

getAttribute Retrieve a statement attribute -

- - Parameters:
- - - - -
- integer   - $attribute:  -
- -
- API Tags:
- - - - - - - - - - -
Return:  the attribute value
See:  Doctrine::ATTR_* constants
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getColumnMeta  [line 232] -
-
- -
-
-
  - array getColumnMeta( -integer -$column  -) -
-

- -

getColumnMeta Returns metadata for a column in a result set -

- - Parameters:
- - - - -
- integer   - $column:  - The 0-indexed column in the result set.
- -
- API Tags:
- - - - - - - -
Return:  

Associative meta data array with the following structure:

native_type The PHP native type used to represent the column value. driver:decl_ type The SQL type used to represent the column value in the database. If the column in the result set is the result of a function, this value is not returned by PDOStatement->getColumnMeta(). flags Any flags set for this column. name The name of this column as returned by the database. len The length of this column. Normally -1 for types other than floating point decimals. precision The numeric precision of this column. Normally 0 for types other than floating point decimals. pdo_type The type of this column as represented by the PDO::PARAM_* constants.

Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- nextRowset  [line 244] -
-
- -
-
-
  - boolean nextRowset( -) -
-

- -

nextRowset Advances to the next rowset in a multi-rowset statement handle -

-

Some database servers support stored procedures that return more than one rowset (also known as a result set). The nextRowset() method enables you to access the second and subsequent rowsets associated with a PDOStatement object. Each rowset can have a different set of columns from the preceding rowset.

-
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- rowCount  [line 257] -
-
- -
-
-
  - integer rowCount( -) -
-

- -

rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object. -

-

If the last SQL statement executed by the associated Statement object was a SELECT statement, some databases may return the number of rows returned by that statement. However, this behaviour is not guaranteed for all databases and should not be relied on for portable applications.

-
- API Tags:
- - - - - - - -
Return:  Returns the number of rows.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setAttribute  [line 266] -
-
- -
-
-
  - boolean setAttribute( -integer -$attribute, mixed -$value  -) -
-

- -

setAttribute Set a statement attribute -

- - Parameters:
- - - - - - - -
- integer   - $attribute:  -
- mixed   - $value:  - the value of given attribute
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setFetchMode  [line 274] -
-
- -
-
-
  - boolean setFetchMode( -integer -$mode, [ -$arg1 = null], [ -$arg2 = null]  -) -
-

- -

setFetchMode Set the default fetch mode for this statement -

- - Parameters:
- - - - - - - - - - -
- integer   - $mode:  - The fetch mode must be one of the Doctrine::FETCH_* constants.
-    - $arg1:  -
-    - $arg2:  -
- -
- API Tags:
- - - - - - - -
Return:  Returns 1 on success or FALSE on failure.
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_AuditLog.html b/api_documentation/trunk/Doctrine/Doctrine_AuditLog.html deleted file mode 100644 index ae235293c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_AuditLog.html +++ /dev/null @@ -1,884 +0,0 @@ - - -
-

Class: Doctrine_AuditLog

-Source Location: /Doctrine/AuditLog.php

- -

Class Doctrine_AuditLog

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_AuditLog -

- -

- Located in /Doctrine/AuditLog.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $_auditTable  
mixed  $_options  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_AuditLog  __construct()  
void  buildDefinition()  
mixed  getOption()  getOption returns the value of given option
array  getOptions()  getOptions returns all options of this table and the associated values
void  getVersion()  
Doctrine_AuditLog  setOption()  setOption sets an option and returns this object in order to allow flexible method chaining
void  __get()  __get an alias for getOption
void  __isset()  __isset
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_auditTable - [line 41] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_options - = array(
'className' => '%CLASS%Version',
'versionColumn' => 'version',
'generateFiles' => false,
'table' => false,
)
[line 34] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 43] -
-
- -
-
-
  - Doctrine_AuditLog __construct( - -$options  -) -
-

- - - Parameters:
- - - - -
-    - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildDefinition  [line 131] -
-
- -
-
-
  - void buildDefinition( -Doctrine_Table -$table  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getOption  [line 103] -
-
- -
-
-
  - mixed getOption( -string -$name  -) -
-

- -

getOption returns the value of given option -

- - Parameters:
- - - - -
- string   - $name:  - the name of the option
- -
- API Tags:
- - - - - - - -
Return:  the value of given option
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getOptions  [line 75] -
-
- -
-
-
  - array getOptions( -) -
-

- -

getOptions returns all options of this table and the associated values -

- -
- API Tags:
- - - - - - - -
Return:  all options and their values
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getVersion  [line 111] -
-
- -
-
-
  - void getVersion( -Doctrine_Record -$record, -$version  -) -
-

- - - Parameters:
- - - - - - - -
- Doctrine_Record   - $record:  -
-    - $version:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setOption  [line 89] -
-
- -
-
-
  - Doctrine_AuditLog setOption( -string -$name, mixed -$value  -) -
-

- -

setOption sets an option and returns this object in order to allow flexible method chaining -

- - Parameters:
- - - - - - - -
- string   - $name:  - the name of the option to set
- mixed   - $value:  - the value of the option
- -
- API Tags:
- - - - - - - - - - -
Return:  this object
See:  slef::$_options for available options
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __get  [line 53] -
-
- -
-
-
  - void __get( -string -$option  -) -
-

- -

__get an alias for getOption -

- - Parameters:
- - - - -
- string   - $option:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __isset  [line 65] -
-
- -
-
-
  - void __isset( -string -$option  -) -
-

- -

__isset -

- - Parameters:
- - - - -
- string   - $option:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_AuditLog_Listener.html b/api_documentation/trunk/Doctrine/Doctrine_AuditLog_Listener.html deleted file mode 100644 index d7c53f306..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_AuditLog_Listener.html +++ /dev/null @@ -1,761 +0,0 @@ - - -
-

Class: Doctrine_AuditLog_Listener

-Source Location: /Doctrine/AuditLog/Listener.php

- -

Class Doctrine_AuditLog_Listener

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_AuditLog_Listener -

- -

- Located in /Doctrine/AuditLog/Listener.php [line 33] -

- - -
Doctrine_Record_Listener
-   |
-   --Doctrine_AuditLog_Listener
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- - -
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_auditLog  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_AuditLog_Listener  __construct()  
void  preDelete()  
void  preInsert()  
void  preUpdate()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_auditLog - [line 36] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 38] -
-
- -
-
-
  - Doctrine_AuditLog_Listener __construct( -Doctrine_AuditLog -$auditLog  -) -
-

- - - Parameters:
- - - - -
- Doctrine_AuditLog   - $auditLog:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preDelete  [line 47] -
-
- -
-
-
  - void preDelete( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record_Listener::preDelete()
-
- -
-
[ Top ]
-
- -
- -
- preInsert  [line 41] -
-
- -
-
-
  - void preInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record_Listener::preInsert()
-
- -
-
[ Top ]
-
- -
- -
- preUpdate  [line 62] -
-
- -
-
-
  - void preUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record_Listener::preUpdate()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache.html deleted file mode 100644 index 2c2b97438..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache.html +++ /dev/null @@ -1,1673 +0,0 @@ - - -
-

Class: Doctrine_Cache

-Source Location: /Doctrine/Cache.php

- -

Class Doctrine_Cache

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

-

Doctrine_Cache -

- -

- Located in /Doctrine/Cache.php [line 34] -

- - -
Doctrine_EventListener
-   |
-   --Doctrine_Cache
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1857 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From Doctrine_EventListener

-
-
-
- Doctrine_EventListener::onCollectionDelete() -
-
- -
-
- Doctrine_EventListener::onOpen() -
-
- -
-
- Doctrine_EventListener::onPreCollectionDelete() -
-
- -
-
- Doctrine_EventListener::postClose() -
-
- -
-
- Doctrine_EventListener::postConnect() -
-
- -
-
- Doctrine_EventListener::postError() -
-
- -
-
- Doctrine_EventListener::postExec() -
-
- -
-
- Doctrine_EventListener::postFetch() -
-
- -
-
- Doctrine_EventListener::postFetchAll() -
-
- -
-
- Doctrine_EventListener::postPrepare() -
-
- -
-
- Doctrine_EventListener::postQuery() -
-
- -
-
- Doctrine_EventListener::postSavepointCommit() -
-
- -
-
- Doctrine_EventListener::postSavepointCreate() -
-
- -
-
- Doctrine_EventListener::postSavepointRollback() -
-
- -
-
- Doctrine_EventListener::postStmtExecute() -
-
- -
-
- Doctrine_EventListener::postTransactionBegin() -
-
- -
-
- Doctrine_EventListener::postTransactionCommit() -
-
- -
-
- Doctrine_EventListener::postTransactionRollback() -
-
- -
-
- Doctrine_EventListener::preClose() -
-
- -
-
- Doctrine_EventListener::preConnect() -
-
- -
-
- Doctrine_EventListener::preError() -
-
- -
-
- Doctrine_EventListener::preExec() -
-
- -
-
- Doctrine_EventListener::preFetch() -
-
- -
-
- Doctrine_EventListener::preFetchAll() -
-
- -
-
- Doctrine_EventListener::prePrepare() -
-
- -
-
- Doctrine_EventListener::preQuery() -
-
- -
-
- Doctrine_EventListener::preSavepointCommit() -
-
- -
-
- Doctrine_EventListener::preSavepointCreate() -
-
- -
-
- Doctrine_EventListener::preSavepointRollback() -
-
- -
-
- Doctrine_EventListener::preStmtExecute() -
-
- -
-
- Doctrine_EventListener::preTransactionBegin() -
-
- -
-
- Doctrine_EventListener::preTransactionCommit() -
-
- -
-
- Doctrine_EventListener::preTransactionRollback() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  $_data  
Doctrine_Cache_Interface  $_driver  
array  $_options  
array  $_queries  
boolean  $_success  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Cache  __construct()  constructor
void  add()  add adds a query to internal query stack
void  appendStats()  appendStats
boolean  clean()  save
integer  count()  count
array  getAll()  getQueries
Doctrine_Cache_Driver  getDriver()  getDriver returns the current cache driver
ArrayIterator  getIterator()  getIterator
mixed  getOption()  getOption
boolean  isSuccessful()  
string  pop()  pop
boolean  preExecute()  preExecute listens the preExecute event of Doctrine_Connection_Statement
array  preFetch()  preFetch listens the preFetch event of Doctrine_Connection_Statement
array  preFetchAll()  preFetch listens the preFetchAll event of Doctrine_Connection_Statement
boolean  preQuery()  preQuery listens on the Doctrine_Event preQuery event
array  readStats()  readStats
void  reset()  reset
boolean  setOption()  setOption
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_data - = array() [line 57] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Cache_Interface   - $_driver - [line 53] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_options - = array('size' => 1000,
'lifeTime' => 3600,
'addStatsPropability' => 0.25,
'savePropability' => 0.10,
'cleanPropability' => 0.01,
'statsFile' => '../data/stats.cache',
)
[line 39] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_queries - = array() [line 49] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - boolean   - $_success - = false [line 61] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 68] -
-
- -
-
-
  - Doctrine_Cache __construct( -Doctrine_Cache_Interface|string -$driver, [array -$options = array()]  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - -
- Doctrine_Cache_Interface|string   - $driver:  - cache driver name or a driver object
- array   - $options:  - cache driver options
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- add  [line 139] -
-
- -
-
-
  - void add( -string|array -$query, [string -$namespace = null]  -) -
-

- -

add adds a query to internal query stack -

- - Parameters:
- - - - - - - -
- string|array   - $query:  - sql query string
- string   - $namespace:  - connection namespace
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- appendStats  [line 267] -
-
- -
-
-
  - void appendStats( -) -
-

- -

appendStats -

-

adds all queries to stats file

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- clean  [line 215] -
-
- -
-
-
  - boolean clean( -) -
-

- -

save -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 190] -
-
- -
-
-
  - integer count( -) -
-

- -

count -

- -
- API Tags:
- - - - - - - -
Return:  the number of queries in the stack
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- getAll  [line 153] -
-
- -
-
-
  - array getAll( -[string -$namespace = null]  -) -
-

- -

getQueries -

- - Parameters:
- - - - -
- string   - $namespace:  - optional query namespace
- -
- API Tags:
- - - - - - - -
Return:  an array of sql query strings
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDriver  [line 93] -
-
- -
-
-
  - Doctrine_Cache_Driver getDriver( -) -
-

- -

getDriver returns the current cache driver -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 199] -
-
- -
-
-
  - ArrayIterator getIterator( -) -
-

- -

getIterator -

- -
- API Tags:
- - - - - - - -
Return:  an iterator that iterates through the query stack
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- getOption  [line 123] -
-
- -
-
-
  - mixed getOption( -mixed -$option  -) -
-

- -

getOption -

- - Parameters:
- - - - -
- mixed   - $option:  - the option name
- -
- API Tags:
- - - - - - - -
Return:  option value
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isSuccessful  [line 206] -
-
- -
-
-
  - boolean isSuccessful( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  whether or not the last cache operation was successful
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- pop  [line 171] -
-
- -
-
-
  - string pop( -) -
-

- -

pop -

-

pops a query from the stack

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preExecute  [line 362] -
-
- -
-
-
  - boolean preExecute( -Doctrine_Event -$event  -) -
-

- -

preExecute listens the preExecute event of Doctrine_Connection_Statement -

-

adds the issued query to internal query stack and checks if cached element exists

- Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preFetch  [line 335] -
-
- -
-
-
  - array preFetch( -Doctrine_Event -$event  -) -
-

- -

preFetch listens the preFetch event of Doctrine_Connection_Statement -

-

advances the internal pointer of cached data and returns the current element

- Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_EventListener::preFetch()
-
- -
-
[ Top ]
-
- -
- -
- preFetchAll  [line 349] -
-
- -
-
-
  - array preFetchAll( -Doctrine_Event -$event  -) -
-

- -

preFetch listens the preFetchAll event of Doctrine_Connection_Statement -

-

returns the current cache data array

- Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_EventListener::preFetchAll()
-
- -
-
[ Top ]
-
- -
- -
- preQuery  [line 291] -
-
- -
-
-
  - boolean preQuery( -Doctrine_Event -$event  -) -
-

- -

preQuery listens on the Doctrine_Event preQuery event -

-

adds the issued query to internal query stack and checks if cached element exists

- Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_EventListener::preQuery()
-
- -
-
[ Top ]
-
- -
- -
- readStats  [line 250] -
-
- -
-
-
  - array readStats( -) -
-

- -

readStats -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- reset  [line 181] -
-
- -
-
-
  - void reset( -) -
-

- -

reset -

-

removes all queries from the query stack

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setOption  [line 104] -
-
- -
-
-
  - boolean setOption( -mixed -$option, mixed -$value  -) -
-

- -

setOption -

- - Parameters:
- - - - - - - -
- mixed   - $option:  - the option name
- mixed   - $value:  - option value
- -
- API Tags:
- - - - - - - -
Return:  TRUE on success, FALSE on failure
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Apc.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Apc.html deleted file mode 100644 index 08945215a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Apc.html +++ /dev/null @@ -1,749 +0,0 @@ - - -
-

Class: Doctrine_Cache_Apc

-Source Location: /Doctrine/Cache/Apc.php

- -

Class Doctrine_Cache_Apc

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Cache_Apc -

- -

- Located in /Doctrine/Cache/Apc.php [line 34] -

- - -
Doctrine_Cache_Driver
-   |
-   --Doctrine_Cache_Apc
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Cache_Driver

-
-
-
- Doctrine_Cache_Driver::$_options -
-
- -
-
-
-
-

Inherited From Doctrine_Cache_Driver

-
-
-
- Doctrine_Cache_Driver::__construct() -
-
- constructor -
-
- Doctrine_Cache_Driver::getOption() -
-
- getOption -
-
- Doctrine_Cache_Driver::setOption() -
-
- setOption -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Cache_Apc  __construct()  constructor
mixed  contains()  Test if a cache is available or not (for the given id)
boolean  delete()  Remove a cache record
string  fetch()  Test if a cache is available for the given id and (if yes) return it (false else)
boolean  save()  Save some string datas into a cache record
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 41] -
-
- -
-
-
  - Doctrine_Cache_Apc __construct( -[array -$options = array()]  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- array   - $options:  - associative array of cache driver options
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Cache_Driver::__construct()
-
constructor
-
- -
-
[ Top ]
-
- -
- -
- contains  [line 71] -
-
- -
-
-
  - mixed contains( -string -$id  -) -
-

- -

Test if a cache is available or not (for the given id) -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  false (a cache is not available) or "last modified" timestamp (int) of the available cache record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- delete  [line 101] -
-
- -
-
-
  - boolean delete( -string -$id  -) -
-

- -

Remove a cache record -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetch  [line 57] -
-
- -
-
-
  - string fetch( -string -$id, [boolean -$testCacheValidity = true]  -) -
-

- -

Test if a cache is available for the given id and (if yes) return it (false else) -

-

Note : return value is always "string" (unserialization is done by the core not by the backend)

- Parameters:
- - - - - - - -
- string   - $id:  - cache id
- boolean   - $testCacheValidity:  - if set to false, the cache validity won't be tested
- -
- API Tags:
- - - - - - - -
Return:  cached datas (or false)
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- save  [line 89] -
-
- -
-
-
  - boolean save( -string -$id, string -$data, [int -$lifeTime = false]  -) -
-

- -

Save some string datas into a cache record -

-

Note : $data is always saved as a string

- Parameters:
- - - - - - - - - - -
- string   - $data:  - data to cache
- string   - $id:  - cache id
- int   - $lifeTime:  - if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Array.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Array.html deleted file mode 100644 index 38f77bc50..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Array.html +++ /dev/null @@ -1,790 +0,0 @@ - - -
-

Class: Doctrine_Cache_Array

-Source Location: /Doctrine/Cache/Array.php

- -

Class Doctrine_Cache_Array

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Cache_Interface -

- -

- Located in /Doctrine/Cache/Array.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1495 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $data  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
mixed  contains()  Test if a cache is available or not (for the given id)
integer  count()  count
boolean  delete()  Remove a cache record
boolean  deleteAll()  Remove all cache record
string  fetch()  Test if a cache is available for the given id and (if yes) return it (false else)
boolean  save()  Save some string datas into a cache record
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $data - [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- contains  [line 63] -
-
- -
-
-
  - mixed contains( -string -$id  -) -
-

- -

Test if a cache is available or not (for the given id) -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  false (a cache is not available) or "last modified" timestamp (int) of the available cache record
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Cache_Interface::contains()
-
Test if a cache is available or not (for the given id)
-
- -
-
[ Top ]
-
- -
- -
- count  [line 105] -
-
- -
-
-
  - integer count( -) -
-

- -

count -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- delete  [line 87] -
-
- -
-
-
  - boolean delete( -string -$id  -) -
-

- -

Remove a cache record -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Cache_Interface::delete()
-
Remove a cache record
-
- -
-
[ Top ]
-
- -
- -
- deleteAll  [line 96] -
-
- -
-
-
  - boolean deleteAll( -) -
-

- -

Remove all cache record -

- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetch  [line 50] -
-
- -
-
-
  - string fetch( -string -$id, [boolean -$testCacheValidity = true]  -) -
-

- -

Test if a cache is available for the given id and (if yes) return it (false else) -

-

Note : return value is always "string" (unserialization is done by the core not by the backend)

- Parameters:
- - - - - - - -
- string   - $id:  - cache id
- boolean   - $testCacheValidity:  - if set to false, the cache validity won't be tested
- -
- API Tags:
- - - - - - - -
Return:  cached datas (or false)
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Cache_Interface::fetch()
-
Test if a cache is available for the given id and (if yes) return it (false else)
-
- -
-
[ Top ]
-
- -
- -
- save  [line 77] -
-
- -
-
-
  - boolean save( -string -$id, string -$data, [int -$lifeTime = false]  -) -
-

- -

Save some string datas into a cache record -

-

Note : $data is always saved as a string

- Parameters:
- - - - - - - - - - -
- string   - $data:  - data to cache
- string   - $id:  - cache id
- int   - $lifeTime:  - if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Cache_Interface::save()
-
Save some string datas into a cache record
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Db.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Db.html deleted file mode 100644 index 11e3f93c6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Db.html +++ /dev/null @@ -1,925 +0,0 @@ - - -
-

Class: Doctrine_Cache_Db

-Source Location: /Doctrine/Cache/Db.php

- -

Class Doctrine_Cache_Db

- - -
-
Class Overview
- -
- - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
-

-

Doctrine_Cache_Db -

- -

- Located in /Doctrine/Cache/Db.php [line 34] -

- - -
Doctrine_Cache_Driver
-   |
-   --Doctrine_Cache_Db
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2258 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Cache_Driver

-
-
-
- Doctrine_Cache_Driver::$_options -
-
- -
-
-
-
-

Inherited From Doctrine_Cache_Driver

-
-
-
- Doctrine_Cache_Driver::__construct() -
-
- constructor -
-
- Doctrine_Cache_Driver::getOption() -
-
- getOption -
-
- Doctrine_Cache_Driver::setOption() -
-
- setOption -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Cache_Db  __construct()  constructor
mixed  contains()  Test if a cache is available or not (for the given id)
integer  count()  count returns the number of cached elements
void  createTable()  Creates the cache table.
boolean  delete()  Remove a cache record
void  deleteAll()  Removes all cache records
string  fetch()  Test if a cache is available for the given id and (if yes) return it (false else)
Doctrine_Connection  getConnection()  getConnection returns the connection object associated with this cache driver
boolean  save()  Save some string datas into a cache record
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 41] -
-
- -
-
-
  - Doctrine_Cache_Db __construct( - -$options, array -$_options  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - -
- array   - $_options:  - an array of options
-    - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Cache_Driver::__construct()
-
constructor
-
- -
-
[ Top ]
-
- -
- -
- contains  [line 100] -
-
- -
-
-
  - mixed contains( -string -$id  -) -
-

- -

Test if a cache is available or not (for the given id) -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  false (a cache is not available) or "last modified" timestamp (int) of the available cache record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 163] -
-
- -
-
-
  - integer count( -) -
-

- -

count returns the number of cached elements -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- createTable  [line 173] -
-
- -
-
-
  - void createTable( -) -
-

- -

Creates the cache table. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- delete  [line 138] -
-
- -
-
-
  - boolean delete( -string -$id  -) -
-

- -

Remove a cache record -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- deleteAll  [line 150] -
-
- -
-
-
  - void deleteAll( -) -
-

- -

Removes all cache records -

-

$return bool true on success, false on failure

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetch  [line 77] -
-
- -
-
-
  - string fetch( -string -$id, [boolean -$testCacheValidity = true]  -) -
-

- -

Test if a cache is available for the given id and (if yes) return it (false else) -

-

Note : return value is always "string" (unserialization is done by the core not by the backend)

- Parameters:
- - - - - - - -
- string   - $id:  - cache id
- boolean   - $testCacheValidity:  - if set to false, the cache validity won't be tested
- -
- API Tags:
- - - - - - - -
Return:  cached datas (or false)
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnection  [line 64] -
-
- -
-
-
  - Doctrine_Connection getConnection( -) -
-

- -

getConnection returns the connection object associated with this cache driver -

- -
- API Tags:
- - - - - - - -
Return:  connection object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- save  [line 117] -
-
- -
-
-
  - boolean save( -string -$data, string -$id, [int -$lifeTime = false]  -) -
-

- -

Save some string datas into a cache record -

-

Note : $data is always saved as a string

- Parameters:
- - - - - - - - - - -
- string   - $data:  - data to cache
- string   - $id:  - cache id
- int   - $lifeTime:  - if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Driver.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Driver.html deleted file mode 100644 index 56594912a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Driver.html +++ /dev/null @@ -1,681 +0,0 @@ - - -
-

Class: Doctrine_Cache_Driver

-Source Location: /Doctrine/Cache/Driver.php

- -

Class Doctrine_Cache_Driver

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Cache_Driver -

- -

- Located in /Doctrine/Cache/Driver.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1401 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Cache_Apc - Doctrine_Cache_Apc -
Doctrine_Cache_Db - Doctrine_Cache_Db -
Doctrine_Cache_Memcache - Doctrine_Cache_Memcache -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $_options  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Cache_Driver  __construct()  constructor
mixed  getOption()  getOption
boolean  setOption()  setOption
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_options - = array() [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 46] -
-
- -
-
-
  - Doctrine_Cache_Driver __construct( - -$options, array -$_options  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - -
- array   - $_options:  - an array of options
-    - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getOption  [line 71] -
-
- -
-
-
  - mixed getOption( -mixed -$option  -) -
-

- -

getOption -

- - Parameters:
- - - - -
- mixed   - $option:  - the option name
- -
- API Tags:
- - - - - - - -
Return:  option value
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setOption  [line 57] -
-
- -
-
-
  - boolean setOption( -mixed -$option, mixed -$value  -) -
-

- -

setOption -

- - Parameters:
- - - - - - - -
- mixed   - $option:  - the option name
- mixed   - $value:  - option value
- -
- API Tags:
- - - - - - - -
Return:  TRUE on success, FALSE on failure
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Exception.html deleted file mode 100644 index 8353ed709..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Cache_Exception

-Source Location: /Doctrine/Cache/Exception.php

- -

Class Doctrine_Cache_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Cache_Exception -

- -

- Located in /Doctrine/Cache/Exception.php [line 34] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Cache_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Interface.html deleted file mode 100644 index 3b01161c5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Interface.html +++ /dev/null @@ -1,607 +0,0 @@ - - -
-

Interface: Doctrine_Cache_Interface

-Source Location: /Doctrine/Cache/Interface.php

- -

Interface Doctrine_Cache_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Cache_Interface -

- -

- Located in /Doctrine/Cache/Interface.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
mixed  contains()  Test if a cache is available or not (for the given id)
boolean  delete()  Remove a cache record
string  fetch()  Test if a cache is available for the given id and (if yes) return it (false else)
boolean  save()  Save some string datas into a cache record
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- contains  [line 53] -
-
- -
-
-
  - mixed contains( -string -$id  -) -
-

- -

Test if a cache is available or not (for the given id) -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  false (a cache is not available) or "last modified" timestamp (int) of the available cache record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- delete  [line 73] -
-
- -
-
-
  - boolean delete( -string -$id  -) -
-

- -

Remove a cache record -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetch  [line 45] -
-
- -
-
-
  - string fetch( -string -$id, [boolean -$testCacheValidity = true]  -) -
-

- -

Test if a cache is available for the given id and (if yes) return it (false else) -

-

Note : return value is always "string" (unserialization is done by the core not by the backend)

- Parameters:
- - - - - - - -
- string   - $id:  - cache id
- boolean   - $testCacheValidity:  - if set to false, the cache validity won't be tested
- -
- API Tags:
- - - - - - - -
Return:  cached datas (or false)
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- save  [line 65] -
-
- -
-
-
  - boolean save( -string -$data, string -$id, [int -$lifeTime = false]  -) -
-

- -

Save some string datas into a cache record -

-

Note : $data is always saved as a string

- Parameters:
- - - - - - - - - - -
- string   - $data:  - data to cache
- string   - $id:  - cache id
- int   - $lifeTime:  - if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Memcache.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Memcache.html deleted file mode 100644 index 8592cc722..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/Doctrine_Cache_Memcache.html +++ /dev/null @@ -1,801 +0,0 @@ - - -
-

Class: Doctrine_Cache_Memcache

-Source Location: /Doctrine/Cache/Memcache.php

- -

Class Doctrine_Cache_Memcache

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Cache_Memcache -

- -

- Located in /Doctrine/Cache/Memcache.php [line 34] -

- - -
Doctrine_Cache_Driver
-   |
-   --Doctrine_Cache_Memcache
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Cache_Driver

-
-
-
- Doctrine_Cache_Driver::$_options -
-
- -
-
-
-
-

Inherited From Doctrine_Cache_Driver

-
-
-
- Doctrine_Cache_Driver::__construct() -
-
- constructor -
-
- Doctrine_Cache_Driver::getOption() -
-
- getOption -
-
- Doctrine_Cache_Driver::setOption() -
-
- setOption -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
Memcache  $_memcache  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Cache_Memcache  __construct()  constructor
mixed  contains()  Test if a cache is available or not (for the given id)
boolean  delete()  Remove a cache record
string  fetch()  Test if a cache is available for the given id and (if yes) return it (false else)
boolean  save()  Save some string datas into a cache record
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Memcache   - $_memcache - = null [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 45] -
-
- -
-
-
  - Doctrine_Cache_Memcache __construct( -[array -$options = array()]  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- array   - $options:  - associative array of cache driver options
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Cache_Driver::__construct()
-
constructor
-
- -
-
[ Top ]
-
- -
- -
- contains  [line 98] -
-
- -
-
-
  - mixed contains( -string -$id  -) -
-

- -

Test if a cache is available or not (for the given id) -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  false (a cache is not available) or "last modified" timestamp (int) of the available cache record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- delete  [line 128] -
-
- -
-
-
  - boolean delete( -string -$id  -) -
-

- -

Remove a cache record -

- - Parameters:
- - - - -
- string   - $id:  - cache id
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetch  [line 82] -
-
- -
-
-
  - string fetch( -string -$id, [boolean -$testCacheValidity = true]  -) -
-

- -

Test if a cache is available for the given id and (if yes) return it (false else) -

-

Note : return value is always "string" (unserialization is done by the core not by the backend)

- Parameters:
- - - - - - - -
- string   - $id:  - cache id
- boolean   - $testCacheValidity:  - if set to false, the cache validity won't be tested
- -
- API Tags:
- - - - - - - -
Return:  cached datas (or false)
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- save  [line 112] -
-
- -
-
-
  - boolean save( -string -$id, string -$data, [int -$lifeTime = false]  -) -
-

- -

Save some string datas into a cache record -

-

Note : $data is always saved as a string

- Parameters:
- - - - - - - - - - -
- string   - $data:  - data to cache
- string   - $id:  - cache id
- int   - $lifeTime:  - if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
- -
- API Tags:
- - - - - - - -
Return:  true if no problem
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Apc.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Apc.php.html deleted file mode 100644 index 0328595c3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Apc.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Apc.php

-Source Location: /Doctrine/Cache/Apc.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache_Apc - - Doctrine_Cache_Apc -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Array.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Array.php.html deleted file mode 100644 index 8434fbe96..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Array.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Array.php

-Source Location: /Doctrine/Cache/Array.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache_Array - - Doctrine_Cache_Interface -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Db.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Db.php.html deleted file mode 100644 index 02c568cc5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Db.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Db.php

-Source Location: /Doctrine/Cache/Db.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache_Db - - Doctrine_Cache_Db -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Driver.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Driver.php.html deleted file mode 100644 index 40fd3985d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Driver.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Driver.php

-Source Location: /Doctrine/Cache/Driver.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache_Driver - - Doctrine_Cache_Driver -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Exception.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Exception.php.html deleted file mode 100644 index 605675e83..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Cache/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache_Exception - - Doctrine_Cache_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Interface.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Interface.php.html deleted file mode 100644 index a796e2b47..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Cache/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache_Interface - - Doctrine_Cache_Interface -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Memcache.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Memcache.php.html deleted file mode 100644 index c1b5f80c4..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache---Memcache.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Memcache.php

-Source Location: /Doctrine/Cache/Memcache.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache_Memcache - - Doctrine_Cache_Memcache -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache.php.html b/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache.php.html deleted file mode 100644 index c4d4088de..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Cache/_Doctrine---Cache.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Cache.php

-Source Location: /Doctrine/Cache.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Cache - - Doctrine_Cache -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Collection.html b/api_documentation/trunk/Doctrine/Doctrine_Collection.html deleted file mode 100644 index c02ab4808..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Collection.html +++ /dev/null @@ -1,2449 +0,0 @@ - - -
-

Class: Doctrine_Collection

-Source Location: /Doctrine/Collection.php

- -

Class Doctrine_Collection

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
  • Serializable (internal interface)
-

-

Doctrine_Collection Collection of Doctrine_Record objects. -

- -

- Located in /Doctrine/Collection.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Collection
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2282 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Collection_Offset - Doctrine_Collection_Offset Collection of Doctrine_Record objects. -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static Doctrine_Null  $null  
array  $data  
string  $keyColumn  
Doctrine_Record  $reference  
string  $referenceField  
Doctrine_Relation  $relation  
array  $_snapshot  
Doctrine_Table  $_table  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - void   - initNullObject()  initNullObject initializes the null object for this collection
Doctrine_Collection  __construct()  constructor
boolean  add()  adds a record to collection
boolean  contains()  contains whether or not this collection contains a specified element
integer  count()  count this class implements interface countable returns the number of records in this collection
Doctrine_Collection  delete()  delete
Doctrine_Record  get()  get returns a record for given key
array  getData()  getData returns all the records as an array
void  getDeleteDiff()  
mixed  getFirst()  getFirst returns the first record in the collection
void  getInsertDiff()  
object ArrayIterator  getIterator()  getIterator
string  getKeyColumn()  getKeyColumn returns the name of the key column
array  getKeys()  returns all keys
mixed  getLast()  getLast returns the last record in the collection
Doctrine_Iterator_Normal  getNormalIterator()  getNormalIterator returns normal iterator - an iterator that will not expand this collection
array  getPrimaryKeys()  
mixed  getReference()  getReference
array  getSnapshot()  getSnapshot returns the data of the last snapshot
Doctrine_Table  getTable()  getTable returns the table this collection belongs to
boolean  loadRelated()  loadRelated
void  populateRelated()  populateRelated
Doctrine_Collection  processDiff()  processDiff processes the difference of the last snapshot and the current data
boolean  remove()  remove removes a specified collection element
Doctrine_Collection  save()  save saves all records of this collection and processes the difference of the last snapshot and the current data
void  search()  
array  serialize()  this method is automatically called when this Doctrine_Collection is serialized
void  set()  set
Doctrine_Collection  setData()  setData
Doctrine_Collection  setKeyColumn()  setKeyColumn sets the key column for this collection
void  setReference()  setReference sets a reference pointer
Doctrine_Collection  takeSnapshot()  takeSnapshot takes a snapshot from this collection
void  toArray()  toArray Mimics the result of a $query->execute(array(), Doctrine::FETCH_ARRAY);
void  unserialize()  unseralize this method is automatically called everytime a Doctrine_Collection object is unserialized
void  __toString()  returns a string representation of this object
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static Doctrine_Null   - $null - [line 67] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $data - = array() [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $keyColumn - [line 63] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Record   - $reference - [line 51] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $referenceField - [line 55] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Relation   - $relation - [line 59] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_snapshot - = array() [line 47] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Table   - $_table - [line 43] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method initNullObject  [line 94] -
-
- -
-
-
  - static void initNullObject( -Doctrine_Null -$null  -) -
-

- -

initNullObject initializes the null object for this collection -

- - Parameters:
- - - - -
- Doctrine_Null   - $null:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Object::initNullObject()
-
initNullObject initializes the null object
-
- -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 75] -
-
- -
-
-
  - Doctrine_Collection __construct( -Doctrine_Table|string -$table  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- Doctrine_Table|string   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- add  [line 380] -
-
- -
-
-
  - boolean add( -Doctrine_Record -$record, [string -$key = null]  -) -
-

- -

adds a record to collection -

- - Parameters:
- - - - - - - -
- Doctrine_Record   - $record:  - record to be added
- string   - $key:  - optional key for the record
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- contains  [line 276] -
-
- -
-
-
  - boolean contains( -mixed -$key  -) -
-

- -

contains whether or not this collection contains a specified element -

- - Parameters:
- - - - -
- mixed   - $key:  - the key of the element
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 356] -
-
- -
-
-
  - integer count( -) -
-

- -

count this class implements interface countable returns the number of records in this collection -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- delete  [line 645] -
-
- -
-
-
  - Doctrine_Collection delete( -[Doctrine_Connection -$conn = null]  -) -
-

- -

delete -

-

single shot delete deletes all records from this collection and uses only one database query to perform this operation

- Parameters:
- - - - -
- Doctrine_Connection   - $conn:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- get  [line 301] -
-
- -
-
-
  - Doctrine_Record get( -mixed -$key  -) -
-

- -

get returns a record for given key -

-

There are two special cases:

  1. if null is given as a key a new record is created and attached
at the end of the collection

2. if given key does not exist, then a new record is create and attached to the given key

Collection also maps referential information to newly created records

- Parameters:
- - - - -
- mixed   - $key:  - the key of the element
- -
- API Tags:
- - - - - - - -
Return:  return a specified record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getData  [line 192] -
-
- -
-
-
  - array getData( -) -
-

- -

getData returns all the records as an array -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDeleteDiff  [line 603] -
-
- -
-
-
  - void getDeleteDiff( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getFirst  [line 202] -
-
- -
-
-
  - mixed getFirst( -) -
-

- -

getFirst returns the first record in the collection -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getInsertDiff  [line 607] -
-
- -
-
-
  - void getInsertDiff( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 668] -
-
- -
-
-
  - object ArrayIterator getIterator( -) -
-

- -

getIterator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getKeyColumn  [line 182] -
-
- -
-
-
  - string getKeyColumn( -) -
-

- -

getKeyColumn returns the name of the key column -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getKeys  [line 345] -
-
- -
-
-
  - array getKeys( -) -
-

- -

returns all keys -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getLast  [line 212] -
-
- -
-
-
  - mixed getLast( -) -
-

- -

getLast returns the last record in the collection -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNormalIterator  [line 530] -
-
- -
-
-
  - Doctrine_Iterator_Normal getNormalIterator( -) -
-

- -

getNormalIterator returns normal iterator - an iterator that will not expand this collection -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPrimaryKeys  [line 327] -
-
- -
-
-
  - array getPrimaryKeys( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  an array containing all primary keys
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getReference  [line 251] -
-
- -
-
-
  - mixed getReference( -) -
-

- -

getReference -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSnapshot  [line 559] -
-
- -
-
-
  - array getSnapshot( -) -
-

- -

getSnapshot returns the data of the last snapshot -

- -
- API Tags:
- - - - - - - -
Return:  returns the data in last snapshot
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTable  [line 104] -
-
- -
-
-
  - Doctrine_Table getTable( -) -
-

- -

getTable returns the table this collection belongs to -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- loadRelated  [line 427] -
-
- -
-
-
  - boolean loadRelated( -[mixed -$name = null]  -) -
-

- -

loadRelated -

- - Parameters:
- - - - -
- mixed   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- populateRelated  [line 473] -
-
- -
-
-
  - void populateRelated( -string -$name, Doctrine_Collection -$coll  -) -
-

- -

populateRelated -

- - Parameters:
- - - - - - - -
- string   - $name:  -
- Doctrine_Collection   - $coll:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- processDiff  [line 575] -
-
- -
-
-
  - Doctrine_Collection processDiff( -) -
-

- -

processDiff processes the difference of the last snapshot and the current data -

-

an example: Snapshot with the objects 1, 2 and 4 Current data with objects 2, 3 and 5

The process would remove object 4

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- remove  [line 262] -
-
- -
-
-
  - boolean remove( -mixed -$key  -) -
-

- -

remove removes a specified collection element -

- - Parameters:
- - - - -
- mixed   - $key:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- save  [line 619] -
-
- -
-
-
  - Doctrine_Collection save( -[Doctrine_Connection -$conn = null]  -) -
-

- -

save saves all records of this collection and processes the difference of the last snapshot and the current data -

- - Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - optional connection parameter
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- search  [line 280] -
-
- -
-
-
  - void search( -Doctrine_Record -$record  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- serialize  [line 123] -
-
- -
-
-
  - array serialize( -) -
-

- -

this method is automatically called when this Doctrine_Collection is serialized -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Serializable::serialize
-
- -
-
[ Top ]
-
- -
- -
- set  [line 366] -
-
- -
-
-
  - void set( -integer -$key, Doctrine_Record -$record  -) -
-

- -

set -

- - Parameters:
- - - - - - - -
- integer   - $key:  -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setData  [line 114] -
-
- -
-
-
  - Doctrine_Collection setData( - -$data  -) -
-

- -

setData -

- - Parameters:
- - - - -
- array   - $data:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setKeyColumn  [line 170] -
-
- -
-
-
  - Doctrine_Collection setKeyColumn( -string -$column  -) -
-

- -

setKeyColumn sets the key column for this collection -

- - Parameters:
- - - - -
- string   - $column:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setReference  [line 222] -
-
- -
-
-
  - void setReference( -Doctrine_Record -$record, Doctrine_Relation -$relation  -) -
-

- -

setReference sets a reference pointer -

- - Parameters:
- - - - - - - -
- Doctrine_Record   - $record:  -
- Doctrine_Relation   - $relation:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- takeSnapshot  [line 547] -
-
- -
-
-
  - Doctrine_Collection takeSnapshot( -) -
-

- -

takeSnapshot takes a snapshot from this collection -

-

snapshots are used for diff processing, for example when a fetched collection has three elements, then two of those are being removed the diff would contain one element

Doctrine_Collection::save() attaches the diff with the help of last snapshot.

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- toArray  [line 589] -
-
- -
-
-
  - void toArray( -[boolean -$deep = false]  -) -
-

- -

toArray Mimics the result of a $query->execute(array(), Doctrine::FETCH_ARRAY); -

- - Parameters:
- - - - -
- boolean   - $deep:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- unserialize  [line 144] -
-
- -
-
-
  - void unserialize( - -$serialized  -) -
-

- -

unseralize this method is automatically called everytime a Doctrine_Collection object is unserialized -

- - Parameters:
- - - - -
-    - $serialized:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Serializable::unserialize
-
- -
-
[ Top ]
-
- -
- -
- __toString  [line 676] -
-
- -
-
-
  - void __toString( -) -
-

- -

returns a string representation of this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Collection_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Collection_Exception.html deleted file mode 100644 index 7afc96227..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Collection_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Collection_Exception

-Source Location: /Doctrine/Collection/Exception.php

- -

Class Doctrine_Collection_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Collection_Exception -

- -

- Located in /Doctrine/Collection/Exception.php [line 32] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Collection_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator.html b/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator.html deleted file mode 100644 index 09ed026ca..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator.html +++ /dev/null @@ -1,839 +0,0 @@ - - -
-

Class: Doctrine_Collection_Iterator

-Source Location: /Doctrine/Collection/Iterator.php

- -

Class Doctrine_Collection_Iterator

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Collection_Iterator iterates through Doctrine_Collection -

- -

- Located in /Doctrine/Collection/Iterator.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1323 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Collection_Iterator_Expandable - Doctrine_Collection_Iterator_Normal -
Doctrine_Collection_Iterator_Normal - Doctrine_Collection_Iterator_Normal -
Doctrine_Collection_Iterator_Offset - Doctrine_Collection_Iterator_Normal -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Collection  $collection  
integer  $count  
integer  $index  
mixed  $key  
array  $keys  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Collection_Iterator  __construct()  constructor
Doctrine_Record  current()  returns the current record
integer  key()  returns the current key
void  next()  advances the internal pointer
void  rewind()  rewinds the iterator
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Collection   - $collection - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $count - [line 54] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $index - [line 50] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $key - [line 46] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $keys - [line 42] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 60] -
-
- -
-
-
  - Doctrine_Collection_Iterator __construct( - -$collection  -) -
-

- -

constructor -

- - Parameters:
- - - - -
-    - $collection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- current  [line 94] -
-
- -
-
-
  - Doctrine_Record current( -) -
-

- -

returns the current record -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::current
-
- -
-
[ Top ]
-
- -
- -
- key  [line 85] -
-
- -
-
-
  - integer key( -) -
-

- -

returns the current key -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::key
-
- -
-
[ Top ]
-
- -
- -
- next  [line 103] -
-
- -
-
-
  - void next( -) -
-

- -

advances the internal pointer -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::next
-
- -
-
[ Top ]
-
- -
- -
- rewind  [line 71] -
-
- -
-
-
  - void rewind( -) -
-

- -

rewinds the iterator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::rewind
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Expandable.html b/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Expandable.html deleted file mode 100644 index 6a1a8c3a3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Expandable.html +++ /dev/null @@ -1,528 +0,0 @@ - - -
-

Class: Doctrine_Collection_Iterator_Expandable

-Source Location: /Doctrine/Collection/Iterator/Expandable.php

- -

Class Doctrine_Collection_Iterator_Expandable

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Collection_Iterator_Normal -

- -

- Located in /Doctrine/Collection/Iterator/Expandable.php [line 33] -

- - -
Doctrine_Collection_Iterator
-   |
-   --Doctrine_Collection_Iterator_Expandable
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Collection_Iterator

-
-
-
- Doctrine_Collection_Iterator::$collection -
-
- -
-
- Doctrine_Collection_Iterator::$count -
-
- -
-
- Doctrine_Collection_Iterator::$index -
-
- -
-
- Doctrine_Collection_Iterator::$key -
-
- -
-
- Doctrine_Collection_Iterator::$keys -
-
- -
-
-
-
-

Inherited From Doctrine_Collection_Iterator

-
-
-
- Doctrine_Collection_Iterator::__construct() -
-
- constructor -
-
- Doctrine_Collection_Iterator::current() -
-
- returns the current record -
-
- Doctrine_Collection_Iterator::key() -
-
- returns the current key -
-
- Doctrine_Collection_Iterator::next() -
-
- advances the internal pointer -
-
- Doctrine_Collection_Iterator::rewind() -
-
- rewinds the iterator -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  valid()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- valid  [line 35] -
-
- -
-
-
  - void valid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Normal.html b/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Normal.html deleted file mode 100644 index 232e029bd..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Normal.html +++ /dev/null @@ -1,531 +0,0 @@ - - -
-

Class: Doctrine_Collection_Iterator_Normal

-Source Location: /Doctrine/Collection/Iterator/Normal.php

- -

Class Doctrine_Collection_Iterator_Normal

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Collection_Iterator_Normal -

- -

- Located in /Doctrine/Collection/Iterator/Normal.php [line 33] -

- - -
Doctrine_Collection_Iterator
-   |
-   --Doctrine_Collection_Iterator_Normal
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Collection_Iterator

-
-
-
- Doctrine_Collection_Iterator::$collection -
-
- -
-
- Doctrine_Collection_Iterator::$count -
-
- -
-
- Doctrine_Collection_Iterator::$index -
-
- -
-
- Doctrine_Collection_Iterator::$key -
-
- -
-
- Doctrine_Collection_Iterator::$keys -
-
- -
-
-
-
-

Inherited From Doctrine_Collection_Iterator

-
-
-
- Doctrine_Collection_Iterator::__construct() -
-
- constructor -
-
- Doctrine_Collection_Iterator::current() -
-
- returns the current record -
-
- Doctrine_Collection_Iterator::key() -
-
- returns the current key -
-
- Doctrine_Collection_Iterator::next() -
-
- advances the internal pointer -
-
- Doctrine_Collection_Iterator::rewind() -
-
- rewinds the iterator -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  valid()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- valid  [line 38] -
-
- -
-
-
  - boolean valid( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  whether or not the iteration will continue
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Offset.html b/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Offset.html deleted file mode 100644 index 43fdfcf75..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Collection_Iterator_Offset.html +++ /dev/null @@ -1,528 +0,0 @@ - - -
-

Class: Doctrine_Collection_Iterator_Offset

-Source Location: /Doctrine/Collection/Iterator/Offset.php

- -

Class Doctrine_Collection_Iterator_Offset

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Collection_Iterator_Normal -

- -

- Located in /Doctrine/Collection/Iterator/Offset.php [line 33] -

- - -
Doctrine_Collection_Iterator
-   |
-   --Doctrine_Collection_Iterator_Offset
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Collection_Iterator

-
-
-
- Doctrine_Collection_Iterator::$collection -
-
- -
-
- Doctrine_Collection_Iterator::$count -
-
- -
-
- Doctrine_Collection_Iterator::$index -
-
- -
-
- Doctrine_Collection_Iterator::$key -
-
- -
-
- Doctrine_Collection_Iterator::$keys -
-
- -
-
-
-
-

Inherited From Doctrine_Collection_Iterator

-
-
-
- Doctrine_Collection_Iterator::__construct() -
-
- constructor -
-
- Doctrine_Collection_Iterator::current() -
-
- returns the current record -
-
- Doctrine_Collection_Iterator::key() -
-
- returns the current key -
-
- Doctrine_Collection_Iterator::next() -
-
- advances the internal pointer -
-
- Doctrine_Collection_Iterator::rewind() -
-
- rewinds the iterator -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  valid()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- valid  [line 35] -
-
- -
-
-
  - void valid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Collection_Offset.html b/api_documentation/trunk/Doctrine/Doctrine_Collection_Offset.html deleted file mode 100644 index fa4e09e93..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Collection_Offset.html +++ /dev/null @@ -1,967 +0,0 @@ - - -
-

Class: Doctrine_Collection_Offset

-Source Location: /Doctrine/Collection/Offset.php

- -

Class Doctrine_Collection_Offset

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Collection_Offset Collection of Doctrine_Record objects. -

- -

- Located in /Doctrine/Collection/Offset.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Collection
-         |
-         --Doctrine_Collection_Offset
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Collection

-
-
-
- Doctrine_Collection::$data -
-
- -
-
- Doctrine_Collection::$keyColumn -
-
- -
-
- Doctrine_Collection::$null -
-
- -
-
- Doctrine_Collection::$reference -
-
- -
-
- Doctrine_Collection::$referenceField -
-
- -
-
- Doctrine_Collection::$relation -
-
- -
-
- Doctrine_Collection::$_snapshot -
-
- -
-
- Doctrine_Collection::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Collection

-
-
-
- Doctrine_Collection::__construct() -
-
- constructor -
-
- Doctrine_Collection::add() -
-
- adds a record to collection -
-
- Doctrine_Collection::contains() -
-
- contains whether or not this collection contains a specified element -
-
- Doctrine_Collection::count() -
-
- count this class implements interface countable returns the number of records in this collection -
-
- Doctrine_Collection::delete() -
-
- delete -
-
- Doctrine_Collection::get() -
-
- get returns a record for given key -
-
- Doctrine_Collection::getData() -
-
- getData returns all the records as an array -
-
- Doctrine_Collection::getDeleteDiff() -
-
- -
-
- Doctrine_Collection::getFirst() -
-
- getFirst returns the first record in the collection -
-
- Doctrine_Collection::getInsertDiff() -
-
- -
-
- Doctrine_Collection::getIterator() -
-
- getIterator -
-
- Doctrine_Collection::getKeyColumn() -
-
- getKeyColumn returns the name of the key column -
-
- Doctrine_Collection::getKeys() -
-
- returns all keys -
-
- Doctrine_Collection::getLast() -
-
- getLast returns the last record in the collection -
-
- Doctrine_Collection::getNormalIterator() -
-
- getNormalIterator returns normal iterator - an iterator that will not expand this collection -
-
- Doctrine_Collection::getPrimaryKeys() -
-
- -
-
- Doctrine_Collection::getReference() -
-
- getReference -
-
- Doctrine_Collection::getSnapshot() -
-
- getSnapshot returns the data of the last snapshot -
-
- Doctrine_Collection::getTable() -
-
- getTable returns the table this collection belongs to -
-
- Doctrine_Collection::initNullObject() -
-
- initNullObject initializes the null object for this collection -
-
- Doctrine_Collection::loadRelated() -
-
- loadRelated -
-
- Doctrine_Collection::populateRelated() -
-
- populateRelated -
-
- Doctrine_Collection::processDiff() -
-
- processDiff processes the difference of the last snapshot and the current data -
-
- Doctrine_Collection::remove() -
-
- remove removes a specified collection element -
-
- Doctrine_Collection::save() -
-
- save saves all records of this collection and processes the difference of the last snapshot and the current data -
-
- Doctrine_Collection::search() -
-
- -
-
- Doctrine_Collection::serialize() -
-
- this method is automatically called when this Doctrine_Collection is serialized -
-
- Doctrine_Collection::set() -
-
- set -
-
- Doctrine_Collection::setData() -
-
- setData -
-
- Doctrine_Collection::setKeyColumn() -
-
- setKeyColumn sets the key column for this collection -
-
- Doctrine_Collection::setReference() -
-
- setReference sets a reference pointer -
-
- Doctrine_Collection::takeSnapshot() -
-
- takeSnapshot takes a snapshot from this collection -
-
- Doctrine_Collection::toArray() -
-
- toArray Mimics the result of a $query->execute(array(), Doctrine::FETCH_ARRAY); -
-
- Doctrine_Collection::unserialize() -
-
- unseralize this method is automatically called everytime a Doctrine_Collection object is unserialized -
-
- Doctrine_Collection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
integer  $limit  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Collection_Offset  __construct()  
Doctrine_Collection_Iterator_Expandable  getIterator()  
integer  getLimit()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - integer   - $limit - [line 39] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 43] -
-
- -
-
-
  - Doctrine_Collection_Offset __construct( -Doctrine_Table -$table  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Collection::__construct()
-
constructor
-
- -
-
[ Top ]
-
- -
- -
- getIterator  [line 58] -
-
- -
-
-
  - Doctrine_Collection_Iterator_Expandable getIterator( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Collection::getIterator()
-
getIterator
-
- -
-
[ Top ]
-
- -
- -
- getLimit  [line 51] -
-
- -
-
-
  - integer getLimit( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Column.html b/api_documentation/trunk/Doctrine/Doctrine_Column.html deleted file mode 100644 index c9ad7e216..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Column.html +++ /dev/null @@ -1,1066 +0,0 @@ - - -
-

Class: Doctrine_Column

-Source Location: /Doctrine/Column.php

- -

Class Doctrine_Column

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • IteratorAggregate (internal interface)
  • Countable (internal interface)
-

-

Doctrine_Column This class represents a database column -

- -

- Located in /Doctrine/Column.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Column
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1392 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $_definition  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Column  __construct()  
boolean  contains()  contains
integer  count()  count
mixed  enumIndex()  enumIndex
mixed  enumValue()  enumValue
mixed  get()  get
array  getDefinition()  
array  getEnumValues()  
ArrayIterator  getIterator()  getIterator
mixed  set()  set
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_definition - = array(
'type' => null,
'length' => 0,
)
[line 38] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 45] -
-
- -
-
-
  - Doctrine_Column __construct( -[ -$definition = array()]  -) -
-

- - - Parameters:
- - - - -
- array   - $definition:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- contains  [line 61] -
-
- -
-
-
  - boolean contains( - -$name  -) -
-

- -

contains -

- - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 134] -
-
- -
-
-
  - integer count( -) -
-

- -

count -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- enumIndex  [line 123] -
-
- -
-
-
  - mixed enumIndex( -string -$field, mixed -$value  -) -
-

- -

enumIndex -

- - Parameters:
- - - - - - - -
- string   - $field:  -
- mixed   - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- enumValue  [line 108] -
-
- -
-
-
  - mixed enumValue( -integer -$index, string -$field  -) -
-

- -

enumValue -

- - Parameters:
- - - - - - - -
- string   - $field:  -
- integer   - $index:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- get  [line 71] -
-
- -
-
-
  - mixed get( -string -$name  -) -
-

- -

get -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDefinition  [line 52] -
-
- -
-
-
  - array getDefinition( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getEnumValues  [line 93] -
-
- -
-
-
  - array getEnumValues( -string -$field  -) -
-

- - - Parameters:
- - - - -
- string   - $field:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 143] -
-
- -
-
-
  - ArrayIterator getIterator( -) -
-

- -

getIterator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- set  [line 85] -
-
- -
-
-
  - mixed set( -string -$name, -$value  -) -
-

- -

set -

- - Parameters:
- - - - - - - -
- string   - $name:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Compiler.html b/api_documentation/trunk/Doctrine/Doctrine_Compiler.html deleted file mode 100644 index b595f13c2..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Compiler.html +++ /dev/null @@ -1,429 +0,0 @@ - - -
-

Class: Doctrine_Compiler

-Source Location: /Doctrine/Compiler.php

- -

Class Doctrine_Compiler

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Compiler This class can be used for compiling the entire Doctrine framework into a single file -

- -

- Located in /Doctrine/Compiler.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1768 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
static - void   - compile()  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
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - -
- -
- static method compile  [line 43] -
-
- -
-
-
  - static void compile( -[ -$target = null]  -) -
-

- -

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 -

- - Parameters:
- - - - -
-    - $target:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Compiler_Exception if something went wrong during the compile operation
- - -
-
[ Top ]
-
- -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Compiler_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Compiler_Exception.html deleted file mode 100644 index 78c95d487..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Compiler_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Compiler_Exception

-Source Location: /Doctrine/Compiler/Exception.php

- -

Class Doctrine_Compiler_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Compiler_Exception -

- -

- Located in /Doctrine/Compiler/Exception.php [line 32] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Compiler_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Configurable.html b/api_documentation/trunk/Doctrine/Doctrine_Configurable.html deleted file mode 100644 index a1d310fac..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Configurable.html +++ /dev/null @@ -1,1391 +0,0 @@ - - -
-

Class: Doctrine_Configurable

-Source Location: /Doctrine/Configurable.php

- -

Class Doctrine_Configurable

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Configurable the base for Doctrine_Table, Doctrine_Manager and Doctrine_Connection -

- -

- Located in /Doctrine/Configurable.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 2153 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Connection - Doctrine_Connection -
Doctrine_Manager - Doctrine_Manager is the base component of all doctrine based projects. -
Doctrine_Table - Doctrine_Table represents a database table each Doctrine_Table holds the information of foreignKeys and associations -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
array  $attributes  
Doctrine_Configurable  $parent  
array  $_impl  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
mixed  addListener()  addListener
mixed  addRecordListener()  addRecordListener
mixed  getAttribute()  returns the value of an attribute
array  getAttributes()  getAttributes returns all attributes as an array
Doctrine_Cache_Interface  getCacheDriver()  getCacheDriver
string  getImpl()  getImpl returns the implementation for given class
Doctrine_EventListener_Interface|Doctrine_Overloadable  getListener()  getListener
Doctrine_Configurable  getParent()  getParent returns the parent of this component
Doctrine_EventListener_Interface|Doctrine_Overloadable  getRecordListener()  getListener
void  setAttribute()  setAttribute sets a given attribute
void  setEventListener()  
Doctrine_Configurable  setImpl()  setImpl binds given class to given template name
Doctrine_Configurable  setListener()  setListener
void  setParent()  sets a parent for this configurable component the parent must be configurable component itself
Doctrine_Configurable  setRecordListener()  setListener
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $attributes - = array() [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Configurable   - $parent - [line 43] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_impl - = array() [line 49] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- addListener  [line 267] -
-
- -
-
-
  - mixed addListener( -Doctrine_EventListener_Interface|Doctrine_Overloadable -$listener, [ -$name = null]  -) -
-

- -

addListener -

- - Parameters:
- - - - - - - -
- Doctrine_EventListener_Interface|Doctrine_Overloadable   - $listener:  -
-    - $name:  -
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addRecordListener  [line 218] -
-
- -
-
-
  - mixed addRecordListener( -Doctrine_EventListener_Interface|Doctrine_Overloadable -$listener, [ -$name = null]  -) -
-

- -

addRecordListener -

- - Parameters:
- - - - - - - -
- Doctrine_EventListener_Interface|Doctrine_Overloadable   - $listener:  -
-    - $name:  -
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAttribute  [line 316] -
-
- -
-
-
  - mixed getAttribute( -integer -$attribute  -) -
-

- -

returns the value of an attribute -

- - Parameters:
- - - - -
- integer   - $attribute:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getAttributes  [line 338] -
-
- -
-
-
  - array getAttributes( -) -
-

- -

getAttributes returns all attributes as an array -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCacheDriver  [line 196] -
-
- -
-
-
  - Doctrine_Cache_Interface getCacheDriver( -) -
-

- -

getCacheDriver -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getImpl  [line 181] -
-
- -
-
-
  - string getImpl( - -$template  -) -
-

- -

getImpl returns the implementation for given class -

- - Parameters:
- - - - -
-    - $template:  -
- -
- API Tags:
- - - - - - - -
Return:  name of the concrete implementation
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getListener  [line 283] -
-
- - - -

getListener -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getParent  [line 359] -
-
- -
-
-
  - Doctrine_Configurable getParent( -) -
-

- -

getParent returns the parent of this component -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRecordListener  [line 234] -
-
- -
-
-
  - Doctrine_EventListener_Interface|Doctrine_Overloadable getRecordListener( -) -
-

- -

getListener -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setAttribute  [line 69] -
-
- -
-
-
  - void setAttribute( -mixed -$attribute, mixed -$value  -) -
-

- -

setAttribute sets a given attribute -

-

  1.  $manager->setAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_ALL);
  2. -
  3.  
  4. -
  5.  // or
  6. -
  7.  
  8. -
  9.  $manager->setAttribute('portability'Doctrine::PORTABILITY_ALL);
  10. -

- Parameters:
- - - - - - - -
- mixed   - $attribute:  - either a Doctrine::ATTR_* integer constant or a string corresponding to a constant
- mixed   - $value:  - the value of the attribute
- -
- API Tags:
- - - - - - - -
See:  Doctrine::ATTR_* constants
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Exception if the value is invalid
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- setEventListener  [line 208] -
-
- -
-
-
  - void setEventListener( -Doctrine_EventListener -$listener  -) -
-

- - - Parameters:
- - - - -
- Doctrine_EventListener   - $listener:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setImpl  [line 169] -
-
- -
-
-
  - Doctrine_Configurable setImpl( -string -$template, string -$class  -) -
-

- -

setImpl binds given class to given template name -

-

this method is the base of Doctrine dependency injection

- Parameters:
- - - - - - - -
- string   - $template:  - name of the class template
- string   - $class:  - name of the class to be bound
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setListener  [line 299] -
-
- - - -

setListener -

- - Parameters:
- - - - -
- Doctrine_EventListener_Interface|Doctrine_Overloadable   - $listener:  -
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setParent  [line 349] -
-
- -
-
-
  - void setParent( -Doctrine_Configurable -$component  -) -
-

- -

sets a parent for this configurable component the parent must be configurable component itself -

- - Parameters:
- - - - -
- Doctrine_Configurable   - $component:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setRecordListener  [line 250] -
-
- -
-
-
  - Doctrine_Configurable setRecordListener( -Doctrine_EventListener_Interface|Doctrine_Overloadable -$listener  -) -
-

- -

setListener -

- - Parameters:
- - - - -
- Doctrine_EventListener_Interface|Doctrine_Overloadable   - $listener:  -
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection.html b/api_documentation/trunk/Doctrine/Doctrine_Connection.html deleted file mode 100644 index ff39e5bf7..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection.html +++ /dev/null @@ -1,4014 +0,0 @@ - - -
-

Class: Doctrine_Connection

-Source Location: /Doctrine/Connection.php

- -

Class Doctrine_Connection

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

-

Doctrine_Connection -

-

A wrapper layer on top of PDO / Doctrine_Adapter

Doctrine_Connection is the heart of any Doctrine based application.

  1. Event listeners - An easy to use, pluggable eventlistener architecture. Aspects such as - logging, query profiling and caching can be easily implemented through - the use of these listeners
2. Lazy-connecting Creating an instance of Doctrine_Connection does not connect to database. Connecting to database is only invoked when actually needed (for example when query() is being called)

3. Convenience methods Doctrine_Connection provides many convenience methods such as fetchAll(), fetchOne() etc.

4. Modular structure Higher level functionality such as schema importing, exporting, sequence handling etc. is divided into modules. For a full list of connection modules see Doctrine_Connection::$_modules

-

- Located in /Doctrine/Connection.php [line 56] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 2290 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Connection_Common - standard connection, the parent of pgsql, mysql and sqlite -
Doctrine_Connection_Db2 - Doctrine_Connection_Db2 -
Doctrine_Connection_Firebird - Doctrine_Connection_Firebird -
Doctrine_Connection_Informix - Doctrine_Connection_Mysql -
Doctrine_Connection_Mssql - Doctrine_Connection_Mssql -
Doctrine_Connection_Oracle - Doctrine_Connection_Oracle -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static array  $availableDrivers  
$dbh  $dbh  
string  $driverName  
boolean  $isConnected  
array  $modules  
mixed  $options  
array  $pendingAttributes  
array  $properties  
array  $serverInfo  
array  $supported  
array  $tables  
mixed  $_count  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - void   - getAvailableDrivers()  returns an array of available PDO drivers
Doctrine_Connection  __construct()  the constructor
boolean  addTable()  addTable adds a Doctrine_Table object into connection registry
integer  beginTransaction()  beginTransaction Start a transaction or set a savepoint.
void  clear()  clear clears all repositories
void  close()  close closes the connection
boolean  commit()  commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail.
boolean  connect()  connect connects into database
void  convertBooleans()  convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
integer  count()  returns the count of initialized table objects
Doctrine_Record  create()  create creates a record
void  driverName()  converts given driver name
integer  errorCode()  errorCode Fetch the SQLSTATE associated with the last operation on the database handle
array  errorInfo()  errorInfo Fetch extended error information associated with the last operation on the database handle
void  evictTables()  evictTables evicts all tables
PDOStatement|Doctrine_Adapter_Statement  exec()  exec
PDOStatement|Doctrine_Adapter_Statement  execute()  execute
array  fetchAll()  fetchAll
array  fetchArray()  fetchArray
array  fetchAssoc()  fetchAssoc
array  fetchBoth()  fetchBoth
array  fetchColumn()  fetchColumn
mixed  fetchOne()  fetchOne
array  fetchRow()  fetchRow
void  flush()  flush saves all the records from all tables this operation is isolated using a transaction
mixed  getAttribute()  getAttribute retrieves a database connection attribute
PDO  getDbh()  returns the database handler of which this connection uses
ArrayIterator  getIterator()  returns an iterator that iterators through all initialized table objects
Doctrine_Manager  getManager()  returns the manager that created this connection
string  getName()  getName returns the name of this driver
object Doctrine_Table  getTable()  returns a table object for given component name
array  getTables()  returns an array of all initialized tables
integer  getTransactionLevel()  get the current transaction nesting level
boolean  hasTable()  hasTable whether or not this connection has table $name initialized
void  incrementQueryCount()  
boolean  insert()  Inserts a table row with specified data.
void  lastInsertId()  lastInsertId
void  prepare()  prepare
Doctrine_Collection  query()  query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects
Doctrine_Record|false  queryOne()  query queries the database using Doctrine Query Language and returns the first record found
mixed  quote()  quote quotes given input parameter
string  quoteIdentifier()  Quote a string so it can be safely used as a table or column name
integer  replace()  Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
void  rethrowException()  rethrowException
boolean  rollback()  rollback
PDOStatement  select()  queries the database with limit and offset added to the query and returns a PDOStatement object
boolean  setAttribute()  setAttribute sets an attribute
void  setCharset()  Set the charset on the current connection
void  setDateFormat()  Set the date/time format for the current connection
PDOStatement|Doctrine_Adapter_Statement  standaloneQuery()  standaloneQuery
boolean  supports()  supports
Doctrine_Connection_Module  __get()  __get lazy loads given module and returns it
string  __toString()  returns a string representation of this object
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $availableDrivers - = array(
'Mysql',
'Pgsql',
'Oracle',
'Informix',
'Mssql',
'Sqlite',
'Firebird'
)
[line 147] -
-
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - $dbh   - $dbh - [line 61] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- - - -
- -
- - boolean   - $isConnected - = false [line 74] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $modules - = array('transaction' => false,
'expression' => false,
'dataDict' => false,
'export' => false,
'import' => false,
'sequence' => false,
'unitOfWork' => false,
'formatter' => false,
'util' => false,
)
[line 115] -
-
- - API Tags:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
See:  Doctrine_Sequence
See:  Doctrine_Connection_UnitOfWork
See:  Doctrine_Formatter
See:  Doctrine_Connection::__get()
See:  Doctrine_Transaction
See:  Doctrine_DataDict
See:  Doctrine_Expression
See:  Doctrine_Export
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $options - = array() [line 143] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $pendingAttributes - = array() [line 86] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $properties - = array('sql_comments' => array(array('start' => '--', 'end' => "\n", 'escape' => false),array('start'=>'/*','end'=>'*/','escape'=>false)),'identifier_quoting'=>array('start'=>'"','end'=>'"','escape'=>'"'),'string_quoting'=>array('start'=>"'",'end'=>"'",'escape'=>false,'escape_pattern'=>false),'wildcards'=>array('%','_'),'varchar_max_length'=>255,) [line 128] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $serverInfo - = array() [line 141] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $supported - = array() [line 80] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $tables - = array() [line 66] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_count - [line 156] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method getAvailableDrivers  [line 224] -
-
- -
-
-
  - static void getAvailableDrivers( -) -
-

- -

returns an array of available PDO drivers -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 164] -
-
- -
-
-
  - Doctrine_Connection __construct( -Doctrine_Manager -$manager, PDO|Doctrine_Adapter_Interface -$adapter, [ -$user = null], [ -$pass = null]  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Manager   - $manager:  - the manager object
- PDO|Doctrine_Adapter_Interface   - $adapter:  - database driver
-    - $user:  -
-    - $pass:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- addTable  [line 945] -
-
- -
-
-
  - boolean addTable( -Doctrine_Table -$table  -) -
-

- -

addTable adds a Doctrine_Table object into connection registry -

- - Parameters:
- - - - -
- $table   - $table:  - a Doctrine_Table object to be added into registry
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- beginTransaction  [line 1086] -
-
- -
-
-
  - integer beginTransaction( -[string -$savepoint = null]  -) -
-

- -

beginTransaction Start a transaction or set a savepoint. -

-

if trying to set a savepoint and there is no active transaction a new transaction is being started

Listeners: onPreTransactionBegin, onTransactionBegin

- Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to set
- -
- API Tags:
- - - - - - - -
Return:  current transaction nesting level
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Transaction_Exception if the transaction fails at database level
- - -
-
[ Top ]
-
- -
- -
- clear  [line 987] -
-
- -
-
-
  - void clear( -) -
-

- -

clear clears all repositories -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- close  [line 1011] -
-
- -
-
-
  - void close( -) -
-

- -

close closes the connection -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- commit  [line 1103] -
-
- -
-
-
  - boolean commit( -[string -$savepoint = null]  -) -
-

- -

commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -

-

Listeners: onPreTransactionCommit, onTransactionCommit

- Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to release
- -
- API Tags:
- - - - - - - -
Return:  false if commit couldn't be performed, true otherwise
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Validator_Exception if the transaction fails due to record validations
Throws:  Doctrine_Transaction_Exception if the transaction fails at PDO level
- - -
-
[ Top ]
-
- -
- -
- connect  [line 323] -
-
- -
-
-
  - boolean connect( -) -
-

- -

connect connects into database -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- convertBooleans  [line 562] -
-
- -
-
-
  - void convertBooleans( -array -$item  -) -
-

- -

convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -

-

This method takes care of that conversion

- Parameters:
- - - - -
- array   - $item:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- count  [line 934] -
-
- -
-
-
  - integer count( -) -
-

- -

returns the count of initialized table objects -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- create  [line 963] -
-
- -
-
-
  - Doctrine_Record create( -string -$name  -) -
-

- -

create creates a record -

-

create creates a record

- Parameters:
- - - - -
- string   - $name:  - component name
- -
- API Tags:
- - - - - - - -
Return:  Doctrine_Record object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- driverName  [line 379] -
-
- -
-
-
  - void driverName( - -$name  -) -
-

- -

converts given driver name -

- - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorCode  [line 1039] -
-
- -
-
-
  - integer errorCode( -) -
-

- -

errorCode Fetch the SQLSTATE associated with the last operation on the database handle -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorInfo  [line 1051] -
-
- -
-
-
  - array errorInfo( -) -
-

- -

errorInfo Fetch extended error information associated with the last operation on the database handle -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- evictTables  [line 1000] -
-
- -
-
-
  - void evictTables( -) -
-

- -

evictTables evicts all tables -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- exec  [line 816] -
-
- -
-
-
  - PDOStatement|Doctrine_Adapter_Statement exec( -string -$query, [ -$params = array()]  -) -
-

- -

exec -

- - Parameters:
- - - - - - - -
- string   - $query:  - sql query
- array   - $params:  - query parameters
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- execute  [line 781] -
-
- -
-
-
  - PDOStatement|Doctrine_Adapter_Statement execute( -string -$query, [ -$params = array()]  -) -
-

- -

execute -

- - Parameters:
- - - - - - - -
- string   - $query:  - sql query
- array   - $params:  - query parameters
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchAll  [line 595] -
-
- -
-
-
  - array fetchAll( -string -$statement, [ -$params = array()]  -) -
-

- -

fetchAll -

- - Parameters:
- - - - - - - -
- string   - $statement:  - sql query to be executed
- array   - $params:  - prepared statement params
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchArray  [line 629] -
-
- -
-
-
  - array fetchArray( -string -$statement, [ -$params = array()]  -) -
-

- -

fetchArray -

- - Parameters:
- - - - - - - -
- string   - $statement:  - sql query to be executed
- array   - $params:  - prepared statement params
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchAssoc  [line 652] -
-
- -
-
-
  - array fetchAssoc( -string -$statement, [ -$params = array()]  -) -
-

- -

fetchAssoc -

- - Parameters:
- - - - - - - -
- string   - $statement:  - sql query to be executed
- array   - $params:  - prepared statement params
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchBoth  [line 663] -
-
- -
-
-
  - array fetchBoth( -string -$statement, [ -$params = array()]  -) -
-

- -

fetchBoth -

- - Parameters:
- - - - - - - -
- string   - $statement:  - sql query to be executed
- array   - $params:  - prepared statement params
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchColumn  [line 641] -
-
- -
-
-
  - array fetchColumn( -string -$statement, [ -$params = array()], [int -$colnum = 0]  -) -
-

- -

fetchColumn -

- - Parameters:
- - - - - - - - - - -
- string   - $statement:  - sql query to be executed
- array   - $params:  - prepared statement params
- int   - $colnum:  - 0-indexed column number to retrieve
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchOne  [line 607] -
-
- -
-
-
  - mixed fetchOne( -string -$statement, [ -$params = array()], [int -$colnum = 0]  -) -
-

- -

fetchOne -

- - Parameters:
- - - - - - - - - - -
- string   - $statement:  - sql query to be executed
- array   - $params:  - prepared statement params
- int   - $colnum:  - 0-indexed column number to retrieve
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchRow  [line 618] -
-
- -
-
-
  - array fetchRow( -string -$statement, [ -$params = array()]  -) -
-

- -

fetchRow -

- - Parameters:
- - - - - - - -
- string   - $statement:  - sql query to be executed
- array   - $params:  - prepared statement params
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- flush  [line 975] -
-
- -
-
-
  - void flush( -) -
-

- -

flush saves all the records from all tables this operation is isolated using a transaction -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException if something went wrong at database level
- - -
-
[ Top ]
-
- -
- -
- getAttribute  [line 196] -
-
- -
-
-
  - mixed getAttribute( -integer -$attribute  -) -
-

- -

getAttribute retrieves a database connection attribute -

- - Parameters:
- - - - -
- integer   - $attribute:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Configurable::getAttribute()
-
returns the value of an attribute
-
- -
-
[ Top ]
-
- -
- -
- getDbh  [line 311] -
-
- -
-
-
  - PDO getDbh( -) -
-

- -

returns the database handler of which this connection uses -

- -
- API Tags:
- - - - - - - -
Return:  the database handler
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 925] -
-
- -
-
-
  - ArrayIterator getIterator( -) -
-

- -

returns an iterator that iterators through all initialized table objects -

-

  1.  foreach ($conn as $index => $table{
  2. -
  3.       print $table;  // get a string representation of each table object
  4. -
  5.  }
  6. -

-
- API Tags:
- - - - - - - -
Return:  SPL ArrayIterator object
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- getManager  [line 302] -
-
- -
-
-
  - Doctrine_Manager getManager( -) -
-

- -

returns the manager that created this connection -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getName  [line 255] -
-
- -
-
-
  - string getName( -) -
-

- -

getName returns the name of this driver -

- -
- API Tags:
- - - - - - - -
Return:  the name of this driver
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTable  [line 886] -
-
- -
-
-
  - object Doctrine_Table getTable( -string -$name, [ -$allowExport = true]  -) -
-

- -

returns a table object for given component name -

- - Parameters:
- - - - - - - -
- string   - $name:  - component name
-    - $allowExport:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTables  [line 909] -
-
- -
-
-
  - array getTables( -) -
-

- -

returns an array of all initialized tables -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTransactionLevel  [line 1029] -
-
- -
-
-
  - integer getTransactionLevel( -) -
-

- -

get the current transaction nesting level -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasTable  [line 876] -
-
- -
-
-
  - boolean hasTable( -mixed -$name  -) -
-

- -

hasTable whether or not this connection has table $name initialized -

- - Parameters:
- - - - -
- mixed   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- incrementQueryCount  [line 370] -
-
- -
-
-
  - void incrementQueryCount( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- insert  [line 467] -
-
- -
-
-
  - boolean insert( -string -$table, [ -$values = array()]  -) -
-

- -

Inserts a table row with specified data. -

- - Parameters:
- - - - - - - -
- string   - $table:  - The table to insert data into.
- array   - $values:  - An associateve array containing column-value pairs.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 1069] -
-
- -
-
-
  - void lastInsertId( -[string -$table = null], [string -$field = null]  -) -
-

- -

lastInsertId -

-

Returns the ID of the last inserted row, or the last value from a sequence object, depending on the underlying driver.

Note: This method may not return a meaningful or consistent result across different drivers, because the underlying database may not even support the notion of auto-increment fields or sequences.

- Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepare  [line 694] -
-
- -
-
-
  - void prepare( -string -$statement  -) -
-

- -

prepare -

- - Parameters:
- - - - -
- string   - $statement:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- query  [line 683] -
-
- -
-
-
  - Doctrine_Collection query( -string -$query, [ -$params = array()]  -) -
-

- -

query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -

-

  1.  $users $conn->query('SELECT u.* FROM User u');
  2. -
  3.  
  4. -
  5.  $users $conn->query('SELECT u.* FROM User u WHERE u.name LIKE ?'array('someone'));
  6. -

- Parameters:
- - - - - - - -
- string   - $query:  - DQL query
- array   - $params:  - query parameters
- -
- API Tags:
- - - - - - - - - - -
Return:  Collection of Doctrine_Record objects
See:  Doctrine_Query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- queryOne  [line 736] -
-
- -
-
-
  - Doctrine_Record|false queryOne( -string -$query, [ -$params = array()]  -) -
-

- -

query queries the database using Doctrine Query Language and returns the first record found -

-

  1.  $user $conn->queryOne('SELECT u.* FROM User u WHERE u.id = ?'array(1));
  2. -
  3.  
  4. -
  5.  $user $conn->queryOne('SELECT u.* FROM User u WHERE u.name LIKE ? AND u.password = ?',
  6. -
  7.          array('someone''password')
  8. -
  9.          );
  10. -

- Parameters:
- - - - - - - -
- string   - $query:  - DQL query
- array   - $params:  - query parameters
- -
- API Tags:
- - - - - - - - - - -
Return:  Doctrine_Record object on success, boolean false on failure
See:  Doctrine_Query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- quote  [line 574] -
-
- -
-
-
  - mixed quote( -mixed -$input, [string -$type = null]  -) -
-

- -

quote quotes given input parameter -

- - Parameters:
- - - - - - - -
- mixed   - $input:  - parameter to be quoted
- string   - $type:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- quoteIdentifier  [line 541] -
-
- -
-
-
  - string quoteIdentifier( -string -$str, [bool -$checkOption = true]  -) -
-

- -

Quote a string so it can be safely used as a table or column name -

-

Delimiting style depends on which database driver is being used.

NOTE: just because you CAN use delimited identifiers doesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve.

Portability is broken by using the following characters inside delimited identifiers:

  • backtick (`) -- due to MySQL
  • double quote (") -- due to Oracle
  • brackets ([ or ]) -- due to Access
Delimited identifiers are known to generally work correctly under the following drivers:
  • mssql
  • mysql
  • mysqli
  • oci8
  • pgsql
  • sqlite
InterBase doesn't seem to be able to use delimited identifiers via PHP 4. They work fine under PHP 5.

- Parameters:
- - - - - - - -
- string   - $str:  - identifier name to be quoted
- bool   - $checkOption:  - check the 'quote_identifier' option
- -
- API Tags:
- - - - - - - -
Return:  quoted identifier string
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- replace  [line 428] -
-
- -
-
-
  - integer replace( -string -$table, -$fields, -$keys  -) -
-

- -

Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -

-

The REPLACE type of query does not make part of the SQL standards. Since practically only MySQL and SQLIte implement it natively, this type of query isemulated through this method for other DBMS using standard types of queries inside a transaction to assure the atomicity of the operation.

- Parameters:
- - - - - - - - - - -
- array   - $keys:  -

an array containing all key fields (primary key fields or unique index fields) for this table

the uniqueness of a row will be determined according to the provided key fields

this method will fail if no key fields are specified

- string   - $table:  - name of the table on which the REPLACE query will be executed.
- array   - $fields:  -

an associative array that describes the fields and the values that will be inserted or updated in the specified table. The indexes of the array are the names of all the fields of the table.

The values of the array are values to be assigned to the specified field.

- -
- API Tags:
- - - - - - - -
Return:  number of rows affected
Access:  public
-
- -Information Tags:
- - - - - - - - - - - - - -
Throws:  Doctrine_Connection_Exception if this driver doesn't support replace
Throws:  PDOException if something fails at PDO level
Throws:  Doctrine_Connection_Exception if some of the key values was null
Throws:  Doctrine_Connection_Exception if there were no key fields
- - -
-
Redefined in descendants as:
-
    -
  • - Doctrine_Connection_Mysql::replace() - : Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
  • -
-
-
[ Top ]
-
- -
- -
- rethrowException  [line 849] -
-
- -
-
-
  - void rethrowException( - -$e, -$invoker  -) -
-

- -

rethrowException -

- - Parameters:
- - - - - - - -
- Exception   - $e:  -
-    - $invoker:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception
- - -
-
[ Top ]
-
- -
- -
- rollback  [line 1121] -
-
- -
-
-
  - boolean rollback( -[string -$savepoint = null]  -) -
-

- -

rollback -

-

Cancel any database changes done during a transaction or since a specific savepoint that is in progress. This function may only be called when auto-committing is disabled, otherwise it will fail. Therefore, a new transaction is implicitly started after canceling the pending changes.

this method can be listened with onPreTransactionRollback and onTransactionRollback eventlistener methods

- Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to rollback to
- -
- API Tags:
- - - - - - - -
Return:  false if rollback couldn't be performed, true otherwise
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Transaction_Exception if the rollback operation fails at database level
- - -
-
[ Top ]
-
- -
- -
- select  [line 755] -
-
- -
-
-
  - PDOStatement select( -string -$query, [integer -$limit = 0], [integer -$offset = 0]  -) -
-

- -

queries the database with limit and offset added to the query and returns a PDOStatement object -

- - Parameters:
- - - - - - - - - - -
- string   - $query:  -
- integer   - $limit:  -
- integer   - $offset:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setAttribute  [line 236] -
-
- -
-
-
  - boolean setAttribute( -integer -$attribute, mixed -$value  -) -
-

- -

setAttribute sets an attribute -

- - Parameters:
- - - - - - - -
- integer   - $attribute:  -
- mixed   - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Configurable::setAttribute()
-
setAttribute sets a given attribute
-
- -
-
[ Top ]
-
- -
- -
- setCharset  [line 505] -
-
- -
-
-
  - void setCharset( -string -$charset  -) -
-

- -

Set the charset on the current connection -

- - Parameters:
- - - - -
- string   - $charset:  - charset
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- setDateFormat  [line 585] -
-
- -
-
-
  - void setDateFormat( -[string -$format = null]  -) -
-

- -

Set the date/time format for the current connection -

- - Parameters:
- - - - -
- string   - $format:  - time format
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- standaloneQuery  [line 770] -
-
- -
-
-
  - PDOStatement|Doctrine_Adapter_Statement standaloneQuery( -string -$query, [array -$params = array()]  -) -
-

- -

standaloneQuery -

- - Parameters:
- - - - - - - -
- string   - $query:  - sql query
- array   - $params:  - query parameters
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- supports  [line 388] -
-
- -
-
-
  - boolean supports( -string -$feature  -) -
-

- -

supports -

- - Parameters:
- - - - -
- string   - $feature:  - the name of the feature
- -
- API Tags:
- - - - - - - -
Return:  whether or not this drivers supports given feature
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __get  [line 272] -
-
- -
-
-
  - Doctrine_Connection_Module __get( -string -$name  -) -
-

- -

__get lazy loads given module and returns it -

- - Parameters:
- - - - -
- string   - $name:  - the name of the module to get
- -
- API Tags:
- - - - - - - - - - - - - - - - - - - - - - -
Return:  connection module
See:  Doctrine_Connection::$modules all availible modules
See:  Doctrine_DataDict
See:  Doctrine_Transaction
See:  Doctrine_Export
See:  Doctrine_Expression
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if trying to get an unknown module
- - -
-
[ Top ]
-
- -
- -
- __toString  [line 1130] -
-
- -
-
-
  - string __toString( -) -
-

- -

returns a string representation of this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Common.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Common.html deleted file mode 100644 index 3031dbd21..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Common.html +++ /dev/null @@ -1,1100 +0,0 @@ - - -
-

Class: Doctrine_Connection_Common

-Source Location: /Doctrine/Connection/Common.php

- -

Class Doctrine_Connection_Common

- - -
-
Class Overview
- -
- - - - - - -
- -

standard connection, the parent of pgsql, mysql and sqlite -

- -

- Located in /Doctrine/Connection/Common.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Common
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1794 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Connection_Mock - Doctrine_Connection_Mysql -
Doctrine_Connection_Mysql - Doctrine_Connection_Mysql -
Doctrine_Connection_Pgsql - Doctrine_Connection_Pgsql -
Doctrine_Connection_Sqlite - Doctrine_Connection_Sqlite -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$driverName -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  modifyLimitQuery()  Adds an driver-specific LIMIT clause to the query
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- modifyLimitQuery  [line 42] -
-
- -
-
-
  - void modifyLimitQuery( -string -$query, [mixed -$limit = false], [mixed -$offset = false], [ -$isManip = false]  -) -
-

- -

Adds an driver-specific LIMIT clause to the query -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $query:  -
- mixed   - $limit:  -
- mixed   - $offset:  -
-    - $isManip:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Db2.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Db2.html deleted file mode 100644 index 24b7e5826..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Db2.html +++ /dev/null @@ -1,1039 +0,0 @@ - - -
-

Class: Doctrine_Connection_Db2

-Source Location: /Doctrine/Connection/Db2.php

- -

Class Doctrine_Connection_Db2

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Connection_Db2 -

- -

- Located in /Doctrine/Connection/Db2.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Db2
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1181 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$driverName -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
string  modifyLimitQuery()  Adds an driver-specific LIMIT clause to the query
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- modifyLimitQuery  [line 43] -
-
- -
-
-
  - string modifyLimitQuery( -string -$query, integer -$limit, integer -$offset  -) -
-

- -

Adds an driver-specific LIMIT clause to the query -

- - Parameters:
- - - - - - - - - - -
- string   - $query:  - query to modify
- integer   - $limit:  - limit the number of rows
- integer   - $offset:  - start reading from given offset
- -
- API Tags:
- - - - - - - -
Return:  the modified query
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Exception.html deleted file mode 100644 index 30f344b80..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Exception.html +++ /dev/null @@ -1,748 +0,0 @@ - - -
-

Class: Doctrine_Connection_Exception

-Source Location: /Doctrine/Connection/Exception.php

- -

Class Doctrine_Connection_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Exception -

- -

- Located in /Doctrine/Connection/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1345 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Connection_Firebird_Exception - Doctrine_Connection_Firebird_Exception -
Doctrine_Connection_Informix_Exception - Doctrine_Connection_Informix_Exception -
Doctrine_Connection_Mssql_Exception - Doctrine_Connection_Mssql_Exception -
Doctrine_Connection_Mysql_Exception - Doctrine_Connection_Mysql_Exception -
Doctrine_Connection_Oracle_Exception - Doctrine_Connection_Oracle_Exception -
Doctrine_Connection_Pgsql_Exception - Doctrine_Connection_Pgsql_Exception -
Doctrine_Connection_Sqlite_Exception - Doctrine_Connection_Sqlite_Exception -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
static array  $errorMessages  
integer  $portableCode  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
string  errorMessage()  Return a textual error message for a Doctrine error code
integer  getPortableCode()  getPortableCode returns portable error code
string  getPortableMessage()  getPortableMessage returns portable error message
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $errorMessages - = array(
Doctrine::ERR => 'unknown error',
Doctrine::ERR_ALREADY_EXISTS => 'already exists',
Doctrine::ERR_CANNOT_CREATE => 'can not create',
Doctrine::ERR_CANNOT_ALTER => 'can not alter',
Doctrine::ERR_CANNOT_REPLACE => 'can not replace',
Doctrine::ERR_CANNOT_DELETE => 'can not delete',
Doctrine::ERR_CANNOT_DROP => 'can not drop',
Doctrine::ERR_CONSTRAINT => 'constraint violation',
Doctrine::ERR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint',
Doctrine::ERR_DIVZERO => 'division by zero',
Doctrine::ERR_INVALID => 'invalid',
Doctrine::ERR_INVALID_DATE => 'invalid date or time',
Doctrine::ERR_INVALID_NUMBER => 'invalid number',
Doctrine::ERR_MISMATCH => 'mismatch',
Doctrine::ERR_NODBSELECTED => 'no database selected',
Doctrine::ERR_NOSUCHFIELD => 'no such field',
Doctrine::ERR_NOSUCHTABLE => 'no such table',
Doctrine::ERR_NOT_CAPABLE => 'Doctrine backend not capable',
Doctrine::ERR_NOT_FOUND => 'not found',
Doctrine::ERR_NOT_LOCKED => 'not locked',
Doctrine::ERR_SYNTAX => 'syntax error',
Doctrine::ERR_UNSUPPORTED => 'not supported',
Doctrine::ERR_VALUE_COUNT_ON_ROW => 'value count on row',
Doctrine::ERR_INVALID_DSN => 'invalid DSN',
Doctrine::ERR_CONNECT_FAILED => 'connect failed',
Doctrine::ERR_NEED_MORE_DATA => 'insufficient data supplied',
Doctrine::ERR_EXTENSION_NOT_FOUND=> 'extension not found',
Doctrine::ERR_NOSUCHDB => 'no such database',
Doctrine::ERR_ACCESS_VIOLATION => 'insufficient permissions',
Doctrine::ERR_LOADMODULE => 'error while including on demand module',
Doctrine::ERR_TRUNCATED => 'truncated',
Doctrine::ERR_DEADLOCK => 'deadlock detected',
)
[line 38] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $portableCode - [line 77] - -
- - API Tags:
- - - - - - - -
See:  Doctrine::ERR_* constants
Access:  protected
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- errorMessage  [line 108] -
-
- -
-
-
  - string errorMessage( -[int|array -$value = null]  -) -
-

- -

Return a textual error message for a Doctrine error code -

- - Parameters:
- - - - -
- int|array   - $value:  - integer error code, null to get the current error code-message map, or an array with a new error code-message map
- -
- API Tags:
- - - - - - - -
Return:  error message, or false if the error code was not recognized
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Exception::errorMessage()
-
Return a textual error message for a Doctrine error code
-
- -
-
[ Top ]
-
- -
- -
- getPortableCode  [line 84] -
-
- -
-
-
  - integer getPortableCode( -) -
-

- -

getPortableCode returns portable error code -

- -
- API Tags:
- - - - - - - -
Return:  portable error code
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPortableMessage  [line 94] -
-
- -
-
-
  - string getPortableMessage( -) -
-

- -

getPortableMessage returns portable error message -

- -
- API Tags:
- - - - - - - -
Return:  portable error message
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird.html deleted file mode 100644 index cf8d7adb9..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird.html +++ /dev/null @@ -1,1220 +0,0 @@ - - -
-

Class: Doctrine_Connection_Firebird

-Source Location: /Doctrine/Connection/Firebird.php

- -

Class Doctrine_Connection_Firebird

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Firebird -

- -

- Located in /Doctrine/Connection/Firebird.php [line 35] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Firebird
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Firebird  __construct()  the constructor
string  modifyLimitQuery()  Adds an driver-specific LIMIT clause to the query
void  setCharset()  Set the charset on the current connection
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Firebird' [line 40] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 47] -
-
- -
-
-
  - Doctrine_Connection_Firebird __construct( -Doctrine_Manager -$manager, -$adapter, PDO -$pdo  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - - - - -
- Doctrine_Manager   - $manager:  -
- PDO   - $pdo:  - database handle
-    - $adapter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
- -
- -
- modifyLimitQuery  [line 100] -
-
- -
-
-
  - string modifyLimitQuery( -string -$query, integer -$limit, integer -$offset  -) -
-

- -

Adds an driver-specific LIMIT clause to the query -

- - Parameters:
- - - - - - - - - - -
- string   - $query:  - query to modify
- integer   - $limit:  - limit the number of rows
- integer   - $offset:  - start reading from given offset
- -
- API Tags:
- - - - - - - -
Return:  modified query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setCharset  [line 87] -
-
- -
-
-
  - void setCharset( -string -$charset  -) -
-

- -

Set the charset on the current connection -

- - Parameters:
- - - - -
- string   - $charset:  - charset
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::setCharset()
-
Set the charset on the current connection
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird_Exception.html deleted file mode 100644 index 05405737d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Firebird_Exception.html +++ /dev/null @@ -1,728 +0,0 @@ - - -
-

Class: Doctrine_Connection_Firebird_Exception

-Source Location: /Doctrine/Connection/Firebird/Exception.php

- -

Class Doctrine_Connection_Firebird_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Firebird_Exception -

- -

- Located in /Doctrine/Connection/Firebird/Exception.php [line 35] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
-         |
-         --Doctrine_Connection_Firebird_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::$errorMessages -
-
- -
-
- Doctrine_Connection_Exception::$portableCode -
-
- -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
- Doctrine_Connection_Exception::getPortableCode() -
-
- getPortableCode returns portable error code -
-
- Doctrine_Connection_Exception::getPortableMessage() -
-
- getPortableMessage returns portable error message -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
static array  $errorCodeMap  
static array  $errorRegexps  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
array  processErrorInfo()  This method checks if native error code/message can be converted into a portable code and then adds this portable error code to errorInfo array and returns the modified array
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $errorCodeMap - = array(
-104 => Doctrine::ERR_SYNTAX,
-150 => Doctrine::ERR_ACCESS_VIOLATION,
-151 => Doctrine::ERR_ACCESS_VIOLATION,
-155 => Doctrine::ERR_NOSUCHTABLE,
-157 => Doctrine::ERR_NOSUCHFIELD,
-158 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
-170 => Doctrine::ERR_MISMATCH,
-171 => Doctrine::ERR_MISMATCH,
-172 => Doctrine::ERR_INVALID,
// -204 => // Covers too many errors, need to use regex on msg
-205 => Doctrine::ERR_NOSUCHFIELD,
-206 => Doctrine::ERR_NOSUCHFIELD,
-208 => Doctrine::ERR_INVALID,
-219 => Doctrine::ERR_NOSUCHTABLE,
-297 => Doctrine::ERR_CONSTRAINT,
-303 => Doctrine::ERR_INVALID,
-413 => Doctrine::ERR_INVALID_NUMBER,
-530 => Doctrine::ERR_CONSTRAINT,
-551 => Doctrine::ERR_ACCESS_VIOLATION,
-552 => Doctrine::ERR_ACCESS_VIOLATION,
// -607 => // Covers too many errors, need to use regex on msg
-625 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
-803 => Doctrine::ERR_CONSTRAINT,
-804 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
-904 => Doctrine::ERR_CONNECT_FAILED,
-922 => Doctrine::ERR_NOSUCHDB,
-923 => Doctrine::ERR_CONNECT_FAILED,
-924 => Doctrine::ERR_CONNECT_FAILED
)
[line 41] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - static array   - $errorRegexps - = array(
'/generator .* is not defined/'
=> Doctrine::ERR_SYNTAX, // for compat. w ibase_errcode()
'/table.*(not exist|not found|unknown)/i'
=> Doctrine::ERR_NOSUCHTABLE,
'/table .* already exists/i'
=> Doctrine::ERR_ALREADY_EXISTS,
'/unsuccessful metadata update .* failed attempt to store duplicate value/i'
=> Doctrine::ERR_ALREADY_EXISTS,
'/unsuccessful metadata update .* not found/i'
=> Doctrine::ERR_NOT_FOUND,
'/validation error for column .* value "\*\*\* null/i'
=> Doctrine::ERR_CONSTRAINT_NOT_NULL,
'/violation of [\w ]+ constraint/i'
=> Doctrine::ERR_CONSTRAINT,
'/conversion error from string/i'
=> Doctrine::ERR_INVALID_NUMBER,
'/no permission for/i'
=> Doctrine::ERR_ACCESS_VIOLATION,
'/arithmetic exception, numeric overflow, or string truncation/i'
=> Doctrine::ERR_INVALID,
'/table unknown/i'
=> Doctrine::ERR_NOSUCHTABLE,
)
[line 75] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- processErrorInfo  [line 110] -
-
- -
-
-
  - array processErrorInfo( - -$errorInfo  -) -
-

- -

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to errorInfo array and returns the modified array -

-

the portable error code is added at the end of array

- Parameters:
- - - - -
- array   - $errorInfo:  - error info array
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Informix.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Informix.html deleted file mode 100644 index d9ffb2b0d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Informix.html +++ /dev/null @@ -1,1093 +0,0 @@ - - -
-

Class: Doctrine_Connection_Informix

-Source Location: /Doctrine/Connection/Informix.php

- -

Class Doctrine_Connection_Informix

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Mysql -

- -

- Located in /Doctrine/Connection/Informix.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Informix
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
Doctrine_Connection_Informix  __construct()  the constructor
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Informix' [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 45] -
-
- -
-
-
  - Doctrine_Connection_Informix __construct( -Doctrine_Manager -$manager, -$adapter, PDO -$pdo  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - - - - -
- Doctrine_Manager   - $manager:  -
- PDO   - $pdo:  - database handle
-    - $adapter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Informix_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Informix_Exception.html deleted file mode 100644 index 4dd9d4e8b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Informix_Exception.html +++ /dev/null @@ -1,565 +0,0 @@ - - -
-

Class: Doctrine_Connection_Informix_Exception

-Source Location: /Doctrine/Connection/Informix/Exception.php

- -

Class Doctrine_Connection_Informix_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Connection_Informix_Exception -

- -

- Located in /Doctrine/Connection/Informix/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
-         |
-         --Doctrine_Connection_Informix_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::$errorMessages -
-
- -
-
- Doctrine_Connection_Exception::$portableCode -
-
- -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
- Doctrine_Connection_Exception::getPortableCode() -
-
- getPortableCode returns portable error code -
-
- Doctrine_Connection_Exception::getPortableMessage() -
-
- getPortableMessage returns portable error message -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mock.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Mock.html deleted file mode 100644 index 5f1cb1569..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mock.html +++ /dev/null @@ -1,1100 +0,0 @@ - - -
-

Class: Doctrine_Connection_Mock

-Source Location: /Doctrine/Connection/Mock.php

- -

Class Doctrine_Connection_Mock

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Mysql -

- -

- Located in /Doctrine/Connection/Mock.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Common
-            |
-            --Doctrine_Connection_Mock
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Common

-
-
-
- Doctrine_Connection_Common::modifyLimitQuery() -
-
- Adds an driver-specific LIMIT clause to the query -
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
Doctrine_Connection_Mock  __construct()  the constructor
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Mock' [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 46] -
-
- -
-
-
  - Doctrine_Connection_Mock __construct( -Doctrine_Manager -$manager, PDO|Doctrine_Adapter -$adapter  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - -
- Doctrine_Manager   - $manager:  -
- PDO|Doctrine_Adapter   - $adapter:  - database handler
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Module.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Module.html deleted file mode 100644 index 501fef0a8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Module.html +++ /dev/null @@ -1,676 +0,0 @@ - - -
-

Class: Doctrine_Connection_Module

-Source Location: /Doctrine/Connection/Module.php

- -

Class Doctrine_Connection_Module

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Module -

- -

- Located in /Doctrine/Connection/Module.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Connection_UnitOfWork - Doctrine_Connection_UnitOfWork -
Doctrine_DataDict - Doctrine_DataDict -
Doctrine_Export - Doctrine_Export -
Doctrine_Expression_Driver - Doctrine_Expression_Driver -
Doctrine_Formatter - Doctrine_Formatter -
Doctrine_Import - class Doctrine_Import Main responsible of performing import operation. Delegates database schema reading to a reader object and passes the result to a builder object which builds a Doctrine data model. -
Doctrine_Sequence - Doctrine_Sequence The base class for sequence handling drivers. -
Doctrine_Transaction - Doctrine_Transaction Handles transaction savepoint and isolation abstraction -
Doctrine_Util - Doctrine_Util -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Connection  $conn  
string  $moduleName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Module  __construct()  
Doctrine_Connection  getConnection()  getConnection returns the connection object this module uses
string  getModuleName()  getModuleName returns the name of this module
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Connection   - $conn - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $moduleName - [line 42] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 47] -
-
- -
-
-
  - Doctrine_Connection_Module __construct( -[Doctrine_Connection -$conn = null]  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - Doctrine_Connection object, every connection module holds an instance of Doctrine_Connection
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnection  [line 64] -
-
- -
-
-
  - Doctrine_Connection getConnection( -) -
-

- -

getConnection returns the connection object this module uses -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getModuleName  [line 74] -
-
- -
-
-
  - string getModuleName( -) -
-

- -

getModuleName returns the name of this module -

- -
- API Tags:
- - - - - - - -
Return:  the name of this module
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql.html deleted file mode 100644 index 7c6975b26..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql.html +++ /dev/null @@ -1,1354 +0,0 @@ - - -
-

Class: Doctrine_Connection_Mssql

-Source Location: /Doctrine/Connection/Mssql.php

- -

Class Doctrine_Connection_Mssql

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Mssql -

- -

- Located in /Doctrine/Connection/Mssql.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Mssql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1178 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Mssql  __construct()  the constructor
boolean  checkSequence()  Checks if there's a sequence that exists.
mixed  getServerVersion()  return version information about the server
string  modifyLimitQuery()  Adds an adapter-specific LIMIT clause to the SELECT statement.
string  quoteIdentifier()  quoteIdentifier Quote a string so it can be safely used as a table / column name
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Mssql' [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 46] -
-
- -
-
-
  - Doctrine_Connection_Mssql __construct( -Doctrine_Manager -$manager, -$adapter, PDO -$pdo  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - - - - -
- Doctrine_Manager   - $manager:  -
- PDO   - $pdo:  - database handle
-    - $adapter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
- -
- -
- checkSequence  [line 175] -
-
- -
-
-
  - boolean checkSequence( - -$seqName, string -$seq_name  -) -
-

- -

Checks if there's a sequence that exists. -

- - Parameters:
- - - - - - - -
- string   - $seq_name:  - The sequence name to verify.
-    - $seqName:  -
- -
- API Tags:
- - - - - - - -
Return:  The value if the table exists or not
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getServerVersion  [line 138] -
-
- -
-
-
  - mixed getServerVersion( -[bool -$native = false]  -) -
-

- -

return version information about the server -

- - Parameters:
- - - - -
- bool   - $native:  - determines if the raw version string should be returned
- -
- API Tags:
- - - - - - - -
Return:  array/string with version information or MDB2 error object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- modifyLimitQuery  [line 97] -
-
- -
-
-
  - string modifyLimitQuery( -string -$query, mixed -$limit, mixed -$offset, [ -$isManip = false]  -) -
-

- -

Adds an adapter-specific LIMIT clause to the SELECT statement. -

-

[ borrowed from Zend Framework ]

- Parameters:
- - - - - - - - - - - - - -
- string   - $query:  -
- mixed   - $limit:  -
- mixed   - $offset:  -
-    - $isManip:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Link:  http://lists.bestpractical.com/pipermail/rt-devel/2005-June/007339.html
- - -
-
[ Top ]
-
- -
- -
- quoteIdentifier  [line 80] -
-
- -
-
-
  - string quoteIdentifier( -string -$identifier, [bool -$checkOption = false]  -) -
-

- -

quoteIdentifier Quote a string so it can be safely used as a table / column name -

-

Quoting style depends on which database driver is being used.

- Parameters:
- - - - - - - -
- string   - $identifier:  - identifier name to be quoted
- bool   - $checkOption:  - check the 'quote_identifier' option
- -
- API Tags:
- - - - - - - -
Return:  quoted identifier string
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::quoteIdentifier()
-
Quote a string so it can be safely used as a table or column name
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql_Exception.html deleted file mode 100644 index 8c8f08173..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mssql_Exception.html +++ /dev/null @@ -1,700 +0,0 @@ - - -
-

Class: Doctrine_Connection_Mssql_Exception

-Source Location: /Doctrine/Connection/Mssql/Exception.php

- -

Class Doctrine_Connection_Mssql_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Mssql_Exception -

- -

- Located in /Doctrine/Connection/Mssql/Exception.php [line 34] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
-         |
-         --Doctrine_Connection_Mssql_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::$errorMessages -
-
- -
-
- Doctrine_Connection_Exception::$portableCode -
-
- -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
- Doctrine_Connection_Exception::getPortableCode() -
-
- getPortableCode returns portable error code -
-
- Doctrine_Connection_Exception::getPortableMessage() -
-
- getPortableMessage returns portable error message -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static array  $errorCodeMap  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  processErrorInfo()  This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $errorCodeMap - = array(
110 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
155 => Doctrine::ERR_NOSUCHFIELD,
170 => Doctrine::ERR_SYNTAX,
207 => Doctrine::ERR_NOSUCHFIELD,
208 => Doctrine::ERR_NOSUCHTABLE,
245 => Doctrine::ERR_INVALID_NUMBER,
515 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
547 => Doctrine::ERR_CONSTRAINT,
1913 => Doctrine::ERR_ALREADY_EXISTS,
2627 => Doctrine::ERR_CONSTRAINT,
2714 => Doctrine::ERR_ALREADY_EXISTS,
3701 => Doctrine::ERR_NOSUCHTABLE,
8134 => Doctrine::ERR_DIVZERO,
)
[line 40] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- processErrorInfo  [line 65] -
-
- -
-
-
  - boolean processErrorInfo( - -$errorInfo  -) -
-

- -

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field -

- - Parameters:
- - - - -
- array   - $errorInfo:  - error info array
- -
- API Tags:
- - - - - - - -
Return:  whether or not the error info processing was successfull (the process is successfull if portable error code was found)
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql.html deleted file mode 100644 index 5bfb844a7..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql.html +++ /dev/null @@ -1,1231 +0,0 @@ - - -
-

Class: Doctrine_Connection_Mysql

-Source Location: /Doctrine/Connection/Mysql.php

- -

Class Doctrine_Connection_Mysql

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Mysql -

- -

- Located in /Doctrine/Connection/Mysql.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Common
-            |
-            --Doctrine_Connection_Mysql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1773 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Common

-
-
-
- Doctrine_Connection_Common::modifyLimitQuery() -
-
- Adds an driver-specific LIMIT clause to the query -
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Mysql  __construct()  the constructor
integer  replace()  Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
void  setCharset()  Set the charset on the current connection
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Mysql' [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 46] -
-
- -
-
-
  - Doctrine_Connection_Mysql __construct( -Doctrine_Manager -$manager, PDO|Doctrine_Adapter -$adapter  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - -
- Doctrine_Manager   - $manager:  -
- PDO|Doctrine_Adapter   - $adapter:  - database handler
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
- -
- -
- replace  [line 167] -
-
- -
-
-
  - integer replace( -string -$table, -$fields, -$keys  -) -
-

- -

Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -

-

The REPLACE type of query does not make part of the SQL standards. Since practically only MySQL implements it natively, this type of query is emulated through this method for other DBMS using standard types of queries inside a transaction to assure the atomicity of the operation.

- Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the REPLACE query will be executed.
- array   - $fields:  -

associative array that describes the fields and the values that will be inserted or updated in the specified table. The indexes of the array are the names of all the fields of the table. The values of the array are also associative arrays that describe the values and other properties of the table fields.

Here follows a list of field properties that need to be specified:

value: Value to be assigned to the specified field. This value may be of specified in database independent type format as this function can perform the necessary datatype conversions.

Default: this property is required unless the Null property is set to 1.

type Name of the type of the field. Currently, all types Metabase are supported except for clob and blob.

Default: no type conversion

null Boolean property that indicates that the value for this field should be set to null.

The default value for fields missing in INSERT queries may be specified the definition of a table. Often, the default value is already null, but since the REPLACE may be emulated using an UPDATE query, make sure that all fields of the table are listed in this function argument array.

Default: 0

key Boolean property that indicates that this field should be handled as a primary key or at least as part of the compound unique index of the table that will determine the row that will updated if it exists or inserted a new row otherwise.

This function will fail if no key field is specified or if the value of a key field is set to null because fields that are part of unique index they may not be null.

Default: 0

- array   - $keys:  -
- -
- API Tags:
- - - - - - - -
Return:  the number of affected rows
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::replace()
-
Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
-
- -
-
[ Top ]
-
- -
- -
- setCharset  [line 98] -
-
- -
-
-
  - void setCharset( -string -$charset  -) -
-

- -

Set the charset on the current connection -

- - Parameters:
- - - - -
- string   - $charset:  - charset
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::setCharset()
-
Set the charset on the current connection
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql_Exception.html deleted file mode 100644 index fb4bd6968..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Mysql_Exception.html +++ /dev/null @@ -1,700 +0,0 @@ - - -
-

Class: Doctrine_Connection_Mysql_Exception

-Source Location: /Doctrine/Connection/Mysql/Exception.php

- -

Class Doctrine_Connection_Mysql_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Mysql_Exception -

- -

- Located in /Doctrine/Connection/Mysql/Exception.php [line 34] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
-         |
-         --Doctrine_Connection_Mysql_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::$errorMessages -
-
- -
-
- Doctrine_Connection_Exception::$portableCode -
-
- -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
- Doctrine_Connection_Exception::getPortableCode() -
-
- getPortableCode returns portable error code -
-
- Doctrine_Connection_Exception::getPortableMessage() -
-
- getPortableMessage returns portable error message -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static array  $errorCodeMap  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  processErrorInfo()  This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $errorCodeMap - = array(
1004 => Doctrine::ERR_CANNOT_CREATE,
1005 => Doctrine::ERR_CANNOT_CREATE,
1006 => Doctrine::ERR_CANNOT_CREATE,
1007 => Doctrine::ERR_ALREADY_EXISTS,
1008 => Doctrine::ERR_CANNOT_DROP,
1022 => Doctrine::ERR_ALREADY_EXISTS,
1044 => Doctrine::ERR_ACCESS_VIOLATION,
1046 => Doctrine::ERR_NODBSELECTED,
1048 => Doctrine::ERR_CONSTRAINT,
1049 => Doctrine::ERR_NOSUCHDB,
1050 => Doctrine::ERR_ALREADY_EXISTS,
1051 => Doctrine::ERR_NOSUCHTABLE,
1054 => Doctrine::ERR_NOSUCHFIELD,
1061 => Doctrine::ERR_ALREADY_EXISTS,
1062 => Doctrine::ERR_ALREADY_EXISTS,
1064 => Doctrine::ERR_SYNTAX,
1091 => Doctrine::ERR_NOT_FOUND,
1100 => Doctrine::ERR_NOT_LOCKED,
1136 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
1142 => Doctrine::ERR_ACCESS_VIOLATION,
1146 => Doctrine::ERR_NOSUCHTABLE,
1216 => Doctrine::ERR_CONSTRAINT,
1217 => Doctrine::ERR_CONSTRAINT,
)
[line 40] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- processErrorInfo  [line 75] -
-
- -
-
-
  - boolean processErrorInfo( - -$errorInfo  -) -
-

- -

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field -

- - Parameters:
- - - - -
- array   - $errorInfo:  - error info array
- -
- API Tags:
- - - - - - - -
Return:  whether or not the error info processing was successfull (the process is successfull if portable error code was found)
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle.html deleted file mode 100644 index 83b6a0839..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle.html +++ /dev/null @@ -1,1209 +0,0 @@ - - -
-

Class: Doctrine_Connection_Oracle

-Source Location: /Doctrine/Connection/Oracle.php

- -

Class Doctrine_Connection_Oracle

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Oracle -

- -

- Located in /Doctrine/Connection/Oracle.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1798 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Oracle  __construct()  
string  modifyLimitQuery()  Adds an driver-specific LIMIT clause to the query
void  setDateFormat()  Sets up the date/time format
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Oracle' [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 40] -
-
- -
-
-
  - Doctrine_Connection_Oracle __construct( -Doctrine_Manager -$manager, -$adapter  -) -
-

- - - Parameters:
- - - - - - - -
- Doctrine_Manager   - $manager:  -
-    - $adapter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
- -
- -
- modifyLimitQuery  [line 89] -
-
- -
-
-
  - string modifyLimitQuery( -string -$query, integer -$limit, integer -$offset  -) -
-

- -

Adds an driver-specific LIMIT clause to the query -

- - Parameters:
- - - - - - - - - - -
- string   - $query:  - query to modify
- integer   - $limit:  - limit the number of rows
- integer   - $offset:  - start reading from given offset
- -
- API Tags:
- - - - - - - -
Return:  the modified query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setDateFormat  [line 77] -
-
- -
-
-
  - void setDateFormat( -[ -$format = 'YYYY-MM-DD HH24:MI:SS']  -) -
-

- -

Sets up the date/time format -

- - Parameters:
- - - - -
-    - $format:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::setDateFormat()
-
Set the date/time format for the current connection
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle_Exception.html deleted file mode 100644 index 49b99702e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Oracle_Exception.html +++ /dev/null @@ -1,700 +0,0 @@ - - -
-

Class: Doctrine_Connection_Oracle_Exception

-Source Location: /Doctrine/Connection/Oracle/Exception.php

- -

Class Doctrine_Connection_Oracle_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Oracle_Exception -

- -

- Located in /Doctrine/Connection/Oracle/Exception.php [line 34] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
-         |
-         --Doctrine_Connection_Oracle_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::$errorMessages -
-
- -
-
- Doctrine_Connection_Exception::$portableCode -
-
- -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
- Doctrine_Connection_Exception::getPortableCode() -
-
- getPortableCode returns portable error code -
-
- Doctrine_Connection_Exception::getPortableMessage() -
-
- getPortableMessage returns portable error message -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static array  $errorCodeMap  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  processErrorInfo()  This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $errorCodeMap - = array(
1 => Doctrine::ERR_CONSTRAINT,
900 => Doctrine::ERR_SYNTAX,
904 => Doctrine::ERR_NOSUCHFIELD,
913 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
921 => Doctrine::ERR_SYNTAX,
923 => Doctrine::ERR_SYNTAX,
942 => Doctrine::ERR_NOSUCHTABLE,
955 => Doctrine::ERR_ALREADY_EXISTS,
1400 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
1401 => Doctrine::ERR_INVALID,
1407 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
1418 => Doctrine::ERR_NOT_FOUND,
1476 => Doctrine::ERR_DIVZERO,
1722 => Doctrine::ERR_INVALID_NUMBER,
2289 => Doctrine::ERR_NOSUCHTABLE,
2291 => Doctrine::ERR_CONSTRAINT,
2292 => Doctrine::ERR_CONSTRAINT,
2449 => Doctrine::ERR_CONSTRAINT,
)
[line 40] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- processErrorInfo  [line 70] -
-
- -
-
-
  - boolean processErrorInfo( - -$errorInfo  -) -
-

- -

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field -

- - Parameters:
- - - - -
- array   - $errorInfo:  - error info array
- -
- API Tags:
- - - - - - - -
Return:  whether or not the error info processing was successfull (the process is successfull if portable error code was found)
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql.html deleted file mode 100644 index e40468d76..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql.html +++ /dev/null @@ -1,1356 +0,0 @@ - - -
-

Class: Doctrine_Connection_Pgsql

-Source Location: /Doctrine/Connection/Pgsql.php

- -

Class Doctrine_Connection_Pgsql

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Pgsql -

- -

- Located in /Doctrine/Connection/Pgsql.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Common
-            |
-            --Doctrine_Connection_Pgsql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2113 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Common

-
-
-
- Doctrine_Connection_Common::modifyLimitQuery() -
-
- Adds an driver-specific LIMIT clause to the query -
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Pgsql  __construct()  the constructor
void  convertBooleans()  convertBoolean some drivers need the boolean values to be converted into integers when using DQL API
array|string  getServerVersion()  return version information about the server
string  modifyLimitQuery()  Changes a query string for various DBMS specific reasons
void  setCharset()  Set the charset on the current connection
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Pgsql' [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 46] -
-
- -
-
-
  - Doctrine_Connection_Pgsql __construct( -Doctrine_Manager -$manager, -$adapter, PDO -$pdo  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - - - - -
- Doctrine_Manager   - $manager:  -
- PDO   - $pdo:  - database handle
-    - $adapter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
- -
- -
- convertBooleans  [line 102] -
-
- -
-
-
  - void convertBooleans( -array -$item  -) -
-

- -

convertBoolean some drivers need the boolean values to be converted into integers when using DQL API -

-

This method takes care of that conversion

- Parameters:
- - - - -
- array   - $item:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::convertBooleans()
-
convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
-
- -
-
[ Top ]
-
- -
- -
- getServerVersion  [line 159] -
-
- -
-
-
  - array|string getServerVersion( -[string -$native = false]  -) -
-

- -

return version information about the server -

- - Parameters:
- - - - -
- string   - $native:  - determines if the raw version string should be returned
- -
- API Tags:
- - - - - - - -
Return:  an array or string with version information
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- modifyLimitQuery  [line 126] -
-
- -
-
-
  - string modifyLimitQuery( -string -$query, [integer -$limit = false], [integer -$offset = false], [boolean -$isManip = false]  -) -
-

- -

Changes a query string for various DBMS specific reasons -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $query:  - query to modify
- integer   - $limit:  - limit the number of rows
- integer   - $offset:  - start reading from given offset
- boolean   - $isManip:  - if the query is a DML query
- -
- API Tags:
- - - - - - - -
Return:  modified query
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection_Common::modifyLimitQuery()
-
Adds an driver-specific LIMIT clause to the query
-
- -
-
[ Top ]
-
- -
- -
- setCharset  [line 87] -
-
- -
-
-
  - void setCharset( -string -$charset  -) -
-

- -

Set the charset on the current connection -

- - Parameters:
- - - - -
- string   - $charset:  - charset
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::setCharset()
-
Set the charset on the current connection
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql_Exception.html deleted file mode 100644 index 743ac5543..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Pgsql_Exception.html +++ /dev/null @@ -1,707 +0,0 @@ - - -
-

Class: Doctrine_Connection_Pgsql_Exception

-Source Location: /Doctrine/Connection/Pgsql/Exception.php

- -

Class Doctrine_Connection_Pgsql_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Pgsql_Exception -

- -

- Located in /Doctrine/Connection/Pgsql/Exception.php [line 35] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
-         |
-         --Doctrine_Connection_Pgsql_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::$errorMessages -
-
- -
-
- Doctrine_Connection_Exception::$portableCode -
-
- -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
- Doctrine_Connection_Exception::getPortableCode() -
-
- getPortableCode returns portable error code -
-
- Doctrine_Connection_Exception::getPortableMessage() -
-
- getPortableMessage returns portable error message -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static array  $errorRegexps  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  processErrorInfo()  This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $errorRegexps - = array(
'/parser: parse error at or near/i'
=> Doctrine::ERR_SYNTAX,
'/syntax error at/'
=> Doctrine::ERR_SYNTAX,
'/column reference .* is ambiguous/i'
=> Doctrine::ERR_SYNTAX,
'/column .* (of relation .*)?does not exist/i'
=> Doctrine::ERR_NOSUCHFIELD,
'/attribute .* not found|relation .* does not have attribute/i'
=> Doctrine::ERR_NOSUCHFIELD,
'/column .* specified in USING clause does not exist in (left|right) table/i'
=> Doctrine::ERR_NOSUCHFIELD,
'/(relation|sequence|table).*does not exist|class .* not found/i'
=> Doctrine::ERR_NOSUCHTABLE,
'/index .* does not exist/'
=> Doctrine::ERR_NOT_FOUND,
'/relation .* already exists/i'
=> Doctrine::ERR_ALREADY_EXISTS,
'/(divide|division) by zero$/i'
=> Doctrine::ERR_DIVZERO,
'/pg_atoi: error in .*: can\'t parse /i'
=> Doctrine::ERR_INVALID_NUMBER,
'/invalid input syntax for( type)? (integer|numeric)/i'
=> Doctrine::ERR_INVALID_NUMBER,
'/value .* is out of range for type \w*int/i'
=> Doctrine::ERR_INVALID_NUMBER,
'/integer out of range/i'
=> Doctrine::ERR_INVALID_NUMBER,
'/value too long for type character/i'
=> Doctrine::ERR_INVALID,
'/permission denied/'
=> Doctrine::ERR_ACCESS_VIOLATION,
'/violates [\w ]+ constraint/'
=> Doctrine::ERR_CONSTRAINT,
'/referential integrity violation/'
=> Doctrine::ERR_CONSTRAINT,
'/violates not-null constraint/'
=> Doctrine::ERR_CONSTRAINT_NOT_NULL,
'/more expressions than target columns/i'
=> Doctrine::ERR_VALUE_COUNT_ON_ROW,
)
[line 41] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- processErrorInfo  [line 97] -
-
- -
-
-
  - boolean processErrorInfo( - -$errorInfo  -) -
-

- -

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field -

-

the portable error code is added at the end of array

- Parameters:
- - - - -
- array   - $errorInfo:  - error info array
- -
- API Tags:
- - - - - - - - - - - - - -
Return:  whether or not the error info processing was successfull (the process is successfull if portable error code was found)
See:  Doctrine_Connection::$portableCode
See:  Doctrine::ERR_* constants
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler.html deleted file mode 100644 index 3afa61045..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler.html +++ /dev/null @@ -1,889 +0,0 @@ - - -
-

Class: Doctrine_Connection_Profiler

-Source Location: /Doctrine/Connection/Profiler.php

- -

Class Doctrine_Connection_Profiler

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Connection_Profiler -

- -

- Located in /Doctrine/Connection/Profiler.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $events  
mixed  $listeners  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Profiler  __construct()  constructor
integer  count()  count
Doctrine_Event  get()  get
array  getAll()  getAll returns all profiled events as an array
ArrayIterator  getIterator()  getIterator returns an iterator that iterates through the logged events
Doctrine_Event  lastEvent()  Get the Doctrine_Event object for the last query that was run, regardless if it has ended or not. If the event has not ended, it's end time will be Null.
Doctrine_Event  pop()  pop the last event from the event stack
boolean  setFilterQueryType()  setFilterQueryType
boolean  __call()  method overloader this method is used for invoking different listeners, for the full list of availible listeners, see Doctrine_EventListener
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $events - = array() [line 50] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $listeners - = array('query',
'prepare',
'commit',
'rollback',
'connect',
'begintransaction',
'exec',
'execute',
)
[line 38] -
-
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 54] -
-
- -
-
-
  - Doctrine_Connection_Profiler __construct( -) -
-

- -

constructor -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 146] -
-
- -
-
-
  - integer count( -) -
-

- -

count -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- get  [line 114] -
-
- -
-
-
  - Doctrine_Event get( -mixed -$key  -) -
-

- -

get -

- - Parameters:
- - - - -
- mixed   - $key:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAll  [line 127] -
-
- -
-
-
  - array getAll( -) -
-

- -

getAll returns all profiled events as an array -

- -
- API Tags:
- - - - - - - -
Return:  all events in an array
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 137] -
-
- -
-
-
  - ArrayIterator getIterator( -) -
-

- -

getIterator returns an iterator that iterates through the logged events -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- lastEvent  [line 165] -
-
- -
-
-
  - Doctrine_Event lastEvent( -) -
-

- -

Get the Doctrine_Event object for the last query that was run, regardless if it has ended or not. If the event has not ended, it's end time will be Null. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- pop  [line 155] -
-
- -
-
-
  - Doctrine_Event pop( -) -
-

- -

pop the last event from the event stack -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setFilterQueryType  [line 63] -
-
- -
-
-
  - boolean setFilterQueryType( -integer -$filter  -) -
-

- -

setFilterQueryType -

- - Parameters:
- - - - -
- integer   - $filter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __call  [line 76] -
-
- -
-
-
  - boolean __call( -string -$m, array -$a  -) -
-

- -

method overloader this method is used for invoking different listeners, for the full list of availible listeners, see Doctrine_EventListener -

- - Parameters:
- - - - - - - -
- string   - $m:  - the name of the method
- array   - $a:  - method arguments
- -
- API Tags:
- - - - - - - -
See:  Doctrine_EventListener
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Overloadable::__call()
-
__call method overloader
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler_Exception.html deleted file mode 100644 index 249c7dbdc..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Profiler_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Connection_Profiler_Exception

-Source Location: /Doctrine/Connection/Profiler/Exception.php

- -

Class Doctrine_Connection_Profiler_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Connection_Profiler_Exception -

- -

- Located in /Doctrine/Connection/Profiler/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Profiler_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1345 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite.html deleted file mode 100644 index 62b15c7fc..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite.html +++ /dev/null @@ -1,1206 +0,0 @@ - - -
-

Class: Doctrine_Connection_Sqlite

-Source Location: /Doctrine/Connection/Sqlite.php

- -

Class Doctrine_Connection_Sqlite

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Sqlite -

- -

- Located in /Doctrine/Connection/Sqlite.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Connection
-         |
-         --Doctrine_Connection_Common
-            |
-            --Doctrine_Connection_Sqlite
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2285 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::$availableDrivers -
-
- -
-
- Doctrine_Connection::$dbh -
-
- -
-
- Doctrine_Connection::$isConnected -
-
- -
-
- Doctrine_Connection::$modules -
-
- -
-
- Doctrine_Connection::$options -
-
- -
-
- Doctrine_Connection::$pendingAttributes -
-
- -
-
- Doctrine_Connection::$properties -
-
- -
-
- Doctrine_Connection::$serverInfo -
-
- -
-
- Doctrine_Connection::$supported -
-
- -
-
- Doctrine_Connection::$tables -
-
- -
-
- Doctrine_Connection::$_count -
-
- -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Common

-
-
-
- Doctrine_Connection_Common::modifyLimitQuery() -
-
- Adds an driver-specific LIMIT clause to the query -
-
-
-

Inherited From Doctrine_Connection

-
-
-
- Doctrine_Connection::__construct() -
-
- the constructor -
-
- Doctrine_Connection::addTable() -
-
- addTable adds a Doctrine_Table object into connection registry -
-
- Doctrine_Connection::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Connection::clear() -
-
- clear clears all repositories -
-
- Doctrine_Connection::close() -
-
- close closes the connection -
-
- Doctrine_Connection::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Connection::connect() -
-
- connect connects into database -
-
- Doctrine_Connection::convertBooleans() -
-
- convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -
-
- Doctrine_Connection::count() -
-
- returns the count of initialized table objects -
-
- Doctrine_Connection::create() -
-
- create creates a record -
-
- Doctrine_Connection::driverName() -
-
- converts given driver name -
-
- Doctrine_Connection::errorCode() -
-
- errorCode Fetch the SQLSTATE associated with the last operation on the database handle -
-
- Doctrine_Connection::errorInfo() -
-
- errorInfo Fetch extended error information associated with the last operation on the database handle -
-
- Doctrine_Connection::evictTables() -
-
- evictTables evicts all tables -
-
- Doctrine_Connection::exec() -
-
- exec -
-
- Doctrine_Connection::execute() -
-
- execute -
-
- Doctrine_Connection::fetchAll() -
-
- fetchAll -
-
- Doctrine_Connection::fetchArray() -
-
- fetchArray -
-
- Doctrine_Connection::fetchAssoc() -
-
- fetchAssoc -
-
- Doctrine_Connection::fetchBoth() -
-
- fetchBoth -
-
- Doctrine_Connection::fetchColumn() -
-
- fetchColumn -
-
- Doctrine_Connection::fetchOne() -
-
- fetchOne -
-
- Doctrine_Connection::fetchRow() -
-
- fetchRow -
-
- Doctrine_Connection::flush() -
-
- flush saves all the records from all tables this operation is isolated using a transaction -
-
- Doctrine_Connection::getAttribute() -
-
- getAttribute retrieves a database connection attribute -
-
- Doctrine_Connection::getAvailableDrivers() -
-
- returns an array of available PDO drivers -
-
- Doctrine_Connection::getDbh() -
-
- returns the database handler of which this connection uses -
-
- Doctrine_Connection::getIterator() -
-
- returns an iterator that iterators through all initialized table objects -
-
- Doctrine_Connection::getManager() -
-
- returns the manager that created this connection -
-
- Doctrine_Connection::getName() -
-
- getName returns the name of this driver -
-
- Doctrine_Connection::getTable() -
-
- returns a table object for given component name -
-
- Doctrine_Connection::getTables() -
-
- returns an array of all initialized tables -
-
- Doctrine_Connection::getTransactionLevel() -
-
- get the current transaction nesting level -
-
- Doctrine_Connection::hasTable() -
-
- hasTable whether or not this connection has table $name initialized -
-
- Doctrine_Connection::incrementQueryCount() -
-
- -
-
- Doctrine_Connection::insert() -
-
- Inserts a table row with specified data. -
-
- Doctrine_Connection::lastInsertId() -
-
- lastInsertId -
-
- Doctrine_Connection::prepare() -
-
- prepare -
-
- Doctrine_Connection::query() -
-
- query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects -
-
- Doctrine_Connection::queryOne() -
-
- query queries the database using Doctrine Query Language and returns the first record found -
-
- Doctrine_Connection::quote() -
-
- quote quotes given input parameter -
-
- Doctrine_Connection::quoteIdentifier() -
-
- Quote a string so it can be safely used as a table or column name -
-
- Doctrine_Connection::replace() -
-
- Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row. -
-
- Doctrine_Connection::rethrowException() -
-
- rethrowException -
-
- Doctrine_Connection::rollback() -
-
- rollback -
-
- Doctrine_Connection::select() -
-
- queries the database with limit and offset added to the query and returns a PDOStatement object -
-
- Doctrine_Connection::setAttribute() -
-
- setAttribute sets an attribute -
-
- Doctrine_Connection::setCharset() -
-
- Set the charset on the current connection -
-
- Doctrine_Connection::setDateFormat() -
-
- Set the date/time format for the current connection -
-
- Doctrine_Connection::standaloneQuery() -
-
- standaloneQuery -
-
- Doctrine_Connection::supports() -
-
- supports -
-
- Doctrine_Connection::__get() -
-
- __get lazy loads given module and returns it -
-
- Doctrine_Connection::__toString() -
-
- returns a string representation of this object -
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
string  $driverName  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Sqlite  __construct()  the constructor
void  connect()  initializes database functions missing in sqlite
string  getDatabaseFile()  getDatabaseFile
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $driverName - = 'Sqlite' [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::$driverName
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 46] -
-
- -
-
-
  - Doctrine_Connection_Sqlite __construct( -Doctrine_Manager -$manager, -$adapter, PDO -$pdo  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - - - - -
- Doctrine_Manager   - $manager:  -
- PDO   - $pdo:  - database handle
-    - $adapter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::__construct()
-
the constructor
-
- -
-
[ Top ]
-
- -
- -
- connect  [line 84] -
-
- -
-
-
  - void connect( -) -
-

- -

initializes database functions missing in sqlite -

- -
- API Tags:
- - - - - - - -
See:  Doctrine_Expression
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Connection::connect()
-
connect connects into database
-
- -
-
[ Top ]
-
- -
- -
- getDatabaseFile  [line 99] -
-
- -
-
-
  - string getDatabaseFile( -string -$name  -) -
-

- -

getDatabaseFile -

- - Parameters:
- - - - -
- string   - $name:  - the name of the database
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite_Exception.html deleted file mode 100644 index 9ad1c8dbf..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Sqlite_Exception.html +++ /dev/null @@ -1,706 +0,0 @@ - - -
-

Class: Doctrine_Connection_Sqlite_Exception

-Source Location: /Doctrine/Connection/Sqlite/Exception.php

- -

Class Doctrine_Connection_Sqlite_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Connection_Sqlite_Exception -

- -

- Located in /Doctrine/Connection/Sqlite/Exception.php [line 34] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Connection_Exception
-         |
-         --Doctrine_Connection_Sqlite_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::$errorMessages -
-
- -
-
- Doctrine_Connection_Exception::$portableCode -
-
- -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Exception

-
-
-
- Doctrine_Connection_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
- Doctrine_Connection_Exception::getPortableCode() -
-
- getPortableCode returns portable error code -
-
- Doctrine_Connection_Exception::getPortableMessage() -
-
- getPortableMessage returns portable error message -
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static array  $errorRegexps  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  processErrorInfo()  This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $errorRegexps - = array(
'/^no such table:/' => Doctrine::ERR_NOSUCHTABLE,
'/^no such index:/' => Doctrine::ERR_NOT_FOUND,
'/^(table|index) .* already exists$/' => Doctrine::ERR_ALREADY_EXISTS,
'/PRIMARY KEY must be unique/i' => Doctrine::ERR_CONSTRAINT,
'/is not unique/' => Doctrine::ERR_CONSTRAINT,
'/columns .* are not unique/i' => Doctrine::ERR_CONSTRAINT,
'/uniqueness constraint failed/' => Doctrine::ERR_CONSTRAINT,
'/may not be NULL/' => Doctrine::ERR_CONSTRAINT_NOT_NULL,
'/^no such column:/' => Doctrine::ERR_NOSUCHFIELD,
'/column not present in both tables/i' => Doctrine::ERR_NOSUCHFIELD,
'/^near ".*": syntax error$/' => Doctrine::ERR_SYNTAX,
'/[0-9]+ values for [0-9]+ columns/i' => Doctrine::ERR_VALUE_COUNT_ON_ROW,
)
[line 40] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- processErrorInfo  [line 66] -
-
- -
-
-
  - boolean processErrorInfo( - -$errorInfo  -) -
-

- -

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field -

- - Parameters:
- - - - -
- array   - $errorInfo:  - error info array
- -
- API Tags:
- - - - - - - - - - - - - -
Return:  whether or not the error info processing was successfull (the process is successfull if portable error code was found)
See:  Doctrine_Connection::$portableCode
See:  Doctrine::ERR_* constants
Access:  public
-
- -Information Tags:
- - - - -
Since:  1.0
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_Statement.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_Statement.html deleted file mode 100644 index 63a5dbd30..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_Statement.html +++ /dev/null @@ -1,1777 +0,0 @@ - - -
-

Class: Doctrine_Connection_Statement

-Source Location: /Doctrine/Connection/Statement.php

- -

Class Doctrine_Connection_Statement

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Connection_Statement -

- -

- Located in /Doctrine/Connection/Statement.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1532 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Connection  $_conn  
mixed  $_stmt  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection_Statement  __construct()  constructor
boolean  bindColumn()  bindColumn Bind a column to a PHP variable
boolean  bindParam()  bindParam
boolean  bindValue()  bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
boolean  closeCursor()  closeCursor Closes the cursor, enabling the statement to be executed again.
integer  columnCount()  columnCount Returns the number of columns in the result set
string  errorCode()  errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
array  errorInfo()  errorInfo Fetch extended error information associated with the last operation on the statement handle
boolean  execute()  execute Executes a prepared statement
mixed  fetch()  fetch
array  fetchAll()  fetchAll Returns an array containing all of the result set rows
string  fetchColumn()  fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
mixed  fetchObject()  fetchObject Fetches the next row and returns it as an object.
mixed  getAttribute()  getAttribute Retrieve a statement attribute
array  getColumnMeta()  getColumnMeta Returns metadata for a column in a result set
Doctrine_Connection  getConnection()  getConnection returns the connection object this statement uses
void  getQuery()  
void  getStatement()  
boolean  nextRowset()  nextRowset Advances to the next rowset in a multi-rowset statement handle
integer  rowCount()  rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
boolean  setAttribute()  setAttribute Set a statement attribute
boolean  setFetchMode()  setFetchMode Set the default fetch mode for this statement
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Connection   - $_conn - [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_stmt - [line 43] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 51] -
-
- -
-
-
  - Doctrine_Connection_Statement __construct( -Doctrine_Connection -$conn, mixed -$stmt  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - -
- Doctrine_Connection   - $conn:  - Doctrine_Connection object, every connection statement holds an instance of Doctrine_Connection
- mixed   - $stmt:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- bindColumn  [line 90] -
-
- -
-
-
  - boolean bindColumn( -mixed -$column, string -$param, [integer -$type = null]  -) -
-

- -

bindColumn Bind a column to a PHP variable -

- - Parameters:
- - - - - - - - - - -
- mixed   - $column:  - Number of the column (1-indexed) or name of the column in the result set. If using the column name, be aware that the name should match the case of the column, as returned by the driver.
- string   - $param:  - Name of the PHP variable to which the column will be bound.
- integer   - $type:  - Data type of the parameter, specified by the Doctrine::PARAM_* constants.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::bindColumn()
-
bindColumn Bind a column to a PHP variable
-
- -
-
[ Top ]
-
- -
- -
- bindParam  [line 147] -
-
- -
-
-
  - boolean bindParam( - -$column, mixed -$variable, [integer -$type = null], [integer -$length = null], [mixed -$driverOptions = array()], mixed -$param  -) -
-

- -

bindParam -

-

Binds a PHP variable to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. Unlike Doctrine_Adapter_Statement_Interface->bindValue(), the variable is bound as a reference and will only be evaluated at the time that Doctrine_Adapter_Statement_Interface->execute() is called.

Most parameters are input parameters, that is, parameters that are used in a read-only fashion to build up the query. Some drivers support the invocation of stored procedures that return data as output parameters, and some also as input/output parameters that both send in data and are updated to receive it.

- Parameters:
- - - - - - - - - - - - - - - - - - - -
- mixed   - $param:  - Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter
- mixed   - $variable:  - Name of the PHP variable to bind to the SQL statement parameter.
- integer   - $type:  - Explicit data type for the parameter using the Doctrine::PARAM_* constants. To return an INOUT parameter from a stored procedure, use the bitwise OR operator to set the Doctrine::PARAM_INPUT_OUTPUT bits for the data_type parameter.
- integer   - $length:  - Length of the data type. To indicate that a parameter is an OUT parameter from a stored procedure, you must explicitly set the length.
- mixed   - $driverOptions:  -
-    - $column:  -
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::bindParam()
-
bindParam
-
- -
-
[ Top ]
-
- -
- -
- bindValue  [line 112] -
-
- -
-
-
  - boolean bindValue( -mixed -$param, mixed -$value, [integer -$type = null]  -) -
-

- -

bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement. -

- - Parameters:
- - - - - - - - - - -
- mixed   - $param:  - Parameter identifier. For a prepared statement using named placeholders, this will be a parameter name of the form :name. For a prepared statement using question mark placeholders, this will be the 1-indexed position of the parameter
- mixed   - $value:  - The value to bind to the parameter.
- integer   - $type:  - Explicit data type for the parameter using the Doctrine::PARAM_* constants.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::bindValue()
-
bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
- -
-
[ Top ]
-
- -
- -
- closeCursor  [line 161] -
-
- -
-
-
  - boolean closeCursor( -) -
-

- -

closeCursor Closes the cursor, enabling the statement to be executed again. -

- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::closeCursor()
-
closeCursor Closes the cursor, enabling the statement to be executed again.
-
- -
-
[ Top ]
-
- -
- -
- columnCount  [line 173] -
-
- -
-
-
  - integer columnCount( -) -
-

- -

columnCount Returns the number of columns in the result set -

- -
- API Tags:
- - - - - - - -
Return:  Returns the number of columns in the result set represented by the Doctrine_Adapter_Statement_Interface object. If there is no result set, this method should return 0.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::columnCount()
-
columnCount Returns the number of columns in the result set
-
- -
-
[ Top ]
-
- -
- -
- errorCode  [line 184] -
-
- -
-
-
  - string errorCode( -) -
-

- -

errorCode Fetch the SQLSTATE associated with the last operation on the statement handle -

- -
- API Tags:
- - - - - - - - - - -
Return:  error code string
See:  Doctrine_Adapter_Interface::errorCode()
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::errorCode()
-
errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
- -
-
[ Top ]
-
- -
- -
- errorInfo  [line 195] -
-
- -
-
-
  - array errorInfo( -) -
-

- -

errorInfo Fetch extended error information associated with the last operation on the statement handle -

- -
- API Tags:
- - - - - - - - - - -
Return:  error info array
See:  Doctrine_Adapter_Interface::errorInfo()
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::errorInfo()
-
errorInfo Fetch extended error information associated with the last operation on the statement handle
-
- -
-
[ Top ]
-
- -
- -
- execute  [line 214] -
-
- -
-
-
  - boolean execute( -[array -$params = null]  -) -
-

- -

execute Executes a prepared statement -

-

If the prepared statement included parameter markers, you must either: call PDOStatement->bindParam() to bind PHP variables to the parameter markers: bound variables pass their value as input and receive the output value, if any, of their associated parameter markers or pass an array of input-only parameter values

- Parameters:
- - - - -
- array   - $params:  - An array of values with as many elements as there are bound parameters in the SQL statement being executed.
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::execute()
-
execute Executes a prepared statement
-
- -
-
[ Top ]
-
- -
- -
- fetch  [line 264] -
-
- -
-
-
  - mixed fetch( -[ -$fetchMode = Doctrine::FETCH_BOTH], [integer -$cursorOrientation = Doctrine::FETCH_ORI_NEXT], [integer -$cursorOffset = null], integer -$fetchStyle  -) -
-

- -

fetch -

- - Parameters:
- - - - - - - - - - - - - -
- integer   - $fetchStyle:  - Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH
- integer   - $cursorOrientation:  - For a PDOStatement object representing a scrollable cursor, this value determines which row will be returned to the caller. This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your Doctrine_Adapter_Statement_Interface object, you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
- integer   - $cursorOffset:  -

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies the absolute number of the row in the result set that shall be fetched.

For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value specifies the row to fetch relative to the cursor position before Doctrine_Adapter_Statement_Interface->fetch() was called.

-    - $fetchMode:  -
- -
- API Tags:
- - - - - - - -
See:  Doctrine::FETCH_* constants
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetch()
-
fetch
-
- -
-
[ Top ]
-
- -
- -
- fetchAll  [line 297] -
-
- -
-
-
  - array fetchAll( -[integer -$fetchMode = Doctrine::FETCH_BOTH], [integer -$columnIndex = null]  -) -
-

- -

fetchAll Returns an array containing all of the result set rows -

- - Parameters:
- - - - - - - -
- integer   - $fetchMode:  - Controls how the next row will be returned to the caller. This value must be one of the Doctrine::FETCH_* constants, defaulting to Doctrine::FETCH_BOTH
- integer   - $columnIndex:  - Returns the indicated 0-indexed column when the value of $fetchStyle is Doctrine::FETCH_COLUMN. Defaults to 0.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetchAll()
-
fetchAll Returns an array containing all of the result set rows
-
- -
-
[ Top ]
-
- -
- -
- fetchColumn  [line 331] -
-
- -
-
-
  - string fetchColumn( -[integer -$columnIndex = 0]  -) -
-

- -

fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows. -

- - Parameters:
- - - - -
- integer   - $columnIndex:  - 0-indexed number of the column you wish to retrieve from the row. If no value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn() fetches the first column.
- -
- API Tags:
- - - - - - - -
Return:  returns a single column in the next row of a result set.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetchColumn()
-
fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
- -
-
[ Top ]
-
- -
- -
- fetchObject  [line 348] -
-
- -
-
-
  - mixed fetchObject( -[string -$className = 'stdClass'], [array -$args = array()]  -) -
-

- -

fetchObject Fetches the next row and returns it as an object. -

-

Fetches the next row and returns it as an object. This function is an alternative to Doctrine_Adapter_Statement_Interface->fetch() with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.

- Parameters:
- - - - - - - -
- string   - $className:  - Name of the created class, defaults to stdClass.
- array   - $args:  - Elements of this array are passed to the constructor.
- -
- API Tags:
- - - - - - - -
Return:  an instance of the required class with property names that correspond to the column names or FALSE in case of an error.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::fetchObject()
-
fetchObject Fetches the next row and returns it as an object.
-
- -
-
[ Top ]
-
- -
- -
- getAttribute  [line 360] -
-
- -
-
-
  - mixed getAttribute( -integer -$attribute  -) -
-

- -

getAttribute Retrieve a statement attribute -

- - Parameters:
- - - - -
- integer   - $attribute:  -
- -
- API Tags:
- - - - - - - - - - -
Return:  the attribute value
See:  Doctrine::ATTR_* constants
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::getAttribute()
-
getAttribute Retrieve a statement attribute
-
- -
-
[ Top ]
-
- -
- -
- getColumnMeta  [line 380] -
-
- -
-
-
  - array getColumnMeta( -integer -$column  -) -
-

- -

getColumnMeta Returns metadata for a column in a result set -

- - Parameters:
- - - - -
- integer   - $column:  - The 0-indexed column in the result set.
- -
- API Tags:
- - - - - - - -
Return:  

Associative meta data array with the following structure:

native_type The PHP native type used to represent the column value. driver:decl_ type The SQL type used to represent the column value in the database. If the column in the result set is the result of a function, this value is not returned by PDOStatement->getColumnMeta(). flags Any flags set for this column. name The name of this column as returned by the database. len The length of this column. Normally -1 for types other than floating point decimals. precision The numeric precision of this column. Normally 0 for types other than floating point decimals. pdo_type The type of this column as represented by the PDO::PARAM_* constants.

Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::getColumnMeta()
-
getColumnMeta Returns metadata for a column in a result set
-
- -
-
[ Top ]
-
- -
- -
- getConnection  [line 66] -
-
- -
-
-
  - Doctrine_Connection getConnection( -) -
-

- -

getConnection returns the connection object this statement uses -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuery  [line 74] -
-
- -
-
-
  - void getQuery( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getStatement  [line 70] -
-
- -
-
-
  - void getStatement( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- nextRowset  [line 395] -
-
- -
-
-
  - boolean nextRowset( -) -
-

- -

nextRowset Advances to the next rowset in a multi-rowset statement handle -

-

Some database servers support stored procedures that return more than one rowset (also known as a result set). The nextRowset() method enables you to access the second and subsequent rowsets associated with a PDOStatement object. Each rowset can have a different set of columns from the preceding rowset.

-
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::nextRowset()
-
nextRowset Advances to the next rowset in a multi-rowset statement handle
-
- -
-
[ Top ]
-
- -
- -
- rowCount  [line 411] -
-
- -
-
-
  - integer rowCount( -) -
-

- -

rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object. -

-

If the last SQL statement executed by the associated Statement object was a SELECT statement, some databases may return the number of rows returned by that statement. However, this behaviour is not guaranteed for all databases and should not be relied on for portable applications.

-
- API Tags:
- - - - - - - -
Return:  Returns the number of rows.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::rowCount()
-
rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
- -
-
[ Top ]
-
- -
- -
- setAttribute  [line 423] -
-
- -
-
-
  - boolean setAttribute( -integer -$attribute, mixed -$value  -) -
-

- -

setAttribute Set a statement attribute -

- - Parameters:
- - - - - - - -
- integer   - $attribute:  -
- mixed   - $value:  - the value of given attribute
- -
- API Tags:
- - - - - - - -
Return:  Returns TRUE on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::setAttribute()
-
setAttribute Set a statement attribute
-
- -
-
[ Top ]
-
- -
- -
- setFetchMode  [line 434] -
-
- -
-
-
  - boolean setFetchMode( -integer -$mode, [ -$arg1 = null], [ -$arg2 = null]  -) -
-

- -

setFetchMode Set the default fetch mode for this statement -

- - Parameters:
- - - - - - - - - - -
- integer   - $mode:  - The fetch mode must be one of the Doctrine::FETCH_* constants.
-    - $arg1:  -
-    - $arg2:  -
- -
- API Tags:
- - - - - - - -
Return:  Returns 1 on success or FALSE on failure.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Adapter_Statement_Interface::setFetchMode()
-
setFetchMode Set the default fetch mode for this statement
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Connection_UnitOfWork.html b/api_documentation/trunk/Doctrine/Doctrine_Connection_UnitOfWork.html deleted file mode 100644 index 9717944fa..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Connection_UnitOfWork.html +++ /dev/null @@ -1,992 +0,0 @@ - - -
-

Class: Doctrine_Connection_UnitOfWork

-Source Location: /Doctrine/Connection/UnitOfWork.php

- -

Class Doctrine_Connection_UnitOfWork

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Connection_UnitOfWork -

- -

- Located in /Doctrine/Connection/UnitOfWork.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Connection_UnitOfWork
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2197 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  buildFlushTree()  buildFlushTree builds a flush tree that is used in transactions
boolean  delete()  deletes given record and all the related composites this operation is isolated by a transaction
void  deleteComposites()  deletes all related composites this method is always called internally when a record is deleted
boolean  insert()  inserts a record into database
void  save()  saves the given record
void  saveAll()  saveAll persists all the pending records from all tables
void  saveAssociations()  saveAssociations
void  saveGraph()  saves the given record
void  saveRelated()  saveRelated saves all related records to $record
boolean  update()  update updates the given record
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- buildFlushTree  [line 46] -
-
- -
-
-
  - array buildFlushTree( - -$tables  -) -
-

- -

buildFlushTree builds a flush tree that is used in transactions -

-

The returned array has all the initialized components in 'correct' order. Basically this means that the records of those components can be saved safely in the order specified by the returned array.

- Parameters:
- - - - -
- array   - $tables:  - an array of Doctrine_Table objects or component names
- -
- API Tags:
- - - - - - - -
Return:  an array of component names in flushing order
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- delete  [line 251] -
-
- -
-
-
  - boolean delete( -Doctrine_Record -$record  -) -
-

- -

deletes given record and all the related composites this operation is isolated by a transaction -

-

this event can be listened by the onPreDelete and onDelete listeners

- Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - - - - -
Return:  true on success, false on failure
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- deleteComposites  [line 366] -
-
- -
-
-
  - void deleteComposites( -Doctrine_Record -$record  -) -
-

- -

deletes all related composites this method is always called internally when a record is deleted -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException if something went wrong at database level
- - -
-
[ Top ]
-
- -
- -
- insert  [line 485] -
-
- -
-
-
  - boolean insert( -Doctrine_Record -$record  -) -
-

- -

inserts a record into database -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  - record to be inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- save  [line 215] -
-
- -
-
-
  - void save( -Doctrine_Record -$record  -) -
-

- -

saves the given record -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- saveAll  [line 390] -
-
- -
-
-
  - void saveAll( -) -
-

- -

saveAll persists all the pending records from all tables -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException if something went wrong at database level
- - -
-
[ Top ]
-
- -
- -
- saveAssociations  [line 332] -
-
- -
-
-
  - void saveAssociations( -Doctrine_Record -$record  -) -
-

- -

saveAssociations -

-

this method takes a diff of one-to-many / many-to-many original and current collections and applies the changes

for example if original many-to-many related collection has records with primary keys 1,2 and 3 and the new collection has records with primary keys 3, 4 and 5, this method would first destroy the associations to 1 and 2 and then save new associations to 4 and 5

- Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException if something went wrong at database level
- - -
-
[ Top ]
-
- -
- -
- saveGraph  [line 140] -
-
- -
-
-
  - void saveGraph( -Doctrine_Record -$record  -) -
-

- -

saves the given record -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- saveRelated  [line 292] -
-
- -
-
-
  - void saveRelated( -Doctrine_Record -$record  -) -
-

- -

saveRelated saves all related records to $record -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException if something went wrong at database level
- - -
-
[ Top ]
-
- -
- -
- update  [line 420] -
-
- -
-
-
  - boolean update( -Doctrine_Record -$record  -) -
-

- -

update updates the given record -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  - record to be updated
- -
- API Tags:
- - - - - - - -
Return:  whether or not the update was successful
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict.html deleted file mode 100644 index 1e8971435..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict.html +++ /dev/null @@ -1,652 +0,0 @@ - - -
-

Class: Doctrine_DataDict

-Source Location: /Doctrine/DataDict.php

- -

Class Doctrine_DataDict

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_DataDict -

- -

- Located in /Doctrine/DataDict.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1098 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_DataDict_Firebird - -
Doctrine_DataDict_Informix - -
Doctrine_DataDict_Mssql - -
Doctrine_DataDict_Mysql - -
Doctrine_DataDict_Oracle - -
Doctrine_DataDict_Pgsql - -
Doctrine_DataDict_Sqlite - -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
array  compareDefinition()  Obtain an array of changes that may need to applied
string  parseBoolean()  parseBoolean parses a literal boolean value and returns proper sql equivalent
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- compareDefinition  [line 42] -
-
- -
-
-
  - array compareDefinition( -array -$current, array -$previous  -) -
-

- -

Obtain an array of changes that may need to applied -

- - Parameters:
- - - - - - - -
- array   - $current:  - new definition
- array   - $previous:  - old definition
- -
- API Tags:
- - - - - - - -
Return:  containing all changes that will need to be applied
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseBoolean  [line 84] -
-
- -
-
-
  - string parseBoolean( -string -$value  -) -
-

- -

parseBoolean parses a literal boolean value and returns proper sql equivalent -

- - Parameters:
- - - - -
- string   - $value:  - boolean value to be parsed
- -
- API Tags:
- - - - - - - -
Return:  parsed boolean value
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Firebird.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Firebird.html deleted file mode 100644 index 29f138dde..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Firebird.html +++ /dev/null @@ -1,696 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Firebird

-Source Location: /Doctrine/DataDict/Firebird.php

- -

Class Doctrine_DataDict_Firebird

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/DataDict/Firebird.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
-      |
-      --Doctrine_DataDict_Firebird
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1731 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_DataDict

-
-
-
- Doctrine_DataDict::compareDefinition() -
-
- Obtain an array of changes that may need to applied -
-
- Doctrine_DataDict::parseBoolean() -
-
- parseBoolean parses a literal boolean value and returns proper sql equivalent -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  getCharsetFieldDeclaration()  Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
string  getCollationFieldDeclaration()  Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
string  getNativeDeclaration()  Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
array  getPortableDeclaration()  Maps a native array description of a field to a Doctrine datatype and length
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- getCharsetFieldDeclaration  [line 200] -
-
- -
-
-
  - string getCharsetFieldDeclaration( -string -$charset  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- string   - $charset:  - name of the charset
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCollationFieldDeclaration  [line 212] -
-
- -
-
-
  - string getCollationFieldDeclaration( -string -$collation  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- string   - $collation:  - name of the collation
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the COLLATION of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNativeDeclaration  [line 58] -
-
- -
-
-
  - string getNativeDeclaration( -array -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPortableDeclaration  [line 109] -
-
- -
-
-
  - array getPortableDeclaration( -array -$field  -) -
-

- -

Maps a native array description of a field to a Doctrine datatype and length -

- - Parameters:
- - - - -
- array   - $field:  - native field description
- -
- API Tags:
- - - - - - - -
Return:  containing the various possible types, length, sign, fixed
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mssql.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mssql.html deleted file mode 100644 index e43a21098..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mssql.html +++ /dev/null @@ -1,589 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Mssql

-Source Location: /Doctrine/DataDict/Mssql.php

- -

Class Doctrine_DataDict_Mssql

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/DataDict/Mssql.php [line 35] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
-      |
-      --Doctrine_DataDict_Mssql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1730 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_DataDict

-
-
-
- Doctrine_DataDict::compareDefinition() -
-
- Obtain an array of changes that may need to applied -
-
- Doctrine_DataDict::parseBoolean() -
-
- parseBoolean parses a literal boolean value and returns proper sql equivalent -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
string  getNativeDeclaration()  Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
array  getPortableDeclaration()  Maps a native array description of a field to a MDB2 datatype and length
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- getNativeDeclaration  [line 60] -
-
- -
-
-
  - string getNativeDeclaration( -array -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPortableDeclaration  [line 124] -
-
- -
-
-
  - array getPortableDeclaration( -array -$field  -) -
-

- -

Maps a native array description of a field to a MDB2 datatype and length -

- - Parameters:
- - - - -
- array   - $field:  - native field description
- -
- API Tags:
- - - - - - - -
Return:  containing the various possible types, length, sign, fixed
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mysql.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mysql.html deleted file mode 100644 index b45380be9..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Mysql.html +++ /dev/null @@ -1,808 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Mysql

-Source Location: /Doctrine/DataDict/Mysql.php

- -

Class Doctrine_DataDict_Mysql

- - -
-
Class Overview
- -
- - - - - - - -
- - -

- Located in /Doctrine/DataDict/Mysql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
-      |
-      --Doctrine_DataDict_Mysql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1730 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_DataDict

-
-
-
- Doctrine_DataDict::compareDefinition() -
-
- Obtain an array of changes that may need to applied -
-
- Doctrine_DataDict::parseBoolean() -
-
- parseBoolean parses a literal boolean value and returns proper sql equivalent -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $keywords  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  getCharsetFieldDeclaration()  Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
string  getCollationFieldDeclaration()  Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
string  getIntegerDeclaration()  Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
string  getNativeDeclaration()  Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
array  getPortableDeclaration()  Maps a native array description of a field to a MDB2 datatype and length
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $keywords - = array(
'ADD', 'ALL', 'ALTER',
'ANALYZE', 'AND', 'AS',
'ASC', 'ASENSITIVE', 'BEFORE',
'BETWEEN', 'BIGINT', 'BINARY',
'BLOB', 'BOTH', 'BY',
'CALL', 'CASCADE', 'CASE',
'CHANGE', 'CHAR', 'CHARACTER',
'CHECK', 'COLLATE', 'COLUMN',
'CONDITION', 'CONNECTION', 'CONSTRAINT',
'CONTINUE', 'CONVERT', 'CREATE',
'CROSS', 'CURRENT_DATE', 'CURRENT_TIME',
'CURRENT_TIMESTAMP', 'CURRENT_USER', 'CURSOR',
'DATABASE', 'DATABASES', 'DAY_HOUR',
'DAY_MICROSECOND', 'DAY_MINUTE', 'DAY_SECOND',
'DEC', 'DECIMAL', 'DECLARE',
'DEFAULT', 'DELAYED', 'DELETE',
'DESC', 'DESCRIBE', 'DETERMINISTIC',
'DISTINCT', 'DISTINCTROW', 'DIV',
'DOUBLE', 'DROP', 'DUAL',
'EACH', 'ELSE', 'ELSEIF',
'ENCLOSED', 'ESCAPED', 'EXISTS',
'EXIT', 'EXPLAIN', 'FALSE',
'FETCH', 'FLOAT', 'FLOAT4',
'FLOAT8', 'FOR', 'FORCE',
'FOREIGN', 'FROM', 'FULLTEXT',
'GRANT', 'GROUP', 'HAVING',
'HIGH_PRIORITY', 'HOUR_MICROSECOND', 'HOUR_MINUTE',
'HOUR_SECOND', 'IF', 'IGNORE',
'IN', 'INDEX', 'INFILE',
'INNER', 'INOUT', 'INSENSITIVE',
'INSERT', 'INT', 'INT1',
'INT2', 'INT3', 'INT4',
'INT8', 'INTEGER', 'INTERVAL',
'INTO', 'IS', 'ITERATE',
'JOIN', 'KEY', 'KEYS',
'KILL', 'LEADING', 'LEAVE',
'LEFT', 'LIKE', 'LIMIT',
'LINES', 'LOAD', 'LOCALTIME',
'LOCALTIMESTAMP', 'LOCK', 'LONG',
'LONGBLOB', 'LONGTEXT', 'LOOP',
'LOW_PRIORITY', 'MATCH', 'MEDIUMBLOB',
'MEDIUMINT', 'MEDIUMTEXT', 'MIDDLEINT',
'MINUTE_MICROSECOND', 'MINUTE_SECOND', 'MOD',
'MODIFIES', 'NATURAL', 'NOT',
'NO_WRITE_TO_BINLOG', 'NULL', 'NUMERIC',
'ON', 'OPTIMIZE', 'OPTION',
'OPTIONALLY', 'OR', 'ORDER',
'OUT', 'OUTER', 'OUTFILE',
'PRECISION', 'PRIMARY', 'PROCEDURE',
'PURGE', 'RAID0', 'READ',
'READS', 'REAL', 'REFERENCES',
'REGEXP', 'RELEASE', 'RENAME',
'REPEAT', 'REPLACE', 'REQUIRE',
'RESTRICT', 'RETURN', 'REVOKE',
'RIGHT', 'RLIKE', 'SCHEMA',
'SCHEMAS', 'SECOND_MICROSECOND', 'SELECT',
'SENSITIVE', 'SEPARATOR', 'SET',
'SHOW', 'SMALLINT', 'SONAME',
'SPATIAL', 'SPECIFIC', 'SQL',
'SQLEXCEPTION', 'SQLSTATE', 'SQLWARNING',
'SQL_BIG_RESULT', 'SQL_CALC_FOUND_ROWS', 'SQL_SMALL_RESULT',
'SSL', 'STARTING', 'STRAIGHT_JOIN',
'TABLE', 'TERMINATED', 'THEN',
'TINYBLOB', 'TINYINT', 'TINYTEXT',
'TO', 'TRAILING', 'TRIGGER',
'TRUE', 'UNDO', 'UNION',
'UNIQUE', 'UNLOCK', 'UNSIGNED',
'UPDATE', 'USAGE', 'USE',
'USING', 'UTC_DATE', 'UTC_TIME',
'UTC_TIMESTAMP', 'VALUES', 'VARBINARY',
'VARCHAR', 'VARCHARACTER', 'VARYING',
'WHEN', 'WHERE', 'WHILE',
'WITH', 'WRITE', 'X509',
'XOR', 'YEAR_MONTH', 'ZEROFILL'
)
[line 35] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- getCharsetFieldDeclaration  [line 390] -
-
- -
-
-
  - string getCharsetFieldDeclaration( -string -$charset  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- string   - $charset:  - name of the charset
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCollationFieldDeclaration  [line 402] -
-
- -
-
-
  - string getCollationFieldDeclaration( -string -$collation  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- string   - $collation:  - name of the collation
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the COLLATION of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIntegerDeclaration  [line 431] -
-
- -
-
-
  - string getIntegerDeclaration( -string -$name, string -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - - - - -
- string   - $name:  - name the field to be declared.
- string   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

unsigned Boolean flag that indicates whether the field should be declared as unsigned integer if possible.

default Integer value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNativeDeclaration  [line 135] -
-
- -
-
-
  - string getNativeDeclaration( -array -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPortableDeclaration  [line 230] -
-
- -
-
-
  - array getPortableDeclaration( - -$field  -) -
-

- -

Maps a native array description of a field to a MDB2 datatype and length -

- - Parameters:
- - - - -
- array   - $field:  - native field description
- -
- API Tags:
- - - - - - - -
Return:  containing the various possible types, length, sign, fixed
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Oracle.html deleted file mode 100644 index 59dc0cb5c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Oracle.html +++ /dev/null @@ -1,592 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Oracle

-Source Location: /Doctrine/DataDict/Oracle.php

- -

Class Doctrine_DataDict_Oracle

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/DataDict/Oracle.php [line 32] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
-      |
-      --Doctrine_DataDict_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1334 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_DataDict

-
-
-
- Doctrine_DataDict::compareDefinition() -
-
- Obtain an array of changes that may need to applied -
-
- Doctrine_DataDict::parseBoolean() -
-
- parseBoolean parses a literal boolean value and returns proper sql equivalent -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
string  getNativeDeclaration()  Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
array  getPortableDeclaration()  Maps a native array description of a field to a doctrine datatype and length
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- getNativeDeclaration  [line 56] -
-
- -
-
-
  - string getNativeDeclaration( - -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPortableDeclaration  [line 108] -
-
- -
-
-
  - array getPortableDeclaration( - -$field  -) -
-

- -

Maps a native array description of a field to a doctrine datatype and length -

- - Parameters:
- - - - -
- array   - $field:  - native field description
- -
- API Tags:
- - - - - - - -
Return:  containing the various possible types, length, sign, fixed
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_DataDict_Oracle_Exception
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Pgsql.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Pgsql.html deleted file mode 100644 index a53d55696..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Pgsql.html +++ /dev/null @@ -1,761 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Pgsql

-Source Location: /Doctrine/DataDict/Pgsql.php

- -

Class Doctrine_DataDict_Pgsql

- - -
-
Class Overview
- -
- - - - - - - -
- - -

- Located in /Doctrine/DataDict/Pgsql.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
-      |
-      --Doctrine_DataDict_Pgsql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2033 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_DataDict

-
-
-
- Doctrine_DataDict::compareDefinition() -
-
- Obtain an array of changes that may need to applied -
-
- Doctrine_DataDict::parseBoolean() -
-
- parseBoolean parses a literal boolean value and returns proper sql equivalent -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static mixed  $reservedKeyWords  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  getIntegerDeclaration()  Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
string  getNativeDeclaration()  Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
array  getPortableDeclaration()  Maps a native array description of a field to a portable Doctrine datatype and length
string  parseBoolean()  parseBoolean parses a literal boolean value and returns proper sql equivalent
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static mixed   - $reservedKeyWords - = array(
'abort',
'absolute',
'access',
'action',
'add',
'after',
'aggregate',
'all',
'alter',
'analyse',
'analyze',
'and',
'any',
'as',
'asc',
'assertion',
'assignment',
'at',
'authorization',
'backward',
'before',
'begin',
'between',
'bigint',
'binary',
'bit',
'boolean',
'both',
'by',
'cache',
'called',
'cascade',
'case',
'cast',
'chain',
'char',
'character',
'characteristics',
'check',
'checkpoint',
'class',
'close',
'cluster',
'coalesce',
'collate',
'column',
'comment',
'commit',
'committed',
'constraint',
'constraints',
'conversion',
'convert',
'copy',
'create',
'createdb',
'createuser',
'cross',
'current_date',
'current_time',
'current_timestamp',
'current_user',
'cursor',
'cycle',
'database',
'day',
'deallocate',
'dec',
'decimal',
'declare',
'default',
'deferrable',
'deferred',
'definer',
'delete',
'delimiter',
'delimiters',
'desc',
'distinct',
'do',
'domain',
'double',
'drop',
'each',
'else',
'encoding',
'encrypted',
'end',
'escape',
'except',
'exclusive',
'execute',
'exists',
'explain',
'external',
'extract',
'false',
'fetch',
'float',
'for',
'force',
'foreign',
'forward',
'freeze',
'from',
'full',
'function',
'get',
'global',
'grant',
'group',
'handler',
'having',
'hour',
'ilike',
'immediate',
'immutable',
'implicit',
'in',
'increment',
'index',
'inherits',
'initially',
'inner',
'inout',
'input',
'insensitive',
'insert',
'instead',
'int',
'integer',
'intersect',
'interval',
'into',
'invoker',
'is',
'isnull',
'isolation',
'join',
'key',
'lancompiler',
'language',
'leading',
'left',
'level',
'like',
'limit',
'listen',
'load',
'local',
'localtime',
'localtimestamp',
'location',
'lock',
'match',
'maxvalue',
'minute',
'minvalue',
'mode',
'month',
'move',
'names',
'national',
'natural',
'nchar',
'new',
'next',
'no',
'nocreatedb',
'nocreateuser',
'none',
'not',
'nothing',
'notify',
'notnull',
'null',
'nullif',
'numeric',
'of',
'off',
'offset',
'oids',
'old',
'on',
'only',
'operator',
'option',
'or',
'order',
'out',
'outer',
'overlaps',
'overlay',
'owner',
'partial',
'password',
'path',
'pendant',
'placing',
'position',
'precision',
'prepare',
'primary',
'prior',
'privileges',
'procedural',
'procedure',
'read',
'real',
'recheck',
'references',
'reindex',
'relative',
'rename',
'replace',
'reset',
'restrict',
'returns',
'revoke',
'right',
'rollback',
'row',
'rule',
'schema',
'scroll',
'second',
'security',
'select',
'sequence',
'serializable',
'session',
'session_user',
'set',
'setof',
'share',
'show',
'similar',
'simple',
'smallint',
'some',
'stable',
'start',
'statement',
'statistics',
'stdin',
'stdout',
'storage',
'strict',
'substring',
'sysid',
'table',
'temp',
'template',
'temporary',
'then',
'time',
'timestamp',
'to',
'toast',
'trailing',
'transaction',
'treat',
'trigger',
'trim',
'true',
'truncate',
'trusted',
'type',
'unencrypted',
'union',
'unique',
'unknown',
'unlisten',
'until',
'update',
'usage',
'user',
'using',
'vacuum',
'valid',
'validator',
'values',
'varchar',
'varying',
'verbose',
'version',
'view',
'volatile',
'when',
'where',
'with',
'without',
'work',
'write',
'year',
'zone'
)
[line 39] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- getIntegerDeclaration  [line 578] -
-
- -
-
-
  - string getIntegerDeclaration( -string -$name, array -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - - - - -
- string   - $name:  - name the field to be declared.
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

unsigned Boolean flag that indicates whether the field should be declared as unsigned integer if possible.

default Integer value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNativeDeclaration  [line 361] -
-
- -
-
-
  - string getNativeDeclaration( - -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPortableDeclaration  [line 433] -
-
- -
-
-
  - array getPortableDeclaration( - -$field  -) -
-

- -

Maps a native array description of a field to a portable Doctrine datatype and length -

- - Parameters:
- - - - -
- array   - $field:  - native field description
- -
- API Tags:
- - - - - - - -
Return:  containing the various possible types, length, sign, fixed
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseBoolean  [line 617] -
-
- -
-
-
  - string parseBoolean( -string -$value  -) -
-

- -

parseBoolean parses a literal boolean value and returns proper sql equivalent -

- - Parameters:
- - - - -
- string   - $value:  - boolean value to be parsed
- -
- API Tags:
- - - - - - - -
Return:  parsed boolean value
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_DataDict::parseBoolean()
-
parseBoolean parses a literal boolean value and returns proper sql equivalent
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Sqlite.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Sqlite.html deleted file mode 100644 index bfaa69b47..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/Doctrine_DataDict_Sqlite.html +++ /dev/null @@ -1,654 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Sqlite

-Source Location: /Doctrine/DataDict/Sqlite.php

- -

Class Doctrine_DataDict_Sqlite

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/DataDict/Sqlite.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
-      |
-      --Doctrine_DataDict_Sqlite
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2196 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_DataDict

-
-
-
- Doctrine_DataDict::compareDefinition() -
-
- Obtain an array of changes that may need to applied -
-
- Doctrine_DataDict::parseBoolean() -
-
- parseBoolean parses a literal boolean value and returns proper sql equivalent -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
string  getIntegerDeclaration()  Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
string  getNativeDeclaration()  Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
array  getPortableDeclaration()  Maps a native array description of a field to Doctrine datatype and length
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- getIntegerDeclaration  [line 270] -
-
- -
-
-
  - string getIntegerDeclaration( -string -$name, -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - - - - -
- string   - $name:  - name the field to be declared.
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

unsigned Boolean flag that indicates whether the field should be declared as unsigned integer if possible.

default Integer value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNativeDeclaration  [line 58] -
-
- -
-
-
  - string getNativeDeclaration( - -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- -Information Tags:
- - - - -
Author:  Lukas Smith (PEAR MDB2 library)
- - -
-
[ Top ]
-
- -
- -
- getPortableDeclaration  [line 129] -
-
- -
-
-
  - array getPortableDeclaration( - -$field  -) -
-

- -

Maps a native array description of a field to Doctrine datatype and length -

- - Parameters:
- - - - -
- array   - $field:  - native field description
- -
- API Tags:
- - - - - - - -
Return:  containing the various possible types, length, sign, fixed
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Firebird.php.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Firebird.php.html deleted file mode 100644 index 4424ae08b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Firebird.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Firebird.php

-Source Location: /Doctrine/DataDict/Firebird.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Firebird - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mssql.php.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mssql.php.html deleted file mode 100644 index a10338239..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mssql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mssql.php

-Source Location: /Doctrine/DataDict/Mssql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Mssql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mysql.php.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mysql.php.html deleted file mode 100644 index 61aaa6064..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Mysql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysql.php

-Source Location: /Doctrine/DataDict/Mysql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Mysql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Oracle.php.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Oracle.php.html deleted file mode 100644 index 0c7c87999..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/DataDict/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Oracle - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Pgsql.php.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Pgsql.php.html deleted file mode 100644 index 87dc9db1f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Pgsql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pgsql.php

-Source Location: /Doctrine/DataDict/Pgsql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Pgsql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Sqlite.php.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Sqlite.php.html deleted file mode 100644 index d4ebd1605..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict/_Doctrine---DataDict---Sqlite.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sqlite.php

-Source Location: /Doctrine/DataDict/Sqlite.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Sqlite - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict_Exception.html deleted file mode 100644 index a751ef3ec..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Exception

-Source Location: /Doctrine/DataDict/Exception.php

- -

Class Doctrine_DataDict_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_DataDict_Exception -

- -

- Located in /Doctrine/DataDict/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_DataDict_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataDict_Informix.html b/api_documentation/trunk/Doctrine/Doctrine_DataDict_Informix.html deleted file mode 100644 index a5f9d943a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataDict_Informix.html +++ /dev/null @@ -1,533 +0,0 @@ - - -
-

Class: Doctrine_DataDict_Informix

-Source Location: /Doctrine/DataDict/Informix.php

- -

Class Doctrine_DataDict_Informix

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/DataDict/Informix.php [line 32] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_DataDict
-      |
-      --Doctrine_DataDict_Informix
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1273 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_DataDict

-
-
-
- Doctrine_DataDict::compareDefinition() -
-
- Obtain an array of changes that may need to applied -
-
- Doctrine_DataDict::parseBoolean() -
-
- parseBoolean parses a literal boolean value and returns proper sql equivalent -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
string  getNativeDeclaration()  Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- getNativeDeclaration  [line 57] -
-
- -
-
-
  - string getNativeDeclaration( -array -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_DataType.html b/api_documentation/trunk/Doctrine/Doctrine_DataType.html deleted file mode 100644 index 3d256bb34..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_DataType.html +++ /dev/null @@ -1,481 +0,0 @@ - - -
-

Class: Doctrine_DataType

-Source Location: /Doctrine/DataType.php

- -

Class Doctrine_DataType

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_DataType -

- -

- Located in /Doctrine/DataType.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1986 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_DataType  __construct()  
void  getDefaultLength()  
void  getName()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 35] -
-
- -
-
-
  - Doctrine_DataType __construct( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDefaultLength  [line 45] -
-
- -
-
-
  - void getDefaultLength( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getName  [line 40] -
-
- -
-
-
  - void getName( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Db.html b/api_documentation/trunk/Doctrine/Doctrine_Db.html deleted file mode 100644 index 98f6c4b5b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Db.html +++ /dev/null @@ -1,407 +0,0 @@ - - -
-

Class: Doctrine_Db

-Source Location: /Doctrine/Db.php

- -

Class Doctrine_Db

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Db -

- -

- Located in /Doctrine/Db.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1819 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
Doctrine_Db  __construct()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 34] -
-
- -
-
-
  - Doctrine_Db __construct( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Event.html b/api_documentation/trunk/Doctrine/Doctrine_Event.html deleted file mode 100644 index e3fde2bae..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Event.html +++ /dev/null @@ -1,1700 +0,0 @@ - - -
-

Class: Doctrine_Event

-Source Location: /Doctrine/Event.php

- -

Class Doctrine_Event

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Event -

- -

- Located in /Doctrine/Event.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
CONN_CLOSE  
CONN_CONNECT  
CONN_ERROR  
CONN_EXEC  
CONN_PREPARE  
CONN_QUERY  CONNECTION EVENT CODES
RECORD_DELETE  
RECORD_INSERT  
RECORD_SAVE  
RECORD_SERIALIZE  
RECORD_UNSERIALIZE  
RECORD_UPDATE  
SAVEPOINT_COMMIT  
SAVEPOINT_CREATE  
SAVEPOINT_ROLLBACK  
STMT_EXECUTE  
STMT_FETCH  
STMT_FETCHALL  
TX_BEGIN  
TX_COMMIT  
TX_ROLLBACK  
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
integer  $_code  
integer  $_endedMicrotime  
mixed  $_invoker  
array  $_options  
string  $_params  
string  $_query  
integer  $_startedMicrotime  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Event  __construct()  constructor
Doctrine_Event  end()  end ends the internal timer of this event
integer  getCode()  getCode
mixed  getElapsedSecs()  Get the elapsed time (in microseconds) that the event ran. If the event has not yet ended, return false.
Doctrine_Connection|Doctrine_Connection_Statement|  getInvoker()  getInvoker returns the handler that invoked this event
string  getName()  getName returns the name of this event
array  getParams()  getParams returns the parameters of the query
string  getQuery()  getQuery
boolean  hasEnded()  hasEnded whether or not this event has ended
Doctrine_Event  skipOperation()  skipOperation skips the next operation an alias for __set('skipOperation', true)
Doctrine_Event  start()  start starts the internal timer of this event
mixed  __get()  getOption returns the value of an option
Doctrine_Event  __set()  setOption sets the value of an option
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - integer   - $_code - [line 80] - -
- - API Tags:
- - - - - - - -
See:  Doctrine_Event constants
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_endedMicrotime - [line 88] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_invoker - [line 67] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_options - = array() [line 92] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $_params - [line 75] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $_query - [line 71] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_startedMicrotime - [line 84] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 101] -
-
- -
-
-
  - Doctrine_Event __construct( -Doctrine_Connection|Doctrine_Connection_Statement| -$invoker, integer -$code, [string -$query = null], [ -$params = array()]  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - - - - - - - -
- integer   - $code:  - the event code
- string   - $query:  - the sql query associated with this event (if any)
- Doctrine_Connection|Doctrine_Connection_Statement|   - $invoker:  -
-    - $params:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- end  [line 251] -
-
- -
-
-
  - Doctrine_Event end( -) -
-

- -

end ends the internal timer of this event -

- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCode  [line 179] -
-
- -
-
-
  - integer getCode( -) -
-

- -

getCode -

- -
- API Tags:
- - - - - - - -
Return:  returns the code associated with this event
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getElapsedSecs  [line 284] -
-
- -
-
-
  - mixed getElapsedSecs( -) -
-

- -

Get the elapsed time (in microseconds) that the event ran. If the event has not yet ended, return false. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getInvoker  [line 264] -
-
- -
-
-
  - Doctrine_Connection|Doctrine_Connection_Statement| getInvoker( -) -
-

- -

getInvoker returns the handler that invoked this event -

- -
- API Tags:
- - - - - - - -
Return:  Doctrine_Connection_UnitOfWork|Doctrine_Transaction the handler that invoked this event
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getName  [line 123] -
-
- -
-
-
  - string getName( -) -
-

- -

getName returns the name of this event -

- -
- API Tags:
- - - - - - - -
Return:  the name of this event
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getParams  [line 274] -
-
- -
-
-
  - array getParams( -) -
-

- -

getParams returns the parameters of the query -

- -
- API Tags:
- - - - - - - -
Return:  parameters of the query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuery  [line 113] -
-
- -
-
-
  - string getQuery( -) -
-

- -

getQuery -

- -
- API Tags:
- - - - - - - -
Return:  returns the query associated with this event (if any)
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasEnded  [line 241] -
-
- -
-
-
  - boolean hasEnded( -) -
-

- -

hasEnded whether or not this event has ended -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- skipOperation  [line 205] -
-
- -
-
-
  - Doctrine_Event skipOperation( -) -
-

- -

skipOperation skips the next operation an alias for __set('skipOperation', true) -

- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- start  [line 231] -
-
- -
-
-
  - Doctrine_Event start( -) -
-

- -

start starts the internal timer of this event -

- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __get  [line 190] -
-
- -
-
-
  - mixed __get( -string -$option  -) -
-

- -

getOption returns the value of an option -

- - Parameters:
- - - - -
- string   - $option:  - the name of the option
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __set  [line 219] -
-
- -
-
-
  - Doctrine_Event __set( -string -$option, mixed -$value  -) -
-

- -

setOption sets the value of an option -

- - Parameters:
- - - - - - - -
- string   - $option:  - the name of the option
- mixed   - $value:  - the value of the given option
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - CONN_CLOSE - = 5 - [line 41] - -
- - - -
-
[ Top ]
-
- -
- -
- - CONN_CONNECT - = 4 - [line 40] - -
- - - -
-
[ Top ]
-
- -
- -
- - CONN_ERROR - = 6 - [line 42] - -
- - - -
-
[ Top ]
-
- -
- -
- - CONN_EXEC - = 2 - [line 38] - -
- - - -
-
[ Top ]
-
- -
- -
- - CONN_PREPARE - = 3 - [line 39] - -
- - - -
-
[ Top ]
-
- -
- -
- - CONN_QUERY - = 1 - [line 37] - -
- -

CONNECTION EVENT CODES -

- - -
-
[ Top ]
-
- -
- -
- - RECORD_DELETE - = 21 - [line 58] - -
- - - -
-
[ Top ]
-
- -
- -
- - RECORD_INSERT - = 24 - [line 61] - -
- - - -
-
[ Top ]
-
- -
- -
- - RECORD_SAVE - = 22 - [line 59] - -
- - - -
-
[ Top ]
-
- -
- -
- - RECORD_SERIALIZE - = 25 - [line 62] - -
- - - -
-
[ Top ]
-
- -
- -
- - RECORD_UNSERIALIZE - = 26 - [line 63] - -
- - - -
-
[ Top ]
-
- -
- -
- - RECORD_UPDATE - = 23 - [line 60] - -
- - - -
-
[ Top ]
-
- -
- -
- - SAVEPOINT_COMMIT - = 36 - [line 53] - -
- - - -
-
[ Top ]
-
- -
- -
- - SAVEPOINT_CREATE - = 34 - [line 51] - -
- - - -
-
[ Top ]
-
- -
- -
- - SAVEPOINT_ROLLBACK - = 35 - [line 52] - -
- - - -
-
[ Top ]
-
- -
- -
- - STMT_EXECUTE - = 10 - [line 44] - -
- - - -
-
[ Top ]
-
- -
- -
- - STMT_FETCH - = 11 - [line 45] - -
- - - -
-
[ Top ]
-
- -
- -
- - STMT_FETCHALL - = 12 - [line 46] - -
- - - -
-
[ Top ]
-
- -
- -
- - TX_BEGIN - = 31 - [line 48] - -
- - - -
-
[ Top ]
-
- -
- -
- - TX_COMMIT - = 32 - [line 49] - -
- - - -
-
[ Top ]
-
- -
- -
- - TX_ROLLBACK - = 33 - [line 50] - -
- - - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_EventListener.html b/api_documentation/trunk/Doctrine/Doctrine_EventListener.html deleted file mode 100644 index 24f29dd08..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_EventListener.html +++ /dev/null @@ -1,2153 +0,0 @@ - - -
-

Class: Doctrine_EventListener

-Source Location: /Doctrine/EventListener.php

- -

Class Doctrine_EventListener

- - -
-
Class Overview
- -
- - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement -

- -

- Located in /Doctrine/EventListener.php [line 35] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1976 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Cache - Doctrine_Cache -
-
[ Top ]
-
-
- - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  onCollectionDelete()  
void  onOpen()  
void  onPreCollectionDelete()  
void  postClose()  
void  postConnect()  
void  postError()  
void  postExec()  
void  postFetch()  
void  postFetchAll()  
void  postPrepare()  
void  postQuery()  
void  postSavepointCommit()  
void  postSavepointCreate()  
void  postSavepointRollback()  
void  postStmtExecute()  
void  postTransactionBegin()  
void  postTransactionCommit()  
void  postTransactionRollback()  
void  preClose()  
void  preConnect()  
void  preError()  
void  preExec()  
void  preFetch()  
void  preFetchAll()  
void  prePrepare()  
void  preQuery()  
void  preSavepointCommit()  
void  preSavepointCreate()  
void  preSavepointRollback()  
void  preStmtExecute()  
void  preTransactionBegin()  
void  preTransactionCommit()  
void  preTransactionRollback()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- onCollectionDelete  [line 42] -
-
- -
-
-
  - void onCollectionDelete( -Doctrine_Collection -$collection  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Collection   - $collection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onOpen  [line 47] -
-
- -
-
-
  - void onOpen( -Doctrine_Connection -$connection  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Connection   - $connection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onPreCollectionDelete  [line 44] -
-
- -
-
-
  - void onPreCollectionDelete( -Doctrine_Collection -$collection  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Collection   - $collection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postClose  [line 39] -
-
- -
-
-
  - void postClose( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postConnect  [line 81] -
-
- -
-
-
  - void postConnect( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postConnect()
-
- -
-
[ Top ]
-
- -
- -
- postError  [line 103] -
-
- -
-
-
  - void postError( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postError()
-
- -
-
[ Top ]
-
- -
- -
- postExec  [line 98] -
-
- -
-
-
  - void postExec( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postExec()
-
- -
-
[ Top ]
-
- -
- -
- postFetch  [line 108] -
-
- -
-
-
  - void postFetch( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postFetch()
-
- -
-
[ Top ]
-
- -
- -
- postFetchAll  [line 113] -
-
- -
-
-
  - void postFetchAll( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postFetchAll()
-
- -
-
[ Top ]
-
- -
- -
- postPrepare  [line 93] -
-
- -
-
-
  - void postPrepare( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postPrepare()
-
- -
-
[ Top ]
-
- -
- -
- postQuery  [line 88] -
-
- -
-
-
  - void postQuery( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postQuery()
-
- -
-
[ Top ]
-
- -
- -
- postSavepointCommit  [line 68] -
-
- -
-
-
  - void postSavepointCommit( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postSavepointCreate  [line 78] -
-
- -
-
-
  - void postSavepointCreate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postSavepointRollback  [line 73] -
-
- -
-
-
  - void postSavepointRollback( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postStmtExecute  [line 118] -
-
- -
-
-
  - void postStmtExecute( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postStmtExecute()
-
- -
-
[ Top ]
-
- -
- -
- postTransactionBegin  [line 62] -
-
- -
-
-
  - void postTransactionBegin( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postTransactionBegin()
-
- -
-
[ Top ]
-
- -
- -
- postTransactionCommit  [line 52] -
-
- -
-
-
  - void postTransactionCommit( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postTransactionCommit()
-
- -
-
[ Top ]
-
- -
- -
- postTransactionRollback  [line 57] -
-
- -
-
-
  - void postTransactionRollback( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postTransactionRollback()
-
- -
-
[ Top ]
-
- -
- -
- preClose  [line 37] -
-
- -
-
-
  - void preClose( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preConnect  [line 83] -
-
- -
-
-
  - void preConnect( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preConnect()
-
- -
-
[ Top ]
-
- -
- -
- preError  [line 101] -
-
- -
-
-
  - void preError( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preError()
-
- -
-
[ Top ]
-
- -
- -
- preExec  [line 96] -
-
- -
-
-
  - void preExec( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preExec()
-
- -
-
[ Top ]
-
- -
- -
- preFetch  [line 106] -
-
- -
-
-
  - void preFetch( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preFetch()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- preFetchAll  [line 111] -
-
- -
-
-
  - void preFetchAll( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preFetchAll()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- prePrepare  [line 91] -
-
- -
-
-
  - void prePrepare( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::prePrepare()
-
- -
-
[ Top ]
-
- -
- -
- preQuery  [line 86] -
-
- -
-
-
  - void preQuery( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preQuery()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- preSavepointCommit  [line 66] -
-
- -
-
-
  - void preSavepointCommit( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preSavepointCreate  [line 76] -
-
- -
-
-
  - void preSavepointCreate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preSavepointRollback  [line 71] -
-
- -
-
-
  - void preSavepointRollback( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preStmtExecute  [line 116] -
-
- -
-
-
  - void preStmtExecute( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preStmtExecute()
-
- -
-
[ Top ]
-
- -
- -
- preTransactionBegin  [line 60] -
-
- -
-
-
  - void preTransactionBegin( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preTransactionBegin()
-
- -
-
[ Top ]
-
- -
- -
- preTransactionCommit  [line 50] -
-
- -
-
-
  - void preTransactionCommit( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preTransactionCommit()
-
- -
-
[ Top ]
-
- -
- -
- preTransactionRollback  [line 55] -
-
- -
-
-
  - void preTransactionRollback( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preTransactionRollback()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_EventListener_Chain.html b/api_documentation/trunk/Doctrine/Doctrine_EventListener_Chain.html deleted file mode 100644 index 4d78d6f71..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_EventListener_Chain.html +++ /dev/null @@ -1,2393 +0,0 @@ - - -
-

Class: Doctrine_EventListener_Chain

-Source Location: /Doctrine/EventListener/Chain.php

- -

Class Doctrine_EventListener_Chain

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_EventListener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time -

- -

- Located in /Doctrine/EventListener/Chain.php [line 36] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_EventListener_Chain
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2186 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $listeners  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  add()  add adds a listener to the chain of listeners
mixed  get()  returns a Doctrine_EventListener on success and null on failure
void  onCollectionDelete()  onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
void  onLoad()  onLoad an event invoked when Doctrine_Record is being loaded from database
void  onOpen()  onOpen an event invoked after Doctrine_Connection is opened
void  onPreCollectionDelete()  onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
void  onPreLoad()  onPreLoad an event invoked when Doctrine_Record is being loaded from database but not yet initialized
void  onSleep()  onSleep an event invoked when Doctrine_Record is serialized
void  onWakeUp()  onWakeUp an event invoked when Doctrine_Record is unserialized
void  postClose()  postClose an event invoked after Doctrine_Connection is closed
void  postConnect()  
void  postError()  
void  postExec()  
void  postFetch()  
void  postFetchAll()  
void  postPrepare()  
void  postQuery()  
void  postStmtExecute()  
void  postTransactionBegin()  onTransactionBegin an event invoked after a Doctrine_Connection transaction has been started
void  postTransactionCommit()  onTransactionCommit an event invoked after a Doctrine_Connection transaction is committed
void  postTransactionRollback()  onTransactionRollback an event invoked after a Doctrine_Connection transaction is being rolled back
void  preClose()  preClose an event invoked before Doctrine_Connection is closed
void  preConnect()  
void  preError()  
void  preExec()  
void  preFetch()  
void  preFetchAll()  
void  prePrepare()  
void  preQuery()  
void  preStmtExecute()  
void  preTransactionBegin()  onTransactionBegin an event invoked before a Doctrine_Connection transaction is being started
void  preTransactionCommit()  onPreTransactionCommit an event invoked before a Doctrine_Connection transaction is committed
void  preTransactionRollback()  onPreTransactionRollback an event invoked before a Doctrine_Connection transaction is being rolled back
void  set()  set
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $listeners - = array() [line 41] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- add  [line 50] -
-
- -
-
-
  - void add( -object -$listener, [string -$name = null]  -) -
-

- -

add adds a listener to the chain of listeners -

- - Parameters:
- - - - - - - -
- object   - $listener:  -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- get  [line 70] -
-
- -
-
-
  - mixed get( -mixed -$key  -) -
-

- -

returns a Doctrine_EventListener on success and null on failure -

- - Parameters:
- - - - -
- mixed   - $key:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onCollectionDelete  [line 265] -
-
- -
-
-
  - void onCollectionDelete( -Doctrine_Collection -$collection  -) -
-

- -

onCollectionDelete an event invoked after a Doctrine_Collection is being deleted -

- - Parameters:
- - - - -
- Doctrine_Collection   - $collection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onLoad  [line 95] -
-
- -
-
-
  - void onLoad( -Doctrine_Record -$record  -) -
-

- -

onLoad an event invoked when Doctrine_Record is being loaded from database -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onOpen  [line 174] -
-
- -
-
-
  - void onOpen( -Doctrine_Connection -$connection  -) -
-

- -

onOpen an event invoked after Doctrine_Connection is opened -

- - Parameters:
- - - - -
- Doctrine_Connection   - $connection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onPreCollectionDelete  [line 278] -
-
- -
-
-
  - void onPreCollectionDelete( -Doctrine_Collection -$collection  -) -
-

- -

onCollectionDelete an event invoked after a Doctrine_Collection is being deleted -

- - Parameters:
- - - - -
- Doctrine_Collection   - $collection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onPreLoad  [line 109] -
-
- -
-
-
  - void onPreLoad( -Doctrine_Record -$record  -) -
-

- -

onPreLoad an event invoked when Doctrine_Record is being loaded from database but not yet initialized -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onSleep  [line 122] -
-
- -
-
-
  - void onSleep( -Doctrine_Record -$record  -) -
-

- -

onSleep an event invoked when Doctrine_Record is serialized -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- onWakeUp  [line 135] -
-
- -
-
-
  - void onWakeUp( -Doctrine_Record -$record  -) -
-

- -

onWakeUp an event invoked when Doctrine_Record is unserialized -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postClose  [line 148] -
-
- -
-
-
  - void postClose( -Doctrine_Event -$event  -) -
-

- -

postClose an event invoked after Doctrine_Connection is closed -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postConnect  [line 284] -
-
- -
-
-
  - void postConnect( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postConnect()
-
- -
-
[ Top ]
-
- -
- -
- postError  [line 341] -
-
- -
-
-
  - void postError( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postError()
-
- -
-
[ Top ]
-
- -
- -
- postExec  [line 328] -
-
- -
-
-
  - void postExec( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postExec()
-
- -
-
[ Top ]
-
- -
- -
- postFetch  [line 354] -
-
- -
-
-
  - void postFetch( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postFetch()
-
- -
-
[ Top ]
-
- -
- -
- postFetchAll  [line 368] -
-
- -
-
-
  - void postFetchAll( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postFetchAll()
-
- -
-
[ Top ]
-
- -
- -
- postPrepare  [line 315] -
-
- -
-
-
  - void postPrepare( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postPrepare()
-
- -
-
[ Top ]
-
- -
- -
- postQuery  [line 302] -
-
- -
-
-
  - void postQuery( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postQuery()
-
- -
-
[ Top ]
-
- -
- -
- postStmtExecute  [line 382] -
-
- -
-
-
  - void postStmtExecute( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postStmtExecute()
-
- -
-
[ Top ]
-
- -
- -
- postTransactionBegin  [line 239] -
-
- -
-
-
  - void postTransactionBegin( -Doctrine_Event -$event  -) -
-

- -

onTransactionBegin an event invoked after a Doctrine_Connection transaction has been started -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postTransactionBegin()
-
- -
-
[ Top ]
-
- -
- -
- postTransactionCommit  [line 187] -
-
- -
-
-
  - void postTransactionCommit( -Doctrine_Event -$event  -) -
-

- -

onTransactionCommit an event invoked after a Doctrine_Connection transaction is committed -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postTransactionCommit()
-
- -
-
[ Top ]
-
- -
- -
- postTransactionRollback  [line 213] -
-
- -
-
-
  - void postTransactionRollback( -Doctrine_Event -$event  -) -
-

- -

onTransactionRollback an event invoked after a Doctrine_Connection transaction is being rolled back -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::postTransactionRollback()
-
- -
-
[ Top ]
-
- -
- -
- preClose  [line 161] -
-
- -
-
-
  - void preClose( -Doctrine_Event -$event  -) -
-

- -

preClose an event invoked before Doctrine_Connection is closed -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preConnect  [line 290] -
-
- -
-
-
  - void preConnect( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preConnect()
-
- -
-
[ Top ]
-
- -
- -
- preError  [line 335] -
-
- -
-
-
  - void preError( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preError()
-
- -
-
[ Top ]
-
- -
- -
- preExec  [line 322] -
-
- -
-
-
  - void preExec( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preExec()
-
- -
-
[ Top ]
-
- -
- -
- preFetch  [line 348] -
-
- -
-
-
  - void preFetch( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preFetch()
-
- -
-
[ Top ]
-
- -
- -
- preFetchAll  [line 361] -
-
- -
-
-
  - void preFetchAll( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preFetchAll()
-
- -
-
[ Top ]
-
- -
- -
- prePrepare  [line 309] -
-
- -
-
-
  - void prePrepare( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::prePrepare()
-
- -
-
[ Top ]
-
- -
- -
- preQuery  [line 296] -
-
- -
-
-
  - void preQuery( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preQuery()
-
- -
-
[ Top ]
-
- -
- -
- preStmtExecute  [line 375] -
-
- -
-
-
  - void preStmtExecute( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preStmtExecute()
-
- -
-
[ Top ]
-
- -
- -
- preTransactionBegin  [line 252] -
-
- -
-
-
  - void preTransactionBegin( -Doctrine_Event -$event  -) -
-

- -

onTransactionBegin an event invoked before a Doctrine_Connection transaction is being started -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preTransactionBegin()
-
- -
-
[ Top ]
-
- -
- -
- preTransactionCommit  [line 200] -
-
- -
-
-
  - void preTransactionCommit( -Doctrine_Event -$event  -) -
-

- -

onPreTransactionCommit an event invoked before a Doctrine_Connection transaction is committed -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preTransactionCommit()
-
- -
-
[ Top ]
-
- -
- -
- preTransactionRollback  [line 226] -
-
- -
-
-
  - void preTransactionRollback( -Doctrine_Event -$event  -) -
-

- -

onPreTransactionRollback an event invoked before a Doctrine_Connection transaction is being rolled back -

- - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_EventListener_Interface::preTransactionRollback()
-
- -
-
[ Top ]
-
- -
- -
- set  [line 84] -
-
- -
-
-
  - void set( -mixed -$key, Doctrine_EventListener -$listener  -) -
-

- -

set -

- - Parameters:
- - - - - - - -
- mixed   - $key:  -
- Doctrine_EventListener   - $listener:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_EventListener_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_EventListener_Exception.html deleted file mode 100644 index 45e48081b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_EventListener_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_EventListener_Exception

-Source Location: /Doctrine/EventListener/Exception.php

- -

Class Doctrine_EventListener_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_EventListener_Exception -

- -

- Located in /Doctrine/EventListener/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_EventListener_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1344 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_EventListener_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_EventListener_Interface.html deleted file mode 100644 index 79629c733..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_EventListener_Interface.html +++ /dev/null @@ -1,1448 +0,0 @@ - - -
-

Interface: Doctrine_EventListener_Interface

-Source Location: /Doctrine/EventListener/Interface.php

- -

Interface Doctrine_EventListener_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement -

- -

- Located in /Doctrine/EventListener/Interface.php [line 35] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1976 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  postConnect()  
void  postError()  
void  postExec()  
void  postFetch()  
void  postFetchAll()  
void  postPrepare()  
void  postQuery()  
void  postStmtExecute()  
void  postTransactionBegin()  
void  postTransactionCommit()  
void  postTransactionRollback()  
void  preConnect()  
void  preError()  
void  preExec()  
void  preFetch()  
void  preFetchAll()  
void  prePrepare()  
void  preQuery()  
void  preStmtExecute()  
void  preTransactionBegin()  
void  preTransactionCommit()  
void  preTransactionRollback()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- postConnect  [line 46] -
-
- -
-
-
  - void postConnect( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postError  [line 59] -
-
- -
-
-
  - void postError( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postExec  [line 56] -
-
- -
-
-
  - void postExec( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postFetch  [line 62] -
-
- -
-
-
  - void postFetch( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postFetchAll  [line 65] -
-
- -
-
-
  - void postFetchAll( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postPrepare  [line 53] -
-
- -
-
-
  - void postPrepare( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postQuery  [line 50] -
-
- -
-
-
  - void postQuery( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postStmtExecute  [line 68] -
-
- -
-
-
  - void postStmtExecute( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postTransactionBegin  [line 44] -
-
- -
-
-
  - void postTransactionBegin( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postTransactionCommit  [line 38] -
-
- -
-
-
  - void postTransactionCommit( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postTransactionRollback  [line 41] -
-
- -
-
-
  - void postTransactionRollback( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preConnect  [line 47] -
-
- -
-
-
  - void preConnect( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preError  [line 58] -
-
- -
-
-
  - void preError( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preExec  [line 55] -
-
- -
-
-
  - void preExec( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preFetch  [line 61] -
-
- -
-
-
  - void preFetch( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preFetchAll  [line 64] -
-
- -
-
-
  - void preFetchAll( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prePrepare  [line 52] -
-
- -
-
-
  - void prePrepare( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preQuery  [line 49] -
-
- -
-
-
  - void preQuery( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preStmtExecute  [line 67] -
-
- -
-
-
  - void preStmtExecute( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preTransactionBegin  [line 43] -
-
- -
-
-
  - void preTransactionBegin( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preTransactionCommit  [line 37] -
-
- -
-
-
  - void preTransactionCommit( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preTransactionRollback  [line 40] -
-
- -
-
-
  - void preTransactionRollback( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Exception.html deleted file mode 100644 index f570c51e6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Exception.html +++ /dev/null @@ -1,823 +0,0 @@ - - -
-

Class: Doctrine_Exception

-Source Location: /Doctrine/Exception.php

- -

Class Doctrine_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Exception -

- -

- Located in /Doctrine/Exception.php [line 32] -

- - -
Exception
-   |
-   --Doctrine_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1344 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Adapter_Exception - Doctrine_Adapter_Exception -
Doctrine_Cache_Exception - Doctrine_Cache_Exception -
Doctrine_Collection_Exception - Doctrine_Collection_Exception -
Doctrine_Compiler_Exception - Doctrine_Compiler_Exception -
Doctrine_Connection_Exception - Doctrine_Exception -
Doctrine_Connection_Profiler_Exception - Doctrine_Connection_Profiler_Exception -
Doctrine_DataDict_Exception - Doctrine_DataDict_Exception -
Doctrine_EventListener_Exception - Doctrine_EventListener_Exception -
Doctrine_Export_Exception - Doctrine_Export_Exception -
Doctrine_Expression_Exception - Doctrine_Expression_Exception -
Doctrine_Hydrate_Exception - Doctrine_Hydrate_Exception -
Doctrine_Import_Exception - class Doctrine_Import_Exception -
Doctrine_Locking_Exception - Locking exception class -
Doctrine_Manager_Exception - Doctrine_Manager_Exception -
Doctrine_Node_Exception - Doctrine_Node_Exception -
Doctrine_Query_Exception - Doctrine_Query_Exception -
Doctrine_RawSql_Exception - Doctrine_RawSql_Exception -
Doctrine_Record_Exception - Doctrine_Exception -
Doctrine_Relation_Exception - Doctrine_Relation_Exception -
Doctrine_Search_Exception - Doctrine_Search_Exception -
Doctrine_Sequence_Exception - Doctrine_Sequence_Exception -
Doctrine_Table_Exception - thrown when user tries to initialize a new instance of Doctrine_Table, while there already exists an instance of that table -
Doctrine_Table_Repository_Exception - Doctrine_Table_Repository_Exception -
Doctrine_Transaction_Exception - Doctrine_Transaction_Exception -
Doctrine_Tree_Exception - Doctrine_Tree_Exception -
Doctrine_Validator_Exception - Doctrine_Validator_Exception -
Doctrine_View_Exception - Doctrine_Validator_Exception -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static array  $_errorMessages  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
string  errorMessage()  Return a textual error message for a Doctrine error code
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $_errorMessages - = array(
Doctrine::ERR => 'unknown error',
Doctrine::ERR_ALREADY_EXISTS => 'already exists',
Doctrine::ERR_CANNOT_CREATE => 'can not create',
Doctrine::ERR_CANNOT_ALTER => 'can not alter',
Doctrine::ERR_CANNOT_REPLACE => 'can not replace',
Doctrine::ERR_CANNOT_DELETE => 'can not delete',
Doctrine::ERR_CANNOT_DROP => 'can not drop',
Doctrine::ERR_CONSTRAINT => 'constraint violation',
Doctrine::ERR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint',
Doctrine::ERR_DIVZERO => 'division by zero',
Doctrine::ERR_INVALID => 'invalid',
Doctrine::ERR_INVALID_DATE => 'invalid date or time',
Doctrine::ERR_INVALID_NUMBER => 'invalid number',
Doctrine::ERR_MISMATCH => 'mismatch',
Doctrine::ERR_NODBSELECTED => 'no database selected',
Doctrine::ERR_NOSUCHFIELD => 'no such field',
Doctrine::ERR_NOSUCHTABLE => 'no such table',
Doctrine::ERR_NOT_CAPABLE => 'Doctrine backend not capable',
Doctrine::ERR_NOT_FOUND => 'not found',
Doctrine::ERR_NOT_LOCKED => 'not locked',
Doctrine::ERR_SYNTAX => 'syntax error',
Doctrine::ERR_UNSUPPORTED => 'not supported',
Doctrine::ERR_VALUE_COUNT_ON_ROW => 'value count on row',
Doctrine::ERR_INVALID_DSN => 'invalid DSN',
Doctrine::ERR_CONNECT_FAILED => 'connect failed',
Doctrine::ERR_NEED_MORE_DATA => 'insufficient data supplied',
Doctrine::ERR_EXTENSION_NOT_FOUND=> 'extension not found',
Doctrine::ERR_NOSUCHDB => 'no such database',
Doctrine::ERR_ACCESS_VIOLATION => 'insufficient permissions',
Doctrine::ERR_LOADMODULE => 'error while including on demand module',
Doctrine::ERR_TRUNCATED => 'truncated',
Doctrine::ERR_DEADLOCK => 'deadlock detected',
)
[line 37] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- errorMessage  [line 80] -
-
- -
-
-
  - string errorMessage( -[int|array -$value = null]  -) -
-

- -

Return a textual error message for a Doctrine error code -

- - Parameters:
- - - - -
- int|array   - $value:  - integer error code, null to get the current error code-message map, or an array with a new error code-message map
- -
- API Tags:
- - - - - - - -
Return:  error message
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export.html b/api_documentation/trunk/Doctrine/Doctrine_Export.html deleted file mode 100644 index 82d3675d7..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export.html +++ /dev/null @@ -1,3303 +0,0 @@ - - -
-

Class: Doctrine_Export

-Source Location: /Doctrine/Export.php

- -

Class Doctrine_Export

- - - - - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Export_Firebird - Doctrine_Export_Sqlite -
Doctrine_Export_Frontbase - Doctrine_Export_Frontbase -
Doctrine_Export_Mssql - Doctrine_Export_Mssql -
Doctrine_Export_Mysql - Doctrine_Export_Mysql -
Doctrine_Export_Oracle - Doctrine_Export_Oracle -
Doctrine_Export_Pgsql - Doctrine_Export_Pgsql -
Doctrine_Export_Sqlite - Doctrine_Export_Sqlite -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $valid_default_values  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  alterTable()  alter an existing table (this method is implemented by the drivers)
string  alterTableSql()  generates the sql for altering an existing table (this method is implemented by the drivers)
void  createConstraint()  create a constraint on a table
void  createConstraintSql()  create a constraint on a table
void  createDatabase()  create a new database (this method is implemented by the drivers)
string  createDatabaseSql()  create a new database (this method is implemented by the drivers)
string  createForeignKeySql()  createForeignKeySql
void  createIndex()  Get the stucture of a field into an array
string  createIndexSql()  Get the stucture of a field into an array
void  createSequence()  create sequence
string  createSequenceSql()  return RDBMS specific create sequence statement (this method is implemented by the drivers)
void  createTable()  create a new table
string  createTableSql()  create a new table
void  dropConstraint()  drop existing constraint
void  dropDatabase()  drop an existing database (this method is implemented by the drivers)
void  dropDatabaseSql()  drop an existing database (this method is implemented by the drivers)
void  dropIndex()  drop existing index
string  dropIndexSql()  dropIndexSql
void  dropSequence()  dropSequenceSql drop existing sequence (this method is implemented by the drivers)
void  dropSequenceSql()  dropSequenceSql drop existing sequence
void  dropTable()  dropTable drop an existing table
string  dropTableSql()  dropTableSql drop an existing table
void  exportClasses()  exportClasses method for exporting Doctrine_Record classes to a schema
void  exportClassesSql()  exportClassesSql method for exporting Doctrine_Record classes to a schema
void  exportSchema()  exportSchema method for exporting Doctrine_Record classes to a schema
void  exportSql()  exportSql returns the sql for exporting Doctrine_Record classes to a schema
boolean  exportTable()  exportTable exports given table into database based on column and option definitions
string  getAdvancedForeignKeyOptions()  getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
string  getCharsetFieldDeclaration()  Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
string  getCheckDeclaration()  Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE.
string  getCollationFieldDeclaration()  Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
string  getDeclaration()  Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE.
string  getDefaultFieldDeclaration()  getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
string  getFieldDeclarationList()  Get declaration of a number of field in bulk
string  getForeignKeyBaseDeclaration()  getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.
string  getForeignKeyDeclaration()  getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.
void  getForeignKeyReferentialAction()  getForeignKeyReferentialAction
string  getIndexDeclaration()  Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
string  getIndexFieldDeclarationList()  getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
string  getTemporaryTableQuery()  A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
string  getUniqueFieldDeclaration()  Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE.
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $valid_default_values - = array(
'text' => '',
'boolean' => true,
'integer' => 0,
'decimal' => 0.0,
'float' => 0.0,
'timestamp' => '1970-01-01 00:00:00',
'time' => '00:00:00',
'date' => '1970-01-01',
'clob' => '',
'blob' => '',
'string' => ''
)
[line 36] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- alterTable  [line 550] -
-
- -
-
-
  - void alterTable( -string -$name, -$changes, boolean -$check  -) -
-

- -

alter an existing table (this method is implemented by the drivers) -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  -

associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

name

New name for the table.

add

Associative array with the names of fields to be added as indexes of the array. The value of each entry of the array should be set to another associative array with the properties of the fields to be added. The properties of the fields should be the same as defined by the MDB2 parser.

remove

Associative array with the names of fields to be removed as indexes of the array. Currently the values assigned to each entry are ignored. An empty array should be used for future compatibility.

rename

Associative array with the names of fields to be renamed as indexes of the array. The value of each entry of the array should be set to another associative array with the entry named name with the new field name and the entry named Declaration that is expected to contain the portion of the field declaration already in DBMS specific SQL code as it is used in the CREATE TABLE statement.

change

Associative array with the names of the fields to be changed as indexes of the array. Keep in mind that if it is intended to change either the name of a field and any other properties, the change array entries should have the new names of the fields as array indexes.

The value of each entry of the array should be set to another associative array with the properties of the fields to that are meant to be changed as array entries. These entries should be assigned to the new values of the respective properties. The properties of the fields should be the same as defined by the MDB2 parser.

Example array( 'name' => 'userlist', 'add' => array( 'quota' => array( 'type' => 'integer', 'unsigned' => 1 ) ), 'remove' => array( 'file_limit' => array(), 'time_limit' => array() ), 'change' => array( 'name' => array( 'length' => '20', 'definition' => array( 'type' => 'text', 'length' => 20, ), ) ), 'rename' => array( 'sex' => array( 'name' => 'gender', 'definition' => array( 'type' => 'text', 'length' => 1, 'default' => 'M', ), ) ) )

- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- alterTableSql  [line 566] -
-
- -
-
-
  - string alterTableSql( -string -$name, -$changes, boolean -$check  -) -
-

- -

generates the sql for altering an existing table (this method is implemented by the drivers) -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  - associative array that contains the details of each type *
- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - - - - -
See:  Doctrine_Export::alterTable()
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createConstraint  [line 331] -
-
- -
-
-
  - void createConstraint( -string -$table, string -$name, array -$definition  -) -
-

- -

create a constraint on a table -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the constraint is to be created
- string   - $name:  - name of the constraint to be created
- array   - $definition:  -

associative array that defines properties of the constraint to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the constraint fields as array constraints. Each entry of this array is set to another type of associative array that specifies properties of the constraint that are specific to each field.

Example array( 'fields' => array( 'user_name' => array(), 'last_login' => array() ) )

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createConstraintSql  [line 356] -
-
- -
-
-
  - void createConstraintSql( -string -$table, string -$name, array -$definition  -) -
-

- -

create a constraint on a table -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the constraint is to be created
- string   - $name:  - name of the constraint to be created
- array   - $definition:  -

associative array that defines properties of the constraint to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the constraint fields as array constraints. Each entry of this array is set to another type of associative array that specifies properties of the constraint that are specific to each field.

Example array( 'fields' => array( 'user_name' => array(), 'last_login' => array() ) )

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- createDatabase  [line 165] -
-
- -
-
-
  - void createDatabase( - -$database, string -$name  -) -
-

- -

create a new database (this method is implemented by the drivers) -

- - Parameters:
- - - - - - - -
- string   - $name:  - name of the database that should be created
-    - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createDatabaseSql  [line 176] -
-
- -
-
-
  - string createDatabaseSql( - -$database, string -$name  -) -
-

- -

create a new database (this method is implemented by the drivers) -

- - Parameters:
- - - - - - - -
- string   - $name:  - name of the database that should be created
-    - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createForeignKeySql  [line 453] -
-
- -
-
-
  - string createForeignKeySql( -string -$table, -$definition  -) -
-

- -

createForeignKeySql -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table on which the foreign key is to be created
- array   - $definition:  - associative array that defines properties of the foreign key to be created.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createIndex  [line 407] -
-
- -
-
-
  - void createIndex( -string -$table, string -$name, -$definition  -) -
-

- -

Get the stucture of a field into an array -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the index is to be created
- string   - $name:  - name of the index to be created
- array   - $definition:  -

associative array that defines properties of the index to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the index fields as array indexes. Each entry of this array is set to another type of associative array that specifies properties of the index that are specific to each field.

Currently, only the sorting property is supported. It should be used to define the sorting direction of the index. It may be set to either ascending or descending.

Not all DBMS support index sorting direction configuration. The DBMS drivers of those that do not support it ignore this property. Use the function supports() to determine whether the DBMS driver can manage indexes.

Example array( 'fields' => array( 'user_name' => array( 'sorting' => 'ascending' ), 'last_login' => array() ) )

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- createIndexSql  [line 420] -
-
- -
-
-
  - string createIndexSql( -string -$table, string -$name, -$definition  -) -
-

- -

Get the stucture of a field into an array -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the index is to be created
- string   - $name:  - name of the index to be created
- array   - $definition:  - associative array that defines properties of the index to be created.
- -
- API Tags:
- - - - - - - -
See:  Doctrine_Export::createIndex()
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createSequence  [line 287] -
-
- -
-
-
  - void createSequence( -string -$seqName, [string -$start = 1], [ -$options = array()]  -) -
-

- -

create sequence -

- - Parameters:
- - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if something fails at database level
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createSequenceSql  [line 306] -
-
- -
-
-
  - string createSequenceSql( -string -$seqName, [string -$start = 1], [ -$options = array()]  -) -
-

- -

return RDBMS specific create sequence statement (this method is implemented by the drivers) -

- - Parameters:
- - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if something fails at database level
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createTable  [line 265] -
-
- -
-
-
  - void createTable( -string -$name, -$fields, [ -$options = array()]  -) -
-

- -

create a new table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - Name of the database that should be created
- array   - $fields:  - Associative array that contains the definition of each field of the new table
- array   - $options:  - An associative array of table options:
- -
- API Tags:
- - - - - - - -
See:  Doctrine_Export::createTableSql()
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- createTableSql  [line 208] -
-
- -
-
-
  - string createTableSql( -string -$name, -$fields, [ -$options = array()]  -) -
-

- -

create a new table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - Name of the database that should be created
- array   - $fields:  - Associative array that contains the definition of each field of the new table The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get[Type]Declaration() functions. array( 'id' => array( 'type' => 'integer', 'unsigned' => 1 'notnull' => 1 'default' => 0 ), 'name' => array( 'type' => 'text', 'length' => 12 ), 'password' => array( 'type' => 'text', 'length' => 12 ) );
- array   - $options:  - An associative array of table options:
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- dropConstraint  [line 127] -
-
- -
-
-
  - void dropConstraint( -string -$table, string -$name, [string -$primary = false]  -) -
-

- -

drop existing constraint -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of table that should be used in method
- string   - $name:  - name of the constraint to be dropped
- string   - $primary:  - hint if the constraint is primary
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- dropDatabase  [line 57] -
-
- -
-
-
  - void dropDatabase( - -$database, string -$name  -) -
-

- -

drop an existing database (this method is implemented by the drivers) -

- - Parameters:
- - - - - - - -
- string   - $name:  - name of the database that should be dropped
-    - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- dropDatabaseSql  [line 68] -
-
- -
-
-
  - void dropDatabaseSql( - -$database, string -$name  -) -
-

- -

drop an existing database (this method is implemented by the drivers) -

- - Parameters:
- - - - - - - -
- string   - $name:  - name of the database that should be dropped
-    - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- dropIndex  [line 102] -
-
- -
-
-
  - void dropIndex( -string -$table, string -$name  -) -
-

- -

drop existing index -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of table that should be used in method
- string   - $name:  - name of the index to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- dropIndexSql  [line 114] -
-
- -
-
-
  - string dropIndexSql( -string -$table, string -$name  -) -
-

- -

dropIndexSql -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of table that should be used in method
- string   - $name:  - name of the index to be dropped
- -
- API Tags:
- - - - - - - -
Return:  SQL that is used for dropping an index
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- dropSequence  [line 142] -
-
- -
-
-
  - void dropSequence( -string -$sequenceName  -) -
-

- -

dropSequenceSql drop existing sequence (this method is implemented by the drivers) -

- - Parameters:
- - - - -
- string   - $sequenceName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if something fails at database level
- - -
-
[ Top ]
-
- -
- -
- dropSequenceSql  [line 154] -
-
- -
-
-
  - void dropSequenceSql( -string -$sequenceName  -) -
-

- -

dropSequenceSql drop existing sequence -

- - Parameters:
- - - - -
- string   - $sequenceName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if something fails at database level
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- dropTable  [line 90] -
-
- -
-
-
  - void dropTable( -string -$table  -) -
-

- -

dropTable drop an existing table -

- - Parameters:
- - - - -
- string   - $table:  - name of table that should be dropped from the database
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- dropTableSql  [line 79] -
-
- -
-
-
  - string dropTableSql( -string -$table  -) -
-

- -

dropTableSql drop an existing table -

- - Parameters:
- - - - -
- string   - $table:  - name of table that should be dropped from the database
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- exportClasses  [line 1002] -
-
- -
-
-
  - void exportClasses( - -$classes  -) -
-

- -

exportClasses method for exporting Doctrine_Record classes to a schema -

- - Parameters:
- - - - -
- array   - $classes:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if some error other than Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
- - -
-
[ Top ]
-
- -
- -
- exportClassesSql  [line 1030] -
-
- -
-
-
  - void exportClassesSql( - -$classes  -) -
-

- -

exportClassesSql method for exporting Doctrine_Record classes to a schema -

- - Parameters:
- - - - -
- array   - $classes:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if some error other than Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
- - -
-
[ Top ]
-
- -
- -
- exportSchema  [line 974] -
-
- -
-
-
  - void exportSchema( -[string -$directory = null]  -) -
-

- -

exportSchema method for exporting Doctrine_Record classes to a schema -

-

if the directory parameter is given this method first iterates recursively trhough the given directory in order to find any model classes

Then it iterates through all declared classes and creates tables for the ones that extend Doctrine_Record and are not abstract classes

- Parameters:
- - - - -
- string   - $directory:  - optional directory parameter
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if some error other than Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
- - -
-
[ Top ]
-
- -
- -
- exportSql  [line 1080] -
-
- -
-
-
  - void exportSql( -[string -$directory = null]  -) -
-

- -

exportSql returns the sql for exporting Doctrine_Record classes to a schema -

-

if the directory parameter is given this method first iterates recursively trhough the given directory in order to find any model classes

Then it iterates through all declared classes and creates tables for the ones that extend Doctrine_Record and are not abstract classes

- Parameters:
- - - - -
- string   - $directory:  - optional directory parameter
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if some error other than Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
- - -
-
[ Top ]
-
- -
- -
- exportTable  [line 1110] -
-
- -
-
-
  - boolean exportTable( -Doctrine_Table -$table  -) -
-

- -

exportTable exports given table into database based on column and option definitions -

- - Parameters:
- - - - -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - - - - -
Return:  whether or not the export operation was successful false if table already existed in the database
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if some error other than Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
- - -
-
[ Top ]
-
- -
- -
- getAdvancedForeignKeyOptions  [line 848] -
-
- -
-
-
  - string getAdvancedForeignKeyOptions( - -$definition  -) -
-

- -

getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -

- - Parameters:
- - - - -
- array   - $definition:  - foreign key definition
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getCharsetFieldDeclaration  [line 943] -
-
- -
-
-
  - string getCharsetFieldDeclaration( -string -$charset  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- string   - $charset:  - name of the charset
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCheckDeclaration  [line 704] -
-
- -
-
-
  - string getCheckDeclaration( - -$definition  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $definition:  - check definition
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set a CHECK constraint
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCollationFieldDeclaration  [line 955] -
-
- -
-
-
  - string getCollationFieldDeclaration( -string -$collation  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- string   - $collation:  - name of the collation
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the COLLATION of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDeclaration  [line 640] -
-
- -
-
-
  - string getDeclaration( -string -$name, -$field  -) -
-

- -

Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - - - - -
- string   - $name:  - name the field to be declared.
- array   - $field:  -

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null. charset Text value with the default CHARACTER SET for this field. collation Text value with the default COLLATION for this field. unique unique constraint check column check constraint

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDefaultFieldDeclaration  [line 676] -
-
- -
-
-
  - string getDefaultFieldDeclaration( -array -$field  -) -
-

- -

getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  - field definition array
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set a default value
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getFieldDeclarationList  [line 599] -
-
- -
-
-
  - string getFieldDeclarationList( - -$fields  -) -
-

- -

Get declaration of a number of field in bulk -

- - Parameters:
- - - - -
- array   - $fields:  -

a multidimensional associative array. The first dimension determines the field name, while the second dimension is keyed with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null. charset Text value with the default CHARACTER SET for this field. collation Text value with the default COLLATION for this field. unique unique constraint

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getForeignKeyBaseDeclaration  [line 892] -
-
- -
-
-
  - string getForeignKeyBaseDeclaration( - -$definition  -) -
-

- -

getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $definition:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getForeignKeyDeclaration  [line 833] -
-
- -
-
-
  - string getForeignKeyDeclaration( - -$definition  -) -
-

- -

getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $definition:  -

an associative array with the following structure: name optional constraint name

local the local field(s)

foreign the foreign reference field(s)

foreignTable the name of the foreign table

onDelete referential delete action

onUpdate referential update action

deferred deferred constraint checking

The onDelete and onUpdate keys accept the following values:

CASCADE: Delete or update the row from the parent table and automatically delete or update the matching rows in the child table. Both ON DELETE CASCADE and ON UPDATE CASCADE are supported. Between two tables, you should not define several ON UPDATE CASCADE clauses that act on the same column in the parent table or in the child table.

SET NULL: Delete or update the row from the parent table and set the foreign key column or columns in the child table to NULL. This is valid only if the foreign key columns do not have the NOT NULL qualifier specified. Both ON DELETE SET NULL and ON UPDATE SET NULL clauses are supported.

NO ACTION: In standard SQL, NO ACTION means no action in the sense that an attempt to delete or update a primary key value is not allowed to proceed if there is a related foreign key value in the referenced table.

RESTRICT: Rejects the delete or update operation for the parent table. NO ACTION and RESTRICT are the same as omitting the ON DELETE or ON UPDATE clause.

SET DEFAULT

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getForeignKeyReferentialAction  [line 869] -
-
- -
-
-
  - void getForeignKeyReferentialAction( -string -$action, string -1  -) -
-

- -

getForeignKeyReferentialAction -

-

returns given referential action in uppercase if valid, otherwise throws an exception

- Parameters:
- - - - - - - -
- string   - $action:  - foreign key referential action
- string   - 1:  - foreign key referential action in uppercase
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Exception_Exception if unknown referential action given
- - -
-
[ Top ]
-
- -
- -
- getIndexDeclaration  [line 731] -
-
- -
-
-
  - string getIndexDeclaration( -string -$name, -$definition  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - - - - -
- string   - $name:  - name of the index
- array   - $definition:  - index definition
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set an index
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getIndexFieldDeclarationList  [line 761] -
-
- -
-
-
  - string getIndexFieldDeclarationList( - -$fields  -) -
-

- -

getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $fields:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getTemporaryTableQuery  [line 787] -
-
- -
-
-
  - string getTemporaryTableQuery( -) -
-

- -

A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -

-

Should be overridden in driver classes to return the correct string for the specific database type.

The default is to return the string "TEMPORARY" - this will result in a SQL error for any database that does not support temporary tables, or that requires a different SQL command from "CREATE TEMPORARY TABLE".

-
- API Tags:
- - - - - - - -
Return:  The string required to be placed between "CREATE" and "TABLE" to generate a temporary table, if possible.
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getUniqueFieldDeclaration  [line 931] -
-
- -
-
-
  - string getUniqueFieldDeclaration( -) -
-

- -

Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -

- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration.
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Exception.html deleted file mode 100644 index 8b515aebb..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Export_Exception

-Source Location: /Doctrine/Export/Exception.php

- -

Class Doctrine_Export_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Export_Exception -

- -

- Located in /Doctrine/Export/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Export_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Firebird.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Firebird.html deleted file mode 100644 index 38212375c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Firebird.html +++ /dev/null @@ -1,1535 +0,0 @@ - - -
-

Class: Doctrine_Export_Firebird

-Source Location: /Doctrine/Export/Firebird.php

- -

Class Doctrine_Export_Firebird

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Export_Sqlite -

- -

- Located in /Doctrine/Export/Firebird.php [line 35] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Export
-      |
-      --Doctrine_Export_Firebird
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1753 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::$valid_default_values -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::alterTable() -
-
- alter an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::alterTableSql() -
-
- generates the sql for altering an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::createConstraint() -
-
- create a constraint on a table -
-
- Doctrine_Export::createConstraintSql() -
-
- create a constraint on a table -
-
- Doctrine_Export::createDatabase() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createDatabaseSql() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createForeignKeySql() -
-
- createForeignKeySql -
-
- Doctrine_Export::createIndex() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createIndexSql() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createSequence() -
-
- create sequence -
-
- Doctrine_Export::createSequenceSql() -
-
- return RDBMS specific create sequence statement (this method is implemented by the drivers) -
-
- Doctrine_Export::createTable() -
-
- create a new table -
-
- Doctrine_Export::createTableSql() -
-
- create a new table -
-
- Doctrine_Export::dropConstraint() -
-
- drop existing constraint -
-
- Doctrine_Export::dropDatabase() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropDatabaseSql() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropIndex() -
-
- drop existing index -
-
- Doctrine_Export::dropIndexSql() -
-
- dropIndexSql -
-
- Doctrine_Export::dropSequence() -
-
- dropSequenceSql drop existing sequence (this method is implemented by the drivers) -
-
- Doctrine_Export::dropSequenceSql() -
-
- dropSequenceSql drop existing sequence -
-
- Doctrine_Export::dropTable() -
-
- dropTable drop an existing table -
-
- Doctrine_Export::dropTableSql() -
-
- dropTableSql drop an existing table -
-
- Doctrine_Export::exportClasses() -
-
- exportClasses method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportClassesSql() -
-
- exportClassesSql method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSchema() -
-
- exportSchema method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSql() -
-
- exportSql returns the sql for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportTable() -
-
- exportTable exports given table into database based on column and option definitions -
-
- Doctrine_Export::getAdvancedForeignKeyOptions() -
-
- getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -
-
- Doctrine_Export::getCharsetFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCheckDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCollationFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDefaultFieldDeclaration() -
-
- getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getFieldDeclarationList() -
-
- Get declaration of a number of field in bulk -
-
- Doctrine_Export::getForeignKeyBaseDeclaration() -
-
- getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyDeclaration() -
-
- getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyReferentialAction() -
-
- getForeignKeyReferentialAction -
-
- Doctrine_Export::getIndexDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getIndexFieldDeclarationList() -
-
- getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getTemporaryTableQuery() -
-
- A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -
-
- Doctrine_Export::getUniqueFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  alterTable()  alter an existing table
void  checkSupportedChanges()  Check if planned changes are supported
void  createConstraint()  create a constraint on a table
void  createDatabase()  create a new database
void  createIndexSql()  Get the stucture of a field into an array
boolean  createSequence()  create sequence
void  createTable()  create a new table
void  dropDatabase()  drop an existing database
void  dropSequenceSql()  drop existing sequence
mixed  dropTable()  drop an existing table
string  getTemporaryTableQuery()  A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
void  _dropAutoincrement()  drop an existing autoincrement sequence + trigger
void  _makeAutoincrement()  add an autoincrement sequence + trigger
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- alterTable  [line 303] -
-
- -
-
-
  - void alterTable( -string -$name, -$changes, boolean -$check  -) -
-

- -

alter an existing table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  -

associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

name

New name for the table.

add

Associative array with the names of fields to be added as indexes of the array. The value of each entry of the array should be set to another associative array with the properties of the fields to be added. The properties of the fields should be the same as defined by the Metabase parser.

remove

Associative array with the names of fields to be removed as indexes of the array. Currently the values assigned to each entry are ignored. An empty array should be used for future compatibility.

rename

Associative array with the names of fields to be renamed as indexes of the array. The value of each entry of the array should be set to another associative array with the entry named name with the new field name and the entry named Declaration that is expected to contain the portion of the field declaration already in DBMS specific SQL code as it is used in the CREATE TABLE statement.

change

Associative array with the names of the fields to be changed as indexes of the array. Keep in mind that if it is intended to change either the name of a field and any other properties, the change array entries should have the new names of the fields as array indexes.

The value of each entry of the array should be set to another associative array with the properties of the fields to that are meant to be changed as array entries. These entries should be assigned to the new values of the respective properties. The properties of the fields should be the same as defined by the Metabase parser.

Example array( 'name' => 'userlist', 'add' => array( 'quota' => array( 'type' => 'integer', 'unsigned' => 1 ) ), 'remove' => array( 'file_limit' => array(), 'time_limit' => array() ), 'change' => array( 'name' => array( 'length' => '20', 'definition' => array( 'type' => 'text', 'length' => 20, ), ) ), 'rename' => array( 'sex' => array( 'name' => 'gender', 'definition' => array( 'type' => 'text', 'length' => 1, 'default' => 'M', ), ) ) )

- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::alterTable()
-
alter an existing table (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- checkSupportedChanges  [line 176] -
-
- -
-
-
  - void checkSupportedChanges( - -&$changes, string -$name  -) -
-

- -

Check if planned changes are supported -

- - Parameters:
- - - - - - - -
- string   - $name:  - name of the database that should be dropped
-    - &$changes:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- createConstraint  [line 455] -
-
- -
-
-
  - void createConstraint( -string -$table, string -$name, array -$definition  -) -
-

- -

create a constraint on a table -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the constraint is to be created
- string   - $name:  - name of the constraint to be created
- array   - $definition:  -

associative array that defines properties of the constraint to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the constraint fields as array constraints. Each entry of this array is set to another type of associative array that specifies properties of the constraint that are specific to each field.

Example array( 'fields' => array( 'user_name' => array(), 'last_login' => array(), ) )

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createConstraint()
-
create a constraint on a table
-
- -
-
[ Top ]
-
- -
- -
- createDatabase  [line 43] -
-
- -
-
-
  - void createDatabase( -string -$name  -) -
-

- -

create a new database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be created
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createDatabase()
-
create a new database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createIndexSql  [line 406] -
-
- -
-
-
  - void createIndexSql( -string -$table, string -$name, -$definition  -) -
-

- -

Get the stucture of a field into an array -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the index is to be created
- string   - $name:  - name of the index to be created
- array   - $definition:  -

associative array that defines properties of the index to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the index fields as array indexes. Each entry of this array is set to another type of associative array that specifies properties of the index that are specific to each field.

Currently, only the sorting property is supported. It should be used to define the sorting direction of the index. It may be set to either ascending or descending.

Not all DBMS support index sorting direction configuration. The DBMS drivers of those that do not support it ignore this property. Use the function support() to determine whether the DBMS driver can manage indexes. Example array( 'fields' => array( 'user_name' => array( 'sorting' => 'ascending' ), 'last_login' => array() ) )

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createIndexSql()
-
Get the stucture of a field into an array
-
- -
-
[ Top ]
-
- -
- -
- createSequence  [line 507] -
-
- -
-
-
  - boolean createSequence( -string -$seqName, [string -$start = 1], [ -$options = array()]  -) -
-

- -

create sequence -

- - Parameters:
- - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createSequence()
-
create sequence
-
- -
-
[ Top ]
-
- -
- -
- createTable  [line 150] -
-
- -
-
-
  - void createTable( -string -$name, -$fields, [ -$options = array()]  -) -
-

- -

create a new table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - Name of the database that should be created
- array   - $fields:  -

Associative array that contains the definition of each field of the new table The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get[Type]Declaration() functions.

Example array(

'id' => array( 'type' => 'integer', 'unsigned' => 1, 'notnull' => 1, 'default' => 0, ), 'name' => array( 'type' => 'text', 'length' => 12, ), 'description' => array( 'type' => 'text', 'length' => 12, ) );

- array   - $options:  - An associative array of table options:
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createTable()
-
create a new table
-
- -
-
[ Top ]
-
- -
- -
- dropDatabase  [line 55] -
-
- -
-
-
  - void dropDatabase( -string -$name  -) -
-

- -

drop an existing database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropDatabase()
-
drop an existing database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- dropSequenceSql  [line 532] -
-
- -
-
-
  - void dropSequenceSql( -string -$seqName  -) -
-

- -

drop existing sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropSequenceSql()
-
dropSequenceSql drop existing sequence
-
- -
-
[ Top ]
-
- -
- -
- dropTable  [line 206] -
-
- -
-
-
  - mixed dropTable( -string -$name  -) -
-

- -

drop an existing table -

- - Parameters:
- - - - -
- string   - $name:  - name of the table that should be dropped
- -
- API Tags:
- - - - - - - -
Return:  MDB2_OK on success, a MDB2 error on failure
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropTable()
-
dropTable drop an existing table
-
- -
-
[ Top ]
-
- -
- -
- getTemporaryTableQuery  [line 490] -
-
- -
-
-
  - string getTemporaryTableQuery( -) -
-

- -

A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -

- -
- API Tags:
- - - - - - - -
Return:  The string required to be placed between "CREATE" and "TABLE" to generate a temporary table, if possible.
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getTemporaryTableQuery()
-
A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
- -
-
[ Top ]
-
- -
- -
- _dropAutoincrement  [line 108] -
-
- -
-
-
  - void _dropAutoincrement( -string -$table  -) -
-

- -

drop an existing autoincrement sequence + trigger -

- - Parameters:
- - - - -
- string   - $table:  - name of the table
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- _makeAutoincrement  [line 69] -
-
- -
-
-
  - void _makeAutoincrement( -string -$name, string -$table, [string -$start = null]  -) -
-

- -

add an autoincrement sequence + trigger -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the PK field
- string   - $table:  - name of the table
- string   - $start:  - start value for the sequence
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Frontbase.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Frontbase.html deleted file mode 100644 index af0ee36ca..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Frontbase.html +++ /dev/null @@ -1,1174 +0,0 @@ - - -
-

Class: Doctrine_Export_Frontbase

-Source Location: /Doctrine/Export/Frontbase.php

- -

Class Doctrine_Export_Frontbase

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Export_Frontbase -

- -

- Located in /Doctrine/Export/Frontbase.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Export
-      |
-      --Doctrine_Export_Frontbase
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::$valid_default_values -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::alterTable() -
-
- alter an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::alterTableSql() -
-
- generates the sql for altering an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::createConstraint() -
-
- create a constraint on a table -
-
- Doctrine_Export::createConstraintSql() -
-
- create a constraint on a table -
-
- Doctrine_Export::createDatabase() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createDatabaseSql() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createForeignKeySql() -
-
- createForeignKeySql -
-
- Doctrine_Export::createIndex() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createIndexSql() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createSequence() -
-
- create sequence -
-
- Doctrine_Export::createSequenceSql() -
-
- return RDBMS specific create sequence statement (this method is implemented by the drivers) -
-
- Doctrine_Export::createTable() -
-
- create a new table -
-
- Doctrine_Export::createTableSql() -
-
- create a new table -
-
- Doctrine_Export::dropConstraint() -
-
- drop existing constraint -
-
- Doctrine_Export::dropDatabase() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropDatabaseSql() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropIndex() -
-
- drop existing index -
-
- Doctrine_Export::dropIndexSql() -
-
- dropIndexSql -
-
- Doctrine_Export::dropSequence() -
-
- dropSequenceSql drop existing sequence (this method is implemented by the drivers) -
-
- Doctrine_Export::dropSequenceSql() -
-
- dropSequenceSql drop existing sequence -
-
- Doctrine_Export::dropTable() -
-
- dropTable drop an existing table -
-
- Doctrine_Export::dropTableSql() -
-
- dropTableSql drop an existing table -
-
- Doctrine_Export::exportClasses() -
-
- exportClasses method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportClassesSql() -
-
- exportClassesSql method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSchema() -
-
- exportSchema method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSql() -
-
- exportSql returns the sql for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportTable() -
-
- exportTable exports given table into database based on column and option definitions -
-
- Doctrine_Export::getAdvancedForeignKeyOptions() -
-
- getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -
-
- Doctrine_Export::getCharsetFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCheckDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCollationFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDefaultFieldDeclaration() -
-
- getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getFieldDeclarationList() -
-
- Get declaration of a number of field in bulk -
-
- Doctrine_Export::getForeignKeyBaseDeclaration() -
-
- getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyDeclaration() -
-
- getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyReferentialAction() -
-
- getForeignKeyReferentialAction -
-
- Doctrine_Export::getIndexDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getIndexFieldDeclarationList() -
-
- getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getTemporaryTableQuery() -
-
- A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -
-
- Doctrine_Export::getUniqueFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
boolean  alterTable()  alter an existing table
string  createDatabaseSql()  create a new database
void  createSequence()  create sequence
string  dropDatabaseSql()  drop an existing database
boolean  dropIndexSql()  drop existing index
string  dropSequenceSql()  drop existing sequence
string  dropTableSql()  drop an existing table
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- alterTable  [line 160] -
-
- -
-
-
  - boolean alterTable( -string -$name, -$changes, boolean -$check  -) -
-

- -

alter an existing table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  -

associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

name

New name for the table.

add

Associative array with the names of fields to be added as indexes of the array. The value of each entry of the array should be set to another associative array with the properties of the fields to be added. The properties of the fields should be the same as defined by the MDB2 parser.

remove

Associative array with the names of fields to be removed as indexes of the array. Currently the values assigned to each entry are ignored. An empty array should be used for future compatibility.

rename

Associative array with the names of fields to be renamed as indexes of the array. The value of each entry of the array should be set to another associative array with the entry named name with the new field name and the entry named Declaration that is expected to contain the portion of the field declaration already in DBMS specific SQL code as it is used in the CREATE TABLE statement.

change

Associative array with the names of the fields to be changed as indexes of the array. Keep in mind that if it is intended to change either the name of a field and any other properties, the change array entries should have the new names of the fields as array indexes.

The value of each entry of the array should be set to another associative array with the properties of the fields to that are meant to be changed as array entries. These entries should be assigned to the new values of the respective properties. The properties of the fields should be the same as defined by the MDB2 parser.

Example array( 'name' => 'userlist', 'add' => array( 'quota' => array( 'type' => 'integer', 'unsigned' => 1 ) ), 'remove' => array( 'file_limit' => array(), 'time_limit' => array() ), 'change' => array( 'name' => array( 'length' => '20', 'definition' => array( 'type' => 'text', 'length' => 20, ), ) ), 'rename' => array( 'sex' => array( 'name' => 'gender', 'definition' => array( 'type' => 'text', 'length' => 1, 'default' => 'M', ), ) ) )

- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::alterTable()
-
alter an existing table (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createDatabaseSql  [line 42] -
-
- -
-
-
  - string createDatabaseSql( -string -$name  -) -
-

- -

create a new database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be created
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createDatabaseSql()
-
create a new database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createSequence  [line 258] -
-
- -
-
-
  - void createSequence( - -$sequenceName, [string -$start = 1], [ -$options = array()], string -$seqName  -) -
-

- -

create sequence -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
-    - $sequenceName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createSequence()
-
create sequence
-
- -
-
[ Top ]
-
- -
- -
- dropDatabaseSql  [line 53] -
-
- -
-
-
  - string dropDatabaseSql( -string -$name  -) -
-

- -

drop an existing database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropDatabaseSql()
-
drop an existing database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- dropIndexSql  [line 303] -
-
- -
-
-
  - boolean dropIndexSql( -string -$table, string -$name  -) -
-

- -

drop existing index -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of table that should be used in method
- string   - $name:  - name of the index to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropIndexSql()
-
dropIndexSql
-
- -
-
[ Top ]
-
- -
- -
- dropSequenceSql  [line 290] -
-
- -
-
-
  - string dropSequenceSql( -string -$seqName  -) -
-

- -

drop existing sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropSequenceSql()
-
dropSequenceSql drop existing sequence
-
- -
-
[ Top ]
-
- -
- -
- dropTableSql  [line 65] -
-
- -
-
-
  - string dropTableSql( -string -$name, object -$this->conns  -) -
-

- -

drop an existing table -

- - Parameters:
- - - - - - - -
- object   - $this->conns:  - database object that is extended by this class
- string   - $name:  - name of the table that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropTableSql()
-
dropTableSql drop an existing table
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Mssql.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Mssql.html deleted file mode 100644 index 37e793701..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Mssql.html +++ /dev/null @@ -1,1088 +0,0 @@ - - -
-

Class: Doctrine_Export_Mssql

-Source Location: /Doctrine/Export/Mssql.php

- -

Class Doctrine_Export_Mssql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Export_Mssql -

- -

- Located in /Doctrine/Export/Mssql.php [line 35] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Export
-      |
-      --Doctrine_Export_Mssql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1697 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::$valid_default_values -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::alterTable() -
-
- alter an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::alterTableSql() -
-
- generates the sql for altering an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::createConstraint() -
-
- create a constraint on a table -
-
- Doctrine_Export::createConstraintSql() -
-
- create a constraint on a table -
-
- Doctrine_Export::createDatabase() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createDatabaseSql() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createForeignKeySql() -
-
- createForeignKeySql -
-
- Doctrine_Export::createIndex() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createIndexSql() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createSequence() -
-
- create sequence -
-
- Doctrine_Export::createSequenceSql() -
-
- return RDBMS specific create sequence statement (this method is implemented by the drivers) -
-
- Doctrine_Export::createTable() -
-
- create a new table -
-
- Doctrine_Export::createTableSql() -
-
- create a new table -
-
- Doctrine_Export::dropConstraint() -
-
- drop existing constraint -
-
- Doctrine_Export::dropDatabase() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropDatabaseSql() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropIndex() -
-
- drop existing index -
-
- Doctrine_Export::dropIndexSql() -
-
- dropIndexSql -
-
- Doctrine_Export::dropSequence() -
-
- dropSequenceSql drop existing sequence (this method is implemented by the drivers) -
-
- Doctrine_Export::dropSequenceSql() -
-
- dropSequenceSql drop existing sequence -
-
- Doctrine_Export::dropTable() -
-
- dropTable drop an existing table -
-
- Doctrine_Export::dropTableSql() -
-
- dropTableSql drop an existing table -
-
- Doctrine_Export::exportClasses() -
-
- exportClasses method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportClassesSql() -
-
- exportClassesSql method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSchema() -
-
- exportSchema method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSql() -
-
- exportSql returns the sql for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportTable() -
-
- exportTable exports given table into database based on column and option definitions -
-
- Doctrine_Export::getAdvancedForeignKeyOptions() -
-
- getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -
-
- Doctrine_Export::getCharsetFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCheckDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCollationFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDefaultFieldDeclaration() -
-
- getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getFieldDeclarationList() -
-
- Get declaration of a number of field in bulk -
-
- Doctrine_Export::getForeignKeyBaseDeclaration() -
-
- getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyDeclaration() -
-
- getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyReferentialAction() -
-
- getForeignKeyReferentialAction -
-
- Doctrine_Export::getIndexDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getIndexFieldDeclarationList() -
-
- getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getTemporaryTableQuery() -
-
- A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -
-
- Doctrine_Export::getUniqueFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  alterTable()  alter an existing table
void  createDatabase()  create a new database
string  createSequence()  create sequence
void  dropDatabase()  drop an existing database
void  dropSequenceSql()  This function drops an existing sequence
string  getTemporaryTableQuery()  Override the parent method.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- alterTable  [line 164] -
-
- -
-
-
  - void alterTable( -string -$name, -$changes, boolean -$check  -) -
-

- -

alter an existing table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  -

associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

name

New name for the table.

add

Associative array with the names of fields to be added as indexes of the array. The value of each entry of the array should be set to another associative array with the properties of the fields to be added. The properties of the fields should be the same as defined by the Metabase parser.

remove

Associative array with the names of fields to be removed as indexes of the array. Currently the values assigned to each entry are ignored. An empty array should be used for future compatibility.

rename

Associative array with the names of fields to be renamed as indexes of the array. The value of each entry of the array should be set to another associative array with the entry named name with the new field name and the entry named Declaration that is expected to contain the portion of the field declaration already in DBMS specific SQL code as it is used in the CREATE TABLE statement.

change

Associative array with the names of the fields to be changed as indexes of the array. Keep in mind that if it is intended to change either the name of a field and any other properties, the change array entries should have the new names of the fields as array indexes.

The value of each entry of the array should be set to another associative array with the properties of the fields to that are meant to be changed as array entries. These entries should be assigned to the new values of the respective properties. The properties of the fields should be the same as defined by the Metabase parser.

Example array( 'name' => 'userlist', 'add' => array( 'quota' => array( 'type' => 'integer', 'unsigned' => 1 ) ), 'remove' => array( 'file_limit' => array(), 'time_limit' => array() ), 'change' => array( 'name' => array( 'length' => '20', 'definition' => array( 'type' => 'text', 'length' => 20, ), ) ), 'rename' => array( 'sex' => array( 'name' => 'gender', 'definition' => array( 'type' => 'text', 'length' => 1, 'default' => 'M', ), ) ) )

- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::alterTable()
-
alter an existing table (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createDatabase  [line 43] -
-
- -
-
-
  - void createDatabase( -string -$name  -) -
-

- -

create a new database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be created
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createDatabase()
-
create a new database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createSequence  [line 220] -
-
- -
-
-
  - string createSequence( -string -$seqName, [string -$start = 1], [ -$options = array()]  -) -
-

- -

create sequence -

- - Parameters:
- - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createSequence()
-
create sequence
-
- -
-
[ Top ]
-
- -
- -
- dropDatabase  [line 60] -
-
- -
-
-
  - void dropDatabase( -string -$name  -) -
-

- -

drop an existing database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropDatabase()
-
drop an existing database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- dropSequenceSql  [line 248] -
-
- -
-
-
  - void dropSequenceSql( -string -$seqName  -) -
-

- -

This function drops an existing sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropSequenceSql()
-
dropSequenceSql drop existing sequence
-
- -
-
[ Top ]
-
- -
- -
- getTemporaryTableQuery  [line 72] -
-
- -
-
-
  - string getTemporaryTableQuery( -) -
-

- -

Override the parent method. -

- -
- API Tags:
- - - - - - - -
Return:  The string required to be placed between "CREATE" and "TABLE" to generate a temporary table, if possible.
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getTemporaryTableQuery()
-
A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Mysql.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Mysql.html deleted file mode 100644 index 860c435fc..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Mysql.html +++ /dev/null @@ -1,1508 +0,0 @@ - - -
-

Class: Doctrine_Export_Mysql

-Source Location: /Doctrine/Export/Mysql.php

- -

Class Doctrine_Export_Mysql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Export_Mysql -

- -

- Located in /Doctrine/Export/Mysql.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Export
-      |
-      --Doctrine_Export_Mysql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2288 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::$valid_default_values -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::alterTable() -
-
- alter an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::alterTableSql() -
-
- generates the sql for altering an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::createConstraint() -
-
- create a constraint on a table -
-
- Doctrine_Export::createConstraintSql() -
-
- create a constraint on a table -
-
- Doctrine_Export::createDatabase() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createDatabaseSql() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createForeignKeySql() -
-
- createForeignKeySql -
-
- Doctrine_Export::createIndex() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createIndexSql() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createSequence() -
-
- create sequence -
-
- Doctrine_Export::createSequenceSql() -
-
- return RDBMS specific create sequence statement (this method is implemented by the drivers) -
-
- Doctrine_Export::createTable() -
-
- create a new table -
-
- Doctrine_Export::createTableSql() -
-
- create a new table -
-
- Doctrine_Export::dropConstraint() -
-
- drop existing constraint -
-
- Doctrine_Export::dropDatabase() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropDatabaseSql() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropIndex() -
-
- drop existing index -
-
- Doctrine_Export::dropIndexSql() -
-
- dropIndexSql -
-
- Doctrine_Export::dropSequence() -
-
- dropSequenceSql drop existing sequence (this method is implemented by the drivers) -
-
- Doctrine_Export::dropSequenceSql() -
-
- dropSequenceSql drop existing sequence -
-
- Doctrine_Export::dropTable() -
-
- dropTable drop an existing table -
-
- Doctrine_Export::dropTableSql() -
-
- dropTableSql drop an existing table -
-
- Doctrine_Export::exportClasses() -
-
- exportClasses method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportClassesSql() -
-
- exportClassesSql method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSchema() -
-
- exportSchema method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSql() -
-
- exportSql returns the sql for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportTable() -
-
- exportTable exports given table into database based on column and option definitions -
-
- Doctrine_Export::getAdvancedForeignKeyOptions() -
-
- getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -
-
- Doctrine_Export::getCharsetFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCheckDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCollationFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDefaultFieldDeclaration() -
-
- getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getFieldDeclarationList() -
-
- Get declaration of a number of field in bulk -
-
- Doctrine_Export::getForeignKeyBaseDeclaration() -
-
- getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyDeclaration() -
-
- getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyReferentialAction() -
-
- getForeignKeyReferentialAction -
-
- Doctrine_Export::getIndexDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getIndexFieldDeclarationList() -
-
- getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getTemporaryTableQuery() -
-
- A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -
-
- Doctrine_Export::getUniqueFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
boolean  alterTableSql()  alter an existing table
string  createDatabaseSql()  create a new database
void  createIndexSql()  Get the stucture of a field into an array
boolean  createSequence()  create sequence
void  createTableSql()  create a new table
string  dropDatabaseSql()  drop an existing database
void  dropIndexSql()  drop existing index
void  dropTableSql()  dropTable
string  getAdvancedForeignKeyOptions()  getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
string  getDefaultFieldDeclaration()  getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
string  getIndexDeclaration()  Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
string  getIndexFieldDeclarationList()  getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- alterTableSql  [line 270] -
-
- -
-
-
  - boolean alterTableSql( -string -$name, -$changes, boolean -$check  -) -
-

- -

alter an existing table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  -

associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

name

New name for the table.

add

Associative array with the names of fields to be added as indexes of the array. The value of each entry of the array should be set to another associative array with the properties of the fields to be added. The properties of the fields should be the same as defined by the Metabase parser.

remove

Associative array with the names of fields to be removed as indexes of the array. Currently the values assigned to each entry are ignored. An empty array should be used for future compatibility.

rename

Associative array with the names of fields to be renamed as indexes of the array. The value of each entry of the array should be set to another associative array with the entry named name with the new field name and the entry named Declaration that is expected to contain the portion of the field declaration already in DBMS specific SQL code as it is used in the CREATE TABLE statement.

change

Associative array with the names of the fields to be changed as indexes of the array. Keep in mind that if it is intended to change either the name of a field and any other properties, the change array entries should have the new names of the fields as array indexes.

The value of each entry of the array should be set to another associative array with the properties of the fields to that are meant to be changed as array entries. These entries should be assigned to the new values of the respective properties. The properties of the fields should be the same as defined by the Metabase parser.

Example array( 'name' => 'userlist', 'add' => array( 'quota' => array( 'type' => 'integer', 'unsigned' => 1 ) ), 'remove' => array( 'file_limit' => array(), 'time_limit' => array() ), 'change' => array( 'name' => array( 'length' => '20', 'definition' => array( 'type' => 'text', 'length' => 20, ), ) ), 'rename' => array( 'sex' => array( 'name' => 'gender', 'definition' => array( 'type' => 'text', 'length' => 1, 'default' => 'M', ), ) ) )

- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::alterTableSql()
-
generates the sql for altering an existing table (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createDatabaseSql  [line 42] -
-
- -
-
-
  - string createDatabaseSql( -string -$name  -) -
-

- -

create a new database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be created
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createDatabaseSql()
-
create a new database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createIndexSql  [line 468] -
-
- -
-
-
  - void createIndexSql( -string -$table, string -$name, -$definition  -) -
-

- -

Get the stucture of a field into an array -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the index is to be created
- string   - $name:  - name of the index to be created
- array   - $definition:  -

associative array that defines properties of the index to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the index fields as array indexes. Each entry of this array is set to another type of associative array that specifies properties of the index that are specific to each field.

Currently, only the sorting property is supported. It should be used to define the sorting direction of the index. It may be set to either ascending or descending.

Not all DBMS support index sorting direction configuration. The DBMS drivers of those that do not support it ignore this property. Use the function supports() to determine whether the DBMS driver can manage indexes.

Example array( 'fields' => array( 'user_name' => array( 'sorting' => 'ASC' 'length' => 10 ), 'last_login' => array() ) )

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Author:  Leoncx
Throws:  PDOException
- -
-
Redefinition of:
-
-
Doctrine_Export::createIndexSql()
-
Get the stucture of a field into an array
-
- -
-
[ Top ]
-
- -
- -
- createSequence  [line 374] -
-
- -
-
-
  - boolean createSequence( -string -$sequenceName, [string -$start = 1], [ -$options = array()]  -) -
-

- -

create sequence -

- - Parameters:
- - - - - - - - - - -
- string   - $sequenceName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'type' => 'innodb', );
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createSequence()
-
create sequence
-
- -
-
[ Top ]
-
- -
- -
- createTableSql  [line 90] -
-
- -
-
-
  - void createTableSql( -string -$name, -$fields, [ -$options = array()]  -) -
-

- -

create a new table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - Name of the database that should be created
- array   - $fields:  - Associative array that contains the definition of each field of the new table The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get[Type]Declaration() functions. array( 'id' => array( 'type' => 'integer', 'unsigned' => 1 'notnull' => 1 'default' => 0 ), 'name' => array( 'type' => 'text', 'length' => 12 ), 'password' => array( 'type' => 'text', 'length' => 12 ) );
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'type' => 'innodb', );
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createTableSql()
-
create a new table
-
- -
-
[ Top ]
-
- -
- -
- dropDatabaseSql  [line 52] -
-
- -
-
-
  - string dropDatabaseSql( -string -$name  -) -
-

- -

drop an existing database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropDatabaseSql()
-
drop an existing database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- dropIndexSql  [line 617] -
-
- -
-
-
  - void dropIndexSql( -string -$table, string -$name  -) -
-

- -

drop existing index -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of table that should be used in method
- string   - $name:  - name of the index to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropIndexSql()
-
dropIndexSql
-
- -
-
[ Top ]
-
- -
- -
- dropTableSql  [line 630] -
-
- -
-
-
  - void dropTableSql( -string -$table  -) -
-

- -

dropTable -

- - Parameters:
- - - - -
- string   - $table:  - name of table that should be dropped from the database
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException
- -
-
Redefinition of:
-
-
Doctrine_Export::dropTableSql()
-
dropTableSql drop an existing table
-
- -
-
[ Top ]
-
- -
- -
- getAdvancedForeignKeyOptions  [line 596] -
-
- -
-
-
  - string getAdvancedForeignKeyOptions( - -$definition  -) -
-

- -

getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -

- - Parameters:
- - - - -
- array   - $definition:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getAdvancedForeignKeyOptions()
-
getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
- -
-
[ Top ]
-
- -
- -
- getDefaultFieldDeclaration  [line 496] -
-
- -
-
-
  - string getDefaultFieldDeclaration( -array -$field  -) -
-

- -

getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $field:  - field definition array
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set a default value
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getDefaultFieldDeclaration()
-
getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
-
- -
-
[ Top ]
-
- -
- -
- getIndexDeclaration  [line 523] -
-
- -
-
-
  - string getIndexDeclaration( - -$name, -$definition, string -$charset  -) -
-

- -

Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - - - - - - - -
- string   - $charset:  - name of the index
- array   - $definition:  - index definition
-    - $name:  -
- -
- API Tags:
- - - - - - - -
Return:  DBMS specific SQL code portion needed to set an index
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getIndexDeclaration()
-
Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
- -
-
[ Top ]
-
- -
- -
- getIndexFieldDeclarationList  [line 558] -
-
- -
-
-
  - string getIndexFieldDeclarationList( - -$fields  -) -
-

- -

getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $fields:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getIndexFieldDeclarationList()
-
getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Oracle.html deleted file mode 100644 index 9ccd4e678..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Oracle.html +++ /dev/null @@ -1,1489 +0,0 @@ - - -
-

Class: Doctrine_Export_Oracle

-Source Location: /Doctrine/Export/Oracle.php

- -

Class Doctrine_Export_Oracle

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Export_Oracle -

- -

- Located in /Doctrine/Export/Oracle.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Export
-      |
-      --Doctrine_Export_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2288 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::$valid_default_values -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::alterTable() -
-
- alter an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::alterTableSql() -
-
- generates the sql for altering an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::createConstraint() -
-
- create a constraint on a table -
-
- Doctrine_Export::createConstraintSql() -
-
- create a constraint on a table -
-
- Doctrine_Export::createDatabase() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createDatabaseSql() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createForeignKeySql() -
-
- createForeignKeySql -
-
- Doctrine_Export::createIndex() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createIndexSql() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createSequence() -
-
- create sequence -
-
- Doctrine_Export::createSequenceSql() -
-
- return RDBMS specific create sequence statement (this method is implemented by the drivers) -
-
- Doctrine_Export::createTable() -
-
- create a new table -
-
- Doctrine_Export::createTableSql() -
-
- create a new table -
-
- Doctrine_Export::dropConstraint() -
-
- drop existing constraint -
-
- Doctrine_Export::dropDatabase() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropDatabaseSql() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropIndex() -
-
- drop existing index -
-
- Doctrine_Export::dropIndexSql() -
-
- dropIndexSql -
-
- Doctrine_Export::dropSequence() -
-
- dropSequenceSql drop existing sequence (this method is implemented by the drivers) -
-
- Doctrine_Export::dropSequenceSql() -
-
- dropSequenceSql drop existing sequence -
-
- Doctrine_Export::dropTable() -
-
- dropTable drop an existing table -
-
- Doctrine_Export::dropTableSql() -
-
- dropTableSql drop an existing table -
-
- Doctrine_Export::exportClasses() -
-
- exportClasses method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportClassesSql() -
-
- exportClassesSql method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSchema() -
-
- exportSchema method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSql() -
-
- exportSql returns the sql for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportTable() -
-
- exportTable exports given table into database based on column and option definitions -
-
- Doctrine_Export::getAdvancedForeignKeyOptions() -
-
- getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -
-
- Doctrine_Export::getCharsetFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCheckDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCollationFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDefaultFieldDeclaration() -
-
- getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getFieldDeclarationList() -
-
- Get declaration of a number of field in bulk -
-
- Doctrine_Export::getForeignKeyBaseDeclaration() -
-
- getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyDeclaration() -
-
- getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyReferentialAction() -
-
- getForeignKeyReferentialAction -
-
- Doctrine_Export::getIndexDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getIndexFieldDeclarationList() -
-
- getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getTemporaryTableQuery() -
-
- A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -
-
- Doctrine_Export::getUniqueFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  alterTable()  alter an existing table
mixed  createDatabase()  create a new database
string  createSequenceSql()  create sequence
void  createTable()  create a new table
void  createTableSql()  create a new table
void  dropAutoincrement()  drop an existing autoincrement sequence + trigger
mixed  dropDatabase()  drop an existing database
string  dropSequenceSql()  drop existing sequence
void  dropTable()  drop an existing table
string  getAdvancedForeignKeyOptions()  getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
string  getTemporaryTableQuery()  A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
mixed  _makeAutoincrement()  add an autoincrement sequence + trigger
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- alterTable  [line 401] -
-
- -
-
-
  - void alterTable( -string -$name, -$changes, boolean -$check  -) -
-

- -

alter an existing table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  -

associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

name

New name for the table.

add

Associative array with the names of fields to be added as indexes of the array. The value of each entry of the array should be set to another associative array with the properties of the fields to be added. The properties of the fields should be the same as defined by the MDB2 parser.

remove

Associative array with the names of fields to be removed as indexes of the array. Currently the values assigned to each entry are ignored. An empty array should be used for future compatibility.

rename

Associative array with the names of fields to be renamed as indexes of the array. The value of each entry of the array should be set to another associative array with the entry named name with the new field name and the entry named Declaration that is expected to contain the portion of the field declaration already in DBMS specific SQL code as it is used in the CREATE TABLE statement.

change

Associative array with the names of the fields to be changed as indexes of the array. Keep in mind that if it is intended to change either the name of a field and any other properties, the change array entries should have the new names of the fields as array indexes.

The value of each entry of the array should be set to another associative array with the properties of the fields to that are meant to be changed as array entries. These entries should be assigned to the new values of the respective properties. The properties of the fields should be the same as defined by the MDB2 parser.

Example array( 'name' => 'userlist', 'add' => array( 'quota' => array( 'type' => 'integer', 'unsigned' => 1 ) ), 'remove' => array( 'file_limit' => array(), 'time_limit' => array() ), 'change' => array( 'name' => array( 'length' => '20', 'definition' => array( 'type' => 'text', 'length' => 20, ), ) ), 'rename' => array( 'sex' => array( 'name' => 'gender', 'definition' => array( 'type' => 'text', 'length' => 1, 'default' => 'M', ), ) ) )

- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::alterTable()
-
alter an existing table (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createDatabase  [line 44] -
-
- -
-
-
  - mixed createDatabase( -string -$name, object -$db  -) -
-

- -

create a new database -

- - Parameters:
- - - - - - - -
- object   - $db:  - database object that is extended by this class
- string   - $name:  - name of the database that should be created
- -
- API Tags:
- - - - - - - -
Return:  MDB2_OK on success, a MDB2 error on failure
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createDatabase()
-
create a new database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createSequenceSql  [line 474] -
-
- -
-
-
  - string createSequenceSql( -string -$seqName, [string -$start = 1], [ -$options = array()]  -) -
-

- -

create sequence -

- - Parameters:
- - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createSequenceSql()
-
return RDBMS specific create sequence statement (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createTable  [line 244] -
-
- -
-
-
  - void createTable( -string -$name, -$fields, [ -$options = array()]  -) -
-

- -

create a new table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - Name of the database that should be created
- array   - $fields:  -

Associative array that contains the definition of each field of the new table The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get[Type]Declaration() functions.

Example array(

'id' => array( 'type' => 'integer', 'unsigned' => 1 'notnull' => 1 'default' => 0 ), 'name' => array( 'type' => 'text', 'length' => 12 ), 'password' => array( 'type' => 'text', 'length' => 12 ) );

- array   - $options:  - An associative array of table options:
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createTable()
-
create a new table
-
- -
-
[ Top ]
-
- -
- -
- createTableSql  [line 286] -
-
- -
-
-
  - void createTableSql( -string -$name, -$fields, [ -$options = array()]  -) -
-

- -

create a new table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - Name of the database that should be created
- array   - $fields:  -

Associative array that contains the definition of each field of the new table The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get[Type]Declaration() functions.

Example array(

'id' => array( 'type' => 'integer', 'unsigned' => 1 'notnull' => 1 'default' => 0 ), 'name' => array( 'type' => 'text', 'length' => 12 ), 'password' => array( 'type' => 'text', 'length' => 12 ) );

- array   - $options:  - An associative array of table options:
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createTableSql()
-
create a new table
-
- -
-
[ Top ]
-
- -
- -
- dropAutoincrement  [line 149] -
-
- -
-
-
  - void dropAutoincrement( -string -$table  -) -
-

- -

drop an existing autoincrement sequence + trigger -

- - Parameters:
- - - - -
- string   - $table:  - name of the table
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- dropDatabase  [line 75] -
-
- -
-
-
  - mixed dropDatabase( -string -$name, object -$this->conn  -) -
-

- -

drop an existing database -

- - Parameters:
- - - - - - - -
- object   - $this->conn:  - database object that is extended by this class
- string   - $name:  - name of the database that should be dropped
- -
- API Tags:
- - - - - - - -
Return:  MDB2_OK on success, a MDB2 error on failure
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropDatabase()
-
drop an existing database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- dropSequenceSql  [line 488] -
-
- -
-
-
  - string dropSequenceSql( -string -$seqName, object -$this->conn  -) -
-

- -

drop existing sequence -

- - Parameters:
- - - - - - - -
- object   - $this->conn:  - database object that is extended by this class
- string   - $seqName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropSequenceSql()
-
dropSequenceSql drop existing sequence
-
- -
-
[ Top ]
-
- -
- -
- dropTable  [line 305] -
-
- -
-
-
  - void dropTable( -string -$name  -) -
-

- -

drop an existing table -

- - Parameters:
- - - - -
- string   - $name:  - name of the table that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropTable()
-
dropTable drop an existing table
-
- -
-
[ Top ]
-
- -
- -
- getAdvancedForeignKeyOptions  [line 194] -
-
- -
-
-
  - string getAdvancedForeignKeyOptions( - -$definition  -) -
-

- -

getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -

- - Parameters:
- - - - -
- array   - $definition:  - foreign key definition
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getAdvancedForeignKeyOptions()
-
getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
- -
-
[ Top ]
-
- -
- -
- getTemporaryTableQuery  [line 181] -
-
- -
-
-
  - string getTemporaryTableQuery( -) -
-

- -

A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -

- -
- API Tags:
- - - - - - - -
Return:  The string required to be placed between "CREATE" and "TABLE" to generate a temporary table, if possible.
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getTemporaryTableQuery()
-
A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
- -
-
[ Top ]
-
- -
- -
- _makeAutoincrement  [line 94] -
-
- -
-
-
  - mixed _makeAutoincrement( -string -$name, string -$table, [string -$start = 1]  -) -
-

- -

add an autoincrement sequence + trigger -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the PK field
- string   - $table:  - name of the table
- string   - $start:  - start value for the sequence
- -
- API Tags:
- - - - - - - -
Return:  MDB2_OK on success, a MDB2 error on failure
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Pgsql.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Pgsql.html deleted file mode 100644 index b34287424..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Pgsql.html +++ /dev/null @@ -1,1262 +0,0 @@ - - -
-

Class: Doctrine_Export_Pgsql

-Source Location: /Doctrine/Export/Pgsql.php

- -

Class Doctrine_Export_Pgsql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Export_Pgsql -

- -

- Located in /Doctrine/Export/Pgsql.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Export
-      |
-      --Doctrine_Export_Pgsql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2291 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::$valid_default_values -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::alterTable() -
-
- alter an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::alterTableSql() -
-
- generates the sql for altering an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::createConstraint() -
-
- create a constraint on a table -
-
- Doctrine_Export::createConstraintSql() -
-
- create a constraint on a table -
-
- Doctrine_Export::createDatabase() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createDatabaseSql() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createForeignKeySql() -
-
- createForeignKeySql -
-
- Doctrine_Export::createIndex() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createIndexSql() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createSequence() -
-
- create sequence -
-
- Doctrine_Export::createSequenceSql() -
-
- return RDBMS specific create sequence statement (this method is implemented by the drivers) -
-
- Doctrine_Export::createTable() -
-
- create a new table -
-
- Doctrine_Export::createTableSql() -
-
- create a new table -
-
- Doctrine_Export::dropConstraint() -
-
- drop existing constraint -
-
- Doctrine_Export::dropDatabase() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropDatabaseSql() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropIndex() -
-
- drop existing index -
-
- Doctrine_Export::dropIndexSql() -
-
- dropIndexSql -
-
- Doctrine_Export::dropSequence() -
-
- dropSequenceSql drop existing sequence (this method is implemented by the drivers) -
-
- Doctrine_Export::dropSequenceSql() -
-
- dropSequenceSql drop existing sequence -
-
- Doctrine_Export::dropTable() -
-
- dropTable drop an existing table -
-
- Doctrine_Export::dropTableSql() -
-
- dropTableSql drop an existing table -
-
- Doctrine_Export::exportClasses() -
-
- exportClasses method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportClassesSql() -
-
- exportClassesSql method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSchema() -
-
- exportSchema method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSql() -
-
- exportSql returns the sql for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportTable() -
-
- exportTable exports given table into database based on column and option definitions -
-
- Doctrine_Export::getAdvancedForeignKeyOptions() -
-
- getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -
-
- Doctrine_Export::getCharsetFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCheckDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCollationFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDefaultFieldDeclaration() -
-
- getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getFieldDeclarationList() -
-
- Get declaration of a number of field in bulk -
-
- Doctrine_Export::getForeignKeyBaseDeclaration() -
-
- getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyDeclaration() -
-
- getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyReferentialAction() -
-
- getForeignKeyReferentialAction -
-
- Doctrine_Export::getIndexDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getIndexFieldDeclarationList() -
-
- getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getTemporaryTableQuery() -
-
- A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -
-
- Doctrine_Export::getUniqueFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
boolean  alterTable()  alter an existing table
void  createDatabaseSql()  create a new database
string  createForeignKeySql()  createForeignKeySql
string  createSequenceSql()  return RDBMS specific create sequence statement
unknown  createTableSql()  Creates a table.
void  dropDatabaseSql()  drop an existing database
void  dropSequenceSql()  drop existing sequence
string  getAdvancedForeignKeyOptions()  getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- alterTable  [line 185] -
-
- -
-
-
  - boolean alterTable( -string -$name, -$changes, boolean -$check  -) -
-

- -

alter an existing table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - name of the table that is intended to be changed.
- array   - $changes:  -

associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

name

New name for the table.

add

Associative array with the names of fields to be added as indexes of the array. The value of each entry of the array should be set to another associative array with the properties of the fields to be added. The properties of the fields should be the same as defined by the Metabase parser.

remove

Associative array with the names of fields to be removed as indexes of the array. Currently the values assigned to each entry are ignored. An empty array should be used for future compatibility.

rename

Associative array with the names of fields to be renamed as indexes of the array. The value of each entry of the array should be set to another associative array with the entry named name with the new field name and the entry named Declaration that is expected to contain the portion of the field declaration already in DBMS specific SQL code as it is used in the CREATE TABLE statement.

change

Associative array with the names of the fields to be changed as indexes of the array. Keep in mind that if it is intended to change either the name of a field and any other properties, the change array entries should have the new names of the fields as array indexes.

The value of each entry of the array should be set to another associative array with the properties of the fields to that are meant to be changed as array entries. These entries should be assigned to the new values of the respective properties. The properties of the fields should be the same as defined by the Metabase parser.

Example array( 'name' => 'userlist', 'add' => array( 'quota' => array( 'type' => 'integer', 'unsigned' => 1 ) ), 'remove' => array( 'file_limit' => array(), 'time_limit' => array() ), 'change' => array( 'name' => array( 'length' => '20', 'definition' => array( 'type' => 'text', 'length' => 20, ), ) ), 'rename' => array( 'sex' => array( 'name' => 'gender', 'definition' => array( 'type' => 'text', 'length' => 1, 'default' => 'M', ), ) ) )

- boolean   - $check:  - indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception
- -
-
Redefinition of:
-
-
Doctrine_Export::alterTable()
-
alter an existing table (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createDatabaseSql  [line 43] -
-
- -
-
-
  - void createDatabaseSql( -string -$name  -) -
-

- -

create a new database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be created
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException
- -
-
Redefinition of:
-
-
Doctrine_Export::createDatabaseSql()
-
create a new database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createForeignKeySql  [line 340] -
-
- -
-
-
  - string createForeignKeySql( -string -$table, -$definition  -) -
-

- -

createForeignKeySql -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table on which the foreign key is to be created
- array   - $definition:  - associative array that defines properties of the foreign key to be created.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createForeignKeySql()
-
createForeignKeySql
-
- -
-
[ Top ]
-
- -
- -
- createSequenceSql  [line 269] -
-
- -
-
-
  - string createSequenceSql( - -$sequenceName, [string -$start = 1], [ -$options = array()], string -$seqName  -) -
-

- -

return RDBMS specific create sequence statement -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
-    - $sequenceName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if something fails at database level
- -
-
Redefinition of:
-
-
Doctrine_Export::createSequenceSql()
-
return RDBMS specific create sequence statement (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- createTableSql  [line 294] -
-
- -
-
-
  - unknown createTableSql( -unknown_type -$name, -$fields, [ -$options = array()]  -) -
-

- -

Creates a table. -

- - Parameters:
- - - - - - - - - - -
- unknown_type   - $name:  -
- array   - $fields:  -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createTableSql()
-
create a new table
-
- -
-
[ Top ]
-
- -
- -
- dropDatabaseSql  [line 56] -
-
- -
-
-
  - void dropDatabaseSql( -string -$name  -) -
-

- -

drop an existing database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException
- -
-
Redefinition of:
-
-
Doctrine_Export::dropDatabaseSql()
-
drop an existing database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- dropSequenceSql  [line 280] -
-
- -
-
-
  - void dropSequenceSql( -string -$sequenceName  -) -
-

- -

drop existing sequence -

- - Parameters:
- - - - -
- string   - $sequenceName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropSequenceSql()
-
dropSequenceSql drop existing sequence
-
- -
-
[ Top ]
-
- -
- -
- getAdvancedForeignKeyOptions  [line 71] -
-
- -
-
-
  - string getAdvancedForeignKeyOptions( - -$definition  -) -
-

- -

getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -

- - Parameters:
- - - - -
- array   - $definition:  - foreign key definition
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getAdvancedForeignKeyOptions()
-
getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Reporter.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Reporter.html deleted file mode 100644 index 99370534c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Reporter.html +++ /dev/null @@ -1,578 +0,0 @@ - - -
-

Class: Doctrine_Export_Reporter

-Source Location: /Doctrine/Export/Reporter.php

- -

Class Doctrine_Export_Reporter

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • IteratorAggregate (internal interface)
-

-

Doctrine_Export_Reporter -

- -

- Located in /Doctrine/Export/Reporter.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $messages  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
void  add()  
void  getIterator()  
void  pop()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $messages - = array() [line 34] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- add  [line 36] -
-
- -
-
-
  - void add( - -$code, -$message  -) -
-

- - - Parameters:
- - - - - - - -
-    - $code:  -
-    - $message:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 42] -
-
- -
-
-
  - void getIterator( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- pop  [line 39] -
-
- -
-
-
  - void pop( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Schema.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Schema.html deleted file mode 100644 index 393ea640f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Schema.html +++ /dev/null @@ -1,651 +0,0 @@ - - -
-

Class: Doctrine_Export_Schema

-Source Location: /Doctrine/Export/Schema.php

- -

Class Doctrine_Export_Schema

- - -
-
Class Overview
- -
- - - - - - -
- -

class Doctrine_Export_Schema -

-

Different methods to import a XML schema. The logic behind using two different methods is simple. Some people will like the idea of producing Doctrine_Record objects directly, which is totally fine. But in fast and growing application, table definitions tend to be a little bit more volatile. importArr() can be used to output a table definition in a PHP file. This file can then be stored independantly from the object itself.

-

- Located in /Doctrine/Export/Schema.php [line 39] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - -
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Export_Schema_Xml - class Doctrine_Export_Schema_Xml -
Doctrine_Export_Schema_Yml - class Doctrine_Export_Schema_Yml -
-
[ Top ]
-
-
- - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  build()  build
void  buildSchema()  buildSchema
void  dump()  dump
void  exportSchema()  exportSchema
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- build  [line 49] -
-
- -
-
-
  - void build( -string -$array  -) -
-

- -

build -

-

Build the schema string to be dumped to file

- Parameters:
- - - - -
- string   - $array:  -
- -
- API Tags:
- - - - -
Abstract:  
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- buildSchema  [line 70] -
-
- -
-
-
  - void buildSchema( -string -$directory  -) -
-

- -

buildSchema -

-

Build schema array that can be dumped to file

- Parameters:
- - - - -
- string   - $directory:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- dump  [line 60] -
-
- -
-
-
  - void dump( -string -$array, string -$schema  -) -
-

- -

dump -

-

Dump the array to the schema file

- Parameters:
- - - - - - - -
- string   - $array:  -
- string   - $schema:  -
- -
- API Tags:
- - - - -
Abstract:  
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- exportSchema  [line 83] -
-
- -
-
-
  - void exportSchema( -string -$schema, string -$directory  -) -
-

- -

exportSchema -

- - Parameters:
- - - - - - - -
- string   - $schema:  -
- string   - $directory:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Xml.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Xml.html deleted file mode 100644 index 1a60f2b02..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Xml.html +++ /dev/null @@ -1,551 +0,0 @@ - - -
-

Class: Doctrine_Export_Schema_Xml

-Source Location: /Doctrine/Export/Schema/Xml.php

- -

Class Doctrine_Export_Schema_Xml

- - -
-
Class Overview
- -
- - - - - - -
- -

class Doctrine_Export_Schema_Xml -

- -

- Located in /Doctrine/Export/Schema/Xml.php [line 32] -

- - -
Doctrine_Export_Schema
-   |
-   --Doctrine_Export_Schema_Xml
- - - Author(s): - - - -Information Tags:
- - - - -
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From Doctrine_Export_Schema

-
-
-
- Doctrine_Export_Schema::build() -
-
- build -
-
- Doctrine_Export_Schema::buildSchema() -
-
- buildSchema -
-
- Doctrine_Export_Schema::dump() -
-
- dump -
-
- Doctrine_Export_Schema::exportSchema() -
-
- exportSchema -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  build()  build
void  dump()  dump
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- build  [line 42] -
-
- -
-
-
  - void build( -string -$array  -) -
-

- -

build -

-

Build the schema xml string to be dumped to file

- Parameters:
- - - - -
- string   - $array:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export_Schema::build()
-
build
-
- -
-
[ Top ]
-
- -
- -
- dump  [line 73] -
-
- -
-
-
  - void dump( -string -$array, string -$schema  -) -
-

- -

dump -

-

Dump the array to the schema file

- Parameters:
- - - - - - - -
- string   - $array:  -
- string   - $schema:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export_Schema::dump()
-
dump
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Yml.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Yml.html deleted file mode 100644 index 5a87aff25..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Schema_Yml.html +++ /dev/null @@ -1,551 +0,0 @@ - - -
-

Class: Doctrine_Export_Schema_Yml

-Source Location: /Doctrine/Export/Schema/Yml.php

- -

Class Doctrine_Export_Schema_Yml

- - -
-
Class Overview
- -
- - - - - - -
- -

class Doctrine_Export_Schema_Yml -

- -

- Located in /Doctrine/Export/Schema/Yml.php [line 32] -

- - -
Doctrine_Export_Schema
-   |
-   --Doctrine_Export_Schema_Yml
- - - Author(s): - - - -Information Tags:
- - - - -
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From Doctrine_Export_Schema

-
-
-
- Doctrine_Export_Schema::build() -
-
- build -
-
- Doctrine_Export_Schema::buildSchema() -
-
- buildSchema -
-
- Doctrine_Export_Schema::dump() -
-
- dump -
-
- Doctrine_Export_Schema::exportSchema() -
-
- exportSchema -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  build()  build
void  dump()  dump
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- build  [line 42] -
-
- -
-
-
  - void build( -string -$array  -) -
-

- -

build -

-

Build the schema yml string to be dumped to file

- Parameters:
- - - - -
- string   - $array:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export_Schema::build()
-
build
-
- -
-
[ Top ]
-
- -
- -
- dump  [line 56] -
-
- -
-
-
  - void dump( -string -$arr, string -$schema  -) -
-

- -

dump -

-

Dump the array to the schema file

- Parameters:
- - - - - - - -
- string   - $arr:  -
- string   - $schema:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export_Schema::dump()
-
dump
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Export_Sqlite.html b/api_documentation/trunk/Doctrine/Doctrine_Export_Sqlite.html deleted file mode 100644 index 4ae4d83b5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Export_Sqlite.html +++ /dev/null @@ -1,1182 +0,0 @@ - - -
-

Class: Doctrine_Export_Sqlite

-Source Location: /Doctrine/Export/Sqlite.php

- -

Class Doctrine_Export_Sqlite

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Export_Sqlite -

- -

- Located in /Doctrine/Export/Sqlite.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Export
-      |
-      --Doctrine_Export_Sqlite
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2288 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::$valid_default_values -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Export

-
-
-
- Doctrine_Export::alterTable() -
-
- alter an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::alterTableSql() -
-
- generates the sql for altering an existing table (this method is implemented by the drivers) -
-
- Doctrine_Export::createConstraint() -
-
- create a constraint on a table -
-
- Doctrine_Export::createConstraintSql() -
-
- create a constraint on a table -
-
- Doctrine_Export::createDatabase() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createDatabaseSql() -
-
- create a new database (this method is implemented by the drivers) -
-
- Doctrine_Export::createForeignKeySql() -
-
- createForeignKeySql -
-
- Doctrine_Export::createIndex() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createIndexSql() -
-
- Get the stucture of a field into an array -
-
- Doctrine_Export::createSequence() -
-
- create sequence -
-
- Doctrine_Export::createSequenceSql() -
-
- return RDBMS specific create sequence statement (this method is implemented by the drivers) -
-
- Doctrine_Export::createTable() -
-
- create a new table -
-
- Doctrine_Export::createTableSql() -
-
- create a new table -
-
- Doctrine_Export::dropConstraint() -
-
- drop existing constraint -
-
- Doctrine_Export::dropDatabase() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropDatabaseSql() -
-
- drop an existing database (this method is implemented by the drivers) -
-
- Doctrine_Export::dropIndex() -
-
- drop existing index -
-
- Doctrine_Export::dropIndexSql() -
-
- dropIndexSql -
-
- Doctrine_Export::dropSequence() -
-
- dropSequenceSql drop existing sequence (this method is implemented by the drivers) -
-
- Doctrine_Export::dropSequenceSql() -
-
- dropSequenceSql drop existing sequence -
-
- Doctrine_Export::dropTable() -
-
- dropTable drop an existing table -
-
- Doctrine_Export::dropTableSql() -
-
- dropTableSql drop an existing table -
-
- Doctrine_Export::exportClasses() -
-
- exportClasses method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportClassesSql() -
-
- exportClassesSql method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSchema() -
-
- exportSchema method for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportSql() -
-
- exportSql returns the sql for exporting Doctrine_Record classes to a schema -
-
- Doctrine_Export::exportTable() -
-
- exportTable exports given table into database based on column and option definitions -
-
- Doctrine_Export::getAdvancedForeignKeyOptions() -
-
- getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -
-
- Doctrine_Export::getCharsetFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCheckDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getCollationFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getDefaultFieldDeclaration() -
-
- getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getFieldDeclarationList() -
-
- Get declaration of a number of field in bulk -
-
- Doctrine_Export::getForeignKeyBaseDeclaration() -
-
- getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyDeclaration() -
-
- getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getForeignKeyReferentialAction() -
-
- getForeignKeyReferentialAction -
-
- Doctrine_Export::getIndexDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getIndexFieldDeclarationList() -
-
- getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -
-
- Doctrine_Export::getTemporaryTableQuery() -
-
- A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table. -
-
- Doctrine_Export::getUniqueFieldDeclaration() -
-
- Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE. -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  createIndexSql()  Get the stucture of a field into an array
boolean  createSequence()  create sequence
void  createTableSql()  create a new table
void  dropDatabase()  drop an existing database
string  dropSequenceSql()  drop existing sequence
string  getAdvancedForeignKeyOptions()  getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
string  getIndexFieldDeclarationList()  getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- createIndexSql  [line 88] -
-
- -
-
-
  - void createIndexSql( -string -$table, string -$name, -$definition  -) -
-

- -

Get the stucture of a field into an array -

- - Parameters:
- - - - - - - - - - -
- string   - $table:  - name of the table on which the index is to be created
- string   - $name:  - name of the index to be created
- array   - $definition:  -

associative array that defines properties of the index to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the index fields as array indexes. Each entry of this array is set to another type of associative array that specifies properties of the index that are specific to each field.

Currently, only the sorting property is supported. It should be used to define the sorting direction of the index. It may be set to either ascending or descending.

Not all DBMS support index sorting direction configuration. The DBMS drivers of those that do not support it ignore this property. Use the function support() to determine whether the DBMS driver can manage indexes. Example array( 'fields' => array( 'user_name' => array( 'sorting' => 'ascending' ), 'last_login' => array() ) )

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  PDOException
- -
-
Redefinition of:
-
-
Doctrine_Export::createIndexSql()
-
Get the stucture of a field into an array
-
- -
-
[ Top ]
-
- -
- -
- createSequence  [line 290] -
-
- -
-
-
  - boolean createSequence( -string -$seqName, [string -$start = 1], [ -$options = array()]  -) -
-

- -

create sequence -

- - Parameters:
- - - - - - - - - - -
- string   - $seqName:  - name of the sequence to be created
- string   - $start:  - start value of the sequence; default is 1
- array   - $options:  - An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', );
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createSequence()
-
create sequence
-
- -
-
[ Top ]
-
- -
- -
- createTableSql  [line 158] -
-
- -
-
-
  - void createTableSql( -string -$name, -$fields, [ -$options = array()]  -) -
-

- -

create a new table -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  - Name of the database that should be created
- array   - $fields:  - Associative array that contains the definition of each field of the new table The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get[Type]Declaration() functions. array( 'id' => array( 'type' => 'integer', 'unsigned' => 1 'notnull' => 1 'default' => 0 ), 'name' => array( 'type' => 'text', 'length' => 12 ), 'password' => array( 'type' => 'text', 'length' => 12 ) );
- array   - $options:  - An associative array of table options:
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::createTableSql()
-
create a new table
-
- -
-
[ Top ]
-
- -
- -
- dropDatabase  [line 44] -
-
- -
-
-
  - void dropDatabase( -string -$name  -) -
-

- -

drop an existing database -

- - Parameters:
- - - - -
- string   - $name:  - name of the database that should be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Export_Exception if something failed during the removal of the database file
Throws:  Doctrine_Export_Exception if the database file does not exist
- -
-
Redefinition of:
-
-
Doctrine_Export::dropDatabase()
-
drop an existing database (this method is implemented by the drivers)
-
- -
-
[ Top ]
-
- -
- -
- dropSequenceSql  [line 322] -
-
- -
-
-
  - string dropSequenceSql( -string -$sequenceName  -) -
-

- -

drop existing sequence -

- - Parameters:
- - - - -
- string   - $sequenceName:  - name of the sequence to be dropped
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::dropSequenceSql()
-
dropSequenceSql drop existing sequence
-
- -
-
[ Top ]
-
- -
- -
- getAdvancedForeignKeyOptions  [line 253] -
-
- -
-
-
  - string getAdvancedForeignKeyOptions( - -$definition  -) -
-

- -

getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ... -

- - Parameters:
- - - - -
- array   - $definition:  - foreign key definition
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getAdvancedForeignKeyOptions()
-
getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
- -
-
[ Top ]
-
- -
- -
- getIndexFieldDeclarationList  [line 104] -
-
- -
-
-
  - string getIndexFieldDeclarationList( - -$fields  -) -
-

- -

getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE. -

- - Parameters:
- - - - -
- array   - $fields:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Export::getIndexFieldDeclarationList()
-
getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression.html b/api_documentation/trunk/Doctrine/Doctrine_Expression.html deleted file mode 100644 index dbd44158d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression.html +++ /dev/null @@ -1,812 +0,0 @@ - - -
-

Class: Doctrine_Expression

-Source Location: /Doctrine/Expression.php

- -

Class Doctrine_Expression

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Expression -

- -

- Located in /Doctrine/Expression.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 2283 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Expression_Informix - Doctrine_Expression_Informix -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $_conn  
mixed  $_expression  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Expression  __construct()  
void  getConnection()  
void  getSql()  
void  parseClause()  
void  parseExpression()  
void  setExpression()  
void  __toString()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_conn - [line 37] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_expression - [line 35] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 39] -
-
- -
-
-
  - Doctrine_Expression __construct( - -$expr, [ -$conn = null]  -) -
-

- - - Parameters:
- - - - - - - -
-    - $expr:  -
-    - $conn:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnection  [line 48] -
-
- -
-
-
  - void getConnection( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSql  [line 92] -
-
- -
-
-
  - void getSql( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseClause  [line 81] -
-
- -
-
-
  - void parseClause( - -$clause  -) -
-

- - - Parameters:
- - - - -
-    - $clause:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseExpression  [line 62] -
-
- -
-
-
  - void parseExpression( - -$expr  -) -
-

- - - Parameters:
- - - - -
-    - $expr:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setExpression  [line 57] -
-
- -
-
-
  - void setExpression( - -$clause  -) -
-

- - - Parameters:
- - - - -
-    - $clause:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 98] -
-
- -
-
-
  - void __toString( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Driver.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Driver.html deleted file mode 100644 index 8973457b7..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Driver.html +++ /dev/null @@ -1,2970 +0,0 @@ - - -
-

Class: Doctrine_Expression_Driver

-Source Location: /Doctrine/Expression/Driver.php

- -

Class Doctrine_Expression_Driver

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Expression_Driver -

- -

- Located in /Doctrine/Expression/Driver.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Expression_Firebird - Doctrine_Expression_Firebird -
Doctrine_Expression_Mock - Doctrine_Expression_Mock Mock driver that is used for testing purposes -
Doctrine_Expression_Mssql - Doctrine_Expression_Mssql -
Doctrine_Expression_Mysql - Doctrine_Expression_Mysql -
Doctrine_Expression_Oracle - Doctrine_Expression_Sqlite -
Doctrine_Expression_Pgsql - Doctrine_Expression_Pgsql -
Doctrine_Expression_Sqlite - Doctrine_Expression_Sqlite -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  acos()  returns arcus cosine SQL string
string  add()  Returns the SQL to add values or expressions together.
string  avg()  Returns the average value of a column
string  basicMath()  Returns the SQL to perform the same mathematical operation over an array of values or expressions.
string  between()  Returns SQL that checks if an expression evaluates to a value between two values.
void  concat()  Returns a series of strings concatinated
string  count()  Returns the number of rows (without a NULL value) of a column
string  div()  Returns the SQL to divide values or expressions by eachother.
string  eq()  Returns the SQL to check if two values are equal.
void  getIdentifier()  
void  getIdentifiers()  
string  gt()  Returns the SQL to check if one value is greater than another value.
string  gte()  Returns the SQL to check if one value is greater than or equal to another value.
string  guid()  Returns global unique identifier
string  in()  Returns the SQL to check if a value is one in a set of given values..
string  isNotNull()  Returns SQL that checks if a expression is not null.
string  isNull()  Returns SQL that checks if a expression is null.
string  length()  Returns the length of a text field.
integer  locate()  locate returns the position of the first occurrence of substring $substr in string $str
string  lower()  lower Returns the string $str with all characters changed to lowercase according to the current character set mapping.
string  lt()  Returns the SQL to check if one value is less than another value.
string  lte()  Returns the SQL to check if one value is less than or equal to another value.
string  ltrim()  ltrim returns the string $str with leading space characters removed
string  max()  Returns the highest value of a column
string  md5()  Returns the md5 sum of a field.
string  min()  Returns the lowest value of a column
string  mod()  Returns the remainder of the division operation $expression1 / $expression2.
string  mul()  Returns the SQL to multiply values or expressions by eachother.
string  neq()  Returns the SQL to check if two values are unequal.
string  not()  Returns the SQL for a logical not.
string  now()  Returns the current system date.
string  regexp()  regexp returns the regular expression operator
string  round()  Rounds a numeric field to the number of decimals specified.
string  rtrim()  rtrim returns the string $str with proceeding space characters removed
string  soundex()  soundex Returns a string to call a function to compute the soundex encoding of a string
string  sub()  Returns the SQL to subtract values or expressions from eachother.
string  substring()  return string to call a function to get a substring inside an SQL statement
string  sum()  Returns the total sum of a column
string  trim()  trim returns the string $str with leading and proceeding space characters removed
string  upper()  upper Returns the string $str with all characters changed to uppercase according to the current character set mapping.
void  __call()  __call
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- acos  [line 695] -
-
- -
-
-
  - string acos( - -$value  -) -
-

- -

returns arcus cosine SQL string -

- - Parameters:
- - - - -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- add  [line 365] -
-
- -
-
-
  - string add( - -$args  -) -
-

- -

Returns the SQL to add values or expressions together. -

-

add() accepts an arbitrary number of parameters. Each parameter must contain a value or an expression or an array with values or expressions.

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $e $q->expr;
  4. -
  5.  
  6. -
  7.  $q->select('u.*')
  8. -
  9.    ->from('User u')
  10. -
  11.    ->where($e->eq($e->add('id'2)12));
  12. -

- Parameters:
- - - - -
- string|array(string)   - $args:  -
- -
- API Tags:
- - - - - - - -
Return:  an expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- avg  [line 59] -
-
- -
-
-
  - string avg( -string -$column  -) -
-

- -

Returns the average value of a column -

- - Parameters:
- - - - -
- string   - $column:  - the column to use
- -
- API Tags:
- - - - - - - -
Return:  generated sql including an AVG aggregate function
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- basicMath  [line 333] -
-
- -
-
-
  - string basicMath( -string -$type, -$args  -) -
-

- -

Returns the SQL to perform the same mathematical operation over an array of values or expressions. -

-

basicMath() accepts an arbitrary number of parameters. Each parameter must contain a value or an expression or an array with values or expressions.

- Parameters:
- - - - - - - -
- string   - $type:  - the type of operation, can be '+', '-', '*' or '/'.
- string|array(string)   - $args:  -
- -
- API Tags:
- - - - - - - -
Return:  an expression
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- between  [line 674] -
-
- -
-
-
  - string between( -string -$expression, string -$value1, string -$value2  -) -
-

- -

Returns SQL that checks if an expression evaluates to a value between two values. -

-

The parameter $expression is checked if it is between $value1 and $value2.

Note: There is a slight difference in the way BETWEEN works on some databases. http://www.w3schools.com/sql/sql_between.asp. If you want complete database independence you should avoid using between().

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->between('id'15));
  8. -

- Parameters:
- - - - - - - - - - -
- string   - $expression:  - the value to compare to
- string   - $value1:  - the lower value to compare with
- string   - $value2:  - the higher value to compare with
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- concat  [line 297] -
-
- -
-
-
  - void concat( -string|array(string) -0  -) -
-

- -

Returns a series of strings concatinated -

-

concat() accepts an arbitrary number of parameters. Each parameter must contain an expression or an array with expressions.

- Parameters:
- - - - -
- string|array(string)   - 0:  - strings that will be concatinated.
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- count  [line 74] -
-
- -
-
-
  - string count( -string|integer -$column  -) -
-

- -

Returns the number of rows (without a NULL value) of a column -

-

If a '*' is used instead of a column the number of selected rows is returned.

- Parameters:
- - - - -
- string|integer   - $column:  - the column to use
- -
- API Tags:
- - - - - - - -
Return:  generated sql including a COUNT aggregate function
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- div  [line 440] -
-
- -
-
-
  - string div( - -$args  -) -
-

- -

Returns the SQL to divide values or expressions by eachother. -

-

divide() accepts an arbitrary number of parameters. Each parameter must contain a value or an expression or an array with values or expressions.

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $e $q->expr;
  4. -
  5.  
  6. -
  7.  $q->select('u.*')
  8. -
  9.    ->from('User u')
  10. -
  11.    ->where($e->eq($e->div('id'2)12));
  12. -

- Parameters:
- - - - -
- string|array(string)   - $args:  -
- -
- API Tags:
- - - - - - - -
Return:  an expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- eq  [line 460] -
-
- -
-
-
  - string eq( -string -$value1, string -$value2  -) -
-

- -

Returns the SQL to check if two values are equal. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->eq('id'1));
  8. -

- Parameters:
- - - - - - - -
- string   - $value1:  - logical expression to compare
- string   - $value2:  - logical expression to compare with
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIdentifier  [line 35] -
-
- -
-
-
  - void getIdentifier( - -$column  -) -
-

- - - Parameters:
- - - - -
-    - $column:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIdentifiers  [line 39] -
-
- -
-
-
  - void getIdentifiers( - -$columns  -) -
-

- - - Parameters:
- - - - -
-    - $columns:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- gt  [line 504] -
-
- -
-
-
  - string gt( -string -$value1, string -$value2  -) -
-

- -

Returns the SQL to check if one value is greater than another value. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->gt('id'1));
  8. -

- Parameters:
- - - - - - - -
- string   - $value1:  - logical expression to compare
- string   - $value2:  - logical expression to compare with
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- gte  [line 527] -
-
- -
-
-
  - string gte( -string -$value1, string -$value2  -) -
-

- -

Returns the SQL to check if one value is greater than or equal to another value. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->gte('id'1));
  8. -

- Parameters:
- - - - - - - -
- string   - $value1:  - logical expression to compare
- string   - $value2:  - logical expression to compare with
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- guid  [line 686] -
-
- -
-
-
  - string guid( -) -
-

- -

Returns global unique identifier -

- -
- API Tags:
- - - - - - - -
Return:  to get global unique identifier
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- in  [line 600] -
-
- -
-
-
  - string in( -string -$column, string|array(string) -$values  -) -
-

- -

Returns the SQL to check if a value is one in a set of given values.. -

-

in() accepts an arbitrary number of parameters. The first parameter must always specify the value that should be matched against. Successive must contain a logical expression or an array with logical expressions. These expressions will be matched against the first parameter.

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->in'id'array(1,2,3)));
  8. -

- Parameters:
- - - - - - - -
- string   - $column:  - the value that should be matched against
- string|array(string)   - $values:  - values that will be matched against $column
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isNotNull  [line 646] -
-
- -
-
-
  - string isNotNull( -string -$expression  -) -
-

- -

Returns SQL that checks if a expression is not null. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->isNotNull('id'));
  8. -

- Parameters:
- - - - -
- string   - $expression:  - the expression that should be compared to null
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isNull  [line 627] -
-
- -
-
-
  - string isNull( -string -$expression  -) -
-

- -

Returns SQL that checks if a expression is null. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->isNull('id'));
  8. -

- Parameters:
- - - - -
- string   - $expression:  - the expression that should be compared to null
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- length  [line 138] -
-
- -
-
-
  - string length( - -$column, string -$expression1, string -$expression2  -) -
-

- -

Returns the length of a text field. -

- - Parameters:
- - - - - - - - - - -
- string   - $expression1:  -
- string   - $expression2:  -
-    - $column:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- locate  [line 240] -
-
- -
-
-
  - integer locate( -string -$str, string -$substr  -) -
-

- -

locate returns the position of the first occurrence of substring $substr in string $str -

- - Parameters:
- - - - - - - -
- string   - $substr:  - literal string to find
- string   - $str:  - literal string
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lower  [line 228] -
-
- -
-
-
  - string lower( -string -$str  -) -
-

- -

lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -

- - Parameters:
- - - - -
- string   - $str:  - literal string or column name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lt  [line 549] -
-
- -
-
-
  - string lt( -string -$value1, string -$value2  -) -
-

- -

Returns the SQL to check if one value is less than another value. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->lt('id'1));
  8. -

- Parameters:
- - - - - - - -
- string   - $value1:  - logical expression to compare
- string   - $value2:  - logical expression to compare with
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lte  [line 572] -
-
- -
-
-
  - string lte( -string -$value1, string -$value2  -) -
-

- -

Returns the SQL to check if one value is less than or equal to another value. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->lte('id'1));
  8. -

- Parameters:
- - - - - - - -
- string   - $value1:  - logical expression to compare
- string   - $value2:  - logical expression to compare with
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- ltrim  [line 204] -
-
- -
-
-
  - string ltrim( -string -$str  -) -
-

- -

ltrim returns the string $str with leading space characters removed -

- - Parameters:
- - - - -
- string   - $str:  - literal string or column name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- max  [line 86] -
-
- -
-
-
  - string max( -string -$column  -) -
-

- -

Returns the highest value of a column -

- - Parameters:
- - - - -
- string   - $column:  - the column to use
- -
- API Tags:
- - - - - - - -
Return:  generated sql including a MAX aggregate function
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- md5  [line 125] -
-
- -
-
-
  - string md5( - -$column  -) -
-

- -

Returns the md5 sum of a field. -

-

Note: Not SQL92, but common functionality

- Parameters:
- - - - -
-    - $column:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- min  [line 98] -
-
- -
-
-
  - string min( -string -$column  -) -
-

- -

Returns the lowest value of a column -

- - Parameters:
- - - - -
- string   - $column:  - the column to use
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- mod  [line 166] -
-
- -
-
-
  - string mod( -string -$expression1, string -$expression2  -) -
-

- -

Returns the remainder of the division operation $expression1 / $expression2. -

- - Parameters:
- - - - - - - -
- string   - $expression1:  -
- string   - $expression2:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- mul  [line 415] -
-
- -
-
-
  - string mul( - -$args  -) -
-

- -

Returns the SQL to multiply values or expressions by eachother. -

-

multiply() accepts an arbitrary number of parameters. Each parameter must contain a value or an expression or an array with values or expressions.

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $e $q->expr;
  4. -
  5.  
  6. -
  7.  $q->select('u.*')
  8. -
  9.    ->from('User u')
  10. -
  11.    ->where($e->eq($e->mul('id'2)12));
  12. -

- Parameters:
- - - - -
- string|array(string)   - $args:  -
- -
- API Tags:
- - - - - - - -
Return:  an expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- neq  [line 482] -
-
- -
-
-
  - string neq( -string -$value1, string -$value2  -) -
-

- -

Returns the SQL to check if two values are unequal. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $q->select('u.*')
  4. -
  5.    ->from('User u')
  6. -
  7.    ->where($q->expr->neq('id'1));
  8. -

- Parameters:
- - - - - - - -
- string   - $value1:  - logical expression to compare
- string   - $value2:  - logical expression to compare with
- -
- API Tags:
- - - - - - - -
Return:  logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- not  [line 316] -
-
- -
-
-
  - string not( - -$expression  -) -
-

- -

Returns the SQL for a logical not. -

-

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $e $q->expr;
  4. -
  5.  $q->select('*')->from('table')
  6. -
  7.    ->where($e->eq('id'$e->not('null'));
  8. -

- Parameters:
- - - - -
-    - $expression:  -
- -
- API Tags:
- - - - - - - -
Return:  a logical expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- now  [line 249] -
-
- -
-
-
  - string now( -) -
-

- -

Returns the current system date. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- regexp  [line 49] -
-
- -
-
-
  - string regexp( -) -
-

- -

regexp returns the regular expression operator -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- round  [line 151] -
-
- -
-
-
  - string round( - -$column, [ -$decimals = 0], string -$expression1, string -$expression2  -) -
-

- -

Rounds a numeric field to the number of decimals specified. -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $expression1:  -
- string   - $expression2:  -
-    - $column:  -
-    - $decimals:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- rtrim  [line 192] -
-
- -
-
-
  - string rtrim( -string -$str  -) -
-

- -

rtrim returns the string $str with proceeding space characters removed -

- - Parameters:
- - - - -
- string   - $str:  - literal string or column name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- soundex  [line 263] -
-
- -
-
-
  - string soundex( -string -$value  -) -
-

- -

soundex Returns a string to call a function to compute the soundex encoding of a string -

-

The string "?000" is returned if the argument is NULL.

- Parameters:
- - - - -
- string   - $value:  -
- -
- API Tags:
- - - - - - - -
Return:  SQL soundex function with given parameter
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- sub  [line 390] -
-
- -
-
-
  - string sub( - -$args  -) -
-

- -

Returns the SQL to subtract values or expressions from eachother. -

-

subtract() accepts an arbitrary number of parameters. Each parameter must contain a value or an expression or an array with values or expressions.

Example:

  1.  $q new Doctrine_Query();
  2. -
  3.  $e $q->expr;
  4. -
  5.  
  6. -
  7.  $q->select('u.*')
  8. -
  9.    ->from('User u')
  10. -
  11.    ->where($e->eq($e->sub('id'2)12));
  12. -

- Parameters:
- - - - -
- string|array(string)   - $args:  -
- -
- API Tags:
- - - - - - - -
Return:  an expression
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- substring  [line 279] -
-
- -
-
-
  - string substring( -string -$value, -$from, [ -$len = null], integer -$position, integer -$length  -) -
-

- -

return string to call a function to get a substring inside an SQL statement -

-

Note: Not SQL92, but common functionality.

SQLite only supports the 2 parameter variant of this function

- Parameters:
- - - - - - - - - - - - - - - - -
- string   - $value:  - an sql string literal or column name/alias
- integer   - $position:  - where to start the substring portion
- integer   - $length:  - the substring portion length
-    - $from:  -
-    - $len:  -
- -
- API Tags:
- - - - - - - -
Return:  SQL substring function with given parameters
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- sum  [line 110] -
-
- -
-
-
  - string sum( -string -$column  -) -
-

- -

Returns the total sum of a column -

- - Parameters:
- - - - -
- string   - $column:  - the column to use
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- trim  [line 180] -
-
- -
-
-
  - string trim( -string -$str  -) -
-

- -

trim returns the string $str with leading and proceeding space characters removed -

- - Parameters:
- - - - -
- string   - $str:  - literal string or column name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- upper  [line 216] -
-
- -
-
-
  - string upper( -string -$str  -) -
-

- -

upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -

- - Parameters:
- - - - -
- string   - $str:  - literal string or column name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __call  [line 704] -
-
- -
-
-
  - void __call( - -$m, -$a  -) -
-

- -

__call -

-

for all native RDBMS functions the function name itself is returned

- Parameters:
- - - - - - - -
-    - $m:  -
-    - $a:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Exception.html deleted file mode 100644 index 219877bfd..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Expression_Exception

-Source Location: /Doctrine/Expression/Exception.php

- -

Class Doctrine_Expression_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Expression_Exception -

- -

- Located in /Doctrine/Expression/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Expression_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Firebird.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Firebird.html deleted file mode 100644 index 04196e45b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Firebird.html +++ /dev/null @@ -1,797 +0,0 @@ - - -
-

Class: Doctrine_Expression_Firebird

-Source Location: /Doctrine/Expression/Firebird.php

- -

Class Doctrine_Expression_Firebird

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Expression_Firebird -

- -

- Located in /Doctrine/Expression/Firebird.php [line 35] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
-      |
-      --Doctrine_Expression_Firebird
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1917 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Expression_Driver

-
-
-
- Doctrine_Expression_Driver::acos() -
-
- returns arcus cosine SQL string -
-
- Doctrine_Expression_Driver::add() -
-
- Returns the SQL to add values or expressions together. -
-
- Doctrine_Expression_Driver::avg() -
-
- Returns the average value of a column -
-
- Doctrine_Expression_Driver::basicMath() -
-
- Returns the SQL to perform the same mathematical operation over an array of values or expressions. -
-
- Doctrine_Expression_Driver::between() -
-
- Returns SQL that checks if an expression evaluates to a value between two values. -
-
- Doctrine_Expression_Driver::concat() -
-
- Returns a series of strings concatinated -
-
- Doctrine_Expression_Driver::count() -
-
- Returns the number of rows (without a NULL value) of a column -
-
- Doctrine_Expression_Driver::div() -
-
- Returns the SQL to divide values or expressions by eachother. -
-
- Doctrine_Expression_Driver::eq() -
-
- Returns the SQL to check if two values are equal. -
-
- Doctrine_Expression_Driver::getIdentifier() -
-
- -
-
- Doctrine_Expression_Driver::getIdentifiers() -
-
- -
-
- Doctrine_Expression_Driver::gt() -
-
- Returns the SQL to check if one value is greater than another value. -
-
- Doctrine_Expression_Driver::gte() -
-
- Returns the SQL to check if one value is greater than or equal to another value. -
-
- Doctrine_Expression_Driver::guid() -
-
- Returns global unique identifier -
-
- Doctrine_Expression_Driver::in() -
-
- Returns the SQL to check if a value is one in a set of given values.. -
-
- Doctrine_Expression_Driver::isNotNull() -
-
- Returns SQL that checks if a expression is not null. -
-
- Doctrine_Expression_Driver::isNull() -
-
- Returns SQL that checks if a expression is null. -
-
- Doctrine_Expression_Driver::length() -
-
- Returns the length of a text field. -
-
- Doctrine_Expression_Driver::locate() -
-
- locate returns the position of the first occurrence of substring $substr in string $str -
-
- Doctrine_Expression_Driver::lower() -
-
- lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::lt() -
-
- Returns the SQL to check if one value is less than another value. -
-
- Doctrine_Expression_Driver::lte() -
-
- Returns the SQL to check if one value is less than or equal to another value. -
-
- Doctrine_Expression_Driver::ltrim() -
-
- ltrim returns the string $str with leading space characters removed -
-
- Doctrine_Expression_Driver::max() -
-
- Returns the highest value of a column -
-
- Doctrine_Expression_Driver::md5() -
-
- Returns the md5 sum of a field. -
-
- Doctrine_Expression_Driver::min() -
-
- Returns the lowest value of a column -
-
- Doctrine_Expression_Driver::mod() -
-
- Returns the remainder of the division operation $expression1 / $expression2. -
-
- Doctrine_Expression_Driver::mul() -
-
- Returns the SQL to multiply values or expressions by eachother. -
-
- Doctrine_Expression_Driver::neq() -
-
- Returns the SQL to check if two values are unequal. -
-
- Doctrine_Expression_Driver::not() -
-
- Returns the SQL for a logical not. -
-
- Doctrine_Expression_Driver::now() -
-
- Returns the current system date. -
-
- Doctrine_Expression_Driver::regexp() -
-
- regexp returns the regular expression operator -
-
- Doctrine_Expression_Driver::round() -
-
- Rounds a numeric field to the number of decimals specified. -
-
- Doctrine_Expression_Driver::rtrim() -
-
- rtrim returns the string $str with proceeding space characters removed -
-
- Doctrine_Expression_Driver::soundex() -
-
- soundex Returns a string to call a function to compute the soundex encoding of a string -
-
- Doctrine_Expression_Driver::sub() -
-
- Returns the SQL to subtract values or expressions from eachother. -
-
- Doctrine_Expression_Driver::substring() -
-
- return string to call a function to get a substring inside an SQL statement -
-
- Doctrine_Expression_Driver::sum() -
-
- Returns the total sum of a column -
-
- Doctrine_Expression_Driver::trim() -
-
- trim returns the string $str with leading and proceeding space characters removed -
-
- Doctrine_Expression_Driver::upper() -
-
- upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::__call() -
-
- __call -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
string  functionTable()  return string for internal table used when calling only a function
string  patternEscapeString()  build string to define escape pattern string
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- functionTable  [line 43] -
-
- -
-
-
  - string functionTable( -) -
-

- -

return string for internal table used when calling only a function -

- -
- API Tags:
- - - - - - - -
Return:  for internal table used when calling only a function
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- patternEscapeString  [line 52] -
-
- -
-
-
  - string patternEscapeString( -) -
-

- -

build string to define escape pattern string -

- -
- API Tags:
- - - - -
Return:  define escape pattern
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Informix.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Informix.html deleted file mode 100644 index 11193e1f5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Informix.html +++ /dev/null @@ -1,463 +0,0 @@ - - -
-

Class: Doctrine_Expression_Informix

-Source Location: /Doctrine/Expression/Informix.php

- -

Class Doctrine_Expression_Informix

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Expression_Informix -

- -

- Located in /Doctrine/Expression/Informix.php [line 33] -

- - -
Doctrine_Expression
-   |
-   --Doctrine_Expression_Informix
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Expression

-
-
-
- Doctrine_Expression::$_conn -
-
- -
-
- Doctrine_Expression::$_expression -
-
- -
-
-
-
-

Inherited From Doctrine_Expression

-
-
-
- Doctrine_Expression::__construct() -
-
- -
-
- Doctrine_Expression::getConnection() -
-
- -
-
- Doctrine_Expression::getSql() -
-
- -
-
- Doctrine_Expression::parseClause() -
-
- -
-
- Doctrine_Expression::parseExpression() -
-
- -
-
- Doctrine_Expression::setExpression() -
-
- -
-
- Doctrine_Expression::__toString() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Mock.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Mock.html deleted file mode 100644 index d9a562f80..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Mock.html +++ /dev/null @@ -1,692 +0,0 @@ - - -
-

Class: Doctrine_Expression_Mock

-Source Location: /Doctrine/Expression/Mock.php

- -

Class Doctrine_Expression_Mock

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Expression_Mock Mock driver that is used for testing purposes -

- -

- Located in /Doctrine/Expression/Mock.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
-      |
-      --Doctrine_Expression_Mock
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Expression_Driver

-
-
-
- Doctrine_Expression_Driver::acos() -
-
- returns arcus cosine SQL string -
-
- Doctrine_Expression_Driver::add() -
-
- Returns the SQL to add values or expressions together. -
-
- Doctrine_Expression_Driver::avg() -
-
- Returns the average value of a column -
-
- Doctrine_Expression_Driver::basicMath() -
-
- Returns the SQL to perform the same mathematical operation over an array of values or expressions. -
-
- Doctrine_Expression_Driver::between() -
-
- Returns SQL that checks if an expression evaluates to a value between two values. -
-
- Doctrine_Expression_Driver::concat() -
-
- Returns a series of strings concatinated -
-
- Doctrine_Expression_Driver::count() -
-
- Returns the number of rows (without a NULL value) of a column -
-
- Doctrine_Expression_Driver::div() -
-
- Returns the SQL to divide values or expressions by eachother. -
-
- Doctrine_Expression_Driver::eq() -
-
- Returns the SQL to check if two values are equal. -
-
- Doctrine_Expression_Driver::getIdentifier() -
-
- -
-
- Doctrine_Expression_Driver::getIdentifiers() -
-
- -
-
- Doctrine_Expression_Driver::gt() -
-
- Returns the SQL to check if one value is greater than another value. -
-
- Doctrine_Expression_Driver::gte() -
-
- Returns the SQL to check if one value is greater than or equal to another value. -
-
- Doctrine_Expression_Driver::guid() -
-
- Returns global unique identifier -
-
- Doctrine_Expression_Driver::in() -
-
- Returns the SQL to check if a value is one in a set of given values.. -
-
- Doctrine_Expression_Driver::isNotNull() -
-
- Returns SQL that checks if a expression is not null. -
-
- Doctrine_Expression_Driver::isNull() -
-
- Returns SQL that checks if a expression is null. -
-
- Doctrine_Expression_Driver::length() -
-
- Returns the length of a text field. -
-
- Doctrine_Expression_Driver::locate() -
-
- locate returns the position of the first occurrence of substring $substr in string $str -
-
- Doctrine_Expression_Driver::lower() -
-
- lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::lt() -
-
- Returns the SQL to check if one value is less than another value. -
-
- Doctrine_Expression_Driver::lte() -
-
- Returns the SQL to check if one value is less than or equal to another value. -
-
- Doctrine_Expression_Driver::ltrim() -
-
- ltrim returns the string $str with leading space characters removed -
-
- Doctrine_Expression_Driver::max() -
-
- Returns the highest value of a column -
-
- Doctrine_Expression_Driver::md5() -
-
- Returns the md5 sum of a field. -
-
- Doctrine_Expression_Driver::min() -
-
- Returns the lowest value of a column -
-
- Doctrine_Expression_Driver::mod() -
-
- Returns the remainder of the division operation $expression1 / $expression2. -
-
- Doctrine_Expression_Driver::mul() -
-
- Returns the SQL to multiply values or expressions by eachother. -
-
- Doctrine_Expression_Driver::neq() -
-
- Returns the SQL to check if two values are unequal. -
-
- Doctrine_Expression_Driver::not() -
-
- Returns the SQL for a logical not. -
-
- Doctrine_Expression_Driver::now() -
-
- Returns the current system date. -
-
- Doctrine_Expression_Driver::regexp() -
-
- regexp returns the regular expression operator -
-
- Doctrine_Expression_Driver::round() -
-
- Rounds a numeric field to the number of decimals specified. -
-
- Doctrine_Expression_Driver::rtrim() -
-
- rtrim returns the string $str with proceeding space characters removed -
-
- Doctrine_Expression_Driver::soundex() -
-
- soundex Returns a string to call a function to compute the soundex encoding of a string -
-
- Doctrine_Expression_Driver::sub() -
-
- Returns the SQL to subtract values or expressions from eachother. -
-
- Doctrine_Expression_Driver::substring() -
-
- return string to call a function to get a substring inside an SQL statement -
-
- Doctrine_Expression_Driver::sum() -
-
- Returns the total sum of a column -
-
- Doctrine_Expression_Driver::trim() -
-
- trim returns the string $str with leading and proceeding space characters removed -
-
- Doctrine_Expression_Driver::upper() -
-
- upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::__call() -
-
- __call -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Mssql.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Mssql.html deleted file mode 100644 index da5286728..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Mssql.html +++ /dev/null @@ -1,970 +0,0 @@ - - -
-

Class: Doctrine_Expression_Mssql

-Source Location: /Doctrine/Expression/Mssql.php

- -

Class Doctrine_Expression_Mssql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Expression_Mssql -

- -

- Located in /Doctrine/Expression/Mssql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
-      |
-      --Doctrine_Expression_Mssql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1917 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Expression_Driver

-
-
-
- Doctrine_Expression_Driver::acos() -
-
- returns arcus cosine SQL string -
-
- Doctrine_Expression_Driver::add() -
-
- Returns the SQL to add values or expressions together. -
-
- Doctrine_Expression_Driver::avg() -
-
- Returns the average value of a column -
-
- Doctrine_Expression_Driver::basicMath() -
-
- Returns the SQL to perform the same mathematical operation over an array of values or expressions. -
-
- Doctrine_Expression_Driver::between() -
-
- Returns SQL that checks if an expression evaluates to a value between two values. -
-
- Doctrine_Expression_Driver::concat() -
-
- Returns a series of strings concatinated -
-
- Doctrine_Expression_Driver::count() -
-
- Returns the number of rows (without a NULL value) of a column -
-
- Doctrine_Expression_Driver::div() -
-
- Returns the SQL to divide values or expressions by eachother. -
-
- Doctrine_Expression_Driver::eq() -
-
- Returns the SQL to check if two values are equal. -
-
- Doctrine_Expression_Driver::getIdentifier() -
-
- -
-
- Doctrine_Expression_Driver::getIdentifiers() -
-
- -
-
- Doctrine_Expression_Driver::gt() -
-
- Returns the SQL to check if one value is greater than another value. -
-
- Doctrine_Expression_Driver::gte() -
-
- Returns the SQL to check if one value is greater than or equal to another value. -
-
- Doctrine_Expression_Driver::guid() -
-
- Returns global unique identifier -
-
- Doctrine_Expression_Driver::in() -
-
- Returns the SQL to check if a value is one in a set of given values.. -
-
- Doctrine_Expression_Driver::isNotNull() -
-
- Returns SQL that checks if a expression is not null. -
-
- Doctrine_Expression_Driver::isNull() -
-
- Returns SQL that checks if a expression is null. -
-
- Doctrine_Expression_Driver::length() -
-
- Returns the length of a text field. -
-
- Doctrine_Expression_Driver::locate() -
-
- locate returns the position of the first occurrence of substring $substr in string $str -
-
- Doctrine_Expression_Driver::lower() -
-
- lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::lt() -
-
- Returns the SQL to check if one value is less than another value. -
-
- Doctrine_Expression_Driver::lte() -
-
- Returns the SQL to check if one value is less than or equal to another value. -
-
- Doctrine_Expression_Driver::ltrim() -
-
- ltrim returns the string $str with leading space characters removed -
-
- Doctrine_Expression_Driver::max() -
-
- Returns the highest value of a column -
-
- Doctrine_Expression_Driver::md5() -
-
- Returns the md5 sum of a field. -
-
- Doctrine_Expression_Driver::min() -
-
- Returns the lowest value of a column -
-
- Doctrine_Expression_Driver::mod() -
-
- Returns the remainder of the division operation $expression1 / $expression2. -
-
- Doctrine_Expression_Driver::mul() -
-
- Returns the SQL to multiply values or expressions by eachother. -
-
- Doctrine_Expression_Driver::neq() -
-
- Returns the SQL to check if two values are unequal. -
-
- Doctrine_Expression_Driver::not() -
-
- Returns the SQL for a logical not. -
-
- Doctrine_Expression_Driver::now() -
-
- Returns the current system date. -
-
- Doctrine_Expression_Driver::regexp() -
-
- regexp returns the regular expression operator -
-
- Doctrine_Expression_Driver::round() -
-
- Rounds a numeric field to the number of decimals specified. -
-
- Doctrine_Expression_Driver::rtrim() -
-
- rtrim returns the string $str with proceeding space characters removed -
-
- Doctrine_Expression_Driver::soundex() -
-
- soundex Returns a string to call a function to compute the soundex encoding of a string -
-
- Doctrine_Expression_Driver::sub() -
-
- Returns the SQL to subtract values or expressions from eachother. -
-
- Doctrine_Expression_Driver::substring() -
-
- return string to call a function to get a substring inside an SQL statement -
-
- Doctrine_Expression_Driver::sum() -
-
- Returns the total sum of a column -
-
- Doctrine_Expression_Driver::trim() -
-
- trim returns the string $str with leading and proceeding space characters removed -
-
- Doctrine_Expression_Driver::upper() -
-
- upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::__call() -
-
- __call -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  concat()  Returns string to concatenate two or more string parameters
string  guid()  Returns global unique identifier
string  now()  Return string to call a variable with the current timestamp inside an SQL statement
string  substring()  return string to call a function to get a substring inside an SQL statement
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- concat  [line 75] -
-
- -
-
-
  - string concat( -string -$arg1, string -$arg2, string -$values...  -) -
-

- -

Returns string to concatenate two or more string parameters -

- - Parameters:
- - - - - - - - - - -
- string   - $arg1:  -
- string   - $arg2:  -
- string   - $values...:  -
- -
- API Tags:
- - - - - - - -
Return:  to concatenate two strings
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::concat()
-
Returns a series of strings concatinated
-
- -
-
[ Top ]
-
- -
- -
- guid  [line 85] -
-
- -
-
-
  - string guid( -) -
-

- -

Returns global unique identifier -

- -
- API Tags:
- - - - - - - -
Return:  to get global unique identifier
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::guid()
-
Returns global unique identifier
-
- -
-
[ Top ]
-
- -
- -
- now  [line 45] -
-
- -
-
-
  - string now( -[ -$type = 'timestamp']  -) -
-

- -

Return string to call a variable with the current timestamp inside an SQL statement -

-

There are three special variables for current date and time:

  • CURRENT_TIMESTAMP (date and time, TIMESTAMP type)
  • CURRENT_DATE (date, DATE type)
  • CURRENT_TIME (time, TIME type)

- Parameters:
- - - - -
-    - $type:  -
- -
- API Tags:
- - - - - - - -
Return:  to call a variable with the current timestamp
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::now()
-
Returns the current system date.
-
- -
-
[ Top ]
-
- -
- -
- substring  [line 60] -
-
- -
-
-
  - string substring( - -$value, -$position, [ -$length = null]  -) -
-

- -

return string to call a function to get a substring inside an SQL statement -

- - Parameters:
- - - - - - - - - - -
-    - $value:  -
-    - $position:  -
-    - $length:  -
- -
- API Tags:
- - - - - - - -
Return:  to call a function to get a substring
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::substring()
-
return string to call a function to get a substring inside an SQL statement
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Mysql.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Mysql.html deleted file mode 100644 index e214d44eb..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Mysql.html +++ /dev/null @@ -1,917 +0,0 @@ - - -
-

Class: Doctrine_Expression_Mysql

-Source Location: /Doctrine/Expression/Mysql.php

- -

Class Doctrine_Expression_Mysql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Expression_Mysql -

- -

- Located in /Doctrine/Expression/Mysql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
-      |
-      --Doctrine_Expression_Mysql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1917 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Expression_Driver

-
-
-
- Doctrine_Expression_Driver::acos() -
-
- returns arcus cosine SQL string -
-
- Doctrine_Expression_Driver::add() -
-
- Returns the SQL to add values or expressions together. -
-
- Doctrine_Expression_Driver::avg() -
-
- Returns the average value of a column -
-
- Doctrine_Expression_Driver::basicMath() -
-
- Returns the SQL to perform the same mathematical operation over an array of values or expressions. -
-
- Doctrine_Expression_Driver::between() -
-
- Returns SQL that checks if an expression evaluates to a value between two values. -
-
- Doctrine_Expression_Driver::concat() -
-
- Returns a series of strings concatinated -
-
- Doctrine_Expression_Driver::count() -
-
- Returns the number of rows (without a NULL value) of a column -
-
- Doctrine_Expression_Driver::div() -
-
- Returns the SQL to divide values or expressions by eachother. -
-
- Doctrine_Expression_Driver::eq() -
-
- Returns the SQL to check if two values are equal. -
-
- Doctrine_Expression_Driver::getIdentifier() -
-
- -
-
- Doctrine_Expression_Driver::getIdentifiers() -
-
- -
-
- Doctrine_Expression_Driver::gt() -
-
- Returns the SQL to check if one value is greater than another value. -
-
- Doctrine_Expression_Driver::gte() -
-
- Returns the SQL to check if one value is greater than or equal to another value. -
-
- Doctrine_Expression_Driver::guid() -
-
- Returns global unique identifier -
-
- Doctrine_Expression_Driver::in() -
-
- Returns the SQL to check if a value is one in a set of given values.. -
-
- Doctrine_Expression_Driver::isNotNull() -
-
- Returns SQL that checks if a expression is not null. -
-
- Doctrine_Expression_Driver::isNull() -
-
- Returns SQL that checks if a expression is null. -
-
- Doctrine_Expression_Driver::length() -
-
- Returns the length of a text field. -
-
- Doctrine_Expression_Driver::locate() -
-
- locate returns the position of the first occurrence of substring $substr in string $str -
-
- Doctrine_Expression_Driver::lower() -
-
- lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::lt() -
-
- Returns the SQL to check if one value is less than another value. -
-
- Doctrine_Expression_Driver::lte() -
-
- Returns the SQL to check if one value is less than or equal to another value. -
-
- Doctrine_Expression_Driver::ltrim() -
-
- ltrim returns the string $str with leading space characters removed -
-
- Doctrine_Expression_Driver::max() -
-
- Returns the highest value of a column -
-
- Doctrine_Expression_Driver::md5() -
-
- Returns the md5 sum of a field. -
-
- Doctrine_Expression_Driver::min() -
-
- Returns the lowest value of a column -
-
- Doctrine_Expression_Driver::mod() -
-
- Returns the remainder of the division operation $expression1 / $expression2. -
-
- Doctrine_Expression_Driver::mul() -
-
- Returns the SQL to multiply values or expressions by eachother. -
-
- Doctrine_Expression_Driver::neq() -
-
- Returns the SQL to check if two values are unequal. -
-
- Doctrine_Expression_Driver::not() -
-
- Returns the SQL for a logical not. -
-
- Doctrine_Expression_Driver::now() -
-
- Returns the current system date. -
-
- Doctrine_Expression_Driver::regexp() -
-
- regexp returns the regular expression operator -
-
- Doctrine_Expression_Driver::round() -
-
- Rounds a numeric field to the number of decimals specified. -
-
- Doctrine_Expression_Driver::rtrim() -
-
- rtrim returns the string $str with proceeding space characters removed -
-
- Doctrine_Expression_Driver::soundex() -
-
- soundex Returns a string to call a function to compute the soundex encoding of a string -
-
- Doctrine_Expression_Driver::sub() -
-
- Returns the SQL to subtract values or expressions from eachother. -
-
- Doctrine_Expression_Driver::substring() -
-
- return string to call a function to get a substring inside an SQL statement -
-
- Doctrine_Expression_Driver::sum() -
-
- Returns the total sum of a column -
-
- Doctrine_Expression_Driver::trim() -
-
- trim returns the string $str with leading and proceeding space characters removed -
-
- Doctrine_Expression_Driver::upper() -
-
- upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::__call() -
-
- __call -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  guid()  Returns global unique identifier
string  matchPattern()  build a pattern matching string
string  random()  return string to call a function to get random value inside an SQL statement
string  regexp()  returns the regular expression operator
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- guid  [line 106] -
-
- -
-
-
  - string guid( -) -
-

- -

Returns global unique identifier -

- -
- API Tags:
- - - - - - - -
Return:  to get global unique identifier
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::guid()
-
Returns global unique identifier
-
- -
-
[ Top ]
-
- -
- -
- matchPattern  [line 70] -
-
- -
-
-
  - string matchPattern( -array -$pattern, [string -$operator = null], [string -$field = null]  -) -
-

- -

build a pattern matching string -

-

EXPERIMENTAL

WARNING: this function is experimental and may change signature at any time until labelled as non-experimental

- Parameters:
- - - - - - - - - - -
- array   - $pattern:  - even keys are strings, odd are patterns (% and _)
- string   - $operator:  - optional pattern operator (LIKE, ILIKE and maybe others in the future)
- string   - $field:  - optional field name that is being matched against (might be required when emulating ILIKE)
- -
- API Tags:
- - - - - - - -
Return:  SQL pattern
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- random  [line 49] -
-
- -
-
-
  - string random( -) -
-

- -

return string to call a function to get random value inside an SQL statement -

- -
- API Tags:
- - - - - - - -
Return:  to generate float between 0 and 1
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- regexp  [line 40] -
-
- -
-
-
  - string regexp( -) -
-

- -

returns the regular expression operator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::regexp()
-
regexp returns the regular expression operator
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Oracle.html deleted file mode 100644 index 0870c169c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Oracle.html +++ /dev/null @@ -1,995 +0,0 @@ - - -
-

Class: Doctrine_Expression_Oracle

-Source Location: /Doctrine/Expression/Oracle.php

- -

Class Doctrine_Expression_Oracle

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Expression_Sqlite -

- -

- Located in /Doctrine/Expression/Oracle.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
-      |
-      --Doctrine_Expression_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1917 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Expression_Driver

-
-
-
- Doctrine_Expression_Driver::acos() -
-
- returns arcus cosine SQL string -
-
- Doctrine_Expression_Driver::add() -
-
- Returns the SQL to add values or expressions together. -
-
- Doctrine_Expression_Driver::avg() -
-
- Returns the average value of a column -
-
- Doctrine_Expression_Driver::basicMath() -
-
- Returns the SQL to perform the same mathematical operation over an array of values or expressions. -
-
- Doctrine_Expression_Driver::between() -
-
- Returns SQL that checks if an expression evaluates to a value between two values. -
-
- Doctrine_Expression_Driver::concat() -
-
- Returns a series of strings concatinated -
-
- Doctrine_Expression_Driver::count() -
-
- Returns the number of rows (without a NULL value) of a column -
-
- Doctrine_Expression_Driver::div() -
-
- Returns the SQL to divide values or expressions by eachother. -
-
- Doctrine_Expression_Driver::eq() -
-
- Returns the SQL to check if two values are equal. -
-
- Doctrine_Expression_Driver::getIdentifier() -
-
- -
-
- Doctrine_Expression_Driver::getIdentifiers() -
-
- -
-
- Doctrine_Expression_Driver::gt() -
-
- Returns the SQL to check if one value is greater than another value. -
-
- Doctrine_Expression_Driver::gte() -
-
- Returns the SQL to check if one value is greater than or equal to another value. -
-
- Doctrine_Expression_Driver::guid() -
-
- Returns global unique identifier -
-
- Doctrine_Expression_Driver::in() -
-
- Returns the SQL to check if a value is one in a set of given values.. -
-
- Doctrine_Expression_Driver::isNotNull() -
-
- Returns SQL that checks if a expression is not null. -
-
- Doctrine_Expression_Driver::isNull() -
-
- Returns SQL that checks if a expression is null. -
-
- Doctrine_Expression_Driver::length() -
-
- Returns the length of a text field. -
-
- Doctrine_Expression_Driver::locate() -
-
- locate returns the position of the first occurrence of substring $substr in string $str -
-
- Doctrine_Expression_Driver::lower() -
-
- lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::lt() -
-
- Returns the SQL to check if one value is less than another value. -
-
- Doctrine_Expression_Driver::lte() -
-
- Returns the SQL to check if one value is less than or equal to another value. -
-
- Doctrine_Expression_Driver::ltrim() -
-
- ltrim returns the string $str with leading space characters removed -
-
- Doctrine_Expression_Driver::max() -
-
- Returns the highest value of a column -
-
- Doctrine_Expression_Driver::md5() -
-
- Returns the md5 sum of a field. -
-
- Doctrine_Expression_Driver::min() -
-
- Returns the lowest value of a column -
-
- Doctrine_Expression_Driver::mod() -
-
- Returns the remainder of the division operation $expression1 / $expression2. -
-
- Doctrine_Expression_Driver::mul() -
-
- Returns the SQL to multiply values or expressions by eachother. -
-
- Doctrine_Expression_Driver::neq() -
-
- Returns the SQL to check if two values are unequal. -
-
- Doctrine_Expression_Driver::not() -
-
- Returns the SQL for a logical not. -
-
- Doctrine_Expression_Driver::now() -
-
- Returns the current system date. -
-
- Doctrine_Expression_Driver::regexp() -
-
- regexp returns the regular expression operator -
-
- Doctrine_Expression_Driver::round() -
-
- Rounds a numeric field to the number of decimals specified. -
-
- Doctrine_Expression_Driver::rtrim() -
-
- rtrim returns the string $str with proceeding space characters removed -
-
- Doctrine_Expression_Driver::soundex() -
-
- soundex Returns a string to call a function to compute the soundex encoding of a string -
-
- Doctrine_Expression_Driver::sub() -
-
- Returns the SQL to subtract values or expressions from eachother. -
-
- Doctrine_Expression_Driver::substring() -
-
- return string to call a function to get a substring inside an SQL statement -
-
- Doctrine_Expression_Driver::sum() -
-
- Returns the total sum of a column -
-
- Doctrine_Expression_Driver::trim() -
-
- trim returns the string $str with leading and proceeding space characters removed -
-
- Doctrine_Expression_Driver::upper() -
-
- upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::__call() -
-
- __call -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  concat()  Returns a series of strings concatinated
string  guid()  Returns global unique identifier
string  now()  Return string to call a variable with the current timestamp inside an SQL statement
string  random()  random
string  substring()  return string to call a function to get a substring inside an SQL statement
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- concat  [line 44] -
-
- -
-
-
  - string concat( -string -$arg1,  -) -
-

- -

Returns a series of strings concatinated -

-

concat() accepts an arbitrary number of parameters. Each parameter must contain an expression

- Parameters:
- - - - -
- string   - $arg1,:  - $arg2 ... $argN strings that will be concatinated.
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::concat()
-
Returns a series of strings concatinated
-
- -
-
[ Top ]
-
- -
- -
- guid  [line 100] -
-
- -
-
-
  - string guid( -) -
-

- -

Returns global unique identifier -

- -
- API Tags:
- - - - - - - -
Return:  to get global unique identifier
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::guid()
-
Returns global unique identifier
-
- -
-
[ Top ]
-
- -
- -
- now  [line 76] -
-
- -
-
-
  - string now( -[ -$type = 'timestamp']  -) -
-

- -

Return string to call a variable with the current timestamp inside an SQL statement -

-

There are three special variables for current date and time:

  • CURRENT_TIMESTAMP (date and time, TIMESTAMP type)
  • CURRENT_DATE (date, DATE type)
  • CURRENT_TIME (time, TIME type)

- Parameters:
- - - - -
-    - $type:  -
- -
- API Tags:
- - - - - - - -
Return:  to call a variable with the current timestamp
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::now()
-
Returns the current system date.
-
- -
-
[ Top ]
-
- -
- -
- random  [line 91] -
-
- -
-
-
  - string random( -) -
-

- -

random -

- -
- API Tags:
- - - - - - - -
Return:  an oracle SQL string that generates a float between 0 and 1
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- substring  [line 60] -
-
- -
-
-
  - string substring( -string -$value, integer -$position, [integer -$length = null]  -) -
-

- -

return string to call a function to get a substring inside an SQL statement -

-

Note: Not SQL92, but common functionality.

- Parameters:
- - - - - - - - - - -
- string   - $value:  - an sql string literal or column name/alias
- integer   - $position:  - where to start the substring portion
- integer   - $length:  - the substring portion length
- -
- API Tags:
- - - - - - - -
Return:  SQL substring function with given parameters
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::substring()
-
return string to call a function to get a substring inside an SQL statement
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Pgsql.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Pgsql.html deleted file mode 100644 index 9f06c5ea2..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Pgsql.html +++ /dev/null @@ -1,1208 +0,0 @@ - - -
-

Class: Doctrine_Expression_Pgsql

-Source Location: /Doctrine/Expression/Pgsql.php

- -

Class Doctrine_Expression_Pgsql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Expression_Pgsql -

- -

- Located in /Doctrine/Expression/Pgsql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
-      |
-      --Doctrine_Expression_Pgsql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2276 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Expression_Driver

-
-
-
- Doctrine_Expression_Driver::acos() -
-
- returns arcus cosine SQL string -
-
- Doctrine_Expression_Driver::add() -
-
- Returns the SQL to add values or expressions together. -
-
- Doctrine_Expression_Driver::avg() -
-
- Returns the average value of a column -
-
- Doctrine_Expression_Driver::basicMath() -
-
- Returns the SQL to perform the same mathematical operation over an array of values or expressions. -
-
- Doctrine_Expression_Driver::between() -
-
- Returns SQL that checks if an expression evaluates to a value between two values. -
-
- Doctrine_Expression_Driver::concat() -
-
- Returns a series of strings concatinated -
-
- Doctrine_Expression_Driver::count() -
-
- Returns the number of rows (without a NULL value) of a column -
-
- Doctrine_Expression_Driver::div() -
-
- Returns the SQL to divide values or expressions by eachother. -
-
- Doctrine_Expression_Driver::eq() -
-
- Returns the SQL to check if two values are equal. -
-
- Doctrine_Expression_Driver::getIdentifier() -
-
- -
-
- Doctrine_Expression_Driver::getIdentifiers() -
-
- -
-
- Doctrine_Expression_Driver::gt() -
-
- Returns the SQL to check if one value is greater than another value. -
-
- Doctrine_Expression_Driver::gte() -
-
- Returns the SQL to check if one value is greater than or equal to another value. -
-
- Doctrine_Expression_Driver::guid() -
-
- Returns global unique identifier -
-
- Doctrine_Expression_Driver::in() -
-
- Returns the SQL to check if a value is one in a set of given values.. -
-
- Doctrine_Expression_Driver::isNotNull() -
-
- Returns SQL that checks if a expression is not null. -
-
- Doctrine_Expression_Driver::isNull() -
-
- Returns SQL that checks if a expression is null. -
-
- Doctrine_Expression_Driver::length() -
-
- Returns the length of a text field. -
-
- Doctrine_Expression_Driver::locate() -
-
- locate returns the position of the first occurrence of substring $substr in string $str -
-
- Doctrine_Expression_Driver::lower() -
-
- lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::lt() -
-
- Returns the SQL to check if one value is less than another value. -
-
- Doctrine_Expression_Driver::lte() -
-
- Returns the SQL to check if one value is less than or equal to another value. -
-
- Doctrine_Expression_Driver::ltrim() -
-
- ltrim returns the string $str with leading space characters removed -
-
- Doctrine_Expression_Driver::max() -
-
- Returns the highest value of a column -
-
- Doctrine_Expression_Driver::md5() -
-
- Returns the md5 sum of a field. -
-
- Doctrine_Expression_Driver::min() -
-
- Returns the lowest value of a column -
-
- Doctrine_Expression_Driver::mod() -
-
- Returns the remainder of the division operation $expression1 / $expression2. -
-
- Doctrine_Expression_Driver::mul() -
-
- Returns the SQL to multiply values or expressions by eachother. -
-
- Doctrine_Expression_Driver::neq() -
-
- Returns the SQL to check if two values are unequal. -
-
- Doctrine_Expression_Driver::not() -
-
- Returns the SQL for a logical not. -
-
- Doctrine_Expression_Driver::now() -
-
- Returns the current system date. -
-
- Doctrine_Expression_Driver::regexp() -
-
- regexp returns the regular expression operator -
-
- Doctrine_Expression_Driver::round() -
-
- Rounds a numeric field to the number of decimals specified. -
-
- Doctrine_Expression_Driver::rtrim() -
-
- rtrim returns the string $str with proceeding space characters removed -
-
- Doctrine_Expression_Driver::soundex() -
-
- soundex Returns a string to call a function to compute the soundex encoding of a string -
-
- Doctrine_Expression_Driver::sub() -
-
- Returns the SQL to subtract values or expressions from eachother. -
-
- Doctrine_Expression_Driver::substring() -
-
- return string to call a function to get a substring inside an SQL statement -
-
- Doctrine_Expression_Driver::sum() -
-
- Returns the total sum of a column -
-
- Doctrine_Expression_Driver::trim() -
-
- trim returns the string $str with leading and proceeding space characters removed -
-
- Doctrine_Expression_Driver::upper() -
-
- upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::__call() -
-
- __call -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
string  age()  PostgreSQLs AGE(<timestamp1> [, <timestamp2>]) function.
void  concat()  
string  date_part()  PostgreSQLs DATE_PART( <text>, <time> ) function.
string  matchPattern()  build a pattern matching string
string  md5()  Returns the md5 sum of a field.
string  now()  Returns the SQL string to return the current system date and time.
return  random()  return string to call a function to get random value inside an SQL statement
string  regexp()  regexp
string  substring()  Returns part of a string.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- age  [line 104] -
-
- -
-
-
  - string age( -string -$timestamp1, [string -$timestamp2 = null]  -) -
-

- -

PostgreSQLs AGE(<timestamp1> [, <timestamp2>]) function. -

- - Parameters:
- - - - - - - -
- string   - $timestamp1:  - timestamp to subtract from NOW()
- string   - $timestamp2:  - optional; if given: subtract arguments
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- concat  [line 123] -
-
- -
-
-
  - void concat( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::concat()
-
Returns a series of strings concatinated
-
- -
-
[ Top ]
-
- -
- -
- date_part  [line 118] -
-
- -
-
-
  - string date_part( -string -$text, string -$time  -) -
-

- -

PostgreSQLs DATE_PART( <text>, <time> ) function. -

- - Parameters:
- - - - - - - -
- string   - $text:  - what to extract
- string   - $time:  - timestamp or interval to extract from
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- matchPattern  [line 174] -
-
- -
-
-
  - string matchPattern( -array -$pattern, [string -$operator = null], [string -$field = null]  -) -
-

- -

build a pattern matching string -

-

EXPERIMENTAL

WARNING: this function is experimental and may change signature at any time until labelled as non-experimental

- Parameters:
- - - - - - - - - - -
- array   - $pattern:  - even keys are strings, odd are patterns (% and _)
- string   - $operator:  - optional pattern operator (LIKE, ILIKE and maybe others in the future)
- string   - $field:  - optional field name that is being matched against (might be required when emulating ILIKE)
- -
- API Tags:
- - - - - - - -
Return:  SQL pattern
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- md5  [line 53] -
-
- -
-
-
  - string md5( - -$column  -) -
-

- -

Returns the md5 sum of a field. -

-

Note: Not SQL92, but common functionality

md5() works with the default PostgreSQL 8 versions.

If you are using PostgreSQL 7.x or older you need to make sure that the digest procedure is installed. If you use RPMS (Redhat and Mandrake) install the postgresql-contrib package. You must then install the procedure by running this shell command:

  1.  psql [dbname< /usr/share/pgsql/contrib/pgcrypto.sql
  2. -
You should make sure you run this as the postgres user.

- Parameters:
- - - - -
-    - $column:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::md5()
-
Returns the md5 sum of a field.
-
- -
-
[ Top ]
-
- -
- -
- now  [line 134] -
-
- -
-
-
  - string now( -) -
-

- -

Returns the SQL string to return the current system date and time. -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::now()
-
Returns the current system date.
-
- -
-
[ Top ]
-
- -
- -
- random  [line 153] -
-
- -
-
-
  - return random( -) -
-

- -

return string to call a function to get random value inside an SQL statement -

- -
- API Tags:
- - - - - - - -
Return:  string to generate float between 0 and 1
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- regexp  [line 143] -
-
- -
-
-
  - string regexp( -) -
-

- -

regexp -

- -
- API Tags:
- - - - - - - -
Return:  the regular expression operator
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::regexp()
-
regexp returns the regular expression operator
-
- -
-
[ Top ]
-
- -
- -
- substring  [line 74] -
-
- -
-
-
  - string substring( -string -$value, int -$from, [int -$len = null]  -) -
-

- -

Returns part of a string. -

-

Note: Not SQL92, but common functionality.

- Parameters:
- - - - - - - - - - -
- string   - $value:  - the target $value the string or the string column.
- int   - $from:  - extract from this characeter.
- int   - $len:  - extract this amount of characters.
- -
- API Tags:
- - - - - - - -
Return:  sql that extracts part of a string.
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::substring()
-
return string to call a function to get a substring inside an SQL statement
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Expression_Sqlite.html b/api_documentation/trunk/Doctrine/Doctrine_Expression_Sqlite.html deleted file mode 100644 index 9f18540d6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Expression_Sqlite.html +++ /dev/null @@ -1,1413 +0,0 @@ - - -
-

Class: Doctrine_Expression_Sqlite

-Source Location: /Doctrine/Expression/Sqlite.php

- -

Class Doctrine_Expression_Sqlite

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Expression_Sqlite -

- -

- Located in /Doctrine/Expression/Sqlite.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Expression_Driver
-      |
-      --Doctrine_Expression_Sqlite
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1917 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Expression_Driver

-
-
-
- Doctrine_Expression_Driver::acos() -
-
- returns arcus cosine SQL string -
-
- Doctrine_Expression_Driver::add() -
-
- Returns the SQL to add values or expressions together. -
-
- Doctrine_Expression_Driver::avg() -
-
- Returns the average value of a column -
-
- Doctrine_Expression_Driver::basicMath() -
-
- Returns the SQL to perform the same mathematical operation over an array of values or expressions. -
-
- Doctrine_Expression_Driver::between() -
-
- Returns SQL that checks if an expression evaluates to a value between two values. -
-
- Doctrine_Expression_Driver::concat() -
-
- Returns a series of strings concatinated -
-
- Doctrine_Expression_Driver::count() -
-
- Returns the number of rows (without a NULL value) of a column -
-
- Doctrine_Expression_Driver::div() -
-
- Returns the SQL to divide values or expressions by eachother. -
-
- Doctrine_Expression_Driver::eq() -
-
- Returns the SQL to check if two values are equal. -
-
- Doctrine_Expression_Driver::getIdentifier() -
-
- -
-
- Doctrine_Expression_Driver::getIdentifiers() -
-
- -
-
- Doctrine_Expression_Driver::gt() -
-
- Returns the SQL to check if one value is greater than another value. -
-
- Doctrine_Expression_Driver::gte() -
-
- Returns the SQL to check if one value is greater than or equal to another value. -
-
- Doctrine_Expression_Driver::guid() -
-
- Returns global unique identifier -
-
- Doctrine_Expression_Driver::in() -
-
- Returns the SQL to check if a value is one in a set of given values.. -
-
- Doctrine_Expression_Driver::isNotNull() -
-
- Returns SQL that checks if a expression is not null. -
-
- Doctrine_Expression_Driver::isNull() -
-
- Returns SQL that checks if a expression is null. -
-
- Doctrine_Expression_Driver::length() -
-
- Returns the length of a text field. -
-
- Doctrine_Expression_Driver::locate() -
-
- locate returns the position of the first occurrence of substring $substr in string $str -
-
- Doctrine_Expression_Driver::lower() -
-
- lower Returns the string $str with all characters changed to lowercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::lt() -
-
- Returns the SQL to check if one value is less than another value. -
-
- Doctrine_Expression_Driver::lte() -
-
- Returns the SQL to check if one value is less than or equal to another value. -
-
- Doctrine_Expression_Driver::ltrim() -
-
- ltrim returns the string $str with leading space characters removed -
-
- Doctrine_Expression_Driver::max() -
-
- Returns the highest value of a column -
-
- Doctrine_Expression_Driver::md5() -
-
- Returns the md5 sum of a field. -
-
- Doctrine_Expression_Driver::min() -
-
- Returns the lowest value of a column -
-
- Doctrine_Expression_Driver::mod() -
-
- Returns the remainder of the division operation $expression1 / $expression2. -
-
- Doctrine_Expression_Driver::mul() -
-
- Returns the SQL to multiply values or expressions by eachother. -
-
- Doctrine_Expression_Driver::neq() -
-
- Returns the SQL to check if two values are unequal. -
-
- Doctrine_Expression_Driver::not() -
-
- Returns the SQL for a logical not. -
-
- Doctrine_Expression_Driver::now() -
-
- Returns the current system date. -
-
- Doctrine_Expression_Driver::regexp() -
-
- regexp returns the regular expression operator -
-
- Doctrine_Expression_Driver::round() -
-
- Rounds a numeric field to the number of decimals specified. -
-
- Doctrine_Expression_Driver::rtrim() -
-
- rtrim returns the string $str with proceeding space characters removed -
-
- Doctrine_Expression_Driver::soundex() -
-
- soundex Returns a string to call a function to compute the soundex encoding of a string -
-
- Doctrine_Expression_Driver::sub() -
-
- Returns the SQL to subtract values or expressions from eachother. -
-
- Doctrine_Expression_Driver::substring() -
-
- return string to call a function to get a substring inside an SQL statement -
-
- Doctrine_Expression_Driver::sum() -
-
- Returns the total sum of a column -
-
- Doctrine_Expression_Driver::trim() -
-
- trim returns the string $str with leading and proceeding space characters removed -
-
- Doctrine_Expression_Driver::upper() -
-
- upper Returns the string $str with all characters changed to uppercase according to the current character set mapping. -
-
- Doctrine_Expression_Driver::__call() -
-
- __call -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - string   - concatImpl()  Returns a concatenation of the data that SQLite's concat() function receives.
static - string   - locateImpl()  locate returns the position of the first occurrence of substring $substr in string $str that SQLite's locate() function receives
static - void   - ltrimImpl()  
static - string   - md5Impl()  Returns the md5 sum of the data that SQLite's md5() function receives.
static - string   - modImpl()  Returns the modules of the data that SQLite's mod() function receives.
static - void   - rtrimImpl()  
static - void   - sha1Impl()  
static - void   - trimImpl()  
string  now()  Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time.
string  random()  return string to call a function to get random value inside an SQL statement
string  regexp()  returns the regular expression operator
string  soundex()  soundex Returns a string to call a function to compute the soundex encoding of a string
string  substring()  return string to call a function to get a substring inside an SQL statement
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - -
- -
- static method concatImpl  [line 62] -
-
- -
-
-
  - static string concatImpl( -) -
-

- -

Returns a concatenation of the data that SQLite's concat() function receives. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method locateImpl  [line 76] -
-
- -
-
-
  - static string locateImpl( -string -$substr, string -$str  -) -
-

- -

locate returns the position of the first occurrence of substring $substr in string $str that SQLite's locate() function receives -

- - Parameters:
- - - - - - - -
- string   - $substr:  - literal string to find
- string   - $str:  - literal string
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method ltrimImpl  [line 84] -
-
- -
-
-
  - static void ltrimImpl( - -$str  -) -
-

- - - Parameters:
- - - - -
-    - $str:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method md5Impl  [line 41] -
-
- -
-
-
  - static string md5Impl( -mixed -$data  -) -
-

- -

Returns the md5 sum of the data that SQLite's md5() function receives. -

- - Parameters:
- - - - -
- mixed   - $data:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method modImpl  [line 52] -
-
- -
-
-
  - static string modImpl( -integer -$dividend, integer -$divisor  -) -
-

- -

Returns the modules of the data that SQLite's mod() function receives. -

- - Parameters:
- - - - - - - -
- integer   - $dividend:  -
- integer   - $divisor:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method rtrimImpl  [line 88] -
-
- -
-
-
  - static void rtrimImpl( - -$str  -) -
-

- - - Parameters:
- - - - -
-    - $str:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method sha1Impl  [line 80] -
-
- -
-
-
  - static void sha1Impl( - -$str  -) -
-

- - - Parameters:
- - - - -
-    - $str:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method trimImpl  [line 92] -
-
- -
-
-
  - static void trimImpl( - -$str  -) -
-

- - - Parameters:
- - - - -
-    - $str:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- now  [line 125] -
-
- -
-
-
  - string now( -[ -$type = 'timestamp']  -) -
-

- -

Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time. -

- - Parameters:
- - - - -
-    - $type:  -
- -
- API Tags:
- - - - - - - -
Return:  sqlite function as string
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::now()
-
Returns the current system date.
-
- -
-
[ Top ]
-
- -
- -
- random  [line 142] -
-
- -
-
-
  - string random( -) -
-

- -

return string to call a function to get random value inside an SQL statement -

- -
- API Tags:
- - - - - - - -
Return:  to generate float between 0 and 1
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- regexp  [line 101] -
-
- -
-
-
  - string regexp( -) -
-

- -

returns the regular expression operator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::regexp()
-
regexp returns the regular expression operator
-
- -
-
[ Top ]
-
- -
- -
- soundex  [line 115] -
-
- -
-
-
  - string soundex( -string -$value  -) -
-

- -

soundex Returns a string to call a function to compute the soundex encoding of a string -

-

The string "?000" is returned if the argument is NULL.

- Parameters:
- - - - -
- string   - $value:  -
- -
- API Tags:
- - - - - - - -
Return:  SQL soundex function with given parameter
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::soundex()
-
soundex Returns a string to call a function to compute the soundex encoding of a string
-
- -
-
[ Top ]
-
- -
- -
- substring  [line 158] -
-
- -
-
-
  - string substring( -string -$value, integer -$position, [integer -$length = null]  -) -
-

- -

return string to call a function to get a substring inside an SQL statement -

-

Note: Not SQL92, but common functionality.

SQLite only supports the 2 parameter variant of this function

- Parameters:
- - - - - - - - - - -
- string   - $value:  - an sql string literal or column name/alias
- integer   - $position:  - where to start the substring portion
- integer   - $length:  - the substring portion length
- -
- API Tags:
- - - - - - - -
Return:  SQL substring function with given parameters
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Expression_Driver::substring()
-
return string to call a function to get a substring inside an SQL statement
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_File.html b/api_documentation/trunk/Doctrine/Doctrine_File.html deleted file mode 100644 index af62fcdbe..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_File.html +++ /dev/null @@ -1,1360 +0,0 @@ - - -
-

Class: Doctrine_File

-Source Location: /Doctrine/File.php

- -

Class Doctrine_File

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_File -

- -

- Located in /Doctrine/File.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Record
-            |
-            --Doctrine_File
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record

-
-
-
- Doctrine_Record::$_data -
-
- -
-
- Doctrine_Record::$_errorStack -
-
- -
-
- Doctrine_Record::$_filter -
-
- -
-
- Doctrine_Record::$_id -
-
- -
-
- Doctrine_Record::$_index -
-
- -
-
- Doctrine_Record::$_modified -
-
- -
-
- Doctrine_Record::$_node -
-
- -
-
- Doctrine_Record::$_oid -
-
- -
-
- Doctrine_Record::$_references -
-
- -
-
- Doctrine_Record::$_state -
-
- -
-
- Doctrine_Record::$_values -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Record

-
-
-
- Doctrine_Record::__construct() -
-
- constructor -
-
- Doctrine_Record::assignDefaultValues() -
-
- setDefaultValues sets the default values for records internal data -
-
- Doctrine_Record::assignIdentifier() -
-
- assignIdentifier -
-
- Doctrine_Record::call() -
-
- call -
-
- Doctrine_Record::cleanData() -
-
- cleanData -
-
- Doctrine_Record::columnCount() -
-
- alias for count() -
-
- Doctrine_Record::construct() -
-
- construct Empty tempalte method to provide concrete Record classes with the possibility to hook into the constructor procedure -
-
- Doctrine_Record::contains() -
-
- contains -
-
- Doctrine_Record::copy() -
-
- copy returns a copy of this object -
-
- Doctrine_Record::copyDeep() -
-
- copyDeep returns a copy of this object and all its related objects -
-
- Doctrine_Record::coreSetRelated() -
-
- -
-
- Doctrine_Record::count() -
-
- count this class implements countable interface -
-
- Doctrine_Record::delete() -
-
- deletes this data access object and all the related composites this operation is isolated by a transaction -
-
- Doctrine_Record::deleteNode() -
-
- used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS AS TREE -
-
- Doctrine_Record::errorStack() -
-
- errorStack assigns / returns record errorStack -
-
- Doctrine_Record::exists() -
-
- exists returns true if this record is persistent, otherwise false -
-
- Doctrine_Record::get() -
-
- get returns a value of a property or a related component -
-
- Doctrine_Record::getData() -
-
- getData return all the internal data -
-
- Doctrine_Record::getErrorStack() -
-
- getErrorStack -
-
- Doctrine_Record::getIncremented() -
-
- returns the value of autoincremented primary key of this object (if any) -
-
- Doctrine_Record::getIterator() -
-
- getIterator -
-
- Doctrine_Record::getLast() -
-
- getLast -
-
- Doctrine_Record::getModified() -
-
- returns an array of modified fields and associated values -
-
- Doctrine_Record::getNode() -
-
- getter for node assciated with this record -
-
- Doctrine_Record::getOid() -
-
- getOid returns the object identifier -
-
- Doctrine_Record::getPrepared() -
-
- getPrepared -
-
- Doctrine_Record::getReferences() -
-
- getReferences -
-
- Doctrine_Record::getTable() -
-
- getTable returns the table object for this record -
-
- Doctrine_Record::hasReference() -
-
- hasRefence -
-
- Doctrine_Record::hasRelation() -
-
- method for checking existence of properties and Doctrine_Record references -
-
- Doctrine_Record::hydrate() -
-
- hydrate hydrates this object from given array -
-
- Doctrine_Record::identifier() -
-
- returns the primary keys of this object -
-
- Doctrine_Record::isModified() -
-
- isModified returns true if this record was modified, otherwise false -
-
- Doctrine_Record::isValid() -
-
- isValid -
-
- Doctrine_Record::load() -
-
- load loads all the unitialized properties from the database -
-
- Doctrine_Record::loadReference() -
-
- loadReference loads a related component -
-
- Doctrine_Record::mapValue() -
-
- mapValue This simple method is used for mapping values to $values property. -
-
- Doctrine_Record::merge() -
-
- merge merges this record with an array of values -
-
- Doctrine_Record::obtainReference() -
-
- obtainReference -
-
- Doctrine_Record::postDelete() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure. -
-
- Doctrine_Record::postInsert() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time. -
-
- Doctrine_Record::postSave() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure. -
-
- Doctrine_Record::postSerialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::postUnserialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::postUpdate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated. -
-
- Doctrine_Record::preDelete() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure. -
-
- Doctrine_Record::preInsert() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time. -
-
- Doctrine_Record::prepareIdentifiers() -
-
- prepareIdentifiers prepares identifiers for later use -
-
- Doctrine_Record::preSave() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure. -
-
- Doctrine_Record::preSerialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::preUnserialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::preUpdate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated. -
-
- Doctrine_Record::rawGet() -
-
- rawGet returns the value of a property, if the property is not yet loaded this method does NOT load it -
-
- Doctrine_Record::refresh() -
-
- refresh refresh internal data from the database -
-
- Doctrine_Record::refreshRelated() -
-
- refresh refres data of related objects from the database -
-
- Doctrine_Record::replace() -
-
- replace -
-
- Doctrine_Record::revert() -
-
- revert reverts this record to given version, this method only works if versioning plugin is enabled -
-
- Doctrine_Record::save() -
-
- applies the changes made to this object into database this method is smart enough to know if any changes are made and whether to use INSERT or UPDATE statement -
-
- Doctrine_Record::serialize() -
-
- serialize this method is automatically called when this Doctrine_Record is serialized -
-
- Doctrine_Record::set() -
-
- set method for altering properties and Doctrine_Record references if the load parameter is set to false this method will not try to load uninitialized record data -
-
- Doctrine_Record::setRelated() -
-
- setRelated -
-
- Doctrine_Record::setUp() -
-
- setUp this method is used for setting up relations and attributes it should be implemented by child classes -
-
- Doctrine_Record::state() -
-
- state returns / assigns the state of this record -
-
- Doctrine_Record::toArray() -
-
- toArray returns the record as an array -
-
- Doctrine_Record::toString() -
-
- -
-
- Doctrine_Record::trySave() -
-
- Tries to save the object and all its related components. -
-
- Doctrine_Record::unlink() -
-
- removeLinks removes links from this record to given records -
-
- Doctrine_Record::unserialize() -
-
- unseralize this method is automatically called everytime a Doctrine_Record object is unserialized -
-
- Doctrine_Record::validate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure, doing any custom / specialized validations that are neccessary. -
-
- Doctrine_Record::validateOnInsert() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be inserted into the data store the first time. -
-
- Doctrine_Record::validateOnUpdate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be updated. -
-
- Doctrine_Record::_index() -
-
- _index -
-
- Doctrine_Record::__call() -
-
- __call this method is a magic method that is being used for method overloading -
-
- Doctrine_Record::__toString() -
-
- returns a string representation of this object -
-
- Doctrine_Record::__unset() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-

Inherited From Doctrine_Record

-
-
-
- Doctrine_Record::STATE_CLEAN -
-
- -
-
- Doctrine_Record::STATE_DIRTY -
-
- -
-
- Doctrine_Record::STATE_LOCKED -
-
- -
-
- Doctrine_Record::STATE_PROXY -
-
- -
-
- Doctrine_Record::STATE_TCLEAN -
-
- -
-
- Doctrine_Record::STATE_TDIRTY -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
void  get()  
void  setTableDefinition()  
void  setUp()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- get  [line 46] -
-
- -
-
-
  - void get( - -$name, [ -$load = true]  -) -
-

- - - Parameters:
- - - - - - - -
-    - $name:  -
-    - $load:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record::get()
-
get returns a value of a property or a related component
-
- -
-
[ Top ]
-
- -
- -
- setTableDefinition  [line 35] -
-
- -
-
-
  - void setTableDefinition( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setUp  [line 39] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record::setUp()
-
setUp this method is used for setting up relations and attributes it should be implemented by child classes
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_File_Index.html b/api_documentation/trunk/Doctrine/Doctrine_File_Index.html deleted file mode 100644 index 1156a4811..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_File_Index.html +++ /dev/null @@ -1,1298 +0,0 @@ - - -
-

Class: Doctrine_File_Index

-Source Location: /Doctrine/File/Index.php

- -

Class Doctrine_File_Index

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_File_Index -

- -

- Located in /Doctrine/File/Index.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Record
-            |
-            --Doctrine_File_Index
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record

-
-
-
- Doctrine_Record::$_data -
-
- -
-
- Doctrine_Record::$_errorStack -
-
- -
-
- Doctrine_Record::$_filter -
-
- -
-
- Doctrine_Record::$_id -
-
- -
-
- Doctrine_Record::$_index -
-
- -
-
- Doctrine_Record::$_modified -
-
- -
-
- Doctrine_Record::$_node -
-
- -
-
- Doctrine_Record::$_oid -
-
- -
-
- Doctrine_Record::$_references -
-
- -
-
- Doctrine_Record::$_state -
-
- -
-
- Doctrine_Record::$_values -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Record

-
-
-
- Doctrine_Record::__construct() -
-
- constructor -
-
- Doctrine_Record::assignDefaultValues() -
-
- setDefaultValues sets the default values for records internal data -
-
- Doctrine_Record::assignIdentifier() -
-
- assignIdentifier -
-
- Doctrine_Record::call() -
-
- call -
-
- Doctrine_Record::cleanData() -
-
- cleanData -
-
- Doctrine_Record::columnCount() -
-
- alias for count() -
-
- Doctrine_Record::construct() -
-
- construct Empty tempalte method to provide concrete Record classes with the possibility to hook into the constructor procedure -
-
- Doctrine_Record::contains() -
-
- contains -
-
- Doctrine_Record::copy() -
-
- copy returns a copy of this object -
-
- Doctrine_Record::copyDeep() -
-
- copyDeep returns a copy of this object and all its related objects -
-
- Doctrine_Record::coreSetRelated() -
-
- -
-
- Doctrine_Record::count() -
-
- count this class implements countable interface -
-
- Doctrine_Record::delete() -
-
- deletes this data access object and all the related composites this operation is isolated by a transaction -
-
- Doctrine_Record::deleteNode() -
-
- used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS AS TREE -
-
- Doctrine_Record::errorStack() -
-
- errorStack assigns / returns record errorStack -
-
- Doctrine_Record::exists() -
-
- exists returns true if this record is persistent, otherwise false -
-
- Doctrine_Record::get() -
-
- get returns a value of a property or a related component -
-
- Doctrine_Record::getData() -
-
- getData return all the internal data -
-
- Doctrine_Record::getErrorStack() -
-
- getErrorStack -
-
- Doctrine_Record::getIncremented() -
-
- returns the value of autoincremented primary key of this object (if any) -
-
- Doctrine_Record::getIterator() -
-
- getIterator -
-
- Doctrine_Record::getLast() -
-
- getLast -
-
- Doctrine_Record::getModified() -
-
- returns an array of modified fields and associated values -
-
- Doctrine_Record::getNode() -
-
- getter for node assciated with this record -
-
- Doctrine_Record::getOid() -
-
- getOid returns the object identifier -
-
- Doctrine_Record::getPrepared() -
-
- getPrepared -
-
- Doctrine_Record::getReferences() -
-
- getReferences -
-
- Doctrine_Record::getTable() -
-
- getTable returns the table object for this record -
-
- Doctrine_Record::hasReference() -
-
- hasRefence -
-
- Doctrine_Record::hasRelation() -
-
- method for checking existence of properties and Doctrine_Record references -
-
- Doctrine_Record::hydrate() -
-
- hydrate hydrates this object from given array -
-
- Doctrine_Record::identifier() -
-
- returns the primary keys of this object -
-
- Doctrine_Record::isModified() -
-
- isModified returns true if this record was modified, otherwise false -
-
- Doctrine_Record::isValid() -
-
- isValid -
-
- Doctrine_Record::load() -
-
- load loads all the unitialized properties from the database -
-
- Doctrine_Record::loadReference() -
-
- loadReference loads a related component -
-
- Doctrine_Record::mapValue() -
-
- mapValue This simple method is used for mapping values to $values property. -
-
- Doctrine_Record::merge() -
-
- merge merges this record with an array of values -
-
- Doctrine_Record::obtainReference() -
-
- obtainReference -
-
- Doctrine_Record::postDelete() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure. -
-
- Doctrine_Record::postInsert() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time. -
-
- Doctrine_Record::postSave() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure. -
-
- Doctrine_Record::postSerialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::postUnserialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::postUpdate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated. -
-
- Doctrine_Record::preDelete() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure. -
-
- Doctrine_Record::preInsert() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time. -
-
- Doctrine_Record::prepareIdentifiers() -
-
- prepareIdentifiers prepares identifiers for later use -
-
- Doctrine_Record::preSave() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure. -
-
- Doctrine_Record::preSerialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::preUnserialize() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -
-
- Doctrine_Record::preUpdate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated. -
-
- Doctrine_Record::rawGet() -
-
- rawGet returns the value of a property, if the property is not yet loaded this method does NOT load it -
-
- Doctrine_Record::refresh() -
-
- refresh refresh internal data from the database -
-
- Doctrine_Record::refreshRelated() -
-
- refresh refres data of related objects from the database -
-
- Doctrine_Record::replace() -
-
- replace -
-
- Doctrine_Record::revert() -
-
- revert reverts this record to given version, this method only works if versioning plugin is enabled -
-
- Doctrine_Record::save() -
-
- applies the changes made to this object into database this method is smart enough to know if any changes are made and whether to use INSERT or UPDATE statement -
-
- Doctrine_Record::serialize() -
-
- serialize this method is automatically called when this Doctrine_Record is serialized -
-
- Doctrine_Record::set() -
-
- set method for altering properties and Doctrine_Record references if the load parameter is set to false this method will not try to load uninitialized record data -
-
- Doctrine_Record::setRelated() -
-
- setRelated -
-
- Doctrine_Record::setUp() -
-
- setUp this method is used for setting up relations and attributes it should be implemented by child classes -
-
- Doctrine_Record::state() -
-
- state returns / assigns the state of this record -
-
- Doctrine_Record::toArray() -
-
- toArray returns the record as an array -
-
- Doctrine_Record::toString() -
-
- -
-
- Doctrine_Record::trySave() -
-
- Tries to save the object and all its related components. -
-
- Doctrine_Record::unlink() -
-
- removeLinks removes links from this record to given records -
-
- Doctrine_Record::unserialize() -
-
- unseralize this method is automatically called everytime a Doctrine_Record object is unserialized -
-
- Doctrine_Record::validate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure, doing any custom / specialized validations that are neccessary. -
-
- Doctrine_Record::validateOnInsert() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be inserted into the data store the first time. -
-
- Doctrine_Record::validateOnUpdate() -
-
- Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be updated. -
-
- Doctrine_Record::_index() -
-
- _index -
-
- Doctrine_Record::__call() -
-
- __call this method is a magic method that is being used for method overloading -
-
- Doctrine_Record::__toString() -
-
- returns a string representation of this object -
-
- Doctrine_Record::__unset() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-

Inherited From Doctrine_Record

-
-
-
- Doctrine_Record::STATE_CLEAN -
-
- -
-
- Doctrine_Record::STATE_DIRTY -
-
- -
-
- Doctrine_Record::STATE_LOCKED -
-
- -
-
- Doctrine_Record::STATE_PROXY -
-
- -
-
- Doctrine_Record::STATE_TCLEAN -
-
- -
-
- Doctrine_Record::STATE_TDIRTY -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  setTableDefinition()  
void  setUp()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- setTableDefinition  [line 35] -
-
- -
-
-
  - void setTableDefinition( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setUp  [line 49] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record::setUp()
-
setUp this method is used for setting up relations and attributes it should be implemented by child classes
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Formatter.html b/api_documentation/trunk/Doctrine/Doctrine_Formatter.html deleted file mode 100644 index 89b921e27..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Formatter.html +++ /dev/null @@ -1,901 +0,0 @@ - - -
-

Class: Doctrine_Formatter

-Source Location: /Doctrine/Formatter.php

- -

Class Doctrine_Formatter

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Formatter -

- -

- Located in /Doctrine/Formatter.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Formatter
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  convertBooleans()  convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
string  escapePattern()  Quotes pattern (% and _) characters in a string)
string  fixIndexName()  Removes any formatting in an index name using the 'idxname_format' option
string  fixSequenceName()  Removes any formatting in an sequence name using the 'seqname_format' option
string  getIndexName()  adds index name formatting to a index name
string  getSequenceName()  adds sequence name formatting to a sequence name
mixed  quote()  quote quotes given input parameter
string  quoteIdentifier()  Quote a string so it can be safely used as a table or column name
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- convertBooleans  [line 72] -
-
- -
-
-
  - void convertBooleans( -array -$item  -) -
-

- -

convertBooleans some drivers need the boolean values to be converted into integers when using DQL API -

-

This method takes care of that conversion

- Parameters:
- - - - -
- array   - $item:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- escapePattern  [line 47] -
-
- -
-
-
  - string escapePattern( -string -$text  -) -
-

- -

Quotes pattern (% and _) characters in a string) -

-

EXPERIMENTAL

WARNING: this function is experimental and may change signature at any time until labelled as non-experimental

- Parameters:
- - - - -
- string   - $text:  - the input string to quote
- -
- API Tags:
- - - - - - - -
Return:  quoted string
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fixIndexName  [line 190] -
-
- -
-
-
  - string fixIndexName( -string -$idx  -) -
-

- -

Removes any formatting in an index name using the 'idxname_format' option -

- - Parameters:
- - - - -
- string   - $idx:  - string that containts name of anl index
- -
- API Tags:
- - - - - - - -
Return:  name of the index with possible formatting removed
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fixSequenceName  [line 174] -
-
- -
-
-
  - string fixSequenceName( -string -$sqn  -) -
-

- -

Removes any formatting in an sequence name using the 'seqname_format' option -

- - Parameters:
- - - - -
- string   - $sqn:  - string that containts name of a potential sequence
- -
- API Tags:
- - - - - - - -
Return:  name of the sequence with possible formatting removed
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIndexName  [line 216] -
-
- -
-
-
  - string getIndexName( -string -$idx  -) -
-

- -

adds index name formatting to a index name -

- - Parameters:
- - - - -
- string   - $idx:  - name of the index
- -
- API Tags:
- - - - - - - -
Return:  formatted index name
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSequenceName  [line 205] -
-
- -
-
-
  - string getSequenceName( -string -$sqn  -) -
-

- -

adds sequence name formatting to a sequence name -

- - Parameters:
- - - - -
- string   - $sqn:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  formatted sequence name
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- quote  [line 139] -
-
- -
-
-
  - mixed quote( -mixed -$input, [string -$type = null]  -) -
-

- -

quote quotes given input parameter -

- - Parameters:
- - - - - - - -
- mixed   - $input:  - parameter to be quoted
- string   - $type:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- quoteIdentifier  [line 119] -
-
- -
-
-
  - string quoteIdentifier( -string -$str, [bool -$checkOption = true]  -) -
-

- -

Quote a string so it can be safely used as a table or column name -

-

Delimiting style depends on which database driver is being used.

NOTE: just because you CAN use delimited identifiers doesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve.

Portability is broken by using the following characters inside delimited identifiers:

  • backtick (`) -- due to MySQL
  • double quote (") -- due to Oracle
  • brackets ([ or ]) -- due to Access
Delimited identifiers are known to generally work correctly under the following drivers:
  • mssql
  • mysql
  • mysqli
  • oci8
  • pgsql
  • sqlite
InterBase doesn't seem to be able to use delimited identifiers via PHP 4. They work fine under PHP 5.

- Parameters:
- - - - - - - -
- string   - $str:  - identifier name to be quoted
- bool   - $checkOption:  - check the 'quote_identifier' option
- -
- API Tags:
- - - - - - - -
Return:  quoted identifier string
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hook.html b/api_documentation/trunk/Doctrine/Doctrine_Hook.html deleted file mode 100644 index 9cf922769..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hook.html +++ /dev/null @@ -1,971 +0,0 @@ - - -
-

Class: Doctrine_Hook

-Source Location: /Doctrine/Hook.php

- -

Class Doctrine_Hook

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Hook -

- -

- Located in /Doctrine/Hook.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 2149 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  $fieldParsers  
array  $hooks  
array  $joins  
Doctrine_Query  $query  
array  $typeParsers  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Hook  __construct()  
Doctrine_Query  getQuery()  getQuery
void  hookLimit()  
void  hookOffset()  
boolean  hookOrderby()  hookOrderBy builds DQL query orderby part from given parameter array
boolean  hookWhere()  hookWhere builds DQL query where part from given parameter array
void  setFieldParser()  setFieldParser
void  setTypeParser()  setTypeParser
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $fieldParsers - = array() [line 57] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $hooks - = array(
'where',
'orderby',
'limit',
'offset'
)
[line 46] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $joins - [line 42] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Query   - $query - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $typeParsers - = array(
'char' => 'Doctrine_Hook_WordLike',
'string' => 'Doctrine_Hook_WordLike',
'varchar' => 'Doctrine_Hook_WordLike',
'integer' => 'Doctrine_Hook_Integer',
'enum' => 'Doctrine_Hook_Integer',
'time' => 'Doctrine_Hook_Time',
'date' => 'Doctrine_Hook_Date',
)
[line 63] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 76] -
-
- -
-
-
  - Doctrine_Hook __construct( -Doctrine_Query -$query  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Query   - $query:  - the base query
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuery  [line 94] -
-
- -
-
-
  - Doctrine_Query getQuery( -) -
-

- -

getQuery -

- -
- API Tags:
- - - - - - - -
Return:  returns the query object associated with this hook
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hookLimit  [line 204] -
-
- -
-
-
  - void hookLimit( -integer -$limit  -) -
-

- - - Parameters:
- - - - -
- integer   - $limit:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hookOffset  [line 211] -
-
- -
-
-
  - void hookOffset( -integer -$offset  -) -
-

- - - Parameters:
- - - - -
- integer   - $offset:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hookOrderby  [line 172] -
-
- -
-
-
  - boolean hookOrderby( -array -$params  -) -
-

- -

hookOrderBy builds DQL query orderby part from given parameter array -

- - Parameters:
- - - - -
- array   - $params:  - an array containing all fields which the built query should be ordered by
- -
- API Tags:
- - - - - - - -
Return:  whether or not the hooking was successful
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hookWhere  [line 126] -
-
- -
-
-
  - boolean hookWhere( -array -$params  -) -
-

- -

hookWhere builds DQL query where part from given parameter array -

- - Parameters:
- - - - -
- array   - $params:  - an associative array containing field names and their values
- -
- API Tags:
- - - - - - - -
Return:  whether or not the hooking was
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setFieldParser  [line 114] -
-
- -
-
-
  - void setFieldParser( -string -$field, string|object -$parser  -) -
-

- -

setFieldParser -

- - Parameters:
- - - - - - - -
- string   - $field:  - field name
- string|object    - $parser:  - parser name or custom parser object
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTypeParser  [line 104] -
-
- -
-
-
  - void setTypeParser( -string -$type, string|object -$parser  -) -
-

- -

setTypeParser -

- - Parameters:
- - - - - - - -
- string   - $type:  - type name
- string|object    - $parser:  - parser name or custom parser object
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hook_Equal.html b/api_documentation/trunk/Doctrine/Doctrine_Hook_Equal.html deleted file mode 100644 index 24ef1774f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hook_Equal.html +++ /dev/null @@ -1,532 +0,0 @@ - - -
-

Class: Doctrine_Hook_Equal

-Source Location: /Doctrine/Hook/Equal.php

- -

Class Doctrine_Hook_Equal

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Hook_Equal -

- -

- Located in /Doctrine/Hook/Equal.php [line 33] -

- - -
Doctrine_Hook_Parser
-   |
-   --Doctrine_Hook_Equal
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::$condition -
-
- -
-
- Doctrine_Hook_Parser::$params -
-
- -
-
-
-
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::getCondition() -
-
- -
-
- Doctrine_Hook_Parser::getParams() -
-
- getParams returns the parameters associated with this parser -
-
- Doctrine_Hook_Parser::parse() -
-
- parse -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  parse
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 47] -
-
- -
-
-
  - void parse( -string -$alias, string -$field, mixed -$value  -) -
-

- -

parse -

-

Parses given field and field value to DQL condition and parameters. This method should always return prepared statement conditions (conditions that use placeholders instead of literal values).

- Parameters:
- - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Hook_Parser::parse()
-
parse
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hook_Integer.html b/api_documentation/trunk/Doctrine/Doctrine_Hook_Integer.html deleted file mode 100644 index 0b88fa9ee..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hook_Integer.html +++ /dev/null @@ -1,557 +0,0 @@ - - -
-

Class: Doctrine_Hook_Integer

-Source Location: /Doctrine/Hook/Integer.php

- -

Class Doctrine_Hook_Integer

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Hook_Integer -

- -

- Located in /Doctrine/Hook/Integer.php [line 33] -

- - -
Doctrine_Hook_Parser
-   |
-   --Doctrine_Hook_Parser_Complex
-      |
-      --Doctrine_Hook_Integer
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::$condition -
-
- -
-
- Doctrine_Hook_Parser::$params -
-
- -
-
-
-
-

Inherited From Doctrine_Hook_Parser_Complex

-
-
-
- Doctrine_Hook_Parser_Complex::parse() -
-
- parse -
-
- Doctrine_Hook_Parser_Complex::parseClause() -
-
- parseClause -
-
- Doctrine_Hook_Parser_Complex::parseSingle() -
-
- parseSingle -
-
-
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::getCondition() -
-
- -
-
- Doctrine_Hook_Parser::getParams() -
-
- getParams returns the parameters associated with this parser -
-
- Doctrine_Hook_Parser::parse() -
-
- parse -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parseSingle()  parse
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parseSingle  [line 47] -
-
- -
-
-
  - void parseSingle( -string -$alias, string -$field, mixed -$value  -) -
-

- -

parse -

-

Parses given field and field value to DQL condition and parameters. This method should always return prepared statement conditions (conditions that use placeholders instead of literal values).

- Parameters:
- - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Hook_Parser_Complex::parseSingle()
-
parseSingle
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hook_Parser.html b/api_documentation/trunk/Doctrine/Doctrine_Hook_Parser.html deleted file mode 100644 index 62bc70afc..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hook_Parser.html +++ /dev/null @@ -1,667 +0,0 @@ - - -
-

Class: Doctrine_Hook_Parser

-Source Location: /Doctrine/Hook/Parser.php

- -

Class Doctrine_Hook_Parser

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Hook_Parser -

- -

- Located in /Doctrine/Hook/Parser.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1158 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Hook_Equal - Doctrine_Hook_Equal -
Doctrine_Hook_Parser_Complex - Doctrine_Hook_Parser_Complex -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $condition  
mixed  $params  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
void  getCondition()  
array  getParams()  getParams returns the parameters associated with this parser
void  parse()  parse
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $condition - [line 35] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $params - = array() [line 36] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- getCondition  [line 38] -
-
- -
-
-
  - void getCondition( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getParams  [line 48] -
-
- -
-
-
  - array getParams( -) -
-

- -

getParams returns the parameters associated with this parser -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parse  [line 64] -
-
- -
-
-
  - void parse( -string -$alias, string -$field, mixed -$value  -) -
-

- -

parse -

-

Parses given field and field value to DQL condition and parameters. This method should always return prepared statement conditions (conditions that use placeholders instead of literal values).

- Parameters:
- - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
- -
- API Tags:
- - - - - - - -
Abstract:  
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hook_Parser_Complex.html b/api_documentation/trunk/Doctrine/Doctrine_Hook_Parser_Complex.html deleted file mode 100644 index 5cf9d02a5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hook_Parser_Complex.html +++ /dev/null @@ -1,721 +0,0 @@ - - -
-

Class: Doctrine_Hook_Parser_Complex

-Source Location: /Doctrine/Hook/Parser/Complex.php

- -

Class Doctrine_Hook_Parser_Complex

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Hook_Parser_Complex -

- -

- Located in /Doctrine/Hook/Parser/Complex.php [line 33] -

- - -
Doctrine_Hook_Parser
-   |
-   --Doctrine_Hook_Parser_Complex
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1482 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Hook_Integer - Doctrine_Hook_Integer -
Doctrine_Hook_WordLike - Doctrine_Hook_WordLike -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::$condition -
-
- -
-
- Doctrine_Hook_Parser::$params -
-
- -
-
-
-
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::getCondition() -
-
- -
-
- Doctrine_Hook_Parser::getParams() -
-
- getParams returns the parameters associated with this parser -
-
- Doctrine_Hook_Parser::parse() -
-
- parse -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
void  parse()  parse
void  parseClause()  parseClause
void  parseSingle()  parseSingle
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 47] -
-
- -
-
-
  - void parse( -string -$alias, string -$field, mixed -$value  -) -
-

- -

parse -

-

Parses given field and field value to DQL condition and parameters. This method should always return prepared statement conditions (conditions that use placeholders instead of literal values).

- Parameters:
- - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Hook_Parser::parse()
-
parse
-
- -
-
[ Top ]
-
- -
- -
- parseClause  [line 59] -
-
- -
-
-
  - void parseClause( -string -$alias, string -$field, mixed -$value  -) -
-

- -

parseClause -

- - Parameters:
- - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseSingle  [line 94] -
-
- -
-
-
  - void parseSingle( -string -$alias, string -$field, mixed -$value  -) -
-

- -

parseSingle -

- - Parameters:
- - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
- -
- API Tags:
- - - - - - - -
Abstract:  
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hook_WordLike.html b/api_documentation/trunk/Doctrine/Doctrine_Hook_WordLike.html deleted file mode 100644 index 7b6b215ee..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hook_WordLike.html +++ /dev/null @@ -1,557 +0,0 @@ - - -
-

Class: Doctrine_Hook_WordLike

-Source Location: /Doctrine/Hook/WordLike.php

- -

Class Doctrine_Hook_WordLike

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Hook_WordLike -

- -

- Located in /Doctrine/Hook/WordLike.php [line 33] -

- - -
Doctrine_Hook_Parser
-   |
-   --Doctrine_Hook_Parser_Complex
-      |
-      --Doctrine_Hook_WordLike
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1482 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::$condition -
-
- -
-
- Doctrine_Hook_Parser::$params -
-
- -
-
-
-
-

Inherited From Doctrine_Hook_Parser_Complex

-
-
-
- Doctrine_Hook_Parser_Complex::parse() -
-
- parse -
-
- Doctrine_Hook_Parser_Complex::parseClause() -
-
- parseClause -
-
- Doctrine_Hook_Parser_Complex::parseSingle() -
-
- parseSingle -
-
-
-

Inherited From Doctrine_Hook_Parser

-
-
-
- Doctrine_Hook_Parser::getCondition() -
-
- -
-
- Doctrine_Hook_Parser::getParams() -
-
- getParams returns the parameters associated with this parser -
-
- Doctrine_Hook_Parser::parse() -
-
- parse -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parseSingle()  parse
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parseSingle  [line 47] -
-
- -
-
-
  - void parseSingle( -string -$alias, string -$field, mixed -$value  -) -
-

- -

parse -

-

Parses given field and field value to DQL condition and parameters. This method should always return prepared statement conditions (conditions that use placeholders instead of literal values).

- Parameters:
- - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Hook_Parser_Complex::parseSingle()
-
parseSingle
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hydrate.html b/api_documentation/trunk/Doctrine/Doctrine_Hydrate.html deleted file mode 100644 index 8cbace7f5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hydrate.html +++ /dev/null @@ -1,3684 +0,0 @@ - - -
-

Class: Doctrine_Hydrate

-Source Location: /Doctrine/Hydrate.php

- -

Class Doctrine_Hydrate

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Serializable (internal interface)
-

-

Doctrine_Hydrate is a base class for Doctrine_RawSql and Doctrine_Query. -

-

Its purpose is to populate object graphs.

-

- Located in /Doctrine/Hydrate.php [line 35] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Hydrate
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2234 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Query_Abstract - Doctrine_Query_Abstract -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
CREATE  constant for CREATE queries
DELETE  constant for DELETE queries
HYDRATE_ARRAY  Constant for the array hydration mode.
HYDRATE_RECORD  Constant for the record (object) hydration mode.
INSERT  constant for INSERT queries
SELECT  constant for SELECT queries
UPDATE  constant for UPDATE queries
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  $aggregateMap  
array  $parts  
mixed  $pendingAggregates  
integer  $type  
array  $_aliasMap  
array  $_cache  
Doctrine_Connection  $_conn  
boolean  $_expireCache  
mixed  $_hydrationMode  The current hydration mode.
array  $_options  
array  $_params  
string  $_sql  
mixed  $_tableAliases  
array  $_tableAliasSeeds  
mixed  $_timeToLive  
Doctrine_View  $_view  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Hydrate  __construct()  constructor
Doctrine_Hydrate  addQueryPart()  addQueryPart adds a query part in the query part array
Doctrine_Hydrate  addTableAlias()  addTableAlias adds an alias for table and associates it with given component alias
string  applyInheritance()  applyInheritance applies column aggregation inheritance to DQL / SQL query
void  clear()  clear resets all the variables
void  convertEnums()  
Doctrine_Hydrate  copyAliases()  copyAliases copy aliases from another Hydrate object
Doctrine_Hydrate  createSubquery()  createSubquery creates a subquery
Doctrine_Collection  execute()  execute executes the query and populates the data set
Doctrine_Hydrate  expireCache()  expireCache
array  fetchArray()  fetchArray Convenience method to execute using array fetching as hydration mode.
mixed  fetchOne()  fetchOne Convenience method to execute the query and return the first item of the collection.
string  generateNewTableAlias()  generateNewTableAlias generates a new alias from given table alias
string  generateTableAlias()  generateTableAlias generates a table alias from given table name and associates it with given component alias
array  getAliasDeclaration()  getAliasDeclaration get the declaration for given component alias
array  getAliasMap()  getAliasMap returns the component alias map
string  getCachedForm()  getCachedForm returns the cached form of this query for given resultSet
Doctrine_Cache_Interface|boolean|null  getCacheDriver()  getCacheDriver returns the cache driver associated with this object
string  getComponentAlias()  getComponentAlias get component alias associated with given table alias
Doctrine_Connection  getConnection()  getConnection
array  getParams()  getParams
Doctrine_Hydrate  getQueryPart()  setQueryPart sets a query part in the query part array
Doctrine_Table  getRoot()  getRoot returns the root component for this object
array  getRootAlias()  getRootAlias returns the alias of the the root component
array  getRootDeclaration()  getRootDeclaration returns the root declaration
string  getSql()  getSql return the sql associated with this object
string  getTableAlias()  getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible
array  getTableAliases()  getTableAliases returns all table aliases
integer  getTableAliasSeed()  getTableAliasSeed returns the alias seed for given table alias
integer  getType()  getType
Doctrine_View  getView()  getView returns the view associated with this query object (if any)
boolean  hasAliasDeclaration()  hasAliasDeclaration whether or not this object has a declaration for given component alias
boolean  hasTableAlias()  hasTableAlias whether or not this object has given tableAlias
boolean  isLimitSubqueryUsed()  limitSubqueryUsed whether or not limit subquery was used
array  parseData2()  parseData parses the data returned by statement object
Doctrine_Hydrate  removeQueryPart()  removeQueryPart removes a query part from the query part array
array  serialize()  serialize this method is automatically called when this Doctrine_Hydrate is serialized
Doctrine_Hydrate  setAliasMap()  setAliasMap sets the whole component alias map
Doctrine_Hydrate  setCacheLifeSpan()  setCacheLifeSpan
void  setHydrationMode()  Sets the fetchmode.
void  setParams()  setParams
Doctrine_Hydrate  setQueryPart()  setQueryPart sets a query part in the query part array
void  setView()  setView sets a database view this query object uses this method should only be called internally by doctrine
void  unserialize()  unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized
Doctrine_Hydrate  useCache()  useCache
void  _execute()  
void  _setLastElement()  _setLastElement
string  __toString()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $aggregateMap - = array() [line 104] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $parts - = array(
'select' => array(),'distinct'=>false,'forUpdate'=>false,'from'=>array(),'set'=>array(),'join'=>array(),'where'=>array(),'groupby'=>array(),'having'=>array(),'orderby'=>array(),'limit'=>false,'offset'=>false,)
[line 120] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $pendingAggregates - = array() [line 99] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $type - = self::SELECT [line 139] - -
- - API Tags:
- - - - - - - -
See:  Doctrine_Query::* constants
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_aliasMap - = array() [line 95] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_cache - [line 143] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Connection   - $_conn - [line 77] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - boolean   - $_expireCache - = false [line 151] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_hydrationMode - = self::HYDRATE_RECORD [line 147] - -
- -

The current hydration mode. -

- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_options - = array(
'fetchMode' => Doctrine::FETCH_RECORD,
'parserCache' => false,
'resultSetCache' => false,
)
[line 108] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_params - = array() [line 73] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $_sql - [line 116] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_tableAliases - = array() [line 155] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_tableAliasSeeds - = array() [line 161] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_timeToLive - [line 153] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_View   - $_view - [line 82] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 167] -
-
- -
-
-
  - Doctrine_Hydrate __construct( -[Doctrine_Connection|null -$connection = null]  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- Doctrine_Connection|null   - $connection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addQueryPart  [line 476] -
-
- -
-
-
  - Doctrine_Hydrate addQueryPart( -string -$name, string -$part  -) -
-

- -

addQueryPart adds a query part in the query part array -

- - Parameters:
- - - - - - - -
- string   - $name:  - the name of the query part to be added
- string   - $part:  - query part string
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Hydrate_Exception if trying to add unknown query part
- - -
-
[ Top ]
-
- -
- -
- addTableAlias  [line 435] -
-
- -
-
-
  - Doctrine_Hydrate addTableAlias( -string -$tableAlias, string -$componentAlias  -) -
-

- -

addTableAlias adds an alias for table and associates it with given component alias -

- - Parameters:
- - - - - - - -
- string   - $componentAlias:  - the alias for the query component associated with given tableAlias
- string   - $tableAlias:  - the table alias to be added
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- applyInheritance  [line 858] -
-
- -
-
-
  - string applyInheritance( -) -
-

- -

applyInheritance applies column aggregation inheritance to DQL / SQL query -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- clear  [line 632] -
-
- -
-
-
  - void clear( -) -
-

- -

clear resets all the variables -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- convertEnums  [line 698] -
-
- -
-
-
  - void convertEnums( - -$params  -) -
-

- - - Parameters:
- - - - -
-    - $params:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- copyAliases  [line 590] -
-
- -
-
-
  - Doctrine_Hydrate copyAliases( -Doctrine_Hydrate -$query  -) -
-

- -

copyAliases copy aliases from another Hydrate object -

-

this method is needed by DQL subqueries which need the aliases of the parent query

- Parameters:
- - - - -
- Doctrine_Hydrate   - $query:  - the query object from which the aliases are copied from
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- createSubquery  [line 603] -
-
- -
-
-
  - Doctrine_Hydrate createSubquery( -) -
-

- -

createSubquery creates a subquery -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- execute  [line 781] -
-
- -
-
-
  - Doctrine_Collection execute( -[string -$params = array()], [ -$hydrationMode = null]  -) -
-

- -

execute executes the query and populates the data set -

- - Parameters:
- - - - - - - -
- string   - $params:  -
-    - $hydrationMode:  -
- -
- API Tags:
- - - - - - - -
Return:  the root collection
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- expireCache  [line 256] -
-
- -
-
-
  - Doctrine_Hydrate expireCache( -[boolean -$expire = true]  -) -
-

- -

expireCache -

- - Parameters:
- - - - -
- boolean   - $expire:  - whether or not to force cache expiration
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchArray  [line 918] -
-
- -
-
-
  - array fetchArray( -[string -$params = array()]  -) -
-

- -

fetchArray Convenience method to execute using array fetching as hydration mode. -

- - Parameters:
- - - - -
- string   - $params:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchOne  [line 930] -
-
- -
-
-
  - mixed fetchOne( -[string -$params = array()], [int -$hydrationMode = null]  -) -
-

- -

fetchOne Convenience method to execute the query and return the first item of the collection. -

- - Parameters:
- - - - - - - -
- string   - $params:  - Parameters
- int   - $hydrationMode:  - Hydration mode
- -
- API Tags:
- - - - - - - -
Return:  Array or Doctrine_Collection or false if no result.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- generateNewTableAlias  [line 330] -
-
- -
-
-
  - string generateNewTableAlias( -string -$tableAlias  -) -
-

- -

generateNewTableAlias generates a new alias from given table alias -

- - Parameters:
- - - - -
- string   - $tableAlias:  - table alias from which to generate the new alias from
- -
- API Tags:
- - - - - - - -
Return:  the created table alias
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- generateTableAlias  [line 396] -
-
- -
-
-
  - string generateTableAlias( -string -$componentAlias, string -$tableName  -) -
-

- -

generateTableAlias generates a table alias from given table name and associates it with given component alias -

- - Parameters:
- - - - - - - -
- string   - $componentAlias:  - the component alias to be associated with generated table alias
- string   - $tableName:  - the table name from which to generate the table alias
- -
- API Tags:
- - - - - - - -
Return:  the generated table alias
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAliasDeclaration  [line 571] -
-
- -
-
-
  - array getAliasDeclaration( -string -$componentAlias  -) -
-

- -

getAliasDeclaration get the declaration for given component alias -

- - Parameters:
- - - - -
- string   - $componentAlias:  - the component alias the retrieve the declaration from
- -
- API Tags:
- - - - - - - -
Return:  the alias declaration
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAliasMap  [line 721] -
-
- -
-
-
  - array getAliasMap( -) -
-

- -

getAliasMap returns the component alias map -

- -
- API Tags:
- - - - - - - -
Return:  component alias map
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCachedForm  [line 732] -
-
- -
-
-
  - string getCachedForm( - -$resultSet  -) -
-

- -

getCachedForm returns the cached form of this query for given resultSet -

- - Parameters:
- - - - -
- array   - $resultSet:  -
- -
- API Tags:
- - - - - - - -
Return:  serialized string representation of this query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCacheDriver  [line 283] -
-
- -
-
-
  - Doctrine_Cache_Interface|boolean|null getCacheDriver( -) -
-

- -

getCacheDriver returns the cache driver associated with this object -

- -
- API Tags:
- - - - - - - -
Return:  cache driver
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getComponentAlias  [line 366] -
-
- -
-
-
  - string getComponentAlias( -string -$tableAlias  -) -
-

- -

getComponentAlias get component alias associated with given table alias -

- - Parameters:
- - - - -
- string   - $tableAlias:  - the table alias that identifies the component alias
- -
- API Tags:
- - - - - - - -
Return:  component alias
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnection  [line 655] -
-
- -
-
-
  - Doctrine_Connection getConnection( -) -
-

- -

getConnection -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getParams  [line 686] -
-
- -
-
-
  - array getParams( -) -
-

- -

getParams -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQueryPart  [line 497] -
-
- -
-
-
  - Doctrine_Hydrate getQueryPart( -string -$part, string -$name  -) -
-

- -

setQueryPart sets a query part in the query part array -

- - Parameters:
- - - - - - - -
- string   - $name:  - the name of the query part to be set
- string   - $part:  - query part string
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Hydrate_Exception if trying to set unknown query part
- - -
-
[ Top ]
-
- -
- -
- getRoot  [line 208] -
-
- -
-
-
  - Doctrine_Table getRoot( -) -
-

- -

getRoot returns the root component for this object -

- -
- API Tags:
- - - - - - - -
Return:  root components table
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRootAlias  [line 180] -
-
- -
-
-
  - array getRootAlias( -) -
-

- -

getRootAlias returns the alias of the the root component -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRootDeclaration  [line 196] -
-
- -
-
-
  - array getRootDeclaration( -) -
-

- -

getRootDeclaration returns the root declaration -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSql  [line 224] -
-
- -
-
-
  - string getSql( -) -
-

- -

getSql return the sql associated with this object -

- -
- API Tags:
- - - - - - - -
Return:  sql query string
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTableAlias  [line 453] -
-
- -
-
-
  - string getTableAlias( -string -$componentAlias, [string -$tableName = null]  -) -
-

- -

getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible -

-

this method is used for the creation of short table aliases, its also smart enough to check if an alias already exists for given component (componentAlias)

- Parameters:
- - - - - - - -
- string   - $componentAlias:  - the alias for the query component to search table alias for
- string   - $tableName:  - the table name from which the table alias is being created
- -
- API Tags:
- - - - - - - -
Return:  the generated / fetched short alias
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTableAliases  [line 423] -
-
- -
-
-
  - array getTableAliases( -) -
-

- -

getTableAliases returns all table aliases -

- -
- API Tags:
- - - - - - - -
Return:  table aliases as an array
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTableAliasSeed  [line 380] -
-
- -
-
-
  - integer getTableAliasSeed( -string -$tableAlias  -) -
-

- -

getTableAliasSeed returns the alias seed for given table alias -

- - Parameters:
- - - - -
- string   - $tableAlias:  - table alias that identifies the alias seed
- -
- API Tags:
- - - - - - - -
Return:  table alias seed
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getType  [line 848] -
-
- -
-
-
  - integer getType( -) -
-

- -

getType -

-

returns the type of this query object by default the type is Doctrine_Hydrate::SELECT but if update() or delete() are being called the type is Doctrine_Hydrate::UPDATE and Doctrine_Hydrate::DELETE, respectively

-
- API Tags:
- - - - - - - - - - - - - - - - -
Return:  return the query type
See:  Doctrine_Hydrate::DELETE
See:  Doctrine_Hydrate::UPDATE
See:  Doctrine_Hydrate::SELECT
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getView  [line 677] -
-
- -
-
-
  - Doctrine_View getView( -) -
-

- -

getView returns the view associated with this query object (if any) -

- -
- API Tags:
- - - - - - - -
Return:  the view associated with this query object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasAliasDeclaration  [line 560] -
-
- -
-
-
  - boolean hasAliasDeclaration( -string -$componentAlias  -) -
-

- -

hasAliasDeclaration whether or not this object has a declaration for given component alias -

- - Parameters:
- - - - -
- string   - $componentAlias:  - the component alias the retrieve the declaration from
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasTableAlias  [line 355] -
-
- -
-
-
  - boolean hasTableAlias( -string -$tableAlias  -) -
-

- -

hasTableAlias whether or not this object has given tableAlias -

- - Parameters:
- - - - -
- string   - $tableAlias:  - the table alias to be checked
- -
- API Tags:
- - - - - - - -
Return:  true if this object has given alias, otherwise false
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isLimitSubqueryUsed  [line 622] -
-
- -
-
-
  - boolean isLimitSubqueryUsed( -) -
-

- -

limitSubqueryUsed whether or not limit subquery was used -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- parseData2  [line 964] -
-
- -
-
-
  - array parseData2( -mixed -$stmt, -$hydrationMode  -) -
-

- -

parseData parses the data returned by statement object -

-

This is method defines the core of Doctrine object population algorithm hence this method strives to be as fast as possible

The key idea is the loop over the rowset only once doing all the needed operations within this massive loop.

- Parameters:
- - - - - - - -
- mixed   - $stmt:  -
-    - $hydrationMode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- removeQueryPart  [line 513] -
-
- -
-
-
  - Doctrine_Hydrate removeQueryPart( -string -$name  -) -
-

- -

removeQueryPart removes a query part from the query part array -

- - Parameters:
- - - - -
- string   - $name:  - the name of the query part to be removed
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Hydrate_Exception if trying to remove unknown query part
- - -
-
[ Top ]
-
- -
- -
- serialize  [line 307] -
-
- -
-
-
  - array serialize( -) -
-

- -

serialize this method is automatically called when this Doctrine_Hydrate is serialized -

- -
- API Tags:
- - - - - - - -
Return:  an array of serialized properties
Access:  public
-
- - -
-
Implementation of:
-
-
Serializable::serialize
-
- -
-
[ Top ]
-
- -
- -
- setAliasMap  [line 709] -
-
- -
-
-
  - Doctrine_Hydrate setAliasMap( - -$map  -) -
-

- -

setAliasMap sets the whole component alias map -

- - Parameters:
- - - - -
- array   - $map:  - alias map
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setCacheLifeSpan  [line 268] -
-
- -
-
-
  - Doctrine_Hydrate setCacheLifeSpan( -integer -$timeToLive  -) -
-

- -

setCacheLifeSpan -

- - Parameters:
- - - - -
- integer   - $timeToLive:  - how long the cache entry is valid
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setHydrationMode  [line 296] -
-
- -
-
-
  - void setHydrationMode( - -$hydrationMode, integer -$fetchmode  -) -
-

- -

Sets the fetchmode. -

- - Parameters:
- - - - - - - -
- integer   - $fetchmode:  - One of the Doctrine_Hydrate::HYDRATE_* constants.
-    - $hydrationMode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setParams  [line 695] -
-
- -
-
-
  - void setParams( -[ -$params = array()]  -) -
-

- -

setParams -

- - Parameters:
- - - - -
- array   - $params:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setQueryPart  [line 535] -
-
- -
-
-
  - Doctrine_Hydrate setQueryPart( -string -$name, string -$part  -) -
-

- -

setQueryPart sets a query part in the query part array -

- - Parameters:
- - - - - - - -
- string   - $name:  - the name of the query part to be set
- string   - $part:  - query part string
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Hydrate_Exception if trying to set unknown query part
- - -
-
[ Top ]
-
- -
- -
- setView  [line 667] -
-
- -
-
-
  - void setView( -Doctrine_View -$view  -) -
-

- -

setView sets a database view this query object uses this method should only be called internally by doctrine -

- - Parameters:
- - - - -
- Doctrine_View   - $view:  - database view
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- unserialize  [line 319] -
-
- -
-
-
  - void unserialize( -string -$serialized  -) -
-

- -

unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized -

- - Parameters:
- - - - -
- string   - $serialized:  - Doctrine_Record as serialized string
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Serializable::unserialize
-
- -
-
[ Top ]
-
- -
- -
- useCache  [line 235] -
-
- -
-
-
  - Doctrine_Hydrate useCache( -[Doctrine_Cache_Interface|bool -$driver = true], [integer -$timeToLive = null]  -) -
-

- -

useCache -

- - Parameters:
- - - - - - - -
- Doctrine_Cache_Interface|bool   - $driver:  - cache driver
- integer   - $timeToLive:  - how long the cache entry is valid
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- _execute  [line 749] -
-
- -
-
-
  - void _execute( - -$params  -) -
-

- - - Parameters:
- - - - -
-    - $params:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- _setLastElement  [line 1182] -
-
- -
-
-
  - void _setLastElement( - -&$prev, -&$coll, boolean|integer -$index, -$alias, -$oneToOne  -) -
-

- -

_setLastElement -

-

sets the last element of given data array / collection as previous element

- Parameters:
- - - - - - - - - - - - - - - - -
- boolean|integer   - $index:  -
-    - &$prev:  -
-    - &$coll:  -
-    - $alias:  -
-    - $oneToOne:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 1213] -
-
- -
-
-
  - string __toString( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  returns a string representation of this object
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - CREATE - = 4 - [line 60] - -
- -

constant for CREATE queries -

- - -
-
[ Top ]
-
- -
- -
- - DELETE - = 1 - [line 48] - -
- -

constant for DELETE queries -

- - -
-
[ Top ]
-
- -
- -
- - HYDRATE_ARRAY - = 3 - [line 64] - -
- -

Constant for the array hydration mode. -

- - -
-
[ Top ]
-
- -
- -
- - HYDRATE_RECORD - = 2 - [line 68] - -
- -

Constant for the record (object) hydration mode. -

- - -
-
[ Top ]
-
- -
- -
- - INSERT - = 3 - [line 56] - -
- -

constant for INSERT queries -

- - -
-
[ Top ]
-
- -
- -
- - SELECT - = 0 - [line 44] - -
- -

constant for SELECT queries -

- - -
-
[ Top ]
-
- -
- -
- - UPDATE - = 2 - [line 52] - -
- -

constant for UPDATE queries -

- - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Array.html b/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Array.html deleted file mode 100644 index c60ed0bed..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Array.html +++ /dev/null @@ -1,766 +0,0 @@ - - -
-

Class: Doctrine_Hydrate_Array

-Source Location: /Doctrine/Hydrate/Array.php

- -

Class Doctrine_Hydrate_Array

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Hydrate_Array defines an array fetching strategy for Doctrine_Hydrate -

- -

- Located in /Doctrine/Hydrate/Array.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  flush()  
void  getElement()  
void  getElementCollection()  
void  getNullPointer()  
void  initRelated()  
void  isIdentifiable()  
void  registerCollection()  
void  search()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- flush  [line 78] -
-
- -
-
-
  - void flush( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getElement  [line 40] -
-
- -
-
-
  - void getElement( - -$data, -$component  -) -
-

- - - Parameters:
- - - - - - - -
- array   - $data:  -
-    - $component:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getElementCollection  [line 36] -
-
- -
-
-
  - void getElementCollection( - -$component  -) -
-

- - - Parameters:
- - - - -
-    - $component:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNullPointer  [line 59] -
-
- -
-
-
  - void getNullPointer( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- initRelated  [line 52] -
-
- -
-
-
  - void initRelated( - -&$data, -$name  -) -
-

- - - Parameters:
- - - - - - - -
- array   - &$data:  -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isIdentifiable  [line 44] -
-
- -
-
-
  - void isIdentifiable( - -$data, Doctrine_Table -$table  -) -
-

- - - Parameters:
- - - - - - - -
- array   - $data:  -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- registerCollection  [line 48] -
-
- -
-
-
  - void registerCollection( - -$coll  -) -
-

- - - Parameters:
- - - - -
-    - $coll:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- search  [line 63] -
-
- -
-
-
  - void search( - -$element, -$data  -) -
-

- - - Parameters:
- - - - - - - -
- array   - $element:  -
- array   - $data:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Exception.html deleted file mode 100644 index cb5a98820..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Hydrate_Exception

-Source Location: /Doctrine/Hydrate/Exception.php

- -

Class Doctrine_Hydrate_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Hydrate_Exception -

- -

- Located in /Doctrine/Hydrate/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Hydrate_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Record.html b/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Record.html deleted file mode 100644 index 6d16d7abb..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Hydrate_Record.html +++ /dev/null @@ -1,959 +0,0 @@ - - -
-

Class: Doctrine_Hydrate_Record

-Source Location: /Doctrine/Hydrate/Record.php

- -

Class Doctrine_Hydrate_Record

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Hydrate_Record defines a record fetching strategy for Doctrine_Hydrate -

- -

- Located in /Doctrine/Hydrate/Record.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Hydrate_Record
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
mixed  $_collections  
mixed  $_records  
mixed  $_tables  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  flush()  
void  getElement()  
void  getElementCollection()  
void  getNullPointer()  
void  initRelated()  
boolean  isIdentifiable()  isIdentifiable returns whether or not a given data row is identifiable (it contains all primary key fields specified in the second argument)
void  registerCollection()  
void  search()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_collections - = array() [line 36] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_records - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_tables - = array() [line 40] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- flush  [line 108] -
-
- -
-
-
  - void flush( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getElement  [line 96] -
-
- -
-
-
  - void getElement( - -$data, -$component  -) -
-

- - - Parameters:
- - - - - - - -
- array   - $data:  -
-    - $component:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getElementCollection  [line 42] -
-
- -
-
-
  - void getElementCollection( - -$component  -) -
-

- - - Parameters:
- - - - -
-    - $component:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNullPointer  [line 92] -
-
- -
-
-
  - void getNullPointer( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- initRelated  [line 53] -
-
- -
-
-
  - void initRelated( - -$record, -$name  -) -
-

- - - Parameters:
- - - - - - - -
-    - $record:  -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isIdentifiable  [line 75] -
-
- -
-
-
  - boolean isIdentifiable( - -$row, Doctrine_Table -$table  -) -
-

- -

isIdentifiable returns whether or not a given data row is identifiable (it contains all primary key fields specified in the second argument) -

- - Parameters:
- - - - - - - -
- array   - $row:  -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- registerCollection  [line 62] -
-
- -
-
-
  - void registerCollection( -Doctrine_Collection -$coll  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Collection   - $coll:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- search  [line 49] -
-
- -
-
-
  - void search( -Doctrine_Record -$record, Doctrine_Collection -$coll  -) -
-

- - - Parameters:
- - - - - - - -
- Doctrine_Record   - $record:  -
- Doctrine_Collection   - $coll:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import.html b/api_documentation/trunk/Doctrine/Doctrine_Import.html deleted file mode 100644 index 303cbecbf..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import.html +++ /dev/null @@ -1,1484 +0,0 @@ - - -
-

Class: Doctrine_Import

-Source Location: /Doctrine/Import.php

- -

Class Doctrine_Import

- - -
-
Class Overview
- -
- - - - - - - -
- -

class Doctrine_Import Main responsible of performing import operation. Delegates database schema reading to a reader object and passes the result to a builder object which builds a Doctrine data model. -

- -

- Located in /Doctrine/Import.php [line 37] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2255 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Import_Firebird - -
Doctrine_Import_Informix - -
Doctrine_Import_Mssql - -
Doctrine_Import_Mysql - -
Doctrine_Import_Oracle - -
Doctrine_Import_Pgsql - -
Doctrine_Import_Sqlite - -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $sql  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  importSchema()  importSchema
array  listDatabases()  lists all databases
array  listFunctions()  lists all availible database functions
array  listSequences()  lists all database sequences
array  listTableColumns()  lists table constraints
array  listTableConstraints()  lists table constraints
array  listTableIndexes()  lists table constraints
array  listTables()  lists tables
array  listTableTriggers()  lists table triggers
array  listTableViews()  lists table views
array  listTriggers()  lists all database triggers
array  listUsers()  lists database users
array  listViews()  lists database views
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $sql - = array() [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- importSchema  [line 186] -
-
- -
-
-
  - array importSchema( -string -$directory, [ -$databases = array()]  -) -
-

- -

importSchema -

-

method for importing existing schema to Doctrine_Record classes

- Parameters:
- - - - - - - -
- string   - $directory:  -
- array   - $databases:  -
- -
- API Tags:
- - - - - - - -
Return:  the names of the imported classes
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- listDatabases  [line 45] -
-
- -
-
-
  - array listDatabases( -) -
-

- -

lists all databases -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listFunctions  [line 58] -
-
- -
-
-
  - array listFunctions( -) -
-

- -

lists all availible database functions -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listSequences  [line 82] -
-
- -
-
-
  - array listSequences( -[string|null -$database = null]  -) -
-

- -

lists all database sequences -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listTableColumns  [line 106] -
-
- -
-
-
  - array listTableColumns( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listTableConstraints  [line 96] -
-
- -
-
-
  - array listTableConstraints( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listTableIndexes  [line 116] -
-
- -
-
-
  - array listTableIndexes( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listTables  [line 126] -
-
- -
-
-
  - array listTables( -[string|null -$database = null]  -) -
-

- -

lists tables -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listTableTriggers  [line 136] -
-
- -
-
-
  - array listTableTriggers( -string -$table  -) -
-

- -

lists table triggers -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listTableViews  [line 146] -
-
- -
-
-
  - array listTableViews( -string -$table  -) -
-

- -

lists table views -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listTriggers  [line 72] -
-
- -
-
-
  - array listTriggers( -[string|null -$database = null]  -) -
-

- -

lists all database triggers -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listUsers  [line 155] -
-
- -
-
-
  - array listUsers( -) -
-

- -

lists database users -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- listViews  [line 169] -
-
- -
-
-
  - array listViews( -[string|null -$database = null]  -) -
-

- -

lists database views -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Builder.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Builder.html deleted file mode 100644 index ad731d67f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Builder.html +++ /dev/null @@ -1,923 +0,0 @@ - - -
-

Class: Doctrine_Import_Builder

-Source Location: /Doctrine/Import/Builder.php

- -

Class Doctrine_Import_Builder

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Import_Builder Import builder is responsible of building Doctrine ActiveRecord classes based on a database schema. -

- -

- Located in /Doctrine/Import/Builder.php [line 37] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 2051 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Import_Builder_BaseClass - class Doctrine_Import_Builder_BaseClass Builds a Doctrine_Record base class definition based on a schema. -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
static mixed  $tpl  
string  $path  
mixed  $suffix  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Import_Builder  __construct()  
void  buildColumnDefinition()  
void  buildDefinition()  
void  buildRecord()  
void  buildRelationDefinition()  
string  getTargetPath()  getTargetPath
void  loadTemplate()  This is a template that was previously in Builder/Record.tpl. Due to the fact that it was not bundled when compiling, it had to be moved here.
void  setTargetPath()  setTargetPath
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static mixed   - $tpl - [line 46] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $path - = '' [line 42] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $suffix - = '.php' [line 44] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 48] -
-
- -
-
-
  - Doctrine_Import_Builder __construct( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildColumnDefinition  [line 113] -
-
- -
-
-
  - void buildColumnDefinition( - -$tableColumns  -) -
-

- - - Parameters:
- - - - -
- array   - $tableColumns:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildDefinition  [line 211] -
-
- -
-
-
  - void buildDefinition( - -$options, -$columns, [ -$relations = array()]  -) -
-

- - - Parameters:
- - - - - - - - - - -
- array   - $options:  -
- array   - $columns:  -
- array   - $relations:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildRecord  [line 226] -
-
- -
-
-
  - void buildRecord( - -$options, -$columns, -$relations  -) -
-

- - - Parameters:
- - - - - - - - - - -
-    - $options:  -
-    - $columns:  -
-    - $relations:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildRelationDefinition  [line 165] -
-
- -
-
-
  - void buildRelationDefinition( - -$relations  -) -
-

- - - Parameters:
- - - - -
- array   - $relations:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTargetPath  [line 72] -
-
- -
-
-
  - string getTargetPath( -) -
-

- -

getTargetPath -

- -
- API Tags:
- - - - - - - -
Return:  the path where imported files are being generated
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- loadTemplate  [line 83] -
-
- -
-
-
  - void loadTemplate( -) -
-

- -

This is a template that was previously in Builder/Record.tpl. Due to the fact that it was not bundled when compiling, it had to be moved here. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTargetPath  [line 59] -
-
- -
-
-
  - void setTargetPath( -string -$path  -) -
-

- -

setTargetPath -

- - Parameters:
- - - - -
- string   - $path:  - path the path where imported files are being generated
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Builder_BaseClass.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Builder_BaseClass.html deleted file mode 100644 index 6b999848e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Builder_BaseClass.html +++ /dev/null @@ -1,475 +0,0 @@ - - -
-

Class: Doctrine_Import_Builder_BaseClass

-Source Location: /Doctrine/Import/Builder/BaseClass.php

- -

Class Doctrine_Import_Builder_BaseClass

- - -
-
Class Overview
- -
- - - - - -
- -

class Doctrine_Import_Builder_BaseClass Builds a Doctrine_Record base class definition based on a schema. -

- -

- Located in /Doctrine/Import/Builder/BaseClass.php [line 40] -

- - -
Doctrine_Import_Builder
-   |
-   --Doctrine_Import_Builder_BaseClass
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Import_Builder

-
-
-
- Doctrine_Import_Builder::$path -
-
- -
-
- Doctrine_Import_Builder::$suffix -
-
- -
-
- Doctrine_Import_Builder::$tpl -
-
- -
-
-
-
-

Inherited From Doctrine_Import_Builder

-
-
-
- Doctrine_Import_Builder::__construct() -
-
- -
-
- Doctrine_Import_Builder::buildColumnDefinition() -
-
- -
-
- Doctrine_Import_Builder::buildDefinition() -
-
- -
-
- Doctrine_Import_Builder::buildRecord() -
-
- -
-
- Doctrine_Import_Builder::buildRelationDefinition() -
-
- -
-
- Doctrine_Import_Builder::getTargetPath() -
-
- getTargetPath -
-
- Doctrine_Import_Builder::loadTemplate() -
-
- This is a template that was previously in Builder/Record.tpl. Due to the fact that it was not bundled when compiling, it had to be moved here. -
-
- Doctrine_Import_Builder::setTargetPath() -
-
- setTargetPath -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Builder_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Builder_Exception.html deleted file mode 100644 index 9211073cb..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Builder_Exception.html +++ /dev/null @@ -1,525 +0,0 @@ - - -
-

Class: Doctrine_Import_Builder_Exception

-Source Location: /Doctrine/Import/Builder/Exception.php

- -

Class Doctrine_Import_Builder_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

class Doctrine_Import_Builder_Exception -

- -

- Located in /Doctrine/Import/Builder/Exception.php [line 39] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Import_Exception
-         |
-         --Doctrine_Import_Builder_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Exception.html deleted file mode 100644 index 425cf645a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Exception.html +++ /dev/null @@ -1,453 +0,0 @@ - - -
-

Class: Doctrine_Import_Exception

-Source Location: /Doctrine/Import/Exception.php

- -

Class Doctrine_Import_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

class Doctrine_Import_Exception -

- -

- Located in /Doctrine/Import/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Import_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Import_Builder_Exception - class Doctrine_Import_Builder_Exception -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Firebird.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Firebird.html deleted file mode 100644 index fdf13da24..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Firebird.html +++ /dev/null @@ -1,947 +0,0 @@ - - -
-

Class: Doctrine_Import_Firebird

-Source Location: /Doctrine/Import/Firebird.php

- -

Class Doctrine_Import_Firebird

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Import/Firebird.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
-      |
-      --Doctrine_Import_Firebird
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1616 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::$sql -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::importSchema() -
-
- importSchema -
-
- Doctrine_Import::listDatabases() -
-
- lists all databases -
-
- Doctrine_Import::listFunctions() -
-
- lists all availible database functions -
-
- Doctrine_Import::listSequences() -
-
- lists all database sequences -
-
- Doctrine_Import::listTableColumns() -
-
- lists table constraints -
-
- Doctrine_Import::listTableConstraints() -
-
- lists table constraints -
-
- Doctrine_Import::listTableIndexes() -
-
- lists table constraints -
-
- Doctrine_Import::listTables() -
-
- lists tables -
-
- Doctrine_Import::listTableTriggers() -
-
- lists table triggers -
-
- Doctrine_Import::listTableViews() -
-
- lists table views -
-
- Doctrine_Import::listTriggers() -
-
- lists all database triggers -
-
- Doctrine_Import::listUsers() -
-
- lists database users -
-
- Doctrine_Import::listViews() -
-
- lists database views -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  listFunctions()  list all functions in the current database
mixed  listTableFields()  list all fields in a tables in the current database
array  listTables()  list all tables in the current database
array  listTableTriggers()  This function will be called to get all triggers of the current database ($this->conn->getDatabase())
array  listTableViews()  list the views in the database that reference a given table
array  listUsers()  list all users
array  listViews()  list the views in the database
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- listFunctions  [line 97] -
-
- -
-
-
  - array listFunctions( -) -
-

- -

list all functions in the current database -

- -
- API Tags:
- - - - - - - -
Return:  data array containing all availible functions
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listFunctions()
-
lists all availible database functions
-
- -
-
[ Top ]
-
- -
- -
- listTableFields  [line 53] -
-
- -
-
-
  - mixed listTableFields( -string -$table  -) -
-

- -

list all fields in a tables in the current database -

- - Parameters:
- - - - -
- string   - $table:  - name of table that should be used in method
- -
- API Tags:
- - - - - - - -
Return:  data array on success, a MDB2 error on failure
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- listTables  [line 40] -
-
- -
-
-
  - array listTables( -[ -$database = null]  -) -
-

- -

list all tables in the current database -

- - Parameters:
- - - - -
-    - $database:  -
- -
- API Tags:
- - - - - - - -
Return:  data array
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTables()
-
lists tables
-
- -
-
[ Top ]
-
- -
- -
- listTableTriggers  [line 111] -
-
- -
-
-
  - array listTableTriggers( -string -$table  -) -
-

- -

This function will be called to get all triggers of the current database ($this->conn->getDatabase()) -

- - Parameters:
- - - - -
- string   - $table:  - The name of the table from the previous database to query against.
- -
- API Tags:
- - - - - - - -
Return:  data array containing all triggers for given table
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableTriggers()
-
lists table triggers
-
- -
-
[ Top ]
-
- -
- -
- listTableViews  [line 84] -
-
- -
-
-
  - array listTableViews( -string -$table  -) -
-

- -

list the views in the database that reference a given table -

- - Parameters:
- - - - -
- string   - $table:  - table for which all references views should be found
- -
- API Tags:
- - - - - - - -
Return:  data array containing all views for given table
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableViews()
-
lists table views
-
- -
-
[ Top ]
-
- -
- -
- listUsers  [line 65] -
-
- -
-
-
  - array listUsers( -) -
-

- -

list all users -

- -
- API Tags:
- - - - - - - -
Return:  data array containing all database users
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listUsers()
-
lists database users
-
- -
-
[ Top ]
-
- -
- -
- listViews  [line 74] -
-
- -
-
-
  - array listViews( -[ -$database = null]  -) -
-

- -

list the views in the database -

- - Parameters:
- - - - -
-    - $database:  -
- -
- API Tags:
- - - - - - - -
Return:  data array containing all database views
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listViews()
-
lists database views
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Informix.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Informix.html deleted file mode 100644 index 97a4f38d6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Informix.html +++ /dev/null @@ -1,580 +0,0 @@ - - -
-

Class: Doctrine_Import_Informix

-Source Location: /Doctrine/Import/Informix.php

- -

Class Doctrine_Import_Informix

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Import/Informix.php [line 32] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
-      |
-      --Doctrine_Import_Informix
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::importSchema() -
-
- importSchema -
-
- Doctrine_Import::listDatabases() -
-
- lists all databases -
-
- Doctrine_Import::listFunctions() -
-
- lists all availible database functions -
-
- Doctrine_Import::listSequences() -
-
- lists all database sequences -
-
- Doctrine_Import::listTableColumns() -
-
- lists table constraints -
-
- Doctrine_Import::listTableConstraints() -
-
- lists table constraints -
-
- Doctrine_Import::listTableIndexes() -
-
- lists table constraints -
-
- Doctrine_Import::listTables() -
-
- lists tables -
-
- Doctrine_Import::listTableTriggers() -
-
- lists table triggers -
-
- Doctrine_Import::listTableViews() -
-
- lists table views -
-
- Doctrine_Import::listTriggers() -
-
- lists all database triggers -
-
- Doctrine_Import::listUsers() -
-
- lists database users -
-
- Doctrine_Import::listViews() -
-
- lists database views -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $sql  
-
-
[ Top ]
-
-
- - - -
-
Properties
- -
- -
- -
- - mixed   - $sql - = array(
'listTables' => "SELECT tabname,tabtype FROM systables WHERE tabtype IN ('T','V') AND owner != 'informix'",
'listColumns' => "SELECT c.colname, c.coltype, c.collength, d.default, c.colno
FROM syscolumns c, systables t,outer sysdefaults d
WHERE c.tabid = t.tabid AND d.tabid = t.tabid AND d.colno = c.colno
AND tabname='%s' ORDER BY c.colno",
'listPk' => "SELECT part1, part2, part3, part4, part5, part6, part7, part8 FROM
systables t, sysconstraints s, sysindexes i WHERE t.tabname='%s'
AND s.tabid=t.tabid AND s.constrtype='P'
AND i.idxname=s.idxname",
'listForeignKeys' => "SELECT tr.tabname,updrule,delrule,
i.part1 o1,i2.part1 d1,i.part2 o2,i2.part2 d2,i.part3 o3,i2.part3 d3,i.part4 o4,i2.part4 d4,
i.part5 o5,i2.part5 d5,i.part6 o6,i2.part6 d6,i.part7 o7,i2.part7 d7,i.part8 o8,i2.part8 d8
from systables t,sysconstraints s,sysindexes i,
sysreferences r,systables tr,sysconstraints s2,sysindexes i2
where t.tabname='%s'
and s.tabid=t.tabid and s.constrtype='R' and r.constrid=s.constrid
and i.idxname=s.idxname and tr.tabid=r.ptabid
and s2.constrid=r.primary and i2.idxname=s2.idxname",
)
[line 34] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::$sql
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Mssql.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Mssql.html deleted file mode 100644 index 2049d6e95..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Mssql.html +++ /dev/null @@ -1,1014 +0,0 @@ - - -
-

Class: Doctrine_Import_Mssql

-Source Location: /Doctrine/Import/Mssql.php

- -

Class Doctrine_Import_Mssql

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Import/Mssql.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
-      |
-      --Doctrine_Import_Mssql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1889 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::$sql -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::importSchema() -
-
- importSchema -
-
- Doctrine_Import::listDatabases() -
-
- lists all databases -
-
- Doctrine_Import::listFunctions() -
-
- lists all availible database functions -
-
- Doctrine_Import::listSequences() -
-
- lists all database sequences -
-
- Doctrine_Import::listTableColumns() -
-
- lists table constraints -
-
- Doctrine_Import::listTableConstraints() -
-
- lists table constraints -
-
- Doctrine_Import::listTableIndexes() -
-
- lists table constraints -
-
- Doctrine_Import::listTables() -
-
- lists tables -
-
- Doctrine_Import::listTableTriggers() -
-
- lists table triggers -
-
- Doctrine_Import::listTableViews() -
-
- lists table views -
-
- Doctrine_Import::listTriggers() -
-
- lists all database triggers -
-
- Doctrine_Import::listUsers() -
-
- lists database users -
-
- Doctrine_Import::listViews() -
-
- lists database views -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  listSequences()  lists all database sequences
array  listTableColumns()  lists table constraints
array  listTableIndexes()  lists table constraints
array  listTables()  lists tables
array  listTableTriggers()  lists table triggers
array  listTableViews()  lists table views
array  listTriggers()  lists all triggers
array  listViews()  lists database views
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- listSequences  [line 42] -
-
- -
-
-
  - array listSequences( -[string|null -$database = null]  -) -
-

- -

lists all database sequences -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listSequences()
-
lists all database sequences
-
- -
-
[ Top ]
-
- -
- -
- listTableColumns  [line 55] -
-
- -
-
-
  - array listTableColumns( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableColumns()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableIndexes  [line 100] -
-
- -
-
-
  - array listTableIndexes( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableIndexes()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTables  [line 110] -
-
- -
-
-
  - array listTables( -[string|null -$database = null]  -) -
-

- -

lists tables -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTables()
-
lists tables
-
- -
-
[ Top ]
-
- -
- -
- listTableTriggers  [line 135] -
-
- -
-
-
  - array listTableTriggers( -string -$table  -) -
-

- -

lists table triggers -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableTriggers()
-
lists table triggers
-
- -
-
[ Top ]
-
- -
- -
- listTableViews  [line 150] -
-
- -
-
-
  - array listTableViews( -string -$table  -) -
-

- -

lists table views -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableViews()
-
lists table views
-
- -
-
[ Top ]
-
- -
- -
- listTriggers  [line 121] -
-
- -
-
-
  - array listTriggers( -[ -$database = null]  -) -
-

- -

lists all triggers -

- - Parameters:
- - - - -
-    - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTriggers()
-
lists all database triggers
-
- -
-
[ Top ]
-
- -
- -
- listViews  [line 186] -
-
- -
-
-
  - array listViews( -[string|null -$database = null]  -) -
-

- -

lists database views -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listViews()
-
lists database views
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Mysql.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Mysql.html deleted file mode 100644 index c6a357bdd..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Mysql.html +++ /dev/null @@ -1,995 +0,0 @@ - - -
-

Class: Doctrine_Import_Mysql

-Source Location: /Doctrine/Import/Mysql.php

- -

Class Doctrine_Import_Mysql

- - -
-
Class Overview
- -
- - - - - - - -
- - -

- Located in /Doctrine/Import/Mysql.php [line 32] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
-      |
-      --Doctrine_Import_Mysql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2081 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::importSchema() -
-
- importSchema -
-
- Doctrine_Import::listDatabases() -
-
- lists all databases -
-
- Doctrine_Import::listFunctions() -
-
- lists all availible database functions -
-
- Doctrine_Import::listSequences() -
-
- lists all database sequences -
-
- Doctrine_Import::listTableColumns() -
-
- lists table constraints -
-
- Doctrine_Import::listTableConstraints() -
-
- lists table constraints -
-
- Doctrine_Import::listTableIndexes() -
-
- lists table constraints -
-
- Doctrine_Import::listTables() -
-
- lists tables -
-
- Doctrine_Import::listTableTriggers() -
-
- lists table triggers -
-
- Doctrine_Import::listTableViews() -
-
- lists table views -
-
- Doctrine_Import::listTriggers() -
-
- lists all database triggers -
-
- Doctrine_Import::listUsers() -
-
- lists database users -
-
- Doctrine_Import::listViews() -
-
- lists database views -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $sql  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  listSequences()  lists all database sequences
array  listTableColumns()  lists table constraints
array  listTableConstraints()  lists table constraints
array  listTableForeignKeys()  lists table foreign keys
array  listTableIndexes()  lists table constraints
array  listTables()  lists tables
array  listViews()  lists database views
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $sql - = array(
'showDatabases' => 'SHOW DATABASES',
'listTableFields' => 'DESCRIBE %s',
'listSequences' => 'SHOW TABLES',
'listTables' => 'SHOW TABLES',
'listUsers' => 'SELECT DISTINCT USER FROM USER',
'listViews' => "SHOW FULL TABLES %sWHERE Table_type = 'VIEW'",
)
[line 34] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::$sql
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- listSequences  [line 48] -
-
- -
-
-
  - array listSequences( -[string|null -$database = null]  -) -
-

- -

lists all database sequences -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listSequences()
-
lists all database sequences
-
- -
-
[ Top ]
-
- -
- -
- listTableColumns  [line 113] -
-
- -
-
-
  - array listTableColumns( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableColumns()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableConstraints  [line 64] -
-
- -
-
-
  - array listTableConstraints( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableConstraints()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableForeignKeys  [line 103] -
-
- -
-
-
  - array listTableForeignKeys( -string -$table  -) -
-

- -

lists table foreign keys -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- listTableIndexes  [line 153] -
-
- -
-
-
  - array listTableIndexes( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableIndexes()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTables  [line 186] -
-
- -
-
-
  - array listTables( -[string|null -$database = null]  -) -
-

- -

lists tables -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTables()
-
lists tables
-
- -
-
[ Top ]
-
- -
- -
- listViews  [line 196] -
-
- -
-
-
  - array listViews( -[string|null -$database = null]  -) -
-

- -

lists database views -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listViews()
-
lists database views
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Oracle.html deleted file mode 100644 index 8801b33e9..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Oracle.html +++ /dev/null @@ -1,1203 +0,0 @@ - - -
-

Class: Doctrine_Import_Oracle

-Source Location: /Doctrine/Import/Oracle.php

- -

Class Doctrine_Import_Oracle

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Import/Oracle.php [line 31] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
-      |
-      --Doctrine_Import_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1889 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::$sql -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::importSchema() -
-
- importSchema -
-
- Doctrine_Import::listDatabases() -
-
- lists all databases -
-
- Doctrine_Import::listFunctions() -
-
- lists all availible database functions -
-
- Doctrine_Import::listSequences() -
-
- lists all database sequences -
-
- Doctrine_Import::listTableColumns() -
-
- lists table constraints -
-
- Doctrine_Import::listTableConstraints() -
-
- lists table constraints -
-
- Doctrine_Import::listTableIndexes() -
-
- lists table constraints -
-
- Doctrine_Import::listTables() -
-
- lists tables -
-
- Doctrine_Import::listTableTriggers() -
-
- lists table triggers -
-
- Doctrine_Import::listTableViews() -
-
- lists table views -
-
- Doctrine_Import::listTriggers() -
-
- lists all database triggers -
-
- Doctrine_Import::listUsers() -
-
- lists database users -
-
- Doctrine_Import::listViews() -
-
- lists database views -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  listDatabases()  lists all databases
array  listFunctions()  lists all availible database functions
array  listSequences()  lists all database sequences
array  listTableColumns()  lists table constraints
array  listTableConstraints()  lists table constraints
array  listTableIndexes()  lists table constraints
array  listTables()  lists tables
array  listTableTriggers()  lists table triggers
array  listTableViews()  lists table views
array  listTriggers()  lists all database triggers
array  listUsers()  lists database users
array  listViews()  lists database views
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- listDatabases  [line 38] -
-
- -
-
-
  - array listDatabases( -) -
-

- -

lists all databases -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listDatabases()
-
lists all databases
-
- -
-
[ Top ]
-
- -
- -
- listFunctions  [line 63] -
-
- -
-
-
  - array listFunctions( -) -
-

- -

lists all availible database functions -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listFunctions()
-
lists all availible database functions
-
- -
-
[ Top ]
-
- -
- -
- listSequences  [line 85] -
-
- -
-
-
  - array listSequences( -[string|null -$database = null]  -) -
-

- -

lists all database sequences -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listSequences()
-
lists all database sequences
-
- -
-
[ Top ]
-
- -
- -
- listTableColumns  [line 116] -
-
- -
-
-
  - array listTableColumns( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableColumns()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableConstraints  [line 99] -
-
- -
-
-
  - array listTableConstraints( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableConstraints()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableIndexes  [line 151] -
-
- -
-
-
  - array listTableIndexes( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableIndexes()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTables  [line 168] -
-
- -
-
-
  - array listTables( -[string|null -$database = null]  -) -
-

- -

lists tables -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTables()
-
lists tables
-
- -
-
[ Top ]
-
- -
- -
- listTableTriggers  [line 179] -
-
- -
-
-
  - array listTableTriggers( -string -$table  -) -
-

- -

lists table triggers -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableTriggers()
-
lists table triggers
-
- -
-
[ Top ]
-
- -
- -
- listTableViews  [line 189] -
-
- -
-
-
  - array listTableViews( -string -$table  -) -
-

- -

lists table views -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableViews()
-
lists table views
-
- -
-
[ Top ]
-
- -
- -
- listTriggers  [line 75] -
-
- -
-
-
  - array listTriggers( -[string|null -$database = null]  -) -
-

- -

lists all database triggers -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTriggers()
-
lists all database triggers
-
- -
-
[ Top ]
-
- -
- -
- listUsers  [line 198] -
-
- -
-
-
  - array listUsers( -) -
-

- -

lists database users -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listUsers()
-
lists database users
-
- -
-
[ Top ]
-
- -
- -
- listViews  [line 220] -
-
- -
-
-
  - array listViews( -[string|null -$database = null]  -) -
-

- -

lists database views -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listViews()
-
lists database views
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Pgsql.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Pgsql.html deleted file mode 100644 index 475288780..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Pgsql.html +++ /dev/null @@ -1,1002 +0,0 @@ - - -
-

Class: Doctrine_Import_Pgsql

-Source Location: /Doctrine/Import/Pgsql.php

- -

Class Doctrine_Import_Pgsql

- - -
-
Class Overview
- -
- - - - - - - -
- - -

- Located in /Doctrine/Import/Pgsql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
-      |
-      --Doctrine_Import_Pgsql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1889 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::importSchema() -
-
- importSchema -
-
- Doctrine_Import::listDatabases() -
-
- lists all databases -
-
- Doctrine_Import::listFunctions() -
-
- lists all availible database functions -
-
- Doctrine_Import::listSequences() -
-
- lists all database sequences -
-
- Doctrine_Import::listTableColumns() -
-
- lists table constraints -
-
- Doctrine_Import::listTableConstraints() -
-
- lists table constraints -
-
- Doctrine_Import::listTableIndexes() -
-
- lists table constraints -
-
- Doctrine_Import::listTables() -
-
- lists tables -
-
- Doctrine_Import::listTableTriggers() -
-
- lists table triggers -
-
- Doctrine_Import::listTableViews() -
-
- lists table views -
-
- Doctrine_Import::listTriggers() -
-
- lists all database triggers -
-
- Doctrine_Import::listUsers() -
-
- lists database users -
-
- Doctrine_Import::listViews() -
-
- lists database views -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $sql  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  listTableColumns()  lists table constraints
array  listTableConstraints()  lists table constraints
array  listTableIndexes()  list all indexes in a table
array  listTables()  lists tables
array  listTableTriggers()  lists table triggers
array  listTableViews()  list the views in the database that reference a given table
array  listTriggers()  lists all database triggers
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $sql - = array(
'listDatabases' => 'SELECT datname FROM pg_database',
'listFunctions' => "SELECT
proname
FROM
pg_proc pr,
pg_type tp
WHERE
tp.oid = pr.prorettype
AND pr.proisagg = FALSE
AND tp.typname <> 'trigger'
AND pr.pronamespace IN
(SELECT oid FROM pg_namespace
WHERE nspname NOT LIKE 'pg_%' AND nspname != 'information_schema'",
'listSequences' => "SELECT
relname
FROM
pg_class
WHERE relkind = 'S' AND relnamespace IN
(SELECT oid FROM pg_namespace
WHERE nspname NOT LIKE 'pg_%' AND nspname != 'information_schema')",
'listTables' => "SELECT
c.relname AS table_name
FROM pg_class c, pg_user u
WHERE c.relowner = u.usesysid
AND c.relkind = 'r'
AND NOT EXISTS (SELECT 1 FROM pg_views WHERE viewname = c.relname)
AND c.relname !~ '^(pg_|sql_)'
UNION
SELECT c.relname AS table_name
FROM pg_class c
WHERE c.relkind = 'r'
AND NOT EXISTS (SELECT 1 FROM pg_views WHERE viewname = c.relname)
AND NOT EXISTS (SELECT 1 FROM pg_user WHERE usesysid = c.relowner)
AND c.relname !~ '^pg_'",
'listViews' => 'SELECT viewname FROM pg_views',
'listUsers' => 'SELECT usename FROM pg_user',
'listTableConstraints' => "SELECT
relname
FROM
pg_class
WHERE oid IN (
SELECT indexrelid
FROM pg_index, pg_class
WHERE pg_class.relname = %s
AND pg_class.oid = pg_index.indrelid
AND (indisunique = 't' OR indisprimary = 't')
)",
'listTableIndexes' => "SELECT
relname
FROM
pg_class
WHERE oid IN (
SELECT indexrelid
FROM pg_index, pg_class
WHERE pg_class.relname = %s
AND pg_class.oid=pg_index.indrelid
AND indisunique != 't'
AND indisprimary != 't'
)",
'listTableColumns' => "SELECT
a.attnum,
a.attname AS field,
t.typname AS type,
format_type(a.atttypid, a.atttypmod) AS complete_type,
a.attnotnull AS isnotnull,
(SELECT 't'
FROM pg_index
WHERE c.oid = pg_index.indrelid
AND pg_index.indkey[0] = a.attnum
AND pg_index.indisprimary = 't'
) AS pri,
(SELECT pg_attrdef.adsrc
FROM pg_attrdef
WHERE c.oid = pg_attrdef.adrelid
AND pg_attrdef.adnum=a.attnum
) AS default
FROM pg_attribute a, pg_class c, pg_type t
WHERE c.relname = %s
AND a.attnum > 0
AND a.attrelid = c.oid
AND a.atttypid = t.oid
ORDER BY a.attnum",
)
[line 36] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::$sql
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- listTableColumns  [line 149] -
-
- -
-
-
  - array listTableColumns( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableColumns()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableConstraints  [line 136] -
-
- -
-
-
  - array listTableConstraints( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableConstraints()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableIndexes  [line 189] -
-
- -
-
-
  - array listTableIndexes( -string -$table  -) -
-

- -

list all indexes in a table -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableIndexes()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTables  [line 202] -
-
- -
-
-
  - array listTables( -[string|null -$database = null]  -) -
-

- -

lists tables -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTables()
-
lists tables
-
- -
-
[ Top ]
-
- -
- -
- listTableTriggers  [line 212] -
-
- -
-
-
  - array listTableTriggers( -string -$table  -) -
-

- -

lists table triggers -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableTriggers()
-
lists table triggers
-
- -
-
[ Top ]
-
- -
- -
- listTableViews  [line 230] -
-
- -
-
-
  - array listTableViews( -string -$table  -) -
-

- -

list the views in the database that reference a given table -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableViews()
-
lists table views
-
- -
-
[ Top ]
-
- -
- -
- listTriggers  [line 126] -
-
- -
-
-
  - array listTriggers( -[string|null -$database = null]  -) -
-

- -

lists all database triggers -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTriggers()
-
lists all database triggers
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Reader.html deleted file mode 100644 index 850bc41fd..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader.html +++ /dev/null @@ -1,461 +0,0 @@ - - -
-

Class: Doctrine_Import_Reader

-Source Location: /Doctrine/Import/Reader.php

- -

Class Doctrine_Import_Reader

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Import/Reader.php [line 40] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - - - -
Version:  $Id: Reader.php 1080 2007-02-10 18:17:08Z romanb $ class Doctrine_Import_Reader Is responsible of reading a database definitions from a source and costructing a database schema
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Import_Reader_Db - class Doctrine_Import_Reader_Db -
Doctrine_Import_Reader_Xml_Propel - class Doctrine_Import_Reader_Xml_Propel -
-
[ Top ]
-
-
- - - - - -
-
Method Summary
- -
-
- -
-
- - - -
Doctrine_Schema  read()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- read  [line 55] -
-
- -
-
-
  - Doctrine_Schema read( -) -
-

- - -
- API Tags:
- - - - - - - -
Abstract:  
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Db.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Db.html deleted file mode 100644 index d3394e8e4..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Db.html +++ /dev/null @@ -1,575 +0,0 @@ - - -
-

Class: Doctrine_Import_Reader_Db

-Source Location: /Doctrine/Import/Reader/Db.php

- -

Class Doctrine_Import_Reader_Db

- - -
-
Class Overview
- -
- - - - - - - -
- -

class Doctrine_Import_Reader_Db -

-

Reads a database using the given PDO connection and constructs a database schema

-

- Located in /Doctrine/Import/Reader/Db.php [line 41] -

- - -
Doctrine_Import_Reader
-   |
-   --Doctrine_Import_Reader_Db
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From Doctrine_Import_Reader

-
-
-
- Doctrine_Import_Reader::read() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $pdo  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Schema  read()  
void  setPdo()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $pdo - [line 53] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- read  [line 70] -
-
- -
-
-
  - Doctrine_Schema read( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import_Reader::read()
-
- -
-
[ Top ]
-
- -
- -
- setPdo  [line 60] -
-
- -
-
-
  - void setPdo( -object pdo -$pdo  -) -
-

- - - Parameters:
- - - - -
- object pdo   - $pdo:  - * @return
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Exception.html deleted file mode 100644 index 4df26bc23..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Exception.html +++ /dev/null @@ -1,337 +0,0 @@ - - -
-

Class: Doctrine_Import_Reader_Exception

-Source Location: /Doctrine/Import/Reader/Exception.php

- -

Class Doctrine_Import_Reader_Exception

- - -
-
Class Overview
- -
- - - - - -
- - -

- Located in /Doctrine/Import/Reader/Exception.php [line 38] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - - - -
Version:  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $ class Doctrine_Import_Reader_Exception
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
License:  LGPL
-
-
[ Top ]
-
-
- - - - - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Xml_Propel.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Xml_Propel.html deleted file mode 100644 index 7c42ae23d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Reader_Xml_Propel.html +++ /dev/null @@ -1,575 +0,0 @@ - - -
-

Class: Doctrine_Import_Reader_Xml_Propel

-Source Location: /Doctrine/Import/Reader/Propel.php

- -

Class Doctrine_Import_Reader_Xml_Propel

- - -
-
Class Overview
- -
- - - - - - - -
- -

class Doctrine_Import_Reader_Xml_Propel -

- -

- Located in /Doctrine/Import/Reader/Propel.php [line 39] -

- - -
Doctrine_Import_Reader
-   |
-   --Doctrine_Import_Reader_Xml_Propel
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From Doctrine_Import_Reader

-
-
-
- Doctrine_Import_Reader::read() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $xml  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  read()  
void  setXml()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $xml - [line 51] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- read  [line 63] -
-
- -
-
-
  - void read( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import_Reader::read()
-
- -
-
[ Top ]
-
- -
- -
- setXml  [line 58] -
-
- -
-
-
  - void setXml( -string -$xml  -) -
-

- - - Parameters:
- - - - -
- string   - $xml:  - xml * @return
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Schema.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Schema.html deleted file mode 100644 index 1442257ab..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Schema.html +++ /dev/null @@ -1,603 +0,0 @@ - - -
-

Class: Doctrine_Import_Schema

-Source Location: /Doctrine/Import/Schema.php

- -

Class Doctrine_Import_Schema

- - -
-
Class Overview
- -
- - - - - - -
- -

class Doctrine_Import_Schema -

-

Different methods to import a XML schema. The logic behind using two different methods is simple. Some people will like the idea of producing Doctrine_Record objects directly, which is totally fine. But in fast and growing application, table definitions tend to be a little bit more volatile. importArr() can be used to output a table definition in a PHP file. This file can then be stored independantly from the object itself.

-

- Located in /Doctrine/Import/Schema.php [line 40] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - -
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Import_Schema_Xml - class Doctrine_Import_Xml -
Doctrine_Import_Schema_Yml - class Doctrine_Import_Schema_Yml -
-
[ Top ]
-
-
- - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
void  importSchema()  importSchema
void  parse()  parse
void  parseSchema()  Parse the schema and return it in an array
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- importSchema  [line 72] -
-
- -
-
-
  - void importSchema( -string -$schema, string -$directory  -) -
-

- -

importSchema -

-

A method to import a Schema and translate it into a Doctrine_Record object

- Parameters:
- - - - - - - -
- string   - $schema:  - The file containing the XML schema
- string   - $directory:  - The directory where the Doctrine_Record class will be written
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parse  [line 52] -
-
- -
-
-
  - void parse( -string -$schema  -) -
-

- -

parse -

-

Function to do the actual parsing of the file

- Parameters:
- - - - -
- string   - $schema:  -
- -
- API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - -
Author:  Jonathan H. Wage
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- parseSchema  [line 60] -
-
- -
-
-
  - void parseSchema( -string -$schema  -) -
-

- -

Parse the schema and return it in an array -

- - Parameters:
- - - - -
- string   - $schema:  -
- -
- API Tags:
- - - - - - - -
Abstract:  
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Xml.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Xml.html deleted file mode 100644 index e57fd3d94..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Xml.html +++ /dev/null @@ -1,539 +0,0 @@ - - -
-

Class: Doctrine_Import_Schema_Xml

-Source Location: /Doctrine/Import/Schema/Xml.php

- -

Class Doctrine_Import_Schema_Xml

- - -
-
Class Overview
- -
- - - - - - -
- -

class Doctrine_Import_Xml -

-

Different methods to import a XML schema. The logic behind using two different methods is simple. Some people will like the idea of producing Doctrine_Record objects directly, which is totally fine. But in fast and growing application, table definitions tend to be a little bit more volatile. importArr() can be used to output a table definition in a PHP file. This file can then be stored independantly from the object itself.

-

- Located in /Doctrine/Import/Schema/Xml.php [line 40] -

- - -
Doctrine_Import_Schema
-   |
-   --Doctrine_Import_Schema_Xml
- - - Author(s): - - - -Information Tags:
- - - - -
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From Doctrine_Import_Schema

-
-
-
- Doctrine_Import_Schema::importSchema() -
-
- importSchema -
-
- Doctrine_Import_Schema::parse() -
-
- parse -
-
- Doctrine_Import_Schema::parseSchema() -
-
- Parse the schema and return it in an array -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  parse()  parse
array  parseSchema()  parseSchema
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- parse  [line 48] -
-
- -
-
-
  - void parse( -string -$schema  -) -
-

- -

parse -

- - Parameters:
- - - - -
- string   - $schema:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import_Schema::parse()
-
parse
-
- -
-
[ Top ]
-
- -
- -
- parseSchema  [line 70] -
-
- -
-
-
  - array parseSchema( -string -$schema  -) -
-

- -

parseSchema -

-

A method to parse a XML Schema and translate it into a property array. The function returns that property array.

- Parameters:
- - - - -
- string   - $schema:  - Path to the file containing the XML schema
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import_Schema::parseSchema()
-
Parse the schema and return it in an array
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Yml.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Yml.html deleted file mode 100644 index 0078bf99d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Schema_Yml.html +++ /dev/null @@ -1,539 +0,0 @@ - - -
-

Class: Doctrine_Import_Schema_Yml

-Source Location: /Doctrine/Import/Schema/Yml.php

- -

Class Doctrine_Import_Schema_Yml

- - -
-
Class Overview
- -
- - - - - - -
- -

class Doctrine_Import_Schema_Yml -

-

Different methods to import a YML schema. The logic behind using two different methods is simple. Some people will like the idea of producing Doctrine_Record objects directly, which is totally fine. But in fast and growing application, table definitions tend to be a little bit more volatile. importArr() can be used to output a table definition in a PHP file. This file can then be stored independantly from the object itself.

-

- Located in /Doctrine/Import/Schema/Yml.php [line 40] -

- - -
Doctrine_Import_Schema
-   |
-   --Doctrine_Import_Schema_Yml
- - - Author(s): - - - -Information Tags:
- - - - -
Version:  $Revision: 1838 $
Link:  www.phpdoctrine.com
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From Doctrine_Import_Schema

-
-
-
- Doctrine_Import_Schema::importSchema() -
-
- importSchema -
-
- Doctrine_Import_Schema::parse() -
-
- parse -
-
- Doctrine_Import_Schema::parseSchema() -
-
- Parse the schema and return it in an array -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  parse()  parse
array  parseSchema()  parseSchema
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- parse  [line 48] -
-
- -
-
-
  - void parse( -string -$schema  -) -
-

- -

parse -

- - Parameters:
- - - - -
- string   - $schema:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import_Schema::parse()
-
parse
-
- -
-
[ Top ]
-
- -
- -
- parseSchema  [line 66] -
-
- -
-
-
  - array parseSchema( -string -$schema  -) -
-

- -

parseSchema -

-

A method to parse a Yml Schema and translate it into a property array. The function returns that property array.

- Parameters:
- - - - -
- string   - $schema:  - Path to the file containing the XML schema
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import_Schema::parseSchema()
-
Parse the schema and return it in an array
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Import_Sqlite.html b/api_documentation/trunk/Doctrine/Doctrine_Import_Sqlite.html deleted file mode 100644 index e78c503b3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Import_Sqlite.html +++ /dev/null @@ -1,1204 +0,0 @@ - - -
-

Class: Doctrine_Import_Sqlite

-Source Location: /Doctrine/Import/Sqlite.php

- -

Class Doctrine_Import_Sqlite

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Import/Sqlite.php [line 32] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Import
-      |
-      --Doctrine_Import_Sqlite
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1889 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::$sql -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Import

-
-
-
- Doctrine_Import::importSchema() -
-
- importSchema -
-
- Doctrine_Import::listDatabases() -
-
- lists all databases -
-
- Doctrine_Import::listFunctions() -
-
- lists all availible database functions -
-
- Doctrine_Import::listSequences() -
-
- lists all database sequences -
-
- Doctrine_Import::listTableColumns() -
-
- lists table constraints -
-
- Doctrine_Import::listTableConstraints() -
-
- lists table constraints -
-
- Doctrine_Import::listTableIndexes() -
-
- lists table constraints -
-
- Doctrine_Import::listTables() -
-
- lists tables -
-
- Doctrine_Import::listTableTriggers() -
-
- lists table triggers -
-
- Doctrine_Import::listTableViews() -
-
- lists table views -
-
- Doctrine_Import::listTriggers() -
-
- lists all database triggers -
-
- Doctrine_Import::listUsers() -
-
- lists database users -
-
- Doctrine_Import::listViews() -
-
- lists database views -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  listDatabases()  lists all databases
array  listFunctions()  lists all availible database functions
array  listSequences()  lists all database sequences
array  listTableColumns()  lists table constraints
array  listTableConstraints()  lists table constraints
array  listTableIndexes()  lists table constraints
array  listTables()  lists tables
array  listTableTriggers()  lists table triggers
array  listTableViews()  lists table views
array  listTriggers()  lists all database triggers
array  listUsers()  lists database users
array  listViews()  lists database views
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- listDatabases  [line 39] -
-
- -
-
-
  - array listDatabases( -) -
-

- -

lists all databases -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listDatabases()
-
lists all databases
-
- -
-
[ Top ]
-
- -
- -
- listFunctions  [line 48] -
-
- -
-
-
  - array listFunctions( -) -
-

- -

lists all availible database functions -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listFunctions()
-
lists all availible database functions
-
- -
-
[ Top ]
-
- -
- -
- listSequences  [line 68] -
-
- -
-
-
  - array listSequences( -[string|null -$database = null]  -) -
-

- -

lists all database sequences -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listSequences()
-
lists all database sequences
-
- -
-
[ Top ]
-
- -
- -
- listTableColumns  [line 125] -
-
- -
-
-
  - array listTableColumns( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableColumns()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableConstraints  [line 90] -
-
- -
-
-
  - array listTableConstraints( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableConstraints()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTableIndexes  [line 159] -
-
- -
-
-
  - array listTableIndexes( -string -$table  -) -
-

- -

lists table constraints -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableIndexes()
-
lists table constraints
-
- -
-
[ Top ]
-
- -
- -
- listTables  [line 170] -
-
- -
-
-
  - array listTables( -[string|null -$database = null]  -) -
-

- -

lists tables -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTables()
-
lists tables
-
- -
-
[ Top ]
-
- -
- -
- listTableTriggers  [line 184] -
-
- -
-
-
  - array listTableTriggers( -string -$table  -) -
-

- -

lists table triggers -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableTriggers()
-
lists table triggers
-
- -
-
[ Top ]
-
- -
- -
- listTableViews  [line 194] -
-
- -
-
-
  - array listTableViews( -string -$table  -) -
-

- -

lists table views -

- - Parameters:
- - - - -
- string   - $table:  - database table name
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTableViews()
-
lists table views
-
- -
-
[ Top ]
-
- -
- -
- listTriggers  [line 58] -
-
- -
-
-
  - array listTriggers( -[string|null -$database = null]  -) -
-

- -

lists all database triggers -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listTriggers()
-
lists all database triggers
-
- -
-
[ Top ]
-
- -
- -
- listUsers  [line 214] -
-
- -
-
-
  - array listUsers( -) -
-

- -

lists database users -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listUsers()
-
lists database users
-
- -
-
[ Top ]
-
- -
- -
- listViews  [line 224] -
-
- -
-
-
  - array listViews( -[string|null -$database = null]  -) -
-

- -

lists database views -

- - Parameters:
- - - - -
- string|null   - $database:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Import::listViews()
-
lists database views
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_IntegrityMapper.html b/api_documentation/trunk/Doctrine/Doctrine_IntegrityMapper.html deleted file mode 100644 index 44e961b18..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_IntegrityMapper.html +++ /dev/null @@ -1,594 +0,0 @@ - - -
-

Class: Doctrine_IntegrityMapper

-Source Location: /Doctrine/IntegrityMapper.php

- -

Class Doctrine_IntegrityMapper

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_IntegrityMapper -

- -

- Located in /Doctrine/IntegrityMapper.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  buildIntegrityRelationQuery()  
void  buildIntegrityRelations()  
void  invokeIntegrityActions()  
void  processDeleteIntegrity()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- buildIntegrityRelationQuery  [line 68] -
-
- -
-
-
  - void buildIntegrityRelationQuery( -Doctrine_Record -$record  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildIntegrityRelations  [line 98] -
-
- -
-
-
  - void buildIntegrityRelations( -Doctrine_Table -$table, -&$aliases, -&$fields, -&$indexes, -&$components  -) -
-

- - - Parameters:
- - - - - - - - - - - - - - - - -
- Doctrine_Table   - $table:  -
-    - &$aliases:  -
-    - &$fields:  -
-    - &$indexes:  -
-    - &$components:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- invokeIntegrityActions  [line 41] -
-
- -
-
-
  - void invokeIntegrityActions( -Doctrine_Record -$record  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- processDeleteIntegrity  [line 35] -
-
- -
-
-
  - void processDeleteIntegrity( -Doctrine_Record -$record  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Lib.html b/api_documentation/trunk/Doctrine/Doctrine_Lib.html deleted file mode 100644 index 9d89b58b0..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Lib.html +++ /dev/null @@ -1,937 +0,0 @@ - - -
-

Class: Doctrine_Lib

-Source Location: /Doctrine/Lib.php

- -

Class Doctrine_Lib

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Lib has not commonly used static functions, mostly for debugging purposes -

- -

- Located in /Doctrine/Lib.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1916 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - string   - formatSql()  
static - string   - getCollectionAsString()  returns a string representation of Doctrine_Collection object
static - string   - getCollectionAsXml()  Return an collection of records as XML.
static - string   - getConnectionAsString()  returns a string representation of Doctrine_Connection object
static - void   - getConnectionStateAsString()  getStateAsString
static - string   - getRecordAsString()  returns a string representation of Doctrine_Record object
static - string   - getRecordAsXml()  Return a recrd as XML.
static - string   - getRecordStateAsString()  
static - string   - getTableAsString()  returns a string representation of Doctrine_Table object
static - void   - plurelize()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - -
- -
- static method formatSql  [line 224] -
-
- -
-
-
  - static string formatSql( - -$sql  -) -
-

- - - Parameters:
- - - - -
-    - $sql:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getCollectionAsString  [line 250] -
-
- -
-
-
  - static string getCollectionAsString( -Doctrine_Collection -$collection  -) -
-

- -

returns a string representation of Doctrine_Collection object -

- - Parameters:
- - - - -
- Doctrine_Collection   - $collection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getCollectionAsXml  [line 86] -
-
- -
-
-
  - static string getCollectionAsXml( -Doctrine_Collection -$collection, [ -$incomming_xml = null], SimpleXMLElement -$xml  -) -
-

- -

Return an collection of records as XML. -

- - Parameters:
- - - - - - - - - - -
- Doctrine_Collection   - $collection:  -
- SimpleXMLElement   - $xml:  -
- SimpleXMLElement   - $incomming_xml:  -
- -
- API Tags:
- - - - - - - - - - -
Return:  Xml as string
See:  getRecordAsXml for options to set in the record class to control this.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getConnectionAsString  [line 196] -
-
- -
-
-
  - static string getConnectionAsString( -Doctrine_Connection -$connection  -) -
-

- -

returns a string representation of Doctrine_Connection object -

- - Parameters:
- - - - -
- Doctrine_Connection   - $connection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getConnectionStateAsString  [line 177] -
-
- -
-
-
  - static void getConnectionStateAsString( -integer -$state  -) -
-

- -

getStateAsString -

-

returns a given connection state as string

- Parameters:
- - - - -
- integer   - $state:  - connection state
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getRecordAsString  [line 64] -
-
- -
-
-
  - static string getRecordAsString( -Doctrine_Record -$record  -) -
-

- -

returns a string representation of Doctrine_Record object -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getRecordAsXml  [line 128] -
-
- -
-
-
  - static string getRecordAsXml( -Doctrine_Record -$record, [ -$incomming_xml = NULL], SimpleXMLElement -$xml  -) -
-

- -

Return a recrd as XML. -

-

In order to control how this is done set the "xml" option in a record. This option is an array that has the keys "ignore_fields" and "include_relations". Both of these are arrays that list the name of fields/relations to include/process.

If you want to insert this xml as a part inside another xml send a SimpleXMLElement to the function. Because of the nature of SimpleXML the content you add to this element will be avilable after the function is complete.

- Parameters:
- - - - - - - - - - -
- Doctrine_Record   - $record:  -
- SimpleXMLElement   - $xml:  -
- SimpleXMlElement   - $incomming_xml:  -
- -
- API Tags:
- - - - - - - -
Return:  Xml as string
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getRecordStateAsString  [line 39] -
-
- -
-
-
  - static string getRecordStateAsString( -integer -$state  -) -
-

- - - Parameters:
- - - - -
- integer   - $state:  - the state of record
- -
- API Tags:
- - - - - - - - - - -
Return:  string representation of given state
See:  Doctrine_Record::STATE_* constants
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getTableAsString  [line 213] -
-
- -
-
-
  - static string getTableAsString( -Doctrine_Table -$table  -) -
-

- -

returns a string representation of Doctrine_Table object -

- - Parameters:
- - - - -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method plurelize  [line 109] -
-
- -
-
-
  - static void plurelize( - -$string  -) -
-

- - - Parameters:
- - - - -
-    - $string:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Locking_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Locking_Exception.html deleted file mode 100644 index e0b0437d2..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Locking_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Locking_Exception

-Source Location: /Doctrine/Locking/Exception.php

- -

Class Doctrine_Locking_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Locking exception class -

-

A loking exception represents an error that occured during a locking process (obtain/release locks).

-

- Located in /Doctrine/Locking/Exception.php [line 15] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Locking_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Locking_Manager_Pessimistic.html b/api_documentation/trunk/Doctrine/Doctrine_Locking_Manager_Pessimistic.html deleted file mode 100644 index eda13c233..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Locking_Manager_Pessimistic.html +++ /dev/null @@ -1,854 +0,0 @@ - - -
-

Class: Doctrine_Locking_Manager_Pessimistic

-Source Location: /Doctrine/Locking/Manager/Pessimistic.php

- -

Class Doctrine_Locking_Manager_Pessimistic

- - -
-
Class Overview
- -
- - - - - - - -
- -

Offline locking of records comes in handy where you need to make sure that a time-consuming task on a record or many records, which is spread over several page requests can't be interfered by other users. -

- -

- Located in /Doctrine/Locking/Manager/Pessimistic.php [line 36] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1468 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Connection  $conn  The conn that is used by the locking manager
mixed  $_lockTable  The database table name for the lock tracking
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Locking_Manager_Pessimistic  __construct()  Constructs a new locking manager object
boolean  getLock()  Obtains a lock on a Doctrine_Record
mixed  getLockOwner()  Gets the identifier that identifies the owner of the lock on the given record.
integer  releaseAgedLocks()  Releases locks older than a defined amount of seconds
boolean  releaseLock()  Releases a lock on a Doctrine_Record
mixed  _getLockingUserIdent()  Gets the unique user identifier of a lock
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Connection   - $conn - [line 43] - -
- -

The conn that is used by the locking manager -

- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_lockTable - = 'doctrine_lock_tracking' [line 47] - -
- -

The database table name for the lock tracking -

- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 57] -
-
- -
-
-
  - Doctrine_Locking_Manager_Pessimistic __construct( -Doctrine_Connection -$conn  -) -
-

- -

Constructs a new locking manager object -

-

When the CREATE_TABLES attribute of the connection on which the manager is supposed to work on is set to true, the locking table is created.

- Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - The database connection to use
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getLock  [line 99] -
-
- -
-
-
  - boolean getLock( -Doctrine_Record -$record, mixed -$userIdent  -) -
-

- -

Obtains a lock on a Doctrine_Record -

- - Parameters:
- - - - - - - -
- Doctrine_Record   - $record:  - The record that has to be locked
- mixed   - $userIdent:  - A unique identifier of the locking user
- -
- API Tags:
- - - - - - - -
Return:  TRUE if the locking was successful, FALSE if another user holds a lock on this record
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Locking_Exception If the locking failed due to database errors
- - -
-
[ Top ]
-
- -
- -
- getLockOwner  [line 239] -
-
- -
-
-
  - mixed getLockOwner( -Doctrine_Record -$lockedRecord  -) -
-

- -

Gets the identifier that identifies the owner of the lock on the given record. -

- - Parameters:
- - - - -
- Doctrine_Record   - $lockedRecord:  - The record.
- -
- API Tags:
- - - - - - - -
Return:  The unique user identifier that identifies the owner of the lock.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- releaseAgedLocks  [line 257] -
-
- -
-
-
  - integer releaseAgedLocks( -[integer -$age = 900], [string -$objectType = null], [mixed -$userIdent = null]  -) -
-

- -

Releases locks older than a defined amount of seconds -

-

When called without parameters all locks older than 15 minutes are released.

- Parameters:
- - - - - - - - - - -
- integer   - $age:  - The maximum valid age of locks in seconds
- string   - $objectType:  - The type of the object (component name)
- mixed   - $userIdent:  - The unique identifier of the locking user
- -
- API Tags:
- - - - - - - -
Return:  The number of locks that have been released
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Locking_Exception If the release process failed due to database errors
- - -
-
[ Top ]
-
- -
- -
- releaseLock  [line 168] -
-
- -
-
-
  - boolean releaseLock( -Doctrine_Record -$record, mixed -$userIdent  -) -
-

- -

Releases a lock on a Doctrine_Record -

- - Parameters:
- - - - - - - -
- Doctrine_Record   - $record:  - The record for which the lock has to be released
- mixed   - $userIdent:  - The unique identifier of the locking user
- -
- API Tags:
- - - - - - - -
Return:  TRUE if a lock was released, FALSE if no lock was released
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Locking_Exception If the release procedure failed due to database errors
- - -
-
[ Top ]
-
- -
- -
- _getLockingUserIdent  [line 205] -
-
- -
-
-
  - mixed _getLockingUserIdent( -string -$objectType, mixed -$key  -) -
-

- -

Gets the unique user identifier of a lock -

- - Parameters:
- - - - - - - -
- string   - $objectType:  - The type of the object (component name)
- mixed   - $key:  - The unique key of the object
- -
- API Tags:
- - - - - - - -
Return:  The unique user identifier for the specified lock
Access:  private
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Locking_Exception If the query failed due to database errors
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Manager.html b/api_documentation/trunk/Doctrine/Doctrine_Manager.html deleted file mode 100644 index aa4824f87..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Manager.html +++ /dev/null @@ -1,2201 +0,0 @@ - - -
-

Class: Doctrine_Manager

-Source Location: /Doctrine/Manager.php

- -

Class Doctrine_Manager

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

-

Doctrine_Manager is the base component of all doctrine based projects. -

-

It opens and keeps track of all connections (database connections).

-

- Located in /Doctrine/Manager.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Manager
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2290 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static mixed  $driverMap  
array  $_bound  
array  $_connections  
integer  $_currIndex  
integer  $_index  
array  $_integrityActions  
string  $_root  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - Doctrine_Connection   - connection()  connection
static - Doctrine_Manager   - getInstance()  getInstance returns an instance of this class (this class uses the singleton pattern)
static - Doctrine_Table   - table()  table this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment
Doctrine_Manager  __construct()  constructor
void  addDeleteAction()  
void  addUpdateAction()  
boolean  bindComponent()  bindComponent
void  closeConnection()  closes the connection
boolean  contains()  contains whether or not the manager contains specified connection
integer  count()  count returns the number of opened connections
string  getComponentAlias()  getComponentAlias
object Doctrine_Connection  getConnection()  getConnection
Doctrine_Connection  getConnectionForComponent()  getConnectionForComponent
string  getConnectionName()  getConnectionName
array  getConnections()  getConnections returns all opened connections
Doctrine_Connection  getCurrentConnection()  getCurrentConnection returns the current connection
void  getDeleteActions()  
ArrayIterator  getIterator()  getIterator returns an ArrayIterator that iterates through all connections
string  getRoot()  returns the root directory of Doctrine
Doctrine_Table  getTable()  getTable this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment
void  getUpdateActions()  
Doctrine_Connection  openConnection()  openConnection opens a new connection and saves it to Doctrine_Manager->connections
array  parseDsn()  parseDsn
Doctrine_Manager  setComponentAlias()  sets an alias for given component name very useful when building a large framework with a possibility to override any given class
void  setCurrentConnection()  setCurrentConnection sets the current connection to $key
boolean  setDefaultAttributes()  setDefaultAttributes sets default attributes
string  __toString()  __toString returns a string representation of this object
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static mixed   - $driverMap - = array('oci' => 'oracle') [line 62] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_bound - = array() [line 43] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_connections - = array() [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_currIndex - = 0 [line 51] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_index - = 0 [line 47] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_integrityActions - = array() [line 60] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $_root - [line 55] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method connection  [line 176] -
-
- -
-
-
  - static Doctrine_Connection connection( -[PDO|Doctrine_Adapter_Interface -$adapter = null], [string -$name = null]  -) -
-

- -

connection -

-

if the adapter parameter is set this method acts as a short cut for Doctrine_Manager::getInstance()->openConnection($adapter, $name);

if the adapter paramater is not set this method acts as a short cut for Doctrine_Manager::getInstance()->getCurrentConnection()

- Parameters:
- - - - - - - -
- PDO|Doctrine_Adapter_Interface   - $adapter:  - database driver
- string   - $name:  - name of the connection, if empty numeric key is used
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Manager_Exception if trying to bind a connection with an existing name
- - -
-
[ Top ]
-
- -
- -
- static method getInstance  [line 154] -
-
- -
-
-
  - static Doctrine_Manager getInstance( -) -
-

- -

getInstance returns an instance of this class (this class uses the singleton pattern) -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method table  [line 446] -
-
- -
-
-
  - static Doctrine_Table table( -string -$componentName  -) -
-

- -

table this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment -

- - Parameters:
- - - - -
- string   - $componentName:  -
- -
- API Tags:
- - - - - - - -
See:  Doctrine_Connection::getTable()
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 68] -
-
- -
-
-
  - Doctrine_Manager __construct( -) -
-

- -

constructor -

-

this is private constructor (use getInstance to get an instance of this class)

-
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- addDeleteAction  [line 74] -
-
- -
-
-
  - void addDeleteAction( - -$componentName, -$foreignComponent, -$action  -) -
-

- - - Parameters:
- - - - - - - - - - -
-    - $componentName:  -
-    - $foreignComponent:  -
-    - $action:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addUpdateAction  [line 78] -
-
- -
-
-
  - void addUpdateAction( - -$componentName, -$foreignComponent, -$action  -) -
-

- - - Parameters:
- - - - - - - - - - -
-    - $componentName:  -
-    - $foreignComponent:  -
-    - $action:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- bindComponent  [line 407] -
-
- -
-
-
  - boolean bindComponent( -string -$componentName, string -$connectionName  -) -
-

- -

bindComponent -

-

binds given component to given connection this means that when ever the given component uses a connection it will be using the bound connection instead of the current connection

- Parameters:
- - - - - - - -
- string   - $componentName:  -
- string   - $connectionName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- closeConnection  [line 458] -
-
- -
-
-
  - void closeConnection( -Doctrine_Connection -$connection  -) -
-

- -

closes the connection -

- - Parameters:
- - - - -
- Doctrine_Connection   - $connection:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- contains  [line 504] -
-
- -
-
-
  - boolean contains( -mixed -$key  -) -
-

- -

contains whether or not the manager contains specified connection -

- - Parameters:
- - - - -
- mixed   - $key:  - the connection key
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 514] -
-
- -
-
-
  - integer count( -) -
-

- -

count returns the number of opened connections -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- getComponentAlias  [line 364] -
-
- -
-
-
  - string getComponentAlias( -string -$componentName  -) -
-

- -

getComponentAlias -

-

retrieves the alias for given component name if the alias couldn't be found, this method returns the given component name

- Parameters:
- - - - -
- string   - $componentName:  -
- -
- API Tags:
- - - - - - - -
Return:  the component alias
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnection  [line 347] -
-
- -
-
-
  - object Doctrine_Connection getConnection( - -$name, integer -$index  -) -
-

- -

getConnection -

- - Parameters:
- - - - - - - -
- integer   - $index:  -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Manager_Exception if trying to get a non-existent connection
- - -
-
[ Top ]
-
- -
- -
- getConnectionForComponent  [line 417] -
-
- -
-
-
  - Doctrine_Connection getConnectionForComponent( -[string -$componentName = null]  -) -
-

- -

getConnectionForComponent -

- - Parameters:
- - - - -
- string   - $componentName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnectionName  [line 393] -
-
- -
-
-
  - string getConnectionName( -Doctrine_Connection -$conn  -) -
-

- -

getConnectionName -

- - Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - connection object to be searched for
- -
- API Tags:
- - - - - - - -
Return:  the name of the connection
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnections  [line 477] -
-
- -
-
-
  - array getConnections( -) -
-

- -

getConnections returns all opened connections -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getCurrentConnection  [line 535] -
-
- -
-
-
  - Doctrine_Connection getCurrentConnection( -) -
-

- -

getCurrentConnection returns the current connection -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if there are no open connections
- - -
-
[ Top ]
-
- -
- -
- getDeleteActions  [line 82] -
-
- -
-
-
  - void getDeleteActions( - -$componentName  -) -
-

- - - Parameters:
- - - - -
-    - $componentName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 524] -
-
- -
-
-
  - ArrayIterator getIterator( -) -
-

- -

getIterator returns an ArrayIterator that iterates through all connections -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- getRoot  [line 143] -
-
- -
-
-
  - string getRoot( -) -
-

- -

returns the root directory of Doctrine -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTable  [line 433] -
-
- -
-
-
  - Doctrine_Table getTable( -string -$componentName  -) -
-

- -

getTable this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment -

- - Parameters:
- - - - -
- string   - $componentName:  -
- -
- API Tags:
- - - - - - - -
See:  Doctrine_Connection::getTable()
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getUpdateActions  [line 90] -
-
- -
-
-
  - void getUpdateActions( - -$componentName  -) -
-

- - - Parameters:
- - - - -
-    - $componentName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- openConnection  [line 194] -
-
- -
-
-
  - Doctrine_Connection openConnection( -PDO|Doctrine_Adapter_Interface -$adapter, [string -$name = null], [ -$setCurrent = true]  -) -
-

- -

openConnection opens a new connection and saves it to Doctrine_Manager->connections -

- - Parameters:
- - - - - - - - - - -
- PDO|Doctrine_Adapter_Interface   - $adapter:  - database driver
- string   - $name:  - name of the connection, if empty numeric key is used
-    - $setCurrent:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Manager_Exception if trying to open connection for unknown driver
Throws:  Doctrine_Manager_Exception if trying to bind a connection with an existing name
- - -
-
[ Top ]
-
- -
- -
- parseDsn  [line 270] -
-
- -
-
-
  - array parseDsn( -string -$dsn  -) -
-

- -

parseDsn -

- - Parameters:
- - - - -
- string   - $dsn:  -
- -
- API Tags:
- - - - - - - -
Return:  Parsed contents of DSN
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setComponentAlias  [line 381] -
-
- -
-
-
  - Doctrine_Manager setComponentAlias( -string -$componentName, string -$alias  -) -
-

- -

sets an alias for given component name very useful when building a large framework with a possibility to override any given class -

- - Parameters:
- - - - - - - -
- string   - $componentName:  - the name of the component
- string   - $alias:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setCurrentConnection  [line 489] -
-
- -
-
-
  - void setCurrentConnection( -mixed -$key  -) -
-

- -

setCurrentConnection sets the current connection to $key -

- - Parameters:
- - - - -
- mixed   - $key:  - the connection key
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  InvalidKeyException
- - -
-
[ Top ]
-
- -
- -
- setDefaultAttributes  [line 104] -
-
- -
-
-
  - boolean setDefaultAttributes( -) -
-

- -

setDefaultAttributes sets default attributes -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 549] -
-
- -
-
-
  - string __toString( -) -
-

- -

__toString returns a string representation of this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Manager_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Manager_Exception.html deleted file mode 100644 index a61e15659..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Manager_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Manager_Exception

-Source Location: /Doctrine/Manager/Exception.php

- -

Class Doctrine_Manager_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Manager_Exception -

- -

- Located in /Doctrine/Manager/Exception.php [line 32] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Manager_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node.html b/api_documentation/trunk/Doctrine/Doctrine_Node.html deleted file mode 100644 index 8303e8822..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node.html +++ /dev/null @@ -1,1058 +0,0 @@ - - -
-

Class: Doctrine_Node

-Source Location: /Doctrine/Node.php

- -

Class Doctrine_Node

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • IteratorAggregate (internal interface)
-

-

Doctrine_Node -

- -

- Located in /Doctrine/Node.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1949 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Node_AdjacencyList - Doctrine_Node_AdjacencyList -
Doctrine_Node_MaterializedPath - Doctrine_Node_MaterializedPath -
Doctrine_Node_NestedSet - Doctrine_Node_NestedSet -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
mixed  $iteratorOptions  
mixed  $iteratorType  
mixed  $options  
mixed  $record  
unknown_type  $_tree  The tree to which the node belongs.
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - object   - factory()  factory method to return node instance based upon chosen implementation
Doctrine_Node  __construct()  contructor, creates node with reference to record and any options
void  getIterator()  get iterator
object instance  getRecord()  getter for record attribute
void  setIteratorOptions()  sets node's iterator options
void  setIteratorType()  sets node's iterator type
void  setRecord()  setter for record attribute
void  traverse()  convenience function for getIterator
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $iteratorOptions - [line 52] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $iteratorType - [line 47] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $options - [line 42] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $record - [line 37] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - unknown_type   - $_tree - [line 59] - -
- -

The tree to which the node belongs. -

- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method factory  [line 82] -
-
- -
-
-
  - static object factory( -Doctrine_Record -$record, -$implName, [array -$options = array()], string -$impName  -) -
-

- -

factory method to return node instance based upon chosen implementation -

- - Parameters:
- - - - - - - - - - - - - -
- object   - $record:  - instance of Doctrine_Record
- string   - $impName:  - implementation (NestedSet, AdjacencyList, MaterializedPath)
- array   - $options:  - options
-    - $implName:  -
- -
- API Tags:
- - - - - - - -
Return:  instance of Doctrine_Node
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 67] -
-
- -
-
-
  - Doctrine_Node __construct( -Doctrine_Record -$record, array -$options  -) -
-

- -

contructor, creates node with reference to record and any options -

- - Parameters:
- - - - - - - -
- object   - $record:  - instance of Doctrine_Record
- array   - $options:  - options
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 130] -
-
- -
-
-
  - void getIterator( -[string -$type = null], [array -$options = null]  -) -
-

- -

get iterator -

- - Parameters:
- - - - - - - -
- string   - $type:  - type of iterator (Pre | Post | Level)
- array   - $options:  - options
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- getRecord  [line 108] -
-
- -
-
-
  - object instance getRecord( -) -
-

- -

getter for record attribute -

- -
- API Tags:
- - - - - - - -
Return:  of Doctrine_Record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setIteratorOptions  [line 161] -
-
- -
-
-
  - void setIteratorOptions( -int -$options  -) -
-

- -

sets node's iterator options -

- - Parameters:
- - - - -
- int   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setIteratorType  [line 151] -
-
- -
-
-
  - void setIteratorType( -int -$type  -) -
-

- -

sets node's iterator type -

- - Parameters:
- - - - -
- int   - $type:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setRecord  [line 98] -
-
- -
-
-
  - void setRecord( -Doctrine_Record -$record  -) -
-

- -

setter for record attribute -

- - Parameters:
- - - - -
- object   - $record:  - instance of Doctrine_Record
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- traverse  [line 119] -
-
- -
-
-
  - void traverse( -[string -$type = 'Pre'], [array -$options = array()]  -) -
-

- -

convenience function for getIterator -

- - Parameters:
- - - - - - - -
- string   - $type:  - type of iterator (Pre | Post | Level)
- array   - $options:  - options
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList.html b/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList.html deleted file mode 100644 index 240ecd332..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList.html +++ /dev/null @@ -1,499 +0,0 @@ - - -
-

Class: Doctrine_Node_AdjacencyList

-Source Location: /Doctrine/Node/AdjacencyList.php

- -

Class Doctrine_Node_AdjacencyList

- - -
-
Class Overview
- -
- - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Node_AdjacencyList -

- -

- Located in /Doctrine/Node/AdjacencyList.php [line 32] -

- - -
Doctrine_Node
-   |
-   --Doctrine_Node_AdjacencyList
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1716 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Node

-
-
-
- Doctrine_Node::$iteratorOptions -
-
- -
-
- Doctrine_Node::$iteratorType -
-
- -
-
- Doctrine_Node::$options -
-
- -
-
- Doctrine_Node::$record -
-
- -
-
- Doctrine_Node::$_tree -
-
- -
-
-
-
-

Inherited From Doctrine_Node

-
-
-
- Doctrine_Node::__construct() -
-
- contructor, creates node with reference to record and any options -
-
- Doctrine_Node::factory() -
-
- factory method to return node instance based upon chosen implementation -
-
- Doctrine_Node::getIterator() -
-
- get iterator -
-
- Doctrine_Node::getRecord() -
-
- getter for record attribute -
-
- Doctrine_Node::setIteratorOptions() -
-
- sets node's iterator options -
-
- Doctrine_Node::setIteratorType() -
-
- sets node's iterator type -
-
- Doctrine_Node::setRecord() -
-
- setter for record attribute -
-
- Doctrine_Node::traverse() -
-
- convenience function for getIterator -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_LevelOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_LevelOrderIterator.html deleted file mode 100644 index b4432c705..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_LevelOrderIterator.html +++ /dev/null @@ -1,348 +0,0 @@ - - -
-

Class: Doctrine_Node_AdjacencyList_LevelOrderIterator

-Source Location: /Doctrine/Node/AdjacencyList/LevelOrderIterator.php

- -

Class Doctrine_Node_AdjacencyList_LevelOrderIterator

- - -
-
Class Overview
- -
- - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Node_AdjacencyList_LevelOrderIterator -

- -

- Located in /Doctrine/Node/AdjacencyList/LevelOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1716 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - - - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PostOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PostOrderIterator.html deleted file mode 100644 index 1d5fb572e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PostOrderIterator.html +++ /dev/null @@ -1,348 +0,0 @@ - - -
-

Class: Doctrine_Node_AdjacencyList_PostOrderIterator

-Source Location: /Doctrine/Node/AdjacencyList/PostOrderIterator.php

- -

Class Doctrine_Node_AdjacencyList_PostOrderIterator

- - -
-
Class Overview
- -
- - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Node_AdjacencyList_PostOrderIterator -

- -

- Located in /Doctrine/Node/AdjacencyList/PostOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1716 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - - - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PreOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PreOrderIterator.html deleted file mode 100644 index eeb7441f0..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_AdjacencyList_PreOrderIterator.html +++ /dev/null @@ -1,348 +0,0 @@ - - -
-

Class: Doctrine_Node_AdjacencyList_PreOrderIterator

-Source Location: /Doctrine/Node/AdjacencyList/PreOrderIterator.php

- -

Class Doctrine_Node_AdjacencyList_PreOrderIterator

- - -
-
Class Overview
- -
- - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Node_AdjacencyList_PreOrderIterator -

- -

- Located in /Doctrine/Node/AdjacencyList/PreOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1716 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - - - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Node_Exception.html deleted file mode 100644 index a4d11a812..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Node_Exception

-Source Location: /Doctrine/Node/Exception.php

- -

Class Doctrine_Node_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Node_Exception -

- -

- Located in /Doctrine/Node/Exception.php [line 32] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Node_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Node_Interface.html deleted file mode 100644 index 88f565858..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_Interface.html +++ /dev/null @@ -1,1895 +0,0 @@ - - -
-

Interface: Doctrine_Node_Interface

-Source Location: /Doctrine/Node/Interface.php

- -

Interface Doctrine_Node_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Node_Interface -

- -

- Located in /Doctrine/Node/Interface.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  addChild()  adds node as last child of record
void  delete()  deletes node and it's descendants
object Doctrine_Collection  getAncestors()  gets ancestors for node
array  getChildren()  gets children for node (direct descendants only)
iterator  getDescendants()  gets descendants for node (direct descendants only)
object Doctrine_Record  getFirstChild()  gets record of first child or empty record
object Doctrine_Record  getLastChild()  gets record of last child or empty record
int  getLevel()  gets level (depth) of node in the tree
object Doctrine_Record  getNextSibling()  gets record of next sibling or empty record
int  getNumberChildren()  gets number of children (direct descendants)
int  getNumberDescendants()  gets number of descendants (children and their children)
object Doctrine_Record  getParent()  gets record of parent or empty record
string  getPath()  gets path to node from root, uses record::toString() method to get node names
object Doctrine_Record  getPrevSibling()  gets record of prev sibling or empty record
array  getSiblings()  gets siblings for node
bool  hasChildren()  test if node has children
bool  hasNextSibling()  test if node has next sibling
bool  hasParent()  test if node has parent
bool  hasPrevSibling()  test if node has previous sibling
bool  insertAsFirstChildOf()  inserts node as first child of dest record
bool  insertAsLastChildOf()  inserts node as first child of dest record
bool  insertAsNextSiblingOf()  inserts node as next sibling of dest record
bool  insertAsParentOf()  inserts node as parent of dest record
bool  insertAsPrevSiblingOf()  inserts node as previous sibling of dest record
bool  isDescendantOf()  determines if node is child of subject node
bool  isDescendantOfOrEqualTo()  determines if node is child of or sibling to subject node
bool  isEqualTo()  determines if node is equal to subject node
bool  isLeaf()  determines if node is leaf
bool  isRoot()  determines if node is root
bool  isValidNode()  determines if node is valid
void  moveAsFirstChildOf()  moves node as first child of dest record
void  moveAsLastChildOf()  moves node as last child of dest record
void  moveAsNextSiblingOf()  moves node as next sibling of dest record
void  moveAsPrevSiblingOf()  moves node as prev sibling of dest record
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- addChild  [line 218] -
-
- -
-
-
  - void addChild( -Doctrine_Record -$record  -) -
-

- -

adds node as last child of record -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- delete  [line 266] -
-
- -
-
-
  - void delete( -) -
-

- -

deletes node and it's descendants -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAncestors  [line 123] -
-
- -
-
-
  - object Doctrine_Collection getAncestors( -) -
-

- -

gets ancestors for node -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getChildren  [line 102] -
-
- -
-
-
  - array getChildren( -) -
-

- -

gets children for node (direct descendants only) -

- -
- API Tags:
- - - - - - - -
Return:  array of sibling Doctrine_Record objects
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDescendants  [line 109] -
-
- -
-
-
  - iterator getDescendants( -) -
-

- -

gets descendants for node (direct descendants only) -

- -
- API Tags:
- - - - - - - -
Return:  iterator to traverse descendants from node
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getFirstChild  [line 88] -
-
- -
-
-
  - object Doctrine_Record getFirstChild( -) -
-

- -

gets record of first child or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getLastChild  [line 95] -
-
- -
-
-
  - object Doctrine_Record getLastChild( -) -
-

- -

gets record of last child or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getLevel  [line 139] -
-
- -
-
-
  - int getLevel( -) -
-

- -

gets level (depth) of node in the tree -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNextSibling  [line 74] -
-
- -
-
-
  - object Doctrine_Record getNextSibling( -) -
-

- -

gets record of next sibling or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNumberChildren  [line 146] -
-
- -
-
-
  - int getNumberChildren( -) -
-

- -

gets number of children (direct descendants) -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNumberDescendants  [line 153] -
-
- -
-
-
  - int getNumberDescendants( -) -
-

- -

gets number of descendants (children and their children) -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getParent  [line 116] -
-
- -
-
-
  - object Doctrine_Record getParent( -) -
-

- -

gets record of parent or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPath  [line 132] -
-
- -
-
-
  - string getPath( -[string -$seperator = ' > '], [bool -$includeNode = false]  -) -
-

- -

gets path to node from root, uses record::toString() method to get node names -

- - Parameters:
- - - - - - - -
- string   - $seperator:  - path seperator
- bool   - $includeNode:  - whether or not to include node at end of path
- -
- API Tags:
- - - - - - - -
Return:  string representation of path
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPrevSibling  [line 67] -
-
- -
-
-
  - object Doctrine_Record getPrevSibling( -) -
-

- -

gets record of prev sibling or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSiblings  [line 81] -
-
- -
-
-
  - array getSiblings( -[ -$includeNode = false]  -) -
-

- -

gets siblings for node -

- - Parameters:
- - - - -
-    - $includeNode:  -
- -
- API Tags:
- - - - - - - -
Return:  array of sibling Doctrine_Record objects
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasChildren  [line 53] -
-
- -
-
-
  - bool hasChildren( -) -
-

- -

test if node has children -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasNextSibling  [line 46] -
-
- -
-
-
  - bool hasNextSibling( -) -
-

- -

test if node has next sibling -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasParent  [line 60] -
-
- -
-
-
  - bool hasParent( -) -
-

- -

test if node has parent -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasPrevSibling  [line 39] -
-
- -
-
-
  - bool hasPrevSibling( -) -
-

- -

test if node has previous sibling -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- insertAsFirstChildOf  [line 181] -
-
- -
-
-
  - bool insertAsFirstChildOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as first child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- insertAsLastChildOf  [line 188] -
-
- -
-
-
  - bool insertAsLastChildOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as first child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- insertAsNextSiblingOf  [line 174] -
-
- -
-
-
  - bool insertAsNextSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as next sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- insertAsParentOf  [line 160] -
-
- -
-
-
  - bool insertAsParentOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as parent of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- insertAsPrevSiblingOf  [line 167] -
-
- -
-
-
  - bool insertAsPrevSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as previous sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isDescendantOf  [line 246] -
-
- -
-
-
  - bool isDescendantOf( -Doctrine_Record -$subj  -) -
-

- -

determines if node is child of subject node -

- - Parameters:
- - - - -
- Doctrine_Record   - $subj:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isDescendantOfOrEqualTo  [line 253] -
-
- -
-
-
  - bool isDescendantOfOrEqualTo( -Doctrine_Record -$subj  -) -
-

- -

determines if node is child of or sibling to subject node -

- - Parameters:
- - - - -
- Doctrine_Record   - $subj:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isEqualTo  [line 239] -
-
- -
-
-
  - bool isEqualTo( -Doctrine_Record -$subj  -) -
-

- -

determines if node is equal to subject node -

- - Parameters:
- - - - -
- Doctrine_Record   - $subj:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isLeaf  [line 225] -
-
- -
-
-
  - bool isLeaf( -) -
-

- -

determines if node is leaf -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isRoot  [line 232] -
-
- -
-
-
  - bool isRoot( -) -
-

- -

determines if node is root -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isValidNode  [line 260] -
-
- -
-
-
  - bool isValidNode( -) -
-

- -

determines if node is valid -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- moveAsFirstChildOf  [line 206] -
-
- -
-
-
  - void moveAsFirstChildOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as first child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- moveAsLastChildOf  [line 212] -
-
- -
-
-
  - void moveAsLastChildOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as last child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- moveAsNextSiblingOf  [line 200] -
-
- -
-
-
  - void moveAsNextSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as next sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- moveAsPrevSiblingOf  [line 194] -
-
- -
-
-
  - void moveAsPrevSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as prev sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath.html b/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath.html deleted file mode 100644 index ca54e671e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath.html +++ /dev/null @@ -1,499 +0,0 @@ - - -
-

Class: Doctrine_Node_MaterializedPath

-Source Location: /Doctrine/Node/MaterializedPath.php

- -

Class Doctrine_Node_MaterializedPath

- - -
-
Class Overview
- -
- - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Node_MaterializedPath -

- -

- Located in /Doctrine/Node/MaterializedPath.php [line 32] -

- - -
Doctrine_Node
-   |
-   --Doctrine_Node_MaterializedPath
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1716 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Node

-
-
-
- Doctrine_Node::$iteratorOptions -
-
- -
-
- Doctrine_Node::$iteratorType -
-
- -
-
- Doctrine_Node::$options -
-
- -
-
- Doctrine_Node::$record -
-
- -
-
- Doctrine_Node::$_tree -
-
- -
-
-
-
-

Inherited From Doctrine_Node

-
-
-
- Doctrine_Node::__construct() -
-
- contructor, creates node with reference to record and any options -
-
- Doctrine_Node::factory() -
-
- factory method to return node instance based upon chosen implementation -
-
- Doctrine_Node::getIterator() -
-
- get iterator -
-
- Doctrine_Node::getRecord() -
-
- getter for record attribute -
-
- Doctrine_Node::setIteratorOptions() -
-
- sets node's iterator options -
-
- Doctrine_Node::setIteratorType() -
-
- sets node's iterator type -
-
- Doctrine_Node::setRecord() -
-
- setter for record attribute -
-
- Doctrine_Node::traverse() -
-
- convenience function for getIterator -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_LevelOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_LevelOrderIterator.html deleted file mode 100644 index 42edc741c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_LevelOrderIterator.html +++ /dev/null @@ -1,739 +0,0 @@ - - -
-

Class: Doctrine_Node_MaterializedPath_LevelOrderIterator

-Source Location: /Doctrine/Node/MaterializedPath/LevelOrderIterator.php

- -

Class Doctrine_Node_MaterializedPath_LevelOrderIterator

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Node_MaterializedPath_LevelOrderIterator -

- -

- Located in /Doctrine/Node/MaterializedPath/LevelOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $curNode  
mixed  $topNode  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Node_MaterializedPath_LevelOrderIterator  __construct()  
void  current()  
void  key()  
void  next()  
void  rewind()  
void  valid()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $curNode - = null [line 36] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $topNode - = null [line 34] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 38] -
-
- -
-
-
  - Doctrine_Node_MaterializedPath_LevelOrderIterator __construct( - -$node, -$opts  -) -
-

- - - Parameters:
- - - - - - - -
-    - $node:  -
-    - $opts:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- current  [line 53] -
-
- -
-
-
  - void current( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::current
-
- -
-
[ Top ]
-
- -
- -
- key  [line 58] -
-
- -
-
-
  - void key( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::key
-
- -
-
[ Top ]
-
- -
- -
- next  [line 63] -
-
- -
-
-
  - void next( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::next
-
- -
-
[ Top ]
-
- -
- -
- rewind  [line 43] -
-
- -
-
-
  - void rewind( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::rewind
-
- -
-
[ Top ]
-
- -
- -
- valid  [line 48] -
-
- -
-
-
  - void valid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::valid
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PostOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PostOrderIterator.html deleted file mode 100644 index 4c69b2fcd..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PostOrderIterator.html +++ /dev/null @@ -1,739 +0,0 @@ - - -
-

Class: Doctrine_Node_MaterializedPath_PostOrderIterator

-Source Location: /Doctrine/Node/MaterializedPath/PostOrderIterator.php

- -

Class Doctrine_Node_MaterializedPath_PostOrderIterator

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Node_MaterializedPath_PostOrderIterator -

- -

- Located in /Doctrine/Node/MaterializedPath/PostOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $curNode  
mixed  $topNode  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Node_MaterializedPath_PostOrderIterator  __construct()  
void  current()  
void  key()  
void  next()  
void  rewind()  
void  valid()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $curNode - = null [line 36] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $topNode - = null [line 34] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 38] -
-
- -
-
-
  - Doctrine_Node_MaterializedPath_PostOrderIterator __construct( - -$node, -$opts  -) -
-

- - - Parameters:
- - - - - - - -
-    - $node:  -
-    - $opts:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- current  [line 53] -
-
- -
-
-
  - void current( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::current
-
- -
-
[ Top ]
-
- -
- -
- key  [line 58] -
-
- -
-
-
  - void key( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::key
-
- -
-
[ Top ]
-
- -
- -
- next  [line 63] -
-
- -
-
-
  - void next( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::next
-
- -
-
[ Top ]
-
- -
- -
- rewind  [line 43] -
-
- -
-
-
  - void rewind( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::rewind
-
- -
-
[ Top ]
-
- -
- -
- valid  [line 48] -
-
- -
-
-
  - void valid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::valid
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PreOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PreOrderIterator.html deleted file mode 100644 index d10ed6695..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_MaterializedPath_PreOrderIterator.html +++ /dev/null @@ -1,739 +0,0 @@ - - -
-

Class: Doctrine_Node_MaterializedPath_PreOrderIterator

-Source Location: /Doctrine/Node/MaterializedPath/PreOrderIterator.php

- -

Class Doctrine_Node_MaterializedPath_PreOrderIterator

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Node_MaterializedPath_PreOrderIterator -

- -

- Located in /Doctrine/Node/MaterializedPath/PreOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $curNode  
mixed  $topNode  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Node_MaterializedPath_PreOrderIterator  __construct()  
void  current()  
void  key()  
void  next()  
void  rewind()  
void  valid()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $curNode - = null [line 36] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $topNode - = null [line 34] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 38] -
-
- -
-
-
  - Doctrine_Node_MaterializedPath_PreOrderIterator __construct( - -$node, -$opts  -) -
-

- - - Parameters:
- - - - - - - -
-    - $node:  -
-    - $opts:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- current  [line 53] -
-
- -
-
-
  - void current( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::current
-
- -
-
[ Top ]
-
- -
- -
- key  [line 58] -
-
- -
-
-
  - void key( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::key
-
- -
-
[ Top ]
-
- -
- -
- next  [line 63] -
-
- -
-
-
  - void next( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::next
-
- -
-
[ Top ]
-
- -
- -
- rewind  [line 43] -
-
- -
-
-
  - void rewind( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::rewind
-
- -
-
[ Top ]
-
- -
- -
- valid  [line 48] -
-
- -
-
-
  - void valid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::valid
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet.html b/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet.html deleted file mode 100644 index 254b67b94..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet.html +++ /dev/null @@ -1,3010 +0,0 @@ - - -
-

Class: Doctrine_Node_NestedSet

-Source Location: /Doctrine/Node/NestedSet.php

- -

Class Doctrine_Node_NestedSet

- - - - - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Node

-
-
-
- Doctrine_Node::$iteratorOptions -
-
- -
-
- Doctrine_Node::$iteratorType -
-
- -
-
- Doctrine_Node::$options -
-
- -
-
- Doctrine_Node::$record -
-
- -
-
- Doctrine_Node::$_tree -
-
- -
-
-
-
-

Inherited From Doctrine_Node

-
-
-
- Doctrine_Node::__construct() -
-
- contructor, creates node with reference to record and any options -
-
- Doctrine_Node::factory() -
-
- factory method to return node instance based upon chosen implementation -
-
- Doctrine_Node::getIterator() -
-
- get iterator -
-
- Doctrine_Node::getRecord() -
-
- getter for record attribute -
-
- Doctrine_Node::setIteratorOptions() -
-
- sets node's iterator options -
-
- Doctrine_Node::setIteratorType() -
-
- sets node's iterator type -
-
- Doctrine_Node::setRecord() -
-
- setter for record attribute -
-
- Doctrine_Node::traverse() -
-
- convenience function for getIterator -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  addChild()  adds node as last child of record
void  delete()  deletes node and it's descendants
mixed  getAncestors()  gets ancestors for node
mixed  getChildren()  gets children for node (direct descendants only)
mixed  getDescendants()  gets descendants for node (direct descendants only)
object Doctrine_Record  getFirstChild()  gets record of first child or empty record
object Doctrine_Record  getLastChild()  gets record of last child or empty record
int  getLeftValue()  gets record's left value
int  getLevel()  gets level (depth) of node in the tree
object Doctrine_Record  getNextSibling()  gets record of next sibling or empty record
int  getNumberChildren()  gets number of children (direct descendants)
int  getNumberDescendants()  gets number of descendants (children and their children)
object Doctrine_Record  getParent()  gets record of parent or empty record
string  getPath()  gets path to node from root, uses record::toString() method to get node names
object Doctrine_Record  getPrevSibling()  gets record of prev sibling or empty record
int  getRightValue()  gets record's right value
void  getRootValue()  get records root id value
array  getSiblings()  gets siblings for node
bool  hasChildren()  test if node has children
bool  hasNextSibling()  test if node has next sibling
bool  hasParent()  test if node has parent
bool  hasPrevSibling()  test if node has previous sibling
bool  insertAsFirstChildOf()  inserts node as first child of dest record
bool  insertAsLastChildOf()  inserts node as last child of dest record
bool  insertAsNextSiblingOf()  inserts node as next sibling of dest record
bool  insertAsParentOf()  inserts node as parent of dest record
bool  insertAsPrevSiblingOf()  inserts node as previous sibling of dest record
void  insertNode()  sets node's left and right values and save's it
bool  isDescendantOf()  determines if node is child of subject node
bool  isDescendantOfOrEqualTo()  determines if node is child of or sibling to subject node
bool  isEqualTo()  determines if node is equal to subject node
bool  isLeaf()  determines if node is leaf
bool  isRoot()  determines if node is root
bool  isValidNode()  determines if node is valid
void  makeRoot()  Makes this node a root node. Only used in multiple-root trees.
void  moveAsFirstChildOf()  moves node as first child of dest record
void  moveAsLastChildOf()  moves node as last child of dest record
void  moveAsNextSiblingOf()  moves node as next sibling of dest record
void  moveAsPrevSiblingOf()  moves node as prev sibling of dest record
void  setLeftValue()  sets record's left value
void  setRightValue()  sets record's right value
void  setRootValue()  sets records root id value
void  shiftRlRange()  adds '$delta' to all Left and Right values that are >= '$first' and <= '$last'.
void  shiftRlValues()  adds '$delta' to all Left and Right values that are >= '$first'. '$delta' can also be negative.
void  updateNode()  move node's and its children to location $destLeft and updates rest of tree
void  _moveBetweenTrees()  Accomplishes moving of nodes between different trees.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- addChild  [line 682] -
-
- -
-
-
  - void addChild( -Doctrine_Record -$record  -) -
-

- -

adds node as last child of record -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::addChild()
-
adds node as last child of record
-
- -
-
[ Top ]
-
- -
- -
- delete  [line 764] -
-
- -
-
-
  - void delete( -) -
-

- -

deletes node and it's descendants -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Delete more efficiently. Wrap in transaction if needed.
- -
-
Implementation of:
-
-
Doctrine_Node_Interface::delete()
-
deletes node and it's descendants
-
- -
-
[ Top ]
-
- -
- -
- getAncestors  [line 276] -
-
- -
-
-
  - mixed getAncestors( -[ -$depth = null], integer -$deth  -) -
-

- -

gets ancestors for node -

- - Parameters:
- - - - - - - -
- integer   - $deth:  - The depth 'upstairs'.
-    - $depth:  -
- -
- API Tags:
- - - - - - - -
Return:  The ancestors of the node or FALSE if the node has no ancestors (this basically means it's a root node).
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getAncestors()
-
gets ancestors for node
-
- -
-
[ Top ]
-
- -
- -
- getChildren  [line 204] -
-
- -
-
-
  - mixed getChildren( -) -
-

- -

gets children for node (direct descendants only) -

- -
- API Tags:
- - - - - - - -
Return:  The children of the node or FALSE if the node has no children.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getChildren()
-
gets children for node (direct descendants only)
-
- -
-
[ Top ]
-
- -
- -
- getDescendants  [line 216] -
-
- -
-
-
  - mixed getDescendants( -[ -$depth = null], [ -$includeNode = false]  -) -
-

- -

gets descendants for node (direct descendants only) -

- - Parameters:
- - - - - - - -
-    - $depth:  -
-    - $includeNode:  -
- -
- API Tags:
- - - - - - - -
Return:  The descendants of the node or FALSE if the node has no descendants.
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Currently all descendants are fetched, no matter the depth. Maybe there is a better solution with less overhead.
- -
-
Implementation of:
-
-
Doctrine_Node_Interface::getDescendants()
-
gets descendants for node (direct descendants only)
-
- -
-
[ Top ]
-
- -
- -
- getFirstChild  [line 152] -
-
- -
-
-
  - object Doctrine_Record getFirstChild( -) -
-

- -

gets record of first child or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getFirstChild()
-
gets record of first child or empty record
-
- -
-
[ Top ]
-
- -
- -
- getLastChild  [line 178] -
-
- -
-
-
  - object Doctrine_Record getLastChild( -) -
-

- -

gets record of last child or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getLastChild()
-
gets record of last child or empty record
-
- -
-
[ Top ]
-
- -
- -
- getLeftValue  [line 913] -
-
- -
-
-
  - int getLeftValue( -) -
-

- -

gets record's left value -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getLevel  [line 953] -
-
- -
-
-
  - int getLevel( -) -
-

- -

gets level (depth) of node in the tree -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getLevel()
-
gets level (depth) of node in the tree
-
- -
-
[ Top ]
-
- -
- -
- getNextSibling  [line 106] -
-
- -
-
-
  - object Doctrine_Record getNextSibling( -) -
-

- -

gets record of next sibling or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getNextSibling()
-
gets record of next sibling or empty record
-
- -
-
[ Top ]
-
- -
- -
- getNumberChildren  [line 319] -
-
- -
-
-
  - int getNumberChildren( -) -
-

- -

gets number of children (direct descendants) -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getNumberChildren()
-
gets number of children (direct descendants)
-
- -
-
[ Top ]
-
- -
- -
- getNumberDescendants  [line 329] -
-
- -
-
-
  - int getNumberDescendants( -) -
-

- -

gets number of descendants (children and their children) -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getNumberDescendants()
-
gets number of descendants (children and their children)
-
- -
-
[ Top ]
-
- -
- -
- getParent  [line 247] -
-
- -
-
-
  - object Doctrine_Record getParent( -) -
-

- -

gets record of parent or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getParent()
-
gets record of parent or empty record
-
- -
-
[ Top ]
-
- -
- -
- getPath  [line 300] -
-
- -
-
-
  - string getPath( -[string -$seperator = ' > '], [ -$includeRecord = false], bool -$includeNode  -) -
-

- -

gets path to node from root, uses record::toString() method to get node names -

- - Parameters:
- - - - - - - - - - -
- string   - $seperator:  - path seperator
- bool   - $includeNode:  - whether or not to include node at end of path
-    - $includeRecord:  -
- -
- API Tags:
- - - - - - - -
Return:  string representation of path
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getPath()
-
gets path to node from root, uses record::toString() method to get node names
-
- -
-
[ Top ]
-
- -
- -
- getPrevSibling  [line 80] -
-
- -
-
-
  - object Doctrine_Record getPrevSibling( -) -
-

- -

gets record of prev sibling or empty record -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getPrevSibling()
-
gets record of prev sibling or empty record
-
- -
-
[ Top ]
-
- -
- -
- getRightValue  [line 933] -
-
- -
-
-
  - int getRightValue( -) -
-

- -

gets record's right value -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRootValue  [line 974] -
-
- -
-
-
  - void getRootValue( -) -
-

- -

get records root id value -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSiblings  [line 132] -
-
- -
-
-
  - array getSiblings( -[ -$includeNode = false]  -) -
-

- -

gets siblings for node -

- - Parameters:
- - - - -
-    - $includeNode:  -
- -
- API Tags:
- - - - - - - -
Return:  array of sibling Doctrine_Record objects
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::getSiblings()
-
gets siblings for node
-
- -
-
[ Top ]
-
- -
- -
- hasChildren  [line 60] -
-
- -
-
-
  - bool hasChildren( -) -
-

- -

test if node has children -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::hasChildren()
-
test if node has children
-
- -
-
[ Top ]
-
- -
- -
- hasNextSibling  [line 50] -
-
- -
-
-
  - bool hasNextSibling( -) -
-

- -

test if node has next sibling -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::hasNextSibling()
-
test if node has next sibling
-
- -
-
[ Top ]
-
- -
- -
- hasParent  [line 70] -
-
- -
-
-
  - bool hasParent( -) -
-

- -

test if node has parent -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::hasParent()
-
test if node has parent
-
- -
-
[ Top ]
-
- -
- -
- hasPrevSibling  [line 40] -
-
- -
-
-
  - bool hasPrevSibling( -) -
-

- -

test if node has previous sibling -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::hasPrevSibling()
-
test if node has previous sibling
-
- -
-
[ Top ]
-
- -
- -
- insertAsFirstChildOf  [line 421] -
-
- -
-
-
  - bool insertAsFirstChildOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as first child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Wrap in transaction
- -
-
Implementation of:
-
-
Doctrine_Node_Interface::insertAsFirstChildOf()
-
inserts node as first child of dest record
-
- -
-
[ Top ]
-
- -
- -
- insertAsLastChildOf  [line 447] -
-
- -
-
-
  - bool insertAsLastChildOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as last child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Wrap in transaction
- -
-
Implementation of:
-
-
Doctrine_Node_Interface::insertAsLastChildOf()
-
inserts node as first child of dest record
-
- -
-
[ Top ]
-
- -
- -
- insertAsNextSiblingOf  [line 395] -
-
- -
-
-
  - bool insertAsNextSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as next sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Wrap in transaction
- -
-
Implementation of:
-
-
Doctrine_Node_Interface::insertAsNextSiblingOf()
-
inserts node as next sibling of dest record
-
- -
-
[ Top ]
-
- -
- -
- insertAsParentOf  [line 340] -
-
- -
-
-
  - bool insertAsParentOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as parent of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Wrap in transaction
- -
-
Implementation of:
-
-
Doctrine_Node_Interface::insertAsParentOf()
-
inserts node as parent of dest record
-
- -
-
[ Top ]
-
- -
- -
- insertAsPrevSiblingOf  [line 369] -
-
- -
-
-
  - bool insertAsPrevSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

inserts node as previous sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Wrap in transaction
- -
-
Implementation of:
-
-
Doctrine_Node_Interface::insertAsPrevSiblingOf()
-
inserts node as previous sibling of dest record
-
- -
-
[ Top ]
-
- -
- -
- insertNode  [line 794] -
-
- -
-
-
  - void insertNode( -[int -$destLeft = 0], [int -$destRight = 0], [ -$destRoot = 1]  -) -
-

- -

sets node's left and right values and save's it -

- - Parameters:
- - - - - - - - - - -
- int   - $destLeft:  - node left value
- int   - $destRight:  - node right value
-    - $destRoot:  -
- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- isDescendantOf  [line 725] -
-
- -
-
-
  - bool isDescendantOf( -Doctrine_Record -$subj  -) -
-

- -

determines if node is child of subject node -

- - Parameters:
- - - - -
- Doctrine_Record   - $subj:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::isDescendantOf()
-
determines if node is child of subject node
-
- -
-
[ Top ]
-
- -
- -
- isDescendantOfOrEqualTo  [line 737] -
-
- -
-
-
  - bool isDescendantOfOrEqualTo( -Doctrine_Record -$subj  -) -
-

- -

determines if node is child of or sibling to subject node -

- - Parameters:
- - - - -
- Doctrine_Record   - $subj:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::isDescendantOfOrEqualTo()
-
determines if node is child of or sibling to subject node
-
- -
-
[ Top ]
-
- -
- -
- isEqualTo  [line 712] -
-
- -
-
-
  - bool isEqualTo( -Doctrine_Record -$subj  -) -
-

- -

determines if node is equal to subject node -

- - Parameters:
- - - - -
- Doctrine_Record   - $subj:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::isEqualTo()
-
determines if node is equal to subject node
-
- -
-
[ Top ]
-
- -
- -
- isLeaf  [line 692] -
-
- -
-
-
  - bool isLeaf( -) -
-

- -

determines if node is leaf -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::isLeaf()
-
determines if node is leaf
-
- -
-
[ Top ]
-
- -
- -
- isRoot  [line 702] -
-
- -
-
-
  - bool isRoot( -) -
-

- -

determines if node is root -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::isRoot()
-
determines if node is root
-
- -
-
[ Top ]
-
- -
- -
- isValidNode  [line 749] -
-
- -
-
-
  - bool isValidNode( -[ -$record = null]  -) -
-

- -

determines if node is valid -

- - Parameters:
- - - - -
-    - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::isValidNode()
-
determines if node is valid
-
- -
-
[ Top ]
-
- -
- -
- makeRoot  [line 627] -
-
- -
-
-
  - void makeRoot( - -$newRootId  -) -
-

- -

Makes this node a root node. Only used in multiple-root trees. -

- - Parameters:
- - - - -
-    - $newRootId:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Exception handling/wrapping
- - -
-
[ Top ]
-
- -
- -
- moveAsFirstChildOf  [line 592] -
-
- -
-
-
  - void moveAsFirstChildOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as first child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::moveAsFirstChildOf()
-
moves node as first child of dest record
-
- -
-
[ Top ]
-
- -
- -
- moveAsLastChildOf  [line 609] -
-
- -
-
-
  - void moveAsLastChildOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as last child of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::moveAsLastChildOf()
-
moves node as last child of dest record
-
- -
-
[ Top ]
-
- -
- -
- moveAsNextSiblingOf  [line 575] -
-
- -
-
-
  - void moveAsNextSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as next sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::moveAsNextSiblingOf()
-
moves node as next sibling of dest record
-
- -
-
[ Top ]
-
- -
- -
- moveAsPrevSiblingOf  [line 558] -
-
- -
-
-
  - void moveAsPrevSiblingOf( -Doctrine_Record -$dest  -) -
-

- -

moves node as prev sibling of dest record -

- - Parameters:
- - - - -
- Doctrine_Record   - $dest:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Node_Interface::moveAsPrevSiblingOf()
-
moves node as prev sibling of dest record
-
- -
-
[ Top ]
-
- -
- -
- setLeftValue  [line 923] -
-
- -
-
-
  - void setLeftValue( -int -$lft  -) -
-

- -

sets record's left value -

- - Parameters:
- - - - -
- int   - $lft:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setRightValue  [line 943] -
-
- -
-
-
  - void setRightValue( -int -$rgt  -) -
-

- -

sets record's right value -

- - Parameters:
- - - - -
- int   - $rgt:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setRootValue  [line 987] -
-
- -
-
-
  - void setRootValue( -int -$value  -) -
-

- -

sets records root id value -

- - Parameters:
- - - - -
- int   - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- shiftRlRange  [line 883] -
-
- -
-
-
  - void shiftRlRange( -int -$first, int -$last, int -$delta, [ -$rootId = 1]  -) -
-

- -

adds '$delta' to all Left and Right values that are >= '$first' and <= '$last'. -

-

'$delta' can also be negative.

- Parameters:
- - - - - - - - - - - - - -
- int   - $first:  - First node to be shifted (L value)
- int   - $last:  - Last node to be shifted (L value)
- int   - $delta:  - Value to be shifted by, can be negative
-    - $rootId:  -
- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- shiftRlValues  [line 850] -
-
- -
-
-
  - void shiftRlValues( -int -$first, int -$delta, [ -$rootId = 1]  -) -
-

- -

adds '$delta' to all Left and Right values that are >= '$first'. '$delta' can also be negative. -

- - Parameters:
- - - - - - - - - - -
- int   - $first:  - First node to be shifted
- int   - $delta:  - Value to be shifted by, can be negative
-    - $rootId:  -
- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- updateNode  [line 808] -
-
- -
-
-
  - void updateNode( -int -$destLeft, -$levelDiff  -) -
-

- -

move node's and its children to location $destLeft and updates rest of tree -

- - Parameters:
- - - - - - - -
- int   - $destLeft:  - destination left value
-    - $levelDiff:  -
- -
- API Tags:
- - - - -
Access:  private
-
- -Information Tags:
- - - - -
Todo:  Wrap in transaction
- - -
-
[ Top ]
-
- -
- -
- _moveBetweenTrees  [line 476] -
-
- -
-
-
  - void _moveBetweenTrees( -Doctrine_Record -$dest, unknown_type -$newLeftValue, unknown_type -$moveType  -) -
-

- -

Accomplishes moving of nodes between different trees. -

-

Used by the move* methods if the root values of the two nodes are different.

- Parameters:
- - - - - - - - - - -
- Doctrine_Record   - $dest:  -
- unknown_type   - $newLeftValue:  -
- unknown_type   - $moveType:  -
- -
- API Tags:
- - - - -
Access:  private
-
- -Information Tags:
- - - - -
Todo:  Better exception handling/wrapping
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_LevelOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_LevelOrderIterator.html deleted file mode 100644 index e1c9ba69a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_LevelOrderIterator.html +++ /dev/null @@ -1,336 +0,0 @@ - - -
-

Class: Doctrine_Node_NestedSet_LevelOrderIterator

-Source Location: /Doctrine/Node/NestedSet/LevelOrderIterator.php

- -

Class Doctrine_Node_NestedSet_LevelOrderIterator

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Node_NestedSet_LevelOrderIterator -

- -

- Located in /Doctrine/Node/NestedSet/LevelOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1659 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - - - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PostOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PostOrderIterator.html deleted file mode 100644 index 52316be69..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PostOrderIterator.html +++ /dev/null @@ -1,336 +0,0 @@ - - -
-

Class: Doctrine_Node_NestedSet_PostOrderIterator

-Source Location: /Doctrine/Node/NestedSet/PostOrderIterator.php

- -

Class Doctrine_Node_NestedSet_PostOrderIterator

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Node_NestedSet_PostOrderIterator -

- -

- Located in /Doctrine/Node/NestedSet/PostOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1659 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - - - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PreOrderIterator.html b/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PreOrderIterator.html deleted file mode 100644 index 2048f37ea..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Node_NestedSet_PreOrderIterator.html +++ /dev/null @@ -1,1011 +0,0 @@ - - -
-

Class: Doctrine_Node_NestedSet_PreOrderIterator

-Source Location: /Doctrine/Node/NestedSet/PreOrderIterator.php

- -

Class Doctrine_Node_NestedSet_PreOrderIterator

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Iterator (internal interface)
-

-

Doctrine_Node_NestedSet_PreOrderIterator -

- -

- Located in /Doctrine/Node/NestedSet/PreOrderIterator.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Collection  $collection  
integer  $count  
integer  $index  
mixed  $key  
array  $keys  
integer  $prevIndex  
integer  $traverseLevel  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Node_NestedSet_PreOrderIterator  __construct()  
void  advanceIndex()  
void  count()  
Doctrine_Record  current()  returns the current record
integer  key()  returns the current key
void  next()  advances the internal pointer
void  rewind()  rewinds the iterator
void  updateLevel()  
boolean  valid()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Collection   - $collection - [line 37] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $count - [line 61] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $index - [line 49] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $key - [line 45] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $keys - [line 41] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $prevIndex - [line 53] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $traverseLevel - [line 57] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 63] -
-
- -
-
-
  - Doctrine_Node_NestedSet_PreOrderIterator __construct( - -$record, -$opts  -) -
-

- - - Parameters:
- - - - - - - -
-    - $record:  -
-    - $opts:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- advanceIndex  [line 164] -
-
- -
-
-
  - void advanceIndex( -) -
-

- - -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 150] -
-
- -
-
-
  - void count( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- current  [line 117] -
-
- -
-
-
  - Doctrine_Record current( -) -
-

- -

returns the current record -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::current
-
- -
-
[ Top ]
-
- -
- -
- key  [line 107] -
-
- -
-
-
  - integer key( -) -
-

- -

returns the current key -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::key
-
- -
-
[ Top ]
-
- -
- -
- next  [line 129] -
-
- -
-
-
  - void next( -) -
-

- -

advances the internal pointer -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::next
-
- -
-
[ Top ]
-
- -
- -
- rewind  [line 96] -
-
- -
-
-
  - void rewind( -) -
-

- -

rewinds the iterator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::rewind
-
- -
-
[ Top ]
-
- -
- -
- updateLevel  [line 155] -
-
- -
-
-
  - void updateLevel( -) -
-

- - -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- valid  [line 145] -
-
- -
-
-
  - boolean valid( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  whether or not the iteration will continue
Access:  public
-
- - -
-
Implementation of:
-
-
Iterator::valid
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Null.html b/api_documentation/trunk/Doctrine/Doctrine_Null.html deleted file mode 100644 index 4fec6347f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Null.html +++ /dev/null @@ -1,444 +0,0 @@ - - -
-

Class: Doctrine_Null

-Source Location: /Doctrine/Null.php

- -

Class Doctrine_Null

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Null -

-

Simple empty class representing a null value used for extra fast null value testing with isset() rather than array_key_exists()

-

- Located in /Doctrine/Null.php [line 35] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 2182 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  exists()  
void  __toString()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- exists  [line 37] -
-
- -
-
-
  - void exists( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 41] -
-
- -
-
-
  - void __toString( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Object.html b/api_documentation/trunk/Doctrine/Doctrine_Object.html deleted file mode 100644 index a142ad228..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Object.html +++ /dev/null @@ -1,600 +0,0 @@ - - -
-

Class: Doctrine_Object

-Source Location: /Doctrine/Object.php

- -

Class Doctrine_Object

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Object -

- -

- Located in /Doctrine/Object.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Access - Doctrine_Access -
Doctrine_Configurable - Doctrine_Configurable the base for Doctrine_Table, Doctrine_Manager and Doctrine_Connection -
Doctrine_Hydrate_Record - Doctrine_Hydrate_Record defines a record fetching strategy for Doctrine_Hydrate -
Doctrine_Hydrate - Doctrine_Hydrate is a base class for Doctrine_RawSql and Doctrine_Query. -
Doctrine_Record_Filter - Doctrine_Record_Filter Filters and prepares the record data -
Doctrine_Validator - Doctrine_Validator Doctrine_Validator performs validations in record properties -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
static Doctrine_Null  $_null  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
static - Doctrine_Null   - getNullObject()  getNullObject returns the null object associated with this object
static - void   - initNullObject()  initNullObject initializes the null object
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static Doctrine_Null   - $_null - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method getNullObject  [line 56] -
-
- -
-
-
  - static Doctrine_Null getNullObject( -) -
-

- -

getNullObject returns the null object associated with this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method initNullObject  [line 46] -
-
- -
-
-
  - static void initNullObject( -Doctrine_Null -$null  -) -
-

- -

initNullObject initializes the null object -

- - Parameters:
- - - - -
- Doctrine_Null   - $null:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Overloadable.html b/api_documentation/trunk/Doctrine/Doctrine_Overloadable.html deleted file mode 100644 index b5627442e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Overloadable.html +++ /dev/null @@ -1,431 +0,0 @@ - - -
-

Interface: Doctrine_Overloadable

-Source Location: /Doctrine/Overloadable.php

- -

Interface Doctrine_Overloadable

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Overloadable a very generic overloading interface -

- -

- Located in /Doctrine/Overloadable.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
mixed  __call()  __call method overloader
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- __call  [line 43] -
-
- -
-
-
  - mixed __call( -string -$m, array -$a  -) -
-

- -

__call method overloader -

- - Parameters:
- - - - - - - -
- string   - $m:  - the name of the method
- array   - $a:  - method arguments
- -
- API Tags:
- - - - - - - -
Return:  anything
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Plugin.html b/api_documentation/trunk/Doctrine/Doctrine_Plugin.html deleted file mode 100644 index 5286f034c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Plugin.html +++ /dev/null @@ -1,595 +0,0 @@ - - -
-

Class: Doctrine_Plugin

-Source Location: /Doctrine/Plugin.php

- -

Class Doctrine_Plugin

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Plugin -

- -

- Located in /Doctrine/Plugin.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $_options  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
mixed  getOption()  returns the value of an option
array  getOptions()  returns all options and their associated values
Doctrine_Plugin  setOption()  sets given value to an option
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_options - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- getOption  [line 45] -
-
- -
-
-
  - mixed getOption( -$option -$name  -) -
-

- -

returns the value of an option -

- - Parameters:
- - - - -
- $option   - $name:  - the name of the option to retrieve
- -
- API Tags:
- - - - - - - -
Return:  the value of the option
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getOptions  [line 75] -
-
- -
-
-
  - array getOptions( -) -
-

- -

returns all options and their associated values -

- -
- API Tags:
- - - - - - - -
Return:  all options as an associative array
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setOption  [line 60] -
-
- -
-
-
  - Doctrine_Plugin setOption( -$option -$name, $value -$value  -) -
-

- -

sets given value to an option -

- - Parameters:
- - - - - - - -
- $option   - $name:  - the name of the option to be changed
- $value   - $value:  - the value of the option
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query.html b/api_documentation/trunk/Doctrine/Doctrine_Query.html deleted file mode 100644 index c046367f0..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query.html +++ /dev/null @@ -1,3399 +0,0 @@ - - -
-

Class: Doctrine_Query

-Source Location: /Doctrine/Query.php

- -

Class Doctrine_Query

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
-

-

Doctrine_Query -

- -

- Located in /Doctrine/Query.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Hydrate
-      |
-      --Doctrine_Query_Abstract
-         |
-         --Doctrine_Query
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2287 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::$aggregateMap -
-
- -
-
- Doctrine_Hydrate::$parts -
-
- -
-
- Doctrine_Hydrate::$pendingAggregates -
-
- -
-
- Doctrine_Hydrate::$type -
-
- -
-
- Doctrine_Hydrate::$_aliasMap -
-
- -
-
- Doctrine_Hydrate::$_cache -
-
- -
-
- Doctrine_Hydrate::$_conn -
-
- -
-
- Doctrine_Hydrate::$_expireCache -
-
- -
-
- Doctrine_Hydrate::$_hydrationMode -
-
- -
-
- Doctrine_Hydrate::$_options -
-
- -
-
- Doctrine_Hydrate::$_params -
-
- -
-
- Doctrine_Hydrate::$_sql -
-
- -
-
- Doctrine_Hydrate::$_tableAliases -
-
- -
-
- Doctrine_Hydrate::$_tableAliasSeeds -
-
- -
-
- Doctrine_Hydrate::$_timeToLive -
-
- -
-
- Doctrine_Hydrate::$_view -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Abstract

-
-
-
- Doctrine_Query_Abstract::addFrom() -
-
- addFrom adds fields to the FROM part of the query -
-
- Doctrine_Query_Abstract::addGroupBy() -
-
- addGroupBy adds fields to the GROUP BY part of the query -
-
- Doctrine_Query_Abstract::addHaving() -
-
- addHaving adds conditions to the HAVING part of the query -
-
- Doctrine_Query_Abstract::addOrderBy() -
-
- addOrderBy adds fields to the ORDER BY part of the query -
-
- Doctrine_Query_Abstract::addSelect() -
-
- addSelect adds fields to the SELECT part of the query -
-
- Doctrine_Query_Abstract::addWhere() -
-
- addWhere adds conditions to the WHERE part of the query -
-
- Doctrine_Query_Abstract::delete() -
-
- delete sets the query type to DELETE -
-
- Doctrine_Query_Abstract::distinct() -
-
- distinct Makes the query SELECT DISTINCT. -
-
- Doctrine_Query_Abstract::forUpdate() -
-
- forUpdate Makes the query SELECT FOR UPDATE. -
-
- Doctrine_Query_Abstract::from() -
-
- from sets the FROM part of the query -
-
- Doctrine_Query_Abstract::groupBy() -
-
- groupBy sets the GROUP BY part of the query -
-
- Doctrine_Query_Abstract::having() -
-
- having sets the HAVING part of the query -
-
- Doctrine_Query_Abstract::innerJoin() -
-
- innerJoin appends an INNER JOIN to the FROM part of the query -
-
- Doctrine_Query_Abstract::leftJoin() -
-
- leftJoin appends a LEFT JOIN to the FROM part of the query -
-
- Doctrine_Query_Abstract::limit() -
-
- limit sets the Query query limit -
-
- Doctrine_Query_Abstract::offset() -
-
- offset sets the Query query offset -
-
- Doctrine_Query_Abstract::orderBy() -
-
- orderBy sets the ORDER BY part of the query -
-
- Doctrine_Query_Abstract::parseQueryPart() -
-
- parseQueryPart parses given DQL query part -
-
- Doctrine_Query_Abstract::select() -
-
- select sets the SELECT part of the query -
-
- Doctrine_Query_Abstract::set() -
-
- set sets the SET part of the query -
-
- Doctrine_Query_Abstract::update() -
-
- update sets the UPDATE part of the query -
-
- Doctrine_Query_Abstract::where() -
-
- where sets the WHERE part of the query -
-
- Doctrine_Query_Abstract::whereIn() -
-
- whereIn adds IN condition to the query WHERE part -
-
-
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::__construct() -
-
- constructor -
-
- Doctrine_Hydrate::addQueryPart() -
-
- addQueryPart adds a query part in the query part array -
-
- Doctrine_Hydrate::addTableAlias() -
-
- addTableAlias adds an alias for table and associates it with given component alias -
-
- Doctrine_Hydrate::applyInheritance() -
-
- applyInheritance applies column aggregation inheritance to DQL / SQL query -
-
- Doctrine_Hydrate::clear() -
-
- clear resets all the variables -
-
- Doctrine_Hydrate::convertEnums() -
-
- -
-
- Doctrine_Hydrate::copyAliases() -
-
- copyAliases copy aliases from another Hydrate object -
-
- Doctrine_Hydrate::createSubquery() -
-
- createSubquery creates a subquery -
-
- Doctrine_Hydrate::execute() -
-
- execute executes the query and populates the data set -
-
- Doctrine_Hydrate::expireCache() -
-
- expireCache -
-
- Doctrine_Hydrate::fetchArray() -
-
- fetchArray Convenience method to execute using array fetching as hydration mode. -
-
- Doctrine_Hydrate::fetchOne() -
-
- fetchOne Convenience method to execute the query and return the first item of the collection. -
-
- Doctrine_Hydrate::generateNewTableAlias() -
-
- generateNewTableAlias generates a new alias from given table alias -
-
- Doctrine_Hydrate::generateTableAlias() -
-
- generateTableAlias generates a table alias from given table name and associates it with given component alias -
-
- Doctrine_Hydrate::getAliasDeclaration() -
-
- getAliasDeclaration get the declaration for given component alias -
-
- Doctrine_Hydrate::getAliasMap() -
-
- getAliasMap returns the component alias map -
-
- Doctrine_Hydrate::getCachedForm() -
-
- getCachedForm returns the cached form of this query for given resultSet -
-
- Doctrine_Hydrate::getCacheDriver() -
-
- getCacheDriver returns the cache driver associated with this object -
-
- Doctrine_Hydrate::getComponentAlias() -
-
- getComponentAlias get component alias associated with given table alias -
-
- Doctrine_Hydrate::getConnection() -
-
- getConnection -
-
- Doctrine_Hydrate::getParams() -
-
- getParams -
-
- Doctrine_Hydrate::getQueryPart() -
-
- setQueryPart sets a query part in the query part array -
-
- Doctrine_Hydrate::getRoot() -
-
- getRoot returns the root component for this object -
-
- Doctrine_Hydrate::getRootAlias() -
-
- getRootAlias returns the alias of the the root component -
-
- Doctrine_Hydrate::getRootDeclaration() -
-
- getRootDeclaration returns the root declaration -
-
- Doctrine_Hydrate::getSql() -
-
- getSql return the sql associated with this object -
-
- Doctrine_Hydrate::getTableAlias() -
-
- getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible -
-
- Doctrine_Hydrate::getTableAliases() -
-
- getTableAliases returns all table aliases -
-
- Doctrine_Hydrate::getTableAliasSeed() -
-
- getTableAliasSeed returns the alias seed for given table alias -
-
- Doctrine_Hydrate::getType() -
-
- getType -
-
- Doctrine_Hydrate::getView() -
-
- getView returns the view associated with this query object (if any) -
-
- Doctrine_Hydrate::hasAliasDeclaration() -
-
- hasAliasDeclaration whether or not this object has a declaration for given component alias -
-
- Doctrine_Hydrate::hasTableAlias() -
-
- hasTableAlias whether or not this object has given tableAlias -
-
- Doctrine_Hydrate::isLimitSubqueryUsed() -
-
- limitSubqueryUsed whether or not limit subquery was used -
-
- Doctrine_Hydrate::parseData2() -
-
- parseData parses the data returned by statement object -
-
- Doctrine_Hydrate::removeQueryPart() -
-
- removeQueryPart removes a query part from the query part array -
-
- Doctrine_Hydrate::serialize() -
-
- serialize this method is automatically called when this Doctrine_Hydrate is serialized -
-
- Doctrine_Hydrate::setAliasMap() -
-
- setAliasMap sets the whole component alias map -
-
- Doctrine_Hydrate::setCacheLifeSpan() -
-
- setCacheLifeSpan -
-
- Doctrine_Hydrate::setHydrationMode() -
-
- Sets the fetchmode. -
-
- Doctrine_Hydrate::setParams() -
-
- setParams -
-
- Doctrine_Hydrate::setQueryPart() -
-
- setQueryPart sets a query part in the query part array -
-
- Doctrine_Hydrate::setView() -
-
- setView sets a database view this query object uses this method should only be called internally by doctrine -
-
- Doctrine_Hydrate::unserialize() -
-
- unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized -
-
- Doctrine_Hydrate::useCache() -
-
- useCache -
-
- Doctrine_Hydrate::_execute() -
-
- -
-
- Doctrine_Hydrate::_setLastElement() -
-
- _setLastElement -
-
- Doctrine_Hydrate::__toString() -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::CREATE -
-
- -
-
- Doctrine_Hydrate::DELETE -
-
- -
-
- Doctrine_Hydrate::HYDRATE_ARRAY -
-
- -
-
- Doctrine_Hydrate::HYDRATE_RECORD -
-
- -
-
- Doctrine_Hydrate::INSERT -
-
- -
-
- Doctrine_Hydrate::SELECT -
-
- -
-
- Doctrine_Hydrate::UPDATE -
-
- -
-
-
-
-
[ Top ]
-
-
- - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
STATE_CLEAN  
STATE_DIRECT  
STATE_DIRTY  
STATE_LOCKED  
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
mixed  $isLimitSubqueryUsed  
mixed  $isSubquery  
mixed  $needsSubquery  
array  $pendingFields  
array  $pendingSubqueries  
mixed  $subqueryAliases  
array  $_dqlParts  
array  $_enumParams  
mixed  $_expressionMap  
array  $_neededTables  
array  $_parsers  
array  $_pendingJoinConditions  
mixed  $_state  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - Doctrine_Query   - create()  create returns a new Doctrine_Query object
Doctrine_Query  addEnumParam()  addEnumParam sets input parameter as an enumerated parameter
Doctrine_Query  addPendingJoinCondition()  addPendingJoinCondition
string  buildFromPart()  buildFromPart builds the from part of the query and returns it
array  convertEnums()  convertEnums convert enum parameters to their integer equivalents
void  copy()  
integer  count()  count fetches the count of the query
Doctrine_Query  free()  Frees the resources used by the query object. It especially breaks a cyclic reference between the query object and it's parsers. This enables PHP's current GC to reclaim the memory.
string  getAggregateAlias()  getAggregateAlias
string  getDql()  getDql returns the DQL query associated with this object
string  getDqlPart()  getDqlPart returns the given DQL query part
array  getEnumParams()  getEnumParams get all enumerated parameters
string  getLimitSubquery()  getLimitSubquery this is method is used by the record limit algorithm
Doctrine_Query_Part  getParser()  getParser parser lazy-loader
string  getQuery()  builds the sql query from the given parameters and applies things such as column aggregation inheritance and limit subqueries if needed
string  getQueryBase()  getQueryBase returns the base of the generated sql query On mysql driver special strategy has to be used for DELETE statements
boolean  isLimitSubqueryUsed()  limitSubqueryUsed
Doctrine_Query|bool  isSubquery()  isSubquery
void  load()  
void  loadRoot()  loadRoot
array  parseAggregateFunction()  parseAggregateFunction parses an aggregate function and returns the parsed form
string  parseClause()  parseClause parses given DQL clause
Doctrine_Query  parseQuery()  DQL PARSER
Doctrine_Query  parseQueryPart()  parseQueryPart parses given DQL query part
void  parseSelect()  parseSelect parses the query select part and adds selected fields to pendingFields array
void  parseSubselect()  parseSubselect
void  postQuery()  postQuery
void  preQuery()  preQuery
void  processPendingAggregates()  processPendingAggregates processes pending aggregate values for given component alias
void  processPendingFields()  processPendingFields the fields in SELECT clause cannot be parsed until the components in FROM clause are parsed, hence this method is called everytime a specific component is being parsed.
void  processPendingSubqueries()  processPendingSubqueries processes pending subqueries
mixed  query()  query query the database with DQL (Doctrine Query Language)
void  reset()  
Doctrine_Query  setOption()  setOption
array  tokenizeQuery()  tokenizeQuery
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $isLimitSubqueryUsed - = false [line 55] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $isSubquery - [line 53] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $needsSubquery - = false [line 48] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $pendingFields - = array() [line 63] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $pendingSubqueries - = array() [line 68] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $subqueryAliases - = array() [line 44] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_dqlParts - = array(
'select' => array(),'forUpdate'=>false,'from'=>array(),'set'=>array(),'join'=>array(),'where'=>array(),'groupby'=>array(),'having'=>array(),'orderby'=>array(),'limit'=>array(),'offset'=>array(),)
[line 81] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_enumParams - = array() [line 76] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_expressionMap - = array() [line 99] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_neededTables - = array() [line 59] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_parsers - = array() [line 72] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_pendingJoinConditions - = array() [line 97] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_state - = Doctrine_Query::STATE_CLEAN [line 101] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method create  [line 110] -
-
- -
-
-
  - static Doctrine_Query create( -[Doctrine_Connection -$conn = null]  -) -
-

- -

create returns a new Doctrine_Query object -

- - Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - optional connection parameter
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- addEnumParam  [line 157] -
-
- -
-
-
  - Doctrine_Query addEnumParam( -string -$key, [ -$table = null], [ -$column = null]  -) -
-

- -

addEnumParam sets input parameter as an enumerated parameter -

- - Parameters:
- - - - - - - - - - -
- string   - $key:  - the key of the input parameter
-    - $table:  -
-    - $column:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addPendingJoinCondition  [line 146] -
-
- -
-
-
  - Doctrine_Query addPendingJoinCondition( -string -$componentAlias, string -$joinCondition  -) -
-

- -

addPendingJoinCondition -

- - Parameters:
- - - - - - - -
- string   - $componentAlias:  - component alias
- string   - $joinCondition:  - dql join condition
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildFromPart  [line 744] -
-
- -
-
-
  - string buildFromPart( -) -
-

- -

buildFromPart builds the from part of the query and returns it -

- -
- API Tags:
- - - - - - - -
Return:  the query sql from part
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- convertEnums  [line 192] -
-
- -
-
-
  - array convertEnums( - -$params  -) -
-

- -

convertEnums convert enum parameters to their integer equivalents -

- - Parameters:
- - - - -
-    - $params:  -
- -
- API Tags:
- - - - - - - -
Return:  converted parameter array
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Hydrate::convertEnums()
-
- -
-
[ Top ]
-
- -
- -
- copy  [line 1535] -
-
- -
-
-
  - void copy( -[Doctrine_Query -$query = null]  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 1463] -
-
- -
-
-
  - integer count( -[array -$params = array()]  -) -
-

- -

count fetches the count of the query -

-

This method executes the main query without all the selected fields, ORDER BY part, LIMIT part and OFFSET part.

Example: Main query: SELECT u.*, p.phonenumber FROM User u LEFT JOIN u.Phonenumber p WHERE p.phonenumber = '123 123' LIMIT 10

The modified DQL query: SELECT COUNT(DISTINCT u.id) FROM User u LEFT JOIN u.Phonenumber p WHERE p.phonenumber = '123 123'

- Parameters:
- - - - -
- array   - $params:  - an array of prepared statement parameters
- -
- API Tags:
- - - - - - - -
Return:  the count of this query
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- free  [line 1557] -
-
- -
-
-
  - Doctrine_Query free( -) -
-

- -

Frees the resources used by the query object. It especially breaks a cyclic reference between the query object and it's parsers. This enables PHP's current GC to reclaim the memory. -

-

This method can therefore be used to reduce memory usage when creating a lot of query objects during a request.

-
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAggregateAlias  [line 231] -
-
- -
-
-
  - string getAggregateAlias( -string -$dqlAlias  -) -
-

- -

getAggregateAlias -

- - Parameters:
- - - - -
- string   - $dqlAlias:  - the dql alias of an aggregate value
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDql  [line 339] -
-
- -
-
-
  - string getDql( -) -
-

- -

getDql returns the DQL query associated with this object -

-

the query is built from $_dqlParts

-
- API Tags:
- - - - - - - -
Return:  the DQL query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDqlPart  [line 323] -
-
- -
-
-
  - string getDqlPart( -string -$queryPart  -) -
-

- -

getDqlPart returns the given DQL query part -

- - Parameters:
- - - - -
- string   - $queryPart:  - the name of the query part
- -
- API Tags:
- - - - - - - -
Return:  the DQL query part
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getEnumParams  [line 173] -
-
- -
-
-
  - array getEnumParams( -) -
-

- -

getEnumParams get all enumerated parameters -

- -
- API Tags:
- - - - - - - -
Return:  all enumerated parameters
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getLimitSubquery  [line 971] -
-
- -
-
-
  - string getLimitSubquery( -) -
-

- -

getLimitSubquery this is method is used by the record limit algorithm -

-

when fetching one-to-many, many-to-many associated data with LIMIT clause an additional subquery is needed for limiting the number of returned records instead of limiting the number of sql result set rows

-
- API Tags:
- - - - - - - -
Return:  the limit subquery
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getParser  [line 253] -
-
- -
-
-
  - Doctrine_Query_Part getParser( - -$name  -) -
-

- -

getParser parser lazy-loader -

- - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Query_Exception if unknown parser name given
- - -
-
[ Top ]
-
- -
- -
- getQuery  [line 822] -
-
- -
-
-
  - string getQuery( -[array -$params = array()]  -) -
-

- -

builds the sql query from the given parameters and applies things such as column aggregation inheritance and limit subqueries if needed -

- - Parameters:
- - - - -
- array   - $params:  - an array of prepared statement params (needed only in mysql driver when limit subquery algorithm is used)
- -
- API Tags:
- - - - - - - -
Return:  the built sql query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQueryBase  [line 721] -
-
- -
-
-
  - string getQueryBase( -) -
-

- -

getQueryBase returns the base of the generated sql query On mysql driver special strategy has to be used for DELETE statements -

- -
- API Tags:
- - - - - - - -
Return:  the base of the generated sql query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isLimitSubqueryUsed  [line 182] -
-
- -
-
-
  - boolean isLimitSubqueryUsed( -) -
-

- -

limitSubqueryUsed -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Hydrate::isLimitSubqueryUsed()
-
limitSubqueryUsed whether or not limit subquery was used
-
- -
-
[ Top ]
-
- -
- -
- isSubquery  [line 216] -
-
- -
-
-
  - Doctrine_Query|bool isSubquery( -[boolean -$bool = null]  -) -
-

- -

isSubquery -

-

if $bool parameter is set this method sets the value of Doctrine_Query::$isSubquery. If this value is set to true the query object will not load the primary key fields of the selected components.

If null is given as the first parameter this method retrieves the current value of Doctrine_Query::$isSubquery.

- Parameters:
- - - - -
- boolean   - $bool:  - whether or not this query acts as a subquery
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- load  [line 1218] -
-
- -
-
-
  - void load( - -$path, [ -$loadFields = true]  -) -
-

- - - Parameters:
- - - - - - - -
-    - $path:  -
-    - $loadFields:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- loadRoot  [line 1418] -
-
- -
-
-
  - void loadRoot( -string -$name, string -$componentAlias  -) -
-

- -

loadRoot -

- - Parameters:
- - - - - - - -
- string   - $name:  -
- string   - $componentAlias:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseAggregateFunction  [line 562] -
-
- -
-
-
  - array parseAggregateFunction( -string -$expr, [ -$nestedCall = false]  -) -
-

- -

parseAggregateFunction parses an aggregate function and returns the parsed form -

- - Parameters:
- - - - - - - -
- string   - $expr:  - DQL aggregate function
-    - $nestedCall:  -
- -
- API Tags:
- - - - - - - - - - -
Return:  parsed form of given function
See:  Doctrine_Expression
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Query_Exception if unknown aggregate function given
- - -
-
[ Top ]
-
- -
- -
- parseClause  [line 473] -
-
- -
-
-
  - string parseClause( - -$clause  -) -
-

- -

parseClause parses given DQL clause -

-

this method handles five tasks:

  1. Converts all DQL functions to their native SQL equivalents
  2. Converts all component references to their table alias equivalents
  3. Converts all column aliases to actual column names
  4. Quotes all identifiers
  5. Parses nested clauses and subqueries recursively

- Parameters:
- - - - -
-    - $clause:  -
- -
- API Tags:
- - - - - - - -
Return:  SQL string
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseQuery  [line 1165] -
-
- -
-
-
  - Doctrine_Query parseQuery( -string -$query, [boolean -$clear = true]  -) -
-

- -

DQL PARSER -

-

parses a DQL query first splits the query in parts and then uses individual parsers for each part

- Parameters:
- - - - - - - -
- string   - $query:  - DQL query
- boolean   - $clear:  - whether or not to clear the aliases
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Query_Exception if some generic parsing error occurs
- - -
-
[ Top ]
-
- -
- -
- parseQueryPart  [line 280] -
-
- -
-
-
  - Doctrine_Query parseQueryPart( -string -$queryPartName, string -$queryPart, [boolean -$append = false]  -) -
-

- -

parseQueryPart parses given DQL query part -

- - Parameters:
- - - - - - - - - - -
- string   - $queryPartName:  - the name of the query part
- string   - $queryPart:  - query part to be parsed
- boolean   - $append:  - whether or not to append the query part to its stack if false is given, this method will overwrite the given query part stack with $queryPart
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Query_Abstract::parseQueryPart()
-
parseQueryPart parses given DQL query part
-
- -
-
[ Top ]
-
- -
- -
- parseSelect  [line 400] -
-
- -
-
-
  - void parseSelect( -string -$dql  -) -
-

- -

parseSelect parses the query select part and adds selected fields to pendingFields array -

- - Parameters:
- - - - -
- string   - $dql:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseSubselect  [line 443] -
-
- -
-
-
  - void parseSubselect( -string -$reference  -) -
-

- -

parseSubselect -

-

parses the subquery found in DQL SELECT part and adds the parsed form into $pendingSubqueries stack

- Parameters:
- - - - -
- string   - $reference:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postQuery  [line 810] -
-
- -
-
-
  - void postQuery( -) -
-

- -

postQuery -

-

Empty template method to provide Query subclasses with the possibility to hook into the query building procedure, doing any custom / specialized post query procedures (for example logging) that are neccessary.

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preQuery  [line 797] -
-
- -
-
-
  - void preQuery( -) -
-

- -

preQuery -

-

Empty template method to provide Query subclasses with the possibility to hook into the query building procedure, doing any custom / specialized query building procedures that are neccessary.

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- processPendingAggregates  [line 648] -
-
- -
-
-
  - void processPendingAggregates( -) -
-

- -

processPendingAggregates processes pending aggregate values for given component alias -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- processPendingFields  [line 363] -
-
- -
-
-
  - void processPendingFields( -string -$componentAlias  -) -
-

- -

processPendingFields the fields in SELECT clause cannot be parsed until the components in FROM clause are parsed, hence this method is called everytime a specific component is being parsed. -

- - Parameters:
- - - - -
- string   - $componentAlias:  - the alias of the component
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Query_Exception if unknown component alias has been given
- - -
-
[ Top ]
-
- -
- -
- processPendingSubqueries  [line 620] -
-
- -
-
-
  - void processPendingSubqueries( -) -
-

- -

processPendingSubqueries processes pending subqueries -

-

subqueries can only be processed when the query is fully constructed since some subqueries may be correlated

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- query  [line 1528] -
-
- -
-
-
  - mixed query( -string -$query, [array -$params = array()]  -) -
-

- -

query query the database with DQL (Doctrine Query Language) -

- - Parameters:
- - - - - - - -
- string   - $query:  - DQL query
- array   - $params:  - prepared statement parameters
- -
- API Tags:
- - - - - - - -
See:  Doctrine::FETCH_* constants
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- reset  [line 114] -
-
- -
-
-
  - void reset( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setOption  [line 132] -
-
- -
-
-
  - Doctrine_Query setOption( -string -$name, string -$value  -) -
-

- -

setOption -

- - Parameters:
- - - - - - - -
- string   - $name:  - option name
- string   - $value:  - option value
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- tokenizeQuery  [line 1114] -
-
- -
-
-
  - array tokenizeQuery( -string -$query  -) -
-

- -

tokenizeQuery -

-

splits the given dql query into an array where keys represent different query part names and values are arrays splitted using sqlExplode method

example:

parameter: $query = "SELECT u.* FROM User u WHERE u.name LIKE ?" returns: array('select' => array('u.*'), 'from' => array('User', 'u'), 'where' => array('u.name', 'LIKE', '?'))

- Parameters:
- - - - -
- string   - $query:  - DQL query
- -
- API Tags:
- - - - - - - -
Return:  an array containing the query string parts
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Query_Exception if some generic parsing error occurs
- - -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - STATE_CLEAN - = 1 - [line 35] - -
- - - -
-
[ Top ]
-
- -
- -
- - STATE_DIRECT - = 3 - [line 39] - -
- - - -
-
[ Top ]
-
- -
- -
- - STATE_DIRTY - = 2 - [line 37] - -
- - - -
-
[ Top ]
-
- -
- -
- - STATE_LOCKED - = 4 - [line 41] - -
- - - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Abstract.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Abstract.html deleted file mode 100644 index a16a6d9a8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Abstract.html +++ /dev/null @@ -1,2200 +0,0 @@ - - -
-

Class: Doctrine_Query_Abstract

-Source Location: /Doctrine/Query/Abstract.php

- -

Class Doctrine_Query_Abstract

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Abstract -

- -

- Located in /Doctrine/Query/Abstract.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Hydrate
-      |
-      --Doctrine_Query_Abstract
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1393 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Query - Doctrine_Query -
Doctrine_RawSql - Doctrine_RawSql -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::$aggregateMap -
-
- -
-
- Doctrine_Hydrate::$parts -
-
- -
-
- Doctrine_Hydrate::$pendingAggregates -
-
- -
-
- Doctrine_Hydrate::$type -
-
- -
-
- Doctrine_Hydrate::$_aliasMap -
-
- -
-
- Doctrine_Hydrate::$_cache -
-
- -
-
- Doctrine_Hydrate::$_conn -
-
- -
-
- Doctrine_Hydrate::$_expireCache -
-
- -
-
- Doctrine_Hydrate::$_hydrationMode -
-
- -
-
- Doctrine_Hydrate::$_options -
-
- -
-
- Doctrine_Hydrate::$_params -
-
- -
-
- Doctrine_Hydrate::$_sql -
-
- -
-
- Doctrine_Hydrate::$_tableAliases -
-
- -
-
- Doctrine_Hydrate::$_tableAliasSeeds -
-
- -
-
- Doctrine_Hydrate::$_timeToLive -
-
- -
-
- Doctrine_Hydrate::$_view -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::__construct() -
-
- constructor -
-
- Doctrine_Hydrate::addQueryPart() -
-
- addQueryPart adds a query part in the query part array -
-
- Doctrine_Hydrate::addTableAlias() -
-
- addTableAlias adds an alias for table and associates it with given component alias -
-
- Doctrine_Hydrate::applyInheritance() -
-
- applyInheritance applies column aggregation inheritance to DQL / SQL query -
-
- Doctrine_Hydrate::clear() -
-
- clear resets all the variables -
-
- Doctrine_Hydrate::convertEnums() -
-
- -
-
- Doctrine_Hydrate::copyAliases() -
-
- copyAliases copy aliases from another Hydrate object -
-
- Doctrine_Hydrate::createSubquery() -
-
- createSubquery creates a subquery -
-
- Doctrine_Hydrate::execute() -
-
- execute executes the query and populates the data set -
-
- Doctrine_Hydrate::expireCache() -
-
- expireCache -
-
- Doctrine_Hydrate::fetchArray() -
-
- fetchArray Convenience method to execute using array fetching as hydration mode. -
-
- Doctrine_Hydrate::fetchOne() -
-
- fetchOne Convenience method to execute the query and return the first item of the collection. -
-
- Doctrine_Hydrate::generateNewTableAlias() -
-
- generateNewTableAlias generates a new alias from given table alias -
-
- Doctrine_Hydrate::generateTableAlias() -
-
- generateTableAlias generates a table alias from given table name and associates it with given component alias -
-
- Doctrine_Hydrate::getAliasDeclaration() -
-
- getAliasDeclaration get the declaration for given component alias -
-
- Doctrine_Hydrate::getAliasMap() -
-
- getAliasMap returns the component alias map -
-
- Doctrine_Hydrate::getCachedForm() -
-
- getCachedForm returns the cached form of this query for given resultSet -
-
- Doctrine_Hydrate::getCacheDriver() -
-
- getCacheDriver returns the cache driver associated with this object -
-
- Doctrine_Hydrate::getComponentAlias() -
-
- getComponentAlias get component alias associated with given table alias -
-
- Doctrine_Hydrate::getConnection() -
-
- getConnection -
-
- Doctrine_Hydrate::getParams() -
-
- getParams -
-
- Doctrine_Hydrate::getQueryPart() -
-
- setQueryPart sets a query part in the query part array -
-
- Doctrine_Hydrate::getRoot() -
-
- getRoot returns the root component for this object -
-
- Doctrine_Hydrate::getRootAlias() -
-
- getRootAlias returns the alias of the the root component -
-
- Doctrine_Hydrate::getRootDeclaration() -
-
- getRootDeclaration returns the root declaration -
-
- Doctrine_Hydrate::getSql() -
-
- getSql return the sql associated with this object -
-
- Doctrine_Hydrate::getTableAlias() -
-
- getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible -
-
- Doctrine_Hydrate::getTableAliases() -
-
- getTableAliases returns all table aliases -
-
- Doctrine_Hydrate::getTableAliasSeed() -
-
- getTableAliasSeed returns the alias seed for given table alias -
-
- Doctrine_Hydrate::getType() -
-
- getType -
-
- Doctrine_Hydrate::getView() -
-
- getView returns the view associated with this query object (if any) -
-
- Doctrine_Hydrate::hasAliasDeclaration() -
-
- hasAliasDeclaration whether or not this object has a declaration for given component alias -
-
- Doctrine_Hydrate::hasTableAlias() -
-
- hasTableAlias whether or not this object has given tableAlias -
-
- Doctrine_Hydrate::isLimitSubqueryUsed() -
-
- limitSubqueryUsed whether or not limit subquery was used -
-
- Doctrine_Hydrate::parseData2() -
-
- parseData parses the data returned by statement object -
-
- Doctrine_Hydrate::removeQueryPart() -
-
- removeQueryPart removes a query part from the query part array -
-
- Doctrine_Hydrate::serialize() -
-
- serialize this method is automatically called when this Doctrine_Hydrate is serialized -
-
- Doctrine_Hydrate::setAliasMap() -
-
- setAliasMap sets the whole component alias map -
-
- Doctrine_Hydrate::setCacheLifeSpan() -
-
- setCacheLifeSpan -
-
- Doctrine_Hydrate::setHydrationMode() -
-
- Sets the fetchmode. -
-
- Doctrine_Hydrate::setParams() -
-
- setParams -
-
- Doctrine_Hydrate::setQueryPart() -
-
- setQueryPart sets a query part in the query part array -
-
- Doctrine_Hydrate::setView() -
-
- setView sets a database view this query object uses this method should only be called internally by doctrine -
-
- Doctrine_Hydrate::unserialize() -
-
- unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized -
-
- Doctrine_Hydrate::useCache() -
-
- useCache -
-
- Doctrine_Hydrate::_execute() -
-
- -
-
- Doctrine_Hydrate::_setLastElement() -
-
- _setLastElement -
-
- Doctrine_Hydrate::__toString() -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::CREATE -
-
- -
-
- Doctrine_Hydrate::DELETE -
-
- -
-
- Doctrine_Hydrate::HYDRATE_ARRAY -
-
- -
-
- Doctrine_Hydrate::HYDRATE_RECORD -
-
- -
-
- Doctrine_Hydrate::INSERT -
-
- -
-
- Doctrine_Hydrate::SELECT -
-
- -
-
- Doctrine_Hydrate::UPDATE -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Query  addFrom()  addFrom adds fields to the FROM part of the query
Doctrine_Query  addGroupBy()  addGroupBy adds fields to the GROUP BY part of the query
Doctrine_Query  addHaving()  addHaving adds conditions to the HAVING part of the query
Doctrine_Query  addOrderBy()  addOrderBy adds fields to the ORDER BY part of the query
Doctrine_Query  addSelect()  addSelect adds fields to the SELECT part of the query
Doctrine_Query  addWhere()  addWhere adds conditions to the WHERE part of the query
Doctrine_Query  delete()  delete sets the query type to DELETE
Doctrine_Query  distinct()  distinct Makes the query SELECT DISTINCT.
Doctrine_Query  forUpdate()  forUpdate Makes the query SELECT FOR UPDATE.
Doctrine_Query  from()  from sets the FROM part of the query
Doctrine_Query  groupBy()  groupBy sets the GROUP BY part of the query
Doctrine_Query  having()  having sets the HAVING part of the query
Doctrine_Query  innerJoin()  innerJoin appends an INNER JOIN to the FROM part of the query
Doctrine_Query  leftJoin()  leftJoin appends a LEFT JOIN to the FROM part of the query
Doctrine_Query  limit()  limit sets the Query query limit
Doctrine_Query  offset()  offset sets the Query query offset
Doctrine_Query  orderBy()  orderBy sets the ORDER BY part of the query
Doctrine_Query  parseQueryPart()  parseQueryPart parses given DQL query part
Doctrine_Query  select()  select sets the SELECT part of the query
Doctrine_Query  set()  set sets the SET part of the query
Doctrine_Query  update()  update sets the UPDATE part of the query
Doctrine_Query  where()  where sets the WHERE part of the query
Doctrine_Query  whereIn()  whereIn adds IN condition to the query WHERE part
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- addFrom  [line 53] -
-
- -
-
-
  - Doctrine_Query addFrom( -string -$from  -) -
-

- -

addFrom adds fields to the FROM part of the query -

- - Parameters:
- - - - -
- string   - $from:  - Query FROM part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addGroupBy  [line 109] -
-
- -
-
-
  - Doctrine_Query addGroupBy( -string -$groupby  -) -
-

- -

addGroupBy adds fields to the GROUP BY part of the query -

- - Parameters:
- - - - -
- string   - $groupby:  - Query GROUP BY part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addHaving  [line 121] -
-
- -
-
-
  - Doctrine_Query addHaving( -string -$having, [mixed -$params = array()]  -) -
-

- -

addHaving adds conditions to the HAVING part of the query -

- - Parameters:
- - - - - - - -
- string   - $having:  - Query HAVING part
- mixed   - $params:  - an array of parameters or a simple scalar
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addOrderBy  [line 137] -
-
- -
-
-
  - Doctrine_Query addOrderBy( -string -$orderby  -) -
-

- -

addOrderBy adds fields to the ORDER BY part of the query -

- - Parameters:
- - - - -
- string   - $orderby:  - Query ORDER BY part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addSelect  [line 42] -
-
- -
-
-
  - Doctrine_Query addSelect( -string -$select  -) -
-

- -

addSelect adds fields to the SELECT part of the query -

- - Parameters:
- - - - -
- string   - $select:  - Query SELECT part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addWhere  [line 65] -
-
- -
-
-
  - Doctrine_Query addWhere( -string -$where, [mixed -$params = array()]  -) -
-

- -

addWhere adds conditions to the WHERE part of the query -

- - Parameters:
- - - - - - - -
- string   - $where:  - Query WHERE part
- mixed   - $params:  - an array of parameters or a simple scalar
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- delete  [line 185] -
-
- -
-
-
  - Doctrine_Query delete( -) -
-

- -

delete sets the query type to DELETE -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- distinct  [line 159] -
-
- -
-
-
  - Doctrine_Query distinct( -[bool -$flag = true]  -) -
-

- -

distinct Makes the query SELECT DISTINCT. -

- - Parameters:
- - - - -
- bool   - $flag:  - Whether or not the SELECT is DISTINCT (default true).
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- forUpdate  [line 173] -
-
- -
-
-
  - Doctrine_Query forUpdate( -[bool -$flag = true]  -) -
-

- -

forUpdate Makes the query SELECT FOR UPDATE. -

- - Parameters:
- - - - -
- bool   - $flag:  - Whether or not the SELECT is FOR UPDATE (default true).
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- from  [line 235] -
-
- -
-
-
  - Doctrine_Query from( -string -$from  -) -
-

- -

from sets the FROM part of the query -

- - Parameters:
- - - - -
- string   - $from:  - Query FROM part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- groupBy  [line 268] -
-
- -
-
-
  - Doctrine_Query groupBy( -string -$groupby  -) -
-

- -

groupBy sets the GROUP BY part of the query -

- - Parameters:
- - - - -
- string   - $groupby:  - Query GROUP BY part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- having  [line 299] -
-
- -
-
-
  - Doctrine_Query having( -string -$having, [mixed -$params = array()]  -) -
-

- -

having sets the HAVING part of the query -

- - Parameters:
- - - - - - - -
- string   - $having:  - Query HAVING part
- mixed   - $params:  - an array of parameters or a simple scalar
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- innerJoin  [line 246] -
-
- -
-
-
  - Doctrine_Query innerJoin( -string -$join  -) -
-

- -

innerJoin appends an INNER JOIN to the FROM part of the query -

- - Parameters:
- - - - -
- string   - $join:  - Query INNER JOIN
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- leftJoin  [line 257] -
-
- -
-
-
  - Doctrine_Query leftJoin( -string -$join  -) -
-

- -

leftJoin appends a LEFT JOIN to the FROM part of the query -

- - Parameters:
- - - - -
- string   - $join:  - Query LEFT JOIN
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- limit  [line 328] -
-
- -
-
-
  - Doctrine_Query limit( -integer -$limit  -) -
-

- -

limit sets the Query query limit -

- - Parameters:
- - - - -
- integer   - $limit:  - limit to be used for limiting the query results
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- offset  [line 339] -
-
- -
-
-
  - Doctrine_Query offset( -integer -$offset  -) -
-

- -

offset sets the Query query offset -

- - Parameters:
- - - - -
- integer   - $offset:  - offset to be used for paginating the query
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- orderBy  [line 317] -
-
- -
-
-
  - Doctrine_Query orderBy( -string -$orderby  -) -
-

- -

orderBy sets the ORDER BY part of the query -

- - Parameters:
- - - - -
- string   - $orderby:  - Query ORDER BY part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseQueryPart  [line 355] -
-
- -
-
-
  - Doctrine_Query parseQueryPart( -string -$queryPartName, string -$queryPart, [boolean -$append = false]  -) -
-

- -

parseQueryPart parses given DQL query part -

- - Parameters:
- - - - - - - - - - -
- string   - $queryPartName:  - the name of the query part
- string   - $queryPart:  - query part to be parsed
- boolean   - $append:  - whether or not to append the query part to its stack if false is given, this method will overwrite the given query part stack with $queryPart
- -
- API Tags:
- - - - - - - - - - -
Return:  this object
Abstract:  
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- select  [line 148] -
-
- -
-
-
  - Doctrine_Query select( -string -$select  -) -
-

- -

select sets the SELECT part of the query -

- - Parameters:
- - - - -
- string   - $select:  - Query SELECT part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- set  [line 211] -
-
- -
-
-
  - Doctrine_Query set( - -$key, -$value, [ -$params = null], string -$update  -) -
-

- -

set sets the SET part of the query -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $update:  - Query UPDATE part
-    - $key:  -
-    - $value:  -
-    - $params:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- update  [line 198] -
-
- -
-
-
  - Doctrine_Query update( -string -$update  -) -
-

- -

update sets the UPDATE part of the query -

- - Parameters:
- - - - -
- string   - $update:  - Query UPDATE part
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- where  [line 280] -
-
- -
-
-
  - Doctrine_Query where( - -$where, [mixed -$params = array()], string -$join  -) -
-

- -

where sets the WHERE part of the query -

- - Parameters:
- - - - - - - - - - -
- string   - $join:  - Query WHERE part
- mixed   - $params:  - an array of parameters or a simple scalar
-    - $where:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- whereIn  [line 82] -
-
- -
-
-
  - Doctrine_Query whereIn( -string -$expr, [mixed -$params = array()]  -) -
-

- -

whereIn adds IN condition to the query WHERE part -

- - Parameters:
- - - - - - - -
- string   - $expr:  -
- mixed   - $params:  - an array of parameters or a simple scalar
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Check.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Check.html deleted file mode 100644 index 06e5695b8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Check.html +++ /dev/null @@ -1,816 +0,0 @@ - - -
-

Class: Doctrine_Query_Check

-Source Location: /Doctrine/Query/Check.php

- -

Class Doctrine_Query_Check

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Query_Check -

- -

- Located in /Doctrine/Query/Check.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
string  $sql  
Doctrine_Table  $table  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Query_Check  __construct()  
string  getSql()  getSql
Doctrine_Connection  getTable()  getTable returns the table object associated with this object
string  parse()  parse
void  parseClause()  parseClause
void  parseFunction()  
void  parseSingle()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - string   - $sql - [line 43] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Table   - $table - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 47] -
-
- -
-
-
  - Doctrine_Query_Check __construct( -Doctrine_Table|string -$table  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Table|string   - $table:  - Doctrine_Table object
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSql  [line 155] -
-
- -
-
-
  - string getSql( -) -
-

- -

getSql -

-

returns database specific sql CHECK constraint definition parsed from the given dql CHECK definition

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTable  [line 62] -
-
- -
-
-
  - Doctrine_Connection getTable( -) -
-

- -

getTable returns the table object associated with this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parse  [line 72] -
-
- -
-
-
  - string parse( -string -$dql  -) -
-

- -

parse -

- - Parameters:
- - - - -
- string   - $dql:  - DQL CHECK constraint definition
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseClause  [line 84] -
-
- -
-
-
  - void parseClause( - -$dql, string -$alias, string -$field, mixed -$value  -) -
-

- -

parseClause -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $alias:  - component alias
- string   - $field:  - the field name
- mixed   - $value:  - the value of the field
-    - $dql:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseFunction  [line 131] -
-
- -
-
-
  - void parseFunction( - -$dql  -) -
-

- - - Parameters:
- - - - -
-    - $dql:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseSingle  [line 111] -
-
- -
-
-
  - void parseSingle( - -$part  -) -
-

- - - Parameters:
- - - - -
-    - $part:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Condition.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Condition.html deleted file mode 100644 index 00db01220..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Condition.html +++ /dev/null @@ -1,601 +0,0 @@ - - -
-

Class: Doctrine_Query_Condition

-Source Location: /Doctrine/Query/Condition.php

- -

Class Doctrine_Query_Condition

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Condition -

- -

- Located in /Doctrine/Query/Condition.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Condition
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1479 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Query_Having - Doctrine_Query_Having -
Doctrine_Query_JoinCondition - Doctrine_Query_JoinCondition -
Doctrine_Query_Where - Doctrine_Query_Where -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
string  parse()  DQL CONDITION PARSER parses the join condition/where/having part of the query string
string  parseLiteralValue()  parses a literal value and returns the parsed value
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 42] -
-
- -
-
-
  - string parse( -string -$str  -) -
-

- -

DQL CONDITION PARSER parses the join condition/where/having part of the query string -

- - Parameters:
- - - - -
- string   - $str:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseLiteralValue  [line 88] -
-
- -
-
-
  - string parseLiteralValue( -string -$value  -) -
-

- -

parses a literal value and returns the parsed value -

-

boolean literals are parsed to integers components are parsed to associated table aliases

- Parameters:
- - - - -
- string   - $value:  - literal value to be parsed
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Exception.html deleted file mode 100644 index 2721b9675..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Query_Exception

-Source Location: /Doctrine/Query/Exception.php

- -

Class Doctrine_Query_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Query_Exception -

- -

- Located in /Doctrine/Query/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Query_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Filter.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Filter.html deleted file mode 100644 index 93b42177b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Filter.html +++ /dev/null @@ -1,489 +0,0 @@ - - -
-

Class: Doctrine_Query_Filter

-Source Location: /Doctrine/Query/Filter.php

- -

Class Doctrine_Query_Filter

- - -
-
Class Overview
- -
- - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Query_Filter -

- -

- Located in /Doctrine/Query/Filter.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  postQuery()  postQuery
void  preQuery()  preQuery
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- postQuery  [line 58] -
-
- -
-
-
  - void postQuery( -Doctrine_Query -$query  -) -
-

- -

postQuery -

-

Method for listening the postQuery method of Doctrine_Query and to hook into the query building procedure, doing any custom / specialized post query procedures (for example logging) that are neccessary.

- Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Query_Filter_Interface::postQuery()
-
postQuery
-
- -
-
[ Top ]
-
- -
- -
- preQuery  [line 44] -
-
- -
-
-
  - void preQuery( -Doctrine_Query -$query  -) -
-

- -

preQuery -

-

Method for listening the preQuery method of Doctrine_Query and hooking into the query building procedure, doing any custom / specialized query building procedures that are neccessary.

- Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Query_Filter_Interface::preQuery()
-
preQuery
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Chain.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Chain.html deleted file mode 100644 index 763b784f8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Chain.html +++ /dev/null @@ -1,700 +0,0 @@ - - -
-

Class: Doctrine_Query_Filter_Chain

-Source Location: /Doctrine/Query/Filter/Chain.php

- -

Class Doctrine_Query_Filter_Chain

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Query_Filter_Chain -

- -

- Located in /Doctrine/Query/Filter/Chain.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $_filters  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  add()  add
mixed  get()  returns a Doctrine_Query_Filter on success and null on failure
void  postQuery()  postQuery
void  preQuery()  preQuery
void  set()  set
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_filters - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- add  [line 45] -
-
- -
-
-
  - void add( -Doctrine_Query_Filter -$filter  -) -
-

- -

add -

- - Parameters:
- - - - -
- Doctrine_Query_Filter   - $filter:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- get  [line 56] -
-
- -
-
-
  - mixed get( -mixed -$key  -) -
-

- -

returns a Doctrine_Query_Filter on success and null on failure -

- - Parameters:
- - - - -
- mixed   - $key:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postQuery  [line 98] -
-
- -
-
-
  - void postQuery( -Doctrine_Query -$query  -) -
-

- -

postQuery -

-

Method for listening the postQuery method of Doctrine_Query and to hook into the query building procedure, doing any custom / specialized post query procedures (for example logging) that are neccessary.

- Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preQuery  [line 83] -
-
- -
-
-
  - void preQuery( -Doctrine_Query -$query  -) -
-

- -

preQuery -

-

Method for listening the preQuery method of Doctrine_Query and hooking into the query building procedure, doing any custom / specialized query building procedures that are neccessary.

- Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- set  [line 70] -
-
- -
-
-
  - void set( -mixed -$key, Doctrine_Query_Filter -$listener  -) -
-

- -

set -

- - Parameters:
- - - - - - - -
- mixed   - $key:  -
- Doctrine_Query_Filter   - $listener:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Interface.html deleted file mode 100644 index 3d84b2d68..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Filter_Interface.html +++ /dev/null @@ -1,472 +0,0 @@ - - -
-

Interface: Doctrine_Query_Filter_Interface

-Source Location: /Doctrine/Query/Filter/Interface.php

- -

Interface Doctrine_Query_Filter_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Query_Filter_Interface -

- -

- Located in /Doctrine/Query/Filter/Interface.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  postQuery()  postQuery
void  preQuery()  preQuery
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- postQuery  [line 56] -
-
- -
-
-
  - void postQuery( -Doctrine_Query -$query  -) -
-

- -

postQuery -

-

Method for listening the postQuery method of Doctrine_Query and to hook into the query building procedure, doing any custom / specialized post query procedures (for example logging) that are neccessary.

- Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preQuery  [line 45] -
-
- -
-
-
  - void preQuery( -Doctrine_Query -$query  -) -
-

- -

preQuery -

-

Method for listening the preQuery method of Doctrine_Query and hooking into the query building procedure, doing any custom / specialized query building procedures that are neccessary.

- Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_From.html b/api_documentation/trunk/Doctrine/Doctrine_Query_From.html deleted file mode 100644 index 62df06d72..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_From.html +++ /dev/null @@ -1,500 +0,0 @@ - - -
-

Class: Doctrine_Query_From

-Source Location: /Doctrine/Query/From.php

- -

Class Doctrine_Query_From

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_From -

- -

- Located in /Doctrine/Query/From.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_From
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2217 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  DQL FROM PARSER
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 42] -
-
- -
-
-
  - void parse( -string -$str  -) -
-

- -

DQL FROM PARSER -

-

parses the from part of the query string

- Parameters:
- - - - -
- string   - $str:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Groupby.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Groupby.html deleted file mode 100644 index 4a6772353..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Groupby.html +++ /dev/null @@ -1,507 +0,0 @@ - - -
-

Class: Doctrine_Query_Groupby

-Source Location: /Doctrine/Query/Groupby.php

- -

Class Doctrine_Query_Groupby

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Groupby -

- -

- Located in /Doctrine/Query/Groupby.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Groupby
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2238 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  DQL GROUP BY PARSER parses the group by part of the query string
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 42] -
-
- -
-
-
  - void parse( -string -$str, [ -$append = false]  -) -
-

- -

DQL GROUP BY PARSER parses the group by part of the query string -

- - Parameters:
- - - - - - - -
- string   - $str:  -
-    - $append:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Having.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Having.html deleted file mode 100644 index 14b73d407..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Having.html +++ /dev/null @@ -1,570 +0,0 @@ - - -
-

Class: Doctrine_Query_Having

-Source Location: /Doctrine/Query/Having.php

- -

Class Doctrine_Query_Having

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Having -

- -

- Located in /Doctrine/Query/Having.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Condition
-      |
-      --Doctrine_Query_Having
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1881 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Condition

-
-
-
- Doctrine_Query_Condition::parse() -
-
- DQL CONDITION PARSER parses the join condition/where/having part of the query string -
-
- Doctrine_Query_Condition::parseLiteralValue() -
-
- parses a literal value and returns the parsed value -
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
string  load()  load returns the parsed query part
mixed  parseAggregateFunction()  DQL Aggregate Function parser
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- load  [line 87] -
-
- -
-
-
  - string load( -string -$having  -) -
-

- -

load returns the parsed query part -

- - Parameters:
- - - - -
- string   - $having:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseAggregateFunction  [line 41] -
-
- -
-
-
  - mixed parseAggregateFunction( -string -$func  -) -
-

- -

DQL Aggregate Function parser -

- - Parameters:
- - - - -
- string   - $func:  -
- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_JoinCondition.html b/api_documentation/trunk/Doctrine/Doctrine_Query_JoinCondition.html deleted file mode 100644 index 6696c0cb6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_JoinCondition.html +++ /dev/null @@ -1,517 +0,0 @@ - - -
-

Class: Doctrine_Query_JoinCondition

-Source Location: /Doctrine/Query/JoinCondition.php

- -

Class Doctrine_Query_JoinCondition

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_JoinCondition -

- -

- Located in /Doctrine/Query/JoinCondition.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Condition
-      |
-      --Doctrine_Query_JoinCondition
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2217 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Condition

-
-
-
- Doctrine_Query_Condition::parse() -
-
- DQL CONDITION PARSER parses the join condition/where/having part of the query string -
-
- Doctrine_Query_Condition::parseLiteralValue() -
-
- parses a literal value and returns the parsed value -
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  load()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- load  [line 35] -
-
- -
-
-
  - void load( - -$condition  -) -
-

- - - Parameters:
- - - - -
-    - $condition:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Limit.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Limit.html deleted file mode 100644 index 466c05316..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Limit.html +++ /dev/null @@ -1,498 +0,0 @@ - - -
-

Class: Doctrine_Query_Limit

-Source Location: /Doctrine/Query/Limit.php

- -

Class Doctrine_Query_Limit

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Limit -

- -

- Located in /Doctrine/Query/Limit.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Limit
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1352 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 35] -
-
- -
-
-
  - void parse( - -$limit  -) -
-

- - - Parameters:
- - - - -
-    - $limit:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Offset.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Offset.html deleted file mode 100644 index 9a9836e24..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Offset.html +++ /dev/null @@ -1,498 +0,0 @@ - - -
-

Class: Doctrine_Query_Offset

-Source Location: /Doctrine/Query/Offset.php

- -

Class Doctrine_Query_Offset

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Offset -

- -

- Located in /Doctrine/Query/Offset.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Offset
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1352 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 35] -
-
- -
-
-
  - void parse( - -$offset  -) -
-

- - - Parameters:
- - - - -
-    - $offset:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Orderby.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Orderby.html deleted file mode 100644 index 74a5fb0a4..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Orderby.html +++ /dev/null @@ -1,507 +0,0 @@ - - -
-

Class: Doctrine_Query_Orderby

-Source Location: /Doctrine/Query/Orderby.php

- -

Class Doctrine_Query_Orderby

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Orderby -

- -

- Located in /Doctrine/Query/Orderby.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Orderby
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1871 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  DQL ORDER BY PARSER parses the order by part of the query string
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 42] -
-
- -
-
-
  - void parse( -string -$str, [ -$append = false]  -) -
-

- -

DQL ORDER BY PARSER parses the order by part of the query string -

- - Parameters:
- - - - - - - -
- string   - $str:  -
-    - $append:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Parser.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Parser.html deleted file mode 100644 index 72e372d86..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Parser.html +++ /dev/null @@ -1,336 +0,0 @@ - - -
-

Class: Doctrine_Query_Parser

-Source Location: /Doctrine/Query/Parser.php

- -

Class Doctrine_Query_Parser

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Query_Parser -

- -

- Located in /Doctrine/Query/Parser.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1296 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - - - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Part.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Part.html deleted file mode 100644 index 5556f9312..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Part.html +++ /dev/null @@ -1,606 +0,0 @@ - - -
-

Class: Doctrine_Query_Part

-Source Location: /Doctrine/Query/Part.php

- -

Class Doctrine_Query_Part

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Query_Part -

- -

- Located in /Doctrine/Query/Part.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1479 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Query_Condition - Doctrine_Query_Condition -
Doctrine_Query_From - Doctrine_Query_From -
Doctrine_Query_Groupby - Doctrine_Query_Groupby -
Doctrine_Query_Limit - Doctrine_Query_Limit -
Doctrine_Query_Offset - Doctrine_Query_Offset -
Doctrine_Query_Orderby - Doctrine_Query_Orderby -
Doctrine_Query_Select - Doctrine_Query_Select -
Doctrine_Query_Set - Doctrine_Query -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
Doctrine_Query  $query  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Query_Part  __construct()  
Doctrine_Query  getQuery()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Query   - $query - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 42] -
-
- -
-
-
  - Doctrine_Query_Part __construct( -Doctrine_Query -$query  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Query   - $query:  - the query object associated with this parser
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuery  [line 49] -
-
- -
-
-
  - Doctrine_Query getQuery( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  the query object associated with this parser
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Select.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Select.html deleted file mode 100644 index a7c3707a6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Select.html +++ /dev/null @@ -1,498 +0,0 @@ - - -
-

Class: Doctrine_Query_Select

-Source Location: /Doctrine/Query/Select.php

- -

Class Doctrine_Query_Select

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Select -

- -

- Located in /Doctrine/Query/Select.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Select
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 35] -
-
- -
-
-
  - void parse( - -$dql  -) -
-

- - - Parameters:
- - - - -
-    - $dql:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Set.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Set.html deleted file mode 100644 index f61d8869f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Set.html +++ /dev/null @@ -1,498 +0,0 @@ - - -
-

Class: Doctrine_Query_Set

-Source Location: /Doctrine/Query/Set.php

- -

Class Doctrine_Query_Set

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query -

- -

- Located in /Doctrine/Query/Set.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Set
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2119 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- parse  [line 35] -
-
- -
-
-
  - void parse( - -$dql  -) -
-

- - - Parameters:
- - - - -
-    - $dql:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Query_Where.html b/api_documentation/trunk/Doctrine/Doctrine_Query_Where.html deleted file mode 100644 index 25d9ff055..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Query_Where.html +++ /dev/null @@ -1,638 +0,0 @@ - - -
-

Class: Doctrine_Query_Where

-Source Location: /Doctrine/Query/Where.php

- -

Class Doctrine_Query_Where

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Query_Where -

- -

- Located in /Doctrine/Query/Where.php [line 33] -

- - -
Doctrine_Query_Part
-   |
-   --Doctrine_Query_Condition
-      |
-      --Doctrine_Query_Where
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2224 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::$query -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Condition

-
-
-
- Doctrine_Query_Condition::parse() -
-
- DQL CONDITION PARSER parses the join condition/where/having part of the query string -
-
- Doctrine_Query_Condition::parseLiteralValue() -
-
- parses a literal value and returns the parsed value -
-
-
-

Inherited From Doctrine_Query_Part

-
-
-
- Doctrine_Query_Part::__construct() -
-
- -
-
- Doctrine_Query_Part::getQuery() -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
void  load()  
string  parseExists()  parses an EXISTS expression
void  parseValue()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- load  [line 35] -
-
- -
-
-
  - void load( - -$where  -) -
-

- - - Parameters:
- - - - -
-    - $where:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseExists  [line 161] -
-
- -
-
-
  - string parseExists( -string -$where, boolean -$negation  -) -
-

- -

parses an EXISTS expression -

- - Parameters:
- - - - - - - -
- string   - $where:  - query where part to be parsed
- boolean   - $negation:  - whether or not to use the NOT keyword
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseValue  [line 96] -
-
- -
-
-
  - void parseValue( - -$value, [Doctrine_Table -$table = null], [ -$field = null]  -) -
-

- - - Parameters:
- - - - - - - - - - -
-    - $value:  -
- Doctrine_Table   - $table:  -
-    - $field:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_RawSql.html b/api_documentation/trunk/Doctrine/Doctrine_RawSql.html deleted file mode 100644 index 7b57617a4..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_RawSql.html +++ /dev/null @@ -1,1374 +0,0 @@ - - -
-

Class: Doctrine_RawSql

-Source Location: /Doctrine/RawSql.php

- -

Class Doctrine_RawSql

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_RawSql -

- -

- Located in /Doctrine/RawSql.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Hydrate
-      |
-      --Doctrine_Query_Abstract
-         |
-         --Doctrine_RawSql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1847 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::$aggregateMap -
-
- -
-
- Doctrine_Hydrate::$parts -
-
- -
-
- Doctrine_Hydrate::$pendingAggregates -
-
- -
-
- Doctrine_Hydrate::$type -
-
- -
-
- Doctrine_Hydrate::$_aliasMap -
-
- -
-
- Doctrine_Hydrate::$_cache -
-
- -
-
- Doctrine_Hydrate::$_conn -
-
- -
-
- Doctrine_Hydrate::$_expireCache -
-
- -
-
- Doctrine_Hydrate::$_hydrationMode -
-
- -
-
- Doctrine_Hydrate::$_options -
-
- -
-
- Doctrine_Hydrate::$_params -
-
- -
-
- Doctrine_Hydrate::$_sql -
-
- -
-
- Doctrine_Hydrate::$_tableAliases -
-
- -
-
- Doctrine_Hydrate::$_tableAliasSeeds -
-
- -
-
- Doctrine_Hydrate::$_timeToLive -
-
- -
-
- Doctrine_Hydrate::$_view -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Query_Abstract

-
-
-
- Doctrine_Query_Abstract::addFrom() -
-
- addFrom adds fields to the FROM part of the query -
-
- Doctrine_Query_Abstract::addGroupBy() -
-
- addGroupBy adds fields to the GROUP BY part of the query -
-
- Doctrine_Query_Abstract::addHaving() -
-
- addHaving adds conditions to the HAVING part of the query -
-
- Doctrine_Query_Abstract::addOrderBy() -
-
- addOrderBy adds fields to the ORDER BY part of the query -
-
- Doctrine_Query_Abstract::addSelect() -
-
- addSelect adds fields to the SELECT part of the query -
-
- Doctrine_Query_Abstract::addWhere() -
-
- addWhere adds conditions to the WHERE part of the query -
-
- Doctrine_Query_Abstract::delete() -
-
- delete sets the query type to DELETE -
-
- Doctrine_Query_Abstract::distinct() -
-
- distinct Makes the query SELECT DISTINCT. -
-
- Doctrine_Query_Abstract::forUpdate() -
-
- forUpdate Makes the query SELECT FOR UPDATE. -
-
- Doctrine_Query_Abstract::from() -
-
- from sets the FROM part of the query -
-
- Doctrine_Query_Abstract::groupBy() -
-
- groupBy sets the GROUP BY part of the query -
-
- Doctrine_Query_Abstract::having() -
-
- having sets the HAVING part of the query -
-
- Doctrine_Query_Abstract::innerJoin() -
-
- innerJoin appends an INNER JOIN to the FROM part of the query -
-
- Doctrine_Query_Abstract::leftJoin() -
-
- leftJoin appends a LEFT JOIN to the FROM part of the query -
-
- Doctrine_Query_Abstract::limit() -
-
- limit sets the Query query limit -
-
- Doctrine_Query_Abstract::offset() -
-
- offset sets the Query query offset -
-
- Doctrine_Query_Abstract::orderBy() -
-
- orderBy sets the ORDER BY part of the query -
-
- Doctrine_Query_Abstract::parseQueryPart() -
-
- parseQueryPart parses given DQL query part -
-
- Doctrine_Query_Abstract::select() -
-
- select sets the SELECT part of the query -
-
- Doctrine_Query_Abstract::set() -
-
- set sets the SET part of the query -
-
- Doctrine_Query_Abstract::update() -
-
- update sets the UPDATE part of the query -
-
- Doctrine_Query_Abstract::where() -
-
- where sets the WHERE part of the query -
-
- Doctrine_Query_Abstract::whereIn() -
-
- whereIn adds IN condition to the query WHERE part -
-
-
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::__construct() -
-
- constructor -
-
- Doctrine_Hydrate::addQueryPart() -
-
- addQueryPart adds a query part in the query part array -
-
- Doctrine_Hydrate::addTableAlias() -
-
- addTableAlias adds an alias for table and associates it with given component alias -
-
- Doctrine_Hydrate::applyInheritance() -
-
- applyInheritance applies column aggregation inheritance to DQL / SQL query -
-
- Doctrine_Hydrate::clear() -
-
- clear resets all the variables -
-
- Doctrine_Hydrate::convertEnums() -
-
- -
-
- Doctrine_Hydrate::copyAliases() -
-
- copyAliases copy aliases from another Hydrate object -
-
- Doctrine_Hydrate::createSubquery() -
-
- createSubquery creates a subquery -
-
- Doctrine_Hydrate::execute() -
-
- execute executes the query and populates the data set -
-
- Doctrine_Hydrate::expireCache() -
-
- expireCache -
-
- Doctrine_Hydrate::fetchArray() -
-
- fetchArray Convenience method to execute using array fetching as hydration mode. -
-
- Doctrine_Hydrate::fetchOne() -
-
- fetchOne Convenience method to execute the query and return the first item of the collection. -
-
- Doctrine_Hydrate::generateNewTableAlias() -
-
- generateNewTableAlias generates a new alias from given table alias -
-
- Doctrine_Hydrate::generateTableAlias() -
-
- generateTableAlias generates a table alias from given table name and associates it with given component alias -
-
- Doctrine_Hydrate::getAliasDeclaration() -
-
- getAliasDeclaration get the declaration for given component alias -
-
- Doctrine_Hydrate::getAliasMap() -
-
- getAliasMap returns the component alias map -
-
- Doctrine_Hydrate::getCachedForm() -
-
- getCachedForm returns the cached form of this query for given resultSet -
-
- Doctrine_Hydrate::getCacheDriver() -
-
- getCacheDriver returns the cache driver associated with this object -
-
- Doctrine_Hydrate::getComponentAlias() -
-
- getComponentAlias get component alias associated with given table alias -
-
- Doctrine_Hydrate::getConnection() -
-
- getConnection -
-
- Doctrine_Hydrate::getParams() -
-
- getParams -
-
- Doctrine_Hydrate::getQueryPart() -
-
- setQueryPart sets a query part in the query part array -
-
- Doctrine_Hydrate::getRoot() -
-
- getRoot returns the root component for this object -
-
- Doctrine_Hydrate::getRootAlias() -
-
- getRootAlias returns the alias of the the root component -
-
- Doctrine_Hydrate::getRootDeclaration() -
-
- getRootDeclaration returns the root declaration -
-
- Doctrine_Hydrate::getSql() -
-
- getSql return the sql associated with this object -
-
- Doctrine_Hydrate::getTableAlias() -
-
- getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible -
-
- Doctrine_Hydrate::getTableAliases() -
-
- getTableAliases returns all table aliases -
-
- Doctrine_Hydrate::getTableAliasSeed() -
-
- getTableAliasSeed returns the alias seed for given table alias -
-
- Doctrine_Hydrate::getType() -
-
- getType -
-
- Doctrine_Hydrate::getView() -
-
- getView returns the view associated with this query object (if any) -
-
- Doctrine_Hydrate::hasAliasDeclaration() -
-
- hasAliasDeclaration whether or not this object has a declaration for given component alias -
-
- Doctrine_Hydrate::hasTableAlias() -
-
- hasTableAlias whether or not this object has given tableAlias -
-
- Doctrine_Hydrate::isLimitSubqueryUsed() -
-
- limitSubqueryUsed whether or not limit subquery was used -
-
- Doctrine_Hydrate::parseData2() -
-
- parseData parses the data returned by statement object -
-
- Doctrine_Hydrate::removeQueryPart() -
-
- removeQueryPart removes a query part from the query part array -
-
- Doctrine_Hydrate::serialize() -
-
- serialize this method is automatically called when this Doctrine_Hydrate is serialized -
-
- Doctrine_Hydrate::setAliasMap() -
-
- setAliasMap sets the whole component alias map -
-
- Doctrine_Hydrate::setCacheLifeSpan() -
-
- setCacheLifeSpan -
-
- Doctrine_Hydrate::setHydrationMode() -
-
- Sets the fetchmode. -
-
- Doctrine_Hydrate::setParams() -
-
- setParams -
-
- Doctrine_Hydrate::setQueryPart() -
-
- setQueryPart sets a query part in the query part array -
-
- Doctrine_Hydrate::setView() -
-
- setView sets a database view this query object uses this method should only be called internally by doctrine -
-
- Doctrine_Hydrate::unserialize() -
-
- unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized -
-
- Doctrine_Hydrate::useCache() -
-
- useCache -
-
- Doctrine_Hydrate::_execute() -
-
- -
-
- Doctrine_Hydrate::_setLastElement() -
-
- _setLastElement -
-
- Doctrine_Hydrate::__toString() -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-

Inherited From Doctrine_Hydrate

-
-
-
- Doctrine_Hydrate::CREATE -
-
- -
-
- Doctrine_Hydrate::DELETE -
-
- -
-
- Doctrine_Hydrate::HYDRATE_ARRAY -
-
- -
-
- Doctrine_Hydrate::HYDRATE_RECORD -
-
- -
-
- Doctrine_Hydrate::INSERT -
-
- -
-
- Doctrine_Hydrate::SELECT -
-
- -
-
- Doctrine_Hydrate::UPDATE -
-
- -
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $fields  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_RawSql  addComponent()  addComponent
array  getFields()  getFields returns the fields associated with this parser
string  getQuery()  getQuery builds the sql query from the given query parts
Doctrine_RawSql  parseQuery()  parseQuery parses an sql query and adds the parts to internal array
Doctrine_Query  parseQueryPart()  parseQueryPart parses given query part
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $fields - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- addComponent  [line 226] -
-
- -
-
-
  - Doctrine_RawSql addComponent( -string -$tableAlias, -$path, string -$componentName  -) -
-

- -

addComponent -

- - Parameters:
- - - - - - - - - - -
- string   - $tableAlias:  -
- string   - $componentName:  -
-    - $path:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getFields  [line 215] -
-
- -
-
-
  - array getFields( -) -
-

- -

getFields returns the fields associated with this parser -

- -
- API Tags:
- - - - - - - -
Return:  all the fields associated with this parser
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuery  [line 130] -
-
- -
-
-
  - string getQuery( -) -
-

- -

getQuery builds the sql query from the given query parts -

- -
- API Tags:
- - - - - - - -
Return:  the built sql query
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseQuery  [line 73] -
-
- -
-
-
  - Doctrine_RawSql parseQuery( -string -$query  -) -
-

- -

parseQuery parses an sql query and adds the parts to internal array -

- - Parameters:
- - - - -
- string   - $query:  - query to be parsed
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseQueryPart  [line 50] -
-
- -
-
-
  - Doctrine_Query parseQueryPart( -string -$queryPartName, string -$queryPart, [boolean -$append = false]  -) -
-

- -

parseQueryPart parses given query part -

- - Parameters:
- - - - - - - - - - -
- string   - $queryPartName:  - the name of the query part
- string   - $queryPart:  - query part to be parsed
- boolean   - $append:  - whether or not to append the query part to its stack if false is given, this method will overwrite the given query part stack with $queryPart
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Query_Abstract::parseQueryPart()
-
parseQueryPart parses given DQL query part
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_RawSql_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_RawSql_Exception.html deleted file mode 100644 index 8654c83bd..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_RawSql_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_RawSql_Exception

-Source Location: /Doctrine/RawSql/Exception.php

- -

Class Doctrine_RawSql_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_RawSql_Exception -

- -

- Located in /Doctrine/RawSql/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_RawSql_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record.html b/api_documentation/trunk/Doctrine/Doctrine_Record.html deleted file mode 100644 index 5db356122..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record.html +++ /dev/null @@ -1,4949 +0,0 @@ - - -
-

Class: Doctrine_Record

-Source Location: /Doctrine/Record.php

- -

Class Doctrine_Record

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
  • Serializable (internal interface)
-

-

Doctrine_Record All record classes should inherit this super class -

- -

- Located in /Doctrine/Record.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Record
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 2294 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_File_Index - Doctrine_File_Index -
Doctrine_File - Doctrine_File -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
STATE_CLEAN  CLEAN STATE
STATE_DIRTY  DIRTY STATE
STATE_LOCKED  LOCKED STATE a Doctrine_Record is temporarily locked during deletes and saves
STATE_PROXY  PROXY STATE
STATE_TCLEAN  NEW TCLEAN
STATE_TDIRTY  TDIRTY STATE
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static integer  $_index  
array  $_data  
Doctrine_Validator_ErrorStack  $_errorStack  
Doctrine_Record_Filter  $_filter  
integer  $_id  
array  $_modified  
Doctrine_Node_  $_node  
integer  $_oid  
array  $_references  
integer  $_state  
array  $_values  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - integer   - _index()  _index
Doctrine_Record  __construct()  constructor
boolean  assignDefaultValues()  setDefaultValues sets the default values for records internal data
void  assignIdentifier()  assignIdentifier
Doctrine_Record  call()  call
integer  cleanData()  cleanData
integer  columnCount()  alias for count()
void  construct()  construct Empty tempalte method to provide concrete Record classes with the possibility to hook into the constructor procedure
boolean  contains()  contains
Doctrine_Record  copy()  copy returns a copy of this object
Doctrine_Record  copyDeep()  copyDeep returns a copy of this object and all its related objects
void  coreSetRelated()  
integer  count()  count this class implements countable interface
boolean  delete()  deletes this data access object and all the related composites this operation is isolated by a transaction
void  deleteNode()  used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS AS TREE
void|Doctrine_Validator_ErrorStack  errorStack()  errorStack assigns / returns record errorStack
boolean  exists()  exists returns true if this record is persistent, otherwise false
mixed  get()  get returns a value of a property or a related component
array  getData()  getData return all the internal data
Doctrine_Validator_ErrorStack  getErrorStack()  getErrorStack
integer  getIncremented()  returns the value of autoincremented primary key of this object (if any)
Doctrine_Record_Iterator  getIterator()  getIterator
Doctrine_Record  getLast()  getLast
array  getModified()  returns an array of modified fields and associated values
mixed  getNode()  getter for node assciated with this record
integer  getOid()  getOid returns the object identifier
array  getPrepared()  getPrepared
array  getReferences()  getReferences
object Doctrine_Table  getTable()  getTable returns the table object for this record
boolean  hasReference()  hasRefence
boolean  hasRelation()  method for checking existence of properties and Doctrine_Record references
boolean  hydrate()  hydrate hydrates this object from given array
array  identifier()  returns the primary keys of this object
boolean  isModified()  isModified returns true if this record was modified, otherwise false
boolean  isValid()  isValid
boolean  load()  load loads all the unitialized properties from the database
void  loadReference()  loadReference loads a related component
void  mapValue()  mapValue This simple method is used for mapping values to $values property.
void  merge()  merge merges this record with an array of values
void  obtainReference()  obtainReference
void  postDelete()  Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure.
void  postInsert()  Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time.
void  postSave()  Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure.
void  postSerialize()  Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
void  postUnserialize()  Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
void  postUpdate()  Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated.
void  preDelete()  Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure.
void  preInsert()  Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time.
void  prepareIdentifiers()  prepareIdentifiers prepares identifiers for later use
void  preSave()  Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure.
void  preSerialize()  Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
void  preUnserialize()  Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
void  preUpdate()  Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated.
mixed  rawGet()  rawGet returns the value of a property, if the property is not yet loaded this method does NOT load it
boolean  refresh()  refresh refresh internal data from the database
Doctrine_Record  refreshRelated()  refresh refres data of related objects from the database
integer  replace()  replace
Doctrine_Record  revert()  revert reverts this record to given version, this method only works if versioning plugin is enabled
void  save()  applies the changes made to this object into database this method is smart enough to know if any changes are made and whether to use INSERT or UPDATE statement
array  serialize()  serialize this method is automatically called when this Doctrine_Record is serialized
Doctrine_Record  set()  set method for altering properties and Doctrine_Record references if the load parameter is set to false this method will not try to load uninitialized record data
void  setRelated()  setRelated
void  setUp()  setUp this method is used for setting up relations and attributes it should be implemented by child classes
null|integer  state()  state returns / assigns the state of this record
array  toArray()  toArray returns the record as an array
void  toString()  
TRUE  trySave()  Tries to save the object and all its related components.
Doctrine_Record  unlink()  removeLinks removes links from this record to given records
void  unserialize()  unseralize this method is automatically called everytime a Doctrine_Record object is unserialized
void  validate()  Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure, doing any custom / specialized validations that are neccessary.
void  validateOnInsert()  Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be inserted into the data store the first time.
void  validateOnUpdate()  Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be updated.
mixed  __call()  __call this method is a magic method that is being used for method overloading
void  __toString()  returns a string representation of this object
void  __unset()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static integer   - $_index - = 1 [line 116] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_data - = array() [line 87] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Validator_ErrorStack   - $_errorStack - [line 104] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Record_Filter   - $_filter - [line 108] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_id - = array() [line 83] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_modified - = array() [line 100] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Node_   - $_node - [line 79] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_oid - [line 120] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_references - = array() [line 112] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $_state - [line 96] - -
- - API Tags:
- - - - - - - -
See:  STATE_* constants
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_values - = array() [line 91] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method _index  [line 201] -
-
- -
-
-
  - static integer _index( -) -
-

- -

_index -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 133] -
-
- -
-
-
  - Doctrine_Record __construct( -[Doctrine_Table|null -$table = null], [boolean -$isNewEntry = false]  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - -
- Doctrine_Table|null   - $table:  - a Doctrine_Table object or null, if null the table object is retrieved from current connection
- boolean   - $isNewEntry:  - whether or not this record is transient
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Record_Exception if the cleanData operation fails somehow
Throws:  Doctrine_Connection_Exception if object is created using the new operator and there are no open connections
- - -
-
[ Top ]
-
- -
- -
- assignDefaultValues  [line 389] -
-
- -
-
-
  - boolean assignDefaultValues( -[boolean -$overwrite = false]  -) -
-

- -

setDefaultValues sets the default values for records internal data -

- - Parameters:
- - - - -
- boolean   - $overwrite:  - whether or not to overwrite the already set values
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- assignIdentifier  [line 1252] -
-
- -
-
-
  - void assignIdentifier( -[integer -$id = false]  -) -
-

- -

assignIdentifier -

- - Parameters:
- - - - -
- integer   - $id:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- call  [line 1387] -
-
- -
-
-
  - Doctrine_Record call( -string|array -$callback, string -$column, mixed -2  -) -
-

- -

call -

- - Parameters:
- - - - - - - - - - -
- string|array   - $callback:  - valid callback
- string   - $column:  - column name
- mixed   - 2:  - arg1 ... argN optional callback arguments
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- cleanData  [line 414] -
-
- -
-
-
  - integer cleanData( - -&$data, array -$data  -) -
-

- -

cleanData -

- - Parameters:
- - - - - - - -
- array   - $data:  - data array to be cleaned
-    - &$data:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- columnCount  [line 1108] -
-
- -
-
-
  - integer columnCount( -) -
-

- -

alias for count() -

- -
- API Tags:
- - - - - - - -
Return:  the number of columns in this record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- construct  [line 221] -
-
- -
-
-
  - void construct( -) -
-

- -

construct Empty tempalte method to provide concrete Record classes with the possibility to hook into the constructor procedure -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- contains  [line 925] -
-
- -
-
-
  - boolean contains( -string -$name  -) -
-

- -

contains -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- copy  [line 1203] -
-
- -
-
-
  - Doctrine_Record copy( -) -
-

- -

copy returns a copy of this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- copyDeep  [line 1231] -
-
- -
-
-
  - Doctrine_Record copyDeep( -) -
-

- -

copyDeep returns a copy of this object and all its related objects -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- coreSetRelated  [line 876] -
-
- -
-
-
  - void coreSetRelated( - -$name, -$value  -) -
-

- - - Parameters:
- - - - - - - -
-    - $name:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 1099] -
-
- -
-
-
  - integer count( -) -
-

- -

count this class implements countable interface -

- -
- API Tags:
- - - - - - - -
Return:  the number of columns in this record
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- delete  [line 1190] -
-
- -
-
-
  - boolean delete( -[Doctrine_Connection -$conn = null]  -) -
-

- -

deletes this data access object and all the related composites this operation is isolated by a transaction -

-

this event can be listened by the onPreDelete and onDelete listeners

- Parameters:
- - - - -
- Doctrine_Connection   - $conn:  -
- -
- API Tags:
- - - - - - - -
Return:  true on success, false on failure
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- deleteNode  [line 1516] -
-
- -
-
-
  - void deleteNode( -) -
-

- -

used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS AS TREE -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- errorStack  [line 371] -
-
- -
-
-
  - void|Doctrine_Validator_ErrorStack errorStack( -[Doctrine_Validator_ErrorStack -$stack = null]  -) -
-

- -

errorStack assigns / returns record errorStack -

- - Parameters:
- - - - -
- Doctrine_Validator_ErrorStack   - $stack:  - errorStack to be assigned for this record
- -
- API Tags:
- - - - - - - -
Return:  returns the errorStack associated with this record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- exists  [line 1146] -
-
- -
-
-
  - boolean exists( -) -
-

- -

exists returns true if this record is persistent, otherwise false -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- get  [line 753] -
-
- -
-
-
  - mixed get( -mixed -$name, [boolean -$load = true]  -) -
-

- -

get returns a value of a property or a related component -

- - Parameters:
- - - - - - - -
- mixed   - $name:  - name of the property or related component
- boolean   - $load:  - whether or not to invoke the loading procedure
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Record_Exception if trying to get a value of unknown property / related component
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getData  [line 701] -
-
- -
-
-
  - array getData( -) -
-

- -

getData return all the internal data -

- -
- API Tags:
- - - - - - - -
Return:  an array containing all the properties
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getErrorStack  [line 360] -
-
- -
-
-
  - Doctrine_Validator_ErrorStack getErrorStack( -) -
-

- -

getErrorStack -

- -
- API Tags:
- - - - - - - -
Return:  returns the errorStack associated with this record
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIncremented  [line 1285] -
-
- -
-
-
  - integer getIncremented( -) -
-

- -

returns the value of autoincremented primary key of this object (if any) -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 1178] -
-
- -
-
-
  - Doctrine_Record_Iterator getIterator( -) -
-

- -

getIterator -

- -
- API Tags:
- - - - - - - -
Return:  a Doctrine_Record_Iterator that iterates through the data
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- getLast  [line 1302] -
-
- -
-
-
  - Doctrine_Record getLast( -) -
-

- -

getLast -

-

this method is used internally be Doctrine_Query it is needed to provide compatibility between records and collections

-
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getModified  [line 1020] -
-
- -
-
-
  - array getModified( -) -
-

- -

returns an array of modified fields and associated values -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNode  [line 1407] -
-
- -
-
-
  - mixed getNode( -) -
-

- -

getter for node assciated with this record -

- -
- API Tags:
- - - - - - - -
Return:  if tree returns Doctrine_Node otherwise returns false
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getOid  [line 229] -
-
- -
-
-
  - integer getOid( -) -
-

- -

getOid returns the object identifier -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPrepared  [line 1038] -
-
- -
-
-
  - array getPrepared( -[ -$array = array()]  -) -
-

- -

getPrepared -

-

returns an array of modified fields and values with data preparation adds column aggregation inheritance and converts Records into primary key values

- Parameters:
- - - - -
- array   - $array:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getReferences  [line 1332] -
-
- -
-
-
  - array getReferences( -) -
-

- -

getReferences -

- -
- API Tags:
- - - - - - - -
Return:  all references
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTable  [line 691] -
-
- -
-
-
  - object Doctrine_Table getTable( -) -
-

- -

getTable returns the table object for this record -

- -
- API Tags:
- - - - - - - -
Return:  a Doctrine_Table object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasReference  [line 1311] -
-
- -
-
-
  - boolean hasReference( -string -$name  -) -
-

- -

hasRefence -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasRelation  [line 1167] -
-
- -
-
-
  - boolean hasRelation( -mixed -$name  -) -
-

- -

method for checking existence of properties and Doctrine_Record references -

- - Parameters:
- - - - -
- mixed   - $name:  - name of the property or reference
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hydrate  [line 437] -
-
- -
-
-
  - boolean hydrate( - -$data  -) -
-

- -

hydrate hydrates this object from given array -

- - Parameters:
- - - - -
- array   - $data:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- identifier  [line 1276] -
-
- -
-
-
  - array identifier( -) -
-

- -

returns the primary keys of this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isModified  [line 1157] -
-
- -
-
-
  - boolean isModified( -) -
-

- -

isModified returns true if this record was modified, otherwise false -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isValid  [line 238] -
-
- -
-
-
  - boolean isValid( -) -
-

- -

isValid -

- -
- API Tags:
- - - - - - - -
Return:  whether or not this record passes all column validations
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- load  [line 732] -
-
- -
-
-
  - boolean load( -) -
-

- -

load loads all the unitialized properties from the database -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- loadReference  [line 1354] -
-
- -
-
-
  - void loadReference( -string -$name  -) -
-

- -

loadReference loads a related component -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Table_Exception if trying to load an unknown related component
- - -
-
[ Top ]
-
- -
- -
- mapValue  [line 809] -
-
- -
-
-
  - void mapValue( -string -$name, mixed -$value  -) -
-

- -

mapValue This simple method is used for mapping values to $values property. -

-

Usually this method is used internally by Doctrine for the mapping of aggregate values.

- Parameters:
- - - - - - - -
- string   - $name:  - the name of the mapped value
- mixed   - $value:  - mixed value to be mapped
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- merge  [line 1367] -
-
- -
-
-
  - void merge( - -$values  -) -
-

- -

merge merges this record with an array of values -

- - Parameters:
- - - - -
- array   - $values:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- obtainReference  [line 1321] -
-
- -
-
-
  - void obtainReference( -string -$name  -) -
-

- -

obtainReference -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Record_Exception if trying to get an unknown related component
- - -
-
[ Top ]
-
- -
- -
- postDelete  [line 325] -
-
- -
-
-
  - void postDelete( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postInsert  [line 353] -
-
- -
-
-
  - void postInsert( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postSave  [line 313] -
-
- -
-
-
  - void postSave( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postSerialize  [line 289] -
-
- -
-
-
  - void postSerialize( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postUnserialize  [line 301] -
-
- -
-
-
  - void postUnserialize( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postUpdate  [line 339] -
-
- -
-
-
  - void postUpdate( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preDelete  [line 319] -
-
- -
-
-
  - void preDelete( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preInsert  [line 346] -
-
- -
-
-
  - void preInsert( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepareIdentifiers  [line 451] -
-
- -
-
-
  - void prepareIdentifiers( -[boolean -$exists = true]  -) -
-

- -

prepareIdentifiers prepares identifiers for later use -

- - Parameters:
- - - - -
- boolean   - $exists:  - whether or not this record exists in persistent data store
- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- preSave  [line 307] -
-
- -
-
-
  - void preSave( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preSerialize  [line 283] -
-
- -
-
-
  - void preSerialize( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preUnserialize  [line 295] -
-
- -
-
-
  - void preUnserialize( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preUpdate  [line 332] -
-
- -
-
-
  - void preUpdate( - -$event  -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated. -

- - Parameters:
- - - - -
-    - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- rawGet  [line 715] -
-
- -
-
-
  - mixed rawGet( -$name -$name  -) -
-

- -

rawGet returns the value of a property, if the property is not yet loaded this method does NOT load it -

- - Parameters:
- - - - -
- $name   - $name:  - name of the property
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Record_Exception if trying to get an unknown property
- - -
-
[ Top ]
-
- -
- -
- refresh  [line 634] -
-
- -
-
-
  - boolean refresh( -) -
-

- -

refresh refresh internal data from the database -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Record_Exception When the refresh operation fails (when the database row this record represents does not exist anymore)
- - -
-
[ Top ]
-
- -
- -
- refreshRelated  [line 673] -
-
- -
-
-
  - Doctrine_Record refreshRelated( -[string -$name = null]  -) -
-

- -

refresh refres data of related objects from the database -

- - Parameters:
- - - - -
- string   - $name:  - name of a related component. if set, this method only refreshes the specified related component
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- replace  [line 1008] -
-
- -
-
-
  - integer replace( -[Doctrine_Connection -$conn = null]  -) -
-

- -

replace -

-

Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.

The REPLACE type of query does not make part of the SQL standards. Since practically only MySQL and SQLIte implement it natively, this type of query isemulated through this method for other DBMS using standard types of queries inside a transaction to assure the atomicity of the operation.

- Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - optional connection parameter
- -
- API Tags:
- - - - - - - -
Return:  number of rows affected
Access:  public
-
- -Information Tags:
- - - - - - - - - - -
Throws:  Doctrine_Connection_Exception if some of the key values was null
Throws:  Doctrine_Connection_Exception if there were no key fields
Throws:  PDOException if something fails at PDO level
- - -
-
[ Top ]
-
- -
- -
- revert  [line 1431] -
-
- -
-
-
  - Doctrine_Record revert( -integer -$version  -) -
-

- -

revert reverts this record to given version, this method only works if versioning plugin is enabled -

- - Parameters:
- - - - -
- integer   - $version:  - an integer > 1
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Record_Exception if given version does not exist
- - -
-
[ Top ]
-
- -
- -
- save  [line 966] -
-
- -
-
-
  - void save( -[Doctrine_Connection -$conn = null]  -) -
-

- -

applies the changes made to this object into database this method is smart enough to know if any changes are made and whether to use INSERT or UPDATE statement -

-

this method also saves the related components

- Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - optional connection parameter
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- serialize  [line 484] -
-
- -
-
-
  - array serialize( -) -
-

- -

serialize this method is automatically called when this Doctrine_Record is serialized -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Serializable::serialize
-
- -
-
[ Top ]
-
- -
- -
- set  [line 828] -
-
- -
-
-
  - Doctrine_Record set( -mixed -$name, mixed -$value, [boolean -$load = true]  -) -
-

- -

set method for altering properties and Doctrine_Record references if the load parameter is set to false this method will not try to load uninitialized record data -

- - Parameters:
- - - - - - - - - - -
- mixed   - $name:  - name of the property or reference
- mixed   - $value:  - value of the property or reference
- boolean   - $load:  - whether or not to refresh / load the uninitialized record data
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Record_Exception if trying to set a value of wrong type for related component
Throws:  Doctrine_Record_Exception if trying to set a value for unknown property / related component
- - -
-
[ Top ]
-
- -
- -
- setRelated  [line 1342] -
-
- -
-
-
  - void setRelated( -string -$alias, Doctrine_Access -$coll  -) -
-

- -

setRelated -

- - Parameters:
- - - - - - - -
- string   - $alias:  -
- Doctrine_Access   - $coll:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setUp  [line 212] -
-
- -
-
-
  - void setUp( -) -
-

- -

setUp this method is used for setting up relations and attributes it should be implemented by child classes -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- state  [line 593] -
-
- -
-
-
  - null|integer state( -[integer|string -$state = null]  -) -
-

- -

state returns / assigns the state of this record -

- - Parameters:
- - - - -
- integer|string   - $state:  - if set, this method tries to set the record state to $state
- -
- API Tags:
- - - - - - - -
See:  Doctrine_Record::STATE_* constants
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Record_State_Exception if trying to set an unknown state
- - -
-
[ Top ]
-
- -
- -
- toArray  [line 1119] -
-
- -
-
-
  - array toArray( -[boolean -$deep = false]  -) -
-

- -

toArray returns the record as an array -

- - Parameters:
- - - - -
- boolean   - $deep:  - - Return also the relations
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- toString  [line 1519] -
-
- -
-
-
  - void toString( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- trySave  [line 982] -
-
- -
-
-
  - TRUE trySave( -[Doctrine_Connection -$conn = null]  -) -
-

- -

Tries to save the object and all its related components. -

-

In contrast to Doctrine_Record::save(), this method does not throw an exception when validation fails but returns TRUE on success or FALSE on failure.

- Parameters:
- - - - -
- Doctrine_Connection   - $conn:  - optional connection parameter
- -
- API Tags:
- - - - - - - -
Return:  if the record was saved sucessfully without errors, FALSE otherwise.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- unlink  [line 1454] -
-
- -
-
-
  - Doctrine_Record unlink( -string -$alias, array -$ids  -) -
-

- -

removeLinks removes links from this record to given records -

- - Parameters:
- - - - - - - -
- string   - $alias:  - related component alias
- array   - $ids:  - the identifiers of the related records
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- unserialize  [line 537] -
-
- -
-
-
  - void unserialize( -string -$serialized  -) -
-

- -

unseralize this method is automatically called everytime a Doctrine_Record object is unserialized -

- - Parameters:
- - - - -
- string   - $serialized:  - Doctrine_Record as serialized string
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Record_Exception if the cleanData operation fails somehow
- -
-
Implementation of:
-
-
Serializable::unserialize
-
- -
-
[ Top ]
-
- -
- -
- validate  [line 263] -
-
- -
-
-
  - void validate( -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure, doing any custom / specialized validations that are neccessary. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- validateOnInsert  [line 277] -
-
- -
-
-
  - void validateOnInsert( -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be inserted into the data store the first time. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- validateOnUpdate  [line 270] -
-
- -
-
-
  - void validateOnUpdate( -) -
-

- -

Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be updated. -

- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- __call  [line 1502] -
-
- -
-
-
  - mixed __call( -string -$method, array -$args  -) -
-

- -

__call this method is a magic method that is being used for method overloading -

-

the function of this method is to try to find given method from the templates this record is using and if it finds given method it will execute it

So, in sense, this method replicates the usage of mixins (as seen in some programming languages)

- Parameters:
- - - - - - - -
- string   - $method:  - name of the method
- array   - $args:  - method arguments
- -
- API Tags:
- - - - - - - -
Return:  the return value of the given method
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 1526] -
-
- -
-
-
  - void __toString( -) -
-

- -

returns a string representation of this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __unset  [line 949] -
-
- -
-
-
  - void __unset( -string -$name  -) -
-

- - - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Access::__unset()
-
__unset()
-
- -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - STATE_CLEAN - = 3 - [line 56] - -
- -

CLEAN STATE -

-

a Doctrine_Record is in clean state when all of its properties are loaded from the database and none of its properties are changed

- -
-
[ Top ]
-
- -
- -
- - STATE_DIRTY - = 1 - [line 44] - -
- -

DIRTY STATE -

-

a Doctrine_Record is in dirty state when its properties are changed

- -
-
[ Top ]
-
- -
- -
- - STATE_LOCKED - = 6 - [line 74] - -
- -

LOCKED STATE a Doctrine_Record is temporarily locked during deletes and saves -

-

This state is used internally to ensure that circular deletes and saves will not cause infinite loops

- -
-
[ Top ]
-
- -
- -
- - STATE_PROXY - = 4 - [line 61] - -
- -

PROXY STATE -

-

a Doctrine_Record is in proxy state when its properties are not fully loaded

- -
-
[ Top ]
-
- -
- -
- - STATE_TCLEAN - = 5 - [line 66] - -
- -

NEW TCLEAN -

-

a Doctrine_Record is in transient clean state when it is created and none of its fields are modified

- -
-
[ Top ]
-
- -
- -
- - STATE_TDIRTY - = 2 - [line 50] - -
- -

TDIRTY STATE -

-

a Doctrine_Record is in transient dirty state when it is created and some of its fields are modified but it is NOT yet persisted into database

- -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_Abstract.html b/api_documentation/trunk/Doctrine/Doctrine_Record_Abstract.html deleted file mode 100644 index f81dd54d8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_Abstract.html +++ /dev/null @@ -1,1692 +0,0 @@ - - -
-

Class: Doctrine_Record_Abstract

-Source Location: /Doctrine/Record/Abstract.php

- -

Class Doctrine_Record_Abstract

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Record_Abstract -

- -

- Located in /Doctrine/Record/Abstract.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Record - Doctrine_Record All record classes should inherit this super class -
Doctrine_Template - Doctrine_Template -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_table  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  actAs()  actAs loads a given plugin
Doctrine_Record  addListener()  addListener
mixed  attribute()  attribute sets or retrieves an option
Doctrine_Record  check()  check adds a check constraint
Doctrine_EventListener_Interface|Doctrine_Overloadable  getListener()  getListener
void  hasColumn()  hasColumn sets a column definition
void  hasColumns()  
Doctrine_Record  hasMany()  hasMany binds One-to-Many / Many-to-Many aggregate relation
Doctrine_Record  hasOne()  hasOne binds One-to-One aggregate relation
mixed  index()  index
void  loadTemplate()  loadTemplate
mixed  option()  option sets or retrieves an option
Doctrine_Record  ownsMany()  ownsMany binds One-to-Many / Many-to-Many composite relation
Doctrine_Record  ownsOne()  ownsOne binds One-to-One composite relation
void  setAttribute()  
void  setInheritanceMap()  
Doctrine_Record  setListener()  setListener
void  setSubclasses()  
void  setTableName()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_table - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- actAs  [line 264] -
-
- -
-
-
  - void actAs( -mixed -$tpl, [ -$options = array()]  -) -
-

- -

actAs loads a given plugin -

- - Parameters:
- - - - - - - -
- mixed   - $tpl:  -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addListener  [line 45] -
-
- -
-
-
  - Doctrine_Record addListener( -Doctrine_EventListener_Interface|Doctrine_Overloadable -$listener, [ -$name = null]  -) -
-

- -

addListener -

- - Parameters:
- - - - - - - -
- Doctrine_EventListener_Interface|Doctrine_Overloadable   - $listener:  -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- attribute  [line 126] -
-
- -
-
-
  - mixed attribute( -mixed -$attr, mixed -$value  -) -
-

- -

attribute sets or retrieves an option -

- - Parameters:
- - - - - - - -
- mixed   - $attr:  -
- mixed   - $value:  -
- -
- API Tags:
- - - - - - - -
See:  Doctrine::ATTR_* constants availible attributes
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- check  [line 303] -
-
- -
-
-
  - Doctrine_Record check( -mixed -$constraint, [string -$name = null]  -) -
-

- -

check adds a check constraint -

- - Parameters:
- - - - - - - -
- mixed   - $constraint:  - either a SQL constraint portion or an array of CHECK constraints
- string   - $name:  - optional constraint name
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getListener  [line 56] -
-
- - - -

getListener -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasColumn  [line 232] -
-
- -
-
-
  - void hasColumn( -string -$name, string -$type, [integer -$length = 2147483647], [mixed -$options = ""]  -) -
-

- -

hasColumn sets a column definition -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $name:  -
- string   - $type:  -
- integer   - $length:  -
- mixed   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasColumns  [line 236] -
-
- -
-
-
  - void hasColumns( - -$definitions  -) -
-

- - - Parameters:
- - - - -
- array   - $definitions:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasMany  [line 216] -
-
- -
-
-
  - Doctrine_Record hasMany( -string -$componentName, string -$options  -) -
-

- -

hasMany binds One-to-Many / Many-to-Many aggregate relation -

- - Parameters:
- - - - - - - -
- string   - $componentName:  - the name of the related component
- string   - $options:  - relation options
- -
- API Tags:
- - - - - - - - - - -
Return:  this object
See:  Doctrine_Relation::_$definition
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasOne  [line 201] -
-
- -
-
-
  - Doctrine_Record hasOne( -string -$componentName, string -$options  -) -
-

- -

hasOne binds One-to-One aggregate relation -

- - Parameters:
- - - - - - - -
- string   - $componentName:  - the name of the related component
- string   - $options:  - relation options
- -
- API Tags:
- - - - - - - - - - -
Return:  this object
See:  Doctrine_Relation::_$definition
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- index  [line 82] -
-
- -
-
-
  - mixed index( -string -$name, [ -$definition = array()]  -) -
-

- -

index -

-

defines or retrieves an index if the second parameter is set this method defines an index if not this method retrieves index named $name

- Parameters:
- - - - - - - -
- string   - $name:  - the name of the index
- array   - $definition:  - the definition array
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- loadTemplate  [line 247] -
-
- -
-
-
  - void loadTemplate( -string -$template, [ -$options = array()]  -) -
-

- -

loadTemplate -

- - Parameters:
- - - - - - - -
- string   - $template:  -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- option  [line 149] -
-
- -
-
-
  - mixed option( -mixed -$name, [mixed -$value = null]  -) -
-

- -

option sets or retrieves an option -

- - Parameters:
- - - - - - - -
- mixed   - $name:  - the name of the option
- mixed   - $value:  - options value
- -
- API Tags:
- - - - - - - -
See:  Doctrine_Table::$options availible options
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- ownsMany  [line 187] -
-
- -
-
-
  - Doctrine_Record ownsMany( -string -$componentName, string -$options  -) -
-

- -

ownsMany binds One-to-Many / Many-to-Many composite relation -

- - Parameters:
- - - - - - - -
- string   - $componentName:  - the name of the related component
- string   - $options:  - relation options
- -
- API Tags:
- - - - - - - - - - -
Return:  this object
See:  Doctrine_Relation::_$definition
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- ownsOne  [line 172] -
-
- -
-
-
  - Doctrine_Record ownsOne( -string -$componentName, string -$options  -) -
-

- -

ownsOne binds One-to-One composite relation -

- - Parameters:
- - - - - - - -
- string   - $componentName:  - the name of the related component
- string   - $options:  - relation options
- -
- API Tags:
- - - - - - - - - - -
Return:  this object
See:  Doctrine_Relation::_$definition
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setAttribute  [line 90] -
-
- -
-
-
  - void setAttribute( - -$attr, -$value  -) -
-

- - - Parameters:
- - - - - - - -
-    - $attr:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setInheritanceMap  [line 98] -
-
- -
-
-
  - void setInheritanceMap( - -$map  -) -
-

- - - Parameters:
- - - - -
-    - $map:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setListener  [line 66] -
-
- -
-
-
  - Doctrine_Record setListener( -Doctrine_EventListener_Interface|Doctrine_Overloadable -$listener  -) -
-

- -

setListener -

- - Parameters:
- - - - -
- Doctrine_EventListener_Interface|Doctrine_Overloadable   - $listener:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setSubclasses  [line 103] -
-
- -
-
-
  - void setSubclasses( - -$map  -) -
-

- - - Parameters:
- - - - -
-    - $map:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTableName  [line 94] -
-
- -
-
-
  - void setTableName( - -$tableName  -) -
-

- - - Parameters:
- - - - -
-    - $tableName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Record_Exception.html deleted file mode 100644 index efab4e741..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_Exception.html +++ /dev/null @@ -1,453 +0,0 @@ - - -
-

Class: Doctrine_Record_Exception

-Source Location: /Doctrine/Record/Exception.php

- -

Class Doctrine_Record_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Exception -

- -

- Located in /Doctrine/Record/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Record_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Record_State_Exception - Doctrine_Exception -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_Filter.html b/api_documentation/trunk/Doctrine/Doctrine_Record_Filter.html deleted file mode 100644 index f690f2ba1..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_Filter.html +++ /dev/null @@ -1,761 +0,0 @@ - - -
-

Class: Doctrine_Record_Filter

-Source Location: /Doctrine/Record/Filter.php

- -

Class Doctrine_Record_Filter

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Record_Filter Filters and prepares the record data -

- -

- Located in /Doctrine/Record/Filter.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Record_Filter
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1298 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
Doctrine_Record  $_record  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Record_Filter  __construct()  constructor
boolean  assignDefaultValues()  setDefaultValues sets the default values for records internal data
array  getPrepared()  getPrepared
Doctrine_Record  getRecord()  getRecord
void  prepareIdentifiers()  prepareIdentifiers prepares identifiers for later use
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Record   - $_record - [line 39] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 45] -
-
- -
-
-
  - Doctrine_Record_Filter __construct( -Doctrine_Record -$record, Doctrine_Record -$_record  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - -
- Doctrine_Record   - $_record:  - the record object this filter belongs to
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- assignDefaultValues  [line 65] -
-
- -
-
-
  - boolean assignDefaultValues( - -$data, [boolean -$overwrite = false]  -) -
-

- -

setDefaultValues sets the default values for records internal data -

- - Parameters:
- - - - - - - -
- boolean   - $overwrite:  - whether or not to overwrite the already set values
-    - $data:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPrepared  [line 122] -
-
- -
-
-
  - array getPrepared( -[ -$array = array()]  -) -
-

- -

getPrepared -

-

returns an array of modified fields and values with data preparation adds column aggregation inheritance and converts Records into primary key values

- Parameters:
- - - - -
- array   - $array:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRecord  [line 54] -
-
- -
-
-
  - Doctrine_Record getRecord( -) -
-

- -

getRecord -

- -
- API Tags:
- - - - - - - -
Return:  the record object this filter belongs to
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepareIdentifiers  [line 95] -
-
- -
-
-
  - void prepareIdentifiers( -[boolean -$exists = true]  -) -
-

- -

prepareIdentifiers prepares identifiers for later use -

- - Parameters:
- - - - -
- boolean   - $exists:  - whether or not this record exists in persistent data store
- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_Iterator.html b/api_documentation/trunk/Doctrine/Doctrine_Record_Iterator.html deleted file mode 100644 index bf0aae603..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_Iterator.html +++ /dev/null @@ -1,805 +0,0 @@ - - -
-

Class: Doctrine_Record_Iterator

-Source Location: /Doctrine/Record/Iterator.php

- -

Class Doctrine_Record_Iterator

- - -
-
Class Overview
- -
- - - - - - - -
- - -

- Located in /Doctrine/Record/Iterator.php [line 2] -

- - -
ArrayIterator
-   |
-   --Doctrine_Record_Iterator
- - - - -
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
- -

Inherited From ArrayIterator (Internal Class)

-
-
-
- constructor __construct ( $array ) -
-
- -
-
- append ( $value ) -
-
- -
-
- asort ( ) -
-
- -
-
- count ( ) -
-
- -
-
- current ( ) -
-
- -
-
- getArrayCopy ( ) -
-
- -
-
- getFlags ( ) -
-
- -
-
- key ( ) -
-
- -
-
- ksort ( ) -
-
- -
-
- natcasesort ( ) -
-
- -
-
- natsort ( ) -
-
- -
-
- next ( ) -
-
- -
-
- offsetExists ( $index ) -
-
- -
-
- offsetGet ( $index ) -
-
- -
-
- offsetSet ( $index, $newval ) -
-
- -
-
- offsetUnset ( $index ) -
-
- -
-
- rewind ( ) -
-
- -
-
- seek ( $position ) -
-
- -
-
- setFlags ( $flags ) -
-
- -
-
- uasort ( $cmp_function ) -
-
- -
-
- uksort ( $cmp_function ) -
-
- -
-
- valid ( ) -
-
- -
-
-
-
-

Inherited From ArrayIterator (Internal Class)

-
-
-
- ARRAY_AS_PROPS = 2 -
-
- -
-
- STD_PROP_LIST = 1 -
-
- -
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
static Doctrine_Null  $null  
Doctrine_Record  $record  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
static - void   - initNullObject()  initNullObject
Doctrine_Record_Iterator  __construct()  constructor
mixed  current()  current
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static Doctrine_Null   - $null - [line 11] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Record   - $record - [line 7] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method initNullObject  [line 27] -
-
- -
-
-
  - static void initNullObject( -Doctrine_Null -$null  -) -
-

- -

initNullObject -

- - Parameters:
- - - - -
- Doctrine_Null   - $null:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 17] -
-
- -
-
-
  - Doctrine_Record_Iterator __construct( -Doctrine_Record -$record  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
ArrayIterator::constructor __construct ( $array )
-
- -
-
[ Top ]
-
- -
- -
- current  [line 36] -
-
- -
-
-
  - mixed current( -) -
-

- -

current -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
ArrayIterator::current ( )
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_Listener.html b/api_documentation/trunk/Doctrine/Doctrine_Record_Listener.html deleted file mode 100644 index b1473e426..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_Listener.html +++ /dev/null @@ -1,1094 +0,0 @@ - - -
-

Class: Doctrine_Record_Listener

-Source Location: /Doctrine/Record/Listener.php

- -

Class Doctrine_Record_Listener

- - -
-
Class Overview
- -
- - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Record_Listener -

- -

- Located in /Doctrine/Record/Listener.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_AuditLog_Listener - Doctrine_AuditLog_Listener -
Doctrine_Search_Listener - Doctrine_Search_Listener -
-
[ Top ]
-
-
- - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  postDelete()  
void  postInsert()  
void  postSave()  
void  postSerialize()  
void  postUnserialize()  
void  postUpdate()  
void  preDelete()  
void  preInsert()  
void  preSave()  
void  preSerialize()  
void  preUnserialize()  
void  preUpdate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- postDelete  [line 57] -
-
- -
-
-
  - void postDelete( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postDelete()
-
- -
-
[ Top ]
-
- -
- -
- postInsert  [line 69] -
-
- -
-
-
  - void postInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postInsert()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- postSave  [line 51] -
-
- -
-
-
  - void postSave( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postSave()
-
- -
-
[ Top ]
-
- -
- -
- postSerialize  [line 39] -
-
- -
-
-
  - void postSerialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postSerialize()
-
- -
-
[ Top ]
-
- -
- -
- postUnserialize  [line 45] -
-
- -
-
-
  - void postUnserialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postUnserialize()
-
- -
-
[ Top ]
-
- -
- -
- postUpdate  [line 63] -
-
- -
-
-
  - void postUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postUpdate()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- preDelete  [line 54] -
-
- -
-
-
  - void preDelete( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preDelete()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- preInsert  [line 66] -
-
- -
-
-
  - void preInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preInsert()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- preSave  [line 48] -
-
- -
-
-
  - void preSave( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preSave()
-
- -
-
[ Top ]
-
- -
- -
- preSerialize  [line 36] -
-
- -
-
-
  - void preSerialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preSerialize()
-
- -
-
[ Top ]
-
- -
- -
- preUnserialize  [line 42] -
-
- -
-
-
  - void preUnserialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preUnserialize()
-
- -
-
[ Top ]
-
- -
- -
- preUpdate  [line 60] -
-
- -
-
-
  - void preUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preUpdate()
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Chain.html b/api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Chain.html deleted file mode 100644 index c1a65a7d6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Chain.html +++ /dev/null @@ -1,1385 +0,0 @@ - - -
-

Class: Doctrine_Record_Listener_Chain

-Source Location: /Doctrine/Record/Listener/Chain.php

- -

Class Doctrine_Record_Listener_Chain

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Record_Listener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time -

- -

- Located in /Doctrine/Record/Listener/Chain.php [line 36] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Listener_Chain
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $_listeners  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  add()  add adds a listener to the chain of listeners
mixed  get()  returns a Doctrine_Record_Listener on success and null on failure
void  postDelete()  
void  postInsert()  
void  postSave()  
void  postSerialize()  
void  postUnserialize()  
void  postUpdate()  
void  preDelete()  
void  preInsert()  
void  preSave()  
void  preSerialize()  
void  preUnserialize()  
void  preUpdate()  
Doctrine_Record_Listener_Chain  set()  set
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_listeners - = array() [line 41] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- add  [line 50] -
-
- -
-
-
  - void add( -object -$listener, [string -$name = null]  -) -
-

- -

add adds a listener to the chain of listeners -

- - Parameters:
- - - - - - - -
- object   - $listener:  -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- get  [line 70] -
-
- -
-
-
  - mixed get( -mixed -$key  -) -
-

- -

returns a Doctrine_Record_Listener on success and null on failure -

- - Parameters:
- - - - -
- mixed   - $key:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postDelete  [line 138] -
-
- -
-
-
  - void postDelete( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postDelete()
-
- -
-
[ Top ]
-
- -
- -
- postInsert  [line 166] -
-
- -
-
-
  - void postInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postInsert()
-
- -
-
[ Top ]
-
- -
- -
- postSave  [line 124] -
-
- -
-
-
  - void postSave( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postSave()
-
- -
-
[ Top ]
-
- -
- -
- postSerialize  [line 96] -
-
- -
-
-
  - void postSerialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postSerialize()
-
- -
-
[ Top ]
-
- -
- -
- postUnserialize  [line 110] -
-
- -
-
-
  - void postUnserialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postUnserialize()
-
- -
-
[ Top ]
-
- -
- -
- postUpdate  [line 152] -
-
- -
-
-
  - void postUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::postUpdate()
-
- -
-
[ Top ]
-
- -
- -
- preDelete  [line 131] -
-
- -
-
-
  - void preDelete( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preDelete()
-
- -
-
[ Top ]
-
- -
- -
- preInsert  [line 159] -
-
- -
-
-
  - void preInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preInsert()
-
- -
-
[ Top ]
-
- -
- -
- preSave  [line 117] -
-
- -
-
-
  - void preSave( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preSave()
-
- -
-
[ Top ]
-
- -
- -
- preSerialize  [line 89] -
-
- -
-
-
  - void preSerialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preSerialize()
-
- -
-
[ Top ]
-
- -
- -
- preUnserialize  [line 103] -
-
- -
-
-
  - void preUnserialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preUnserialize()
-
- -
-
[ Top ]
-
- -
- -
- preUpdate  [line 145] -
-
- -
-
-
  - void preUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Record_Listener_Interface::preUpdate()
-
- -
-
[ Top ]
-
- -
- -
- set  [line 84] -
-
- -
-
-
  - Doctrine_Record_Listener_Chain set( -mixed -$key, Doctrine_EventListener -$listener  -) -
-

- -

set -

- - Parameters:
- - - - - - - -
- mixed   - $key:  -
- Doctrine_Record_Listener   - $listener:  - listener to be added
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Interface.html deleted file mode 100644 index 6573949de..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_Listener_Interface.html +++ /dev/null @@ -1,958 +0,0 @@ - - -
-

Interface: Doctrine_Record_Listener_Interface

-Source Location: /Doctrine/Record/Listener/Interface.php

- -

Interface Doctrine_Record_Listener_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Record_Listener -

- -

- Located in /Doctrine/Record/Listener/Interface.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  postDelete()  
void  postInsert()  
void  postSave()  
void  postSerialize()  
void  postUnserialize()  
void  postUpdate()  
void  preDelete()  
void  preInsert()  
void  preSave()  
void  preSerialize()  
void  preUnserialize()  
void  preUpdate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- postDelete  [line 50] -
-
- -
-
-
  - void postDelete( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postInsert  [line 58] -
-
- -
-
-
  - void postInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postSave  [line 46] -
-
- -
-
-
  - void postSave( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postSerialize  [line 38] -
-
- -
-
-
  - void postSerialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postUnserialize  [line 42] -
-
- -
-
-
  - void postUnserialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postUpdate  [line 54] -
-
- -
-
-
  - void postUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preDelete  [line 48] -
-
- -
-
-
  - void preDelete( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preInsert  [line 56] -
-
- -
-
-
  - void preInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preSave  [line 44] -
-
- -
-
-
  - void preSave( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preSerialize  [line 36] -
-
- -
-
-
  - void preSerialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preUnserialize  [line 40] -
-
- -
-
-
  - void preUnserialize( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- preUpdate  [line 52] -
-
- -
-
-
  - void preUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Record_State_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Record_State_Exception.html deleted file mode 100644 index 8dab482e7..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Record_State_Exception.html +++ /dev/null @@ -1,525 +0,0 @@ - - -
-

Class: Doctrine_Record_State_Exception

-Source Location: /Doctrine/Record/State/Exception.php

- -

Class Doctrine_Record_State_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Exception -

- -

- Located in /Doctrine/Record/State/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Record_Exception
-         |
-         --Doctrine_Record_State_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation.html b/api_documentation/trunk/Doctrine/Doctrine_Relation.html deleted file mode 100644 index 657a31f78..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation.html +++ /dev/null @@ -1,1588 +0,0 @@ - - -
-

Class: Doctrine_Relation

-Source Location: /Doctrine/Relation.php

- -

Class Doctrine_Relation

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • ArrayAccess (internal interface)
-

-

Doctrine_Relation This class represents a relation between components -

- -

- Located in /Doctrine/Relation.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1973 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Relation_Association - Doctrine_Relation_Association this class takes care of association mapping (= many-to-many relationships, where the relationship is handled with an additional relational table which holds 2 foreign keys) -
Doctrine_Relation_ForeignKey - Doctrine_Relation_ForeignKey This class represents a foreign key relation -
Doctrine_Relation_LocalKey - Doctrine_Relation_LocalKey This class represents a local key relation -
-
[ Top ]
-
-
- - - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
MANY  
MANY_AGGREGATE  constant for MANY_TO_MANY and ONE_TO_MANY aggregate relationships
MANY_COMPOSITE  constant for MANY_TO_MANY and ONE_TO_MANY composite relationships
ONE  
ONE_AGGREGATE  constant for ONE_TO_ONE and MANY_TO_ONE aggregate relationships
ONE_COMPOSITE  constant for ONE_TO_ONE and MANY_TO_ONE composite relationships
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $definition  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Relation  __construct()  constructor
Doctrine_Record|Doctrine_Collection  fetchRelatedFor()  fetchRelatedFor
string  getAlias()  getAlias returns the relation alias
string  getForeign()  getForeign returns the name of the foreignkey column where the localkey column is pointing at
string  getLocal()  getLocal returns the name of the local column
string  getRelationDql()  getRelationDql
object Doctrine_Table  getTable()  getTable returns the foreign table object
integer  getType()  getType returns the relation type, either 0 or 1
boolean  hasConstraint()  hasConstraint whether or not this relation has an explicit constraint
boolean  isComposite()  isComposite returns whether or not this relation is a composite relation
void  isDeferrable()  
void  isDeferred()  
void  isEqual()  
boolean  isOneToOne()  isOneToOne returns whether or not this relation is a one-to-one relation
void  offsetExists()  
void  offsetGet()  
void  offsetSet()  
void  offsetUnset()  
array  toArray()  toArray
string  __toString()  __toString
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $definition - = array('alias' => true,
'foreign' => true,
'local' => true,
'class' => true,
'type' => true,
'table' => true,
'name' => false,
'refTable' => false,
'onDelete' => false,
'onUpdate' => false,
'deferred' => false,
'deferrable' => false,
'constraint' => false,
'equal' => false,
)
[line 59] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 119] -
-
- -
-
-
  - Doctrine_Relation __construct( - -$definition  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- array   - $definition:  -

an associative array with the following structure: name foreign key constraint name

local the local field(s)

foreign the foreign reference field(s)

table the foreign table object

refTable the reference table object (if any)

onDelete referential delete action

onUpdate referential update action

deferred deferred constraint checking

alias relation alias

type the relation type, either Doctrine_Relation::ONE or Doctrine_Relation::MANY

constraint boolean value, true if the relation has an explicit referential integrity constraint

The onDelete and onUpdate keys accept the following values:

CASCADE: Delete or update the row from the parent table and automatically delete or update the matching rows in the child table. Both ON DELETE CASCADE and ON UPDATE CASCADE are supported. Between two tables, you should not define several ON UPDATE CASCADE clauses that act on the same column in the parent table or in the child table.

SET NULL: Delete or update the row from the parent table and set the foreign key column or columns in the child table to NULL. This is valid only if the foreign key columns do not have the NOT NULL qualifier specified. Both ON DELETE SET NULL and ON UPDATE SET NULL clauses are supported.

NO ACTION: In standard SQL, NO ACTION means no action in the sense that an attempt to delete or update a primary key value is not allowed to proceed if there is a related foreign key value in the referenced table.

RESTRICT: Rejects the delete or update operation for the parent table. NO ACTION and RESTRICT are the same as omitting the ON DELETE or ON UPDATE clause.

SET DEFAULT

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchRelatedFor  [line 295] -
-
- -
-
-
  - Doctrine_Record|Doctrine_Collection fetchRelatedFor( -Doctrine_Record -$record  -) -
-

- -

fetchRelatedFor -

-

fetches a component related to given record

- Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - - - - -
Abstract:  
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getAlias  [line 201] -
-
- -
-
-
  - string getAlias( -) -
-

- -

getAlias returns the relation alias -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getForeign  [line 245] -
-
- -
-
-
  - string getForeign( -) -
-

- -

getForeign returns the name of the foreignkey column where the localkey column is pointing at -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getLocal  [line 234] -
-
- -
-
-
  - string getLocal( -) -
-

- -

getLocal returns the name of the local column -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelationDql  [line 277] -
-
- -
-
-
  - string getRelationDql( -integer -$count  -) -
-

- -

getRelationDql -

- - Parameters:
- - - - -
- integer   - $count:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getTable  [line 222] -
-
- -
-
-
  - object Doctrine_Table getTable( -) -
-

- -

getTable returns the foreign table object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getType  [line 212] -
-
- -
-
-
  - integer getType( -) -
-

- -

getType returns the relation type, either 0 or 1 -

- -
- API Tags:
- - - - - - - -
See:  Doctrine_Relation MANY_* and ONE_* constants
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasConstraint  [line 141] -
-
- -
-
-
  - boolean hasConstraint( -) -
-

- -

hasConstraint whether or not this relation has an explicit constraint -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isComposite  [line 255] -
-
- -
-
-
  - boolean isComposite( -) -
-

- -

isComposite returns whether or not this relation is a composite relation -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isDeferrable  [line 152] -
-
- -
-
-
  - void isDeferrable( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isDeferred  [line 147] -
-
- -
-
-
  - void isDeferred( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isEqual  [line 156] -
-
- -
-
-
  - void isEqual( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isOneToOne  [line 266] -
-
- -
-
-
  - boolean isOneToOne( -) -
-

- -

isOneToOne returns whether or not this relation is a one-to-one relation -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- offsetExists  [line 161] -
-
- -
-
-
  - void offsetExists( - -$offset  -) -
-

- - - Parameters:
- - - - -
-    - $offset:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetExists
-
- -
-
[ Top ]
-
- -
- -
- offsetGet  [line 166] -
-
- -
-
-
  - void offsetGet( - -$offset  -) -
-

- - - Parameters:
- - - - -
-    - $offset:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetGet
-
- -
-
[ Top ]
-
- -
- -
- offsetSet  [line 175] -
-
- -
-
-
  - void offsetSet( - -$offset, -$value  -) -
-

- - - Parameters:
- - - - - - - -
-    - $offset:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetSet
-
- -
-
[ Top ]
-
- -
- -
- offsetUnset  [line 182] -
-
- -
-
-
  - void offsetUnset( - -$offset  -) -
-

- - - Parameters:
- - - - -
-    - $offset:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
ArrayAccess::offsetUnset
-
- -
-
[ Top ]
-
- -
- -
- toArray  [line 191] -
-
- -
-
-
  - array toArray( -) -
-

- -

toArray -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 301] -
-
- -
-
-
  - string __toString( -) -
-

- -

__toString -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - MANY - = 2 - [line 57] - -
- - - -
-
[ Top ]
-
- -
- -
- - MANY_AGGREGATE - = 2 - [line 50] - -
- -

constant for MANY_TO_MANY and ONE_TO_MANY aggregate relationships -

- - -
-
[ Top ]
-
- -
- -
- - MANY_COMPOSITE - = 3 - [line 54] - -
- -

constant for MANY_TO_MANY and ONE_TO_MANY composite relationships -

- - -
-
[ Top ]
-
- -
- -
- - ONE - = 0 - [line 56] - -
- - - -
-
[ Top ]
-
- -
- -
- - ONE_AGGREGATE - = 0 - [line 42] - -
- -

constant for ONE_TO_ONE and MANY_TO_ONE aggregate relationships -

- - -
-
[ Top ]
-
- -
- -
- - ONE_COMPOSITE - = 1 - [line 46] - -
- -

constant for ONE_TO_ONE and MANY_TO_ONE composite relationships -

- - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_Association.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_Association.html deleted file mode 100644 index 8f5ed939e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_Association.html +++ /dev/null @@ -1,860 +0,0 @@ - - -
-

Class: Doctrine_Relation_Association

-Source Location: /Doctrine/Relation/Association.php

- -

Class Doctrine_Relation_Association

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Relation_Association this class takes care of association mapping (= many-to-many relationships, where the relationship is handled with an additional relational table which holds 2 foreign keys) -

- -

- Located in /Doctrine/Relation/Association.php [line 36] -

- - -
Doctrine_Relation
-   |
-   --Doctrine_Relation_Association
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2212 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Relation_Association_Self - Doctrine_Relation_Association_Self -
Doctrine_Relation_Nest - Doctrine_Relation_Association_Self -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::$definition -
-
- -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::__construct() -
-
- constructor -
-
- Doctrine_Relation::fetchRelatedFor() -
-
- fetchRelatedFor -
-
- Doctrine_Relation::getAlias() -
-
- getAlias returns the relation alias -
-
- Doctrine_Relation::getForeign() -
-
- getForeign returns the name of the foreignkey column where the localkey column is pointing at -
-
- Doctrine_Relation::getLocal() -
-
- getLocal returns the name of the local column -
-
- Doctrine_Relation::getRelationDql() -
-
- getRelationDql -
-
- Doctrine_Relation::getTable() -
-
- getTable returns the foreign table object -
-
- Doctrine_Relation::getType() -
-
- getType returns the relation type, either 0 or 1 -
-
- Doctrine_Relation::hasConstraint() -
-
- hasConstraint whether or not this relation has an explicit constraint -
-
- Doctrine_Relation::isComposite() -
-
- isComposite returns whether or not this relation is a composite relation -
-
- Doctrine_Relation::isDeferrable() -
-
- -
-
- Doctrine_Relation::isDeferred() -
-
- -
-
- Doctrine_Relation::isEqual() -
-
- -
-
- Doctrine_Relation::isOneToOne() -
-
- isOneToOne returns whether or not this relation is a one-to-one relation -
-
- Doctrine_Relation::offsetExists() -
-
- -
-
- Doctrine_Relation::offsetGet() -
-
- -
-
- Doctrine_Relation::offsetSet() -
-
- -
-
- Doctrine_Relation::offsetUnset() -
-
- -
-
- Doctrine_Relation::toArray() -
-
- toArray -
-
- Doctrine_Relation::__toString() -
-
- __toString -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::MANY -
-
- -
-
- Doctrine_Relation::MANY_AGGREGATE -
-
- -
-
- Doctrine_Relation::MANY_COMPOSITE -
-
- -
-
- Doctrine_Relation::ONE -
-
- -
-
- Doctrine_Relation::ONE_AGGREGATE -
-
- -
-
- Doctrine_Relation::ONE_COMPOSITE -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Record|Doctrine_Collection  fetchRelatedFor()  fetchRelatedFor
Doctrine_Table  getAssociationFactory()  
void  getAssociationTable()  
string  getRelationDql()  getRelationDql
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- fetchRelatedFor  [line 83] -
-
- -
-
-
  - Doctrine_Record|Doctrine_Collection fetchRelatedFor( -Doctrine_Record -$record  -) -
-

- -

fetchRelatedFor -

-

fetches a component related to given record

- Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation::fetchRelatedFor()
-
fetchRelatedFor
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getAssociationFactory  [line 41] -
-
- -
-
-
  - Doctrine_Table getAssociationFactory( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAssociationTable  [line 45] -
-
- -
-
-
  - void getAssociationTable( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelationDql  [line 55] -
-
- -
-
-
  - string getRelationDql( -integer -$count, [ -$context = 'record']  -) -
-

- -

getRelationDql -

- - Parameters:
- - - - - - - -
- integer   - $count:  -
-    - $context:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation::getRelationDql()
-
getRelationDql
-
- -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_Association_Self.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_Association_Self.html deleted file mode 100644 index f9f4fb068..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_Association_Self.html +++ /dev/null @@ -1,755 +0,0 @@ - - -
-

Class: Doctrine_Relation_Association_Self

-Source Location: /Doctrine/Relation/Association/Self.php

- -

Class Doctrine_Relation_Association_Self

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Relation_Association_Self -

- -

- Located in /Doctrine/Relation/Association/Self.php [line 33] -

- - -
Doctrine_Relation
-   |
-   --Doctrine_Relation_Association
-      |
-      --Doctrine_Relation_Association_Self
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1434 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::$definition -
-
- -
-
-
-
-

Inherited From Doctrine_Relation_Association

-
-
-
- Doctrine_Relation_Association::fetchRelatedFor() -
-
- fetchRelatedFor -
-
- Doctrine_Relation_Association::getAssociationFactory() -
-
- -
-
- Doctrine_Relation_Association::getAssociationTable() -
-
- -
-
- Doctrine_Relation_Association::getRelationDql() -
-
- getRelationDql -
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::__construct() -
-
- constructor -
-
- Doctrine_Relation::fetchRelatedFor() -
-
- fetchRelatedFor -
-
- Doctrine_Relation::getAlias() -
-
- getAlias returns the relation alias -
-
- Doctrine_Relation::getForeign() -
-
- getForeign returns the name of the foreignkey column where the localkey column is pointing at -
-
- Doctrine_Relation::getLocal() -
-
- getLocal returns the name of the local column -
-
- Doctrine_Relation::getRelationDql() -
-
- getRelationDql -
-
- Doctrine_Relation::getTable() -
-
- getTable returns the foreign table object -
-
- Doctrine_Relation::getType() -
-
- getType returns the relation type, either 0 or 1 -
-
- Doctrine_Relation::hasConstraint() -
-
- hasConstraint whether or not this relation has an explicit constraint -
-
- Doctrine_Relation::isComposite() -
-
- isComposite returns whether or not this relation is a composite relation -
-
- Doctrine_Relation::isDeferrable() -
-
- -
-
- Doctrine_Relation::isDeferred() -
-
- -
-
- Doctrine_Relation::isEqual() -
-
- -
-
- Doctrine_Relation::isOneToOne() -
-
- isOneToOne returns whether or not this relation is a one-to-one relation -
-
- Doctrine_Relation::offsetExists() -
-
- -
-
- Doctrine_Relation::offsetGet() -
-
- -
-
- Doctrine_Relation::offsetSet() -
-
- -
-
- Doctrine_Relation::offsetUnset() -
-
- -
-
- Doctrine_Relation::toArray() -
-
- toArray -
-
- Doctrine_Relation::__toString() -
-
- __toString -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::MANY -
-
- -
-
- Doctrine_Relation::MANY_AGGREGATE -
-
- -
-
- Doctrine_Relation::MANY_COMPOSITE -
-
- -
-
- Doctrine_Relation::ONE -
-
- -
-
- Doctrine_Relation::ONE_AGGREGATE -
-
- -
-
- Doctrine_Relation::ONE_COMPOSITE -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  fetchRelatedFor()  
string  getRelationDql()  getRelationDql
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- fetchRelatedFor  [line 75] -
-
- -
-
-
  - void fetchRelatedFor( -Doctrine_Record -$record  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation_Association::fetchRelatedFor()
-
fetchRelatedFor
-
- -
-
[ Top ]
-
- -
- -
- getRelationDql  [line 41] -
-
- -
-
-
  - string getRelationDql( -integer -$count, [ -$context = 'record']  -) -
-

- -

getRelationDql -

- - Parameters:
- - - - - - - -
- integer   - $count:  -
-    - $context:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation_Association::getRelationDql()
-
getRelationDql
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_Exception.html deleted file mode 100644 index 8b1afe071..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_Exception.html +++ /dev/null @@ -1,453 +0,0 @@ - - -
-

Class: Doctrine_Relation_Exception

-Source Location: /Doctrine/Relation/Exception.php

- -

Class Doctrine_Relation_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Relation_Exception -

- -

- Located in /Doctrine/Relation/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Relation_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1344 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - -
Child ClassDescription
Doctrine_Relation_Parser_Exception - Doctrine_Relation_Parser_Exception -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_ForeignKey.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_ForeignKey.html deleted file mode 100644 index e50ff2461..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_ForeignKey.html +++ /dev/null @@ -1,713 +0,0 @@ - - -
-

Class: Doctrine_Relation_ForeignKey

-Source Location: /Doctrine/Relation/ForeignKey.php

- -

Class Doctrine_Relation_ForeignKey

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Relation_ForeignKey This class represents a foreign key relation -

- -

- Located in /Doctrine/Relation/ForeignKey.php [line 34] -

- - -
Doctrine_Relation
-   |
-   --Doctrine_Relation_ForeignKey
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1517 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::$definition -
-
- -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::__construct() -
-
- constructor -
-
- Doctrine_Relation::fetchRelatedFor() -
-
- fetchRelatedFor -
-
- Doctrine_Relation::getAlias() -
-
- getAlias returns the relation alias -
-
- Doctrine_Relation::getForeign() -
-
- getForeign returns the name of the foreignkey column where the localkey column is pointing at -
-
- Doctrine_Relation::getLocal() -
-
- getLocal returns the name of the local column -
-
- Doctrine_Relation::getRelationDql() -
-
- getRelationDql -
-
- Doctrine_Relation::getTable() -
-
- getTable returns the foreign table object -
-
- Doctrine_Relation::getType() -
-
- getType returns the relation type, either 0 or 1 -
-
- Doctrine_Relation::hasConstraint() -
-
- hasConstraint whether or not this relation has an explicit constraint -
-
- Doctrine_Relation::isComposite() -
-
- isComposite returns whether or not this relation is a composite relation -
-
- Doctrine_Relation::isDeferrable() -
-
- -
-
- Doctrine_Relation::isDeferred() -
-
- -
-
- Doctrine_Relation::isEqual() -
-
- -
-
- Doctrine_Relation::isOneToOne() -
-
- isOneToOne returns whether or not this relation is a one-to-one relation -
-
- Doctrine_Relation::offsetExists() -
-
- -
-
- Doctrine_Relation::offsetGet() -
-
- -
-
- Doctrine_Relation::offsetSet() -
-
- -
-
- Doctrine_Relation::offsetUnset() -
-
- -
-
- Doctrine_Relation::toArray() -
-
- toArray -
-
- Doctrine_Relation::__toString() -
-
- __toString -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::MANY -
-
- -
-
- Doctrine_Relation::MANY_AGGREGATE -
-
- -
-
- Doctrine_Relation::MANY_COMPOSITE -
-
- -
-
- Doctrine_Relation::ONE -
-
- -
-
- Doctrine_Relation::ONE_AGGREGATE -
-
- -
-
- Doctrine_Relation::ONE_COMPOSITE -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Record|Doctrine_Collection  fetchRelatedFor()  fetchRelatedFor
void  getCondition()  getCondition
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- fetchRelatedFor  [line 44] -
-
- -
-
-
  - Doctrine_Record|Doctrine_Collection fetchRelatedFor( -Doctrine_Record -$record  -) -
-

- -

fetchRelatedFor -

-

fetches a component related to given record

- Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation::fetchRelatedFor()
-
fetchRelatedFor
-
- -
-
[ Top ]
-
- -
- -
- getCondition  [line 87] -
-
- -
-
-
  - void getCondition( -[string -$alias = null]  -) -
-

- -

getCondition -

- - Parameters:
- - - - -
- string   - $alias:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_LocalKey.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_LocalKey.html deleted file mode 100644 index f91748c00..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_LocalKey.html +++ /dev/null @@ -1,713 +0,0 @@ - - -
-

Class: Doctrine_Relation_LocalKey

-Source Location: /Doctrine/Relation/LocalKey.php

- -

Class Doctrine_Relation_LocalKey

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Relation_LocalKey This class represents a local key relation -

- -

- Located in /Doctrine/Relation/LocalKey.php [line 34] -

- - -
Doctrine_Relation
-   |
-   --Doctrine_Relation_LocalKey
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2195 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::$definition -
-
- -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::__construct() -
-
- constructor -
-
- Doctrine_Relation::fetchRelatedFor() -
-
- fetchRelatedFor -
-
- Doctrine_Relation::getAlias() -
-
- getAlias returns the relation alias -
-
- Doctrine_Relation::getForeign() -
-
- getForeign returns the name of the foreignkey column where the localkey column is pointing at -
-
- Doctrine_Relation::getLocal() -
-
- getLocal returns the name of the local column -
-
- Doctrine_Relation::getRelationDql() -
-
- getRelationDql -
-
- Doctrine_Relation::getTable() -
-
- getTable returns the foreign table object -
-
- Doctrine_Relation::getType() -
-
- getType returns the relation type, either 0 or 1 -
-
- Doctrine_Relation::hasConstraint() -
-
- hasConstraint whether or not this relation has an explicit constraint -
-
- Doctrine_Relation::isComposite() -
-
- isComposite returns whether or not this relation is a composite relation -
-
- Doctrine_Relation::isDeferrable() -
-
- -
-
- Doctrine_Relation::isDeferred() -
-
- -
-
- Doctrine_Relation::isEqual() -
-
- -
-
- Doctrine_Relation::isOneToOne() -
-
- isOneToOne returns whether or not this relation is a one-to-one relation -
-
- Doctrine_Relation::offsetExists() -
-
- -
-
- Doctrine_Relation::offsetGet() -
-
- -
-
- Doctrine_Relation::offsetSet() -
-
- -
-
- Doctrine_Relation::offsetUnset() -
-
- -
-
- Doctrine_Relation::toArray() -
-
- toArray -
-
- Doctrine_Relation::__toString() -
-
- __toString -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::MANY -
-
- -
-
- Doctrine_Relation::MANY_AGGREGATE -
-
- -
-
- Doctrine_Relation::MANY_COMPOSITE -
-
- -
-
- Doctrine_Relation::ONE -
-
- -
-
- Doctrine_Relation::ONE_AGGREGATE -
-
- -
-
- Doctrine_Relation::ONE_COMPOSITE -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Record|Doctrine_Collection  fetchRelatedFor()  fetchRelatedFor
void  getCondition()  getCondition
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- fetchRelatedFor  [line 44] -
-
- -
-
-
  - Doctrine_Record|Doctrine_Collection fetchRelatedFor( -Doctrine_Record -$record  -) -
-

- -

fetchRelatedFor -

-

fetches a component related to given record

- Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation::fetchRelatedFor()
-
fetchRelatedFor
-
- -
-
[ Top ]
-
- -
- -
- getCondition  [line 74] -
-
- -
-
-
  - void getCondition( -[string -$alias = null]  -) -
-

- -

getCondition -

- - Parameters:
- - - - -
- string   - $alias:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_Nest.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_Nest.html deleted file mode 100644 index 290dd0532..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_Nest.html +++ /dev/null @@ -1,755 +0,0 @@ - - -
-

Class: Doctrine_Relation_Nest

-Source Location: /Doctrine/Relation/Nest.php

- -

Class Doctrine_Relation_Nest

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Relation_Association_Self -

- -

- Located in /Doctrine/Relation/Nest.php [line 33] -

- - -
Doctrine_Relation
-   |
-   --Doctrine_Relation_Association
-      |
-      --Doctrine_Relation_Nest
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1434 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::$definition -
-
- -
-
-
-
-

Inherited From Doctrine_Relation_Association

-
-
-
- Doctrine_Relation_Association::fetchRelatedFor() -
-
- fetchRelatedFor -
-
- Doctrine_Relation_Association::getAssociationFactory() -
-
- -
-
- Doctrine_Relation_Association::getAssociationTable() -
-
- -
-
- Doctrine_Relation_Association::getRelationDql() -
-
- getRelationDql -
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::__construct() -
-
- constructor -
-
- Doctrine_Relation::fetchRelatedFor() -
-
- fetchRelatedFor -
-
- Doctrine_Relation::getAlias() -
-
- getAlias returns the relation alias -
-
- Doctrine_Relation::getForeign() -
-
- getForeign returns the name of the foreignkey column where the localkey column is pointing at -
-
- Doctrine_Relation::getLocal() -
-
- getLocal returns the name of the local column -
-
- Doctrine_Relation::getRelationDql() -
-
- getRelationDql -
-
- Doctrine_Relation::getTable() -
-
- getTable returns the foreign table object -
-
- Doctrine_Relation::getType() -
-
- getType returns the relation type, either 0 or 1 -
-
- Doctrine_Relation::hasConstraint() -
-
- hasConstraint whether or not this relation has an explicit constraint -
-
- Doctrine_Relation::isComposite() -
-
- isComposite returns whether or not this relation is a composite relation -
-
- Doctrine_Relation::isDeferrable() -
-
- -
-
- Doctrine_Relation::isDeferred() -
-
- -
-
- Doctrine_Relation::isEqual() -
-
- -
-
- Doctrine_Relation::isOneToOne() -
-
- isOneToOne returns whether or not this relation is a one-to-one relation -
-
- Doctrine_Relation::offsetExists() -
-
- -
-
- Doctrine_Relation::offsetGet() -
-
- -
-
- Doctrine_Relation::offsetSet() -
-
- -
-
- Doctrine_Relation::offsetUnset() -
-
- -
-
- Doctrine_Relation::toArray() -
-
- toArray -
-
- Doctrine_Relation::__toString() -
-
- __toString -
-
-
-
-

Inherited From Doctrine_Relation

-
-
-
- Doctrine_Relation::MANY -
-
- -
-
- Doctrine_Relation::MANY_AGGREGATE -
-
- -
-
- Doctrine_Relation::MANY_COMPOSITE -
-
- -
-
- Doctrine_Relation::ONE -
-
- -
-
- Doctrine_Relation::ONE_AGGREGATE -
-
- -
-
- Doctrine_Relation::ONE_COMPOSITE -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  fetchRelatedFor()  
string  getRelationDql()  getRelationDql
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- fetchRelatedFor  [line 100] -
-
- -
-
-
  - void fetchRelatedFor( -Doctrine_Record -$record  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation_Association::fetchRelatedFor()
-
fetchRelatedFor
-
- -
-
[ Top ]
-
- -
- -
- getRelationDql  [line 41] -
-
- -
-
-
  - string getRelationDql( -integer -$count, [ -$context = 'record']  -) -
-

- -

getRelationDql -

- - Parameters:
- - - - - - - -
- integer   - $count:  -
-    - $context:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Relation_Association::getRelationDql()
-
getRelationDql
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_Parser.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_Parser.html deleted file mode 100644 index 4d73fc341..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_Parser.html +++ /dev/null @@ -1,1130 +0,0 @@ - - -
-

Class: Doctrine_Relation_Parser

-Source Location: /Doctrine/Relation/Parser.php

- -

Class Doctrine_Relation_Parser

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Relation_Parser -

- -

- Located in /Doctrine/Relation/Parser.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1397 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
array  $_pending  
array  $_relations  
Doctrine_Table  $_table  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Relation_Parser  __construct()  constructor
void  bind()  binds a relation
array  completeAssocDefinition()  Completes the given association definition
array  completeDefinition()  Completes the given definition
void  getIdentifiers()  getIdentifiers gives a list of identifiers from given table
void  getImpl()  getImpl
array  getPendingRelation()  getPendingRelation
void  getRelation()  getRelation
array  getRelations()  getRelations returns an array containing all relation objects
Doctrine_Table  getTable()  getTable
array  guessColumns()  guessColumns
void  hasRelation()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $_pending - = array() [line 45] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_relations - = array() [line 41] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Table   - $_table - [line 37] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 51] -
-
- -
-
-
  - Doctrine_Relation_Parser __construct( -Doctrine_Table -$table  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- Doctrine_Table   - $table:  - the table object this parser belongs to
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- bind  [line 93] -
-
- -
-
-
  - void bind( -string -$name, [ -$options = array()], string -$field  -) -
-

- -

binds a relation -

- - Parameters:
- - - - - - - - - - -
- string   - $name:  -
- string   - $field:  -
-    - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- completeAssocDefinition  [line 241] -
-
- -
-
-
  - array completeAssocDefinition( -array -$def  -) -
-

- -

Completes the given association definition -

- - Parameters:
- - - - -
- array   - $def:  - definition array to be completed
- -
- API Tags:
- - - - - - - -
Return:  completed definition array
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- completeDefinition  [line 350] -
-
- -
-
-
  - array completeDefinition( -array -$def  -) -
-

- -

Completes the given definition -

- - Parameters:
- - - - -
- array   - $def:  - definition array to be completed
- -
- API Tags:
- - - - - - - -
Return:  completed definition array
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIdentifiers  [line 292] -
-
- -
-
-
  - void getIdentifiers( -Doctrine_Table -$table  -) -
-

- -

getIdentifiers gives a list of identifiers from given table -

-

the identifiers are in format: [componentName].[identifier]

- Parameters:
- - - - -
- Doctrine_Table   - $table:  - table object to retrieve identifiers from
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getImpl  [line 219] -
-
- -
-
-
  - void getImpl( -string -$template  -) -
-

- -

getImpl -

-

returns the table class of the concrete implementation for given template if the given template is not a template then this method just returns the table class for the given record

- Parameters:
- - - - -
- string   - $template:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPendingRelation  [line 69] -
-
- -
-
-
  - array getPendingRelation( - -$name  -) -
-

- -

getPendingRelation -

- - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - - - - -
Return:  an array defining a pending relation
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelation  [line 131] -
-
- -
-
-
  - void getRelation( -string -$alias, [ -$recursive = true]  -) -
-

- -

getRelation -

- - Parameters:
- - - - - - - -
- string   - $alias:  - relation alias
-    - $recursive:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelations  [line 203] -
-
- -
-
-
  - array getRelations( -) -
-

- -

getRelations returns an array containing all relation objects -

- -
- API Tags:
- - - - - - - -
Return:  an array of Doctrine_Relation objects
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTable  [line 60] -
-
- -
-
-
  - Doctrine_Table getTable( -) -
-

- -

getTable -

- -
- API Tags:
- - - - - - - -
Return:  the table object this parser belongs to
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- guessColumns  [line 314] -
-
- -
-
-
  - array guessColumns( - -$classes, Doctrine_Table -$foreignTable  -) -
-

- -

guessColumns -

- - Parameters:
- - - - - - - -
- array   - $classes:  - an array of class names
- Doctrine_Table   - $foreignTable:  - foreign table object
- -
- API Tags:
- - - - - - - -
Return:  an array of column names
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasRelation  [line 78] -
-
- -
-
-
  - void hasRelation( - -$name  -) -
-

- - - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Relation_Parser_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Relation_Parser_Exception.html deleted file mode 100644 index b1be925c5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Relation_Parser_Exception.html +++ /dev/null @@ -1,525 +0,0 @@ - - -
-

Class: Doctrine_Relation_Parser_Exception

-Source Location: /Doctrine/Relation/Parser/Exception.php

- -

Class Doctrine_Relation_Parser_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Relation_Parser_Exception -

- -

- Located in /Doctrine/Relation/Parser/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Relation_Exception
-         |
-         --Doctrine_Relation_Parser_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Schema.html b/api_documentation/trunk/Doctrine/Doctrine_Schema.html deleted file mode 100644 index 654032645..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Schema.html +++ /dev/null @@ -1,801 +0,0 @@ - - -
-

Class: Doctrine_Schema

-Source Location: /Doctrine/Schema.php

- -

Class Doctrine_Schema

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

- -

- Located in /Doctrine/Schema.php [line 39] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Schema_Object
-         |
-         --Doctrine_Schema
- - - Author(s): - - - -Information Tags:
- - - - - - - -
Version:  $Id: Schema.php 1080 2007-02-10 18:17:08Z romanb $ class Doctrine_Schema Holds information on one to many databases
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::$children -
-
- -
-
- Doctrine_Schema_Object::$definition -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::__construct() -
-
- -
-
- Doctrine_Schema_Object::contains() -
-
- -
-
- Doctrine_Schema_Object::count() -
-
- -
-
- Doctrine_Schema_Object::get() -
-
- -
-
- Doctrine_Schema_Object::getIterator() -
-
- getIterator -
-
- Doctrine_Schema_Object::set() -
-
- -
-
- Doctrine_Schema_Object::toArray() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $childs  Holds any number of databases contained in the schema
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  addDatabase()  
array  getDatabases()  Return the childs for this schema
bool  isValid()  
void  __toString()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $childs - [line 45] - -
- -

Holds any number of databases contained in the schema -

- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- addDatabase  [line 52] -
-
- -
-
-
  - void addDatabase( -Doctrine_Schema_Database -$database  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Schema_Database   - $database:  - database * @return
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDatabases  [line 63] -
-
- -
-
-
  - array getDatabases( -) -
-

- -

Return the childs for this schema -

- -
- API Tags:
- - - - - - - -
Return:  of Doctrine_Schema_Database
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isValid  [line 80] -
-
- -
-
-
  - bool isValid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 71] -
-
- -
-
-
  - void __toString( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Schema_Column.html b/api_documentation/trunk/Doctrine/Doctrine_Schema_Column.html deleted file mode 100644 index 019d20f1b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Schema_Column.html +++ /dev/null @@ -1,856 +0,0 @@ - - -
-

Class: Doctrine_Schema_Column

-Source Location: /Doctrine/Schema/Column.php

- -

Class Doctrine_Schema_Column

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • IteratorAggregate (internal interface)
-

-

class Doctrine_Schema_Column -

-

Holds information on a database table field

-

- Located in /Doctrine/Schema/Column.php [line 40] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Schema_Object
-         |
-         --Doctrine_Schema_Column
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::$children -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::__construct() -
-
- -
-
- Doctrine_Schema_Object::contains() -
-
- -
-
- Doctrine_Schema_Object::count() -
-
- -
-
- Doctrine_Schema_Object::get() -
-
- -
-
- Doctrine_Schema_Object::getIterator() -
-
- getIterator -
-
- Doctrine_Schema_Object::set() -
-
- -
-
- Doctrine_Schema_Object::toArray() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $definition  column definitions
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  defaultValue()  
void  getName()  
void  getType()  
void  isNotNull()  
void  isPrimaryKey()  
void  isUnique()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $definition - = array('name' => '',
'type' => '',
'length' => null,
'unique' => false,
'primary' => false,
'notnull' => false,
'default' => false,
'autoinc' => false
)
[line 46] -
-
- -

column definitions -

- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Schema_Object::$definition
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- defaultValue  [line 72] -
-
- -
-
-
  - void defaultValue( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getName  [line 56] -
-
- -
-
-
  - void getName( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getType  [line 60] -
-
- -
-
-
  - void getType( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isNotNull  [line 76] -
-
- -
-
-
  - void isNotNull( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isPrimaryKey  [line 68] -
-
- -
-
-
  - void isPrimaryKey( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isUnique  [line 64] -
-
- -
-
-
  - void isUnique( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Schema_Database.html b/api_documentation/trunk/Doctrine/Doctrine_Schema_Database.html deleted file mode 100644 index 20c3bcc6b..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Schema_Database.html +++ /dev/null @@ -1,857 +0,0 @@ - - -
-

Class: Doctrine_Schema_Database

-Source Location: /Doctrine/Schema/Database.php

- -

Class Doctrine_Schema_Database

- - -
-
Class Overview
- -
- - - - - - - -
- -

class Doctrine_Schema_Database -

-

Holds information on a database

-

- Located in /Doctrine/Schema/Database.php [line 40] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Schema_Object
-         |
-         --Doctrine_Schema_Database
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::$children -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::__construct() -
-
- -
-
- Doctrine_Schema_Object::contains() -
-
- -
-
- Doctrine_Schema_Object::count() -
-
- -
-
- Doctrine_Schema_Object::get() -
-
- -
-
- Doctrine_Schema_Object::getIterator() -
-
- getIterator -
-
- Doctrine_Schema_Object::set() -
-
- -
-
- Doctrine_Schema_Object::toArray() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $childs  
mixed  $definition  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  addTable()  
array  getTables()  
bool  isValid()  
void  __clone()  
void  __toString()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $childs - = array() [line 50] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $definition - = array('name' => null,
'type' => null,
'charset' => null,
'description' => null,
'version' => null,
'engine' => null)
[line 43] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Schema_Object::$definition
-
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- addTable  [line 84] -
-
- -
-
-
  - void addTable( -[Doctrine_Schema_Table -$table = null]  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Schema_Table   - $table:  - table * @return Doctrine_Schema_Table
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTables  [line 94] -
-
- -
-
-
  - array getTables( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  of Doctrine_Schema_Table
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isValid  [line 75] -
-
- -
-
-
  - bool isValid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __clone  [line 57] -
-
- -
-
-
  - void __clone( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 66] -
-
- -
-
-
  - void __toString( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Schema_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Schema_Exception.html deleted file mode 100644 index 37e1b2bd2..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Schema_Exception.html +++ /dev/null @@ -1,499 +0,0 @@ - - -
-

Class: Doctrine_Schema_Exception

-Source Location: /Doctrine/Schema/Exception.php

- -

Class Doctrine_Schema_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

class Doctrine_Schema_Exception -

- -

- Located in /Doctrine/Schema/Exception.php [line 39] -

- - -
Exception
-   |
-   --Doctrine_Schema_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Schema_Object.html b/api_documentation/trunk/Doctrine/Doctrine_Schema_Object.html deleted file mode 100644 index 1cba10b46..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Schema_Object.html +++ /dev/null @@ -1,1001 +0,0 @@ - - -
-

Class: Doctrine_Schema_Object

-Source Location: /Doctrine/Schema/Object.php

- -

Class Doctrine_Schema_Object

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • IteratorAggregate (internal interface)
  • Countable (internal interface)
-

-

class Doctrine_Schema_Object Catches any non-property call from child classes and throws an exception. -

- -

- Located in /Doctrine/Schema/Object.php [line 35] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Schema_Object
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Schema_Column - class Doctrine_Schema_Column -
Doctrine_Schema_Database - class Doctrine_Schema_Database -
Doctrine_Schema_Relation - class Doctrine_Schema_Relation Holds information on a foreign key relation. -
Doctrine_Schema_Table - class Doctrine_Schema_Table -
Doctrine_Schema - -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $children  
mixed  $definition  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Schema_Object  __construct()  
void  contains()  
int  count()  
void  get()  
ArrayIterator  getIterator()  getIterator
void  set()  
void  toArray()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $children - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $definition - = array('name' => '') [line 40] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 42] -
-
- -
-
-
  - Doctrine_Schema_Object __construct( -[ -$definition = array()]  -) -
-

- - - Parameters:
- - - - -
- array   - $definition:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- contains  [line 67] -
-
- -
-
-
  - void contains( - -$name  -) -
-

- - - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 81] -
-
- -
-
-
  - int count( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- get  [line 50] -
-
- -
-
-
  - void get( - -$name  -) -
-

- - - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 95] -
-
- -
-
-
  - ArrayIterator getIterator( -) -
-

- -

getIterator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- set  [line 59] -
-
- -
-
-
  - void set( - -$name, -$value  -) -
-

- - - Parameters:
- - - - - - - -
-    - $name:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- toArray  [line 72] -
-
- -
-
-
  - void toArray( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Schema_Relation.html b/api_documentation/trunk/Doctrine/Doctrine_Schema_Relation.html deleted file mode 100644 index a6f87e4c0..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Schema_Relation.html +++ /dev/null @@ -1,991 +0,0 @@ - - -
-

Class: Doctrine_Schema_Relation

-Source Location: /Doctrine/Schema/Relation.php

- -

Class Doctrine_Schema_Relation

- - -
-
Class Overview
- -
- - - - - - - -
- -

class Doctrine_Schema_Relation Holds information on a foreign key relation. -

- -

- Located in /Doctrine/Schema/Relation.php [line 40] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Schema_Object
-         |
-         --Doctrine_Schema_Relation
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::$children -
-
- -
-
- Doctrine_Schema_Object::$definition -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::__construct() -
-
- -
-
- Doctrine_Schema_Object::contains() -
-
- -
-
- Doctrine_Schema_Object::count() -
-
- -
-
- Doctrine_Schema_Object::get() -
-
- -
-
- Doctrine_Schema_Object::getIterator() -
-
- getIterator -
-
- Doctrine_Schema_Object::set() -
-
- -
-
- Doctrine_Schema_Object::toArray() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static mixed  $ACTION_CASCADE  ON UPDATE or ON DELETE action
static mixed  $ACTION_NO_ACTION  ON UPDATE or ON DELETE action
static mixed  $ACTION_RESTRICT  ON UPDATE or ON DELETE action
static mixed  $ACTION_SET_DEFAULT  ON UPDATE or ON DELETE action
static mixed  $ACTION_SET_NULL  ON UPDATE or ON DELETE action
mixed  $referencedColumn  Column that is referred from another table
mixed  $referencedTable  Table where the referred column lives
mixed  $referencingColumn  Column that refers to another table
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
bool  isValid()  
void  setRelationBetween()  
string  __toString()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static mixed   - $ACTION_CASCADE - = 3 [line 81] - -
- -

ON UPDATE or ON DELETE action -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- - static mixed   - $ACTION_NO_ACTION - = 4 [line 88] - -
- -

ON UPDATE or ON DELETE action -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- - static mixed   - $ACTION_RESTRICT - = 1 [line 67] - -
- -

ON UPDATE or ON DELETE action -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- - static mixed   - $ACTION_SET_DEFAULT - = 5 [line 95] - -
- -

ON UPDATE or ON DELETE action -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- - static mixed   - $ACTION_SET_NULL - = 2 [line 74] - -
- -

ON UPDATE or ON DELETE action -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $referencedColumn - [line 53] - -
- -

Column that is referred from another table -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $referencedTable - [line 60] - -
- -

Table where the referred column lives -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $referencingColumn - [line 47] - -
- -

Column that refers to another table -

- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- isValid  [line 122] -
-
- -
-
-
  - bool isValid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setRelationBetween  [line 105] -
-
- -
-
-
  - void setRelationBetween( -Doctrine_Schema_Column -$referencingColumn, Doctrine_Schema_Table -$referencedTable, Doctrine_Schema_Column -$referencedColumn  -) -
-

- - - Parameters:
- - - - - - - - - - -
- Doctrine_Schema_Column   - $referencingColumn:  - referencing
- Doctrine_Schema_Table   - $referencedTable:  - referencedtable
- Doctrine_Schema_Column   - $referencedColumn:  - referencedColumn
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 114] -
-
- -
-
-
  - string __toString( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Schema_Table.html b/api_documentation/trunk/Doctrine/Doctrine_Schema_Table.html deleted file mode 100644 index 97fabdbb6..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Schema_Table.html +++ /dev/null @@ -1,931 +0,0 @@ - - -
-

Class: Doctrine_Schema_Table

-Source Location: /Doctrine/Schema/Table.php

- -

Class Doctrine_Schema_Table

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

-

class Doctrine_Schema_Table -

-

Holds information on a database table

-

- Located in /Doctrine/Schema/Table.php [line 40] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Schema_Object
-         |
-         --Doctrine_Schema_Table
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::$children -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Schema_Object

-
-
-
- Doctrine_Schema_Object::__construct() -
-
- -
-
- Doctrine_Schema_Object::contains() -
-
- -
-
- Doctrine_Schema_Object::count() -
-
- -
-
- Doctrine_Schema_Object::get() -
-
- -
-
- Doctrine_Schema_Object::getIterator() -
-
- getIterator -
-
- Doctrine_Schema_Object::set() -
-
- -
-
- Doctrine_Schema_Object::toArray() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $definition  
mixed  $relations  Relations this table has with others. An array of Doctrine_Schema_Relation
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Schema_Table  addColumn()  
Doctrine_Schema_Column|false  getColumn()  
array  getColumns()  returns an array of Doctrine_Schema_Column objects
array  getRelations()  Return all the relations this table has with others
bool  isValid()  
void  setRelation()  Adds a relation between a local column and a 2nd table / column
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $definition - = array('name' => '',
'check' => '',
'charset' => '',
'description' => '')
[line 43] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Schema_Object::$definition
-
- -
-
[ Top ]
-
- -
- -
- - mixed   - $relations - = array() [line 50] - -
- -

Relations this table has with others. An array of Doctrine_Schema_Relation -

- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- addColumn  [line 85] -
-
- -
-
-
  - Doctrine_Schema_Table addColumn( -Doctrine_Schema_Column -$column  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Schema_Column   - $column:  - column
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getColumn  [line 72] -
-
- -
-
-
  - Doctrine_Schema_Column|false getColumn( - -$name  -) -
-

- - - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getColumns  [line 65] -
-
- -
-
-
  - array getColumns( -) -
-

- -

returns an array of Doctrine_Schema_Column objects -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelations  [line 107] -
-
- -
-
-
  - array getRelations( -) -
-

- -

Return all the relations this table has with others -

- -
- API Tags:
- - - - - - - -
Return:  Array of Doctrine_Schema_Relation
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isValid  [line 56] -
-
- -
-
-
  - bool isValid( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setRelation  [line 99] -
-
- -
-
-
  - void setRelation( -Doctrine_Schema_Relation -$relation  -) -
-

- -

Adds a relation between a local column and a 2nd table / column -

- - Parameters:
- - - - -
- Doctrine_Schema_Relation   - $relation:  - Relation
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search.html b/api_documentation/trunk/Doctrine/Doctrine_Search.html deleted file mode 100644 index 727c442f3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search.html +++ /dev/null @@ -1,741 +0,0 @@ - - -
-

Class: Doctrine_Search

-Source Location: /Doctrine/Search.php

- -

Class Doctrine_Search

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Search -

- -

- Located in /Doctrine/Search.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_options  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Search  __construct()  
void  analyze()  
void  buildDefinition()  
void  getOption()  
void  setOption()  
integer  updateIndex()  updateIndex updates the index
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_options - = array('generateFiles' => true,
'className' => '%CLASS%Index')
[line 35] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 39] -
-
- -
-
-
  - Doctrine_Search __construct( - -$options  -) -
-

- - - Parameters:
- - - - -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- analyze  [line 57] -
-
- -
-
-
  - void analyze( - -$text  -) -
-

- - - Parameters:
- - - - -
-    - $text:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- buildDefinition  [line 98] -
-
- -
-
-
  - void buildDefinition( -Doctrine_Table -$table  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getOption  [line 48] -
-
- -
-
-
  - void getOption( - -$option  -) -
-

- - - Parameters:
- - - - -
-    - $option:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setOption  [line 62] -
-
- -
-
-
  - void setOption( - -$option, -$value  -) -
-

- - - Parameters:
- - - - - - - -
-    - $option:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- updateIndex  [line 75] -
-
- -
-
-
  - integer updateIndex( -Doctrine_Record -$record  -) -
-

- -

updateIndex updates the index -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer.html deleted file mode 100644 index 2bcf0bafa..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer.html +++ /dev/null @@ -1,429 +0,0 @@ - - -
-

Class: Doctrine_Search_Analyzer

-Source Location: /Doctrine/Search/Analyzer.php

- -

Class Doctrine_Search_Analyzer

- - -
-
Class Overview
- -
- - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Search_Analyzer -

- -

- Located in /Doctrine/Search/Analyzer.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  analyze()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- analyze  [line 35] -
-
- -
-
-
  - void analyze( - -$text  -) -
-

- - - Parameters:
- - - - -
-    - $text:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Search_Analyzer_Interface::analyze()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Exception.html deleted file mode 100644 index 3a85b2440..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Exception.html +++ /dev/null @@ -1,525 +0,0 @@ - - -
-

Class: Doctrine_Search_Analyzer_Exception

-Source Location: /Doctrine/Search/Analyzer/Exception.php

- -

Class Doctrine_Search_Analyzer_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Search_Analyzer_Exception -

- -

- Located in /Doctrine/Search/Analyzer/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Search_Exception
-         |
-         --Doctrine_Search_Analyzer_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Interface.html deleted file mode 100644 index 1cad63911..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Interface.html +++ /dev/null @@ -1,419 +0,0 @@ - - -
-

Interface: Doctrine_Search_Analyzer_Interface

-Source Location: /Doctrine/Search/Analyzer/Interface.php

- -

Interface Doctrine_Search_Analyzer_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Search_Analyzer_Interface -

- -

- Located in /Doctrine/Search/Analyzer/Interface.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  analyze()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- analyze  [line 35] -
-
- -
-
-
  - void analyze( - -$text  -) -
-

- - - Parameters:
- - - - -
-    - $text:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Standard.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Standard.html deleted file mode 100644 index d6e3ab93c..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Analyzer_Standard.html +++ /dev/null @@ -1,497 +0,0 @@ - - -
-

Class: Doctrine_Search_Analyzer_Standard

-Source Location: /Doctrine/Search/Analyzer/Standard.php

- -

Class Doctrine_Search_Analyzer_Standard

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Search_Analyzer_Standard -

- -

- Located in /Doctrine/Search/Analyzer/Standard.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
static mixed  $_stopwords  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
void  analyze()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static mixed   - $_stopwords - = array(
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
'a',
'about',
'after',
'all',
'almost',
'along',
'also',
'amp',
'an',
'and',
'another',
'any',
'are',
'area',
'around',
'as',
'at',
'available',
'back',
'be',
'because',
'been',
'being',
'best',
'better',
'big',
'bit',
'both',
'but',
'by',
'c',
'came',
'can',
'capable',
'control',
'could',
'course',
'd',
'dan',
'day',
'decided',
'did',
'didn',
'different',
'div',
'do',
'doesn',
'don',
'down',
'drive',
'e',
'each',
'easily',
'easy',
'edition',
'end',
'enough',
'even',
'every',
'example',
'few',
'find',
'first',
'for',
'found',
'from',
'get',
'go',
'going',
'good',
'got',
'gt',
'had',
'hard',
'has',
'have',
'he',
'her',
'here',
'how',
'i',
'if',
'in',
'into',
'is',
'isn',
'it',
'just',
'know',
'last',
'left',
'li',
'like',
'little',
'll',
'long',
'look',
'lot',
'lt',
'm',
'made',
'make',
'many',
'mb',
'me',
'menu',
'might',
'mm',
'more',
'most',
'much',
'my',
'name',
'nbsp',
'need',
'new',
'no',
'not',
'now',
'number',
'of',
'off',
'old',
'on',
'one',
'only',
'or',
'original',
'other',
'our',
'out',
'over',
'part',
'place',
'point',
'pretty',
'probably',
'problem',
'put',
'quite',
'quot',
'r',
're',
'really',
'results',
'right',
's',
'same',
'saw',
'see',
'set',
'several',
'she',
'sherree',
'should',
'since',
'size',
'small',
'so',
'some',
'something',
'special',
'still',
'stuff',
'such',
'sure',
'system',
't',
'take',
'than',
'that',
'the',
'their',
'them',
'then',
'there',
'these',
'they',
'thing',
'things',
'think',
'this',
'those',
'though',
'through',
'time',
'to',
'today',
'together',
'too',
'took',
'two',
'up',
'us',
'use',
'used',
'using',
've',
'very',
'want',
'was',
'way',
'we',
'well',
'went',
'were',
'what',
'when',
'where',
'which',
'while',
'white',
'who',
'will',
'with',
'would',
'you',
'your',
)
[line 35] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- analyze  [line 267] -
-
- -
-
-
  - void analyze( - -$text  -) -
-

- - - Parameters:
- - - - -
-    - $text:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Search_Analyzer_Interface::analyze()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Exception.html deleted file mode 100644 index 8d51de383..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Exception.html +++ /dev/null @@ -1,459 +0,0 @@ - - -
-

Class: Doctrine_Search_Exception

-Source Location: /Doctrine/Search/Exception.php

- -

Class Doctrine_Search_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Search_Exception -

- -

- Located in /Doctrine/Search/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Search_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Search_Analyzer_Exception - Doctrine_Search_Analyzer_Exception -
Doctrine_Search_Indexer_Exception - Doctrine_Search_Indexer -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer.html deleted file mode 100644 index 719e278eb..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer.html +++ /dev/null @@ -1,419 +0,0 @@ - - -
-

Class: Doctrine_Search_Indexer

-Source Location: /Doctrine/Search/Indexer.php

- -

Class Doctrine_Search_Indexer

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Search_Indexer -

- -

- Located in /Doctrine/Search/Indexer.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  indexDirectory()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- indexDirectory  [line 35] -
-
- -
-
-
  - void indexDirectory( - -$dir  -) -
-

- - - Parameters:
- - - - -
-    - $dir:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Dir.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Dir.html deleted file mode 100644 index 7da2344fe..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Dir.html +++ /dev/null @@ -1,419 +0,0 @@ - - -
-

Class: Doctrine_Search_Indexer_Dir

-Source Location: /Doctrine/Search/Indexer/Dir.php

- -

Class Doctrine_Search_Indexer_Dir

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Search_Indexer_Dir -

- -

- Located in /Doctrine/Search/Indexer/Dir.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  add()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- add  [line 35] -
-
- -
-
-
  - void add( - -$dir  -) -
-

- - - Parameters:
- - - - -
-    - $dir:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Exception.html deleted file mode 100644 index 82e724949..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Indexer_Exception.html +++ /dev/null @@ -1,525 +0,0 @@ - - -
-

Class: Doctrine_Search_Indexer_Exception

-Source Location: /Doctrine/Search/Indexer/Exception.php

- -

Class Doctrine_Search_Indexer_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Search_Indexer -

- -

- Located in /Doctrine/Search/Indexer/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Search_Exception
-         |
-         --Doctrine_Search_Indexer_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- $code -
-
- -
-
- $file -
-
- -
-
- $line -
-
- -
-
- $message -
-
- -
-
- $string -
-
- -
-
- $trace -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-

Inherited From Exception (Internal Class)

-
-
-
- constructor __construct ( [$message = ], [$code = ] ) -
-
- -
-
- getCode ( ) -
-
- -
-
- getFile ( ) -
-
- -
-
- getLine ( ) -
-
- -
-
- getMessage ( ) -
-
- -
-
- getTrace ( ) -
-
- -
-
- getTraceAsString ( ) -
-
- -
-
- __clone ( ) -
-
- -
-
- __toString ( ) -
-
- -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Listener.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Listener.html deleted file mode 100644 index 8a3ef1c96..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Listener.html +++ /dev/null @@ -1,761 +0,0 @@ - - -
-

Class: Doctrine_Search_Listener

-Source Location: /Doctrine/Search/Listener.php

- -

Class Doctrine_Search_Listener

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Search_Listener -

- -

- Located in /Doctrine/Search/Listener.php [line 33] -

- - -
Doctrine_Record_Listener
-   |
-   --Doctrine_Search_Listener
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- - -
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_search  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Search_Listener  __construct()  
void  postInsert()  
void  postUpdate()  
void  preUpdate()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_search - [line 35] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 37] -
-
- -
-
-
  - Doctrine_Search_Listener __construct( -Doctrine_Search -$search  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Search   - $search:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- postInsert  [line 50] -
-
- -
-
-
  - void postInsert( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record_Listener::postInsert()
-
- -
-
[ Top ]
-
- -
- -
- postUpdate  [line 46] -
-
- -
-
-
  - void postUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record_Listener::postUpdate()
-
- -
-
[ Top ]
-
- -
- -
- preUpdate  [line 42] -
-
- -
-
-
  - void preUpdate( -Doctrine_Event -$event  -) -
-

- - - Parameters:
- - - - -
- Doctrine_Event   - $event:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Record_Listener::preUpdate()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Parser.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Parser.html deleted file mode 100644 index b386e26a5..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Parser.html +++ /dev/null @@ -1,419 +0,0 @@ - - -
-

Class: Doctrine_Search_Parser

-Source Location: /Doctrine/Search/Parser.php

- -

Class Doctrine_Search_Parser

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Search_Parser_Standard -

- -

- Located in /Doctrine/Search/Parser.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  parse()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- parse  [line 35] -
-
- -
-
-
  - void parse( - -$file  -) -
-

- - - Parameters:
- - - - -
-    - $file:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Query.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Query.html deleted file mode 100644 index 0352de163..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Query.html +++ /dev/null @@ -1,1019 +0,0 @@ - - -
-

Class: Doctrine_Search_Query

-Source Location: /Doctrine/Search/Query.php

- -

Class Doctrine_Search_Query

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Search_Query -

- -

- Located in /Doctrine/Search/Query.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1939 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
mixed  $_condition  
mixed  $_params  
Doctrine_Query  $_query  
mixed  $_sql  
Doctrine_Table  $_table  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Search_Query  __construct()  
void  execute()  
void  getParams()  
Doctrine_Query  getQuery()  getQuery
void  getSql()  
void  isExpression()  
void  parseClause()  
void  parseTerm()  
void  parseWord()  
void  search()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_condition - [line 49] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_params - = array() [line 46] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Query   - $_query - [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_sql - = '' [line 44] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Table   - $_table - = array() [line 42] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 53] -
-
- -
-
-
  - Doctrine_Search_Query __construct( - -$table, octrine_Table -$_table  -) -
-

- - - Parameters:
- - - - - - - -
- octrine_Table   - $_table:  - the index table
-    - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- execute  [line 231] -
-
- -
-
-
  - void execute( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getParams  [line 223] -
-
- -
-
-
  - void getParams( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuery  [line 71] -
-
- -
-
-
  - Doctrine_Query getQuery( -) -
-

- -

getQuery -

- -
- API Tags:
- - - - - - - -
Return:  returns the query object associated with this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSql  [line 227] -
-
- -
-
-
  - void getSql( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isExpression  [line 173] -
-
- -
-
-
  - void isExpression( - -$term  -) -
-

- - - Parameters:
- - - - -
-    - $term:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseClause  [line 103] -
-
- -
-
-
  - void parseClause( - -$originalClause, [ -$recursive = false]  -) -
-

- - - Parameters:
- - - - - - - -
-    - $originalClause:  -
-    - $recursive:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseTerm  [line 184] -
-
- -
-
-
  - void parseTerm( - -$term  -) -
-

- - - Parameters:
- - - - -
-    - $term:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- parseWord  [line 205] -
-
- -
-
-
  - void parseWord( - -$word  -) -
-

- - - Parameters:
- - - - -
-    - $word:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- search  [line 76] -
-
- -
-
-
  - void search( - -$text  -) -
-

- - - Parameters:
- - - - -
-    - $text:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Record.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Record.html deleted file mode 100644 index a660e680e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Record.html +++ /dev/null @@ -1,757 +0,0 @@ - - -
-

Class: Doctrine_Search_Record

-Source Location: /Doctrine/Search/Record.php

- -

Class Doctrine_Search_Record

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Search_Record -

- -

- Located in /Doctrine/Search/Record.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Template
-            |
-            --Doctrine_Search_Record
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Template

-
-
-
- Doctrine_Template::getTable() -
-
- getTable returns the associated table object -
-
- Doctrine_Template::setTable() -
-
- setTable -
-
- Doctrine_Template::setTableDefinition() -
-
- -
-
- Doctrine_Template::setUp() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  setTableDefinition()  
void  setUp()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- setTableDefinition  [line 35] -
-
- -
-
-
  - void setTableDefinition( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Template::setTableDefinition()
-
- -
-
[ Top ]
-
- -
- -
- setUp  [line 43] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Template::setUp()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Scorer.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Scorer.html deleted file mode 100644 index 0733c29dc..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Scorer.html +++ /dev/null @@ -1,603 +0,0 @@ - - -
-

Class: Doctrine_Search_Scorer

-Source Location: /Doctrine/Search/Scorer.php

- -

Class Doctrine_Search_Scorer

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Search_Scorer -

- -

- Located in /Doctrine/Search/Scorer.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $_components  
mixed  $_resultSet  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Search_Scorer  __construct()  
void  addComponent()  
void  process()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_components - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_resultSet - [line 36] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 40] -
-
- -
-
-
  - Doctrine_Search_Scorer __construct( - -$resultSet  -) -
-

- - - Parameters:
- - - - -
-    - $resultSet:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addComponent  [line 45] -
-
- -
-
-
  - void addComponent( - -$component  -) -
-

- - - Parameters:
- - - - -
-    - $component:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- process  [line 50] -
-
- -
-
-
  - void process( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Search_Template.html b/api_documentation/trunk/Doctrine/Doctrine_Search_Template.html deleted file mode 100644 index 3a2378e0f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Search_Template.html +++ /dev/null @@ -1,816 +0,0 @@ - - -
-

Class: Doctrine_Search_Template

-Source Location: /Doctrine/Search/Template.php

- -

Class Doctrine_Search_Template

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Search_Template -

- -

- Located in /Doctrine/Search/Template.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Template
-            |
-            --Doctrine_Search_Template
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Template

-
-
-
- Doctrine_Template::getTable() -
-
- getTable returns the associated table object -
-
- Doctrine_Template::setTable() -
-
- setTable -
-
- Doctrine_Template::setTableDefinition() -
-
- -
-
- Doctrine_Template::setUp() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_search  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Search_Template  __construct()  
void  setUp()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_search - [line 35] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 37] -
-
- -
-
-
  - Doctrine_Search_Template __construct( - -$options  -) -
-

- - - Parameters:
- - - - -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setUp  [line 41] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Template::setUp()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence.html deleted file mode 100644 index 6b4f5fd2a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence.html +++ /dev/null @@ -1,779 +0,0 @@ - - -
-

Class: Doctrine_Sequence

-Source Location: /Doctrine/Sequence.php

- -

Class Doctrine_Sequence

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence The base class for sequence handling drivers. -

- -

- Located in /Doctrine/Sequence.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Sequence_Db2 - Doctrine_Sequence_Db2 -
Doctrine_Sequence_Firebird - Doctrine_Sequence_Firebird -
Doctrine_Sequence_Informix - Doctrine_Sequence_Informix -
Doctrine_Sequence_Mssql - Doctrine_Sequence_Mssql -
Doctrine_Sequence_Mysql - Doctrine_Sequence_Mysql -
Doctrine_Sequence_Oracle - Doctrine_Sequence_Oracle -
Doctrine_Sequence_Pgsql - Doctrine_Sequence_Pgsql -
Doctrine_Sequence_Sqlite - Doctrine_Sequence_Sqlite -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
integer  currId()  Returns the current id of a sequence
void  lastInsertId()  Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
integer  nextId()  Returns the next free id of a sequence
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- currId  [line 66] -
-
- -
-
-
  - integer currId( -string -$seqName  -) -
-

- -

Returns the current id of a sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  current id in the given sequence
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 55] -
-
- -
-
-
  - void lastInsertId( -[string -$table = null], [string -$field = null]  -) -
-

- -

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- nextId  [line 44] -
-
- -
-
-
  - integer nextId( -string -$seqName, [bool -$ondemand = true]  -) -
-

- -

Returns the next free id of a sequence -

- - Parameters:
- - - - - - - -
- string   - $seqName:  - name of the sequence
- bool   - $ondemand:  - when true missing sequences are automatic created
- -
- API Tags:
- - - - - - - -
Return:  next id in the given sequence
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Db2.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Db2.html deleted file mode 100644 index 63dd99a48..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Db2.html +++ /dev/null @@ -1,670 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Db2

-Source Location: /Doctrine/Sequence/Db2.php

- -

Class Doctrine_Sequence_Db2

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence_Db2 -

- -

- Located in /Doctrine/Sequence/Db2.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Db2
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1722 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
integer  lastInsertId()  Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
integer  lastSequenceId()  Return the most recent value from the specified sequence in the database.
integer  nextSequenceId()  Generate a new value from the specified sequence in the database, and return it.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- lastInsertId  [line 101] -
-
- -
-
-
  - integer lastInsertId( -[string -$tableName = null], [string -$primaryKey = null]  -) -
-

- -

Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column. -

-

As a convention, on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence from the arguments and returns the last id generated by that sequence. On RDBMS brands that support IDENTITY/AUTOINCREMENT columns, this method returns the last value generated for such a column, and the table name argument is disregarded.

The IDENTITY_VAL_LOCAL() function gives the last generated identity value in the current process, even if it was for a GENERATED column.

- Parameters:
- - - - - - - -
- string   - $tableName:  - OPTIONAL
- string   - $primaryKey:  - OPTIONAL
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Db2_Exception
- -
-
Redefinition of:
-
-
Doctrine_Sequence::lastInsertId()
-
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
- -
-
[ Top ]
-
- -
- -
- lastSequenceId  [line 44] -
-
- -
-
-
  - integer lastSequenceId( -string -$sequenceName  -) -
-

- -

Return the most recent value from the specified sequence in the database. -

-

This is supported only on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2). Other RDBMS brands return null.

- Parameters:
- - - - -
- string   - $sequenceName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Db2_Exception
- - -
-
[ Top ]
-
- -
- -
- nextSequenceId  [line 68] -
-
- -
-
-
  - integer nextSequenceId( -string -$sequenceName  -) -
-

- -

Generate a new value from the specified sequence in the database, and return it. -

-

This is supported only on RDBMS brands that support sequences (e.g. Oracle, PostgreSQL, DB2). Other RDBMS brands return null.

- Parameters:
- - - - -
- string   - $sequenceName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Adapter_Db2_Exception
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Exception.html deleted file mode 100644 index dc1b67078..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Exception

-Source Location: /Doctrine/Sequence/Exception.php

- -

Class Doctrine_Sequence_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Sequence_Exception -

- -

- Located in /Doctrine/Sequence/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Sequence_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Firebird.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Firebird.html deleted file mode 100644 index 336d40b90..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Firebird.html +++ /dev/null @@ -1,671 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Firebird

-Source Location: /Doctrine/Sequence/Firebird.php

- -

Class Doctrine_Sequence_Firebird

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence_Firebird -

- -

- Located in /Doctrine/Sequence/Firebird.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Firebird
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1619 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
integer  currId()  Returns the current id of a sequence
void  lastInsertId()  Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
integer  nextID()  Returns the next free id of a sequence
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- currId  [line 89] -
-
- -
-
-
  - integer currId( -string -$seqName  -) -
-

- -

Returns the current id of a sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  current id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::currId()
-
Returns the current id of a sequence
-
- -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 78] -
-
- -
-
-
  - void lastInsertId( -[string -$table = null], [string -$field = null]  -) -
-

- -

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::lastInsertId()
-
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
- -
-
[ Top ]
-
- -
- -
- nextID  [line 43] -
-
- -
-
-
  - integer nextID( -string -$seqName, [bool -$onDemand = true]  -) -
-

- -

Returns the next free id of a sequence -

- - Parameters:
- - - - - - - -
- string   - $seqName:  - name of the sequence
- bool   - $onDemand:  - when true missing sequences are automatic created
- -
- API Tags:
- - - - - - - -
Return:  next id in the given sequence
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Informix.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Informix.html deleted file mode 100644 index 280eb8592..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Informix.html +++ /dev/null @@ -1,464 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Informix

-Source Location: /Doctrine/Sequence/Informix.php

- -

Class Doctrine_Sequence_Informix

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Sequence_Informix -

- -

- Located in /Doctrine/Sequence/Informix.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Informix
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Mssql.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Mssql.html deleted file mode 100644 index 8b73ed831..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Mssql.html +++ /dev/null @@ -1,731 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Mssql

-Source Location: /Doctrine/Sequence/Mssql.php

- -

Class Doctrine_Sequence_Mssql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence_Mssql -

- -

- Located in /Doctrine/Sequence/Mssql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Mssql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1934 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
bool  checkSequence()  Checks if there's a sequence that exists.
integer  currId()  Returns the current id of a sequence
void  lastInsertId()  Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
integer  nextId()  Returns the next free id of a sequence
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- checkSequence  [line 107] -
-
- -
-
-
  - bool checkSequence( -string -$seqName  -) -
-

- -

Checks if there's a sequence that exists. -

- - Parameters:
- - - - -
- string   - $seqName:  - The sequence name to verify.
- -
- API Tags:
- - - - - - - -
Return:  The value if the table exists or not
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- currId  [line 149] -
-
- -
-
-
  - integer currId( -string -$seqName  -) -
-

- -

Returns the current id of a sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  current id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::currId()
-
Returns the current id of a sequence
-
- -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 127] -
-
- -
-
-
  - void lastInsertId( -[string -$table = null], [string -$field = null]  -) -
-

- -

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::lastInsertId()
-
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
- -
-
[ Top ]
-
- -
- -
- nextId  [line 43] -
-
- -
-
-
  - integer nextId( -string -$seqName, [bool -$onDemand = true]  -) -
-

- -

Returns the next free id of a sequence -

- - Parameters:
- - - - - - - -
- string   - $seqName:  - name of the sequence
- bool   - $onDemand:  - when true missing sequences are automatic created
- -
- API Tags:
- - - - - - - -
Return:  next id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::nextId()
-
Returns the next free id of a sequence
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Mysql.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Mysql.html deleted file mode 100644 index 38661e49e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Mysql.html +++ /dev/null @@ -1,677 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Mysql

-Source Location: /Doctrine/Sequence/Mysql.php

- -

Class Doctrine_Sequence_Mysql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence_Mysql -

- -

- Located in /Doctrine/Sequence/Mysql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Mysql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1721 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
integer  currId()  Returns the current id of a sequence
integer|boolean  lastInsertId()  Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
integer  nextId()  Returns the next free id of a sequence
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- currId  [line 102] -
-
- -
-
-
  - integer currId( -string -$seqName  -) -
-

- -

Returns the current id of a sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  current id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::currId()
-
Returns the current id of a sequence
-
- -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 91] -
-
- -
-
-
  - integer|boolean lastInsertId( -[string -$table = null], [string -$field = null]  -) -
-

- -

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::lastInsertId()
-
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
- -
-
[ Top ]
-
- -
- -
- nextId  [line 43] -
-
- -
-
-
  - integer nextId( -string -$seqName, [bool -$onDemand = true]  -) -
-

- -

Returns the next free id of a sequence -

- - Parameters:
- - - - - - - -
- string   - $seqName:  - name of the sequence
- bool   - $onDemand:  - when true missing sequences are automatic created
- -
- API Tags:
- - - - - - - -
Return:  next id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::nextId()
-
Returns the next free id of a sequence
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Oracle.html deleted file mode 100644 index 1801ca1ca..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Oracle.html +++ /dev/null @@ -1,659 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Oracle

-Source Location: /Doctrine/Sequence/Oracle.php

- -

Class Doctrine_Sequence_Oracle

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence_Oracle -

- -

- Located in /Doctrine/Sequence/Oracle.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1619 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
integer  currID()  Returns the current id of a sequence
void  lastInsertID()  Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
integer  nextID()  Returns the next free id of a sequence
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- currID  [line 85] -
-
- -
-
-
  - integer currID( -string -$seqName  -) -
-

- -

Returns the current id of a sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  current id in the given sequence
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- lastInsertID  [line 71] -
-
- -
-
-
  - void lastInsertID( -[string -$table = null], [string -$field = null]  -) -
-

- -

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- nextID  [line 43] -
-
- -
-
-
  - integer nextID( -string -$seqName, [bool -$onDemand = true]  -) -
-

- -

Returns the next free id of a sequence -

- - Parameters:
- - - - - - - -
- string   - $seqName:  - name of the sequence
- bool   - $onDemand:  - onDemand when true missing sequences are automatic created
- -
- API Tags:
- - - - - - - -
Return:  next id in the given sequence
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Pgsql.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Pgsql.html deleted file mode 100644 index be897b3e8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Pgsql.html +++ /dev/null @@ -1,680 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Pgsql

-Source Location: /Doctrine/Sequence/Pgsql.php

- -

Class Doctrine_Sequence_Pgsql

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence_Pgsql -

- -

- Located in /Doctrine/Sequence/Pgsql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Pgsql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1632 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
integer  currId()  Returns the current id of a sequence
integer  lastInsertId()  lastInsertId
integer  nextId()  Returns the next free id of a sequence
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- currId  [line 87] -
-
- -
-
-
  - integer currId( -string -$seqName  -) -
-

- -

Returns the current id of a sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  current id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::currId()
-
Returns the current id of a sequence
-
- -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 73] -
-
- -
-
-
  - integer lastInsertId( -[string -$table = null], [string -$field = null]  -) -
-

- -

lastInsertId -

-

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)

- Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - - - - -
Return:  the autoincremented id
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::lastInsertId()
-
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
- -
-
[ Top ]
-
- -
- -
- nextId  [line 43] -
-
- -
-
-
  - integer nextId( -string -$seqName, [bool -$onDemand = true]  -) -
-

- -

Returns the next free id of a sequence -

- - Parameters:
- - - - - - - -
- string   - $seqName:  - name of the sequence
- bool   - $onDemand:  - onDemand when true missing sequences are automatic created
- -
- API Tags:
- - - - - - - -
Return:  next id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::nextId()
-
Returns the next free id of a sequence
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Sqlite.html b/api_documentation/trunk/Doctrine/Doctrine_Sequence_Sqlite.html deleted file mode 100644 index e481080cc..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Sequence_Sqlite.html +++ /dev/null @@ -1,677 +0,0 @@ - - -
-

Class: Doctrine_Sequence_Sqlite

-Source Location: /Doctrine/Sequence/Sqlite.php

- -

Class Doctrine_Sequence_Sqlite

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Sequence_Sqlite -

- -

- Located in /Doctrine/Sequence/Sqlite.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Sequence
-      |
-      --Doctrine_Sequence_Sqlite
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1722 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Sequence

-
-
-
- Doctrine_Sequence::currId() -
-
- Returns the current id of a sequence -
-
- Doctrine_Sequence::lastInsertId() -
-
- Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -
-
- Doctrine_Sequence::nextId() -
-
- Returns the next free id of a sequence -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
integer  currId()  Returns the current id of a sequence
integer|boolean  lastInsertId()  Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
integer  nextId()  Returns the next free id of a sequence
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- currId  [line 103] -
-
- -
-
-
  - integer currId( -string -$seqName  -) -
-

- -

Returns the current id of a sequence -

- - Parameters:
- - - - -
- string   - $seqName:  - name of the sequence
- -
- API Tags:
- - - - - - - -
Return:  current id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::currId()
-
Returns the current id of a sequence
-
- -
-
[ Top ]
-
- -
- -
- lastInsertId  [line 92] -
-
- -
-
-
  - integer|boolean lastInsertId( -[string -$table = null], [string -$field = null]  -) -
-

- -

Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field) -

- - Parameters:
- - - - - - - -
- string   - $table:  - name of the table into which a new row was inserted
- string   - $field:  - name of the field into which a new row was inserted
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::lastInsertId()
-
Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
- -
-
[ Top ]
-
- -
- -
- nextId  [line 43] -
-
- -
-
-
  - integer nextId( -string -$seqName, [bool -$onDemand = true]  -) -
-

- -

Returns the next free id of a sequence -

- - Parameters:
- - - - - - - -
- string   - $seqName:  - name of the sequence
- bool   - $onDemand:  - when true missing sequences are automatic created
- -
- API Tags:
- - - - - - - -
Return:  next id in the given sequence
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Sequence::nextId()
-
Returns the next free id of a sequence
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Table.html b/api_documentation/trunk/Doctrine/Doctrine_Table.html deleted file mode 100644 index 905504178..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Table.html +++ /dev/null @@ -1,4168 +0,0 @@ - - -
-

Class: Doctrine_Table

-Source Location: /Doctrine/Table.php

- -

Class Doctrine_Table

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
-

-

Doctrine_Table represents a database table each Doctrine_Table holds the information of foreignKeys and associations -

- -

- Located in /Doctrine/Table.php [line 34] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Configurable
-      |
-      --Doctrine_Table
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2279 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::$attributes -
-
- -
-
- Doctrine_Configurable::$parent -
-
- -
-
- Doctrine_Configurable::$_impl -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Configurable

-
-
-
- Doctrine_Configurable::addListener() -
-
- addListener -
-
- Doctrine_Configurable::addRecordListener() -
-
- addRecordListener -
-
- Doctrine_Configurable::getAttribute() -
-
- returns the value of an attribute -
-
- Doctrine_Configurable::getAttributes() -
-
- getAttributes returns all attributes as an array -
-
- Doctrine_Configurable::getCacheDriver() -
-
- getCacheDriver -
-
- Doctrine_Configurable::getImpl() -
-
- getImpl returns the implementation for given class -
-
- Doctrine_Configurable::getListener() -
-
- getListener -
-
- Doctrine_Configurable::getParent() -
-
- getParent returns the parent of this component -
-
- Doctrine_Configurable::getRecordListener() -
-
- getListener -
-
- Doctrine_Configurable::setAttribute() -
-
- setAttribute sets a given attribute -
-
- Doctrine_Configurable::setEventListener() -
-
- -
-
- Doctrine_Configurable::setImpl() -
-
- setImpl binds given class to given template name -
-
- Doctrine_Configurable::setListener() -
-
- setListener -
-
- Doctrine_Configurable::setParent() -
-
- sets a parent for this configurable component the parent must be configurable component itself -
-
- Doctrine_Configurable::setRecordListener() -
-
- setListener -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  $columnAliases  
integer  $columnCount  
array  $columns  
Doctrine_Connection  $conn  
array  $data  
boolean  $hasDefaultValues  
mixed  $identifier  
integer  $identifierType  
array  $identityMap  
array  $options  
array  $primaryKeys  
Doctrine_Table_Repository  $repository  
Doctrine_Tree  $tree  
Doctrine_Relation_Parser  $_parser  
array  $_templates  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  __construct()  the constructor
void  addCheckConstraint()  addCheckConstraint
void  addForeignKey()  addForeignKey
void  addIndex()  addIndex
boolean  addRecord()  addRecord adds a record to identity map
void  addTemplate()  
string  applyInheritance()  applyInheritance
void  bind()  
void  clear()  clear clears the first level cache (identityMap)
integer  count()  count
Doctrine_Record  create()  create creates a new record
Doctrine_Query  createQuery()  createQuery creates a new Doctrine_Query object and adds the component name of this table as the query 'from' part
mixed  enumIndex()  enumIndex
mixed  enumValue()  enumValue
boolean  export()  export exports this table to database based on column and option definitions
void  exportConstraints()  exportConstraints exports the constraints of this table into database based on option definitions
Doctrine_Record|false  find()  finds a record by its identifier
Doctrine_Collection  findAll()  findAll returns a collection of records
void  findByDql()  
Doctrine_Collection  findBySql()  findByDql finds records with given DQL where clause returns a collection of records
string  getClassnameToReturn()  Get the classname to return. Most often this is just the options['name']
integer  getColumnCount()  getColumnCount
string  getColumnName()  getColumnName
array  getColumnNames()  returns an array containing all the column names
array  getColumns()  returns all columns and their definitions
void  getComponentName()  
Doctrine_Connection  getConnection()  
array  getData()  returns internal data, used by Doctrine_Record instances when retrieving data from database
mixed  getDefaultValueOf()  getDefaultValueOf returns the default value(if any) for given column
mixed  getDefinitionOf()  getDefinitionOf
array  getEnumValues()  
array  getExportableFormat()  getExportableFormat returns exportable presentation of this object
mixed  getIdentifier()  
integer  getIdentifierType()  
array|boolean  getIndex()  getIndex
mixed  getOption()  getOption returns the value of given option
array  getOptions()  getOptions returns all options of this table and the associated values
array  getPrimaryKeys()  returns all primary keys
void  getProxy()  
Doctrine_Query  getQueryObject()  
Doctrine_Record  getRecord()  getRecord first checks if record exists in identityMap, if not returns a new record
void  getRelation()  getRelation
Doctrine_Relation_Parser  getRelationParser()  getRelationParser return the relation parser associated with this table
array  getRelations()  getRelations returns an array containing all relation objects
Doctrine_Table_Repository  getRepository()  getRepository
void  getTableName()  
void  getTemplate()  
array  getTemplates()  getTemplates returns all templates attached to this table
mixed  getTree()  getter for associated tree
mixed  getTypeOf()  getTypeOf
boolean  hasColumn()  hasColumn
boolean  hasDefaultValues()  hasDefaultValues returns true if this table has default values, otherwise false
boolean  hasPrimaryKey()  
boolean  hasRelation()  hasRelation
mixed  isTree()  determine if table acts as tree
mixed  prepareValue()  prepareValue this method performs special data preparation depending on the type of the given column
void  setColumn()  setColumn
void  setData()  setData doctrine uses this function internally users are strongly discouraged to use this function
Doctrine_Table  setOption()  setOption sets an option and returns this object in order to allow flexible method chaining
void  setPrimaryKey()  
void  setTableName()  
void  __get()  __get an alias for getOption
void  __isset()  __isset
string  __toString()  returns a string representation of this object
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $columnAliases - = array() [line 85] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $columnCount - [line 90] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $columns - = array() [line 80] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Connection   - $conn - [line 56] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $data - = array() [line 39] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - boolean   - $hasDefaultValues - [line 94] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $identifier - [line 47] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $identifierType - [line 52] - -
- - API Tags:
- - - - - - - -
See:  Doctrine_Identifier constants
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $identityMap - = array() [line 60] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $options - = array('name' => null,
'tableName' => null,
'sequenceName' => null,
'inheritanceMap' => array(),'enumMap'=>array(),'engine'=>null,'charset'=>null,'collation'=>null,'treeImpl'=>null,'treeOptions'=>null,'indexes'=>array(),'parents'=>array(),'versioning'=>null,)
[line 136] -
-
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $primaryKeys - = array() [line 43] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Table_Repository   - $repository - [line 64] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Tree   - $tree - [line 153] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Relation_Parser   - $_parser - [line 157] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_templates - [line 161] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 170] -
-
- -
-
-
  - void __construct( - -$name, Doctrine_Connection -$conn  -) -
-

- -

the constructor -

- - Parameters:
- - - - - - - -
-    - $name:  -
- Doctrine_Connection   - $conn:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Table_Exception if there is already an instance of this table
Throws:  Doctrine_Connection_Exception if there are no opened connections
- - -
-
[ Top ]
-
- -
- -
- addCheckConstraint  [line 488] -
-
- -
-
-
  - void addCheckConstraint( - -$definition, -$name  -) -
-

- -

addCheckConstraint -

-

adds a check constraint to this table

- Parameters:
- - - - - - - -
-    - $definition:  -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addForeignKey  [line 477] -
-
- -
-
-
  - void addForeignKey( - -$definition  -) -
-

- -

addForeignKey -

-

adds a foreignKey to this table

- Parameters:
- - - - -
- array   - $definition:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addIndex  [line 505] -
-
- -
-
-
  - void addIndex( - -$index, -$definition  -) -
-

- -

addIndex -

-

adds an index to this table

- Parameters:
- - - - - - - -
-    - $index:  -
- array   - $definition:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addRecord  [line 944] -
-
- -
-
-
  - boolean addRecord( -Doctrine_Record -$record  -) -
-

- -

addRecord adds a record to identity map -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  - record to be added
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addTemplate  [line 1315] -
-
- -
-
-
  - void addTemplate( - -$template, Doctrine_Template -$impl  -) -
-

- - - Parameters:
- - - - - - - -
-    - $template:  -
- Doctrine_Template   - $impl:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- applyInheritance  [line 885] -
-
- -
-
-
  - string applyInheritance( -$where -$where  -) -
-

- -

applyInheritance -

- - Parameters:
- - - - -
- $where   - $where:  - query where part to be modified
- -
- API Tags:
- - - - - - - -
Return:  query where part with column aggregation inheritance added
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- bind  [line 522] -
-
- -
-
-
  - void bind( - -$args, -$type  -) -
-

- - - Parameters:
- - - - - - - -
-    - $args:  -
-    - $type:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- clear  [line 933] -
-
- -
-
-
  - void clear( -) -
-

- -

clear clears the first level cache (identityMap) -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 1075] -
-
- -
-
-
  - integer count( -) -
-

- -

count -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- create  [line 846] -
-
- -
-
-
  - Doctrine_Record create( -[ -$array = array()]  -) -
-

- -

create creates a new record -

- - Parameters:
- - - - -
- $array   - $array:  - an array where keys are field names and values representing field values
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- createQuery  [line 604] -
-
- -
-
-
  - Doctrine_Query createQuery( -) -
-

- -

createQuery creates a new Doctrine_Query object and adds the component name of this table as the query 'from' part -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- enumIndex  [line 1122] -
-
- -
-
-
  - mixed enumIndex( -string -$field, mixed -$value  -) -
-

- -

enumIndex -

- - Parameters:
- - - - - - - -
- string   - $field:  -
- mixed   - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- enumValue  [line 1108] -
-
- -
-
-
  - mixed enumValue( -string -$field, integer -$index  -) -
-

- -

enumValue -

- - Parameters:
- - - - - - - -
- string   - $field:  -
- integer   - $index:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- export  [line 316] -
-
- -
-
-
  - boolean export( -) -
-

- -

export exports this table to database based on column and option definitions -

- -
- API Tags:
- - - - - - - -
Return:  whether or not the export operation was successful false if table already existed in the database
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if some error other than Doctrine::ERR_ALREADY_EXISTS occurred during the create table operation
- - -
-
[ Top ]
-
- -
- -
- exportConstraints  [line 413] -
-
- -
-
-
  - void exportConstraints( -) -
-

- -

exportConstraints exports the constraints of this table into database based on option definitions -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Connection_Exception if something went wrong on db level
- - -
-
[ Top ]
-
- -
- -
- find  [line 858] -
-
- -
-
-
  - Doctrine_Record|false find( -$id -$id  -) -
-

- -

finds a record by its identifier -

- - Parameters:
- - - - -
- $id   - $id:  - database row id
- -
- API Tags:
- - - - - - - -
Return:  a record for given database identifier
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- findAll  [line 903] -
-
- -
-
-
  - Doctrine_Collection findAll( -) -
-

- -

findAll returns a collection of records -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- findByDql  [line 924] -
-
- -
-
-
  - void findByDql( - -$dql, [ -$params = array()]  -) -
-

- - - Parameters:
- - - - - - - -
-    - $dql:  -
- array   - $params:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- findBySql  [line 918] -
-
- -
-
-
  - Doctrine_Collection findBySql( -string -$dql, [ -$params = array()]  -) -
-

- -

findByDql finds records with given DQL where clause returns a collection of records -

- - Parameters:
- - - - - - - -
- string   - $dql:  - DQL after WHERE clause
- array   - $params:  - query parameters
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getClassnameToReturn  [line 1027] -
-
- -
-
-
  - string getClassnameToReturn( -) -
-

- -

Get the classname to return. Most often this is just the options['name'] -

-

Check the subclasses option and the inheritanceMap for each subclass to see if all the maps in a subclass is met. If this is the case return that subclass name. If no subclasses match or if there are no subclasses defined return the name of the class for this tables record.

-
- API Tags:
- - - - - - - -
Return:  The name of the class to create
Access:  public
-
- -Information Tags:
- - - - -
Todo:  this function could use reflection to check the first time it runs if the subclassing option is not set.
- - -
-
[ Top ]
-
- -
- -
- getColumnCount  [line 1133] -
-
- -
-
-
  - integer getColumnCount( -) -
-

- -

getColumnCount -

- -
- API Tags:
- - - - - - - -
Return:  the number of columns in this table
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getColumnName  [line 668] -
-
- -
-
-
  - string getColumnName( -string -$alias  -) -
-

- -

getColumnName -

-

returns a column name for column alias if the actual name for the alias cannot be found this method returns the given alias

- Parameters:
- - - - -
- string   - $alias:  - column alias
- -
- API Tags:
- - - - - - - -
Return:  column name
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getColumnNames  [line 1152] -
-
- -
-
-
  - array getColumnNames( -) -
-

- -

returns an array containing all the column names -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getColumns  [line 1143] -
-
- -
-
-
  - array getColumns( -) -
-

- -

returns all columns and their definitions -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getComponentName  [line 1285] -
-
- -
-
-
  - void getComponentName( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnection  [line 835] -
-
- -
-
-
  - Doctrine_Connection getConnection( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getData  [line 1198] -
-
- -
-
-
  - array getData( -) -
-

- -

returns internal data, used by Doctrine_Record instances when retrieving data from database -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDefaultValueOf  [line 768] -
-
- -
-
-
  - mixed getDefaultValueOf( -string -$column  -) -
-

- -

getDefaultValueOf returns the default value(if any) for given column -

- - Parameters:
- - - - -
- string   - $column:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getDefinitionOf  [line 1161] -
-
- -
-
-
  - mixed getDefinitionOf( - -$column  -) -
-

- -

getDefinitionOf -

- - Parameters:
- - - - -
-    - $column:  -
- -
- API Tags:
- - - - - - - -
Return:  array on success, false on failure
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getEnumValues  [line 1093] -
-
- -
-
-
  - array getEnumValues( -string -$field  -) -
-

- - - Parameters:
- - - - -
- string   - $field:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getExportableFormat  [line 326] -
-
- -
-
-
  - array getExportableFormat( -[ -$parseForeignKeys = true]  -) -
-

- -

getExportableFormat returns exportable presentation of this object -

- - Parameters:
- - - - -
-    - $parseForeignKeys:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIdentifier  [line 783] -
-
- -
-
-
  - mixed getIdentifier( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIdentifierType  [line 790] -
-
- -
-
-
  - integer getIdentifierType( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIndex  [line 514] -
-
- -
-
-
  - array|boolean getIndex( - -$index  -) -
-

- -

getIndex -

- - Parameters:
- - - - -
-    - $index:  -
- -
- API Tags:
- - - - - - - -
Return:  array on success, FALSE on failure
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getOption  [line 651] -
-
- -
-
-
  - mixed getOption( -string -$name  -) -
-

- -

getOption returns the value of given option -

- - Parameters:
- - - - -
- string   - $name:  - the name of the option
- -
- API Tags:
- - - - - - - -
Return:  the value of given option
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getOptions  [line 466] -
-
- -
-
-
  - array getOptions( -) -
-

- -

getOptions returns all options of this table and the associated values -

- -
- API Tags:
- - - - - - - -
Return:  all options and their values
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getPrimaryKeys  [line 821] -
-
- -
-
-
  - array getPrimaryKeys( -) -
-

- -

returns all primary keys -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getProxy  [line 1053] -
-
- -
-
-
  - void getProxy( -[$id -$id = null]  -) -
-

- - - Parameters:
- - - - -
- $id   - $id:  - database row id
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Find_Exception
- - -
-
[ Top ]
-
- -
- -
- getQueryObject  [line 1083] -
-
- -
-
-
  - Doctrine_Query getQueryObject( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  a Doctrine_Query object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRecord  [line 963] -
-
- -
-
-
  - Doctrine_Record getRecord( -) -
-

- -

getRecord first checks if record exists in identityMap, if not returns a new record -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelation  [line 583] -
-
- -
-
-
  - void getRelation( -string -$alias, [ -$recursive = true]  -) -
-

- -

getRelation -

- - Parameters:
- - - - - - - -
- string   - $alias:  - relation alias
-    - $recursive:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelationParser  [line 434] -
-
- -
-
-
  - Doctrine_Relation_Parser getRelationParser( -) -
-

- -

getRelationParser return the relation parser associated with this table -

- -
- API Tags:
- - - - - - - -
Return:  relation parser object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRelations  [line 593] -
-
- -
-
-
  - array getRelations( -) -
-

- -

getRelations returns an array containing all relation objects -

- -
- API Tags:
- - - - - - - -
Return:  an array of Doctrine_Relation objects
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getRepository  [line 613] -
-
- -
-
-
  - Doctrine_Table_Repository getRepository( -) -
-

- -

getRepository -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTableName  [line 1289] -
-
- -
-
-
  - void getTableName( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTemplate  [line 1306] -
-
- -
-
-
  - void getTemplate( - -$template  -) -
-

- - - Parameters:
- - - - -
-    - $template:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTemplates  [line 303] -
-
- -
-
-
  - array getTemplates( -) -
-

- -

getTemplates returns all templates attached to this table -

- -
- API Tags:
- - - - - - - -
Return:  an array containing all templates
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTree  [line 1272] -
-
- -
-
-
  - mixed getTree( -) -
-

- -

getter for associated tree -

- -
- API Tags:
- - - - - - - -
Return:  if tree return instance of Doctrine_Tree, otherwise returns false
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTypeOf  [line 1173] -
-
- -
-
-
  - mixed getTypeOf( - -$column  -) -
-

- -

getTypeOf -

- - Parameters:
- - - - -
-    - $column:  -
- -
- API Tags:
- - - - - - - -
Return:  string on success, false on failure
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasColumn  [line 798] -
-
- -
-
-
  - boolean hasColumn( - -$name  -) -
-

- -

hasColumn -

- - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasDefaultValues  [line 757] -
-
- -
-
-
  - boolean hasDefaultValues( -) -
-

- -

hasDefaultValues returns true if this table has default values, otherwise false -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasPrimaryKey  [line 828] -
-
- -
-
-
  - boolean hasPrimaryKey( - -$key  -) -
-

- - - Parameters:
- - - - -
-    - $key:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- hasRelation  [line 573] -
-
- -
-
-
  - boolean hasRelation( -string -$alias  -) -
-

- -

hasRelation -

- - Parameters:
- - - - -
- string   - $alias:  - the relation to check if exists
- -
- API Tags:
- - - - - - - -
Return:  true if the relation exists otherwise false
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- isTree  [line 1302] -
-
- -
-
-
  - mixed isTree( -) -
-

- -

determine if table acts as tree -

- -
- API Tags:
- - - - - - - -
Return:  if tree return true, otherwise returns false
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- prepareValue  [line 1225] -
-
- -
-
-
  - mixed prepareValue( -string -$field, string -$value  -) -
-

- -

prepareValue this method performs special data preparation depending on the type of the given column -

-

  1. It unserializes array and object typed columns
  2. Uncompresses gzip typed columns
  3. Gets the appropriate enum values for enum typed columns
  4. Initializes special null object pointer for null values (for fast column existence checking purposes)
example: <code type='php'> $field = 'name'; $value = null; $table->prepareValue($field, $value); // Doctrine_Null </code>

- Parameters:
- - - - - - - -
- string   - $field:  - the name of the field
- string   - $value:  - field value
- -
- API Tags:
- - - - - - - -
Return:  prepared value
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Table_Exception if uncompression of gzip typed column fails *
Throws:  Doctrine_Table_Exception if unserialization of array/object typed column fails or
- - -
-
[ Top ]
-
- -
- -
- setColumn  [line 687] -
-
- -
-
-
  - void setColumn( -string -$name, string -$type, [integer -$length = null], [mixed -$options = array()]  -) -
-

- -

setColumn -

- - Parameters:
- - - - - - - - - - - - - -
- string   - $name:  -
- string   - $type:  -
- integer   - $length:  -
- mixed   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Table_Exception if trying use wrongly typed parameter
- - -
-
[ Top ]
-
- -
- -
- setData  [line 1188] -
-
- -
-
-
  - void setData( - -$data  -) -
-

- -

setData doctrine uses this function internally users are strongly discouraged to use this function -

- - Parameters:
- - - - -
- array   - $data:  - internal data
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setOption  [line 627] -
-
- -
-
-
  - Doctrine_Table setOption( -string -$name, mixed -$value  -) -
-

- -

setOption sets an option and returns this object in order to allow flexible method chaining -

- - Parameters:
- - - - - - - -
- string   - $name:  - the name of the option to set
- mixed   - $value:  - the value of the option
- -
- API Tags:
- - - - - - - - - - -
Return:  this object
See:  Doctrine_Table::$_options for available options
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setPrimaryKey  [line 806] -
-
- -
-
-
  - void setPrimaryKey( -mixed -$key  -) -
-

- - - Parameters:
- - - - -
- mixed   - $key:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTableName  [line 1293] -
-
- -
-
-
  - void setTableName( - -$tableName  -) -
-

- - - Parameters:
- - - - -
-    - $tableName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __get  [line 444] -
-
- -
-
-
  - void __get( -string -$option  -) -
-

- -

__get an alias for getOption -

- - Parameters:
- - - - -
- string   - $option:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __isset  [line 456] -
-
- -
-
-
  - void __isset( -string -$option  -) -
-

- -

__isset -

- - Parameters:
- - - - -
- string   - $option:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- __toString  [line 1324] -
-
- -
-
-
  - string __toString( -) -
-

- -

returns a string representation of this object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Table_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Table_Exception.html deleted file mode 100644 index d0b731d36..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Table_Exception.html +++ /dev/null @@ -1,496 +0,0 @@ - - -
-

Class: Doctrine_Table_Exception

-Source Location: /Doctrine/Table/Exception.php

- -

Class Doctrine_Table_Exception

- - -
-
Class Overview
- -
- - - - - - -
- -

thrown when user tries to initialize a new instance of Doctrine_Table, while there already exists an instance of that table -

- -

- Located in /Doctrine/Table/Exception.php [line 34] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Table_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
Doctrine_Table_Exception  __construct()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 36] -
-
- -
-
-
  - Doctrine_Table_Exception __construct( -[ -$message = "Couldn't initialize table. One instance of this - table already exists. Always use Doctrine_Session::getTable(\$name) - to get on instance of a Doctrine_Table."]  -) -
-

- - - Parameters:
- - - - -
-    - $message:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Table_Repository.html b/api_documentation/trunk/Doctrine/Doctrine_Table_Repository.html deleted file mode 100644 index 2ecc24e6f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Table_Repository.html +++ /dev/null @@ -1,944 +0,0 @@ - - -
-

Class: Doctrine_Table_Repository

-Source Location: /Doctrine/Table/Repository.php

- -

Class Doctrine_Table_Repository

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

-

Doctrine_Repository each record is added into Doctrine_Repository at the same time they are created, loaded from the database or retrieved from the cache -

- -

- Located in /Doctrine/Table/Repository.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
array  $registry  
object Doctrine_Table  $table  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Table_Repository  __construct()  constructor
boolean  add()  add
void  contains()  contains
integer  count()  count
boolean  evict()  
integer  evictAll()  
void  get()  get
ArrayIterator  getIterator()  getIterator
object Doctrine_Table  getTable()  getTable
void  loadAll()  loadAll
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $registry - = array() [line 45] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - object Doctrine_Table   - $table - [line 39] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 51] -
-
- -
-
-
  - Doctrine_Table_Repository __construct( -Doctrine_Table -$table  -) -
-

- -

constructor -

- - Parameters:
- - - - -
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- add  [line 70] -
-
- -
-
-
  - boolean add( -Doctrine_Record -$record  -) -
-

- -

add -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  - record to be added into registry
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- contains  [line 139] -
-
- -
-
-
  - void contains( -integer -$oid  -) -
-

- -

contains -

- - Parameters:
- - - - -
- integer   - $oid:  - object identifier
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 98] -
-
- -
-
-
  - integer count( -) -
-

- -

count -

-

Doctrine_Registry implements interface Countable

-
- API Tags:
- - - - - - - -
Return:  the number of records this registry has
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- evict  [line 106] -
-
- -
-
-
  - boolean evict( -integer -$oid  -) -
-

- - - Parameters:
- - - - -
- integer   - $oid:  - object identifier
- -
- API Tags:
- - - - - - - -
Return:  whether ot not the operation was successful
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- evictAll  [line 117] -
-
- -
-
-
  - integer evictAll( -) -
-

- - -
- API Tags:
- - - - - - - -
Return:  number of records evicted
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- get  [line 86] -
-
- -
-
-
  - void get( -integer -$oid  -) -
-

- -

get -

- - Parameters:
- - - - -
- integer   - $oid:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Table_Repository_Exception
- - -
-
[ Top ]
-
- -
- -
- getIterator  [line 131] -
-
- -
-
-
  - ArrayIterator getIterator( -) -
-

- -

getIterator -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- getTable  [line 60] -
-
- -
-
-
  - object Doctrine_Table getTable( -) -
-

- -

getTable -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- loadAll  [line 147] -
-
- -
-
-
  - void loadAll( -) -
-

- -

loadAll -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Table_Repository_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Table_Repository_Exception.html deleted file mode 100644 index 953dfe4a1..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Table_Repository_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Table_Repository_Exception

-Source Location: /Doctrine/Table/Repository/Exception.php

- -

Class Doctrine_Table_Repository_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Table_Repository_Exception -

- -

- Located in /Doctrine/Table/Repository/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Table_Repository_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Template.html b/api_documentation/trunk/Doctrine/Doctrine_Template.html deleted file mode 100644 index ab78d9d81..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Template.html +++ /dev/null @@ -1,903 +0,0 @@ - - -
-

Class: Doctrine_Template

-Source Location: /Doctrine/Template.php

- -

Class Doctrine_Template

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Template -

- -

- Located in /Doctrine/Template.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Template
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Search_Record - Doctrine_Search_Record -
Doctrine_Search_Template - Doctrine_Search_Template -
Doctrine_Template_NestedSet - Doctrine_Template_NestedSet -
Doctrine_Template_Searchable - Doctrine_Template_Searchable -
Doctrine_Template_Taggable - Doctrine_Template_Taggable -
Doctrine_Template_Versionable - Doctrine_Template_Versionable -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Table  getTable()  getTable returns the associated table object
void  setTable()  setTable
void  setTableDefinition()  
void  setUp()  
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- getTable  [line 51] -
-
- -
-
-
  - Doctrine_Table getTable( -) -
-

- -

getTable returns the associated table object -

- -
- API Tags:
- - - - - - - -
Return:  the associated table object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTable  [line 41] -
-
- -
-
-
  - void setTable( -Doctrine_Table -$table, Doctrine_Table -$_table  -) -
-

- -

setTable -

- - Parameters:
- - - - - - - -
- Doctrine_Table   - $_table:  - the table object this Template belongs to
- Doctrine_Table   - $table:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTableDefinition  [line 61] -
-
- -
-
-
  - void setTableDefinition( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- setUp  [line 56] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Template_NestedSet.html b/api_documentation/trunk/Doctrine/Doctrine_Template_NestedSet.html deleted file mode 100644 index 10bfad108..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Template_NestedSet.html +++ /dev/null @@ -1,816 +0,0 @@ - - -
-

Class: Doctrine_Template_NestedSet

-Source Location: /Doctrine/Template/NestedSet.php

- -

Class Doctrine_Template_NestedSet

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Template_NestedSet -

- -

- Located in /Doctrine/Template/NestedSet.php [line 32] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Template
-            |
-            --Doctrine_Template_NestedSet
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Template

-
-
-
- Doctrine_Template::getTable() -
-
- getTable returns the associated table object -
-
- Doctrine_Template::setTable() -
-
- setTable -
-
- Doctrine_Template::setTableDefinition() -
-
- -
-
- Doctrine_Template::setUp() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_options  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Template_NestedSet  __construct()  
void  setUp()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_options - [line 34] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 36] -
-
- -
-
-
  - Doctrine_Template_NestedSet __construct( - -$options  -) -
-

- - - Parameters:
- - - - -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setUp  [line 41] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Template::setUp()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Template_Searchable.html b/api_documentation/trunk/Doctrine/Doctrine_Template_Searchable.html deleted file mode 100644 index ed8ec24cf..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Template_Searchable.html +++ /dev/null @@ -1,816 +0,0 @@ - - -
-

Class: Doctrine_Template_Searchable

-Source Location: /Doctrine/Template/Searchable.php

- -

Class Doctrine_Template_Searchable

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Template_Searchable -

- -

- Located in /Doctrine/Template/Searchable.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Template
-            |
-            --Doctrine_Template_Searchable
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Template

-
-
-
- Doctrine_Template::getTable() -
-
- getTable returns the associated table object -
-
- Doctrine_Template::setTable() -
-
- setTable -
-
- Doctrine_Template::setTableDefinition() -
-
- -
-
- Doctrine_Template::setUp() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_search  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
Doctrine_Template_Searchable  __construct()  
void  setUp()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_search - [line 35] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 37] -
-
- -
-
-
  - Doctrine_Template_Searchable __construct( - -$options  -) -
-

- - - Parameters:
- - - - -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setUp  [line 41] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Template::setUp()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Template_Taggable.html b/api_documentation/trunk/Doctrine/Doctrine_Template_Taggable.html deleted file mode 100644 index 4aba71ebd..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Template_Taggable.html +++ /dev/null @@ -1,651 +0,0 @@ - - -
-

Class: Doctrine_Template_Taggable

-Source Location: /Doctrine/Template/Taggable.php

- -

Class Doctrine_Template_Taggable

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Template_Taggable -

- -

- Located in /Doctrine/Template/Taggable.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Template
-            |
-            --Doctrine_Template_Taggable
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Template

-
-
-
- Doctrine_Template::getTable() -
-
- getTable returns the associated table object -
-
- Doctrine_Template::setTable() -
-
- setTable -
-
- Doctrine_Template::setTableDefinition() -
-
- -
-
- Doctrine_Template::setUp() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Template_Versionable.html b/api_documentation/trunk/Doctrine/Doctrine_Template_Versionable.html deleted file mode 100644 index 60ddd61e2..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Template_Versionable.html +++ /dev/null @@ -1,853 +0,0 @@ - - -
-

Class: Doctrine_Template_Versionable

-Source Location: /Doctrine/Template/Versionable.php

- -

Class Doctrine_Template_Versionable

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Template_Versionable -

- -

- Located in /Doctrine/Template/Versionable.php [line 32] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Record_Abstract
-         |
-         --Doctrine_Template
-            |
-            --Doctrine_Template_Versionable
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::$_table -
-
- -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Template

-
-
-
- Doctrine_Template::getTable() -
-
- getTable returns the associated table object -
-
- Doctrine_Template::setTable() -
-
- setTable -
-
- Doctrine_Template::setTableDefinition() -
-
- -
-
- Doctrine_Template::setUp() -
-
- -
-
-
-

Inherited From Doctrine_Record_Abstract

-
-
-
- Doctrine_Record_Abstract::actAs() -
-
- actAs loads a given plugin -
-
- Doctrine_Record_Abstract::addListener() -
-
- addListener -
-
- Doctrine_Record_Abstract::attribute() -
-
- attribute sets or retrieves an option -
-
- Doctrine_Record_Abstract::check() -
-
- check adds a check constraint -
-
- Doctrine_Record_Abstract::getListener() -
-
- getListener -
-
- Doctrine_Record_Abstract::hasColumn() -
-
- hasColumn sets a column definition -
-
- Doctrine_Record_Abstract::hasColumns() -
-
- -
-
- Doctrine_Record_Abstract::hasMany() -
-
- hasMany binds One-to-Many / Many-to-Many aggregate relation -
-
- Doctrine_Record_Abstract::hasOne() -
-
- hasOne binds One-to-One aggregate relation -
-
- Doctrine_Record_Abstract::index() -
-
- index -
-
- Doctrine_Record_Abstract::loadTemplate() -
-
- loadTemplate -
-
- Doctrine_Record_Abstract::option() -
-
- option sets or retrieves an option -
-
- Doctrine_Record_Abstract::ownsMany() -
-
- ownsMany binds One-to-Many / Many-to-Many composite relation -
-
- Doctrine_Record_Abstract::ownsOne() -
-
- ownsOne binds One-to-One composite relation -
-
- Doctrine_Record_Abstract::setAttribute() -
-
- -
-
- Doctrine_Record_Abstract::setInheritanceMap() -
-
- -
-
- Doctrine_Record_Abstract::setListener() -
-
- setListener -
-
- Doctrine_Record_Abstract::setSubclasses() -
-
- -
-
- Doctrine_Record_Abstract::setTableName() -
-
- -
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
mixed  $_auditLog  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Template_Versionable  __construct()  
void  getAuditLog()  
void  setUp()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_auditLog - [line 34] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 36] -
-
- -
-
-
  - Doctrine_Template_Versionable __construct( - -$options  -) -
-

- - - Parameters:
- - - - -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getAuditLog  [line 47] -
-
- -
-
-
  - void getAuditLog( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setUp  [line 40] -
-
- -
-
-
  - void setUp( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Template::setUp()
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Tokenizer.html b/api_documentation/trunk/Doctrine/Doctrine_Tokenizer.html deleted file mode 100644 index 9b218c150..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Tokenizer.html +++ /dev/null @@ -1,793 +0,0 @@ - - -
-

Class: Doctrine_Tokenizer

-Source Location: /Doctrine/Tokenizer.php

- -

Class Doctrine_Tokenizer

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Tokenizer -

- -

- Located in /Doctrine/Tokenizer.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - void   - bracketExplode()  bracketExplode
static - void   - bracketTrim()  trims brackets
static - array   - clauseExplode()  clauseExplode
static - void   - quoteExplode()  quoteExplode
static - array   - sqlExplode()  sqlExplode
Doctrine_Tokenizer  __construct()  
void  tokenize()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - -
- -
- static method bracketExplode  [line 79] -
-
- -
-
-
  - static void bracketExplode( -string -$str, [string -$d = ' '], [string -$e1 = '('], [string -$e2 = ')']  -) -
-

- -

bracketExplode -

-

example:

parameters: $str = (age < 20 AND age > 18) AND email LIKE 'John@example.com' $d = ' AND ' $e1 = '(' $e2 = ')'

would return an array: array("(age < 20 AND age > 18)", "email LIKE 'John@example.com'")

- Parameters:
- - - - - - - - - - - - - -
- string   - $str:  -
- string   - $d:  - the delimeter which explodes the string
- string   - $e1:  - the first bracket, usually '('
- string   - $e2:  - the second bracket, usually ')'
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method bracketTrim  [line 50] -
-
- -
-
-
  - static void bracketTrim( -string -$str, [string -$e1 = '('], [string -$e2 = ')']  -) -
-

- -

trims brackets -

- - Parameters:
- - - - - - - - - - -
- string   - $str:  -
- string   - $e1:  - the first bracket, usually '('
- string   - $e2:  - the second bracket, usually ')'
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method clauseExplode  [line 269] -
-
- -
-
-
  - static array clauseExplode( -string -$str, -$d, [string -$e1 = '('], [string -$e2 = ')']  -) -
-

- -

clauseExplode -

-

explodes a string into array using custom brackets and quote delimeters

example:

parameters: $str = "(age < 20 AND age > 18) AND name LIKE 'John Doe'" $d = ' ' $e1 = '(' $e2 = ')'

would return an array: array('(age < 20 AND age > 18)', 'name', 'LIKE', 'John Doe')

- Parameters:
- - - - - - - - - - - - - -
- string   - $str:  -
- string   - $d:  - the delimeter which explodes the string
- string   - $e1:  - the first bracket, usually '('
- string   - $e2:  - the second bracket, usually ')'
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method quoteExplode  [line 126] -
-
- -
-
-
  - static void quoteExplode( -string -$str, [string -$d = ' ']  -) -
-

- -

quoteExplode -

-

example:

parameters: $str = email LIKE 'John@example.com' $d = ' AND '

would return an array: array("email", "LIKE", "'John@example.com'")

- Parameters:
- - - - - - - -
- string   - $str:  -
- string   - $d:  - the delimeter which explodes the string
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method sqlExplode  [line 182] -
-
- -
-
-
  - static array sqlExplode( -string -$str, [string -$d = ' '], [string -$e1 = '('], [string -$e2 = ')']  -) -
-

- -

sqlExplode -

-

explodes a string into array using custom brackets and quote delimeters

example:

parameters: $str = "(age < 20 AND age > 18) AND name LIKE 'John Doe'" $d = ' ' $e1 = '(' $e2 = ')'

would return an array: array('(age < 20 AND age > 18)', 'name', 'LIKE', 'John Doe')

- Parameters:
- - - - - - - - - - - - - -
- string   - $str:  -
- string   - $d:  - the delimeter which explodes the string
- string   - $e1:  - the first bracket, usually '('
- string   - $e2:  - the second bracket, usually ')'
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 35] -
-
- -
-
-
  - Doctrine_Tokenizer __construct( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- tokenize  [line 39] -
-
- -
-
-
  - void tokenize( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction.html deleted file mode 100644 index 7d147b451..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction.html +++ /dev/null @@ -1,1794 +0,0 @@ - - -
-

Class: Doctrine_Transaction

-Source Location: /Doctrine/Transaction.php

- -

Class Doctrine_Transaction

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Transaction Handles transaction savepoint and isolation abstraction -

- -

- Located in /Doctrine/Transaction.php [line 35] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2268 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Transaction_Firebird - -
Doctrine_Transaction_Informix - -
Doctrine_Transaction_Mock - Doctrine_Transaction_Mock This class is used for testing purposes -
Doctrine_Transaction_Mssql - -
Doctrine_Transaction_Mysql - -
Doctrine_Transaction_Oracle - -
Doctrine_Transaction_Pgsql - -
Doctrine_Transaction_Sqlite - -
-
[ Top ]
-
-
- - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
STATE_ACTIVE  Doctrine_Transaction is in active state when it has one active transaction
STATE_BUSY  Doctrine_Transaction is in busy state when it has multiple active transactions
STATE_SLEEP  Doctrine_Transaction is in sleep state when it has no active transactions
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
array  $delete  
array  $invalid  
array  $savePoints  
integer  $transactionLevel  
array  $_collections  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Transaction  addCollection()  addCollection adds a collection in the internal array of collections
void  addDelete()  addDelete adds record into pending delete list
boolean  addInvalid()  addInvalid adds record into invalid records list
integer  beginTransaction()  beginTransaction Start a transaction or set a savepoint.
void  bulkDelete()  bulkDelete deletes all records from the pending delete list
boolean  commit()  commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail.
void  createSavePoint()  releaseSavePoint creates a new savepoint
array  getDeletes()  returns the pending delete list
string  getIsolation()  getTransactionIsolation
integer  getState()  getState returns the state of this connection
integer  getTransactionLevel()  getTransactionLevel get the current transaction nesting level
void  releaseSavePoint()  releaseSavePoint releases given savepoint
integer  removeSavePoints()  removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints
boolean  rollback()  rollback
void  rollbackSavePoint()  rollbackSavePoint releases given savepoint
void  setIsolation()  setIsolation
Doctrine_Transaction  setTransactionLevel()  getTransactionLevel set the current transaction nesting level
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $delete - = array() [line 61] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $invalid - = array() [line 56] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $savePoints - = array() [line 65] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - integer   - $transactionLevel - = 0 [line 52] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - array   - $_collections - = array() [line 69] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- addCollection  [line 82] -
-
- -
-
-
  - Doctrine_Transaction addCollection( -Doctrine_Collection -$coll  -) -
-

- -

addCollection adds a collection in the internal array of collections -

-

at the end of each commit this array is looped over and of every collection Doctrine then takes a snapshot in order to keep the collections up to date with the database

- Parameters:
- - - - -
- Doctrine_Collection   - $coll:  - a collection to be added
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addDelete  [line 116] -
-
- -
-
-
  - void addDelete( -Doctrine_Record -$record  -) -
-

- -

addDelete adds record into pending delete list -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  - a record to be added
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- addInvalid  [line 130] -
-
- -
-
-
  - boolean addInvalid( -Doctrine_Record -$record  -) -
-

- -

addInvalid adds record into invalid records list -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - - - - -
Return:  false if record already existed in invalid records list, otherwise true
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- beginTransaction  [line 238] -
-
- -
-
-
  - integer beginTransaction( -[string -$savepoint = null]  -) -
-

- -

beginTransaction Start a transaction or set a savepoint. -

-

if trying to set a savepoint and there is no active transaction a new transaction is being started

Listeners: onPreTransactionBegin, onTransactionBegin

- Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to set
- -
- API Tags:
- - - - - - - -
Return:  current transaction nesting level
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Transaction_Exception if the transaction fails at database level
- - -
-
[ Top ]
-
- -
- -
- bulkDelete  [line 155] -
-
- -
-
-
  - void bulkDelete( -) -
-

- -

bulkDelete deletes all records from the pending delete list -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- commit  [line 290] -
-
- -
-
-
  - boolean commit( -[string -$savepoint = null]  -) -
-

- -

commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -

-

Listeners: preTransactionCommit, postTransactionCommit

- Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to release
- -
- API Tags:
- - - - - - - -
Return:  false if commit couldn't be performed, true otherwise
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Validator_Exception if the transaction fails due to record validations
Throws:  Doctrine_Transaction_Exception if the transaction fails at database level
- - -
-
[ Top ]
-
- -
- -
- createSavePoint  [line 421] -
-
- -
-
-
  - void createSavePoint( -string -$savepoint  -) -
-

- -

releaseSavePoint creates a new savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to create
- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getDeletes  [line 144] -
-
- -
-
-
  - array getDeletes( -) -
-

- -

returns the pending delete list -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIsolation  [line 519] -
-
- -
-
-
  - string getIsolation( -) -
-

- -

getTransactionIsolation -

-

fetches the current session transaction isolation level

note: some drivers may support setting the transaction isolation level but not fetching it

-
- API Tags:
- - - - - - - -
Return:  returns the current session transaction isolation level
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  PDOException if something fails at the PDO level
Throws:  Doctrine_Transaction_Exception if the feature is not supported by the driver
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getState  [line 95] -
-
- -
-
-
  - integer getState( -) -
-

- -

getState returns the state of this connection -

- -
- API Tags:
- - - - - - - - - - -
Return:  the connection state
See:  Doctrine_Connection_Transaction::STATE_* constants
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getTransactionLevel  [line 209] -
-
- -
-
-
  - integer getTransactionLevel( -) -
-

- -

getTransactionLevel get the current transaction nesting level -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- releaseSavePoint  [line 433] -
-
- -
-
-
  - void releaseSavePoint( -string -$savepoint  -) -
-

- -

releaseSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to release
- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- removeSavePoints  [line 458] -
-
- -
-
-
  - integer removeSavePoints( -sring -$savepoint  -) -
-

- -

removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -

- - Parameters:
- - - - -
- sring   - $savepoint:  - name of the savepoint to remove
- -
- API Tags:
- - - - - - - -
Return:  removed savepoints
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- rollback  [line 370] -
-
- -
-
-
  - boolean rollback( -[string -$savepoint = null]  -) -
-

- -

rollback -

-

Cancel any database changes done during a transaction or since a specific savepoint that is in progress. This function may only be called when auto-committing is disabled, otherwise it will fail. Therefore, a new transaction is implicitly started after canceling the pending changes.

this method can be listened with onPreTransactionRollback and onTransactionRollback eventlistener methods

- Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to rollback to
- -
- API Tags:
- - - - - - - -
Return:  false if rollback couldn't be performed, true otherwise
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Transaction_Exception if the rollback operation fails at database level
- - -
-
[ Top ]
-
- -
- -
- rollbackSavePoint  [line 445] -
-
- -
-
-
  - void rollbackSavePoint( -string -$savepoint  -) -
-

- -

rollbackSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to rollback to
- -
- API Tags:
- - - - -
Access:  protected
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- setIsolation  [line 502] -
-
- -
-
-
  - void setIsolation( -string -$isolation  -) -
-

- -

setIsolation -

-

Set the transacton isolation level. (implemented by the connection drivers)

example:

  1.  $tx->setIsolation('READ UNCOMMITTED');
  2. -

- Parameters:
- - - - -
- string   - $isolation:  - standard isolation level READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  PDOException if something fails at the PDO level
Throws:  Doctrine_Transaction_Exception if the feature is not supported by the driver
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- setTransactionLevel  [line 219] -
-
- -
-
-
  - Doctrine_Transaction setTransactionLevel( - -$level  -) -
-

- -

getTransactionLevel set the current transaction nesting level -

- - Parameters:
- - - - -
-    - $level:  -
- -
- API Tags:
- - - - - - - -
Return:  this object
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - STATE_ACTIVE - = 1 - [line 44] - -
- -

Doctrine_Transaction is in active state when it has one active transaction -

- - -
-
[ Top ]
-
- -
- -
- - STATE_BUSY - = 2 - [line 48] - -
- -

Doctrine_Transaction is in busy state when it has multiple active transactions -

- - -
-
[ Top ]
-
- -
- -
- - STATE_SLEEP - = 0 - [line 40] - -
- -

Doctrine_Transaction is in sleep state when it has no active transactions -

- - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Exception.html deleted file mode 100644 index 3432e0da8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Exception

-Source Location: /Doctrine/Transaction/Exception.php

- -

Class Doctrine_Transaction_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Transaction_Exception -

- -

- Located in /Doctrine/Transaction/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Transaction_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Firebird.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Firebird.html deleted file mode 100644 index b7c30c17a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Firebird.html +++ /dev/null @@ -1,878 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Firebird

-Source Location: /Doctrine/Transaction/Firebird.php

- -

Class Doctrine_Transaction_Firebird

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Transaction/Firebird.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Firebird
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1269 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  createSavePoint()  createSavepoint creates a new savepoint
void  releaseSavePoint()  releaseSavePoint releases given savepoint
void  rollbackSavePoint()  rollbackSavePoint releases given savepoint
void  setIsolation()  Set the transacton isolation level.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- createSavePoint  [line 42] -
-
- -
-
-
  - void createSavePoint( -string -$savepoint  -) -
-

- -

createSavepoint creates a new savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to set
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::createSavePoint()
-
releaseSavePoint creates a new savepoint
-
- -
-
[ Top ]
-
- -
- -
- releaseSavePoint  [line 55] -
-
- -
-
-
  - void releaseSavePoint( -string -$savepoint  -) -
-

- -

releaseSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to release
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::releaseSavePoint()
-
releaseSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- rollbackSavePoint  [line 68] -
-
- -
-
-
  - void rollbackSavePoint( -string -$savepoint  -) -
-

- -

rollbackSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to rollback to
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::rollbackSavePoint()
-
rollbackSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- setIsolation  [line 91] -
-
- -
-
-
  - void setIsolation( -string -$isolation, [array -$options = array()]  -) -
-

- -

Set the transacton isolation level. -

- - Parameters:
- - - - - - - -
- string   - $isolation:  - standard isolation level (SQL-92) READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
- array   - $options:  - some transaction options: 'wait' => 'WAIT' | 'NO WAIT' 'rw' => 'READ WRITE' | 'READ ONLY'
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Transaction_Exception if using unknown isolation level or unknown wait option
Throws:  PDOException if something fails at the PDO level
- -
-
Redefinition of:
-
-
Doctrine_Transaction::setIsolation()
-
setIsolation
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Informix.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Informix.html deleted file mode 100644 index 660351d6a..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Informix.html +++ /dev/null @@ -1,611 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Informix

-Source Location: /Doctrine/Transaction/Informix.php

- -

Class Doctrine_Transaction_Informix

- - -
-
Class Overview
- -
- - - - - -
- - -

- Located in /Doctrine/Transaction/Informix.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Informix
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mock.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mock.html deleted file mode 100644 index 72aba3bad..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mock.html +++ /dev/null @@ -1,613 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Mock

-Source Location: /Doctrine/Transaction/Mock.php

- -

Class Doctrine_Transaction_Mock

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Transaction_Mock This class is used for testing purposes -

- -

- Located in /Doctrine/Transaction/Mock.php [line 35] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Mock
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mssql.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mssql.html deleted file mode 100644 index e12efc39e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mssql.html +++ /dev/null @@ -1,710 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Mssql

-Source Location: /Doctrine/Transaction/Mssql.php

- -

Class Doctrine_Transaction_Mssql

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Transaction/Mssql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Mssql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  setIsolation()  Set the transacton isolation level.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- setIsolation  [line 52] -
-
- -
-
-
  - void setIsolation( -string -$isolation, [ -$options = array()]  -) -
-

- -

Set the transacton isolation level. -

- - Parameters:
- - - - - - - -
- string   - $isolation:  - standard isolation level (SQL-92) portable modes: READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads) mssql specific modes: SNAPSHOT
-    - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - - - - -
Link:  http://msdn2.microsoft.com/en-us/library/ms173763.aspx
Throws:  PDOException if something fails at the PDO level
Throws:  Doctrine_Transaction_Exception if using unknown isolation level or unknown wait option
- -
-
Redefinition of:
-
-
Doctrine_Transaction::setIsolation()
-
setIsolation
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mysql.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mysql.html deleted file mode 100644 index baced0608..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Mysql.html +++ /dev/null @@ -1,919 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Mysql

-Source Location: /Doctrine/Transaction/Mysql.php

- -

Class Doctrine_Transaction_Mysql

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Transaction/Mysql.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Mysql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1269 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  createSavePoint()  createSavepoint creates a new savepoint
string  getIsolation()  getTransactionIsolation
void  releaseSavePoint()  releaseSavePoint releases given savepoint
void  rollbackSavePoint()  rollbackSavePoint releases given savepoint
void  setIsolation()  Set the transacton isolation level.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- createSavePoint  [line 42] -
-
- -
-
-
  - void createSavePoint( -string -$savepoint  -) -
-

- -

createSavepoint creates a new savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to set
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::createSavePoint()
-
releaseSavePoint creates a new savepoint
-
- -
-
[ Top ]
-
- -
- -
- getIsolation  [line 108] -
-
- -
-
-
  - string getIsolation( -) -
-

- -

getTransactionIsolation -

- -
- API Tags:
- - - - - - - -
Return:  returns the current session transaction isolation level
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::getIsolation()
-
getTransactionIsolation
-
- -
-
[ Top ]
-
- -
- -
- releaseSavePoint  [line 55] -
-
- -
-
-
  - void releaseSavePoint( -string -$savepoint  -) -
-

- -

releaseSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to release
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::releaseSavePoint()
-
releaseSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- rollbackSavePoint  [line 68] -
-
- -
-
-
  - void rollbackSavePoint( -string -$savepoint  -) -
-

- -

rollbackSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to rollback to
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::rollbackSavePoint()
-
rollbackSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- setIsolation  [line 87] -
-
- -
-
-
  - void setIsolation( -string -$isolation  -) -
-

- -

Set the transacton isolation level. -

- - Parameters:
- - - - -
- string   - $isolation:  - standard isolation level READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  PDOException if something fails at the PDO level
Throws:  Doctrine_Transaction_Exception if using unknown isolation level
- -
-
Redefinition of:
-
-
Doctrine_Transaction::setIsolation()
-
setIsolation
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Oracle.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Oracle.html deleted file mode 100644 index 729b68a77..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Oracle.html +++ /dev/null @@ -1,871 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Oracle

-Source Location: /Doctrine/Transaction/Oracle.php

- -

Class Doctrine_Transaction_Oracle

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Transaction/Oracle.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Oracle
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1119 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  createSavePoint()  createSavepoint creates a new savepoint
void  releaseSavePoint()  releaseSavePoint releases given savepoint
void  rollbackSavePoint()  rollbackSavePoint releases given savepoint
void  setIsolation()  Set the transacton isolation level.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- createSavePoint  [line 42] -
-
- -
-
-
  - void createSavePoint( -string -$savepoint  -) -
-

- -

createSavepoint creates a new savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to set
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::createSavePoint()
-
releaseSavePoint creates a new savepoint
-
- -
-
[ Top ]
-
- -
- -
- releaseSavePoint  [line 55] -
-
- -
-
-
  - void releaseSavePoint( -string -$savepoint  -) -
-

- -

releaseSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to release
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::releaseSavePoint()
-
releaseSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- rollbackSavePoint  [line 67] -
-
- -
-
-
  - void rollbackSavePoint( -string -$savepoint  -) -
-

- -

rollbackSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to rollback to
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::rollbackSavePoint()
-
rollbackSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- setIsolation  [line 85] -
-
- -
-
-
  - void setIsolation( -string -$isolation  -) -
-

- -

Set the transacton isolation level. -

- - Parameters:
- - - - -
- string   - $isolation:  - standard isolation level READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Transaction_Exception if using unknown isolation level
Throws:  PDOException if something fails at the PDO level
- -
-
Redefinition of:
-
-
Doctrine_Transaction::setIsolation()
-
setIsolation
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Pgsql.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Pgsql.html deleted file mode 100644 index 55092ef1f..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Pgsql.html +++ /dev/null @@ -1,872 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Pgsql

-Source Location: /Doctrine/Transaction/Pgsql.php

- -

Class Doctrine_Transaction_Pgsql

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Transaction/Pgsql.php [line 34] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Pgsql
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1269 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  createSavePoint()  createSavepoint creates a new savepoint
void  releaseSavePoint()  releaseSavePoint releases given savepoint
void  rollbackSavePoint()  rollbackSavePoint releases given savepoint
void  setIsolation()  Set the transacton isolation level.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- createSavePoint  [line 43] -
-
- -
-
-
  - void createSavePoint( -string -$savepoint  -) -
-

- -

createSavepoint creates a new savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to set
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::createSavePoint()
-
releaseSavePoint creates a new savepoint
-
- -
-
[ Top ]
-
- -
- -
- releaseSavePoint  [line 56] -
-
- -
-
-
  - void releaseSavePoint( -string -$savepoint  -) -
-

- -

releaseSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to release
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::releaseSavePoint()
-
releaseSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- rollbackSavePoint  [line 69] -
-
- -
-
-
  - void rollbackSavePoint( -string -$savepoint  -) -
-

- -

rollbackSavePoint releases given savepoint -

- - Parameters:
- - - - -
- string   - $savepoint:  - name of a savepoint to rollback to
- -
- API Tags:
- - - - -
Access:  protected
-
- - -
-
Redefinition of:
-
-
Doctrine_Transaction::rollbackSavePoint()
-
rollbackSavePoint releases given savepoint
-
- -
-
[ Top ]
-
- -
- -
- setIsolation  [line 87] -
-
- -
-
-
  - void setIsolation( -string -$isolation  -) -
-

- -

Set the transacton isolation level. -

- - Parameters:
- - - - -
- string   - $isolation:  - standard isolation level READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Transaction_Exception if using unknown isolation level or unknown wait option
Throws:  PDOException if something fails at the PDO level
- -
-
Redefinition of:
-
-
Doctrine_Transaction::setIsolation()
-
setIsolation
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Sqlite.html b/api_documentation/trunk/Doctrine/Doctrine_Transaction_Sqlite.html deleted file mode 100644 index f7420198d..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Transaction_Sqlite.html +++ /dev/null @@ -1,700 +0,0 @@ - - -
-

Class: Doctrine_Transaction_Sqlite

-Source Location: /Doctrine/Transaction/Sqlite.php

- -

Class Doctrine_Transaction_Sqlite

- - -
-
Class Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Transaction/Sqlite.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Transaction
-      |
-      --Doctrine_Transaction_Sqlite
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::$delete -
-
- -
-
- Doctrine_Transaction::$invalid -
-
- -
-
- Doctrine_Transaction::$savePoints -
-
- -
-
- Doctrine_Transaction::$transactionLevel -
-
- -
-
- Doctrine_Transaction::$_collections -
-
- -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::addCollection() -
-
- addCollection adds a collection in the internal array of collections -
-
- Doctrine_Transaction::addDelete() -
-
- addDelete adds record into pending delete list -
-
- Doctrine_Transaction::addInvalid() -
-
- addInvalid adds record into invalid records list -
-
- Doctrine_Transaction::beginTransaction() -
-
- beginTransaction Start a transaction or set a savepoint. -
-
- Doctrine_Transaction::bulkDelete() -
-
- bulkDelete deletes all records from the pending delete list -
-
- Doctrine_Transaction::commit() -
-
- commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail. -
-
- Doctrine_Transaction::createSavePoint() -
-
- releaseSavePoint creates a new savepoint -
-
- Doctrine_Transaction::getDeletes() -
-
- returns the pending delete list -
-
- Doctrine_Transaction::getIsolation() -
-
- getTransactionIsolation -
-
- Doctrine_Transaction::getState() -
-
- getState returns the state of this connection -
-
- Doctrine_Transaction::getTransactionLevel() -
-
- getTransactionLevel get the current transaction nesting level -
-
- Doctrine_Transaction::releaseSavePoint() -
-
- releaseSavePoint releases given savepoint -
-
- Doctrine_Transaction::removeSavePoints() -
-
- removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints -
-
- Doctrine_Transaction::rollback() -
-
- rollback -
-
- Doctrine_Transaction::rollbackSavePoint() -
-
- rollbackSavePoint releases given savepoint -
-
- Doctrine_Transaction::setIsolation() -
-
- setIsolation -
-
- Doctrine_Transaction::setTransactionLevel() -
-
- getTransactionLevel set the current transaction nesting level -
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-

Inherited From Doctrine_Transaction

-
-
-
- Doctrine_Transaction::STATE_ACTIVE -
-
- -
-
- Doctrine_Transaction::STATE_BUSY -
-
- -
-
- Doctrine_Transaction::STATE_SLEEP -
-
- -
-
-
-
-
[ Top ]
-
-
- - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  setIsolation()  Set the transacton isolation level.
-
-
[ Top ]
-
-
- - - - - -
-
Methods
- -
- - - -
- -
- setIsolation  [line 47] -
-
- -
-
-
  - void setIsolation( -string -$isolation  -) -
-

- -

Set the transacton isolation level. -

- - Parameters:
- - - - -
- string   - $isolation:  - standard isolation level READ UNCOMMITTED (allows dirty reads) READ COMMITTED (prevents dirty reads) REPEATABLE READ (prevents nonrepeatable reads) SERIALIZABLE (prevents phantom reads)
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - - - - -
Throws:  Doctrine_Transaction_Exception if using unknown isolation level
Throws:  PDOException if something fails at the PDO level
- -
-
Redefinition of:
-
-
Doctrine_Transaction::setIsolation()
-
setIsolation
-
- -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Tree.html b/api_documentation/trunk/Doctrine/Doctrine_Tree.html deleted file mode 100644 index 238554074..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Tree.html +++ /dev/null @@ -1,929 +0,0 @@ - - -
-

Class: Doctrine_Tree

-Source Location: /Doctrine/Tree.php

- -

Class Doctrine_Tree

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Tree -

- -

- Located in /Doctrine/Tree.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 2097 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - -
-
Direct descendents
- -
- - - - - - - - - - - - - - - - - -
Child ClassDescription
Doctrine_Tree_AdjacencyList - Doctrine_Tree_AdjacencyList -
Doctrine_Tree_MaterializedPath - Doctrine_Tree_MaterializedPath -
Doctrine_Tree_NestedSet - Doctrine_Tree_NestedSet -
-
[ Top ]
-
-
- - - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
mixed  $options  
mixed  $table  
mixed  $_baseComponent  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - object   - factory()  factory method to return tree instance based upon chosen implementation
Doctrine_Tree  __construct()  constructor, creates tree with reference to table and any options
void  getAttribute()  gets tree attribute value
void  getBaseComponent()  Returns the base tree component.
void  setAttribute()  sets tree attribute value
void  setTableDefinition()  Used to define table attributes required for the given implementation
void  setUp()  this method is used for setting up relations and attributes and should be used by specific implementations
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $options - = array() [line 42] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $table - [line 37] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_baseComponent - [line 44] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method factory  [line 95] -
-
- -
-
-
  - static object factory( -Doctrine_Table -$table, -$implName, [array -$options = array()], string -$impName  -) -
-

- -

factory method to return tree instance based upon chosen implementation -

- - Parameters:
- - - - - - - - - - - - - -
- object   - $table:  - instance of Doctrine_Table
- string   - $impName:  - implementation (NestedSet, AdjacencyList, MaterializedPath)
- array   - $options:  - options
-    - $implName:  -
- -
- API Tags:
- - - - - - - -
Return:  instance of Doctrine_Node
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Exception if class does not extend Doctrine_Tree
- - -
-
[ Top ]
-
- - -
- -
- Constructor __construct  [line 52] -
-
- -
-
-
  - Doctrine_Tree __construct( -Doctrine_Table -$table, array -$options  -) -
-

- -

constructor, creates tree with reference to table and any options -

- - Parameters:
- - - - - - - -
- object   - $table:  - instance of Doctrine_Table
- array   - $options:  - options
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- getAttribute  [line 108] -
-
- -
-
-
  - void getAttribute( - -$name  -) -
-

- -

gets tree attribute value -

- - Parameters:
- - - - -
-    - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getBaseComponent  [line 126] -
-
- -
-
-
  - void getBaseComponent( -) -
-

- -

Returns the base tree component. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setAttribute  [line 118] -
-
- -
-
-
  - void setAttribute( -mixed -$name, -$value  -) -
-

- -

sets tree attribute value -

- - Parameters:
- - - - - - - -
- mixed   - $name:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTableDefinition  [line 73] -
-
- -
-
-
  - void setTableDefinition( -) -
-

- -

Used to define table attributes required for the given implementation -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_Tree_Exception if table attributes have not been defined
- - -
-
Redefined in descendants as:
- -
-
[ Top ]
-
- -
- -
- setUp  [line 82] -
-
- -
-
-
  - void setUp( -) -
-

- -

this method is used for setting up relations and attributes and should be used by specific implementations -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Tree_AdjacencyList.html b/api_documentation/trunk/Doctrine/Doctrine_Tree_AdjacencyList.html deleted file mode 100644 index 9d57487d0..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Tree_AdjacencyList.html +++ /dev/null @@ -1,481 +0,0 @@ - - -
-

Class: Doctrine_Tree_AdjacencyList

-Source Location: /Doctrine/Tree/AdjacencyList.php

- -

Class Doctrine_Tree_AdjacencyList

- - -
-
Class Overview
- -
- - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Tree_AdjacencyList -

- -

- Located in /Doctrine/Tree/AdjacencyList.php [line 32] -

- - -
Doctrine_Tree
-   |
-   --Doctrine_Tree_AdjacencyList
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1716 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Tree

-
-
-
- Doctrine_Tree::$options -
-
- -
-
- Doctrine_Tree::$table -
-
- -
-
- Doctrine_Tree::$_baseComponent -
-
- -
-
-
-
-

Inherited From Doctrine_Tree

-
-
-
- Doctrine_Tree::__construct() -
-
- constructor, creates tree with reference to table and any options -
-
- Doctrine_Tree::factory() -
-
- factory method to return tree instance based upon chosen implementation -
-
- Doctrine_Tree::getAttribute() -
-
- gets tree attribute value -
-
- Doctrine_Tree::getBaseComponent() -
-
- Returns the base tree component. -
-
- Doctrine_Tree::setAttribute() -
-
- sets tree attribute value -
-
- Doctrine_Tree::setTableDefinition() -
-
- Used to define table attributes required for the given implementation -
-
- Doctrine_Tree::setUp() -
-
- this method is used for setting up relations and attributes and should be used by specific implementations -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Tree_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Tree_Exception.html deleted file mode 100644 index 6d97946d3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Tree_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_Tree_Exception

-Source Location: /Doctrine/Tree/Exception.php

- -

Class Doctrine_Tree_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Tree_Exception -

- -

- Located in /Doctrine/Tree/Exception.php [line 32] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Tree_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Tree_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Tree_Interface.html deleted file mode 100644 index 437fa22a3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Tree_Interface.html +++ /dev/null @@ -1,590 +0,0 @@ - - -
-

Interface: Doctrine_Tree_Interface

-Source Location: /Doctrine/Tree/Interface.php

- -

Interface Doctrine_Tree_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- -

Doctrine_Tree_Interface -

- -

- Located in /Doctrine/Tree/Interface.php [line 32] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
void  createRoot()  creates root node from given record or from a new record
iterator  fetchBranch()  optimised method that returns iterator for traversal of the tree from the given record primary key
object  fetchTree()  optimised method to returns iterator for traversal of the entire tree from root
object  findRoot()  returns root node
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- createRoot  [line 39] -
-
- -
-
-
  - void createRoot( -[Doctrine_Record -$record = null]  -) -
-

- -

creates root node from given record or from a new record -

- - Parameters:
- - - - -
- object   - $record:  - instance of Doctrine_Record
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchBranch  [line 63] -
-
- -
-
-
  - iterator fetchBranch( -mixed -$pk, [array -$options = array()]  -) -
-

- -

optimised method that returns iterator for traversal of the tree from the given record primary key -

- - Parameters:
- - - - - - - -
- mixed   - $pk:  - primary key as used by table::find() to locate node to traverse tree from
- array   - $options:  - options
- -
- API Tags:
- - - - - - - -
Return:  instance of Doctrine_Node_<Implementation>_PreOrderIterator
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchTree  [line 54] -
-
- -
-
-
  - object fetchTree( -[array -$options = array()]  -) -
-

- -

optimised method to returns iterator for traversal of the entire tree from root -

- - Parameters:
- - - - -
- array   - $options:  - options
- -
- API Tags:
- - - - - - - -
Return:  instance of Doctrine_Node_<Implementation>_PreOrderIterator
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- findRoot  [line 46] -
-
- -
-
-
  - object findRoot( -[ -$root_id = 1]  -) -
-

- -

returns root node -

- - Parameters:
- - - - -
-    - $root_id:  -
- -
- API Tags:
- - - - - - - -
Return:  instance of Doctrine_Record
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Tree_MaterializedPath.html b/api_documentation/trunk/Doctrine/Doctrine_Tree_MaterializedPath.html deleted file mode 100644 index 1f2303167..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Tree_MaterializedPath.html +++ /dev/null @@ -1,481 +0,0 @@ - - -
-

Class: Doctrine_Tree_MaterializedPath

-Source Location: /Doctrine/Tree/MaterializedPath.php

- -

Class Doctrine_Tree_MaterializedPath

- - -
-
Class Overview
- -
- - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Tree_MaterializedPath -

- -

- Located in /Doctrine/Tree/MaterializedPath.php [line 32] -

- - -
Doctrine_Tree
-   |
-   --Doctrine_Tree_MaterializedPath
- - - Author(s): - - - API Tags:
- - - - -
Abstract:  
-
- -Information Tags:
- - - - - -
Version:  $Revision: 1716 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Tree

-
-
-
- Doctrine_Tree::$options -
-
- -
-
- Doctrine_Tree::$table -
-
- -
-
- Doctrine_Tree::$_baseComponent -
-
- -
-
-
-
-

Inherited From Doctrine_Tree

-
-
-
- Doctrine_Tree::__construct() -
-
- constructor, creates tree with reference to table and any options -
-
- Doctrine_Tree::factory() -
-
- factory method to return tree instance based upon chosen implementation -
-
- Doctrine_Tree::getAttribute() -
-
- gets tree attribute value -
-
- Doctrine_Tree::getBaseComponent() -
-
- Returns the base tree component. -
-
- Doctrine_Tree::setAttribute() -
-
- sets tree attribute value -
-
- Doctrine_Tree::setTableDefinition() -
-
- Used to define table attributes required for the given implementation -
-
- Doctrine_Tree::setUp() -
-
- this method is used for setting up relations and attributes and should be used by specific implementations -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Tree_NestedSet.html b/api_documentation/trunk/Doctrine/Doctrine_Tree_NestedSet.html deleted file mode 100644 index e14ca72ff..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Tree_NestedSet.html +++ /dev/null @@ -1,1395 +0,0 @@ - - -
-

Class: Doctrine_Tree_NestedSet

-Source Location: /Doctrine/Tree/NestedSet.php

- -

Class Doctrine_Tree_NestedSet

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

-

-

Doctrine_Tree_NestedSet -

- -

- Located in /Doctrine/Tree/NestedSet.php [line 32] -

- - -
Doctrine_Tree
-   |
-   --Doctrine_Tree_NestedSet
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2230 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Tree

-
-
-
- Doctrine_Tree::$options -
-
- -
-
- Doctrine_Tree::$table -
-
- -
-
- Doctrine_Tree::$_baseComponent -
-
- -
-
-
-
-

Inherited From Doctrine_Tree

-
-
-
- Doctrine_Tree::__construct() -
-
- constructor, creates tree with reference to table and any options -
-
- Doctrine_Tree::factory() -
-
- factory method to return tree instance based upon chosen implementation -
-
- Doctrine_Tree::getAttribute() -
-
- gets tree attribute value -
-
- Doctrine_Tree::getBaseComponent() -
-
- Returns the base tree component. -
-
- Doctrine_Tree::setAttribute() -
-
- sets tree attribute value -
-
- Doctrine_Tree::setTableDefinition() -
-
- Used to define table attributes required for the given implementation -
-
- Doctrine_Tree::setUp() -
-
- this method is used for setting up relations and attributes and should be used by specific implementations -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
mixed  $_baseAlias  
mixed  $_baseQuery  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Tree_NestedSet  __construct()  constructor, creates tree with reference to table and sets default root options
void  createRoot()  creates root node from given record or from a new record
mixed  fetchBranch()  Fetches a branch of a tree.
void  fetchRoot()  Fetches a/the root node.
mixed  fetchRoots()  Fetches all root nodes. If the tree has only one root this is the same as fetchRoot().
mixed  fetchTree()  Fetches a tree.
object  findRoot()  returns root node
void  getBaseAlias()  Enter description here...
unknown  getBaseQuery()  Enter description here...
integer  getMaxRootId()  calculates the current max root id
integer  getNextRootId()  calculates the next available root id
void  resetBaseQuery()  Enter description here...
object Doctrine_Query  returnQueryWithRootId()  returns parsed query with root id where clause added if applicable
void  setBaseQuery()  Enter description here...
void  setTableDefinition()  used to define table attributes required for the NestetSet implementation
void  _createBaseQuery()  Enter description here...
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - mixed   - $_baseAlias - = "base" [line 35] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- - mixed   - $_baseQuery - [line 34] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 43] -
-
- -
-
-
  - Doctrine_Tree_NestedSet __construct( -Doctrine_Table -$table, array -$options  -) -
-

- -

constructor, creates tree with reference to table and sets default root options -

- - Parameters:
- - - - - - - -
- object   - $table:  - instance of Doctrine_Table
- array   - $options:  - options
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Tree::__construct()
-
constructor, creates tree with reference to table and any options
-
- -
-
[ Top ]
-
- -
- -
- createRoot  [line 74] -
-
- -
-
-
  - void createRoot( -[Doctrine_Record -$record = null]  -) -
-

- -

creates root node from given record or from a new record -

- - Parameters:
- - - - -
- object   - $record:  - instance of Doctrine_Record
- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Tree_Interface::createRoot()
-
creates root node from given record or from a new record
-
- -
-
[ Top ]
-
- -
- -
- fetchBranch  [line 176] -
-
- -
-
-
  - mixed fetchBranch( -mixed -$pk, [array -$options = array()]  -) -
-

- -

Fetches a branch of a tree. -

- - Parameters:
- - - - - - - -
- mixed   - $pk:  - primary key as used by table::find() to locate node to traverse tree from
- array   - $options:  - Options.
- -
- API Tags:
- - - - - - - -
Return:  The branch or FALSE if the branch could not be found.
Access:  public
-
- -Information Tags:
- - - - -
Todo:  Only fetch the lft and rgt values of the initial record. more is not needed.
- -
-
Implementation of:
-
-
Doctrine_Tree_Interface::fetchBranch()
-
optimised method that returns iterator for traversal of the tree from the given record primary key
-
- -
-
[ Top ]
-
- -
- -
- fetchRoot  [line 110] -
-
- -
-
-
  - void fetchRoot( -[integer -$rootId = 1]  -) -
-

- -

Fetches a/the root node. -

- - Parameters:
- - - - -
- integer   - $rootId:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchRoots  [line 199] -
-
- -
-
-
  - mixed fetchRoots( -) -
-

- -

Fetches all root nodes. If the tree has only one root this is the same as fetchRoot(). -

- -
- API Tags:
- - - - - - - -
Return:  The root nodes.
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- fetchTree  [line 142] -
-
- -
-
-
  - mixed fetchTree( -[array -$options = array()]  -) -
-

- -

Fetches a tree. -

- - Parameters:
- - - - -
- array   - $options:  - Options
- -
- API Tags:
- - - - - - - -
Return:  The tree or FALSE if the tree could not be found.
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Tree_Interface::fetchTree()
-
optimised method to returns iterator for traversal of the entire tree from root
-
- -
-
[ Top ]
-
- -
- -
- findRoot  [line 100] -
-
- -
-
-
  - object findRoot( -[ -$rootId = 1]  -) -
-

- -

returns root node -

- - Parameters:
- - - - -
-    - $rootId:  -
- -
- API Tags:
- - - - - - - - - - -
Return:  instance of Doctrine_Record
Deprecated:  Use fetchRoot()
Access:  public
-
- - -
-
Implementation of:
-
-
Doctrine_Tree_Interface::findRoot()
-
returns root node
-
- -
-
[ Top ]
-
- -
- -
- getBaseAlias  [line 279] -
-
- -
-
-
  - void getBaseAlias( -) -
-

- -

Enter description here... -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getBaseQuery  [line 267] -
-
- -
-
-
  - unknown getBaseQuery( -array -$options  -) -
-

- -

Enter description here... -

- - Parameters:
- - - - -
- array   - $options:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getMaxRootId  [line 221] -
-
- -
-
-
  - integer getMaxRootId( -) -
-

- -

calculates the current max root id -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getNextRootId  [line 211] -
-
- -
-
-
  - integer getNextRootId( -) -
-

- -

calculates the next available root id -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- resetBaseQuery  [line 315] -
-
- -
-
-
  - void resetBaseQuery( -) -
-

- -

Enter description here... -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- returnQueryWithRootId  [line 247] -
-
- -
-
-
  - object Doctrine_Query returnQueryWithRootId( -object -$query, [ -$rootId = 1], integer -$root_id  -) -
-

- -

returns parsed query with root id where clause added if applicable -

- - Parameters:
- - - - - - - - - - -
- object   - $query:  - Doctrine_Query
- integer   - $root_id:  - id of destination root
-    - $rootId:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setBaseQuery  [line 301] -
-
- -
-
-
  - void setBaseQuery( -Doctrine_Query -$query  -) -
-

- -

Enter description here... -

- - Parameters:
- - - - -
- Doctrine_Query   - $query:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- setTableDefinition  [line 58] -
-
- -
-
-
  - void setTableDefinition( -) -
-

- -

used to define table attributes required for the NestetSet implementation -

-

adds lft and rgt columns for corresponding left and right values

-
- API Tags:
- - - - -
Access:  public
-
- - -
-
Redefinition of:
-
-
Doctrine_Tree::setTableDefinition()
-
Used to define table attributes required for the given implementation
-
- -
-
[ Top ]
-
- -
- -
- _createBaseQuery  [line 288] -
-
- -
-
-
  - void _createBaseQuery( -) -
-

- -

Enter description here... -

- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Util.html b/api_documentation/trunk/Doctrine/Doctrine_Util.html deleted file mode 100644 index baa440617..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Util.html +++ /dev/null @@ -1,439 +0,0 @@ - - -
-

Class: Doctrine_Util

-Source Location: /Doctrine/Util.php

- -

Class Doctrine_Util

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Util -

- -

- Located in /Doctrine/Util.php [line 33] -

- - -
Doctrine_Connection_Module
-   |
-   --Doctrine_Util
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision$
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::$conn -
-
- -
-
- Doctrine_Connection_Module::$moduleName -
-
- -
-
-
-
-

Inherited From Doctrine_Connection_Module

-
-
-
- Doctrine_Connection_Module::__construct() -
-
- -
-
- Doctrine_Connection_Module::getConnection() -
-
- getConnection returns the connection object this module uses -
-
- Doctrine_Connection_Module::getModuleName() -
-
- getModuleName returns the name of this module -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator.html b/api_documentation/trunk/Doctrine/Doctrine_Validator.html deleted file mode 100644 index 4cbb10fc8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator.html +++ /dev/null @@ -1,875 +0,0 @@ - - -
-

Class: Doctrine_Validator

-Source Location: /Doctrine/Validator.php

- -

Class Doctrine_Validator

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Validator Doctrine_Validator performs validations in record properties -

- -

- Located in /Doctrine/Validator.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Validator
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2193 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
static array  $validators  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
static - string   - gettype()  returns the type of loosely typed variable
static - Doctrine_Validator_Interface   - getValidator()  returns a validator object
static - boolean   - isValidType()  returns whether or not the given variable is valid type
static - string   - phpType()  converts a doctrine type to native php type
boolean  hasErrors()  whether or not this validator has errors
void  validateLength()  Validates the length of a field.
void  validateRecord()  validates a given record and saves possible errors in Doctrine_Validator::$stack
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static array   - $validators - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method gettype  [line 246] -
-
- -
-
-
  - static string gettype( -mixed -$var  -) -
-

- -

returns the type of loosely typed variable -

- - Parameters:
- - - - -
- mixed   - $var:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method getValidator  [line 45] -
-
- -
-
-
  - static Doctrine_Validator_Interface getValidator( -string -$name  -) -
-

- -

returns a validator object -

- - Parameters:
- - - - -
- string   - $name:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method isValidType  [line 214] -
-
- -
-
-
  - static boolean isValidType( -mixed -$var, string -$type  -) -
-

- -

returns whether or not the given variable is valid type -

- - Parameters:
- - - - - - - -
- mixed   - $var:  -
- string   - $type:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- static method phpType  [line 189] -
-
- -
-
-
  - static string phpType( -$doctrineType -$doctrineType  -) -
-

- -

converts a doctrine type to native php type -

- - Parameters:
- - - - -
- $doctrineType   - $doctrineType:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- hasErrors  [line 179] -
-
- -
-
-
  - boolean hasErrors( -) -
-

- -

whether or not this validator has errors -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- validateLength  [line 159] -
-
- -
-
-
  - void validateLength( - -$column, -$key, -$value  -) -
-

- -

Validates the length of a field. -

- - Parameters:
- - - - - - - - - - -
-    - $column:  -
-    - $key:  -
-    - $value:  -
- -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- validateRecord  [line 65] -
-
- -
-
-
  - void validateRecord( -Doctrine_Record -$record  -) -
-

- -

validates a given record and saves possible errors in Doctrine_Validator::$stack -

- - Parameters:
- - - - -
- Doctrine_Record   - $record:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Country.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Country.html deleted file mode 100644 index 3a3b2c688..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Country.html +++ /dev/null @@ -1,547 +0,0 @@ - - -
-

Class: Doctrine_Validator_Country

-Source Location: /Doctrine/Validator/Country.php

- -

Class Doctrine_Validator_Country

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Validator_Country -

- -

- Located in /Doctrine/Validator/Country.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
static mixed  $countries  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
static - array   - getCountries()  
boolean  validate()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static mixed   - $countries - = array(
'ad' => 'Andorra',
'ae' => 'United Arab Emirates',
'af' => 'Afghanistan',
'ag' => 'Antigua and Barbuda',
'ai' => 'Anguilla',
'al' => 'Albania',
'am' => 'Armenia',
'an' => 'Netherlands Antilles',
'ao' => 'Angola',
'aq' => 'Antarctica',
'ar' => 'Argentina',
'as' => 'American Samoa',
'at' => 'Austria',
'au' => 'Australia',
'aw' => 'Aruba',
'az' => 'Azerbaijan',
'ba' => 'Bosnia Hercegovina',
'bb' => 'Barbados',
'bd' => 'Bangladesh',
'be' => 'Belgium',
'bf' => 'Burkina Faso',
'bg' => 'Bulgaria',
'bh' => 'Bahrain',
'bi' => 'Burundi',
'bj' => 'Benin',
'bm' => 'Bermuda',
'bn' => 'Brunei Darussalam',
'bo' => 'Bolivia',
'br' => 'Brazil',
'bs' => 'Bahamas',
'bt' => 'Bhutan',
'bv' => 'Bouvet Island',
'bw' => 'Botswana',
'by' => 'Belarus (Byelorussia)',
'bz' => 'Belize',
'ca' => 'Canada',
'cc' => 'Cocos Islands',
'cd' => 'Congo, The Democratic Republic of the',
'cf' => 'Central African Republic',
'cg' => 'Congo',
'ch' => 'Switzerland',
'ci' => 'Ivory Coast',
'ck' => 'Cook Islands',
'cl' => 'Chile',
'cm' => 'Cameroon',
'cn' => 'China',
'co' => 'Colombia',
'cr' => 'Costa Rica',
'cs' => 'Czechoslovakia',
'cu' => 'Cuba',
'cv' => 'Cape Verde',
'cx' => 'Christmas Island',
'cy' => 'Cyprus',
'cz' => 'Czech Republic',
'de' => 'Germany',
'dj' => 'Djibouti',
'dk' => 'Denmark',
'dm' => 'Dominica',
'do' => 'Dominican Republic',
'dz' => 'Algeria',
'ec' => 'Ecuador',
'ee' => 'Estonia',
'eg' => 'Egypt',
'eh' => 'Western Sahara',
'er' => 'Eritrea',
'es' => 'Spain',
'et' => 'Ethiopia',
'fi' => 'Finland',
'fj' => 'Fiji',
'fk' => 'Falkland Islands',
'fm' => 'Micronesia',
'fo' => 'Faroe Islands',
'fr' => 'France',
'fx' => 'France, Metropolitan FX',
'ga' => 'Gabon',
'gb' => 'United Kingdom (Great Britain)',
'gd' => 'Grenada',
'ge' => 'Georgia',
'gf' => 'French Guiana',
'gh' => 'Ghana',
'gi' => 'Gibraltar',
'gl' => 'Greenland',
'gm' => 'Gambia',
'gn' => 'Guinea',
'gp' => 'Guadeloupe',
'gq' => 'Equatorial Guinea',
'gr' => 'Greece',
'gs' => 'South Georgia and the South Sandwich Islands',
'gt' => 'Guatemala',
'gu' => 'Guam',
'gw' => 'Guinea-bissau',
'gy' => 'Guyana',
'hk' => 'Hong Kong',
'hm' => 'Heard and McDonald Islands',
'hn' => 'Honduras',
'hr' => 'Croatia',
'ht' => 'Haiti',
'hu' => 'Hungary',
'id' => 'Indonesia',
'ie' => 'Ireland',
'il' => 'Israel',
'in' => 'India',
'io' => 'British Indian Ocean Territory',
'iq' => 'Iraq',
'ir' => 'Iran',
'is' => 'Iceland',
'it' => 'Italy',
'jm' => 'Jamaica',
'jo' => 'Jordan',
'jp' => 'Japan',
'ke' => 'Kenya',
'kg' => 'Kyrgyzstan',
'kh' => 'Cambodia',
'ki' => 'Kiribati',
'km' => 'Comoros',
'kn' => 'Saint Kitts and Nevis',
'kp' => 'North Korea',
'kr' => 'South Korea',
'kw' => 'Kuwait',
'ky' => 'Cayman Islands',
'kz' => 'Kazakhstan',
'la' => 'Laos',
'lb' => 'Lebanon',
'lc' => 'Saint Lucia',
'li' => 'Lichtenstein',
'lk' => 'Sri Lanka',
'lr' => 'Liberia',
'ls' => 'Lesotho',
'lt' => 'Lithuania',
'lu' => 'Luxembourg',
'lv' => 'Latvia',
'ly' => 'Libya',
'ma' => 'Morocco',
'mc' => 'Monaco',
'md' => 'Moldova Republic',
'mg' => 'Madagascar',
'mh' => 'Marshall Islands',
'mk' => 'Macedonia, The Former Yugoslav Republic of',
'ml' => 'Mali',
'mm' => 'Myanmar',
'mn' => 'Mongolia',
'mo' => 'Macau',
'mp' => 'Northern Mariana Islands',
'mq' => 'Martinique',
'mr' => 'Mauritania',
'ms' => 'Montserrat',
'mt' => 'Malta',
'mu' => 'Mauritius',
'mv' => 'Maldives',
'mw' => 'Malawi',
'mx' => 'Mexico',
'my' => 'Malaysia',
'mz' => 'Mozambique',
'na' => 'Namibia',
'nc' => 'New Caledonia',
'ne' => 'Niger',
'nf' => 'Norfolk Island',
'ng' => 'Nigeria',
'ni' => 'Nicaragua',
'nl' => 'Netherlands',
'no' => 'Norway',
'np' => 'Nepal',
'nr' => 'Nauru',
'nt' => 'Neutral Zone',
'nu' => 'Niue',
'nz' => 'New Zealand',
'om' => 'Oman',
'pa' => 'Panama',
'pe' => 'Peru',
'pf' => 'French Polynesia',
'pg' => 'Papua New Guinea',
'ph' => 'Philippines',
'pk' => 'Pakistan',
'pl' => 'Poland',
'pm' => 'St. Pierre and Miquelon',
'pn' => 'Pitcairn',
'pr' => 'Puerto Rico',
'pt' => 'Portugal',
'pw' => 'Palau',
'py' => 'Paraguay',
'qa' => 'Qatar',
're' => 'Reunion',
'ro' => 'Romania',
'ru' => 'Russia',
'rw' => 'Rwanda',
'sa' => 'Saudi Arabia',
'sb' => 'Solomon Islands',
'sc' => 'Seychelles',
'sd' => 'Sudan',
'se' => 'Sweden',
'sg' => 'Singapore',
'sh' => 'St. Helena',
'si' => 'Slovenia',
'sj' => 'Svalbard and Jan Mayen Islands',
'sk' => 'Slovakia (Slovak Republic)',
'sl' => 'Sierra Leone',
'sm' => 'San Marino',
'sn' => 'Senegal',
'so' => 'Somalia',
'sr' => 'Suriname',
'st' => 'Sao Tome and Principe',
'sv' => 'El Salvador',
'sy' => 'Syria',
'sz' => 'Swaziland',
'tc' => 'Turks and Caicos Islands',
'td' => 'Chad',
'tf' => 'French Southern Territories',
'tg' => 'Togo',
'th' => 'Thailand',
'tj' => 'Tajikistan',
'tk' => 'Tokelau',
'tm' => 'Turkmenistan',
'tn' => 'Tunisia',
'to' => 'Tonga',
'tp' => 'East Timor',
'tr' => 'Turkey',
'tt' => 'Trinidad, Tobago',
'tv' => 'Tuvalu',
'tw' => 'Taiwan',
'tz' => 'Tanzania',
'ua' => 'Ukraine',
'ug' => 'Uganda',
'uk' => 'United Kingdom',
'um' => 'United States Minor Islands',
'us' => 'United States of America',
'uy' => 'Uruguay',
'uz' => 'Uzbekistan',
'va' => 'Vatican City',
'vc' => 'Saint Vincent, Grenadines',
've' => 'Venezuela',
'vg' => 'Virgin Islands (British)',
'vi' => 'Virgin Islands (USA)',
'vn' => 'Viet Nam',
'vu' => 'Vanuatu',
'wf' => 'Wallis and Futuna Islands',
'ws' => 'Samoa',
'ye' => 'Yemen',
'yt' => 'Mayotte',
'yu' => 'Yugoslavia',
'za' => 'South Africa',
'zm' => 'Zambia',
'zr' => 'Zaire',
'zw' => 'Zimbabwe')
[line 35] -
-
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - -
- -
- static method getCountries  [line 282] -
-
- -
-
-
  - static array getCountries( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- - -
- -
- validate  [line 293] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Creditcard.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Creditcard.html deleted file mode 100644 index 12b73eb02..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Creditcard.html +++ /dev/null @@ -1,446 +0,0 @@ - - -
-

Class: Doctrine_Validator_Creditcard

-Source Location: /Doctrine/Validator/Creditcard.php

- -

Class Doctrine_Validator_Creditcard

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Creditcard -

- -

- Located in /Doctrine/Validator/Creditcard.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 44] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Link:  http://www.owasp.org/index.php/OWASP_Validation_Regex_Repository
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Date.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Date.html deleted file mode 100644 index accb8c2b8..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Date.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Date

-Source Location: /Doctrine/Validator/Date.php

- -

Class Doctrine_Validator_Date

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Date -

- -

- Located in /Doctrine/Validator/Date.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Email.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Email.html deleted file mode 100644 index d93691b08..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Email.html +++ /dev/null @@ -1,446 +0,0 @@ - - -
-

Class: Doctrine_Validator_Email

-Source Location: /Doctrine/Validator/Email.php

- -

Class Doctrine_Validator_Email

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Email -

- -

- Located in /Doctrine/Validator/Email.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1444 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 43] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Link:  http://iamcal.com/publish/articles/php/parsing_email/pdf/
- - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Enum.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Enum.html deleted file mode 100644 index 377af30d3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Enum.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Enum

-Source Location: /Doctrine/Validator/Enum.php

- -

Class Doctrine_Validator_Enum

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Enum -

- -

- Located in /Doctrine/Validator/Enum.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_ErrorStack.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_ErrorStack.html deleted file mode 100644 index fe0a4a281..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_ErrorStack.html +++ /dev/null @@ -1,1026 +0,0 @@ - - -
-

Class: Doctrine_Validator_ErrorStack

-Source Location: /Doctrine/Validator/ErrorStack.php

- -

Class Doctrine_Validator_ErrorStack

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

-

Doctrine_Validator_ErrorStack -

- -

- Located in /Doctrine/Validator/ErrorStack.php [line 33] -

- - -
Doctrine_Object
-   |
-   --Doctrine_Access
-      |
-      --Doctrine_Validator_ErrorStack
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::$_null -
-
- -
-
-
-
-

Inherited From Doctrine_Access

-
-
-
- Doctrine_Access::offsetExists() -
-
- -
-
- Doctrine_Access::offsetGet() -
-
- offsetGet an alias of get() -
-
- Doctrine_Access::offsetSet() -
-
- sets $offset to $value -
-
- Doctrine_Access::offsetUnset() -
-
- unset a given offset -
-
- Doctrine_Access::setArray() -
-
- setArray -
-
- Doctrine_Access::__get() -
-
- __get -- an alias of get() -
-
- Doctrine_Access::__isset() -
-
- __isset() -
-
- Doctrine_Access::__set() -
-
- __set an alias of set() -
-
- Doctrine_Access::__unset() -
-
- __unset() -
-
-
-

Inherited From Doctrine_Object

-
-
-
- Doctrine_Object::getNullObject() -
-
- getNullObject returns the null object associated with this object -
-
- Doctrine_Object::initNullObject() -
-
- initNullObject initializes the null object -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $errors  The errors of the error stack.
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Validator_ErrorStack  __construct()  Constructor
void  add()  Adds an error to the stack.
void  clear()  Removes all errors from the stack.
unknown  contains()  Enter description here...
unknown  count()  Enter description here...
unknown  get()  Enter description here...
unknown  getIterator()  Enter description here...
void  remove()  Removes all existing errors for the specified field from the stack.
void  set()  Enter description here...
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $errors - = array() [line 41] - -
- -

The errors of the error stack. -

- API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 47] -
-
- -
-
-
  - Doctrine_Validator_ErrorStack __construct( -) -
-

- -

Constructor -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- add  [line 56] -
-
- -
-
-
  - void add( -string -$invalidFieldName, [ -$errorCode = 'general'], string -$errorType  -) -
-

- -

Adds an error to the stack. -

- - Parameters:
- - - - - - - - - - -
- string   - $invalidFieldName:  -
- string   - $errorType:  -
-    - $errorCode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- clear  [line 107] -
-
- -
-
-
  - void clear( -) -
-

- -

Removes all errors from the stack. -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- contains  [line 99] -
-
- -
-
-
  - unknown contains( - -$fieldName  -) -
-

- -

Enter description here... -

- - Parameters:
- - - - -
-    - $fieldName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 131] -
-
- -
-
-
  - unknown count( -) -
-

- -

Enter description here... -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- get  [line 79] -
-
- -
-
-
  - unknown get( - -$fieldName, unknown_type -$name  -) -
-

- -

Enter description here... -

- - Parameters:
- - - - - - - -
- unknown_type   - $name:  -
-    - $fieldName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 119] -
-
- -
-
-
  - unknown getIterator( -) -
-

- -

Enter description here... -

- -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- remove  [line 66] -
-
- -
-
-
  - void remove( -string -$fieldName  -) -
-

- -

Removes all existing errors for the specified field from the stack. -

- - Parameters:
- - - - -
- string   - $fieldName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- set  [line 89] -
-
- -
-
-
  - void set( - -$fieldName, -$errorCode, unknown_type -$name  -) -
-

- -

Enter description here... -

- - Parameters:
- - - - - - - - - - -
- unknown_type   - $name:  -
-    - $fieldName:  -
-    - $errorCode:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Exception.html deleted file mode 100644 index 6a1fe80fb..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Exception.html +++ /dev/null @@ -1,755 +0,0 @@ - - -
-

Class: Doctrine_Validator_Exception

-Source Location: /Doctrine/Validator/Exception.php

- -

Class Doctrine_Validator_Exception

- - -
-
Class Overview
- -
- - - - - - - -
- -

- Implements interfaces: -

    -
  • Countable (internal interface)
  • IteratorAggregate (internal interface)
-

-

Doctrine_Validator_Exception -

- -

- Located in /Doctrine/Validator/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_Validator_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 2041 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - -
-
Property Summary
- -
-
- -
-
- - - -
array  $invalid  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Validator_Exception  __construct()  
void  count()  
void  generateMessage()  
void  getInvalidRecords()  
void  getIterator()  
string  __toString()  __toString
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - array   - $invalid - = array() [line 38] - -
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 42] -
-
- -
-
-
  - Doctrine_Validator_Exception __construct( - -$invalid, Doctrine_Validator -$validator  -) -
-

- - - Parameters:
- - - - - - - -
- Doctrine_Validator   - $validator:  -
- array   - $invalid:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- count  [line 58] -
-
- -
-
-
  - void count( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
Countable::count
-
- -
-
[ Top ]
-
- -
- -
- generateMessage  [line 73] -
-
- -
-
-
  - void generateMessage( -) -
-

- - -
- API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
- -
- -
- getInvalidRecords  [line 48] -
-
- -
-
-
  - void getInvalidRecords( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getIterator  [line 53] -
-
- -
-
-
  - void getIterator( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - -
-
Implementation of:
-
-
IteratorAggregate::getIterator
-
- -
-
[ Top ]
-
- -
- -
- __toString  [line 67] -
-
- -
-
-
  - string __toString( -) -
-

- -

__toString -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_HtmlColor.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_HtmlColor.html deleted file mode 100644 index 53318a866..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_HtmlColor.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_HtmlColor

-Source Location: /Doctrine/Validator/Htmlcolor.php

- -

Class Doctrine_Validator_HtmlColor

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_HtmlColor -

- -

- Located in /Doctrine/Validator/Htmlcolor.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Interface.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Interface.html deleted file mode 100644 index a47e7cc3e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Interface.html +++ /dev/null @@ -1,394 +0,0 @@ - - -
-

Interface: Doctrine_Validator_Interface

-Source Location: /Doctrine/Validator/Interface.class.php

- -

Interface Doctrine_Validator_Interface

- - -
-
Interface Overview
- -
- - - - - - -
- - -

- Located in /Doctrine/Validator/Interface.class.php [line 2] -

- - -

-
-		
-		
-		
-		
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
void  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 3] -
-
- -
-
-
  - void validate( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Ip.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Ip.html deleted file mode 100644 index c432cde7e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Ip.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Ip

-Source Location: /Doctrine/Validator/Ip.php

- -

Class Doctrine_Validator_Ip

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Ip -

- -

- Located in /Doctrine/Validator/Ip.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Minlength.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Minlength.html deleted file mode 100644 index f9beab5de..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Minlength.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Minlength

-Source Location: /Doctrine/Validator/Minlength.php

- -

Class Doctrine_Validator_Minlength

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Regexp -

- -

- Located in /Doctrine/Validator/Minlength.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 41] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Nospace.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Nospace.html deleted file mode 100644 index 36c38fb9e..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Nospace.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Nospace

-Source Location: /Doctrine/Validator/Nospace.php

- -

Class Doctrine_Validator_Nospace

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Nospace -

- -

- Located in /Doctrine/Validator/Nospace.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Notblank.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Notblank.html deleted file mode 100644 index 22d3719a7..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Notblank.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Notblank

-Source Location: /Doctrine/Validator/Notblank.php

- -

Class Doctrine_Validator_Notblank

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Notblank -

- -

- Located in /Doctrine/Validator/Notblank.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Notnull.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Notnull.html deleted file mode 100644 index 462cf2b10..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Notnull.html +++ /dev/null @@ -1,433 +0,0 @@ - - -
-

Class: Doctrine_Validator_Notnull

-Source Location: /Doctrine/Validator/Notnull.php

- -

Class Doctrine_Validator_Notnull

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Notnull -

- -

- Located in /Doctrine/Validator/Notnull.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 41] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value  -) -
-

- - - Parameters:
- - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Range.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Range.html deleted file mode 100644 index 4df589e10..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Range.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Range

-Source Location: /Doctrine/Validator/Range.php

- -

Class Doctrine_Validator_Range

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Range -

- -

- Located in /Doctrine/Validator/Range.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Regexp.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Regexp.html deleted file mode 100644 index 274ee7f81..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Regexp.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Regexp

-Source Location: /Doctrine/Validator/Regexp.php

- -

Class Doctrine_Validator_Regexp

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Regexp -

- -

- Located in /Doctrine/Validator/Regexp.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Unique.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Unique.html deleted file mode 100644 index a34a1d834..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Unique.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Unique

-Source Location: /Doctrine/Validator/Unique.php

- -

Class Doctrine_Validator_Unique

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Unique -

- -

- Located in /Doctrine/Validator/Unique.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 2240 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Unsigned.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Unsigned.html deleted file mode 100644 index a667f1095..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Unsigned.html +++ /dev/null @@ -1,440 +0,0 @@ - - -
-

Class: Doctrine_Validator_Unsigned

-Source Location: /Doctrine/Validator/Unsigned.php

- -

Class Doctrine_Validator_Unsigned

- - -
-
Class Overview
- -
- - - - - - -
- -

Doctrine_Validator_Enum -

- -

- Located in /Doctrine/Validator/Unsigned.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Methods

- -
-
[ Top ]
-
-
- - - - - - -
-
Method Summary
- -
-
- -
-
- - - -
boolean  validate()  
-
-
[ Top ]
-
-
- - - -
-
Methods
- -
- - - -
- -
- validate  [line 42] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_Validator_Usstate.html b/api_documentation/trunk/Doctrine/Doctrine_Validator_Usstate.html deleted file mode 100644 index 62d54e429..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_Validator_Usstate.html +++ /dev/null @@ -1,545 +0,0 @@ - - -
-

Class: Doctrine_Validator_Usstate

-Source Location: /Doctrine/Validator/Usstate.php

- -

Class Doctrine_Validator_Usstate

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_Validator_Usstate -

- -

- Located in /Doctrine/Validator/Usstate.php [line 33] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - - -
-
Property Summary
- -
-
- -
-
- - - -
static mixed  $states  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
void  getStates()  
boolean  validate()  
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - static mixed   - $states - = array (
"AK" => true,
"AL" => true,
"AR" => true,
"AZ" => true,
"CA" => true,
"CO" => true,
"CT" => true,
"DC" => true,
"DE" => true,
"FL" => true,
"GA" => true,
"HI" => true,
"IA" => true,
"ID" => true,
"IL" => true,
"IN" => true,
"KS" => true,
"KY" => true,
"LA" => true,
"MA" => true,
"MD" => true,
"ME" => true,
"MI" => true,
"MN" => true,
"MO" => true,
"MS" => true,
"MT" => true,
"NC" => true,
"ND" => true,
"NE" => true,
"NH" => true,
"NJ" => true,
"NM" => true,
"NV" => true,
"NY" => true,
"OH" => true,
"OK" => true,
"OR" => true,
"PA" => true,
"PR" => true,
"RI" => true,
"SC" => true,
"SD" => true,
"TN" => true,
"TX" => true,
"UT" => true,
"VA" => true,
"VI" => true,
"VT" => true,
"WA" => true,
"WI" => true,
"WV" => true,
"WY" => true
)
[line 35] -
-
- - API Tags:
- - - - -
Access:  private
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- getStates  [line 90] -
-
- -
-
-
  - void getStates( -) -
-

- - -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- validate  [line 101] -
-
- -
-
-
  - boolean validate( -Doctrine_Record -$record, string -$key, mixed -$value, string -$args  -) -
-

- - - Parameters:
- - - - - - - - - - - - - -
- Doctrine_Record   - $record:  -
- string   - $key:  -
- mixed   - $value:  -
- string   - $args:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_View.html b/api_documentation/trunk/Doctrine/Doctrine_View.html deleted file mode 100644 index ab3bf0da3..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_View.html +++ /dev/null @@ -1,948 +0,0 @@ - - -
-

Class: Doctrine_View

-Source Location: /Doctrine/View.php

- -

Class Doctrine_View

- - -
-
Class Overview
- -
- - - - - - - -
- -

Doctrine_View -

-

this class represents a database view

-

- Located in /Doctrine/View.php [line 34] -

- - -

-
-		
-				Author(s):
-		
-		
-		
-Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-

Properties

- -
-

Methods

- -
-
[ Top ]
-
-
- - - - -
-
Constant Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
CREATE  SQL CREATE constant
DROP  SQL DROP constant
SELECT  SQL SELECT constant
-
-
[ Top ]
-
-
- - -
-
Property Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
Doctrine_Connection  $conn  
string  $name  
Doctrine_Query  $query  
-
-
[ Top ]
-
-
- - -
-
Method Summary
- -
-
- -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
Doctrine_View  __construct()  constructor
void  create()  create creates this view
void  drop()  drop drops this view from the database
Doctrine_Collection  execute()  execute executes the view returns a collection of Doctrine_Record objects
Doctrine_Connection  getConnection()  getConnection returns the connection object
string  getName()  getName returns the name of this view
Doctrine_Query  getQuery()  getQuery returns the associated query object
string  getSelectSql()  getSelectSql returns the select sql for this view
-
-
[ Top ]
-
-
- - -
-
Properties
- -
- -
- -
- - Doctrine_Connection   - $conn - [line 60] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - string   - $name - [line 52] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
- -
- -
- - Doctrine_Query   - $query - [line 56] - -
- - API Tags:
- - - - -
Access:  protected
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Methods
- -
- - - -
- -
- Constructor __construct  [line 67] -
-
- -
-
-
  - Doctrine_View __construct( -Doctrine_Query -$query, -$viewName  -) -
-

- -

constructor -

- - Parameters:
- - - - - - - -
- Doctrine_Query   - $query:  -
-    - $viewName:  -
- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- create  [line 111] -
-
- -
-
-
  - void create( -) -
-

- -

create creates this view -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_View_Exception
- - -
-
[ Top ]
-
- -
- -
- drop  [line 127] -
-
- -
-
-
  - void drop( -) -
-

- -

drop drops this view from the database -

- -
- API Tags:
- - - - -
Access:  public
-
- -Information Tags:
- - - - -
Throws:  Doctrine_View_Exception
- - -
-
[ Top ]
-
- -
- -
- execute  [line 142] -
-
- -
-
-
  - Doctrine_Collection execute( -) -
-

- -

execute executes the view returns a collection of Doctrine_Record objects -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getConnection  [line 100] -
-
- -
-
-
  - Doctrine_Connection getConnection( -) -
-

- -

getConnection returns the connection object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getName  [line 90] -
-
- -
-
-
  - string getName( -) -
-

- -

getName returns the name of this view -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getQuery  [line 80] -
-
- -
-
-
  - Doctrine_Query getQuery( -) -
-

- -

getQuery returns the associated query object -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
- -
- -
- getSelectSql  [line 152] -
-
- -
-
-
  - string getSelectSql( -) -
-

- -

getSelectSql returns the select sql for this view -

- -
- API Tags:
- - - - -
Access:  public
-
- - - -
-
[ Top ]
-
-
-
- - -
-
Constants
- -
- -
- -
- - CREATE - = 'CREATE VIEW %s AS %s' - [line 43] - -
- -

SQL CREATE constant -

- - -
-
[ Top ]
-
- -
- -
- - DROP - = 'DROP VIEW %s' - [line 39] - -
- -

SQL DROP constant -

- - -
-
[ Top ]
-
- -
- -
- - SELECT - = 'SELECT * FROM %s' - [line 47] - -
- -

SQL SELECT constant -

- - -
-
[ Top ]
-
-
-
- -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/Doctrine_View_Exception.html b/api_documentation/trunk/Doctrine/Doctrine_View_Exception.html deleted file mode 100644 index 3bda4af86..000000000 --- a/api_documentation/trunk/Doctrine/Doctrine_View_Exception.html +++ /dev/null @@ -1,423 +0,0 @@ - - -
-

Class: Doctrine_View_Exception

-Source Location: /Doctrine/View/Exception.php

- -

Class Doctrine_View_Exception

- - -
-
Class Overview
- -
- - - - - -
- -

Doctrine_Validator_Exception -

- -

- Located in /Doctrine/View/Exception.php [line 33] -

- - -
Exception
-   |
-   --Doctrine_Exception
-      |
-      --Doctrine_View_Exception
- - - Author(s): - - - -Information Tags:
- - - - - -
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL
-
-
[ Top ]
-
-
- - - -
-
Inherited Properties, Constants, and Methods
- -
- - - - - - - - - - - -
Inherited PropertiesInherited MethodsInherited Constants
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::$_errorMessages -
-
- -
-
-
-
-

Inherited From Doctrine_Exception

-
-
-
- Doctrine_Exception::errorMessage() -
-
- Return a textual error message for a Doctrine error code -
-
-
-
-
-
[ Top ]
-
-
- - - - - -
-
Properties
- -
-
-
- - -
-
Methods
- -
- - -
-
- - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Access.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Access.php.html deleted file mode 100644 index 5d166b29a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Access.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Access.php

-Source Location: /Doctrine/Access.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Access - - Doctrine_Access -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Db2---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Db2---Exception.php.html deleted file mode 100644 index 55c837778..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Db2---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Adapter/Db2/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Db2_Exception - - Doctrine_Adapter_Db2_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Exception.php.html deleted file mode 100644 index a48caaaf6..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Adapter/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Exception - - Doctrine_Adapter_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Interface.php.html deleted file mode 100644 index e6adfef85..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Adapter/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Interface - - Doctrine_Adapter_Interface This adapter interface should be implemented by all custom adapters -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement---Interface.php.html deleted file mode 100644 index ba9c3c80a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Adapter/Statement/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Statement_Interface - - Doctrine_Adapter_Statement -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement.php.html deleted file mode 100644 index ad98c2841..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Adapter---Statement.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Statement.php

-Source Location: /Doctrine/Adapter/Statement.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter_Statement - - Doctrine_Adapter_Statement -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Adapter.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Adapter.php.html deleted file mode 100644 index c92c1b834..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Adapter.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Adapter.php

-Source Location: /Doctrine/Adapter.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Adapter - - Doctrine_Adapter -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---AuditLog---Listener.php.html b/api_documentation/trunk/Doctrine/_Doctrine---AuditLog---Listener.php.html deleted file mode 100644 index c765450ed..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---AuditLog---Listener.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Listener.php

-Source Location: /Doctrine/AuditLog/Listener.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_AuditLog_Listener - - Doctrine_AuditLog_Listener -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---AuditLog.php.html b/api_documentation/trunk/Doctrine/_Doctrine---AuditLog.php.html deleted file mode 100644 index 9c055a10c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---AuditLog.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: AuditLog.php

-Source Location: /Doctrine/AuditLog.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_AuditLog - - Doctrine_AuditLog -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Collection---Exception.php.html deleted file mode 100644 index fa97b7553..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Collection/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Collection_Exception - - Doctrine_Collection_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Expandable.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Expandable.php.html deleted file mode 100644 index 960eb744f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Expandable.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Expandable.php

-Source Location: /Doctrine/Collection/Iterator/Expandable.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Collection_Iterator_Expandable - - Doctrine_Collection_Iterator_Normal -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Normal.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Normal.php.html deleted file mode 100644 index 6a0c1c010..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Normal.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Normal.php

-Source Location: /Doctrine/Collection/Iterator/Normal.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Collection_Iterator_Normal - - Doctrine_Collection_Iterator_Normal -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Offset.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Offset.php.html deleted file mode 100644 index 692c44b5f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator---Offset.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Offset.php

-Source Location: /Doctrine/Collection/Iterator/Offset.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Collection_Iterator_Offset - - Doctrine_Collection_Iterator_Normal -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator.php.html deleted file mode 100644 index 473180cb4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Iterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Iterator.php

-Source Location: /Doctrine/Collection/Iterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Collection_Iterator - - Doctrine_Collection_Iterator iterates through Doctrine_Collection -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Offset.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Collection---Offset.php.html deleted file mode 100644 index 94ad87610..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Collection---Offset.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Offset.php

-Source Location: /Doctrine/Collection/Offset.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Collection_Offset - - Doctrine_Collection_Offset Collection of Doctrine_Record objects. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Collection.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Collection.php.html deleted file mode 100644 index af96701d7..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Collection.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Collection.php

-Source Location: /Doctrine/Collection.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Collection - - Doctrine_Collection Collection of Doctrine_Record objects. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Column.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Column.php.html deleted file mode 100644 index ac0bd4af0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Column.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Column.php

-Source Location: /Doctrine/Column.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Column - - Doctrine_Column This class represents a database column -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Compiler---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Compiler---Exception.php.html deleted file mode 100644 index 7bd157a81..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Compiler---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Compiler/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Compiler_Exception - - Doctrine_Compiler_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Compiler.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Compiler.php.html deleted file mode 100644 index dd1caa34e..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Compiler.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Compiler.php

-Source Location: /Doctrine/Compiler.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Compiler - - Doctrine_Compiler This class can be used for compiling the entire Doctrine framework into a single file -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Configurable.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Configurable.php.html deleted file mode 100644 index 652b0b212..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Configurable.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Configurable.php

-Source Location: /Doctrine/Configurable.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Configurable - - Doctrine_Configurable the base for Doctrine_Table, Doctrine_Manager and Doctrine_Connection -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Common.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Common.php.html deleted file mode 100644 index 57ee0188b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Common.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Common.php

-Source Location: /Doctrine/Connection/Common.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Common - - standard connection, the parent of pgsql, mysql and sqlite -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Db2.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Db2.php.html deleted file mode 100644 index 4f834c432..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Db2.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Db2.php

-Source Location: /Doctrine/Connection/Db2.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Db2 - - Doctrine_Connection_Db2 -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Exception.php.html deleted file mode 100644 index 1de7280ae..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Exception - - Doctrine_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird---Exception.php.html deleted file mode 100644 index 4a2e4281d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Firebird/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Firebird_Exception - - Doctrine_Connection_Firebird_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird.php.html deleted file mode 100644 index 7fe20e503..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Firebird.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Firebird.php

-Source Location: /Doctrine/Connection/Firebird.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Firebird - - Doctrine_Connection_Firebird -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix---Exception.php.html deleted file mode 100644 index 2df93dc44..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Informix/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Informix_Exception - - Doctrine_Connection_Informix_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix.php.html deleted file mode 100644 index 4d69fe3b4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Informix.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Informix.php

-Source Location: /Doctrine/Connection/Informix.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Informix - - Doctrine_Connection_Mysql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mock.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mock.php.html deleted file mode 100644 index 61a0f8ee5..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mock.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mock.php

-Source Location: /Doctrine/Connection/Mock.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Mock - - Doctrine_Connection_Mysql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Module.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Module.php.html deleted file mode 100644 index a57d41efb..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Module.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Module.php

-Source Location: /Doctrine/Connection/Module.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Module - - Doctrine_Connection_Module -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql---Exception.php.html deleted file mode 100644 index 84f73b7d3..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Mssql/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Mssql_Exception - - Doctrine_Connection_Mssql_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql.php.html deleted file mode 100644 index 1ae8f586e..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mssql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mssql.php

-Source Location: /Doctrine/Connection/Mssql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Mssql - - Doctrine_Connection_Mssql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql---Exception.php.html deleted file mode 100644 index 11b7c7de1..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Mysql/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Mysql_Exception - - Doctrine_Connection_Mysql_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql.php.html deleted file mode 100644 index 21b4cbdf4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Mysql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysql.php

-Source Location: /Doctrine/Connection/Mysql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Mysql - - Doctrine_Connection_Mysql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle---Exception.php.html deleted file mode 100644 index eaa23c074..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Oracle/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Oracle_Exception - - Doctrine_Connection_Oracle_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle.php.html deleted file mode 100644 index a83c7a5e2..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/Connection/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Oracle - - Doctrine_Connection_Oracle -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql---Exception.php.html deleted file mode 100644 index ae0030159..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Pgsql/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Pgsql_Exception - - Doctrine_Connection_Pgsql_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql.php.html deleted file mode 100644 index 5c58fe69b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Pgsql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pgsql.php

-Source Location: /Doctrine/Connection/Pgsql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Pgsql - - Doctrine_Connection_Pgsql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler---Exception.php.html deleted file mode 100644 index 349a03e0b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Profiler/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Profiler_Exception - - Doctrine_Connection_Profiler_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler.php.html deleted file mode 100644 index 5e359ada7..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Profiler.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Profiler.php

-Source Location: /Doctrine/Connection/Profiler.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Profiler - - Doctrine_Connection_Profiler -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite---Exception.php.html deleted file mode 100644 index 833261a11..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Connection/Sqlite/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Sqlite_Exception - - Doctrine_Connection_Sqlite_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite.php.html deleted file mode 100644 index 63d4240da..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Sqlite.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sqlite.php

-Source Location: /Doctrine/Connection/Sqlite.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Sqlite - - Doctrine_Connection_Sqlite -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Statement.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---Statement.php.html deleted file mode 100644 index f2a547127..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---Statement.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Statement.php

-Source Location: /Doctrine/Connection/Statement.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_Statement - - Doctrine_Connection_Statement -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection---UnitOfWork.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection---UnitOfWork.php.html deleted file mode 100644 index 810ca4f25..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection---UnitOfWork.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: UnitOfWork.php

-Source Location: /Doctrine/Connection/UnitOfWork.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection_UnitOfWork - - Doctrine_Connection_UnitOfWork -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Connection.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Connection.php.html deleted file mode 100644 index 81c5cfbde..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Connection.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Connection.php

-Source Location: /Doctrine/Connection.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Connection - - Doctrine_Connection -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---DataDict---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---DataDict---Exception.php.html deleted file mode 100644 index 0418075b3..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---DataDict---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/DataDict/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Exception - - Doctrine_DataDict_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---DataDict---Informix.php.html b/api_documentation/trunk/Doctrine/_Doctrine---DataDict---Informix.php.html deleted file mode 100644 index 1b65148fd..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---DataDict---Informix.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Informix.php

-Source Location: /Doctrine/DataDict/Informix.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict_Informix - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---DataDict.php.html b/api_documentation/trunk/Doctrine/_Doctrine---DataDict.php.html deleted file mode 100644 index 7a227eef5..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---DataDict.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: DataDict.php

-Source Location: /Doctrine/DataDict.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataDict - - Doctrine_DataDict -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---DataType.php.html b/api_documentation/trunk/Doctrine/_Doctrine---DataType.php.html deleted file mode 100644 index bfa18f6ea..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---DataType.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: DataType.php

-Source Location: /Doctrine/DataType.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_DataType - - Doctrine_DataType -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Db.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Db.php.html deleted file mode 100644 index 76a37762a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Db.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Db.php

-Source Location: /Doctrine/Db.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Db - - Doctrine_Db -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Event.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Event.php.html deleted file mode 100644 index a9dbba6b5..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Event.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Event.php

-Source Location: /Doctrine/Event.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Event - - Doctrine_Event -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Chain.php.html b/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Chain.php.html deleted file mode 100644 index eb58ccbb6..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Chain.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Chain.php

-Source Location: /Doctrine/EventListener/Chain.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_EventListener_Chain - - Doctrine_EventListener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Exception.php.html deleted file mode 100644 index 3747bf989..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/EventListener/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_EventListener_Exception - - Doctrine_EventListener_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Interface.php.html deleted file mode 100644 index bd29f510a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---EventListener---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/EventListener/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_EventListener_Interface - - Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---EventListener.php.html b/api_documentation/trunk/Doctrine/_Doctrine---EventListener.php.html deleted file mode 100644 index 3f47282fe..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---EventListener.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: EventListener.php

-Source Location: /Doctrine/EventListener.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_EventListener - - Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Exception.php.html deleted file mode 100644 index 77573be3a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Exception - - Doctrine_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Exception.php.html deleted file mode 100644 index 1d202ce0c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Export/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Exception - - Doctrine_Export_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Firebird.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Firebird.php.html deleted file mode 100644 index c1bf2ea77..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Firebird.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Firebird.php

-Source Location: /Doctrine/Export/Firebird.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Firebird - - Doctrine_Export_Sqlite -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Frontbase.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Frontbase.php.html deleted file mode 100644 index 65e90bad0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Frontbase.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Frontbase.php

-Source Location: /Doctrine/Export/Frontbase.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Frontbase - - Doctrine_Export_Frontbase -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Mssql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Mssql.php.html deleted file mode 100644 index 847adbedc..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Mssql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mssql.php

-Source Location: /Doctrine/Export/Mssql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Mssql - - Doctrine_Export_Mssql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Mysql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Mysql.php.html deleted file mode 100644 index 89ab30ce9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Mysql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysql.php

-Source Location: /Doctrine/Export/Mysql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Mysql - - Doctrine_Export_Mysql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Oracle.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Oracle.php.html deleted file mode 100644 index 3f0b179ae..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/Export/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Oracle - - Doctrine_Export_Oracle -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Pgsql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Pgsql.php.html deleted file mode 100644 index 7ee880ea8..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Pgsql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pgsql.php

-Source Location: /Doctrine/Export/Pgsql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Pgsql - - Doctrine_Export_Pgsql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Reporter.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Reporter.php.html deleted file mode 100644 index 26f9d3755..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Reporter.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Reporter.php

-Source Location: /Doctrine/Export/Reporter.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Reporter - - Doctrine_Export_Reporter -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Xml.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Xml.php.html deleted file mode 100644 index 8fe63cbdd..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Xml.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Xml.php

-Source Location: /Doctrine/Export/Schema/Xml.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Schema_Xml - - class Doctrine_Export_Schema_Xml -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Yml.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Yml.php.html deleted file mode 100644 index a86bde80a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema---Yml.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Yml.php

-Source Location: /Doctrine/Export/Schema/Yml.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Schema_Yml - - class Doctrine_Export_Schema_Yml -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema.php.html deleted file mode 100644 index 43ba4f045..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Schema.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Schema.php

-Source Location: /Doctrine/Export/Schema.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Schema - - class Doctrine_Export_Schema -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export---Sqlite.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export---Sqlite.php.html deleted file mode 100644 index afd3bb48f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export---Sqlite.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sqlite.php

-Source Location: /Doctrine/Export/Sqlite.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export_Sqlite - - Doctrine_Export_Sqlite -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Export.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Export.php.html deleted file mode 100644 index e290bf326..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Export.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Export.php

-Source Location: /Doctrine/Export.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Export - - Doctrine_Export -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Driver.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Driver.php.html deleted file mode 100644 index 788b947b9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Driver.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Driver.php

-Source Location: /Doctrine/Expression/Driver.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Driver - - Doctrine_Expression_Driver -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Exception.php.html deleted file mode 100644 index aff6fb3a7..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Expression/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Exception - - Doctrine_Expression_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Firebird.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Firebird.php.html deleted file mode 100644 index e76cbb723..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Firebird.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Firebird.php

-Source Location: /Doctrine/Expression/Firebird.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Firebird - - Doctrine_Expression_Firebird -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Informix.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Informix.php.html deleted file mode 100644 index 9f2b2679c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Informix.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Informix.php

-Source Location: /Doctrine/Expression/Informix.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Informix - - Doctrine_Expression_Informix -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mock.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mock.php.html deleted file mode 100644 index 110287ac3..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mock.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mock.php

-Source Location: /Doctrine/Expression/Mock.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Mock - - Doctrine_Expression_Mock Mock driver that is used for testing purposes -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mssql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mssql.php.html deleted file mode 100644 index b49950a0e..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mssql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mssql.php

-Source Location: /Doctrine/Expression/Mssql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Mssql - - Doctrine_Expression_Mssql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mysql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mysql.php.html deleted file mode 100644 index 102816a60..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Mysql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysql.php

-Source Location: /Doctrine/Expression/Mysql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Mysql - - Doctrine_Expression_Mysql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Oracle.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Oracle.php.html deleted file mode 100644 index 6a6f721b3..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/Expression/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Oracle - - Doctrine_Expression_Sqlite -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Pgsql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Pgsql.php.html deleted file mode 100644 index f2e54d414..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Pgsql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pgsql.php

-Source Location: /Doctrine/Expression/Pgsql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Pgsql - - Doctrine_Expression_Pgsql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Sqlite.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression---Sqlite.php.html deleted file mode 100644 index 003e31c8b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression---Sqlite.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sqlite.php

-Source Location: /Doctrine/Expression/Sqlite.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression_Sqlite - - Doctrine_Expression_Sqlite -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Expression.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Expression.php.html deleted file mode 100644 index d9b2be2b5..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Expression.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Expression.php

-Source Location: /Doctrine/Expression.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Expression - - Doctrine_Expression -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---File---Index.php.html b/api_documentation/trunk/Doctrine/_Doctrine---File---Index.php.html deleted file mode 100644 index cfc33fea1..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---File---Index.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Index.php

-Source Location: /Doctrine/File/Index.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_File_Index - - Doctrine_File_Index -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---File.php.html b/api_documentation/trunk/Doctrine/_Doctrine---File.php.html deleted file mode 100644 index 45c1e4ced..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---File.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: File.php

-Source Location: /Doctrine/File.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_File - - Doctrine_File -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Formatter.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Formatter.php.html deleted file mode 100644 index 80823893d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Formatter.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Formatter.php

-Source Location: /Doctrine/Formatter.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Formatter - - Doctrine_Formatter -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Equal.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hook---Equal.php.html deleted file mode 100644 index e05a48b90..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Equal.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Equal.php

-Source Location: /Doctrine/Hook/Equal.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hook_Equal - - Doctrine_Hook_Equal -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Integer.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hook---Integer.php.html deleted file mode 100644 index 88116f975..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Integer.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Integer.php

-Source Location: /Doctrine/Hook/Integer.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hook_Integer - - Doctrine_Hook_Integer -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser---Complex.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser---Complex.php.html deleted file mode 100644 index 22e8ec884..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser---Complex.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Complex.php

-Source Location: /Doctrine/Hook/Parser/Complex.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hook_Parser_Complex - - Doctrine_Hook_Parser_Complex -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser.php.html deleted file mode 100644 index 3c1c9c8c8..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hook---Parser.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Parser.php

-Source Location: /Doctrine/Hook/Parser.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hook_Parser - - Doctrine_Hook_Parser -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hook---WordLike.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hook---WordLike.php.html deleted file mode 100644 index 2ccb36c06..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hook---WordLike.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: WordLike.php

-Source Location: /Doctrine/Hook/WordLike.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hook_WordLike - - Doctrine_Hook_WordLike -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hook.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hook.php.html deleted file mode 100644 index 9fe8652aa..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hook.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Hook.php

-Source Location: /Doctrine/Hook.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hook - - Doctrine_Hook -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Array.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Array.php.html deleted file mode 100644 index e536fb590..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Array.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Array.php

-Source Location: /Doctrine/Hydrate/Array.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hydrate_Array - - Doctrine_Hydrate_Array defines an array fetching strategy for Doctrine_Hydrate -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Exception.php.html deleted file mode 100644 index ac40130cc..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Hydrate/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hydrate_Exception - - Doctrine_Hydrate_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Record.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Record.php.html deleted file mode 100644 index 822be62e8..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate---Record.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Record.php

-Source Location: /Doctrine/Hydrate/Record.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hydrate_Record - - Doctrine_Hydrate_Record defines a record fetching strategy for Doctrine_Hydrate -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Hydrate.php.html deleted file mode 100644 index 46b174996..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Hydrate.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Hydrate.php

-Source Location: /Doctrine/Hydrate.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Hydrate - - Doctrine_Hydrate is a base class for Doctrine_RawSql and Doctrine_Query. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---BaseClass.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---BaseClass.php.html deleted file mode 100644 index fab7e262a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---BaseClass.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: BaseClass.php

-Source Location: /Doctrine/Import/Builder/BaseClass.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: BaseClass.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Builder_BaseClass - - class Doctrine_Import_Builder_BaseClass Builds a Doctrine_Record base class definition based on a schema. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---Exception.php.html deleted file mode 100644 index 163567822..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder---Exception.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Import/Builder/Exception.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Builder_Exception - - class Doctrine_Import_Builder_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder.php.html deleted file mode 100644 index b18840147..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Builder.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Builder.php

-Source Location: /Doctrine/Import/Builder.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Builder - - Doctrine_Import_Builder Import builder is responsible of building Doctrine ActiveRecord classes based on a database schema. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Exception.php.html deleted file mode 100644 index b976cf1ee..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Import/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Exception - - class Doctrine_Import_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Firebird.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Firebird.php.html deleted file mode 100644 index e66ea1480..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Firebird.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Firebird.php

-Source Location: /Doctrine/Import/Firebird.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Firebird - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Informix.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Informix.php.html deleted file mode 100644 index f3382722c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Informix.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Informix.php

-Source Location: /Doctrine/Import/Informix.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Informix - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Mssql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Mssql.php.html deleted file mode 100644 index 42b7f8a27..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Mssql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mssql.php

-Source Location: /Doctrine/Import/Mssql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Mssql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Mysql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Mysql.php.html deleted file mode 100644 index 7b978d9c8..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Mysql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysql.php

-Source Location: /Doctrine/Import/Mysql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Mysql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Oracle.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Oracle.php.html deleted file mode 100644 index 3c38c3a72..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/Import/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Oracle - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Pgsql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Pgsql.php.html deleted file mode 100644 index bd554440d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Pgsql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pgsql.php

-Source Location: /Doctrine/Import/Pgsql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Pgsql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Db.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Db.php.html deleted file mode 100644 index 0c911d74b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Db.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Db.php

-Source Location: /Doctrine/Import/Reader/Db.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Db.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Reader_Db - - class Doctrine_Import_Reader_Db -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Exception.php.html deleted file mode 100644 index aa3bf4294..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Import/Reader/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Reader_Exception - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Propel.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Propel.php.html deleted file mode 100644 index 861ccb22b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader---Propel.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Propel.php

-Source Location: /Doctrine/Import/Reader/Propel.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Propel.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Reader_Xml_Propel - - class Doctrine_Import_Reader_Xml_Propel -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader.php.html deleted file mode 100644 index f242efa50..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Reader.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Reader.php

-Source Location: /Doctrine/Import/Reader.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Reader - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Xml.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Xml.php.html deleted file mode 100644 index decbcf10a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Xml.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Xml.php

-Source Location: /Doctrine/Import/Schema/Xml.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Schema_Xml - - class Doctrine_Import_Xml -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Yml.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Yml.php.html deleted file mode 100644 index 03c748344..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema---Yml.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Yml.php

-Source Location: /Doctrine/Import/Schema/Yml.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Schema_Yml - - class Doctrine_Import_Schema_Yml -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema.php.html deleted file mode 100644 index b5fd2c87c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Schema.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Schema.php

-Source Location: /Doctrine/Import/Schema.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Schema - - class Doctrine_Import_Schema -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import---Sqlite.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import---Sqlite.php.html deleted file mode 100644 index 492d1fda4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import---Sqlite.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sqlite.php

-Source Location: /Doctrine/Import/Sqlite.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import_Sqlite - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Import.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Import.php.html deleted file mode 100644 index 8f65eb7a9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Import.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Import.php

-Source Location: /Doctrine/Import.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Import - - class Doctrine_Import Main responsible of performing import operation. Delegates database schema reading to a reader object and passes the result to a builder object which builds a Doctrine data model. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---IntegrityMapper.php.html b/api_documentation/trunk/Doctrine/_Doctrine---IntegrityMapper.php.html deleted file mode 100644 index 6c1b25374..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---IntegrityMapper.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: IntegrityMapper.php

-Source Location: /Doctrine/IntegrityMapper.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_IntegrityMapper - - Doctrine_IntegrityMapper -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Lib.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Lib.php.html deleted file mode 100644 index 7f98977bd..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Lib.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Lib.php

-Source Location: /Doctrine/Lib.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Lib - - Doctrine_Lib has not commonly used static functions, mostly for debugging purposes -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Locking---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Locking---Exception.php.html deleted file mode 100644 index dd8125991..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Locking---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Locking/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Locking_Exception - - Locking exception class -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Locking---Manager---Pessimistic.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Locking---Manager---Pessimistic.php.html deleted file mode 100644 index acb2738ec..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Locking---Manager---Pessimistic.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pessimistic.php

-Source Location: /Doctrine/Locking/Manager/Pessimistic.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Locking_Manager_Pessimistic - - Offline locking of records comes in handy where you need to make sure that a time-consuming task on a record or many records, which is spread over several page requests can't be interfered by other users. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Manager---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Manager---Exception.php.html deleted file mode 100644 index 6f4244f7f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Manager---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Manager/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Manager_Exception - - Doctrine_Manager_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Manager.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Manager.php.html deleted file mode 100644 index 2c087e3d9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Manager.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Manager.php

-Source Location: /Doctrine/Manager.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Manager - - Doctrine_Manager is the base component of all doctrine based projects. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---LevelOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---LevelOrderIterator.php.html deleted file mode 100644 index acf583ea7..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---LevelOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: LevelOrderIterator.php

-Source Location: /Doctrine/Node/AdjacencyList/LevelOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_AdjacencyList_LevelOrderIterator - - Doctrine_Node_AdjacencyList_LevelOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PostOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PostOrderIterator.php.html deleted file mode 100644 index 9c7b3687a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PostOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: PostOrderIterator.php

-Source Location: /Doctrine/Node/AdjacencyList/PostOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_AdjacencyList_PostOrderIterator - - Doctrine_Node_AdjacencyList_PostOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PreOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PreOrderIterator.php.html deleted file mode 100644 index b12edacf0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList---PreOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: PreOrderIterator.php

-Source Location: /Doctrine/Node/AdjacencyList/PreOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_AdjacencyList_PreOrderIterator - - Doctrine_Node_AdjacencyList_PreOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList.php.html deleted file mode 100644 index 9d2096031..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---AdjacencyList.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: AdjacencyList.php

-Source Location: /Doctrine/Node/AdjacencyList.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_AdjacencyList - - Doctrine_Node_AdjacencyList -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---Exception.php.html deleted file mode 100644 index 350e70c22..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Node/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_Exception - - Doctrine_Node_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---Interface.php.html deleted file mode 100644 index c2dd051b9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Node/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_Interface - - Doctrine_Node_Interface -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---LevelOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---LevelOrderIterator.php.html deleted file mode 100644 index ccd15cbc2..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---LevelOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: LevelOrderIterator.php

-Source Location: /Doctrine/Node/MaterializedPath/LevelOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_MaterializedPath_LevelOrderIterator - - Doctrine_Node_MaterializedPath_LevelOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PostOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PostOrderIterator.php.html deleted file mode 100644 index 290e46037..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PostOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: PostOrderIterator.php

-Source Location: /Doctrine/Node/MaterializedPath/PostOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_MaterializedPath_PostOrderIterator - - Doctrine_Node_MaterializedPath_PostOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PreOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PreOrderIterator.php.html deleted file mode 100644 index ad1e04a16..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath---PreOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: PreOrderIterator.php

-Source Location: /Doctrine/Node/MaterializedPath/PreOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_MaterializedPath_PreOrderIterator - - Doctrine_Node_MaterializedPath_PreOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath.php.html deleted file mode 100644 index 4c22a4ba7..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---MaterializedPath.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: MaterializedPath.php

-Source Location: /Doctrine/Node/MaterializedPath.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_MaterializedPath - - Doctrine_Node_MaterializedPath -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---LevelOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---LevelOrderIterator.php.html deleted file mode 100644 index b7fcea22e..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---LevelOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: LevelOrderIterator.php

-Source Location: /Doctrine/Node/NestedSet/LevelOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_NestedSet_LevelOrderIterator - - Doctrine_Node_NestedSet_LevelOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PostOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PostOrderIterator.php.html deleted file mode 100644 index 767012f04..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PostOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: PostOrderIterator.php

-Source Location: /Doctrine/Node/NestedSet/PostOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_NestedSet_PostOrderIterator - - Doctrine_Node_NestedSet_PostOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PreOrderIterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PreOrderIterator.php.html deleted file mode 100644 index f96415b75..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet---PreOrderIterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: PreOrderIterator.php

-Source Location: /Doctrine/Node/NestedSet/PreOrderIterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_NestedSet_PreOrderIterator - - Doctrine_Node_NestedSet_PreOrderIterator -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet.php.html deleted file mode 100644 index 65af92717..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node---NestedSet.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: NestedSet.php

-Source Location: /Doctrine/Node/NestedSet.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node_NestedSet - - Doctrine_Node_NestedSet -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Node.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Node.php.html deleted file mode 100644 index 6ee69c5e4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Node.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Node.php

-Source Location: /Doctrine/Node.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Node - - Doctrine_Node -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Null.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Null.php.html deleted file mode 100644 index 4b438a5a9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Null.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Null.php

-Source Location: /Doctrine/Null.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Null - - Doctrine_Null -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Object.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Object.php.html deleted file mode 100644 index 24fc16806..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Object.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Object.php

-Source Location: /Doctrine/Object.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Object - - Doctrine_Object -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Overloadable.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Overloadable.php.html deleted file mode 100644 index b86de50fb..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Overloadable.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Overloadable.php

-Source Location: /Doctrine/Overloadable.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Overloadable - - Doctrine_Overloadable a very generic overloading interface -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Plugin.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Plugin.php.html deleted file mode 100644 index de36affb4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Plugin.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Plugin.php

-Source Location: /Doctrine/Plugin.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Plugin - - Doctrine_Plugin -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Abstract.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Abstract.php.html deleted file mode 100644 index a1cf115a2..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Abstract.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Abstract.php

-Source Location: /Doctrine/Query/Abstract.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Abstract - - Doctrine_Query_Abstract -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Check.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Check.php.html deleted file mode 100644 index 3640c5f48..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Check.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Check.php

-Source Location: /Doctrine/Query/Check.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Check - - Doctrine_Query_Check -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Condition.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Condition.php.html deleted file mode 100644 index 740fdb121..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Condition.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Condition.php

-Source Location: /Doctrine/Query/Condition.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Condition - - Doctrine_Query_Condition -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Exception.php.html deleted file mode 100644 index e131362b4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Query/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Exception - - Doctrine_Query_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Chain.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Chain.php.html deleted file mode 100644 index b22c770c5..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Chain.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Chain.php

-Source Location: /Doctrine/Query/Filter/Chain.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Filter_Chain - - Doctrine_Query_Filter_Chain -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Interface.php.html deleted file mode 100644 index 5e5742b19..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Query/Filter/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Filter_Interface - - Doctrine_Query_Filter_Interface -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter.php.html deleted file mode 100644 index 5f91e8d53..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Filter.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Filter.php

-Source Location: /Doctrine/Query/Filter.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Filter - - Doctrine_Query_Filter -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---From.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---From.php.html deleted file mode 100644 index 8fbe3e3f9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---From.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: From.php

-Source Location: /Doctrine/Query/From.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_From - - Doctrine_Query_From -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Groupby.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Groupby.php.html deleted file mode 100644 index b5cecc98b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Groupby.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Groupby.php

-Source Location: /Doctrine/Query/Groupby.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Groupby - - Doctrine_Query_Groupby -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Having.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Having.php.html deleted file mode 100644 index c8120380e..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Having.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Having.php

-Source Location: /Doctrine/Query/Having.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Having - - Doctrine_Query_Having -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---JoinCondition.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---JoinCondition.php.html deleted file mode 100644 index ba7363e9c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---JoinCondition.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: JoinCondition.php

-Source Location: /Doctrine/Query/JoinCondition.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_JoinCondition - - Doctrine_Query_JoinCondition -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Limit.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Limit.php.html deleted file mode 100644 index 06b52a701..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Limit.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Limit.php

-Source Location: /Doctrine/Query/Limit.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Limit - - Doctrine_Query_Limit -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Offset.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Offset.php.html deleted file mode 100644 index 0c9a44d04..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Offset.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Offset.php

-Source Location: /Doctrine/Query/Offset.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Offset - - Doctrine_Query_Offset -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Orderby.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Orderby.php.html deleted file mode 100644 index 7fadf9ec0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Orderby.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Orderby.php

-Source Location: /Doctrine/Query/Orderby.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Orderby - - Doctrine_Query_Orderby -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Parser.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Parser.php.html deleted file mode 100644 index 83bd246cc..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Parser.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Parser.php

-Source Location: /Doctrine/Query/Parser.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Parser - - Doctrine_Query_Parser -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Part.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Part.php.html deleted file mode 100644 index 8f138768f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Part.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Part.php

-Source Location: /Doctrine/Query/Part.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Part - - Doctrine_Query_Part -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Select.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Select.php.html deleted file mode 100644 index cd4df62b1..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Select.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Select.php

-Source Location: /Doctrine/Query/Select.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Select - - Doctrine_Query_Select -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Set.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Set.php.html deleted file mode 100644 index 3505babba..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Set.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Set.php

-Source Location: /Doctrine/Query/Set.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Set - - Doctrine_Query -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query---Where.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query---Where.php.html deleted file mode 100644 index 6d06f6e0f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query---Where.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Where.php

-Source Location: /Doctrine/Query/Where.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query_Where - - Doctrine_Query_Where -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Query.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Query.php.html deleted file mode 100644 index 86d3a30cd..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Query.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Query.php

-Source Location: /Doctrine/Query.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Query - - Doctrine_Query -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---RawSql---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---RawSql---Exception.php.html deleted file mode 100644 index 0009aa517..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---RawSql---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/RawSql/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_RawSql_Exception - - Doctrine_RawSql_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---RawSql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---RawSql.php.html deleted file mode 100644 index 6ade9eaf4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---RawSql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: RawSql.php

-Source Location: /Doctrine/RawSql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_RawSql - - Doctrine_RawSql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---Abstract.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---Abstract.php.html deleted file mode 100644 index 176cd7e42..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---Abstract.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Abstract.php

-Source Location: /Doctrine/Record/Abstract.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_Abstract - - Doctrine_Record_Abstract -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---Exception.php.html deleted file mode 100644 index eb53048e1..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Record/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_Exception - - Doctrine_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---Filter.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---Filter.php.html deleted file mode 100644 index 7cb7b93c0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---Filter.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Filter.php

-Source Location: /Doctrine/Record/Filter.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_Filter - - Doctrine_Record_Filter Filters and prepares the record data -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---Iterator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---Iterator.php.html deleted file mode 100644 index 8efa667cc..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---Iterator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Iterator.php

-Source Location: /Doctrine/Record/Iterator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_Iterator - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Chain.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Chain.php.html deleted file mode 100644 index bcd29ee25..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Chain.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Chain.php

-Source Location: /Doctrine/Record/Listener/Chain.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_Listener_Chain - - Doctrine_Record_Listener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Interface.php.html deleted file mode 100644 index a838bdc8b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Record/Listener/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_Listener_Interface - - Doctrine_Record_Listener -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener.php.html deleted file mode 100644 index 55fec90e9..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---Listener.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Listener.php

-Source Location: /Doctrine/Record/Listener.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_Listener - - Doctrine_Record_Listener -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record---State---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record---State---Exception.php.html deleted file mode 100644 index 2f94e14b1..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record---State---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Record/State/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record_State_Exception - - Doctrine_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Record.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Record.php.html deleted file mode 100644 index 9f23c764f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Record.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Record.php

-Source Location: /Doctrine/Record.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Record - - Doctrine_Record All record classes should inherit this super class -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Association---Self.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---Association---Self.php.html deleted file mode 100644 index 8dfc1cec8..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Association---Self.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Self.php

-Source Location: /Doctrine/Relation/Association/Self.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_Association_Self - - Doctrine_Relation_Association_Self -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Association.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---Association.php.html deleted file mode 100644 index 749994829..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Association.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Association.php

-Source Location: /Doctrine/Relation/Association.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_Association - - Doctrine_Relation_Association this class takes care of association mapping (= many-to-many relationships, where the relationship is handled with an additional relational table which holds 2 foreign keys) -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---Exception.php.html deleted file mode 100644 index 625dd8b64..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Relation/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_Exception - - Doctrine_Relation_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---ForeignKey.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---ForeignKey.php.html deleted file mode 100644 index 53ecbbd99..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---ForeignKey.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: ForeignKey.php

-Source Location: /Doctrine/Relation/ForeignKey.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_ForeignKey - - Doctrine_Relation_ForeignKey This class represents a foreign key relation -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---LocalKey.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---LocalKey.php.html deleted file mode 100644 index 49154abf0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---LocalKey.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: LocalKey.php

-Source Location: /Doctrine/Relation/LocalKey.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_LocalKey - - Doctrine_Relation_LocalKey This class represents a local key relation -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Nest.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---Nest.php.html deleted file mode 100644 index 8da8f4242..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Nest.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Nest.php

-Source Location: /Doctrine/Relation/Nest.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_Nest - - Doctrine_Relation_Association_Self -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser---Exception.php.html deleted file mode 100644 index f6ff28d3d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Relation/Parser/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_Parser_Exception - - Doctrine_Relation_Parser_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser.php.html deleted file mode 100644 index 10975ee01..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation---Parser.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Parser.php

-Source Location: /Doctrine/Relation/Parser.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation_Parser - - Doctrine_Relation_Parser -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Relation.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Relation.php.html deleted file mode 100644 index 0bf4ac947..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Relation.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Relation.php

-Source Location: /Doctrine/Relation.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Relation - - Doctrine_Relation This class represents a relation between components -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Column.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Schema---Column.php.html deleted file mode 100644 index 16fbce685..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Column.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Column.php

-Source Location: /Doctrine/Schema/Column.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Column.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Schema_Column - - class Doctrine_Schema_Column -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Database.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Schema---Database.php.html deleted file mode 100644 index 5bb1ec36f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Database.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Database.php

-Source Location: /Doctrine/Schema/Database.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Database.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Schema_Database - - class Doctrine_Schema_Database -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Schema---Exception.php.html deleted file mode 100644 index 1adc56d0a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Exception.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Schema/Exception.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Schema_Exception - - class Doctrine_Schema_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Object.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Schema---Object.php.html deleted file mode 100644 index 952bcd1d0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Object.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Object.php

-Source Location: /Doctrine/Schema/Object.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Schema_Object - - class Doctrine_Schema_Object Catches any non-property call from child classes and throws an exception. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Relation.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Schema---Relation.php.html deleted file mode 100644 index 6c10e405c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Relation.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Relation.php

-Source Location: /Doctrine/Schema/Relation.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Relation.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Schema_Relation - - class Doctrine_Schema_Relation Holds information on a foreign key relation. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Table.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Schema---Table.php.html deleted file mode 100644 index 2a86dddec..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Schema---Table.php.html +++ /dev/null @@ -1,330 +0,0 @@ - - -
-

Procedural File: Table.php

-Source Location: /Doctrine/Schema/Table.php

- - -
-
Page Details
- -
- - - - - -
Author:  Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
Version:  $Id: Table.php 1080 2007-02-10 18:17:08Z romanb $
Filesource:  Source Code for this file
License:  LGPL
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Schema_Table - - class Doctrine_Schema_Table -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Schema.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Schema.php.html deleted file mode 100644 index ddbb0ac89..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Schema.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Schema.php

-Source Location: /Doctrine/Schema.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Schema - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Exception.php.html deleted file mode 100644 index a347b0976..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Search/Analyzer/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Analyzer_Exception - - Doctrine_Search_Analyzer_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Interface.php.html deleted file mode 100644 index a2790e68a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Search/Analyzer/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Analyzer_Interface - - Doctrine_Search_Analyzer_Interface -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Standard.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Standard.php.html deleted file mode 100644 index 9452f6cba..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer---Standard.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Standard.php

-Source Location: /Doctrine/Search/Analyzer/Standard.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Analyzer_Standard - - Doctrine_Search_Analyzer_Standard -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer.php.html deleted file mode 100644 index 2dc5dcfad..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Analyzer.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Analyzer.php

-Source Location: /Doctrine/Search/Analyzer.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Analyzer - - Doctrine_Search_Analyzer -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Exception.php.html deleted file mode 100644 index aca203d8a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Search/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Exception - - Doctrine_Search_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Dir.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Dir.php.html deleted file mode 100644 index 5b6734305..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Dir.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Dir.php

-Source Location: /Doctrine/Search/Indexer/Dir.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Indexer_Dir - - Doctrine_Search_Indexer_Dir -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Exception.php.html deleted file mode 100644 index 9f708639b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Search/Indexer/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Indexer_Exception - - Doctrine_Search_Indexer -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer.php.html deleted file mode 100644 index e5a3d4d4d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Indexer.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Indexer.php

-Source Location: /Doctrine/Search/Indexer.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Indexer - - Doctrine_Search_Indexer -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Listener.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Listener.php.html deleted file mode 100644 index 8d018a69e..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Listener.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Listener.php

-Source Location: /Doctrine/Search/Listener.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Listener - - Doctrine_Search_Listener -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Parser.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Parser.php.html deleted file mode 100644 index 0b9410420..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Parser.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Parser.php

-Source Location: /Doctrine/Search/Parser.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Parser - - Doctrine_Search_Parser_Standard -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Query.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Query.php.html deleted file mode 100644 index 4aba66d9d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Query.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Query.php

-Source Location: /Doctrine/Search/Query.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Query - - Doctrine_Search_Query -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Record.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Record.php.html deleted file mode 100644 index 938560eb5..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Record.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Record.php

-Source Location: /Doctrine/Search/Record.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Record - - Doctrine_Search_Record -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Scorer.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Scorer.php.html deleted file mode 100644 index 4ffb241ed..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Scorer.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Scorer.php

-Source Location: /Doctrine/Search/Scorer.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Scorer - - Doctrine_Search_Scorer -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search---Template.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search---Template.php.html deleted file mode 100644 index 02d639a71..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search---Template.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Template.php

-Source Location: /Doctrine/Search/Template.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search_Template - - Doctrine_Search_Template -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Search.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Search.php.html deleted file mode 100644 index 40f08bede..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Search.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Search.php

-Source Location: /Doctrine/Search.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Search - - Doctrine_Search -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Db2.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Db2.php.html deleted file mode 100644 index f2035131f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Db2.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Db2.php

-Source Location: /Doctrine/Sequence/Db2.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Db2 - - Doctrine_Sequence_Db2 -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Exception.php.html deleted file mode 100644 index c551967c2..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Sequence/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Exception - - Doctrine_Sequence_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Firebird.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Firebird.php.html deleted file mode 100644 index c3abe6a24..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Firebird.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Firebird.php

-Source Location: /Doctrine/Sequence/Firebird.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Firebird - - Doctrine_Sequence_Firebird -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Informix.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Informix.php.html deleted file mode 100644 index 6acde87da..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Informix.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Informix.php

-Source Location: /Doctrine/Sequence/Informix.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Informix - - Doctrine_Sequence_Informix -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mssql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mssql.php.html deleted file mode 100644 index 08957396c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mssql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mssql.php

-Source Location: /Doctrine/Sequence/Mssql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Mssql - - Doctrine_Sequence_Mssql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mysql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mysql.php.html deleted file mode 100644 index 4fb4a551b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Mysql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysql.php

-Source Location: /Doctrine/Sequence/Mysql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Mysql - - Doctrine_Sequence_Mysql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Oracle.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Oracle.php.html deleted file mode 100644 index 5d50391a5..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/Sequence/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Oracle - - Doctrine_Sequence_Oracle -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Pgsql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Pgsql.php.html deleted file mode 100644 index 584dd73ed..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Pgsql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pgsql.php

-Source Location: /Doctrine/Sequence/Pgsql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Pgsql - - Doctrine_Sequence_Pgsql -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Sqlite.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Sqlite.php.html deleted file mode 100644 index 794965310..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence---Sqlite.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sqlite.php

-Source Location: /Doctrine/Sequence/Sqlite.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence_Sqlite - - Doctrine_Sequence_Sqlite -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Sequence.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Sequence.php.html deleted file mode 100644 index d3cafad38..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Sequence.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sequence.php

-Source Location: /Doctrine/Sequence.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Sequence - - Doctrine_Sequence The base class for sequence handling drivers. -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Table---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Table---Exception.php.html deleted file mode 100644 index 35f7191f3..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Table---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Table/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Table_Exception - - thrown when user tries to initialize a new instance of Doctrine_Table, while there already exists an instance of that table -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Table---Repository---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Table---Repository---Exception.php.html deleted file mode 100644 index d3483fc33..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Table---Repository---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Table/Repository/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Table_Repository_Exception - - Doctrine_Table_Repository_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Table---Repository.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Table---Repository.php.html deleted file mode 100644 index bad9ec0e7..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Table---Repository.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Repository.php

-Source Location: /Doctrine/Table/Repository.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Table_Repository - - Doctrine_Repository each record is added into Doctrine_Repository at the same time they are created, loaded from the database or retrieved from the cache -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Table.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Table.php.html deleted file mode 100644 index db04403b6..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Table.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Table.php

-Source Location: /Doctrine/Table.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Table - - Doctrine_Table represents a database table each Doctrine_Table holds the information of foreignKeys and associations -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Template---NestedSet.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Template---NestedSet.php.html deleted file mode 100644 index 69f769e15..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Template---NestedSet.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: NestedSet.php

-Source Location: /Doctrine/Template/NestedSet.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Template_NestedSet - - Doctrine_Template_NestedSet -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Template---Searchable.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Template---Searchable.php.html deleted file mode 100644 index bbc347c24..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Template---Searchable.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Searchable.php

-Source Location: /Doctrine/Template/Searchable.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Template_Searchable - - Doctrine_Template_Searchable -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Template---Taggable.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Template---Taggable.php.html deleted file mode 100644 index 6ec97383c..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Template---Taggable.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Taggable.php

-Source Location: /Doctrine/Template/Taggable.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Template_Taggable - - Doctrine_Template_Taggable -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Template---Versionable.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Template---Versionable.php.html deleted file mode 100644 index 04e3cab3f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Template---Versionable.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Versionable.php

-Source Location: /Doctrine/Template/Versionable.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Template_Versionable - - Doctrine_Template_Versionable -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Template.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Template.php.html deleted file mode 100644 index 08a058be1..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Template.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Template.php

-Source Location: /Doctrine/Template.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Template - - Doctrine_Template -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Tokenizer.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Tokenizer.php.html deleted file mode 100644 index b34b3c0dd..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Tokenizer.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Tokenizer.php

-Source Location: /Doctrine/Tokenizer.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Tokenizer - - Doctrine_Tokenizer -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Exception.php.html deleted file mode 100644 index cf502547f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Transaction/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Exception - - Doctrine_Transaction_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Firebird.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Firebird.php.html deleted file mode 100644 index 8953ce40d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Firebird.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Firebird.php

-Source Location: /Doctrine/Transaction/Firebird.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Firebird - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Informix.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Informix.php.html deleted file mode 100644 index 0fccf4733..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Informix.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Informix.php

-Source Location: /Doctrine/Transaction/Informix.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Informix - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mock.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mock.php.html deleted file mode 100644 index e8f107fc7..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mock.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mock.php

-Source Location: /Doctrine/Transaction/Mock.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Mock - - Doctrine_Transaction_Mock This class is used for testing purposes -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mssql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mssql.php.html deleted file mode 100644 index 169122b99..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mssql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mssql.php

-Source Location: /Doctrine/Transaction/Mssql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Mssql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mysql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mysql.php.html deleted file mode 100644 index d1ed21bac..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Mysql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Mysql.php

-Source Location: /Doctrine/Transaction/Mysql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Mysql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Oracle.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Oracle.php.html deleted file mode 100644 index 96274cafb..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Oracle.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Oracle.php

-Source Location: /Doctrine/Transaction/Oracle.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Oracle - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Pgsql.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Pgsql.php.html deleted file mode 100644 index 89205baa4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Pgsql.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Pgsql.php

-Source Location: /Doctrine/Transaction/Pgsql.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Pgsql - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Sqlite.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Sqlite.php.html deleted file mode 100644 index cb7f4bb35..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction---Sqlite.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Sqlite.php

-Source Location: /Doctrine/Transaction/Sqlite.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction_Sqlite - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Transaction.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Transaction.php.html deleted file mode 100644 index 9ae029353..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Transaction.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Transaction.php

-Source Location: /Doctrine/Transaction.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Transaction - - Doctrine_Transaction Handles transaction savepoint and isolation abstraction -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Tree---AdjacencyList.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Tree---AdjacencyList.php.html deleted file mode 100644 index 3f3144383..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Tree---AdjacencyList.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: AdjacencyList.php

-Source Location: /Doctrine/Tree/AdjacencyList.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Tree_AdjacencyList - - Doctrine_Tree_AdjacencyList -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Tree---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Tree---Exception.php.html deleted file mode 100644 index 28b07a366..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Tree---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Tree/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Tree_Exception - - Doctrine_Tree_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Tree---Interface.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Tree---Interface.php.html deleted file mode 100644 index fcd545fa3..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Tree---Interface.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.php

-Source Location: /Doctrine/Tree/Interface.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Tree_Interface - - Doctrine_Tree_Interface -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Tree---MaterializedPath.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Tree---MaterializedPath.php.html deleted file mode 100644 index fc87b13db..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Tree---MaterializedPath.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: MaterializedPath.php

-Source Location: /Doctrine/Tree/MaterializedPath.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Tree_MaterializedPath - - Doctrine_Tree_MaterializedPath -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Tree---NestedSet.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Tree---NestedSet.php.html deleted file mode 100644 index 780428499..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Tree---NestedSet.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: NestedSet.php

-Source Location: /Doctrine/Tree/NestedSet.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Tree_NestedSet - - Doctrine_Tree_NestedSet -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Tree.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Tree.php.html deleted file mode 100644 index d7907cd5d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Tree.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Tree.php

-Source Location: /Doctrine/Tree.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Tree - - Doctrine_Tree -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Util.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Util.php.html deleted file mode 100644 index e35510cb6..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Util.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Util.php

-Source Location: /Doctrine/Util.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Util - - Doctrine_Util -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Country.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Country.php.html deleted file mode 100644 index b7bfffd72..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Country.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Country.php

-Source Location: /Doctrine/Validator/Country.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Country - - Doctrine_Validator_Country -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Creditcard.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Creditcard.php.html deleted file mode 100644 index bbb93638a..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Creditcard.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Creditcard.php

-Source Location: /Doctrine/Validator/Creditcard.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Creditcard - - Doctrine_Validator_Creditcard -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Date.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Date.php.html deleted file mode 100644 index 4f9b21d04..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Date.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Date.php

-Source Location: /Doctrine/Validator/Date.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Date - - Doctrine_Validator_Date -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Email.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Email.php.html deleted file mode 100644 index 80dfe756d..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Email.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Email.php

-Source Location: /Doctrine/Validator/Email.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Email - - Doctrine_Validator_Email -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Enum.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Enum.php.html deleted file mode 100644 index 1bc901240..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Enum.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Enum.php

-Source Location: /Doctrine/Validator/Enum.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Enum - - Doctrine_Validator_Enum -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---ErrorStack.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---ErrorStack.php.html deleted file mode 100644 index 36c0b9679..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---ErrorStack.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: ErrorStack.php

-Source Location: /Doctrine/Validator/ErrorStack.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_ErrorStack - - Doctrine_Validator_ErrorStack -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Exception.php.html deleted file mode 100644 index 4736ce063..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/Validator/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Exception - - Doctrine_Validator_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Htmlcolor.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Htmlcolor.php.html deleted file mode 100644 index 5a20a96bb..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Htmlcolor.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Htmlcolor.php

-Source Location: /Doctrine/Validator/Htmlcolor.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_HtmlColor - - Doctrine_Validator_HtmlColor -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Interface.class.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Interface.class.php.html deleted file mode 100644 index 4d1a1672b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Interface.class.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Interface.class.php

-Source Location: /Doctrine/Validator/Interface.class.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Interface - - -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Ip.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Ip.php.html deleted file mode 100644 index 1b25fcbc0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Ip.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Ip.php

-Source Location: /Doctrine/Validator/Ip.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Ip - - Doctrine_Validator_Ip -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Minlength.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Minlength.php.html deleted file mode 100644 index 740ca9efb..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Minlength.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Minlength.php

-Source Location: /Doctrine/Validator/Minlength.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Minlength - - Doctrine_Validator_Regexp -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Nospace.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Nospace.php.html deleted file mode 100644 index 5711ba49b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Nospace.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Nospace.php

-Source Location: /Doctrine/Validator/Nospace.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Nospace - - Doctrine_Validator_Nospace -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Notblank.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Notblank.php.html deleted file mode 100644 index 41377c655..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Notblank.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Notblank.php

-Source Location: /Doctrine/Validator/Notblank.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Notblank - - Doctrine_Validator_Notblank -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Notnull.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Notnull.php.html deleted file mode 100644 index 3d02c282f..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Notnull.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Notnull.php

-Source Location: /Doctrine/Validator/Notnull.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Notnull - - Doctrine_Validator_Notnull -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Protected.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Protected.php.html deleted file mode 100644 index d306db374..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Protected.php.html +++ /dev/null @@ -1,301 +0,0 @@ - - -
-

Procedural File: Protected.php

-Source Location: /Doctrine/Validator/Protected.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Range.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Range.php.html deleted file mode 100644 index 3e808b986..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Range.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Range.php

-Source Location: /Doctrine/Validator/Range.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Range - - Doctrine_Validator_Range -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Regexp.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Regexp.php.html deleted file mode 100644 index 7bccdf126..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Regexp.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Regexp.php

-Source Location: /Doctrine/Validator/Regexp.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Regexp - - Doctrine_Validator_Regexp -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Unique.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Unique.php.html deleted file mode 100644 index d6bb65c54..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Unique.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Unique.php

-Source Location: /Doctrine/Validator/Unique.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Unique - - Doctrine_Validator_Unique -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Unsigned.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Unsigned.php.html deleted file mode 100644 index cc59d0ae4..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Unsigned.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Unsigned.php

-Source Location: /Doctrine/Validator/Unsigned.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Unsigned - - Doctrine_Validator_Enum -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Usstate.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator---Usstate.php.html deleted file mode 100644 index 7c8b29dc0..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator---Usstate.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Usstate.php

-Source Location: /Doctrine/Validator/Usstate.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator_Usstate - - Doctrine_Validator_Usstate -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---Validator.php.html b/api_documentation/trunk/Doctrine/_Doctrine---Validator.php.html deleted file mode 100644 index 72b20a05e..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---Validator.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Validator.php

-Source Location: /Doctrine/Validator.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_Validator - - Doctrine_Validator Doctrine_Validator performs validations in record properties -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---View---Exception.php.html b/api_documentation/trunk/Doctrine/_Doctrine---View---Exception.php.html deleted file mode 100644 index 43acf1129..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---View---Exception.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Exception.php

-Source Location: /Doctrine/View/Exception.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_View_Exception - - Doctrine_Validator_Exception -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine---View.php.html b/api_documentation/trunk/Doctrine/_Doctrine---View.php.html deleted file mode 100644 index 4d6266f74..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine---View.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: View.php

-Source Location: /Doctrine/View.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine_View - - Doctrine_View -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/Doctrine/_Doctrine.php.html b/api_documentation/trunk/Doctrine/_Doctrine.php.html deleted file mode 100644 index f1159407b..000000000 --- a/api_documentation/trunk/Doctrine/_Doctrine.php.html +++ /dev/null @@ -1,327 +0,0 @@ - - -
-

Procedural File: Doctrine.php

-Source Location: /Doctrine.php

- - -
-
Page Details
- -
- - -
Filesource:  Source Code for this file
- -
-
- - -
-
Classes
- -
- - - - - - - - - -
ClassDescription
- Doctrine - - Doctrine the base class of Doctrine framework -
-
-
- - - - - -
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterDb2.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterDb2.php.html deleted file mode 100644 index 733f4a24b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterDb2.php.html +++ /dev/null @@ -1,341 +0,0 @@ - -
-

Source for file Db2.php

-

Documentation is available at Db2.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mock.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Adapter');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Adapter_Db2
  46. -
  47.  * IBM DB2 Adapter  [BORROWED FROM ZEND FRAMEWORK]
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @subpackage  Doctrine_Adapter
  54. -
  55.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 1080 $
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * User-provided configuration.
  75. -
  76.      *
  77. -
  78.      * Basic keys are:
  79. -
  80.      *
  81. -
  82.      * username   => (string)  Connect to the database as this username.
  83. -
  84.      * password   => (string)  Password associated with the username.
  85. -
  86.      * host       => (string)  What host to connect to (default 127.0.0.1)
  87. -
  88.      * dbname     => (string)  The name of the database to user
  89. -
  90.      * protocol   => (string)  Protocol to use, defaults to "TCPIP"
  91. -
  92.      * port       => (integer) Port number to use for TCP/IP if protocol is "TCPIP"
  93. -
  94.      * persistent => (boolean) Set TRUE to use a persistent connection (db2_pconnect)
  95. -
  96.      *
  97. -
  98.      * @var array 
  99. -
  100.      */
  101. -
  102.     protected $_config = array(
  103. -
  104.         'dbname'       => null,
  105. -
  106.         'username'     => null,
  107. -
  108.         'password'     => null,
  109. -
  110.         'host'         => 'localhost',
  111. -
  112.         'port'         => '50000',
  113. -
  114.         'protocol'     => 'TCPIP',
  115. -
  116.         'persistent'   => false
  117. -
  118.     );
  119. -
  120.  
  121. -
  122.     /**
  123. -
  124.      * Execution mode
  125. -
  126.      *
  127. -
  128.      * @var int execution flag (DB2_AUTOCOMMIT_ON or DB2_AUTOCOMMIT_OFF)
  129. -
  130.      * @access protected
  131. -
  132.      */
  133. -
  134.     protected $_execute_mode = DB2_AUTOCOMMIT_ON;
  135. -
  136.  
  137. -
  138.     /**
  139. -
  140.      * Table name of the last accessed table for an insert operation
  141. -
  142.      * This is a DB2-Adapter-specific member variable with the utmost
  143. -
  144.      * probability you might not find it in other adapters...
  145. -
  146.      *
  147. -
  148.      * @var string 
  149. -
  150.      * @access protected
  151. -
  152.      */
  153. -
  154.     protected $_lastInsertTable = null;
  155. -
  156.  
  157. -
  158.      /**
  159. -
  160.      * Constructor.
  161. -
  162.      *
  163. -
  164.      * $config is an array of key/value pairs containing configuration
  165. -
  166.      * options.  These options are common to most adapters:
  167. -
  168.      *
  169. -
  170.      * dbname         => (string) The name of the database to user
  171. -
  172.      * username       => (string) Connect to the database as this username.
  173. -
  174.      * password       => (string) Password associated with the username.
  175. -
  176.      * host           => (string) What host to connect to, defaults to localhost
  177. -
  178.      * port           => (string) The port of the database, defaults to 50000
  179. -
  180.      * persistent     => (boolean) Whether to use a persistent connection or not, defaults to false
  181. -
  182.      * protocol       => (string) The network protocol, defaults to TCPIP
  183. -
  184.      * options        => (array)  Other database options such as autocommit, case, and cursor options
  185. -
  186.      *
  187. -
  188.      * @param array $config An array of configuration keys.
  189. -
  190.      */
  191. -
  192.     public function __construct(array $config)
  193. -
  194.     {
  195. -
  196.         if isset($config['password'])) {
  197. -
  198.             throw new Doctrine_Adapter_Db2_Exception("Configuration array must have a key for 'password' for login credentials.");
  199. -
  200.         }
  201. -
  202.  
  203. -
  204.         if isset($config['username'])) {
  205. -
  206.             throw new Doctrine_Adapter_Db2_Exception("Configuration array must have a key for 'username' for login credentials.");
  207. -
  208.         }
  209. -
  210.  
  211. -
  212.         if isset($config['dbname'])) {
  213. -
  214.             throw new Doctrine_Adapter_Db2_Exception("Configuration array must have a key for 'dbname' that names the database instance.");
  215. -
  216.         }
  217. -
  218.  
  219. -
  220.         // keep the config
  221. -
  222.         $this->_config array_merge($this->_config(array) $config);
  223. -
  224.  
  225. -
  226.         // create a profiler object
  227. -
  228.         $enabled false;
  229. -
  230.         if (array_key_exists('profiler'$this->_config)) {
  231. -
  232.             $enabled = (bool) $this->_config['profiler'];
  233. -
  234.             unset($this->_config['profiler']);
  235. -
  236.         }
  237. -
  238.  
  239. -
  240.         $this->_profiler new Doctrine_Profiler($enabled);
  241. -
  242.     }
  243. -
  244.  
  245. -
  246.     /**
  247. -
  248.      * Creates a connection resource.
  249. -
  250.      *
  251. -
  252.      * @return void 
  253. -
  254.      */
  255. -
  256.     protected function _connect()
  257. -
  258.     {
  259. -
  260.         if (is_resource($this->_connection)) {
  261. -
  262.             // connection already exists
  263. -
  264.             return;
  265. -
  266.         }
  267. -
  268.  
  269. -
  270.         if extension_loaded('ibm_db2')) {
  271. -
  272.             throw new Doctrine_Adapter_Db2_Exception('The IBM DB2 extension is required for this adapter but not loaded');
  273. -
  274.         }
  275. -
  276.  
  277. -
  278.         if ($this->_config['persistent']{
  279. -
  280.             // use persistent connection
  281. -
  282.             $conn_func_name 'db2_pconnect';
  283. -
  284.         else {
  285. -
  286.             // use "normal" connection
  287. -
  288.             $conn_func_name 'db2_connect';
  289. -
  290.         }
  291. -
  292.  
  293. -
  294.         if (!isset($this->_config['options'])) {
  295. -
  296.             // config options were not set, so set it to an empty array
  297. -
  298.             $this->_config['options'array();
  299. -
  300.         }
  301. -
  302.  
  303. -
  304.         if (!isset($this->_config['options']['autocommit'])) {
  305. -
  306.             // set execution mode
  307. -
  308.             $this->_config['options']['autocommit'&$this->_execute_mode;
  309. -
  310.         }
  311. -
  312.  
  313. -
  314.         if ($this->_config['host'!== 'localhost'{
  315. -
  316.             // if the host isn't localhost, use extended connection params
  317. -
  318.             $dbname 'DRIVER={IBM DB2 ODBC DRIVER}' .
  319. -
  320.                      ';DATABASE=' $this->_config['dbname'.
  321. -
  322.                      ';HOSTNAME=' $this->_config['host'.
  323. -
  324.                      ';PORT='     $this->_config['port'.
  325. -
  326.                      ';PROTOCOL=' $this->_config['protocol'.
  327. -
  328.                      ';UID='      $this->_config['username'.
  329. -
  330.                      ';PWD='      $this->_config['password'.';';
  331. -
  332.             $this->_connection $conn_func_name(
  333. -
  334.                 $dbname,
  335. -
  336.                 null,
  337. -
  338.                 null,
  339. -
  340.                 $this->_config['options']
  341. -
  342.             );
  343. -
  344.         else {
  345. -
  346.             // host is localhost, so use standard connection params
  347. -
  348.             $this->_connection $conn_func_name(
  349. -
  350.                 $this->_config['dbname'],
  351. -
  352.                 $this->_config['username'],
  353. -
  354.                 $this->_config['password'],
  355. -
  356.                 $this->_config['options']
  357. -
  358.             );
  359. -
  360.         }
  361. -
  362.  
  363. -
  364.         // check the connection
  365. -
  366.         if (!$this->_connection{
  367. -
  368.             throw new Doctrine_Adapter_Db2_Exception(db2_conn_errormsg()db2_conn_error());
  369. -
  370.         }
  371. -
  372.     }
  373. -
  374.  
  375. -
  376.     /**
  377. -
  378.      * Force the connection to close.
  379. -
  380.      *
  381. -
  382.      * @return void 
  383. -
  384.      */
  385. -
  386.     public function closeConnection()
  387. -
  388.     {
  389. -
  390.         db2_close($this->_connection);
  391. -
  392.         $this->_connection null;
  393. -
  394.     }
  395. -
  396.  
  397. -
  398.     /**
  399. -
  400.      * Returns an SQL statement for preparation.
  401. -
  402.      *
  403. -
  404.      * @param string $sql The SQL statement with placeholders.
  405. -
  406.      * @return Doctrine_Statement_Db2 
  407. -
  408.      */
  409. -
  410.     public function prepare($sql)
  411. -
  412.     {
  413. -
  414.         $this->_connect();
  415. -
  416.         $stmt new Doctrine_Statement_Db2($this$sql);
  417. -
  418.         $stmt->setFetchMode($this->_fetchMode);
  419. -
  420.         return $stmt;
  421. -
  422.     }
  423. -
  424.  
  425. -
  426.     /**
  427. -
  428.      * Gets the execution mode
  429. -
  430.      *
  431. -
  432.      * @return int the execution mode (DB2_AUTOCOMMIT_ON or DB2_AUTOCOMMIT_OFF)
  433. -
  434.      */
  435. -
  436.     public function _getExecuteMode()
  437. -
  438.     {
  439. -
  440.         return $this->_execute_mode;
  441. -
  442.     }
  443. -
  444.  
  445. -
  446.     /**
  447. -
  448.      * @param integer $mode 
  449. -
  450.      * @return void 
  451. -
  452.      */
  453. -
  454.     public function _setExecuteMode($mode)
  455. -
  456.     {
  457. -
  458.         switch ($mode{
  459. -
  460.             case DB2_AUTOCOMMIT_OFF:
  461. -
  462.             case DB2_AUTOCOMMIT_ON:
  463. -
  464.                 $this->_execute_mode $mode;
  465. -
  466.                 db2_autocommit($this->_connection$mode);
  467. -
  468.                 break;
  469. -
  470.             default:
  471. -
  472.                 throw new Doctrine_Adapter_Db2_Exception("execution mode not supported");
  473. -
  474.                 break;
  475. -
  476.         }
  477. -
  478.     }
  479. -
  480.  
  481. -
  482.     /**
  483. -
  484.      * Quote a raw string.
  485. -
  486.      *
  487. -
  488.      * @param string $value     Raw string
  489. -
  490.      * @return string           Quoted string
  491. -
  492.      */
  493. -
  494.     protected function _quote($value)
  495. -
  496.     {
  497. -
  498.         /**
  499. -
  500.          * Some releases of the IBM DB2 extension appear
  501. -
  502.          * to be missing the db2_escape_string() method.
  503. -
  504.          * The method was added in ibm_db2.c revision 1.53
  505. -
  506.          * according to cvs.php.net.  But the function is
  507. -
  508.          * not present in my build of PHP 5.2.1.
  509. -
  510.          */
  511. -
  512.         if (function_exists('db2_escape_string')) {
  513. -
  514.             return db2_escape_string($value);
  515. -
  516.         }
  517. -
  518.         return parent::_quote($value);
  519. -
  520.     }
  521. -
  522.  
  523. -
  524.     /**
  525. -
  526.      * @return string 
  527. -
  528.      */
  529. -
  530.     public function getQuoteIdentifierSymbol()
  531. -
  532.     {
  533. -
  534.         $info db2_server_info($this->_connection);
  535. -
  536.         $identQuote $info->IDENTIFIER_QUOTE_CHAR;
  537. -
  538.         return $identQuote;
  539. -
  540.     }
  541. -
  542.     /**
  543. -
  544.      * Begin a transaction.
  545. -
  546.      *
  547. -
  548.      * @return void 
  549. -
  550.      */
  551. -
  552.     protected function _beginTransaction()
  553. -
  554.     {
  555. -
  556.         $this->_setExecuteMode(DB2_AUTOCOMMIT_OFF);
  557. -
  558.     }
  559. -
  560.  
  561. -
  562.     /**
  563. -
  564.      * Commit a transaction.
  565. -
  566.      *
  567. -
  568.      * @return void 
  569. -
  570.      */
  571. -
  572.     protected function _commit()
  573. -
  574.     {
  575. -
  576.         if (!db2_commit($this->_connection)) {
  577. -
  578.             throw new Doctrine_Adapter_Db2_Exception(
  579. -
  580.                 db2_conn_errormsg($this->_connection),
  581. -
  582.                 db2_conn_error($this->_connection));
  583. -
  584.         }
  585. -
  586.  
  587. -
  588.         $this->_setExecuteMode(DB2_AUTOCOMMIT_ON);
  589. -
  590.     }
  591. -
  592.  
  593. -
  594.     /**
  595. -
  596.      * Rollback a transaction.
  597. -
  598.      *
  599. -
  600.      * @return void 
  601. -
  602.      */
  603. -
  604.     protected function _rollBack()
  605. -
  606.     {
  607. -
  608.         if (!db2_rollback($this->_connection)) {
  609. -
  610.             throw new Doctrine_Adapter_Db2_Exception(
  611. -
  612.                 db2_conn_errormsg($this->_connection),
  613. -
  614.                 db2_conn_error($this->_connection));
  615. -
  616.         }
  617. -
  618.         $this->_setExecuteMode(DB2_AUTOCOMMIT_ON);
  619. -
  620.     }
  621. -
  622.  
  623. -
  624.     /**
  625. -
  626.      * Set the fetch mode.
  627. -
  628.      *
  629. -
  630.      * @param integer $mode 
  631. -
  632.      * @return void 
  633. -
  634.      */
  635. -
  636.     public function setFetchMode($mode)
  637. -
  638.     {
  639. -
  640.         switch ($mode{
  641. -
  642.             case Doctrine::FETCH_NUM:   // seq array
  643. -
  644.             case Doctrine::FETCH_ASSOC// assoc array
  645. -
  646.             case Doctrine::FETCH_BOTH:  // seq+assoc array
  647. -
  648.             case Doctrine::FETCH_OBJ:   // object
  649. -
  650.                 $this->_fetchMode $mode;
  651. -
  652.                 break;
  653. -
  654.             default:
  655. -
  656.                 throw new Doctrine_Adapter_Db2_Exception('Invalid fetch mode specified');
  657. -
  658.                 break;
  659. -
  660.         }
  661. -
  662.     }
  663. -
  664. }
  665. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMock.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMock.php.html deleted file mode 100644 index be4cc6a83..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMock.php.html +++ /dev/null @@ -1,170 +0,0 @@ - -
-

Source for file Mock.php

-

Documentation is available at Mock.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mock.php 1819 2007-06-25 17:48:44Z subzero2000 $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Adapter_Mock
  44. -
  45.  * This class is used for special testing purposes.
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Adapter
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1819 $
  64. -
  65.  */
  66. -
  67. class Doctrine_Adapter_Mock implements Doctrine_Adapter_InterfaceCountable
  68. -
  69. {
  70. -
  71.     private $name;
  72. -
  73.     
  74. -
  75.     private $queries = array();
  76. -
  77.     
  78. -
  79.     private $exception = array();
  80. -
  81.     
  82. -
  83.     private $lastInsertIdFail = false;
  84. -
  85.  
  86. -
  87.     public function __construct($name null
  88. -
  89.     {
  90. -
  91.         $this->name = $name;
  92. -
  93.     }
  94. -
  95.     public function getName(
  96. -
  97.     {
  98. -
  99.         return $this->name;
  100. -
  101.     }
  102. -
  103.     public function pop(
  104. -
  105.     {
  106. -
  107.         return array_pop($this->queries);
  108. -
  109.     }
  110. -
  111.     public function forceException($name$message ''$code 0
  112. -
  113.     {
  114. -
  115.         $this->exception = array($name$message$code);
  116. -
  117.     }
  118. -
  119.     public function prepare($query)
  120. -
  121.     {
  122. -
  123.         $mock new Doctrine_Adapter_Statement_Mock($this$query);
  124. -
  125.         $mock->queryString $query;
  126. -
  127.         
  128. -
  129.         return $mock;
  130. -
  131.     }
  132. -
  133.     public function addQuery($query)
  134. -
  135.     {
  136. -
  137.         $this->queries[$query;
  138. -
  139.     }
  140. -
  141.     public function query($query
  142. -
  143.     {
  144. -
  145.         $this->queries[$query;
  146. -
  147.  
  148. -
  149.         $e    $this->exception;
  150. -
  151.  
  152. -
  153.         ifempty($e)) {
  154. -
  155.             $name $e[0];
  156. -
  157.  
  158. -
  159.             $this->exception = array();
  160. -
  161.  
  162. -
  163.             throw new $name($e[1]$e[2]);
  164. -
  165.         }
  166. -
  167.  
  168. -
  169.         $stmt new Doctrine_Adapter_Statement_Mock($this$query);
  170. -
  171.         $stmt->queryString $query;
  172. -
  173.         
  174. -
  175.         return $stmt;
  176. -
  177.     }
  178. -
  179.     public function getAll(
  180. -
  181.     {
  182. -
  183.         return $this->queries;
  184. -
  185.     }
  186. -
  187.     public function quote($input
  188. -
  189.     {
  190. -
  191.         return "'" addslashes($input"'";
  192. -
  193.     }
  194. -
  195.     public function exec($statement
  196. -
  197.     {
  198. -
  199.         $this->queries[$statement;
  200. -
  201.  
  202. -
  203.         $e    $this->exception;
  204. -
  205.  
  206. -
  207.         ifempty($e)) {
  208. -
  209.             $name $e[0];
  210. -
  211.  
  212. -
  213.             $this->exception = array();
  214. -
  215.  
  216. -
  217.             throw new $name($e[1]$e[2]);
  218. -
  219.         }
  220. -
  221.  
  222. -
  223.         return 0;
  224. -
  225.     }
  226. -
  227.     public function forceLastInsertIdFail($fail true
  228. -
  229.     {
  230. -
  231.         if ($fail{
  232. -
  233.             $this->lastInsertIdFail = true;
  234. -
  235.         else {
  236. -
  237.             $this->lastInsertIdFail = false;
  238. -
  239.         }
  240. -
  241.     }
  242. -
  243.     public function lastInsertId()
  244. -
  245.     {
  246. -
  247.         $this->queries['LAST_INSERT_ID()';
  248. -
  249.         if ($this->lastInsertIdFail{
  250. -
  251.             return null;
  252. -
  253.         else {
  254. -
  255.             return 1;
  256. -
  257.         }
  258. -
  259.     }
  260. -
  261.     public function count(
  262. -
  263.     {
  264. -
  265.         return count($this->queries);    
  266. -
  267.     }
  268. -
  269.     public function beginTransaction()
  270. -
  271.     {
  272. -
  273.         $this->queries['BEGIN TRANSACTION';
  274. -
  275.     }
  276. -
  277.     public function commit()
  278. -
  279.     {
  280. -
  281.         $this->queries['COMMIT';
  282. -
  283.     }
  284. -
  285.     public function rollBack(
  286. -
  287.     {
  288. -
  289.         $this->queries['ROLLBACK';
  290. -
  291.     }
  292. -
  293.     public function errorCode(
  294. -
  295.     }
  296. -
  297.     public function errorInfo()
  298. -
  299.     }
  300. -
  301.     public function getAttribute($attribute
  302. -
  303.     {
  304. -
  305.         if($attribute == Doctrine::ATTR_DRIVER_NAME)
  306. -
  307.             return strtolower($this->name);
  308. -
  309.     }
  310. -
  311.     public function setAttribute($attribute$value
  312. -
  313.     {
  314. -
  315.                                        
  316. -
  317.     }
  318. -
  319.     public function sqliteCreateFunction()
  320. -
  321.     }
  322. -
  323. }
  324. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMysqli.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMysqli.php.html deleted file mode 100644 index 387146b5f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterMysqli.php.html +++ /dev/null @@ -1,149 +0,0 @@ - -
-

Source for file Mysqli.php

-

Documentation is available at Mysqli.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mock.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Adapter_Mysqli
  44. -
  45.  * This class is used for special testing purposes.
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Adapter
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1080 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * Creates a connection to the database.
  73. -
  74.      *
  75. -
  76.      * @return void 
  77. -
  78.      * @throws Doctrine_Adapter_Mysqli_Exception
  79. -
  80.      */
  81. -
  82.     protected function _connect()
  83. -
  84.     {
  85. -
  86.         if ($this->_connection{
  87. -
  88.             return;
  89. -
  90.         }
  91. -
  92.         // Suppress connection warnings here.
  93. -
  94.         // Throw an exception instead.
  95. -
  96.         @$this->_connection new mysqli(
  97. -
  98.             $this->_config['host'],
  99. -
  100.             $this->_config['username'],
  101. -
  102.             $this->_config['password'],
  103. -
  104.             $this->_config['dbname']
  105. -
  106.         );
  107. -
  108.         if ($this->_connection === false || mysqli_connect_errno()) {
  109. -
  110.             throw new Doctrine_Adapter_Mysqli_Exception(mysqli_connect_error());
  111. -
  112.         }
  113. -
  114.     }
  115. -
  116.  
  117. -
  118.     /**
  119. -
  120.      * Force the connection to close.
  121. -
  122.      *
  123. -
  124.      * @return void 
  125. -
  126.      */
  127. -
  128.     public function closeConnection()
  129. -
  130.     {
  131. -
  132.         $this->_connection->close();
  133. -
  134.         $this->_connection null;
  135. -
  136.     }
  137. -
  138.  
  139. -
  140.     /**
  141. -
  142.      * Prepare a statement and return a PDOStatement-like object.
  143. -
  144.      *
  145. -
  146.      * @param  string  $sql  SQL query
  147. -
  148.      * @return Doctrine_Statement_Mysqli 
  149. -
  150.      */
  151. -
  152.     public function prepare($sql)
  153. -
  154.     {
  155. -
  156.         $this->_connect();
  157. -
  158.         $stmt new Doctrine_Statement_Mysqli($this$sql);
  159. -
  160.         $stmt->setFetchMode($this->_fetchMode);
  161. -
  162.         return $stmt;
  163. -
  164.     }
  165. -
  166.  
  167. -
  168.     /**
  169. -
  170.      * Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
  171. -
  172.      *
  173. -
  174.      * As a convention, on RDBMS brands that support sequences
  175. -
  176.      * (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence
  177. -
  178.      * from the arguments and returns the last id generated by that sequence.
  179. -
  180.      * On RDBMS brands that support IDENTITY/AUTOINCREMENT columns, this method
  181. -
  182.      * returns the last value generated for such a column, and the table name
  183. -
  184.      * argument is disregarded.
  185. -
  186.      *
  187. -
  188.      * MySQL does not support sequences, so $tableName and $primaryKey are ignored.
  189. -
  190.      *
  191. -
  192.      * @param string $tableName   OPTIONAL Name of table.
  193. -
  194.      * @param string $primaryKey  OPTIONAL Name of primary key column.
  195. -
  196.      * @return integer 
  197. -
  198.      */
  199. -
  200.     public function lastInsertId($tableName null$primaryKey null)
  201. -
  202.     {
  203. -
  204.         $mysqli $this->_connection;
  205. -
  206.         return $mysqli->insert_id;
  207. -
  208.     }
  209. -
  210.  
  211. -
  212.     /**
  213. -
  214.      * Begin a transaction.
  215. -
  216.      *
  217. -
  218.      * @return void 
  219. -
  220.      */
  221. -
  222.     protected function _beginTransaction()
  223. -
  224.     {
  225. -
  226.         $this->_connect();
  227. -
  228.         $this->_connection->autocommit(false);
  229. -
  230.     }
  231. -
  232.  
  233. -
  234.     /**
  235. -
  236.      * Commit a transaction.
  237. -
  238.      *
  239. -
  240.      * @return void 
  241. -
  242.      */
  243. -
  244.     protected function _commit()
  245. -
  246.     {
  247. -
  248.         $this->_connect();
  249. -
  250.         $this->_connection->commit();
  251. -
  252.         $this->_connection->autocommit(true);
  253. -
  254.     }
  255. -
  256.  
  257. -
  258.     /**
  259. -
  260.      * Roll-back a transaction.
  261. -
  262.      *
  263. -
  264.      * @return void 
  265. -
  266.      */
  267. -
  268.     protected function _rollBack()
  269. -
  270.     {
  271. -
  272.         $this->_connect();
  273. -
  274.         $this->_connection->rollback();
  275. -
  276.         $this->_connection->autocommit(true);
  277. -
  278.     }
  279. -
  280. }
  281. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterOracle.php.html deleted file mode 100644 index 1fac7bee2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterOracle.php.html +++ /dev/null @@ -1,276 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mock.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Adapter');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Adapter_Oracle
  46. -
  47.  * [BORROWED FROM ZEND FRAMEWORK]
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @subpackage  Doctrine_Adapter
  54. -
  55.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 1080 $
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * User-provided configuration.
  75. -
  76.      *
  77. -
  78.      * Basic keys are:
  79. -
  80.      *
  81. -
  82.      * username => (string) Connect to the database as this username.
  83. -
  84.      * password => (string) Password associated with the username.
  85. -
  86.      * dbname   => Either the name of the local Oracle instance, or the
  87. -
  88.      *             name of the entry in tnsnames.ora to which you want to connect.
  89. -
  90.      *
  91. -
  92.      * @var array 
  93. -
  94.      */
  95. -
  96.     protected $_config = array(
  97. -
  98.         'dbname'       => null,
  99. -
  100.         'username'     => null,
  101. -
  102.         'password'     => null,
  103. -
  104.     );
  105. -
  106.  
  107. -
  108.     /**
  109. -
  110.      * @var integer 
  111. -
  112.      */
  113. -
  114.     protected $_execute_mode = OCI_COMMIT_ON_SUCCESS;
  115. -
  116.  
  117. -
  118.     /**
  119. -
  120.      * Constructor.
  121. -
  122.      *
  123. -
  124.      * $config is an array of key/value pairs containing configuration
  125. -
  126.      * options.  These options are common to most adapters:
  127. -
  128.      *
  129. -
  130.      * username => (string) Connect to the database as this username.
  131. -
  132.      * password => (string) Password associated with the username.
  133. -
  134.      * dbname   => Either the name of the local Oracle instance, or the
  135. -
  136.      *             name of the entry in tnsnames.ora to which you want to connect.
  137. -
  138.      *
  139. -
  140.      * @param array $config An array of configuration keys.
  141. -
  142.      * @throws Doctrine_Adapter_Exception
  143. -
  144.      */
  145. -
  146.     public function __construct(array $config)
  147. -
  148.     {
  149. -
  150.         if isset($config['password']|| isset($config['username'])) {
  151. -
  152.             throw new Doctrine_Adapter_Exception('config array must have at least a username and a password');
  153. -
  154.         }
  155. -
  156.  
  157. -
  158.         // @todo Let this protect backward-compatibility for one release, then remove
  159. -
  160.         if isset($config['database']|| isset($config['dbname'])) {
  161. -
  162.             $config['dbname'$config['database'];
  163. -
  164.             unset($config['database']);
  165. -
  166.             trigger_error("Deprecated config key 'database', use 'dbname' instead."E_USER_NOTICE);
  167. -
  168.         }
  169. -
  170.  
  171. -
  172.         // keep the config
  173. -
  174.         $this->_config array_merge($this->_config(array) $config);
  175. -
  176.  
  177. -
  178.         // create a profiler object
  179. -
  180.         $enabled false;
  181. -
  182.         if (array_key_exists('profiler'$this->_config)) {
  183. -
  184.             $enabled = (bool) $this->_config['profiler'];
  185. -
  186.             unset($this->_config['profiler']);
  187. -
  188.         }
  189. -
  190.  
  191. -
  192.         $this->_profiler new Doctrine_Profiler($enabled);
  193. -
  194.     }
  195. -
  196.  
  197. -
  198.     /**
  199. -
  200.      * Creates a connection resource.
  201. -
  202.      *
  203. -
  204.      * @return void 
  205. -
  206.      * @throws Doctrine_Adapter_Oracle_Exception
  207. -
  208.      */
  209. -
  210.     protected function _connect()
  211. -
  212.     {
  213. -
  214.         if (is_resource($this->_connection)) {
  215. -
  216.             // connection already exists
  217. -
  218.             return;
  219. -
  220.         }
  221. -
  222.  
  223. -
  224.         if (!extension_loaded('oci8')) {
  225. -
  226.             throw new Doctrine_Adapter_Oracle_Exception('The OCI8 extension is required for this adapter but not loaded');
  227. -
  228.         }
  229. -
  230.  
  231. -
  232.         if (isset($this->_config['dbname'])) {
  233. -
  234.             $this->_connection @oci_connect(
  235. -
  236.                 $this->_config['username'],
  237. -
  238.                 $this->_config['password'],
  239. -
  240.                 $this->_config['dbname']);
  241. -
  242.         else {
  243. -
  244.             $this->_connection oci_connect(
  245. -
  246.                 $this->_config['username'],
  247. -
  248.                 $this->_config['password']);
  249. -
  250.         }
  251. -
  252.  
  253. -
  254.         // check the connection
  255. -
  256.         if (!$this->_connection{
  257. -
  258.             throw new Doctrine_Adapter_Oracle_Exception(oci_error());
  259. -
  260.         }
  261. -
  262.     }
  263. -
  264.  
  265. -
  266.     /**
  267. -
  268.      * Force the connection to close.
  269. -
  270.      *
  271. -
  272.      * @return void 
  273. -
  274.      */
  275. -
  276.     public function closeConnection()
  277. -
  278.     {
  279. -
  280.         if (is_resource($this->_connection)) {
  281. -
  282.             oci_close($this->_connection);
  283. -
  284.         }
  285. -
  286.         $this->_connection null;
  287. -
  288.     }
  289. -
  290.  
  291. -
  292.     /**
  293. -
  294.      * Returns an SQL statement for preparation.
  295. -
  296.      *
  297. -
  298.      * @param string $sql The SQL statement with placeholders.
  299. -
  300.      * @return Doctrine_Statement_Oracle 
  301. -
  302.      */
  303. -
  304.     public function prepare($sql)
  305. -
  306.     {
  307. -
  308.         $this->_connect();
  309. -
  310.         $stmt new Doctrine_Statement_Oracle($this$sql);
  311. -
  312.         $stmt->setFetchMode($this->_fetchMode);
  313. -
  314.         return $stmt;
  315. -
  316.     }
  317. -
  318.  
  319. -
  320.     /**
  321. -
  322.      * Quote a raw string.
  323. -
  324.      *
  325. -
  326.      * @param string $value     Raw string
  327. -
  328.      * @return string           Quoted string
  329. -
  330.      */
  331. -
  332.     protected function _quote($value)
  333. -
  334.     {
  335. -
  336.         $value str_replace("'""''"$value);
  337. -
  338.         return "'" addcslashes($value"\000\n\r\\\032""'";
  339. -
  340.     }
  341. -
  342.  
  343. -
  344.     /**
  345. -
  346.      * Quote a table identifier and alias.
  347. -
  348.      *
  349. -
  350.      * @param string|array|Doctrine_Expr$ident The identifier or expression.
  351. -
  352.      * @param string $alias An alias for the table.
  353. -
  354.      * @return string The quoted identifier and alias.
  355. -
  356.      */
  357. -
  358.     public function quoteTableAs($ident$alias)
  359. -
  360.     {
  361. -
  362.         // Oracle doesn't allow the 'AS' keyword between the table identifier/expression and alias.
  363. -
  364.         return $this->_quoteIdentifierAs($ident$alias' ');
  365. -
  366.     }
  367. -
  368.     /**
  369. -
  370.      * Leave autocommit mode and begin a transaction.
  371. -
  372.      *
  373. -
  374.      * @return void 
  375. -
  376.      */
  377. -
  378.     protected function _beginTransaction()
  379. -
  380.     {
  381. -
  382.         $this->_setExecuteMode(OCI_DEFAULT);
  383. -
  384.     }
  385. -
  386.     /**
  387. -
  388.      * Commit a transaction and return to autocommit mode.
  389. -
  390.      *
  391. -
  392.      * @return void 
  393. -
  394.      * @throws Doctrine_Adapter_Oracle_Exception
  395. -
  396.      */
  397. -
  398.     protected function _commit()
  399. -
  400.     {
  401. -
  402.         if (!oci_commit($this->_connection)) {
  403. -
  404.             throw new Doctrine_Adapter_Oracle_Exception(oci_error($this->_connection));
  405. -
  406.         }
  407. -
  408.         $this->_setExecuteMode(OCI_COMMIT_ON_SUCCESS);
  409. -
  410.     }
  411. -
  412.     /**
  413. -
  414.      * Roll back a transaction and return to autocommit mode.
  415. -
  416.      *
  417. -
  418.      * @return void 
  419. -
  420.      * @throws Doctrine_Adapter_Oracle_Exception
  421. -
  422.      */
  423. -
  424.     protected function _rollBack()
  425. -
  426.     {
  427. -
  428.         if (!oci_rollback($this->_connection)) {
  429. -
  430.             throw new Doctrine_Adapter_Oracle_Exception(oci_error($this->_connection));
  431. -
  432.         }
  433. -
  434.         $this->_setExecuteMode(OCI_COMMIT_ON_SUCCESS);
  435. -
  436.     }
  437. -
  438.  
  439. -
  440.     /**
  441. -
  442.      * Set the fetch mode.
  443. -
  444.      *
  445. -
  446.      * @todo Support FETCH_CLASS and FETCH_INTO.
  447. -
  448.      *
  449. -
  450.      * @param integer $mode A fetch mode.
  451. -
  452.      * @return void 
  453. -
  454.      * @throws Doctrine_Adapter_Exception
  455. -
  456.      */
  457. -
  458.     public function setFetchMode($mode)
  459. -
  460.     {
  461. -
  462.         switch ($mode{
  463. -
  464.             case Doctrine::FETCH_NUM:   // seq array
  465. -
  466.             case Doctrine::FETCH_ASSOC// assoc array
  467. -
  468.             case Doctrine::FETCH_BOTH:  // seq+assoc array
  469. -
  470.             case Doctrine::FETCH_OBJ:   // object
  471. -
  472.                 $this->_fetchMode $mode;
  473. -
  474.                 break;
  475. -
  476.             default:
  477. -
  478.                 throw new Doctrine_Adapter_Exception('Invalid fetch mode specified');
  479. -
  480.                 break;
  481. -
  482.         }
  483. -
  484.     }
  485. -
  486.     /**
  487. -
  488.      * @param integer $mode 
  489. -
  490.      * @throws Doctrine_Adapter_Exception
  491. -
  492.      */
  493. -
  494.     private function _setExecuteMode($mode)
  495. -
  496.     {
  497. -
  498.         switch($mode{
  499. -
  500.             case OCI_COMMIT_ON_SUCCESS:
  501. -
  502.             case OCI_DEFAULT:
  503. -
  504.             case OCI_DESCRIBE_ONLY:
  505. -
  506.                 $this->_execute_mode $mode;
  507. -
  508.                 break;
  509. -
  510.             default:
  511. -
  512.                 throw new Doctrine_Adapter_Exception('wrong execution mode specified');
  513. -
  514.                 break;
  515. -
  516.         }
  517. -
  518.     }
  519. -
  520.     /**
  521. -
  522.      * @return 
  523. -
  524.      */
  525. -
  526.     public function _getExecuteMode()
  527. -
  528.     {
  529. -
  530.         return $this->_execute_mode;
  531. -
  532.     }
  533. -
  534. }
  535. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterStatementMock.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterStatementMock.php.html deleted file mode 100644 index d3f12e206..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Adapter_DoctrineAdapterStatementMock.php.html +++ /dev/null @@ -1,342 +0,0 @@ - -
-

Source for file Mock.php

-

Documentation is available at Mock.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mock.php 1917 2007-07-01 11:27:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Adapter_Statement_Mock
  44. -
  45.  * This class is used for special testing purposes.
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Adapter
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1917 $
  64. -
  65.  */
  66. -
  67. class Doctrine_Adapter_Statement_Mock implements Doctrine_Adapter_Statement_Interface
  68. -
  69. {
  70. -
  71.     private $mock;
  72. -
  73.     
  74. -
  75.     public $queryString;
  76. -
  77.  
  78. -
  79.     public function __construct($mock)
  80. -
  81.     {
  82. -
  83.         $this->mock  = $mock;
  84. -
  85.     }
  86. -
  87.     /**
  88. -
  89.      * bindColumn
  90. -
  91.      * Bind a column to a PHP variable
  92. -
  93.      *
  94. -
  95.      * @param mixed $column         Number of the column (1-indexed) or name of the column in the result set.
  96. -
  97.      *                               If using the column name, be aware that the name should match
  98. -
  99.      *                               the case of the column, as returned by the driver.
  100. -
  101.      * @param string $param         Name of the PHP variable to which the column will be bound.
  102. -
  103.      * @param integer $type         Data type of the parameter, specified by the Doctrine::PARAM_* constants.
  104. -
  105.      * @return boolean              Returns TRUE on success or FALSE on failure
  106. -
  107.      */
  108. -
  109.     public function bindColumn($column$param$type null)
  110. -
  111.     {
  112. -
  113.         
  114. -
  115.     }
  116. -
  117.     /**
  118. -
  119.      * bindValue
  120. -
  121.      * Binds a value to a corresponding named or question mark
  122. -
  123.      * placeholder in the SQL statement that was use to prepare the statement.
  124. -
  125.      *
  126. -
  127.      * @param mixed $param          Parameter identifier. For a prepared statement using named placeholders,
  128. -
  129.      *                               this will be a parameter name of the form :name. For a prepared statement
  130. -
  131.      *                               using question mark placeholders, this will be the 1-indexed position of the parameter
  132. -
  133.      *
  134. -
  135.      * @param mixed $value          The value to bind to the parameter.
  136. -
  137.      * @param integer $type         Explicit data type for the parameter using the Doctrine::PARAM_* constants.
  138. -
  139.      *
  140. -
  141.      * @return boolean              Returns TRUE on success or FALSE on failure.
  142. -
  143.      */
  144. -
  145.     public function bindValue($param$value$type null)
  146. -
  147.     {
  148. -
  149.         
  150. -
  151.     }
  152. -
  153.     /**
  154. -
  155.      * bindParam
  156. -
  157.      * Binds a PHP variable to a corresponding named or question mark placeholder in the
  158. -
  159.      * SQL statement that was use to prepare the statement. Unlike Doctrine_Adapter_Statement_Interface->bindValue(),
  160. -
  161.      * the variable is bound as a reference and will only be evaluated at the time
  162. -
  163.      * that Doctrine_Adapter_Statement_Interface->execute() is called.
  164. -
  165.      *
  166. -
  167.      * Most parameters are input parameters, that is, parameters that are
  168. -
  169.      * used in a read-only fashion to build up the query. Some drivers support the invocation
  170. -
  171.      * of stored procedures that return data as output parameters, and some also as input/output
  172. -
  173.      * parameters that both send in data and are updated to receive it.
  174. -
  175.      *
  176. -
  177.      * @param mixed $param          Parameter identifier. For a prepared statement using named placeholders,
  178. -
  179.      *                               this will be a parameter name of the form :name. For a prepared statement
  180. -
  181.      *                               using question mark placeholders, this will be the 1-indexed position of the parameter
  182. -
  183.      *
  184. -
  185.      * @param mixed $variable       Name of the PHP variable to bind to the SQL statement parameter.
  186. -
  187.      *
  188. -
  189.      * @param integer $type         Explicit data type for the parameter using the Doctrine::PARAM_* constants. To return
  190. -
  191.      *                               an INOUT parameter from a stored procedure, use the bitwise OR operator to set the
  192. -
  193.      *                               Doctrine::PARAM_INPUT_OUTPUT bits for the data_type parameter.
  194. -
  195.      *
  196. -
  197.      * @param integer $length       Length of the data type. To indicate that a parameter is an OUT parameter
  198. -
  199.      *                               from a stored procedure, you must explicitly set the length.
  200. -
  201.      * @param mixed $driverOptions 
  202. -
  203.      * @return boolean              Returns TRUE on success or FALSE on failure.
  204. -
  205.      */
  206. -
  207.     public function bindParam($column$variable$type null$length null$driverOptions array())
  208. -
  209.     {
  210. -
  211.         
  212. -
  213.     }
  214. -
  215.     /**
  216. -
  217.      * closeCursor
  218. -
  219.      * Closes the cursor, enabling the statement to be executed again.
  220. -
  221.      *
  222. -
  223.      * @return boolean              Returns TRUE on success or FALSE on failure.
  224. -
  225.      */
  226. -
  227.     public function closeCursor()
  228. -
  229.     {
  230. -
  231.         return true;
  232. -
  233.     }
  234. -
  235.     /** 
  236. -
  237.      * columnCount
  238. -
  239.      * Returns the number of columns in the result set
  240. -
  241.      *
  242. -
  243.      * @return integer              Returns the number of columns in the result set represented
  244. -
  245.      *                               by the Doctrine_Adapter_Statement_Interface object. If there is no result set,
  246. -
  247.      *                               this method should return 0.
  248. -
  249.      */
  250. -
  251.     public function columnCount()
  252. -
  253.     {
  254. -
  255.         return 0;        
  256. -
  257.     }
  258. -
  259.     /**
  260. -
  261.      * errorCode
  262. -
  263.      * Fetch the SQLSTATE associated with the last operation on the statement handle
  264. -
  265.      *
  266. -
  267.      * @see Doctrine_Adapter_Interface::errorCode()
  268. -
  269.      * @return string       error code string
  270. -
  271.      */
  272. -
  273.     public function errorCode()
  274. -
  275.     {
  276. -
  277.         return array();
  278. -
  279.     }
  280. -
  281.     /**
  282. -
  283.      * errorInfo
  284. -
  285.      * Fetch extended error information associated with the last operation on the statement handle
  286. -
  287.      *
  288. -
  289.      * @see Doctrine_Adapter_Interface::errorInfo()
  290. -
  291.      * @return array        error info array
  292. -
  293.      */
  294. -
  295.     public function errorInfo()
  296. -
  297.     
  298. -
  299.         return array();
  300. -
  301.     }
  302. -
  303.     /**
  304. -
  305.      * fetch
  306. -
  307.      *
  308. -
  309.      * @see Doctrine::FETCH_* constants
  310. -
  311.      * @param integer $fetchStyle           Controls how the next row will be returned to the caller.
  312. -
  313.      *                                       This value must be one of the Doctrine::FETCH_* constants,
  314. -
  315.      *                                       defaulting to Doctrine::FETCH_BOTH
  316. -
  317.      *
  318. -
  319.      * @param integer $cursorOrientation    For a PDOStatement object representing a scrollable cursor,
  320. -
  321.      *                                       this value determines which row will be returned to the caller.
  322. -
  323.      *                                       This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to
  324. -
  325.      *                                       Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your
  326. -
  327.      *                                       Doctrine_Adapter_Statement_Interface object,
  328. -
  329.      *                                       you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you
  330. -
  331.      *                                       prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
  332. -
  333.      *
  334. -
  335.      * @param integer $cursorOffset         For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the
  336. -
  337.      *                                       $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies
  338. -
  339.      *                                       the absolute number of the row in the result set that shall be fetched.
  340. -
  341.      *                                      
  342. -
  343.      *                                       For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for
  344. -
  345.      *                                       which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value
  346. -
  347.      *                                       specifies the row to fetch relative to the cursor position before
  348. -
  349.      *                                       Doctrine_Adapter_Statement_Interface->fetch() was called.
  350. -
  351.      *
  352. -
  353.      * @return mixed 
  354. -
  355.      */
  356. -
  357.     public function fetch($fetchStyle Doctrine::FETCH_BOTH,
  358. -
  359.                           $cursorOrientation Doctrine::FETCH_ORI_NEXT,
  360. -
  361.                           $cursorOffset null)
  362. -
  363.     {
  364. -
  365.         return array();
  366. -
  367.     }
  368. -
  369.     /**
  370. -
  371.      * fetchAll
  372. -
  373.      * Returns an array containing all of the result set rows
  374. -
  375.      *
  376. -
  377.      * @param integer $fetchStyle           Controls how the next row will be returned to the caller.
  378. -
  379.      *                                       This value must be one of the Doctrine::FETCH_* constants,
  380. -
  381.      *                                       defaulting to Doctrine::FETCH_BOTH
  382. -
  383.      *
  384. -
  385.      * @param integer $columnIndex          Returns the indicated 0-indexed column when the value of $fetchStyle is
  386. -
  387.      *                                       Doctrine::FETCH_COLUMN. Defaults to 0.
  388. -
  389.      *
  390. -
  391.      * @return array 
  392. -
  393.      */
  394. -
  395.     public function fetchAll($fetchMode Doctrine::FETCH_BOTH)
  396. -
  397.     {
  398. -
  399.         return array();
  400. -
  401.     }
  402. -
  403.     /**
  404. -
  405.      * execute
  406. -
  407.      * Executes a prepared statement
  408. -
  409.      *
  410. -
  411.      * If the prepared statement included parameter markers, you must either:
  412. -
  413.      * call PDOStatement->bindParam() to bind PHP variables to the parameter markers:
  414. -
  415.      * bound variables pass their value as input and receive the output value,
  416. -
  417.      * if any, of their associated parameter markers or pass an array of input-only
  418. -
  419.      * parameter values
  420. -
  421.      *
  422. -
  423.      *
  424. -
  425.      * @param array $params             An array of values with as many elements as there are
  426. -
  427.      *                                   bound parameters in the SQL statement being executed.
  428. -
  429.      * @return boolean                  Returns TRUE on success or FALSE on failure.
  430. -
  431.      */
  432. -
  433.     public function execute($params null)
  434. -
  435.     {
  436. -
  437.         if(is_object($this->mock)) {
  438. -
  439.             $this->mock->addQuery($this->queryString);
  440. -
  441.         }
  442. -
  443.         return true;
  444. -
  445.     }
  446. -
  447.     /**
  448. -
  449.      * fetchColumn
  450. -
  451.      * Returns a single column from the next row of a
  452. -
  453.      * result set or FALSE if there are no more rows.
  454. -
  455.      *
  456. -
  457.      * @param integer $columnIndex          0-indexed number of the column you wish to retrieve from the row. If no
  458. -
  459.      *                                       value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
  460. -
  461.      *                                       fetches the first column.
  462. -
  463.      *
  464. -
  465.      * @return string                       returns a single column in the next row of a result set.
  466. -
  467.      */
  468. -
  469.     public function fetchColumn($columnIndex 0)
  470. -
  471.     {
  472. -
  473.         return 0;
  474. -
  475.     }
  476. -
  477.     /**
  478. -
  479.      * fetchObject
  480. -
  481.      * Fetches the next row and returns it as an object.
  482. -
  483.      *
  484. -
  485.      * Fetches the next row and returns it as an object. This function is an alternative to
  486. -
  487.      * Doctrine_Adapter_Statement_Interface->fetch() with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.
  488. -
  489.      *
  490. -
  491.      * @param string $className             Name of the created class, defaults to stdClass.
  492. -
  493.      * @param array $args                   Elements of this array are passed to the constructor.
  494. -
  495.      *
  496. -
  497.      * @return mixed                        an instance of the required class with property names that correspond
  498. -
  499.      *                                       to the column names or FALSE in case of an error.
  500. -
  501.      */
  502. -
  503.     public function fetchObject($className 'stdClass'$args array()) 
  504. -
  505.     {
  506. -
  507.         return new $className();
  508. -
  509.     }
  510. -
  511.     /**
  512. -
  513.      * nextRowset
  514. -
  515.      * Advances to the next rowset in a multi-rowset statement handle
  516. -
  517.      * 
  518. -
  519.      * Some database servers support stored procedures that return more than one rowset
  520. -
  521.      * (also known as a result set). The nextRowset() method enables you to access the second
  522. -
  523.      * and subsequent rowsets associated with a PDOStatement object. Each rowset can have a
  524. -
  525.      * different set of columns from the preceding rowset.
  526. -
  527.      *
  528. -
  529.      * @return boolean                      Returns TRUE on success or FALSE on failure.
  530. -
  531.      */
  532. -
  533.     public function nextRowset()
  534. -
  535.     {
  536. -
  537.         return true;
  538. -
  539.     }
  540. -
  541.     /**
  542. -
  543.      * rowCount
  544. -
  545.      * rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement
  546. -
  547.      * executed by the corresponding object.
  548. -
  549.      *
  550. -
  551.      * If the last SQL statement executed by the associated Statement object was a SELECT statement,
  552. -
  553.      * some databases may return the number of rows returned by that statement. However,
  554. -
  555.      * this behaviour is not guaranteed for all databases and should not be
  556. -
  557.      * relied on for portable applications.
  558. -
  559.      *
  560. -
  561.      * @return integer                      Returns the number of rows.
  562. -
  563.      */
  564. -
  565.     public function rowCount()
  566. -
  567.     
  568. -
  569.         return 0;
  570. -
  571.     }
  572. -
  573.     /**
  574. -
  575.      * getColumnMeta
  576. -
  577.      * Returns metadata for a column in a result set
  578. -
  579.      *
  580. -
  581.      * @param integer $column               The 0-indexed column in the result set.
  582. -
  583.      *
  584. -
  585.      * @return array                        Associative meta data array with the following structure:
  586. -
  587.      *
  588. -
  589.      *           native_type                 The PHP native type used to represent the column value.
  590. -
  591.      *           driver:decl_                type The SQL type used to represent the column value in the database. If the column in the result set is the result of a function, this value is not returned by PDOStatement->getColumnMeta().
  592. -
  593.      *           flags                       Any flags set for this column.
  594. -
  595.      *           name                        The name of this column as returned by the database.
  596. -
  597.      *           len                         The length of this column. Normally -1 for types other than floating point decimals.
  598. -
  599.      *           precision                   The numeric precision of this column. Normally 0 for types other than floating point decimals.
  600. -
  601.      *           pdo_type                    The type of this column as represented by the PDO::PARAM_* constants.
  602. -
  603.      */
  604. -
  605.     public function getColumnMeta($column)
  606. -
  607.     }
  608. -
  609.     /**
  610. -
  611.      * getAttribute
  612. -
  613.      * Retrieve a statement attribute
  614. -
  615.      *
  616. -
  617.      * @param integer $attribute 
  618. -
  619.      * @see Doctrine::ATTR_* constants
  620. -
  621.      * @return mixed                        the attribute value
  622. -
  623.      */
  624. -
  625.     public function getAttribute($attribute)
  626. -
  627.     }
  628. -
  629.     /**
  630. -
  631.      * setAttribute
  632. -
  633.      * Set a statement attribute
  634. -
  635.      *
  636. -
  637.      * @param integer $attribute 
  638. -
  639.      * @param mixed $value                  the value of given attribute
  640. -
  641.      * @return boolean                      Returns TRUE on success or FALSE on failure.
  642. -
  643.      */
  644. -
  645.     public function setAttribute($attribute$value)
  646. -
  647.     }
  648. -
  649.     /**
  650. -
  651.      * setFetchMode
  652. -
  653.      * Set the default fetch mode for this statement
  654. -
  655.      *
  656. -
  657.      * @param integer $mode                 The fetch mode must be one of the Doctrine::FETCH_* constants.
  658. -
  659.      * @return boolean                      Returns 1 on success or FALSE on failure.
  660. -
  661.      */
  662. -
  663.     public function setFetchMode($mode$arg1 null$arg2 null)
  664. -
  665.     }
  666. -
  667. }
  668. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCache.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCache.php.html deleted file mode 100644 index 3cb773fb2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCache.php.html +++ /dev/null @@ -1,409 +0,0 @@ - -
-

Source for file Cache.php

-

Documentation is available at Cache.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Cache.php 1857 2007-06-26 22:30:23Z subzero2000 $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_EventListener');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1857 $
  64. -
  65.  */
  66. -
  67. class Doctrine_Cache extends Doctrine_EventListener implements CountableIteratorAggregate
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var array $_options                         an array of general caching options
  74. -
  75.      */
  76. -
  77.     protected $_options = array('size'                  => 1000,
  78. -
  79.                                 'lifeTime'              => 3600,
  80. -
  81.                                 'addStatsPropability'   => 0.25,
  82. -
  83.                                 'savePropability'       => 0.10,
  84. -
  85.                                 'cleanPropability'      => 0.01,
  86. -
  87.                                 'statsFile'             => '../data/stats.cache',
  88. -
  89.                                 );
  90. -
  91.     /**
  92. -
  93.      * @var array $_queries                         query stack
  94. -
  95.      */
  96. -
  97.     protected $_queries = array();
  98. -
  99.     /**
  100. -
  101.      * @var Doctrine_Cache_Interface $_driver       the cache driver object
  102. -
  103.      */
  104. -
  105.     protected $_driver;
  106. -
  107.     /**
  108. -
  109.      * @var array $data                             current cache data array
  110. -
  111.      */
  112. -
  113.     protected $_data = array();
  114. -
  115.     /**
  116. -
  117.      * @var boolean $success                        the success of last operation
  118. -
  119.      */
  120. -
  121.     protected $_success = false;
  122. -
  123.     /**
  124. -
  125.      * constructor
  126. -
  127.      *
  128. -
  129.      * @param Doctrine_Cache_Interface|string$driver       cache driver name or a driver object
  130. -
  131.      * @param array $options                                cache driver options
  132. -
  133.      */
  134. -
  135.     public function __construct($driver$options array())
  136. -
  137.     {
  138. -
  139.         if (is_object($driver)) {
  140. -
  141.            if ($driver instanceof Doctrine_Cache_Interface)) {
  142. -
  143.                throw new Doctrine_Cache_Exception('Driver should implement Doctrine_Cache_Interface.');
  144. -
  145.            }
  146. -
  147.            
  148. -
  149.            $this->_driver = $driver;
  150. -
  151.            $this->_driver->setOptions($options);
  152. -
  153.         else {
  154. -
  155.             $class 'Doctrine_Cache_' ucwords(strtolower($driver));
  156. -
  157.     
  158. -
  159.             if class_exists($class)) {
  160. -
  161.                 throw new Doctrine_Cache_Exception('Cache driver ' $driver ' could not be found.');
  162. -
  163.             }
  164. -
  165.     
  166. -
  167.             $this->_driver = new $class($options);
  168. -
  169.         }
  170. -
  171.     }
  172. -
  173.     /**
  174. -
  175.      * getDriver
  176. -
  177.      * returns the current cache driver
  178. -
  179.      *
  180. -
  181.      * @return Doctrine_Cache_Driver 
  182. -
  183.      */
  184. -
  185.     public function getDriver()
  186. -
  187.     {
  188. -
  189.         return $this->_driver;
  190. -
  191.     }
  192. -
  193.     /**
  194. -
  195.      * setOption
  196. -
  197.      *
  198. -
  199.      * @param mixed $option     the option name
  200. -
  201.      * @param mixed $value      option value
  202. -
  203.      * @return boolean          TRUE on success, FALSE on failure
  204. -
  205.      */
  206. -
  207.     public function setOption($option$value)
  208. -
  209.     {
  210. -
  211.         // sanity check (we need this since we are using isset() instead of array_key_exists())
  212. -
  213.         if ($value === null{
  214. -
  215.             throw new Doctrine_Cache_Exception('Null values not accepted for options.');
  216. -
  217.         }
  218. -
  219.  
  220. -
  221.         if (isset($this->_options[$option])) {
  222. -
  223.             $this->_options[$option$value;
  224. -
  225.             return true;
  226. -
  227.         }
  228. -
  229.         return false;
  230. -
  231.     }
  232. -
  233.     /**
  234. -
  235.      * getOption
  236. -
  237.      * 
  238. -
  239.      * @param mixed $option     the option name
  240. -
  241.      * @return mixed            option value
  242. -
  243.      */
  244. -
  245.     public function getOption($option)
  246. -
  247.     {
  248. -
  249.         if isset($this->_options[$option])) {
  250. -
  251.             throw new Doctrine_Cache_Exception('Unknown option ' $option);
  252. -
  253.         }
  254. -
  255.  
  256. -
  257.         return $this->_options[$option];
  258. -
  259.     }
  260. -
  261.     /**
  262. -
  263.      * add
  264. -
  265.      * adds a query to internal query stack
  266. -
  267.      *
  268. -
  269.      * @param string|array$query           sql query string
  270. -
  271.      * @param string $namespace             connection namespace
  272. -
  273.      * @return void 
  274. -
  275.      */
  276. -
  277.     public function add($query$namespace null)
  278. -
  279.     {
  280. -
  281.         if (isset($namespace)) {
  282. -
  283.             $this->_queries[$namespace][$query;
  284. -
  285.         else {
  286. -
  287.             $this->_queries[$query;
  288. -
  289.         }
  290. -
  291.     }
  292. -
  293.     /**
  294. -
  295.      * getQueries
  296. -
  297.      *
  298. -
  299.      * @param string $namespace     optional query namespace
  300. -
  301.      * @return array                an array of sql query strings
  302. -
  303.      */
  304. -
  305.     public function getAll($namespace null)
  306. -
  307.     {
  308. -
  309.         if (isset($namespace)) {
  310. -
  311.             ifisset($this->_queries[$namespace])) {
  312. -
  313.                 return array();
  314. -
  315.             }
  316. -
  317.  
  318. -
  319.             return $this->_queries[$namespace];
  320. -
  321.         }
  322. -
  323.         
  324. -
  325.         return $this->_queries;
  326. -
  327.     }
  328. -
  329.     /**
  330. -
  331.      * pop
  332. -
  333.      *
  334. -
  335.      * pops a query from the stack
  336. -
  337.      * @return string 
  338. -
  339.      */
  340. -
  341.     public function pop()
  342. -
  343.     {
  344. -
  345.         return array_pop($this->_queries);
  346. -
  347.     }
  348. -
  349.     /**
  350. -
  351.      * reset
  352. -
  353.      *
  354. -
  355.      * removes all queries from the query stack
  356. -
  357.      * @return void 
  358. -
  359.      */
  360. -
  361.     public function reset()
  362. -
  363.     {
  364. -
  365.         $this->_queries = array();
  366. -
  367.     }
  368. -
  369.     /**
  370. -
  371.      * count
  372. -
  373.      *
  374. -
  375.      * @return integer          the number of queries in the stack
  376. -
  377.      */
  378. -
  379.     public function count(
  380. -
  381.     {
  382. -
  383.         return count($this->_queries);
  384. -
  385.     }
  386. -
  387.     /**
  388. -
  389.      * getIterator
  390. -
  391.      *
  392. -
  393.      * @return ArrayIterator    an iterator that iterates through the query stack
  394. -
  395.      */
  396. -
  397.     public function getIterator()
  398. -
  399.     {
  400. -
  401.         return new ArrayIterator($this->_queries);
  402. -
  403.     }
  404. -
  405.     /**
  406. -
  407.      * @return boolean          whether or not the last cache operation was successful
  408. -
  409.      */
  410. -
  411.     public function isSuccessful(
  412. -
  413.     {
  414. -
  415.         return $this->_success;
  416. -
  417.     }
  418. -
  419.     /**
  420. -
  421.      * save
  422. -
  423.      *
  424. -
  425.      * @return boolean 
  426. -
  427.      */
  428. -
  429.     public function clean()
  430. -
  431.     {
  432. -
  433.         $rand (mt_rand(mt_getrandmax());
  434. -
  435.  
  436. -
  437.         if ($rand <= $this->_options['cleanPropability']{
  438. -
  439.             $queries $this->readStats();
  440. -
  441.  
  442. -
  443.             $stats   array();
  444. -
  445.     
  446. -
  447.             foreach ($queries as $query{
  448. -
  449.                 if (isset($stats[$query])) {
  450. -
  451.                     $stats[$query]++;
  452. -
  453.                 else {
  454. -
  455.                     $stats[$query1;
  456. -
  457.                 }
  458. -
  459.             }
  460. -
  461.             sort($stats);
  462. -
  463.     
  464. -
  465.             $i $this->_options['size'];
  466. -
  467.     
  468. -
  469.             while ($i--{
  470. -
  471.                 $element next($stats);
  472. -
  473.                 $query   key($stats);
  474. -
  475.  
  476. -
  477.                 $hash md5($query);
  478. -
  479.  
  480. -
  481.                 $this->_driver->delete($hash);
  482. -
  483.             }
  484. -
  485.         }
  486. -
  487.     }
  488. -
  489.     /**
  490. -
  491.      * readStats
  492. -
  493.      *
  494. -
  495.      * @return array 
  496. -
  497.      */
  498. -
  499.     public function readStats(
  500. -
  501.     {
  502. -
  503.         if ($this->_options['statsFile'!== false{
  504. -
  505.            $content file_get_contents($this->_options['statsFile']);
  506. -
  507.            
  508. -
  509.            $e explode("\n"$content);
  510. -
  511.            
  512. -
  513.            return array_map('unserialize'$e);
  514. -
  515.         }
  516. -
  517.         return array();
  518. -
  519.     }
  520. -
  521.     /**
  522. -
  523.      * appendStats
  524. -
  525.      *
  526. -
  527.      * adds all queries to stats file
  528. -
  529.      * @return void 
  530. -
  531.      */
  532. -
  533.     public function appendStats()
  534. -
  535.     {
  536. -
  537.         if ($this->_options['statsFile'!== false{
  538. -
  539.  
  540. -
  541.             if file_exists($this->_options['statsFile'])) {
  542. -
  543.                 throw new Doctrine_Cache_Exception("Couldn't save cache statistics. Cache statistics file doesn't exists!");
  544. -
  545.             }
  546. -
  547.             
  548. -
  549.             $rand (mt_rand(mt_getrandmax());
  550. -
  551.  
  552. -
  553.             if ($rand <= $this->_options['addStatsPropability']{
  554. -
  555.                 file_put_contents($this->_options['statsFile']implode("\n"array_map('serialize'$this->_queries)));
  556. -
  557.             }
  558. -
  559.         }
  560. -
  561.     }
  562. -
  563.     /**
  564. -
  565.      * preQuery
  566. -
  567.      * listens on the Doctrine_Event preQuery event
  568. -
  569.      *
  570. -
  571.      * adds the issued query to internal query stack
  572. -
  573.      * and checks if cached element exists
  574. -
  575.      *
  576. -
  577.      * @return boolean 
  578. -
  579.      */
  580. -
  581.     public function preQuery(Doctrine_Event $event)
  582. -
  583.     {
  584. -
  585.         $query $event->getQuery();
  586. -
  587.  
  588. -
  589.         $data  false;
  590. -
  591.         // only process SELECT statements
  592. -
  593.         if (strtoupper(substr(ltrim($query)06)) == 'SELECT'{
  594. -
  595.  
  596. -
  597.             $this->add($query$event->getInvoker()->getName());
  598. -
  599.  
  600. -
  601.             $data $this->_driver->fetch(md5(serialize($query)));
  602. -
  603.  
  604. -
  605.             $this->success ($datatrue false;
  606. -
  607.  
  608. -
  609.             if $data{
  610. -
  611.                 $rand (mt_rand(mt_getrandmax());
  612. -
  613.  
  614. -
  615.                 if ($rand $this->_options['savePropability']{
  616. -
  617.                     $stmt $event->getInvoker()->getAdapter()->query($query);
  618. -
  619.  
  620. -
  621.                     $data $stmt->fetchAll(Doctrine::FETCH_ASSOC);
  622. -
  623.  
  624. -
  625.                     $this->success true;
  626. -
  627.  
  628. -
  629.                     $this->_driver->save(md5(serialize($query))$data);
  630. -
  631.                 }
  632. -
  633.             }
  634. -
  635.             if ($this->success)
  636. -
  637.             {
  638. -
  639.                 $this->_data = $data;
  640. -
  641.                 return true;
  642. -
  643.             }
  644. -
  645.         }
  646. -
  647.         return false;
  648. -
  649.     }
  650. -
  651.     /**
  652. -
  653.      * preFetch
  654. -
  655.      * listens the preFetch event of Doctrine_Connection_Statement
  656. -
  657.      *
  658. -
  659.      * advances the internal pointer of cached data and returns
  660. -
  661.      * the current element
  662. -
  663.      *
  664. -
  665.      * @return array 
  666. -
  667.      */
  668. -
  669.     public function preFetch(Doctrine_Event $event)
  670. -
  671.     {
  672. -
  673.         $ret current($this->_data);
  674. -
  675.         next($this->_data);
  676. -
  677.         return $ret;
  678. -
  679.     }
  680. -
  681.     /**
  682. -
  683.      * preFetch
  684. -
  685.      * listens the preFetchAll event of Doctrine_Connection_Statement
  686. -
  687.      *
  688. -
  689.      * returns the current cache data array
  690. -
  691.      *
  692. -
  693.      * @return array 
  694. -
  695.      */
  696. -
  697.     public function preFetchAll(Doctrine_Event $event)
  698. -
  699.     {
  700. -
  701.         return $this->_data;
  702. -
  703.     }
  704. -
  705.     /**
  706. -
  707.      * preExecute
  708. -
  709.      * listens the preExecute event of Doctrine_Connection_Statement
  710. -
  711.      *
  712. -
  713.      * adds the issued query to internal query stack
  714. -
  715.      * and checks if cached element exists
  716. -
  717.      *
  718. -
  719.      * @return boolean 
  720. -
  721.      */
  722. -
  723.     public function preExecute(Doctrine_Event $event)
  724. -
  725.     {
  726. -
  727.         $query $event->getQuery();
  728. -
  729.  
  730. -
  731.         $data  false;
  732. -
  733.  
  734. -
  735.         // only process SELECT statements
  736. -
  737.         if (strtoupper(substr(ltrim($query)06)) == 'SELECT'{
  738. -
  739.  
  740. -
  741.             $this->add($query$event->getInvoker()->getDbh()->getName());
  742. -
  743.  
  744. -
  745.             $data $this->_driver->fetch(md5(serialize(array($query$event->getParams()))));
  746. -
  747.  
  748. -
  749.             $this->success ($datatrue false;
  750. -
  751.  
  752. -
  753.             if $data{
  754. -
  755.                 $rand (mt_rand(mt_getrandmax());
  756. -
  757.  
  758. -
  759.                 if ($rand <= $this->_options['savePropability']{
  760. -
  761.  
  762. -
  763.                     $stmt $event->getInvoker()->getStatement();
  764. -
  765.  
  766. -
  767.                     $stmt->execute($event->getParams());
  768. -
  769.  
  770. -
  771.                     $data $stmt->fetchAll(Doctrine::FETCH_ASSOC);
  772. -
  773.  
  774. -
  775.                     $this->success true;
  776. -
  777.  
  778. -
  779.                     $this->_driver->save(md5(serialize(array($query$event->getParams())))$data);
  780. -
  781.                 }
  782. -
  783.             }
  784. -
  785.             if ($this->success)
  786. -
  787.             {
  788. -
  789.                 $this->_data = $data;
  790. -
  791.                 return true;
  792. -
  793.             }
  794. -
  795.         }
  796. -
  797.         return false;
  798. -
  799.     }
  800. -
  801. }
  802. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheApc.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheApc.php.html deleted file mode 100644 index 3376f6f8c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheApc.php.html +++ /dev/null @@ -1,113 +0,0 @@ - -
-

Source for file Apc.php

-

Documentation is available at Apc.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Apc.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache_Apc
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * constructor
  73. -
  74.      * 
  75. -
  76.      * @param array $options    associative array of cache driver options
  77. -
  78.      */
  79. -
  80.     public function __construct($options array())
  81. -
  82.     {      
  83. -
  84.         if extension_loaded('apc')) {
  85. -
  86.             throw new Doctrine_Cache_Exception('The apc extension must be loaded for using this backend !');
  87. -
  88.         }
  89. -
  90.         parent::__construct($options);
  91. -
  92.     }
  93. -
  94.     /**
  95. -
  96.      * Test if a cache is available for the given id and (if yes) return it (false else)
  97. -
  98.      * 
  99. -
  100.      * Note : return value is always "string" (unserialization is done by the core not by the backend)
  101. -
  102.      * 
  103. -
  104.      * @param string $id cache id
  105. -
  106.      * @param boolean $testCacheValidity        if set to false, the cache validity won't be tested
  107. -
  108.      * @return string cached datas (or false)
  109. -
  110.      */
  111. -
  112.     public function fetch($id$testCacheValidity true
  113. -
  114.     {
  115. -
  116.         $tmp apc_fetch($id);
  117. -
  118.         if (is_array($tmp)) {
  119. -
  120.             return $tmp[0];
  121. -
  122.         }
  123. -
  124.         return false;
  125. -
  126.     }
  127. -
  128.     /**
  129. -
  130.      * Test if a cache is available or not (for the given id)
  131. -
  132.      *
  133. -
  134.      * @param string $id cache id
  135. -
  136.      * @return mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record
  137. -
  138.      */
  139. -
  140.     public function contains($id
  141. -
  142.     {
  143. -
  144.         $tmp apc_fetch($id);
  145. -
  146.         if (is_array($tmp)) {
  147. -
  148.             return $tmp[1];
  149. -
  150.         }
  151. -
  152.         return false;
  153. -
  154.     }
  155. -
  156.     /**
  157. -
  158.      * Save some string datas into a cache record
  159. -
  160.      *
  161. -
  162.      * Note : $data is always saved as a string
  163. -
  164.      *
  165. -
  166.      * @param string $data      data to cache
  167. -
  168.      * @param string $id        cache id
  169. -
  170.      * @param int $lifeTime     if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
  171. -
  172.      * @return boolean true if no problem
  173. -
  174.      */
  175. -
  176.     public function save($id$data$lifeTime false)
  177. -
  178.     {
  179. -
  180.         $lifeTime $this->getLifeTime($lifeTime);
  181. -
  182.  
  183. -
  184.         return (bool) apc_store($idarray($datatime())$lifeTime);
  185. -
  186.     }
  187. -
  188.     /**
  189. -
  190.      * Remove a cache record
  191. -
  192.      * 
  193. -
  194.      * @param string $id cache id
  195. -
  196.      * @return boolean true if no problem
  197. -
  198.      */
  199. -
  200.     public function delete($id
  201. -
  202.     {
  203. -
  204.         return apc_delete($id);
  205. -
  206.     }
  207. -
  208. }
  209. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheArray.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheArray.php.html deleted file mode 100644 index 6ec5a527c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheArray.php.html +++ /dev/null @@ -1,117 +0,0 @@ - -
-

Source for file Array.php

-

Documentation is available at Array.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Array.php 1495 2007-05-27 18:56:04Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache_Interface
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1495 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. class Doctrine_Cache_Array implements CountableDoctrine_Cache_Interface
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var array $data         an array of cached data
  74. -
  75.      */
  76. -
  77.     protected $data;
  78. -
  79.  
  80. -
  81.     /**
  82. -
  83.      * Test if a cache is available for the given id and (if yes) return it (false else)
  84. -
  85.      * 
  86. -
  87.      * Note : return value is always "string" (unserialization is done by the core not by the backend)
  88. -
  89.      * 
  90. -
  91.      * @param string $id cache id
  92. -
  93.      * @param boolean $testCacheValidity        if set to false, the cache validity won't be tested
  94. -
  95.      * @return string cached datas (or false)
  96. -
  97.      */
  98. -
  99.     public function fetch($id$testCacheValidity true
  100. -
  101.     {
  102. -
  103.         if (isset($this->data[$id])) {
  104. -
  105.             return $this->data[$id];
  106. -
  107.         }
  108. -
  109.         return null;
  110. -
  111.     }
  112. -
  113.     /**
  114. -
  115.      * Test if a cache is available or not (for the given id)
  116. -
  117.      *
  118. -
  119.      * @param string $id cache id
  120. -
  121.      * @return mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record
  122. -
  123.      */
  124. -
  125.     public function contains($id)
  126. -
  127.     {
  128. -
  129.         return isset($this->data[$id]);
  130. -
  131.     }
  132. -
  133.     /**
  134. -
  135.      * Save some string datas into a cache record
  136. -
  137.      *
  138. -
  139.      * Note : $data is always saved as a string
  140. -
  141.      *
  142. -
  143.      * @param string $data      data to cache
  144. -
  145.      * @param string $id        cache id
  146. -
  147.      * @param int $lifeTime     if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
  148. -
  149.      * @return boolean true if no problem
  150. -
  151.      */
  152. -
  153.     public function save($id$data$lifeTime false)
  154. -
  155.     {
  156. -
  157.         $this->data[$id$data;
  158. -
  159.     }
  160. -
  161.     /**
  162. -
  163.      * Remove a cache record
  164. -
  165.      * 
  166. -
  167.      * @param string $id cache id
  168. -
  169.      * @return boolean true if no problem
  170. -
  171.      */
  172. -
  173.     public function delete($id)
  174. -
  175.     {
  176. -
  177.         unset($this->data[$id]);
  178. -
  179.     }
  180. -
  181.     /**
  182. -
  183.      * Remove all cache record
  184. -
  185.      * 
  186. -
  187.      * @return boolean true if no problem
  188. -
  189.      */
  190. -
  191.     public function deleteAll()
  192. -
  193.     {
  194. -
  195.         $this->data = array();
  196. -
  197.     }
  198. -
  199.     /**
  200. -
  201.      * count
  202. -
  203.      *
  204. -
  205.      * @return integer 
  206. -
  207.      */
  208. -
  209.     public function count(
  210. -
  211.     {
  212. -
  213.         return count($this->data);
  214. -
  215.     }
  216. -
  217. }
  218. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDb.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDb.php.html deleted file mode 100644 index 04bbd8823..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDb.php.html +++ /dev/null @@ -1,204 +0,0 @@ - -
-

Source for file Db.php

-

Documentation is available at Db.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Db.php 2258 2007-08-17 10:49:51Z jepso $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache_Db
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 2258 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. class Doctrine_Cache_Db extends Doctrine_Cache_Driver implements Countable
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * constructor
  74. -
  75.      *
  76. -
  77.      * @param array $_options      an array of options
  78. -
  79.      */
  80. -
  81.     public function __construct($options
  82. -
  83.     {
  84. -
  85.         if isset($options['connection']|| 
  86. -
  87.              ($options['connection'instanceof Doctrine_Connection)) {
  88. -
  89.  
  90. -
  91.             throw new Doctrine_Cache_Exception('Connection option not set.');
  92. -
  93.         }
  94. -
  95.         
  96. -
  97.         if isset($options['tableName']||
  98. -
  99.              is_string($options['tableName'])) {
  100. -
  101.              
  102. -
  103.              throw new Doctrine_Cache_Exception('Table name option not set.');
  104. -
  105.         }
  106. -
  107.         
  108. -
  109.  
  110. -
  111.         $this->_options = $options;
  112. -
  113.     }
  114. -
  115.     /**
  116. -
  117.      * getConnection
  118. -
  119.      * returns the connection object associated with this cache driver
  120. -
  121.      *
  122. -
  123.      * @return Doctrine_Connection      connection object
  124. -
  125.      */
  126. -
  127.     public function getConnection(
  128. -
  129.     {
  130. -
  131.         return $this->_options['connection'];
  132. -
  133.     }
  134. -
  135.     /**
  136. -
  137.      * Test if a cache is available for the given id and (if yes) return it (false else)
  138. -
  139.      *
  140. -
  141.      * Note : return value is always "string" (unserialization is done by the core not by the backend)
  142. -
  143.      *
  144. -
  145.      * @param string $id cache id
  146. -
  147.      * @param boolean $testCacheValidity        if set to false, the cache validity won't be tested
  148. -
  149.      * @return string cached datas (or false)
  150. -
  151.      */
  152. -
  153.     public function fetch($id$testCacheValidity true)
  154. -
  155.     {
  156. -
  157.         $sql 'SELECT data, expire FROM ' $this->_options['tableName']
  158. -
  159.              . ' WHERE id = ?';
  160. -
  161.  
  162. -
  163.         if ($testCacheValidity{
  164. -
  165.             $sql .= ' AND (expire=0 OR expire > ' time(')';
  166. -
  167.         }
  168. -
  169.  
  170. -
  171.         $result $this->getConnection()->fetchAssoc($sqlarray($id));
  172. -
  173.         
  174. -
  175.         if isset($result[0])) {
  176. -
  177.             return false;
  178. -
  179.         }
  180. -
  181.         
  182. -
  183.         return unserialize($result[0]['data']);
  184. -
  185.     }
  186. -
  187.     /**
  188. -
  189.      * Test if a cache is available or not (for the given id)
  190. -
  191.      *
  192. -
  193.      * @param string $id cache id
  194. -
  195.      * @return mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record
  196. -
  197.      */
  198. -
  199.     public function contains($id
  200. -
  201.     {
  202. -
  203.         $sql 'SELECT expire FROM ' $this->_options['tableName']
  204. -
  205.              . ' WHERE id = ? AND (expire=0 OR expire > ' time(')';
  206. -
  207.  
  208. -
  209.         return $this->getConnection()->fetchOne($sqlarray($id));
  210. -
  211.     }
  212. -
  213.     /**
  214. -
  215.      * Save some string datas into a cache record
  216. -
  217.      *
  218. -
  219.      * Note : $data is always saved as a string
  220. -
  221.      *
  222. -
  223.      * @param string $data      data to cache
  224. -
  225.      * @param string $id        cache id
  226. -
  227.      * @param int $lifeTime     if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
  228. -
  229.      * @return boolean true if no problem
  230. -
  231.      */
  232. -
  233.     public function save($data$id$lifeTime false)
  234. -
  235.     {
  236. -
  237.         $sql 'INSERT INTO ' $this->_options['tableName']
  238. -
  239.              . ' (id, data, expire) VALUES (?, ?, ?)';
  240. -
  241.         
  242. -
  243.         if ($lifeTime{
  244. -
  245.             $expire time($lifeTime;
  246. -
  247.         else {
  248. -
  249.             $expire 0;
  250. -
  251.         }
  252. -
  253.         
  254. -
  255.         $params array($idserialize($data)$expire);
  256. -
  257.  
  258. -
  259.         return (bool) $this->getConnection()->exec($sql$params);
  260. -
  261.     }
  262. -
  263.     /**
  264. -
  265.      * Remove a cache record
  266. -
  267.      * 
  268. -
  269.      * @param string $id cache id
  270. -
  271.      * @return boolean true if no problem
  272. -
  273.      */
  274. -
  275.     public function delete($id
  276. -
  277.     {
  278. -
  279.         $sql 'DELETE FROM ' $this->_options['tableName'' WHERE id = ?';
  280. -
  281.  
  282. -
  283.         return (bool) $this->getConnection()->exec($sqlarray($id));
  284. -
  285.     }
  286. -
  287.     
  288. -
  289.     /**
  290. -
  291.      * Removes all cache records
  292. -
  293.      *
  294. -
  295.      * $return bool true on success, false on failure
  296. -
  297.      */
  298. -
  299.     public function deleteAll()
  300. -
  301.     {
  302. -
  303.         $sql 'DELETE FROM ' $this->_options['tableName'];
  304. -
  305.         
  306. -
  307.         return (bool) $this->getConnection()->exec($sql);
  308. -
  309.     }
  310. -
  311.     
  312. -
  313.     /**
  314. -
  315.      * count
  316. -
  317.      * returns the number of cached elements
  318. -
  319.      *
  320. -
  321.      * @return integer 
  322. -
  323.      */
  324. -
  325.     public function count()
  326. -
  327.     {
  328. -
  329.         $sql 'SELECT COUNT(*) FROM ' $this->_options['tableName'];
  330. -
  331.         
  332. -
  333.         return (int) $this->getConnection()->fetchOne($sql);
  334. -
  335.     }
  336. -
  337.     
  338. -
  339.     /**
  340. -
  341.      * Creates the cache table.
  342. -
  343.      */
  344. -
  345.     public function createTable()
  346. -
  347.     {
  348. -
  349.         $name $this->_options['tableName'];
  350. -
  351.         
  352. -
  353.         $fields array(
  354. -
  355.             'id' => array(
  356. -
  357.                 'type'   => 'string',
  358. -
  359.                 'length' => 255
  360. -
  361.             ),
  362. -
  363.             'data' => array(
  364. -
  365.                 'type'    => 'blob'
  366. -
  367.             ),
  368. -
  369.             'expire' => array(
  370. -
  371.                 'type'    => 'timestamp'
  372. -
  373.             )
  374. -
  375.         );
  376. -
  377.         
  378. -
  379.         $options array(
  380. -
  381.             'primary' => array('id')
  382. -
  383.         );
  384. -
  385.         
  386. -
  387.         $this->getConnection()->export->createTable($name$fields$options);
  388. -
  389.     }
  390. -
  391. }
  392. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDriver.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDriver.php.html deleted file mode 100644 index d17d229d8..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheDriver.php.html +++ /dev/null @@ -1,87 +0,0 @@ - -
-

Source for file Driver.php

-

Documentation is available at Driver.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Driver.php 1401 2007-05-20 17:54:22Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache_Driver
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1401 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. abstract class Doctrine_Cache_Driver implements Doctrine_Cache_Interface
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var array $_options      an array of options
  74. -
  75.      */
  76. -
  77.     protected $_options = array();
  78. -
  79.     
  80. -
  81.     /**
  82. -
  83.      * constructor
  84. -
  85.      *
  86. -
  87.      * @param array $_options      an array of options
  88. -
  89.      */
  90. -
  91.     public function __construct($options
  92. -
  93.     {
  94. -
  95.         $this->_options = $options;
  96. -
  97.     }
  98. -
  99.     /**
  100. -
  101.      * setOption
  102. -
  103.      *
  104. -
  105.      * @param mixed $option     the option name
  106. -
  107.      * @param mixed $value      option value
  108. -
  109.      * @return boolean          TRUE on success, FALSE on failure
  110. -
  111.      */
  112. -
  113.     public function setOption($option$value)
  114. -
  115.     {
  116. -
  117.         if (isset($this->_options[$option])) {
  118. -
  119.             $this->_options[$option$value;
  120. -
  121.             return true;
  122. -
  123.         }
  124. -
  125.         return false;
  126. -
  127.     }
  128. -
  129.     /**
  130. -
  131.      * getOption
  132. -
  133.      * 
  134. -
  135.      * @param mixed $option     the option name
  136. -
  137.      * @return mixed            option value
  138. -
  139.      */
  140. -
  141.     public function getOption($option)
  142. -
  143.     {
  144. -
  145.         if isset($this->_options[$option])) {
  146. -
  147.             return null;
  148. -
  149.         }
  150. -
  151.  
  152. -
  153.         return $this->_options[$option];
  154. -
  155.     }
  156. -
  157. }
  158. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheException.php.html deleted file mode 100644 index 9ec63f218..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheException.php.html +++ /dev/null @@ -1,43 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. }
  69. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheInterface.php.html deleted file mode 100644 index d5e3039be..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheInterface.php.html +++ /dev/null @@ -1,82 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Interface.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache_Interface
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * Test if a cache is available for the given id and (if yes) return it (false else)
  73. -
  74.      * 
  75. -
  76.      * Note : return value is always "string" (unserialization is done by the core not by the backend)
  77. -
  78.      * 
  79. -
  80.      * @param string $id cache id
  81. -
  82.      * @param boolean $testCacheValidity        if set to false, the cache validity won't be tested
  83. -
  84.      * @return string cached datas (or false)
  85. -
  86.      */
  87. -
  88.     public function fetch($id$testCacheValidity true);
  89. -
  90.  
  91. -
  92.     /**
  93. -
  94.      * Test if a cache is available or not (for the given id)
  95. -
  96.      *
  97. -
  98.      * @param string $id cache id
  99. -
  100.      * @return mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record
  101. -
  102.      */
  103. -
  104.     public function contains($id);
  105. -
  106.  
  107. -
  108.     /**
  109. -
  110.      * Save some string datas into a cache record
  111. -
  112.      *
  113. -
  114.      * Note : $data is always saved as a string
  115. -
  116.      *
  117. -
  118.      * @param string $data      data to cache
  119. -
  120.      * @param string $id        cache id
  121. -
  122.      * @param int $lifeTime     if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
  123. -
  124.      * @return boolean true if no problem
  125. -
  126.      */
  127. -
  128.     public function save($data$id$lifeTime false);
  129. -
  130.  
  131. -
  132.     /**
  133. -
  134.      * Remove a cache record
  135. -
  136.      * 
  137. -
  138.      * @param string $id cache id
  139. -
  140.      * @return boolean true if no problem
  141. -
  142.      */
  143. -
  144.     public function delete($id);
  145. -
  146. }
  147. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheMemcache.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheMemcache.php.html deleted file mode 100644 index 9457e68f8..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_Cache_DoctrineCacheMemcache.php.html +++ /dev/null @@ -1,140 +0,0 @@ - -
-

Source for file Memcache.php

-

Documentation is available at Memcache.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Memcache.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Cache_Driver');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Cache_Memcache
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @subpackage  Doctrine_Cache
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var Memcache $_memcache     memcache object
  73. -
  74.      */
  75. -
  76.     protected $_memcache = null;
  77. -
  78.     /**
  79. -
  80.      * constructor
  81. -
  82.      * 
  83. -
  84.      * @param array $options        associative array of cache driver options
  85. -
  86.      */
  87. -
  88.     public function __construct($options array())
  89. -
  90.     {      
  91. -
  92.         if extension_loaded('memcache')) {
  93. -
  94.             throw new Doctrine_Cache_Exception('In order to use Memcache driver, the memcache extension must be loaded.');
  95. -
  96.         }
  97. -
  98.         parent::__construct($options);
  99. -
  100.  
  101. -
  102.         if (isset($options['servers'])) {
  103. -
  104.             $value$options['servers'];
  105. -
  106.             if (isset($value['host'])) {
  107. -
  108.                 // in this case, $value seems to be a simple associative array (one server only)
  109. -
  110.                 $value array(=> $value)// let's transform it into a classical array of associative arrays
  111. -
  112.             }
  113. -
  114.             $this->setOption('servers'$value);
  115. -
  116.         }
  117. -
  118.         
  119. -
  120.         $this->_memcache = new Memcache;
  121. -
  122.  
  123. -
  124.         foreach ($this->_options['servers'as $server{
  125. -
  126.             if array_key_exists('persistent'$server)) {
  127. -
  128.                 $server['persistent'true;
  129. -
  130.             }
  131. -
  132.             if array_key_exists('port'$server)) {
  133. -
  134.                 $server['port'11211;
  135. -
  136.             }
  137. -
  138.             $this->_memcache->addServer($server['host']$server['port']$server['persistent']);
  139. -
  140.         }
  141. -
  142.     }
  143. -
  144.     /**
  145. -
  146.      * Test if a cache is available for the given id and (if yes) return it (false else)
  147. -
  148.      *
  149. -
  150.      * Note : return value is always "string" (unserialization is done by the core not by the backend)
  151. -
  152.      * 
  153. -
  154.      * @param string $id cache id
  155. -
  156.      * @param boolean $testCacheValidity        if set to false, the cache validity won't be tested
  157. -
  158.      * @return string cached datas (or false)
  159. -
  160.      */
  161. -
  162.     public function fetch($id$testCacheValidity true
  163. -
  164.     {
  165. -
  166.         $tmp $this->_memcache->get($id);
  167. -
  168.  
  169. -
  170.         if (is_array($tmp)) {
  171. -
  172.             return $tmp[0];
  173. -
  174.         }
  175. -
  176.  
  177. -
  178.         return false;
  179. -
  180.     }
  181. -
  182.     /**
  183. -
  184.      * Test if a cache is available or not (for the given id)
  185. -
  186.      *
  187. -
  188.      * @param string $id cache id
  189. -
  190.      * @return mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record
  191. -
  192.      */
  193. -
  194.     public function contains($id
  195. -
  196.     {
  197. -
  198.         return (bool) $this->_memcache->get($id);
  199. -
  200.     }
  201. -
  202.     /**
  203. -
  204.      * Save some string datas into a cache record
  205. -
  206.      *
  207. -
  208.      * Note : $data is always saved as a string
  209. -
  210.      *
  211. -
  212.      * @param string $data      data to cache
  213. -
  214.      * @param string $id        cache id
  215. -
  216.      * @param int $lifeTime     if != false, set a specific lifetime for this cache record (null => infinite lifeTime)
  217. -
  218.      * @return boolean true if no problem
  219. -
  220.      */
  221. -
  222.     public function save($id$data$lifeTime false)
  223. -
  224.     {
  225. -
  226.         if ($this->_options['compression']{
  227. -
  228.             $flag MEMCACHE_COMPRESSED;
  229. -
  230.         else {
  231. -
  232.             $flag 0;
  233. -
  234.         }
  235. -
  236.  
  237. -
  238.         $result $this->_memcache->set($id$data$flag$lifeTime);
  239. -
  240.     }
  241. -
  242.     /**
  243. -
  244.      * Remove a cache record
  245. -
  246.      * 
  247. -
  248.      * @param string $id cache id
  249. -
  250.      * @return boolean true if no problem
  251. -
  252.      */
  253. -
  254.     public function delete($id
  255. -
  256.     {
  257. -
  258.         return $this->_memcache->delete($id);
  259. -
  260.     }
  261. -
  262. }
  263. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictFirebird.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictFirebird.php.html deleted file mode 100644 index 511c212ee..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictFirebird.php.html +++ /dev/null @@ -1,224 +0,0 @@ - -
-

Source for file Firebird.php

-

Documentation is available at Firebird.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Firebird.php 1731 2007-06-18 18:30:19Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_DataDict');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @subpackage  Doctrine_DataDict
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lorenzo Alberton <l.alberton@quipo.it> (PEAR MDB2 Interbase driver)
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @version     $Revision: 1731 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * Obtain DBMS specific SQL code portion needed to declare an text type
  73. -
  74.      * field to be used in statements like CREATE TABLE.
  75. -
  76.      *
  77. -
  78.      * @param array $field  associative array with the name of the properties
  79. -
  80.      *       of the field being declared as array indexes. Currently, the types
  81. -
  82.      *       of supported field properties are as follows:
  83. -
  84.      *
  85. -
  86.      *       length
  87. -
  88.      *           Integer value that determines the maximum length of the text
  89. -
  90.      *           field. If this argument is missing the field should be
  91. -
  92.      *           declared to have the longest length allowed by the DBMS.
  93. -
  94.      *
  95. -
  96.      *       default
  97. -
  98.      *           Text value to be used as default for this field.
  99. -
  100.      *
  101. -
  102.      *       notnull
  103. -
  104.      *           Boolean flag that indicates whether this field is constrained
  105. -
  106.      *           to not be set to null.
  107. -
  108.      * @return string  DBMS specific SQL code portion that should be used to
  109. -
  110.      *       declare the specified field.
  111. -
  112.      */
  113. -
  114.     public function getNativeDeclaration($field)
  115. -
  116.     {
  117. -
  118.         if isset($field['type'])) {
  119. -
  120.             throw new Doctrine_DataDict_Exception('Missing column type.');
  121. -
  122.         }
  123. -
  124.         switch ($field['type']{
  125. -
  126.             case 'varchar':
  127. -
  128.             case 'string':
  129. -
  130.             case 'array':
  131. -
  132.             case 'object':
  133. -
  134.             case 'char':
  135. -
  136.             case 'text':
  137. -
  138.             case 'gzip':
  139. -
  140.                 $length !empty($field['length'])
  141. -
  142.                     ? $field['length'16777215// TODO: $this->conn->options['default_text_field_length'];
  143. -
  144.  
  145. -
  146.                 $fixed  ((isset($field['fixed']&& $field['fixed']|| $field['type'== 'char'true false;
  147. -
  148.  
  149. -
  150.                 return $fixed 'CHAR('.$length.')' 'VARCHAR('.$length.')';
  151. -
  152.             case 'clob':
  153. -
  154.                 return 'BLOB SUB_TYPE 1';
  155. -
  156.             case 'blob':
  157. -
  158.                 return 'BLOB SUB_TYPE 0';
  159. -
  160.             case 'integer':
  161. -
  162.             case 'enum':
  163. -
  164.             case 'int':
  165. -
  166.                 return 'INT';
  167. -
  168.             case 'boolean':
  169. -
  170.                 return 'SMALLINT';
  171. -
  172.             case 'date':
  173. -
  174.                 return 'DATE';
  175. -
  176.             case 'time':
  177. -
  178.                 return 'TIME';
  179. -
  180.             case 'timestamp':
  181. -
  182.                 return 'TIMESTAMP';
  183. -
  184.             case 'float':
  185. -
  186.                 return 'DOUBLE PRECISION';
  187. -
  188.             case 'decimal':
  189. -
  190.                 $length !empty($field['length']$field['length'18;
  191. -
  192.                 $scale !empty($field['scale']$field['scale'$this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES);
  193. -
  194.                 return 'DECIMAL('.$length.','.$scale.')';
  195. -
  196.         }
  197. -
  198.  
  199. -
  200.         throw new Doctrine_DataDict_Exception('Unknown field type \'' $field['type'.  '\'.');
  201. -
  202.     }
  203. -
  204.     /**
  205. -
  206.      * Maps a native array description of a field to a Doctrine datatype and length
  207. -
  208.      *
  209. -
  210.      * @param array  $field native field description
  211. -
  212.      * @return array containing the various possible types, length, sign, fixed
  213. -
  214.      */
  215. -
  216.     public function getPortableDeclaration($field)
  217. -
  218.     {
  219. -
  220.         $length  (isset($field['length']&& $field['length'0$field['length'null;
  221. -
  222.  
  223. -
  224.         $type array();
  225. -
  226.         $unsigned $fixed null;
  227. -
  228.         $dbType strtolower($field['type']);
  229. -
  230.         $field['field_sub_type'!empty($field['field_sub_type'])
  231. -
  232.             ? strtolower($field['field_sub_type']null;
  233. -
  234.  
  235. -
  236.         if isset($field['name'])) {
  237. -
  238.             $field['name''';
  239. -
  240.         }
  241. -
  242.  
  243. -
  244.         switch ($dbType{
  245. -
  246.             case 'smallint':
  247. -
  248.             case 'integer':
  249. -
  250.             case 'int64':
  251. -
  252.                 //these may be 'numeric' or 'decimal'
  253. -
  254.                 if (isset($field['field_sub_type'])) {
  255. -
  256.                     $field['type'$field['field_sub_type'];
  257. -
  258.                     return $this->getPortableDeclaration($field);
  259. -
  260.                 }
  261. -
  262.             case 'bigint':
  263. -
  264.             case 'quad':
  265. -
  266.                 $type['integer';
  267. -
  268.                 if ($length == '1'{
  269. -
  270.                     $type['boolean';
  271. -
  272.                     if (preg_match('/^(is|has)/'$field['name'])) {
  273. -
  274.                         $type array_reverse($type);
  275. -
  276.                     }
  277. -
  278.                 }
  279. -
  280.                 break;
  281. -
  282.             case 'varchar':
  283. -
  284.                 $fixed false;
  285. -
  286.             case 'char':
  287. -
  288.             case 'cstring':
  289. -
  290.                 $type['string';
  291. -
  292.                 if ($length == '1'{
  293. -
  294.                     $type['boolean';
  295. -
  296.                     if (preg_match('/^(is|has)/'$field['name'])) {
  297. -
  298.                         $type array_reverse($type);
  299. -
  300.                     }
  301. -
  302.                 }
  303. -
  304.                 if ($fixed !== false{
  305. -
  306.                     $fixed true;
  307. -
  308.                 }
  309. -
  310.                 break;
  311. -
  312.             case 'date':
  313. -
  314.                 $type['date';
  315. -
  316.                 $length null;
  317. -
  318.                 break;
  319. -
  320.             case 'timestamp':
  321. -
  322.                 $type['timestamp';
  323. -
  324.                 $length null;
  325. -
  326.                 break;
  327. -
  328.             case 'time':
  329. -
  330.                 $type['time';
  331. -
  332.                 $length null;
  333. -
  334.                 break;
  335. -
  336.             case 'float':
  337. -
  338.             case 'double':
  339. -
  340.             case 'double precision':
  341. -
  342.             case 'd_float':
  343. -
  344.                 $type['float';
  345. -
  346.                 break;
  347. -
  348.             case 'decimal':
  349. -
  350.             case 'numeric':
  351. -
  352.                 $type['decimal';
  353. -
  354.                 break;
  355. -
  356.             case 'blob':
  357. -
  358.                 $type[($field['field_sub_type'== 'text''clob' 'blob';
  359. -
  360.                 $length null;
  361. -
  362.                 break;
  363. -
  364.             default:
  365. -
  366.                 throw new Doctrine_DataDict_Exception('unknown database attribute type: '.$dbType);
  367. -
  368.         }
  369. -
  370.  
  371. -
  372.         return array('type'     => $type,
  373. -
  374.                      'length'   => $length,
  375. -
  376.                      'unsigned' => $unsigned,
  377. -
  378.                      'fixed'    => $fixed);
  379. -
  380.     }
  381. -
  382.     /**
  383. -
  384.      * Obtain DBMS specific SQL code portion needed to set the CHARACTER SET
  385. -
  386.      * of a field declaration to be used in statements like CREATE TABLE.
  387. -
  388.      *
  389. -
  390.      * @param string $charset   name of the charset
  391. -
  392.      * @return string  DBMS specific SQL code portion needed to set the CHARACTER SET
  393. -
  394.      *                  of a field declaration.
  395. -
  396.      */
  397. -
  398.     public function getCharsetFieldDeclaration($charset)
  399. -
  400.     {
  401. -
  402.         return 'CHARACTER SET ' $charset;
  403. -
  404.     }
  405. -
  406.     /**
  407. -
  408.      * Obtain DBMS specific SQL code portion needed to set the COLLATION
  409. -
  410.      * of a field declaration to be used in statements like CREATE TABLE.
  411. -
  412.      *
  413. -
  414.      * @param string $collation   name of the collation
  415. -
  416.      * @return string  DBMS specific SQL code portion needed to set the COLLATION
  417. -
  418.      *                  of a field declaration.
  419. -
  420.      */
  421. -
  422.     public function getCollationFieldDeclaration($collation)
  423. -
  424.     {
  425. -
  426.         return 'COLLATE ' $collation;
  427. -
  428.     }
  429. -
  430. }
  431. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMssql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMssql.php.html deleted file mode 100644 index 38ec1dd8c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMssql.php.html +++ /dev/null @@ -1,197 +0,0 @@ - -
-

Source for file Mssql.php

-

Documentation is available at Mssql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mssql.php 1730 2007-06-18 18:27:11Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_DataDict');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @subpackage  Doctrine_DataDict
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @author      Frank M. Kromann <frank@kromann.info> (PEAR MDB2 Mssql driver)
  56. -
  57.  * @author      David Coallier <davidc@php.net> (PEAR MDB2 Mssql driver)
  58. -
  59.  * @version     $Revision: 1730 $
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  * @since       1.0
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * Obtain DBMS specific SQL code portion needed to declare an text type
  75. -
  76.      * field to be used in statements like CREATE TABLE.
  77. -
  78.      *
  79. -
  80.      * @param array $field  associative array with the name of the properties
  81. -
  82.      *       of the field being declared as array indexes. Currently, the types
  83. -
  84.      *       of supported field properties are as follows:
  85. -
  86.      *
  87. -
  88.      *       length
  89. -
  90.      *           Integer value that determines the maximum length of the text
  91. -
  92.      *           field. If this argument is missing the field should be
  93. -
  94.      *           declared to have the longest length allowed by the DBMS.
  95. -
  96.      *
  97. -
  98.      *       default
  99. -
  100.      *           Text value to be used as default for this field.
  101. -
  102.      *
  103. -
  104.      *       notnull
  105. -
  106.      *           Boolean flag that indicates whether this field is constrained
  107. -
  108.      *           to not be set to null.
  109. -
  110.      *
  111. -
  112.      * @return      string      DBMS specific SQL code portion that should be used to
  113. -
  114.      *                           declare the specified field.
  115. -
  116.      */
  117. -
  118.     public function getNativeDeclaration($field)
  119. -
  120.     {
  121. -
  122.         if isset($field['type'])) {
  123. -
  124.             throw new Doctrine_DataDict_Exception('Missing column type.');
  125. -
  126.         }
  127. -
  128.         switch ($field['type']{
  129. -
  130.             case 'array':
  131. -
  132.             case 'object':
  133. -
  134.             case 'text':
  135. -
  136.             case 'char':
  137. -
  138.             case 'varchar':
  139. -
  140.             case 'string':
  141. -
  142.             case 'gzip':
  143. -
  144.                 $length !empty($field['length'])
  145. -
  146.                     ? $field['length'false;
  147. -
  148.  
  149. -
  150.                 $fixed  ((isset($field['fixed']&& $field['fixed']|| $field['type'== 'char'true false;
  151. -
  152.  
  153. -
  154.                 return $fixed ($length 'CHAR('.$length.')' 'CHAR('.$this->conn->options['default_text_field_length'].')')
  155. -
  156.                     : ($length 'VARCHAR('.$length.')' 'TEXT');
  157. -
  158.             case 'clob':
  159. -
  160.                 if (!empty($field['length'])) {
  161. -
  162.                     $length $field['length'];
  163. -
  164.                     if ($length <= 8000{
  165. -
  166.                         return 'VARCHAR('.$length.')';
  167. -
  168.                     }
  169. -
  170.                  }
  171. -
  172.                  return 'TEXT';
  173. -
  174.             case 'blob':
  175. -
  176.                 if (!empty($field['length'])) {
  177. -
  178.                     $length $field['length'];
  179. -
  180.                     if ($length <= 8000{
  181. -
  182.                         return "VARBINARY($length)";
  183. -
  184.                     }
  185. -
  186.                 }
  187. -
  188.                 return 'IMAGE';
  189. -
  190.             case 'integer':
  191. -
  192.             case 'enum':
  193. -
  194.             case 'int':
  195. -
  196.                 return 'INT';
  197. -
  198.             case 'boolean':
  199. -
  200.                 return 'BIT';
  201. -
  202.             case 'date':
  203. -
  204.                 return 'CHAR(' strlen('YYYY-MM-DD'')';
  205. -
  206.             case 'time':
  207. -
  208.                 return 'CHAR(' strlen('HH:MM:SS'')';
  209. -
  210.             case 'timestamp':
  211. -
  212.                 return 'CHAR(' strlen('YYYY-MM-DD HH:MM:SS'')';
  213. -
  214.             case 'float':
  215. -
  216.                 return 'FLOAT';
  217. -
  218.             case 'decimal':
  219. -
  220.                 $length !empty($field['length']$field['length'18;
  221. -
  222.                 $scale !empty($field['scale']$field['scale'$this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES);
  223. -
  224.                 return 'DECIMAL('.$length.','.$scale.')';
  225. -
  226.         }
  227. -
  228.  
  229. -
  230.         throw new Doctrine_DataDict_Exception('Unknown field type \'' $field['type'.  '\'.');
  231. -
  232.     }
  233. -
  234.     /**
  235. -
  236.      * Maps a native array description of a field to a MDB2 datatype and length
  237. -
  238.      *
  239. -
  240.      * @param   array           $field native field description
  241. -
  242.      * @return  array           containing the various possible types, length, sign, fixed
  243. -
  244.      */
  245. -
  246.     public function getPortableDeclaration($field)
  247. -
  248.     {
  249. -
  250.         $db_type preg_replace('/\d/',''strtolower($field['type']) );
  251. -
  252.         $length  (isset($field['length']&& $field['length'0$field['length'null;
  253. -
  254.  
  255. -
  256.         $type array();
  257. -
  258.         // todo: unsigned handling seems to be missing
  259. -
  260.         $unsigned $fixed null;
  261. -
  262.  
  263. -
  264.         if isset($field['name']))
  265. -
  266.             $field['name''';
  267. -
  268.  
  269. -
  270.         switch ($db_type{
  271. -
  272.             case 'bit':
  273. -
  274.                 $type[0'boolean';
  275. -
  276.             break;
  277. -
  278.             case 'int':
  279. -
  280.                 $type[0'integer';
  281. -
  282.                 if ($length == 1{
  283. -
  284.                     $type['boolean';
  285. -
  286.                 }
  287. -
  288.             break;
  289. -
  290.             case 'datetime':
  291. -
  292.                 $type[0'timestamp';
  293. -
  294.             break;
  295. -
  296.             case 'float':
  297. -
  298.             case 'real':
  299. -
  300.             case 'numeric':
  301. -
  302.                 $type[0'float';
  303. -
  304.             break;
  305. -
  306.             case 'decimal':
  307. -
  308.             case 'money':
  309. -
  310.                 $type[0'decimal';
  311. -
  312.             break;
  313. -
  314.             case 'text':
  315. -
  316.             case 'varchar':
  317. -
  318.                 $fixed false;
  319. -
  320.             case 'char':
  321. -
  322.                 $type[0'string';
  323. -
  324.                 if ($length == '1'{
  325. -
  326.                     $type['boolean';
  327. -
  328.                     if (preg_match('/^[is|has]/'$field['name'])) {
  329. -
  330.                         $type array_reverse($type);
  331. -
  332.                     }
  333. -
  334.                 elseif (strstr($db_type'text')) {
  335. -
  336.                     $type['clob';
  337. -
  338.                 }
  339. -
  340.                 if ($fixed !== false{
  341. -
  342.                     $fixed true;
  343. -
  344.                 }
  345. -
  346.             break;
  347. -
  348.             case 'image':
  349. -
  350.             case 'varbinary':
  351. -
  352.                 $type['blob';
  353. -
  354.                 $length null;
  355. -
  356.             break;
  357. -
  358.             default:
  359. -
  360.                 throw new Doctrine_DataDict_Exception('unknown database attribute type: '.$db_type);
  361. -
  362.         }
  363. -
  364.  
  365. -
  366.         return array('type'     => $type,
  367. -
  368.                      'length'   => $length,
  369. -
  370.                      'unsigned' => $unsigned,
  371. -
  372.                      'fixed'    => $fixed);
  373. -
  374.     }
  375. -
  376. }
  377. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMysql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMysql.php.html deleted file mode 100644 index 1350831c9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictMysql.php.html +++ /dev/null @@ -1,463 +0,0 @@ - -
-

Source for file Mysql.php

-

Documentation is available at Mysql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mysql.php 1730 2007-06-18 18:27:11Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_DataDict');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @subpackage  Doctrine_DataDict
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @version     $Revision: 1730 $
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     protected $keywords = array(
  69. -
  70.                           'ADD''ALL''ALTER',
  71. -
  72.                           'ANALYZE''AND''AS',
  73. -
  74.                           'ASC''ASENSITIVE''BEFORE',
  75. -
  76.                           'BETWEEN''BIGINT''BINARY',
  77. -
  78.                           'BLOB''BOTH''BY',
  79. -
  80.                           'CALL''CASCADE''CASE',
  81. -
  82.                           'CHANGE''CHAR''CHARACTER',
  83. -
  84.                           'CHECK''COLLATE''COLUMN',
  85. -
  86.                           'CONDITION''CONNECTION''CONSTRAINT',
  87. -
  88.                           'CONTINUE''CONVERT''CREATE',
  89. -
  90.                           'CROSS''CURRENT_DATE''CURRENT_TIME',
  91. -
  92.                           'CURRENT_TIMESTAMP''CURRENT_USER''CURSOR',
  93. -
  94.                           'DATABASE''DATABASES''DAY_HOUR',
  95. -
  96.                           'DAY_MICROSECOND''DAY_MINUTE''DAY_SECOND',
  97. -
  98.                           'DEC''DECIMAL''DECLARE',
  99. -
  100.                           'DEFAULT''DELAYED''DELETE',
  101. -
  102.                           'DESC''DESCRIBE''DETERMINISTIC',
  103. -
  104.                           'DISTINCT''DISTINCTROW''DIV',
  105. -
  106.                           'DOUBLE''DROP''DUAL',
  107. -
  108.                           'EACH''ELSE''ELSEIF',
  109. -
  110.                           'ENCLOSED''ESCAPED''EXISTS',
  111. -
  112.                           'EXIT''EXPLAIN''FALSE',
  113. -
  114.                           'FETCH''FLOAT''FLOAT4',
  115. -
  116.                           'FLOAT8''FOR''FORCE',
  117. -
  118.                           'FOREIGN''FROM''FULLTEXT',
  119. -
  120.                           'GRANT''GROUP''HAVING',
  121. -
  122.                           'HIGH_PRIORITY''HOUR_MICROSECOND''HOUR_MINUTE',
  123. -
  124.                           'HOUR_SECOND''IF''IGNORE',
  125. -
  126.                           'IN''INDEX''INFILE',
  127. -
  128.                           'INNER''INOUT''INSENSITIVE',
  129. -
  130.                           'INSERT''INT''INT1',
  131. -
  132.                           'INT2''INT3''INT4',
  133. -
  134.                           'INT8''INTEGER''INTERVAL',
  135. -
  136.                           'INTO''IS''ITERATE',
  137. -
  138.                           'JOIN''KEY''KEYS',
  139. -
  140.                           'KILL''LEADING''LEAVE',
  141. -
  142.                           'LEFT''LIKE''LIMIT',
  143. -
  144.                           'LINES''LOAD''LOCALTIME',
  145. -
  146.                           'LOCALTIMESTAMP''LOCK''LONG',
  147. -
  148.                           'LONGBLOB''LONGTEXT''LOOP',
  149. -
  150.                           'LOW_PRIORITY''MATCH''MEDIUMBLOB',
  151. -
  152.                           'MEDIUMINT''MEDIUMTEXT''MIDDLEINT',
  153. -
  154.                           'MINUTE_MICROSECOND''MINUTE_SECOND''MOD',
  155. -
  156.                           'MODIFIES''NATURAL''NOT',
  157. -
  158.                           'NO_WRITE_TO_BINLOG''NULL''NUMERIC',
  159. -
  160.                           'ON''OPTIMIZE''OPTION',
  161. -
  162.                           'OPTIONALLY''OR''ORDER',
  163. -
  164.                           'OUT''OUTER''OUTFILE',
  165. -
  166.                           'PRECISION''PRIMARY''PROCEDURE',
  167. -
  168.                           'PURGE''RAID0''READ',
  169. -
  170.                           'READS''REAL''REFERENCES',
  171. -
  172.                           'REGEXP''RELEASE''RENAME',
  173. -
  174.                           'REPEAT''REPLACE''REQUIRE',
  175. -
  176.                           'RESTRICT''RETURN''REVOKE',
  177. -
  178.                           'RIGHT''RLIKE''SCHEMA',
  179. -
  180.                           'SCHEMAS''SECOND_MICROSECOND''SELECT',
  181. -
  182.                           'SENSITIVE''SEPARATOR''SET',
  183. -
  184.                           'SHOW''SMALLINT''SONAME',
  185. -
  186.                           'SPATIAL''SPECIFIC''SQL',
  187. -
  188.                           'SQLEXCEPTION''SQLSTATE''SQLWARNING',
  189. -
  190.                           'SQL_BIG_RESULT''SQL_CALC_FOUND_ROWS''SQL_SMALL_RESULT',
  191. -
  192.                           'SSL''STARTING''STRAIGHT_JOIN',
  193. -
  194.                           'TABLE''TERMINATED''THEN',
  195. -
  196.                           'TINYBLOB''TINYINT''TINYTEXT',
  197. -
  198.                           'TO''TRAILING''TRIGGER',
  199. -
  200.                           'TRUE''UNDO''UNION',
  201. -
  202.                           'UNIQUE''UNLOCK''UNSIGNED',
  203. -
  204.                           'UPDATE''USAGE''USE',
  205. -
  206.                           'USING''UTC_DATE''UTC_TIME',
  207. -
  208.                           'UTC_TIMESTAMP''VALUES''VARBINARY',
  209. -
  210.                           'VARCHAR''VARCHARACTER''VARYING',
  211. -
  212.                           'WHEN''WHERE''WHILE',
  213. -
  214.                           'WITH''WRITE''X509',
  215. -
  216.                           'XOR''YEAR_MONTH''ZEROFILL'
  217. -
  218.                           );
  219. -
  220.  
  221. -
  222.     /**
  223. -
  224.      * Obtain DBMS specific SQL code portion needed to declare an text type
  225. -
  226.      * field to be used in statements like CREATE TABLE.
  227. -
  228.      *
  229. -
  230.      * @param array $field  associative array with the name of the properties
  231. -
  232.      *       of the field being declared as array indexes. Currently, the types
  233. -
  234.      *       of supported field properties are as follows:
  235. -
  236.      *
  237. -
  238.      *       length
  239. -
  240.      *           Integer value that determines the maximum length of the text
  241. -
  242.      *           field. If this argument is missing the field should be
  243. -
  244.      *           declared to have the longest length allowed by the DBMS.
  245. -
  246.      *
  247. -
  248.      *       default
  249. -
  250.      *           Text value to be used as default for this field.
  251. -
  252.      *
  253. -
  254.      *       notnull
  255. -
  256.      *           Boolean flag that indicates whether this field is constrained
  257. -
  258.      *           to not be set to null.
  259. -
  260.      *
  261. -
  262.      * @return string  DBMS specific SQL code portion that should be used to
  263. -
  264.      *       declare the specified field.
  265. -
  266.      */
  267. -
  268.     public function getNativeDeclaration($field)
  269. -
  270.     {
  271. -
  272.         if isset($field['type'])) {
  273. -
  274.             throw new Doctrine_DataDict_Exception('Missing column type.');
  275. -
  276.         }
  277. -
  278.  
  279. -
  280.         switch ($field['type']{
  281. -
  282.             case 'char':
  283. -
  284.                 $length (empty($field['length'])) $field['length'false;
  285. -
  286.  
  287. -
  288.                 return $length 'CHAR('.$length.')' 'CHAR(255)';
  289. -
  290.             case 'varchar':
  291. -
  292.             case 'array':
  293. -
  294.             case 'object':
  295. -
  296.             case 'string':
  297. -
  298.             case 'gzip':
  299. -
  300.                 if isset($field['length'])) {
  301. -
  302.                     if (array_key_exists('default'$field)) {
  303. -
  304.                         $field['length'$this->conn->varchar_max_length;
  305. -
  306.                     else {
  307. -
  308.                         $field['length'false;
  309. -
  310.                     }
  311. -
  312.                 }
  313. -
  314.  
  315. -
  316.                 $length ($field['length'<= $this->conn->varchar_max_length$field['length'false;
  317. -
  318.                 $fixed  (isset($field['fixed'])) $field['fixed'false;
  319. -
  320.  
  321. -
  322.                 return $fixed ($length 'CHAR(' $length ')' 'CHAR(255)')
  323. -
  324.                     : ($length 'VARCHAR(' $length ')' 'TEXT');
  325. -
  326.             case 'clob':
  327. -
  328.                 if (!empty($field['length'])) {
  329. -
  330.                     $length $field['length'];
  331. -
  332.                     if ($length <= 255{
  333. -
  334.                         return 'TINYTEXT';
  335. -
  336.                     elseif ($length <= 65532{
  337. -
  338.                         return 'TEXT';
  339. -
  340.                     elseif ($length <= 16777215{
  341. -
  342.                         return 'MEDIUMTEXT';
  343. -
  344.                     }
  345. -
  346.                 }
  347. -
  348.                 return 'LONGTEXT';
  349. -
  350.             case 'blob':
  351. -
  352.                 if (!empty($field['length'])) {
  353. -
  354.                     $length $field['length'];
  355. -
  356.                     if ($length <= 255{
  357. -
  358.                         return 'TINYBLOB';
  359. -
  360.                     elseif ($length <= 65532{
  361. -
  362.                         return 'BLOB';
  363. -
  364.                     elseif ($length <= 16777215{
  365. -
  366.                         return 'MEDIUMBLOB';
  367. -
  368.                     }
  369. -
  370.                 }
  371. -
  372.                 return 'LONGBLOB';
  373. -
  374.             case 'integer':
  375. -
  376.             case 'int':
  377. -
  378.             case 'enum':
  379. -
  380.                 if (!empty($field['length'])) {
  381. -
  382.                     $length $field['length'];
  383. -
  384.                     if ($length <= 1{
  385. -
  386.                         return 'TINYINT';
  387. -
  388.                     elseif ($length == 2{
  389. -
  390.                         return 'SMALLINT';
  391. -
  392.                     elseif ($length == 3{
  393. -
  394.                         return 'MEDIUMINT';
  395. -
  396.                     elseif ($length == 4{
  397. -
  398.                         return 'INT';
  399. -
  400.                     elseif ($length 4{
  401. -
  402.                         return 'BIGINT';
  403. -
  404.                     }
  405. -
  406.                 }
  407. -
  408.                 return 'INT';
  409. -
  410.             case 'boolean':
  411. -
  412.                 return 'TINYINT(1)';
  413. -
  414.             case 'date':
  415. -
  416.                 return 'DATE';
  417. -
  418.             case 'time':
  419. -
  420.                 return 'TIME';
  421. -
  422.             case 'timestamp':
  423. -
  424.                 return 'DATETIME';
  425. -
  426.             case 'float':
  427. -
  428.             case 'double':
  429. -
  430.                 return 'DOUBLE';
  431. -
  432.             case 'decimal':
  433. -
  434.                 $length !empty($field['length']$field['length'18;
  435. -
  436.                 $scale !empty($field['scale']$field['scale'$this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES);
  437. -
  438.                 return 'DECIMAL('.$length.','.$scale.')';
  439. -
  440.         }
  441. -
  442.         throw new Doctrine_DataDict_Exception('Unknown field type \'' $field['type'.  '\'.');
  443. -
  444.     }
  445. -
  446.     /**
  447. -
  448.      * Maps a native array description of a field to a MDB2 datatype and length
  449. -
  450.      *
  451. -
  452.      * @param array  $field native field description
  453. -
  454.      * @return array containing the various possible types, length, sign, fixed
  455. -
  456.      */
  457. -
  458.     public function getPortableDeclaration(array $field)
  459. -
  460.     {
  461. -
  462.         $dbType strtolower($field['type']);
  463. -
  464.         $dbType strtok($dbType'(), ');
  465. -
  466.         if ($dbType == 'national'{
  467. -
  468.             $dbType strtok('(), ');
  469. -
  470.         }
  471. -
  472.         if (isset($field['length'])) {
  473. -
  474.             $length $field['length'];
  475. -
  476.             $decimal '';
  477. -
  478.         else {
  479. -
  480.             $length strtok('(), ');
  481. -
  482.             $decimal strtok('(), ');
  483. -
  484.         }
  485. -
  486.         $type array();
  487. -
  488.         $unsigned $fixed null;
  489. -
  490.  
  491. -
  492.         if isset($field['name'])) {
  493. -
  494.             $field['name''';
  495. -
  496.         }
  497. -
  498.  
  499. -
  500.         $values null;
  501. -
  502.  
  503. -
  504.         switch ($dbType{
  505. -
  506.             case 'tinyint':
  507. -
  508.                 $type['integer';
  509. -
  510.                 $type['boolean';
  511. -
  512.                 if (preg_match('/^(is|has)/'$field['name'])) {
  513. -
  514.                     $type array_reverse($type);
  515. -
  516.                 }
  517. -
  518.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  519. -
  520.                 $length 1;
  521. -
  522.             break;
  523. -
  524.             case 'smallint':
  525. -
  526.                 $type['integer';
  527. -
  528.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  529. -
  530.                 $length 2;
  531. -
  532.             break;
  533. -
  534.             case 'mediumint':
  535. -
  536.                 $type['integer';
  537. -
  538.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  539. -
  540.                 $length 3;
  541. -
  542.             break;
  543. -
  544.             case 'int':
  545. -
  546.             case 'integer':
  547. -
  548.                 $type['integer';
  549. -
  550.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  551. -
  552.                 $length 4;
  553. -
  554.             break;
  555. -
  556.             case 'bigint':
  557. -
  558.                 $type['integer';
  559. -
  560.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  561. -
  562.                 $length 8;
  563. -
  564.             break;
  565. -
  566.             case 'tinytext':
  567. -
  568.             case 'mediumtext':
  569. -
  570.             case 'longtext':
  571. -
  572.             case 'text':
  573. -
  574.             case 'text':
  575. -
  576.             case 'varchar':
  577. -
  578.                 $fixed false;
  579. -
  580.             case 'string':
  581. -
  582.             case 'char':
  583. -
  584.                 $type['string';
  585. -
  586.                 if ($length == '1'{
  587. -
  588.                     $type['boolean';
  589. -
  590.                     if (preg_match('/^(is|has)/'$field['name'])) {
  591. -
  592.                         $type array_reverse($type);
  593. -
  594.                     }
  595. -
  596.                 elseif (strstr($dbType'text')) {
  597. -
  598.                     $type['clob';
  599. -
  600.                     if ($decimal == 'binary'{
  601. -
  602.                         $type['blob';
  603. -
  604.                     }
  605. -
  606.                 }
  607. -
  608.                 if ($fixed !== false{
  609. -
  610.                     $fixed true;
  611. -
  612.                 }
  613. -
  614.             break;
  615. -
  616.             case 'enum':
  617. -
  618.                 $type['enum';
  619. -
  620.                 preg_match_all('/\'.+\'/U'$field['type']$matches);
  621. -
  622.                 $length 0;
  623. -
  624.                 $fixed false;
  625. -
  626.                 if (is_array($matches)) {
  627. -
  628.                     foreach ($matches[0as $value{
  629. -
  630.                         $length max($lengthstrlen($value)-2);
  631. -
  632.                     }
  633. -
  634.                     if ($length == '1' && count($matches[0]== 2{
  635. -
  636.                         $type['boolean';
  637. -
  638.                         if (preg_match('/^(is|has)/'$field['name'])) {
  639. -
  640.                             $type array_reverse($type);
  641. -
  642.                         }
  643. -
  644.                     else {
  645. -
  646.                         $values $matches[0];
  647. -
  648.                     }
  649. -
  650.                 }
  651. -
  652.                 $type['integer';
  653. -
  654.             case 'set':
  655. -
  656.                 $fixed false;
  657. -
  658.                 $type['text';
  659. -
  660.                 $type['integer';
  661. -
  662.             break;
  663. -
  664.             case 'date':
  665. -
  666.                 $type['date';
  667. -
  668.                 $length null;
  669. -
  670.             break;
  671. -
  672.             case 'datetime':
  673. -
  674.             case 'timestamp':
  675. -
  676.                 $type['timestamp';
  677. -
  678.                 $length null;
  679. -
  680.             break;
  681. -
  682.             case 'time':
  683. -
  684.                 $type['time';
  685. -
  686.                 $length null;
  687. -
  688.             break;
  689. -
  690.             case 'float':
  691. -
  692.             case 'double':
  693. -
  694.             case 'real':
  695. -
  696.                 $type['float';
  697. -
  698.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  699. -
  700.             break;
  701. -
  702.             case 'unknown':
  703. -
  704.             case 'decimal':
  705. -
  706.             case 'numeric':
  707. -
  708.                 $type['decimal';
  709. -
  710.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  711. -
  712.             break;
  713. -
  714.             case 'tinyblob':
  715. -
  716.             case 'mediumblob':
  717. -
  718.             case 'longblob':
  719. -
  720.             case 'blob':
  721. -
  722.                 $type['blob';
  723. -
  724.                 $length null;
  725. -
  726.             break;
  727. -
  728.             case 'year':
  729. -
  730.                 $type['integer';
  731. -
  732.                 $type['date';
  733. -
  734.                 $length null;
  735. -
  736.             break;
  737. -
  738.             default:
  739. -
  740.                 throw new Doctrine_DataDict_Exception('unknown database attribute type: ' $dbType);
  741. -
  742.         }
  743. -
  744.  
  745. -
  746.         $length ((int) $length == 0null : (int) $length;
  747. -
  748.  
  749. -
  750.         if ($values === null{
  751. -
  752.             return array('type' => $type'length' => $length'unsigned' => $unsigned'fixed' => $fixed);
  753. -
  754.         else {
  755. -
  756.             return array('type' => $type'length' => $length'unsigned' => $unsigned'fixed' => $fixed'values' => $values);
  757. -
  758.         }
  759. -
  760.     }
  761. -
  762.     /**
  763. -
  764.      * Obtain DBMS specific SQL code portion needed to set the CHARACTER SET
  765. -
  766.      * of a field declaration to be used in statements like CREATE TABLE.
  767. -
  768.      *
  769. -
  770.      * @param string $charset   name of the charset
  771. -
  772.      * @return string  DBMS specific SQL code portion needed to set the CHARACTER SET
  773. -
  774.      *                  of a field declaration.
  775. -
  776.      */
  777. -
  778.     public function getCharsetFieldDeclaration($charset)
  779. -
  780.     {
  781. -
  782.         return 'CHARACTER SET ' $charset;
  783. -
  784.     }
  785. -
  786.     /**
  787. -
  788.      * Obtain DBMS specific SQL code portion needed to set the COLLATION
  789. -
  790.      * of a field declaration to be used in statements like CREATE TABLE.
  791. -
  792.      *
  793. -
  794.      * @param string $collation   name of the collation
  795. -
  796.      * @return string  DBMS specific SQL code portion needed to set the COLLATION
  797. -
  798.      *                  of a field declaration.
  799. -
  800.      */
  801. -
  802.     public function getCollationFieldDeclaration($collation)
  803. -
  804.     {
  805. -
  806.         return 'COLLATE ' $collation;
  807. -
  808.     }
  809. -
  810.     /**
  811. -
  812.      * Obtain DBMS specific SQL code portion needed to declare an integer type
  813. -
  814.      * field to be used in statements like CREATE TABLE.
  815. -
  816.      *
  817. -
  818.      * @param string  $name   name the field to be declared.
  819. -
  820.      * @param string  $field  associative array with the name of the properties
  821. -
  822.      *                         of the field being declared as array indexes.
  823. -
  824.      *                         Currently, the types of supported field
  825. -
  826.      *                         properties are as follows:
  827. -
  828.      *
  829. -
  830.      *                        unsigned
  831. -
  832.      *                         Boolean flag that indicates whether the field
  833. -
  834.      *                         should be declared as unsigned integer if
  835. -
  836.      *                         possible.
  837. -
  838.      *
  839. -
  840.      *                        default
  841. -
  842.      *                         Integer value to be used as default for this
  843. -
  844.      *                         field.
  845. -
  846.      *
  847. -
  848.      *                        notnull
  849. -
  850.      *                         Boolean flag that indicates whether this field is
  851. -
  852.      *                         constrained to not be set to null.
  853. -
  854.      * @return string  DBMS specific SQL code portion that should be used to
  855. -
  856.      *                  declare the specified field.
  857. -
  858.      */
  859. -
  860.     public function getIntegerDeclaration($name$field)
  861. -
  862.     {
  863. -
  864.         $default $autoinc '';
  865. -
  866.         if (!empty($field['autoincrement'])) {
  867. -
  868.             $autoinc ' AUTO_INCREMENT';
  869. -
  870.         elseif (array_key_exists('default'$field)) {
  871. -
  872.             if ($field['default'=== ''{
  873. -
  874.                 $field['default'empty($field['notnull']null 0;
  875. -
  876.             }
  877. -
  878.             $default ' DEFAULT '.$this->conn->quote($field['default']);
  879. -
  880.         }
  881. -
  882.         /**
  883. -
  884.         elseif (empty($field['notnull'])) {
  885. -
  886.             $default = ' DEFAULT NULL';
  887. -
  888.         }
  889. -
  890.         */
  891. -
  892.  
  893. -
  894.         $notnull  (isset($field['notnull'])  && $field['notnull'])  ' NOT NULL' '';
  895. -
  896.         $unsigned (isset($field['unsigned']&& $field['unsigned']' UNSIGNED' '';
  897. -
  898.  
  899. -
  900.         $name $this->conn->quoteIdentifier($nametrue);
  901. -
  902.  
  903. -
  904.         return $name ' ' $this->getNativeDeclaration($field$unsigned $default $notnull $autoinc;
  905. -
  906.     }
  907. -
  908. }
  909. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictOracle.php.html deleted file mode 100644 index 8a100d9ae..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictOracle.php.html +++ /dev/null @@ -1,203 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Oracle.php 1334 2007-05-11 19:20:38Z lsmith $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_DataDict');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @subpackage  Doctrine_DataDict
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @version     $Revision: 1334 $
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * Obtain DBMS specific SQL code portion needed to declare an text type
  69. -
  70.      * field to be used in statements like CREATE TABLE.
  71. -
  72.      *
  73. -
  74.      * @param array $field  associative array with the name of the properties
  75. -
  76.      *       of the field being declared as array indexes. Currently, the types
  77. -
  78.      *       of supported field properties are as follows:
  79. -
  80.      *
  81. -
  82.      *       length
  83. -
  84.      *           Integer value that determines the maximum length of the text
  85. -
  86.      *           field. If this argument is missing the field should be
  87. -
  88.      *           declared to have the longest length allowed by the DBMS.
  89. -
  90.      *
  91. -
  92.      *       default
  93. -
  94.      *           Text value to be used as default for this field.
  95. -
  96.      *
  97. -
  98.      *       notnull
  99. -
  100.      *           Boolean flag that indicates whether this field is constrained
  101. -
  102.      *           to not be set to null.
  103. -
  104.      * @return string  DBMS specific SQL code portion that should be used to
  105. -
  106.      *       declare the specified field.
  107. -
  108.      */
  109. -
  110.     public function getNativeDeclaration(array $field)
  111. -
  112.     {
  113. -
  114.         if isset($field['type'])) {
  115. -
  116.             throw new Doctrine_DataDict_Exception('Missing column type.');
  117. -
  118.         }
  119. -
  120.         switch ($field['type']{
  121. -
  122.             case 'string':
  123. -
  124.             case 'array':
  125. -
  126.             case 'object':
  127. -
  128.             case 'gzip':
  129. -
  130.             case 'char':
  131. -
  132.             case 'varchar':
  133. -
  134.                 $length !empty($field['length'])
  135. -
  136.                     ? $field['length'16777215// TODO: $this->conn->options['default_text_field_length'];
  137. -
  138.  
  139. -
  140.                 $fixed  ((isset($field['fixed']&& $field['fixed']|| $field['type'== 'char'true false;
  141. -
  142.  
  143. -
  144.                 return $fixed 'CHAR('.$length.')' 'VARCHAR2('.$length.')';
  145. -
  146.             case 'clob':
  147. -
  148.                 return 'CLOB';
  149. -
  150.             case 'blob':
  151. -
  152.                 return 'BLOB';
  153. -
  154.             case 'integer':
  155. -
  156.             case 'enum':
  157. -
  158.             case 'int':
  159. -
  160.                 if (!empty($field['length'])) {
  161. -
  162.                     return 'NUMBER('.$field['length'].')';
  163. -
  164.                 }
  165. -
  166.                 return 'INT';
  167. -
  168.             case 'boolean':
  169. -
  170.                 return 'NUMBER(1)';
  171. -
  172.             case 'date':
  173. -
  174.             case 'time':
  175. -
  176.             case 'timestamp':
  177. -
  178.                 return 'DATE';
  179. -
  180.             case 'float':
  181. -
  182.             case 'double':
  183. -
  184.                 return 'NUMBER';
  185. -
  186.             case 'decimal':
  187. -
  188.                 $scale !empty($field['scale']$field['scale'$this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES);
  189. -
  190.                 return 'NUMBER(*,'.$scale.')';
  191. -
  192.             default:
  193. -
  194.         }
  195. -
  196.         throw new Doctrine_DataDict_Exception('Unknown field type \'' $field['type'.  '\'.');
  197. -
  198.     }
  199. -
  200.     /**
  201. -
  202.      * Maps a native array description of a field to a doctrine datatype and length
  203. -
  204.      *
  205. -
  206.      * @param array  $field native field description
  207. -
  208.      * @return array containing the various possible types, length, sign, fixed
  209. -
  210.      * @throws Doctrine_DataDict_Oracle_Exception
  211. -
  212.      */
  213. -
  214.     public function getPortableDeclaration(array $field)
  215. -
  216.     {
  217. -
  218.         $dbType strtolower($field['type']);
  219. -
  220.         $type array();
  221. -
  222.         $length $unsigned $fixed null;
  223. -
  224.         if (!empty($field['length'])) {
  225. -
  226.             $length $field['length'];
  227. -
  228.         }
  229. -
  230.  
  231. -
  232.         if isset($field['name'])) {
  233. -
  234.             $field['name''';
  235. -
  236.         }
  237. -
  238.  
  239. -
  240.         switch ($dbType{
  241. -
  242.             case 'integer':
  243. -
  244.             case 'pls_integer':
  245. -
  246.             case 'binary_integer':
  247. -
  248.                 $type['integer';
  249. -
  250.                 if ($length == '1'{
  251. -
  252.                     $type['boolean';
  253. -
  254.                     if (preg_match('/^(is|has)/'$field['name'])) {
  255. -
  256.                         $type array_reverse($type);
  257. -
  258.                     }
  259. -
  260.                 }
  261. -
  262.                 break;
  263. -
  264.             case 'varchar':
  265. -
  266.             case 'varchar2':
  267. -
  268.             case 'nvarchar2':
  269. -
  270.                 $fixed false;
  271. -
  272.             case 'char':
  273. -
  274.             case 'nchar':
  275. -
  276.                 $type['string';
  277. -
  278.                 if ($length == '1'{
  279. -
  280.                     $type['boolean';
  281. -
  282.                     if (preg_match('/^(is|has)/'$field['name'])) {
  283. -
  284.                         $type array_reverse($type);
  285. -
  286.                     }
  287. -
  288.                 }
  289. -
  290.                 if ($fixed !== false{
  291. -
  292.                     $fixed true;
  293. -
  294.                 }
  295. -
  296.                 break;
  297. -
  298.             case 'date':
  299. -
  300.             case 'timestamp':
  301. -
  302.                 $type['timestamp';
  303. -
  304.                 $length null;
  305. -
  306.                 break;
  307. -
  308.             case 'float':
  309. -
  310.                 $type['float';
  311. -
  312.                 break;
  313. -
  314.             case 'number':
  315. -
  316.                 if (!empty($field['scale'])) {
  317. -
  318.                     $type['decimal';
  319. -
  320.                 else {
  321. -
  322.                     $type['integer';
  323. -
  324.                     if ($length == '1'{
  325. -
  326.                         $type['boolean';
  327. -
  328.                         if (preg_match('/^(is|has)/'$field['name'])) {
  329. -
  330.                             $type array_reverse($type);
  331. -
  332.                         }
  333. -
  334.                     }
  335. -
  336.                 }
  337. -
  338.                 break;
  339. -
  340.             case 'long':
  341. -
  342.                 $type['string';
  343. -
  344.             case 'clob':
  345. -
  346.             case 'nclob':
  347. -
  348.                 $type['clob';
  349. -
  350.                 break;
  351. -
  352.             case 'blob':
  353. -
  354.             case 'raw':
  355. -
  356.             case 'long raw':
  357. -
  358.             case 'bfile':
  359. -
  360.                 $type['blob';
  361. -
  362.                 $length null;
  363. -
  364.             break;
  365. -
  366.             case 'rowid':
  367. -
  368.             case 'urowid':
  369. -
  370.             default:
  371. -
  372.                 throw new Doctrine_DataDict_Exception('unknown database attribute type: ' $dbType);
  373. -
  374.         }
  375. -
  376.  
  377. -
  378.         return array('type'     => $type,
  379. -
  380.                      'length'   => $length,
  381. -
  382.                      'unsigned' => $unsigned,
  383. -
  384.                      'fixed'    => $fixed);
  385. -
  386.     }
  387. -
  388. }
  389. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictPgsql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictPgsql.php.html deleted file mode 100644 index e3863d605..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictPgsql.php.html +++ /dev/null @@ -1,629 +0,0 @@ - -
-

Source for file Pgsql.php

-

Documentation is available at Pgsql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pgsql.php 2033 2007-07-21 15:17:17Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_DataDict');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @subpackage  Doctrine_DataDict
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Paul Cooper <pgc@ucecom.com>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @version     $Revision: 2033 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @param array $reservedKeyWords     an array of reserved keywords by pgsql
  73. -
  74.      */
  75. -
  76.     protected static $reservedKeyWords array(
  77. -
  78.                                         'abort',
  79. -
  80.                                         'absolute',
  81. -
  82.                                         'access',
  83. -
  84.                                         'action',
  85. -
  86.                                         'add',
  87. -
  88.                                         'after',
  89. -
  90.                                         'aggregate',
  91. -
  92.                                         'all',
  93. -
  94.                                         'alter',
  95. -
  96.                                         'analyse',
  97. -
  98.                                         'analyze',
  99. -
  100.                                         'and',
  101. -
  102.                                         'any',
  103. -
  104.                                         'as',
  105. -
  106.                                         'asc',
  107. -
  108.                                         'assertion',
  109. -
  110.                                         'assignment',
  111. -
  112.                                         'at',
  113. -
  114.                                         'authorization',
  115. -
  116.                                         'backward',
  117. -
  118.                                         'before',
  119. -
  120.                                         'begin',
  121. -
  122.                                         'between',
  123. -
  124.                                         'bigint',
  125. -
  126.                                         'binary',
  127. -
  128.                                         'bit',
  129. -
  130.                                         'boolean',
  131. -
  132.                                         'both',
  133. -
  134.                                         'by',
  135. -
  136.                                         'cache',
  137. -
  138.                                         'called',
  139. -
  140.                                         'cascade',
  141. -
  142.                                         'case',
  143. -
  144.                                         'cast',
  145. -
  146.                                         'chain',
  147. -
  148.                                         'char',
  149. -
  150.                                         'character',
  151. -
  152.                                         'characteristics',
  153. -
  154.                                         'check',
  155. -
  156.                                         'checkpoint',
  157. -
  158.                                         'class',
  159. -
  160.                                         'close',
  161. -
  162.                                         'cluster',
  163. -
  164.                                         'coalesce',
  165. -
  166.                                         'collate',
  167. -
  168.                                         'column',
  169. -
  170.                                         'comment',
  171. -
  172.                                         'commit',
  173. -
  174.                                         'committed',
  175. -
  176.                                         'constraint',
  177. -
  178.                                         'constraints',
  179. -
  180.                                         'conversion',
  181. -
  182.                                         'convert',
  183. -
  184.                                         'copy',
  185. -
  186.                                         'create',
  187. -
  188.                                         'createdb',
  189. -
  190.                                         'createuser',
  191. -
  192.                                         'cross',
  193. -
  194.                                         'current_date',
  195. -
  196.                                         'current_time',
  197. -
  198.                                         'current_timestamp',
  199. -
  200.                                         'current_user',
  201. -
  202.                                         'cursor',
  203. -
  204.                                         'cycle',
  205. -
  206.                                         'database',
  207. -
  208.                                         'day',
  209. -
  210.                                         'deallocate',
  211. -
  212.                                         'dec',
  213. -
  214.                                         'decimal',
  215. -
  216.                                         'declare',
  217. -
  218.                                         'default',
  219. -
  220.                                         'deferrable',
  221. -
  222.                                         'deferred',
  223. -
  224.                                         'definer',
  225. -
  226.                                         'delete',
  227. -
  228.                                         'delimiter',
  229. -
  230.                                         'delimiters',
  231. -
  232.                                         'desc',
  233. -
  234.                                         'distinct',
  235. -
  236.                                         'do',
  237. -
  238.                                         'domain',
  239. -
  240.                                         'double',
  241. -
  242.                                         'drop',
  243. -
  244.                                         'each',
  245. -
  246.                                         'else',
  247. -
  248.                                         'encoding',
  249. -
  250.                                         'encrypted',
  251. -
  252.                                         'end',
  253. -
  254.                                         'escape',
  255. -
  256.                                         'except',
  257. -
  258.                                         'exclusive',
  259. -
  260.                                         'execute',
  261. -
  262.                                         'exists',
  263. -
  264.                                         'explain',
  265. -
  266.                                         'external',
  267. -
  268.                                         'extract',
  269. -
  270.                                         'false',
  271. -
  272.                                         'fetch',
  273. -
  274.                                         'float',
  275. -
  276.                                         'for',
  277. -
  278.                                         'force',
  279. -
  280.                                         'foreign',
  281. -
  282.                                         'forward',
  283. -
  284.                                         'freeze',
  285. -
  286.                                         'from',
  287. -
  288.                                         'full',
  289. -
  290.                                         'function',
  291. -
  292.                                         'get',
  293. -
  294.                                         'global',
  295. -
  296.                                         'grant',
  297. -
  298.                                         'group',
  299. -
  300.                                         'handler',
  301. -
  302.                                         'having',
  303. -
  304.                                         'hour',
  305. -
  306.                                         'ilike',
  307. -
  308.                                         'immediate',
  309. -
  310.                                         'immutable',
  311. -
  312.                                         'implicit',
  313. -
  314.                                         'in',
  315. -
  316.                                         'increment',
  317. -
  318.                                         'index',
  319. -
  320.                                         'inherits',
  321. -
  322.                                         'initially',
  323. -
  324.                                         'inner',
  325. -
  326.                                         'inout',
  327. -
  328.                                         'input',
  329. -
  330.                                         'insensitive',
  331. -
  332.                                         'insert',
  333. -
  334.                                         'instead',
  335. -
  336.                                         'int',
  337. -
  338.                                         'integer',
  339. -
  340.                                         'intersect',
  341. -
  342.                                         'interval',
  343. -
  344.                                         'into',
  345. -
  346.                                         'invoker',
  347. -
  348.                                         'is',
  349. -
  350.                                         'isnull',
  351. -
  352.                                         'isolation',
  353. -
  354.                                         'join',
  355. -
  356.                                         'key',
  357. -
  358.                                         'lancompiler',
  359. -
  360.                                         'language',
  361. -
  362.                                         'leading',
  363. -
  364.                                         'left',
  365. -
  366.                                         'level',
  367. -
  368.                                         'like',
  369. -
  370.                                         'limit',
  371. -
  372.                                         'listen',
  373. -
  374.                                         'load',
  375. -
  376.                                         'local',
  377. -
  378.                                         'localtime',
  379. -
  380.                                         'localtimestamp',
  381. -
  382.                                         'location',
  383. -
  384.                                         'lock',
  385. -
  386.                                         'match',
  387. -
  388.                                         'maxvalue',
  389. -
  390.                                         'minute',
  391. -
  392.                                         'minvalue',
  393. -
  394.                                         'mode',
  395. -
  396.                                         'month',
  397. -
  398.                                         'move',
  399. -
  400.                                         'names',
  401. -
  402.                                         'national',
  403. -
  404.                                         'natural',
  405. -
  406.                                         'nchar',
  407. -
  408.                                         'new',
  409. -
  410.                                         'next',
  411. -
  412.                                         'no',
  413. -
  414.                                         'nocreatedb',
  415. -
  416.                                         'nocreateuser',
  417. -
  418.                                         'none',
  419. -
  420.                                         'not',
  421. -
  422.                                         'nothing',
  423. -
  424.                                         'notify',
  425. -
  426.                                         'notnull',
  427. -
  428.                                         'null',
  429. -
  430.                                         'nullif',
  431. -
  432.                                         'numeric',
  433. -
  434.                                         'of',
  435. -
  436.                                         'off',
  437. -
  438.                                         'offset',
  439. -
  440.                                         'oids',
  441. -
  442.                                         'old',
  443. -
  444.                                         'on',
  445. -
  446.                                         'only',
  447. -
  448.                                         'operator',
  449. -
  450.                                         'option',
  451. -
  452.                                         'or',
  453. -
  454.                                         'order',
  455. -
  456.                                         'out',
  457. -
  458.                                         'outer',
  459. -
  460.                                         'overlaps',
  461. -
  462.                                         'overlay',
  463. -
  464.                                         'owner',
  465. -
  466.                                         'partial',
  467. -
  468.                                         'password',
  469. -
  470.                                         'path',
  471. -
  472.                                         'pendant',
  473. -
  474.                                         'placing',
  475. -
  476.                                         'position',
  477. -
  478.                                         'precision',
  479. -
  480.                                         'prepare',
  481. -
  482.                                         'primary',
  483. -
  484.                                         'prior',
  485. -
  486.                                         'privileges',
  487. -
  488.                                         'procedural',
  489. -
  490.                                         'procedure',
  491. -
  492.                                         'read',
  493. -
  494.                                         'real',
  495. -
  496.                                         'recheck',
  497. -
  498.                                         'references',
  499. -
  500.                                         'reindex',
  501. -
  502.                                         'relative',
  503. -
  504.                                         'rename',
  505. -
  506.                                         'replace',
  507. -
  508.                                         'reset',
  509. -
  510.                                         'restrict',
  511. -
  512.                                         'returns',
  513. -
  514.                                         'revoke',
  515. -
  516.                                         'right',
  517. -
  518.                                         'rollback',
  519. -
  520.                                         'row',
  521. -
  522.                                         'rule',
  523. -
  524.                                         'schema',
  525. -
  526.                                         'scroll',
  527. -
  528.                                         'second',
  529. -
  530.                                         'security',
  531. -
  532.                                         'select',
  533. -
  534.                                         'sequence',
  535. -
  536.                                         'serializable',
  537. -
  538.                                         'session',
  539. -
  540.                                         'session_user',
  541. -
  542.                                         'set',
  543. -
  544.                                         'setof',
  545. -
  546.                                         'share',
  547. -
  548.                                         'show',
  549. -
  550.                                         'similar',
  551. -
  552.                                         'simple',
  553. -
  554.                                         'smallint',
  555. -
  556.                                         'some',
  557. -
  558.                                         'stable',
  559. -
  560.                                         'start',
  561. -
  562.                                         'statement',
  563. -
  564.                                         'statistics',
  565. -
  566.                                         'stdin',
  567. -
  568.                                         'stdout',
  569. -
  570.                                         'storage',
  571. -
  572.                                         'strict',
  573. -
  574.                                         'substring',
  575. -
  576.                                         'sysid',
  577. -
  578.                                         'table',
  579. -
  580.                                         'temp',
  581. -
  582.                                         'template',
  583. -
  584.                                         'temporary',
  585. -
  586.                                         'then',
  587. -
  588.                                         'time',
  589. -
  590.                                         'timestamp',
  591. -
  592.                                         'to',
  593. -
  594.                                         'toast',
  595. -
  596.                                         'trailing',
  597. -
  598.                                         'transaction',
  599. -
  600.                                         'treat',
  601. -
  602.                                         'trigger',
  603. -
  604.                                         'trim',
  605. -
  606.                                         'true',
  607. -
  608.                                         'truncate',
  609. -
  610.                                         'trusted',
  611. -
  612.                                         'type',
  613. -
  614.                                         'unencrypted',
  615. -
  616.                                         'union',
  617. -
  618.                                         'unique',
  619. -
  620.                                         'unknown',
  621. -
  622.                                         'unlisten',
  623. -
  624.                                         'until',
  625. -
  626.                                         'update',
  627. -
  628.                                         'usage',
  629. -
  630.                                         'user',
  631. -
  632.                                         'using',
  633. -
  634.                                         'vacuum',
  635. -
  636.                                         'valid',
  637. -
  638.                                         'validator',
  639. -
  640.                                         'values',
  641. -
  642.                                         'varchar',
  643. -
  644.                                         'varying',
  645. -
  646.                                         'verbose',
  647. -
  648.                                         'version',
  649. -
  650.                                         'view',
  651. -
  652.                                         'volatile',
  653. -
  654.                                         'when',
  655. -
  656.                                         'where',
  657. -
  658.                                         'with',
  659. -
  660.                                         'without',
  661. -
  662.                                         'work',
  663. -
  664.                                         'write',
  665. -
  666.                                         'year',
  667. -
  668.                                         'zone'
  669. -
  670.                                         );
  671. -
  672.  
  673. -
  674.     /**
  675. -
  676.      * Obtain DBMS specific SQL code portion needed to declare an text type
  677. -
  678.      * field to be used in statements like CREATE TABLE.
  679. -
  680.      *
  681. -
  682.      * @param array $field  associative array with the name of the properties
  683. -
  684.      *       of the field being declared as array indexes. Currently, the types
  685. -
  686.      *       of supported field properties are as follows:
  687. -
  688.      *
  689. -
  690.      *       length
  691. -
  692.      *           Integer value that determines the maximum length of the text
  693. -
  694.      *           field. If this argument is missing the field should be
  695. -
  696.      *           declared to have the longest length allowed by the DBMS.
  697. -
  698.      *
  699. -
  700.      *       default
  701. -
  702.      *           Text value to be used as default for this field.
  703. -
  704.      *
  705. -
  706.      *       notnull
  707. -
  708.      *           Boolean flag that indicates whether this field is constrained
  709. -
  710.      *           to not be set to null.
  711. -
  712.      *
  713. -
  714.      * @return string  DBMS specific SQL code portion that should be used to
  715. -
  716.      *       declare the specified field.
  717. -
  718.      */
  719. -
  720.     public function getNativeDeclaration(array $field)
  721. -
  722.     {
  723. -
  724.         if isset($field['type'])) {
  725. -
  726.             throw new Doctrine_DataDict_Exception('Missing column type.');
  727. -
  728.         }
  729. -
  730.         switch ($field['type']{
  731. -
  732.             case 'char':
  733. -
  734.             case 'string':
  735. -
  736.             case 'array':
  737. -
  738.             case 'object':
  739. -
  740.             case 'varchar':   
  741. -
  742.             case 'gzip':
  743. -
  744.                 $length (isset($field['length']&& $field['length']$field['length'null;
  745. -
  746.                         // TODO:  $this->conn->options['default_text_field_length'];
  747. -
  748.  
  749. -
  750.                 $fixed  ((isset($field['fixed']&& $field['fixed']|| $field['type'== 'char'true false;
  751. -
  752.  
  753. -
  754.                 return $fixed ($length 'CHAR('.$length.')' 'CHAR('.$this->conn->options['default_text_field_length'].')')
  755. -
  756.                     : ($length 'VARCHAR('.$length.')' 'TEXT');
  757. -
  758.  
  759. -
  760.             case 'clob':
  761. -
  762.                 return 'TEXT';
  763. -
  764.             case 'blob':
  765. -
  766.                 return 'BYTEA';
  767. -
  768.             case 'enum':
  769. -
  770.             case 'integer':
  771. -
  772.             case 'int':
  773. -
  774.                 if (!empty($field['autoincrement'])) {
  775. -
  776.                     if (!empty($field['length'])) {
  777. -
  778.                         $length $field['length'];
  779. -
  780.                         if ($length 4{
  781. -
  782.                             return 'BIGSERIAL';
  783. -
  784.                         }
  785. -
  786.                     }
  787. -
  788.                     return 'SERIAL';
  789. -
  790.                 }
  791. -
  792.                 if (!empty($field['length'])) {
  793. -
  794.                     $length $field['length'];
  795. -
  796.                     if ($length <= 2{
  797. -
  798.                         return 'SMALLINT';
  799. -
  800.                     elseif ($length == || $length == 4{
  801. -
  802.                         return 'INT';
  803. -
  804.                     elseif ($length 4{
  805. -
  806.                         return 'BIGINT';
  807. -
  808.                     }
  809. -
  810.                 }
  811. -
  812.                 return 'INT';
  813. -
  814.             case 'boolean':
  815. -
  816.                 return 'BOOLEAN';
  817. -
  818.             case 'date':
  819. -
  820.                 return 'DATE';
  821. -
  822.             case 'time':
  823. -
  824.                 return 'TIME without time zone';
  825. -
  826.             case 'timestamp':
  827. -
  828.                 return 'TIMESTAMP without time zone';
  829. -
  830.             case 'float':
  831. -
  832.             case 'double':
  833. -
  834.                 return 'FLOAT8';
  835. -
  836.             case 'decimal':
  837. -
  838.                 $length !empty($field['length']$field['length'18;
  839. -
  840.                 $scale !empty($field['scale']$field['scale'$this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES);
  841. -
  842.                 return 'NUMERIC('.$length.','.$scale.')';
  843. -
  844.         }
  845. -
  846.         throw new Doctrine_DataDict_Exception('Unknown field type \'' $field['type'.  '\'.');
  847. -
  848.     }
  849. -
  850.     /**
  851. -
  852.      * Maps a native array description of a field to a portable Doctrine datatype and length
  853. -
  854.      *
  855. -
  856.      * @param array  $field native field description
  857. -
  858.      *
  859. -
  860.      * @return array containing the various possible types, length, sign, fixed
  861. -
  862.      */
  863. -
  864.     public function getPortableDeclaration(array $field)
  865. -
  866.     {
  867. -
  868.  
  869. -
  870.         $length (isset($field['length'])) $field['length'null;
  871. -
  872.         if ($length == '-1' && isset($field['atttypmod'])) {
  873. -
  874.             $length $field['atttypmod'4;
  875. -
  876.         }
  877. -
  878.         if ((int)$length <= 0{
  879. -
  880.             $length null;
  881. -
  882.         }
  883. -
  884.         $type array();
  885. -
  886.         $unsigned $fixed null;
  887. -
  888.  
  889. -
  890.         if isset($field['name'])) {
  891. -
  892.             $field['name''';
  893. -
  894.         }
  895. -
  896.  
  897. -
  898.         $dbType strtolower($field['type']);
  899. -
  900.  
  901. -
  902.         switch ($dbType{
  903. -
  904.             case 'smallint':
  905. -
  906.             case 'int2':
  907. -
  908.                 $type['integer';
  909. -
  910.                 $unsigned false;
  911. -
  912.                 $length 2;
  913. -
  914.                 if ($length == '2'{
  915. -
  916.                     $type['boolean';
  917. -
  918.                     if (preg_match('/^(is|has)/'$field['name'])) {
  919. -
  920.                         $type array_reverse($type);
  921. -
  922.                     }
  923. -
  924.                 }
  925. -
  926.                 break;
  927. -
  928.             case 'int':
  929. -
  930.             case 'int4':
  931. -
  932.             case 'integer':
  933. -
  934.             case 'serial':
  935. -
  936.             case 'serial4':
  937. -
  938.                 $type['integer';
  939. -
  940.                 $unsigned false;
  941. -
  942.                 $length 4;
  943. -
  944.                 break;
  945. -
  946.             case 'bigint':
  947. -
  948.             case 'int8':
  949. -
  950.             case 'bigserial':
  951. -
  952.             case 'serial8':
  953. -
  954.                 $type['integer';
  955. -
  956.                 $unsigned false;
  957. -
  958.                 $length 8;
  959. -
  960.                 break;
  961. -
  962.             case 'bool':
  963. -
  964.             case 'boolean':
  965. -
  966.                 $type['boolean';
  967. -
  968.                 $length 1;
  969. -
  970.                 break;
  971. -
  972.             case 'text':
  973. -
  974.             case 'varchar':
  975. -
  976.                 $fixed false;
  977. -
  978.             case 'unknown':
  979. -
  980.             case 'char':
  981. -
  982.             case 'bpchar':
  983. -
  984.                 $type['string';
  985. -
  986.                 if ($length == '1'{
  987. -
  988.                     $type['boolean';
  989. -
  990.                     if (preg_match('/^(is|has)/'$field['name'])) {
  991. -
  992.                         $type array_reverse($type);
  993. -
  994.                     }
  995. -
  996.                 elseif (strstr($dbType'text')) {
  997. -
  998.                     $type['clob';
  999. -
  1000.                 }
  1001. -
  1002.                 if ($fixed !== false{
  1003. -
  1004.                     $fixed true;
  1005. -
  1006.                 }
  1007. -
  1008.                 break;
  1009. -
  1010.             case 'date':
  1011. -
  1012.                 $type['date';
  1013. -
  1014.                 $length null;
  1015. -
  1016.                 break;
  1017. -
  1018.             case 'datetime':
  1019. -
  1020.             case 'timestamp':
  1021. -
  1022.                 $type['timestamp';
  1023. -
  1024.                 $length null;
  1025. -
  1026.                 break;
  1027. -
  1028.             case 'time':
  1029. -
  1030.                 $type['time';
  1031. -
  1032.                 $length null;
  1033. -
  1034.                 break;
  1035. -
  1036.             case 'float':
  1037. -
  1038.             case 'double':
  1039. -
  1040.             case 'real':
  1041. -
  1042.                 $type['float';
  1043. -
  1044.                 break;
  1045. -
  1046.             case 'decimal':
  1047. -
  1048.             case 'money':
  1049. -
  1050.             case 'numeric':
  1051. -
  1052.                 $type['decimal';
  1053. -
  1054.                 break;
  1055. -
  1056.             case 'tinyblob':
  1057. -
  1058.             case 'mediumblob':
  1059. -
  1060.             case 'longblob':
  1061. -
  1062.             case 'blob':
  1063. -
  1064.             case 'bytea':
  1065. -
  1066.                 $type['blob';
  1067. -
  1068.                 $length null;
  1069. -
  1070.                 break;
  1071. -
  1072.             case 'oid':
  1073. -
  1074.                 $type['blob';
  1075. -
  1076.                 $type['clob';
  1077. -
  1078.                 $length null;
  1079. -
  1080.                 break;
  1081. -
  1082.             case 'year':
  1083. -
  1084.                 $type['integer';
  1085. -
  1086.                 $type['date';
  1087. -
  1088.                 $length null;
  1089. -
  1090.                 break;
  1091. -
  1092.             default:
  1093. -
  1094.                 throw new Doctrine_DataDict_Exception('unknown database attribute type: '.$dbType);
  1095. -
  1096.         }
  1097. -
  1098.  
  1099. -
  1100.         return array('type'     => $type,
  1101. -
  1102.                      'length'   => $length,
  1103. -
  1104.                      'unsigned' => $unsigned,
  1105. -
  1106.                      'fixed'    => $fixed);
  1107. -
  1108.     }
  1109. -
  1110.     /**
  1111. -
  1112.      * Obtain DBMS specific SQL code portion needed to declare an integer type
  1113. -
  1114.      * field to be used in statements like CREATE TABLE.
  1115. -
  1116.      *
  1117. -
  1118.      * @param string $name name the field to be declared.
  1119. -
  1120.      * @param array $field associative array with the name of the properties
  1121. -
  1122.      *        of the field being declared as array indexes. Currently, the types
  1123. -
  1124.      *        of supported field properties are as follows:
  1125. -
  1126.      *
  1127. -
  1128.      *        unsigned
  1129. -
  1130.      *            Boolean flag that indicates whether the field should be
  1131. -
  1132.      *            declared as unsigned integer if possible.
  1133. -
  1134.      *
  1135. -
  1136.      *        default
  1137. -
  1138.      *            Integer value to be used as default for this field.
  1139. -
  1140.      *
  1141. -
  1142.      *        notnull
  1143. -
  1144.      *            Boolean flag that indicates whether this field is constrained
  1145. -
  1146.      *            to not be set to null.
  1147. -
  1148.      * @return string DBMS specific SQL code portion that should be used to
  1149. -
  1150.      *        declare the specified field.
  1151. -
  1152.      */
  1153. -
  1154.     public function getIntegerDeclaration($name$field)
  1155. -
  1156.     {
  1157. -
  1158.         /**
  1159. -
  1160.         if (!empty($field['unsigned'])) {
  1161. -
  1162.             $this->conn->warnings[] = "unsigned integer field \"$name\" is being declared as signed integer";
  1163. -
  1164.         }
  1165. -
  1166.         */
  1167. -
  1168.  
  1169. -
  1170.         if empty($field['autoincrement'])) {
  1171. -
  1172.             $name $this->conn->quoteIdentifier($nametrue);
  1173. -
  1174.             return $name ' ' $this->getNativeDeclaration($field);
  1175. -
  1176.         }
  1177. -
  1178.  
  1179. -
  1180.         $default '';
  1181. -
  1182.         if (array_key_exists('default'$field)) {
  1183. -
  1184.             if ($field['default'=== ''{
  1185. -
  1186.                 $field['default'empty($field['notnull']null 0;
  1187. -
  1188.             }
  1189. -
  1190.             $default ' DEFAULT '.$this->conn->quote($field['default']$field['type']);
  1191. -
  1192.         }
  1193. -
  1194.         /**
  1195. -
  1196.         TODO: is this needed ?
  1197. -
  1198.         elseif (empty($field['notnull'])) {
  1199. -
  1200.             $default = ' DEFAULT NULL';
  1201. -
  1202.         }
  1203. -
  1204.         */
  1205. -
  1206.  
  1207. -
  1208.         $notnull empty($field['notnull']'' ' NOT NULL';
  1209. -
  1210.         $name $this->conn->quoteIdentifier($nametrue);
  1211. -
  1212.         return $name ' ' $this->getNativeDeclaration($field$default $notnull;
  1213. -
  1214.     }
  1215. -
  1216.     /**
  1217. -
  1218.      * parseBoolean
  1219. -
  1220.      * parses a literal boolean value and returns
  1221. -
  1222.      * proper sql equivalent
  1223. -
  1224.      *
  1225. -
  1226.      * @param string $value     boolean value to be parsed
  1227. -
  1228.      * @return string           parsed boolean value
  1229. -
  1230.      */
  1231. -
  1232.     public function parseBoolean($value)
  1233. -
  1234.     {
  1235. -
  1236.         return $value;
  1237. -
  1238.     }
  1239. -
  1240. }
  1241. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictSqlite.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictSqlite.php.html deleted file mode 100644 index acd100b6b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine_Doctrine_DataDict_DoctrineDataDictSqlite.php.html +++ /dev/null @@ -1,307 +0,0 @@ - -
-

Source for file Sqlite.php

-

Documentation is available at Sqlite.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sqlite.php 2196 2007-08-10 20:29:07Z meus $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_DataDict');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @subpackage  Doctrine_DataDict
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @version     $Revision: 2196 $
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Obtain DBMS specific SQL code portion needed to declare an text type
  71. -
  72.      * field to be used in statements like CREATE TABLE.
  73. -
  74.      *
  75. -
  76.      * @param array $field  associative array with the name of the properties
  77. -
  78.      *       of the field being declared as array indexes. Currently, the types
  79. -
  80.      *       of supported field properties are as follows:
  81. -
  82.      *
  83. -
  84.      *       length
  85. -
  86.      *           Integer value that determines the maximum length of the text
  87. -
  88.      *           field. If this argument is missing the field should be
  89. -
  90.      *           declared to have the longest length allowed by the DBMS.
  91. -
  92.      *
  93. -
  94.      *       default
  95. -
  96.      *           Text value to be used as default for this field.
  97. -
  98.      *
  99. -
  100.      *       notnull
  101. -
  102.      *           Boolean flag that indicates whether this field is constrained
  103. -
  104.      *           to not be set to null.
  105. -
  106.      * @author Lukas Smith (PEAR MDB2 library)
  107. -
  108.      * @return string  DBMS specific SQL code portion that should be used to
  109. -
  110.      *       declare the specified field.
  111. -
  112.      */
  113. -
  114.     public function getNativeDeclaration(array $field)
  115. -
  116.     {
  117. -
  118.         if isset($field['type'])) {
  119. -
  120.             throw new Doctrine_DataDict_Exception('Missing column type.');
  121. -
  122.         }
  123. -
  124.         switch ($field['type']{
  125. -
  126.             case 'text':
  127. -
  128.             case 'object':
  129. -
  130.             case 'array':
  131. -
  132.             case 'string':
  133. -
  134.             case 'char':
  135. -
  136.             case 'gzip':
  137. -
  138.             case 'varchar':
  139. -
  140.                 $length (isset($field['length']&& $field['length']$field['length'null;
  141. -
  142.  
  143. -
  144.                 $fixed  ((isset($field['fixed']&& $field['fixed']|| $field['type'== 'char'true false;
  145. -
  146.  
  147. -
  148.                 return $fixed ($length 'CHAR('.$length.')' 'CHAR('.$this->conn->getAttribute(Doctrine::ATTR_DEFAULT_TEXTFLD_LENGTH).')')
  149. -
  150.                     : ($length 'VARCHAR('.$length.')' 'TEXT');
  151. -
  152.             case 'clob':
  153. -
  154.                 if (!empty($field['length'])) {
  155. -
  156.                     $length $field['length'];
  157. -
  158.                     if ($length <= 255{
  159. -
  160.                         return 'TINYTEXT';
  161. -
  162.                     elseif ($length <= 65535{
  163. -
  164.                         return 'TEXT';
  165. -
  166.                     elseif ($length <= 16777215{
  167. -
  168.                         return 'MEDIUMTEXT';
  169. -
  170.                     }
  171. -
  172.                 }
  173. -
  174.                 return 'LONGTEXT';
  175. -
  176.             case 'blob':
  177. -
  178.                 if (!empty($field['length'])) {
  179. -
  180.                     $length $field['length'];
  181. -
  182.                     if ($length <= 255{
  183. -
  184.                         return 'TINYBLOB';
  185. -
  186.                     elseif ($length <= 65535{
  187. -
  188.                         return 'BLOB';
  189. -
  190.                     elseif ($length <= 16777215{
  191. -
  192.                         return 'MEDIUMBLOB';
  193. -
  194.                     }
  195. -
  196.                 }
  197. -
  198.                 return 'LONGBLOB';
  199. -
  200.             case 'enum':
  201. -
  202.             case 'integer':
  203. -
  204.             case 'boolean':
  205. -
  206.             case 'int':
  207. -
  208.                 return 'INTEGER';
  209. -
  210.             case 'date':
  211. -
  212.                 return 'DATE';
  213. -
  214.             case 'time':
  215. -
  216.                 return 'TIME';
  217. -
  218.             case 'timestamp':
  219. -
  220.                 return 'DATETIME';
  221. -
  222.             case 'float':
  223. -
  224.             case 'double':
  225. -
  226.                 return 'DOUBLE';//($this->conn->options['fixed_float'] ? '('.
  227. -
  228.                     //($this->conn->options['fixed_float']+2).','.$this->conn->options['fixed_float'].')' : '');
  229. -
  230.             case 'decimal':
  231. -
  232.                 $length !empty($field['length']$field['length'18;
  233. -
  234.                 $scale !empty($field['scale']$field['scale'$this->conn->getAttribute(Doctrine::ATTR_DECIMAL_PLACES);
  235. -
  236.                 return 'DECIMAL('.$length.','.$scale.')';
  237. -
  238.         }
  239. -
  240.         throw new Doctrine_DataDict_Exception('Unknown field type \'' $field['type'.  '\'.');
  241. -
  242.     }
  243. -
  244.     /**
  245. -
  246.      * Maps a native array description of a field to Doctrine datatype and length
  247. -
  248.      *
  249. -
  250.      * @param array  $field native field description
  251. -
  252.      * @return array containing the various possible types, length, sign, fixed
  253. -
  254.      */
  255. -
  256.     public function getPortableDeclaration(array $field)
  257. -
  258.     {
  259. -
  260.         $dbType strtolower($field['type']);
  261. -
  262.         $length (isset($field['length'])) $field['length'null;
  263. -
  264.         $unsigned (isset($field['unsigned'])) $field['unsigned'null;
  265. -
  266.         $fixed null;
  267. -
  268.         $type array();
  269. -
  270.  
  271. -
  272.         if isset($field['name'])) {
  273. -
  274.             $field['name''';
  275. -
  276.         }
  277. -
  278.  
  279. -
  280.         switch ($dbType{
  281. -
  282.             case 'boolean':
  283. -
  284.                 $type['boolean';
  285. -
  286.                 break;
  287. -
  288.             case 'tinyint':
  289. -
  290.                 $type['integer';
  291. -
  292.                 $type['boolean';
  293. -
  294.                 if (preg_match('/^(is|has)/'$field['name'])) {
  295. -
  296.                     $type array_reverse($type);
  297. -
  298.                 }
  299. -
  300.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  301. -
  302.                 $length 1;
  303. -
  304.                 break;
  305. -
  306.             case 'smallint':
  307. -
  308.                 $type['integer';
  309. -
  310.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  311. -
  312.                 $length 2;
  313. -
  314.                 break;
  315. -
  316.             case 'mediumint':
  317. -
  318.                 $type['integer';
  319. -
  320.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  321. -
  322.                 $length 3;
  323. -
  324.                 break;
  325. -
  326.             case 'int':
  327. -
  328.             case 'integer':
  329. -
  330.             case 'serial':
  331. -
  332.                 $type['integer';
  333. -
  334.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  335. -
  336.                 $length 4;
  337. -
  338.                 break;
  339. -
  340.             case 'bigint':
  341. -
  342.             case 'bigserial':
  343. -
  344.                 $type['integer';
  345. -
  346.                 $unsigned preg_match('/ unsigned/i'$field['type']);
  347. -
  348.                 $length 8;
  349. -
  350.                 break;
  351. -
  352.             case 'clob':
  353. -
  354.             case 'tinytext':
  355. -
  356.             case 'mediumtext':
  357. -
  358.             case 'longtext':
  359. -
  360.             case 'text':
  361. -
  362.             case 'varchar':
  363. -
  364.             case 'varchar2':
  365. -
  366.                 $fixed false;
  367. -
  368.             case 'char':
  369. -
  370.                 $type['text';
  371. -
  372.                 if ($length == '1'{
  373. -
  374.                     $type['boolean';
  375. -
  376.                     if (preg_match('/^(is|has)/'$field['name'])) {
  377. -
  378.                         $type array_reverse($type);
  379. -
  380.                     }
  381. -
  382.                 elseif (strstr($dbType'text')) {
  383. -
  384.                     $type['clob';
  385. -
  386.                 }
  387. -
  388.                 if ($fixed !== false{
  389. -
  390.                     $fixed true;
  391. -
  392.                 }
  393. -
  394.                 break;
  395. -
  396.             case 'date':
  397. -
  398.                 $type['date';
  399. -
  400.                 $length null;
  401. -
  402.                 break;
  403. -
  404.             case 'datetime':
  405. -
  406.             case 'timestamp':
  407. -
  408.                 $type['timestamp';
  409. -
  410.                 $length null;
  411. -
  412.                 break;
  413. -
  414.             case 'time':
  415. -
  416.                 $type['time';
  417. -
  418.                 $length null;
  419. -
  420.                 break;
  421. -
  422.             case 'float':
  423. -
  424.             case 'double':
  425. -
  426.             case 'real':
  427. -
  428.                 $type['float';
  429. -
  430.                 $length null;
  431. -
  432.                 break;
  433. -
  434.             case 'decimal':
  435. -
  436.             case 'numeric':
  437. -
  438.                 $type['decimal';
  439. -
  440.                 $length null;
  441. -
  442.                 break;
  443. -
  444.             case 'tinyblob':
  445. -
  446.             case 'mediumblob':
  447. -
  448.             case 'longblob':
  449. -
  450.             case 'blob':
  451. -
  452.                 $type['blob';
  453. -
  454.                 $length null;
  455. -
  456.                 break;
  457. -
  458.             case 'year':
  459. -
  460.                 $type['integer';
  461. -
  462.                 $type['date';
  463. -
  464.                 $length null;
  465. -
  466.                 break;
  467. -
  468.             default:
  469. -
  470.                 throw new Doctrine_DataDict_Exception('unknown database attribute type: '.$dbType);
  471. -
  472.         }
  473. -
  474.  
  475. -
  476.         return array('type'     => $type,
  477. -
  478.                      'length'   => $length,
  479. -
  480.                      'unsigned' => $unsigned,
  481. -
  482.                      'fixed'    => $fixed);
  483. -
  484.     }
  485. -
  486.     /**
  487. -
  488.      * Obtain DBMS specific SQL code portion needed to declare an integer type
  489. -
  490.      * field to be used in statements like CREATE TABLE.
  491. -
  492.      *
  493. -
  494.      * @param string  $name   name the field to be declared.
  495. -
  496.      * @param array  $field   associative array with the name of the properties
  497. -
  498.      *                         of the field being declared as array indexes.
  499. -
  500.      *                         Currently, the types of supported field
  501. -
  502.      *                         properties are as follows:
  503. -
  504.      *
  505. -
  506.      *                        unsigned
  507. -
  508.      *                         Boolean flag that indicates whether the field
  509. -
  510.      *                         should be declared as unsigned integer if
  511. -
  512.      *                         possible.
  513. -
  514.      *
  515. -
  516.      *                        default
  517. -
  518.      *                         Integer value to be used as default for this
  519. -
  520.      *                         field.
  521. -
  522.      *
  523. -
  524.      *                        notnull
  525. -
  526.      *                         Boolean flag that indicates whether this field is
  527. -
  528.      *                         constrained to not be set to null.
  529. -
  530.      * @return string  DBMS specific SQL code portion that should be used to
  531. -
  532.      *                  declare the specified field.
  533. -
  534.      * @access protected
  535. -
  536.      */
  537. -
  538.     public function getIntegerDeclaration($namearray $field)
  539. -
  540.     {
  541. -
  542.         $default $autoinc '';
  543. -
  544.         $type    $this->getNativeDeclaration($field);
  545. -
  546.  
  547. -
  548.         $autoincrement = isset($field['autoincrement']&& $field['autoincrement'];
  549. -
  550.  
  551. -
  552.         if ($autoincrement){
  553. -
  554.             $autoinc ' PRIMARY KEY AUTOINCREMENT';
  555. -
  556.             $type    'INTEGER';
  557. -
  558.         elseif (array_key_exists('default'$field)) {
  559. -
  560.             if ($field['default'=== ''{
  561. -
  562.                 $field['default'empty($field['notnull']null 0;
  563. -
  564.             }
  565. -
  566.             $default ' DEFAULT ' $this->conn->quote($field['default']$field['type']);
  567. -
  568.         }/**
  569. -
  570.         elseif (empty($field['notnull'])) {
  571. -
  572.             $default = ' DEFAULT NULL';
  573. -
  574.         }
  575. -
  576.         */
  577. -
  578.  
  579. -
  580.         $notnull  (isset($field['notnull']&& $field['notnull']' NOT NULL' '';
  581. -
  582.  
  583. -
  584.         // sqlite does not support unsigned attribute for autoinremented fields
  585. -
  586.         $unsigned (isset($field['unsigned']&& $field['unsigned'&& !$autoincrement' UNSIGNED' '';
  587. -
  588.  
  589. -
  590.         $name $this->conn->quoteIdentifier($nametrue);
  591. -
  592.         return $name ' ' $type $unsigned $default $notnull $autoinc;
  593. -
  594.     }
  595. -
  596. }
  597. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__Doctrine.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__Doctrine.php.html deleted file mode 100644 index b22da8a2b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__Doctrine.php.html +++ /dev/null @@ -1,556 +0,0 @@ - -
-

Source for file Doctrine.php

-

Documentation is available at Doctrine.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Doctrine.php 2255 2007-08-16 22:42:35Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine
  46. -
  47.  * the base class of Doctrine framework
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 2255 $
  66. -
  67.  */
  68. -
  69. final class Doctrine
  70. -
  71. {
  72. -
  73.     /**
  74. -
  75.      * ERROR CONSTANTS
  76. -
  77.      */
  78. -
  79.     const ERR                       = -1;
  80. -
  81.     const ERR_SYNTAX                = -2;
  82. -
  83.     const ERR_CONSTRAINT            = -3;
  84. -
  85.     const ERR_NOT_FOUND             = -4;
  86. -
  87.     const ERR_ALREADY_EXISTS        = -5;
  88. -
  89.     const ERR_UNSUPPORTED           = -6;
  90. -
  91.     const ERR_MISMATCH              = -7;
  92. -
  93.     const ERR_INVALID               = -8;
  94. -
  95.     const ERR_NOT_CAPABLE           = -9;
  96. -
  97.     const ERR_TRUNCATED             = -10;
  98. -
  99.     const ERR_INVALID_NUMBER        = -11;
  100. -
  101.     const ERR_INVALID_DATE          = -12;
  102. -
  103.     const ERR_DIVZERO               = -13;
  104. -
  105.     const ERR_NODBSELECTED          = -14;
  106. -
  107.     const ERR_CANNOT_CREATE         = -15;
  108. -
  109.     const ERR_CANNOT_DELETE         = -16;
  110. -
  111.     const ERR_CANNOT_DROP           = -17;
  112. -
  113.     const ERR_NOSUCHTABLE           = -18;
  114. -
  115.     const ERR_NOSUCHFIELD           = -19;
  116. -
  117.     const ERR_NEED_MORE_DATA        = -20;
  118. -
  119.     const ERR_NOT_LOCKED            = -21;
  120. -
  121.     const ERR_VALUE_COUNT_ON_ROW    = -22;
  122. -
  123.     const ERR_INVALID_DSN           = -23;
  124. -
  125.     const ERR_CONNECT_FAILED        = -24;
  126. -
  127.     const ERR_EXTENSION_NOT_FOUND   = -25;
  128. -
  129.     const ERR_NOSUCHDB              = -26;
  130. -
  131.     const ERR_ACCESS_VIOLATION      = -27;
  132. -
  133.     const ERR_CANNOT_REPLACE        = -28;
  134. -
  135.     const ERR_CONSTRAINT_NOT_NULL   = -29;
  136. -
  137.     const ERR_DEADLOCK              = -30;
  138. -
  139.     const ERR_CANNOT_ALTER          = -31;
  140. -
  141.     const ERR_MANAGER               = -32;
  142. -
  143.     const ERR_MANAGER_PARSE         = -33;
  144. -
  145.     const ERR_LOADMODULE            = -34;
  146. -
  147.     const ERR_INSUFFICIENT_DATA     = -35;
  148. -
  149.     const ERR_CLASS_NAME            = -36;
  150. -
  151.     
  152. -
  153.     /**
  154. -
  155.      * PDO derived constants
  156. -
  157.      */
  158. -
  159.     const CASE_LOWER 2;
  160. -
  161.     const CASE_NATURAL 0;
  162. -
  163.     const CASE_UPPER 1;
  164. -
  165.     const CURSOR_FWDONLY 0;
  166. -
  167.     const CURSOR_SCROLL 1;
  168. -
  169.     const ERRMODE_EXCEPTION 2;
  170. -
  171.     const ERRMODE_SILENT 0;
  172. -
  173.     const ERRMODE_WARNING 1;
  174. -
  175.     const FETCH_ASSOC 2;
  176. -
  177.     const FETCH_BOTH 4;
  178. -
  179.     const FETCH_BOUND 6;
  180. -
  181.     const FETCH_CLASS 8;
  182. -
  183.     const FETCH_CLASSTYPE 262144;
  184. -
  185.     const FETCH_COLUMN 7;
  186. -
  187.     const FETCH_FUNC 10;
  188. -
  189.     const FETCH_GROUP 65536;
  190. -
  191.     const FETCH_INTO 9;
  192. -
  193.     const FETCH_LAZY 1;
  194. -
  195.     const FETCH_NAMED 11;
  196. -
  197.     const FETCH_NUM 3;
  198. -
  199.     const FETCH_OBJ 5;
  200. -
  201.     const FETCH_ORI_ABS 4;
  202. -
  203.     const FETCH_ORI_FIRST 2;
  204. -
  205.     const FETCH_ORI_LAST 3;
  206. -
  207.     const FETCH_ORI_NEXT 0;
  208. -
  209.     const FETCH_ORI_PRIOR 1;
  210. -
  211.     const FETCH_ORI_REL 5;
  212. -
  213.     const FETCH_SERIALIZE 524288;
  214. -
  215.     const FETCH_UNIQUE 196608;
  216. -
  217.     const NULL_EMPTY_STRING 1;
  218. -
  219.     const NULL_NATURAL 0;
  220. -
  221.     const NULL_TO_STRING         NULL;
  222. -
  223.     const PARAM_BOOL 5;
  224. -
  225.     const PARAM_INPUT_OUTPUT = -2147483648;
  226. -
  227.     const PARAM_INT 1;
  228. -
  229.     const PARAM_LOB 3;
  230. -
  231.     const PARAM_NULL 0;
  232. -
  233.     const PARAM_STMT 4;
  234. -
  235.     const PARAM_STR 2;
  236. -
  237.     /**
  238. -
  239.      * ATTRIBUTE CONSTANTS
  240. -
  241.      */
  242. -
  243.      
  244. -
  245.     /**
  246. -
  247.      * PDO derived attributes
  248. -
  249.      */
  250. -
  251.     const ATTR_AUTOCOMMIT           0;
  252. -
  253.     const ATTR_PREFETCH             1;
  254. -
  255.     const ATTR_TIMEOUT              2
  256. -
  257.     const ATTR_ERRMODE              3;
  258. -
  259.     const ATTR_SERVER_VERSION       4;
  260. -
  261.     const ATTR_CLIENT_VERSION       5;
  262. -
  263.     const ATTR_SERVER_INFO          6;
  264. -
  265.     const ATTR_CONNECTION_STATUS    7;
  266. -
  267.     const ATTR_CASE                 8;
  268. -
  269.     const ATTR_CURSOR_NAME          9;
  270. -
  271.     const ATTR_CURSOR               10;
  272. -
  273.     const ATTR_ORACLE_NULLS         11;
  274. -
  275.     const ATTR_PERSISTENT           12;
  276. -
  277.     const ATTR_STATEMENT_CLASS      13;
  278. -
  279.     const ATTR_FETCH_TABLE_NAMES    14;
  280. -
  281.     const ATTR_FETCH_CATALOG_NAMES  15;
  282. -
  283.     const ATTR_DRIVER_NAME          16;
  284. -
  285.     const ATTR_STRINGIFY_FETCHES    17;
  286. -
  287.     const ATTR_MAX_COLUMN_LEN       18;
  288. -
  289.  
  290. -
  291.     /**
  292. -
  293.      * Doctrine constants
  294. -
  295.      */
  296. -
  297.     const ATTR_LISTENER             100;
  298. -
  299.     const ATTR_QUOTE_IDENTIFIER     101;
  300. -
  301.     const ATTR_FIELD_CASE           102;
  302. -
  303.     const ATTR_IDXNAME_FORMAT       103;
  304. -
  305.     const ATTR_SEQNAME_FORMAT       104;
  306. -
  307.     const ATTR_SEQCOL_NAME          105;
  308. -
  309.     const ATTR_CMPNAME_FORMAT       118;
  310. -
  311.     const ATTR_DBNAME_FORMAT        117;
  312. -
  313.     const ATTR_TBLCLASS_FORMAT      119;
  314. -
  315.     const ATTR_EXPORT               140;
  316. -
  317.     const ATTR_DECIMAL_PLACES       141;  
  318. -
  319.  
  320. -
  321.     const ATTR_PORTABILITY          106;
  322. -
  323.     const ATTR_VLD                  107;
  324. -
  325.     const ATTR_COLL_KEY             108;
  326. -
  327.     const ATTR_QUERY_LIMIT          109;
  328. -
  329.     const ATTR_AUTO_LENGTH_VLD      110;
  330. -
  331.     const ATTR_AUTO_TYPE_VLD        111;
  332. -
  333.     const ATTR_DEFAULT_TABLE_TYPE   112;
  334. -
  335.     const ATTR_DEF_TEXT_LENGTH      113;
  336. -
  337.     const ATTR_DEF_VARCHAR_LENGTH   114;
  338. -
  339.     const ATTR_DEF_TABLESPACE       115;
  340. -
  341.     const ATTR_EMULATE_DATABASE     116;
  342. -
  343.     const ATTR_DEFAULT_SEQUENCE     133;
  344. -
  345.  
  346. -
  347.     /** TODO: REMOVE THE FOLLOWING CONSTANTS AND UPDATE THE DOCS ! */
  348. -
  349.  
  350. -
  351.  
  352. -
  353.     const ATTR_FETCHMODE            118;
  354. -
  355.     const ATTR_BATCH_SIZE           119;
  356. -
  357.     const ATTR_LOCKMODE             120;
  358. -
  359.     const ATTR_NAME_PREFIX          121;
  360. -
  361.     const ATTR_CREATE_TABLES        122;
  362. -
  363.     const ATTR_COLL_LIMIT           123;
  364. -
  365.     const ATTR_ACCESSORS            124;
  366. -
  367.     const ATTR_ACCESSOR_PREFIX_GET  125;
  368. -
  369.     const ATTR_ACCESSOR_PREFIX_SET  126;
  370. -
  371.  
  372. -
  373.     /**
  374. -
  375.      * NESTED SET CONSTANTS
  376. -
  377.      */
  378. -
  379.     const ATTR_NS_ROOT_COLUMN_NAME  130;
  380. -
  381.     const ATTR_NS_GAP_SIZE          131;
  382. -
  383.     const ATTR_NS_GAP_DECREASE_EXP  132;
  384. -
  385.  
  386. -
  387.     const ATTR_CACHE                150;
  388. -
  389.     const ATTR_CACHE_LIFESPAN       151;
  390. -
  391.     const ATTR_LOAD_REFERENCES      153;
  392. -
  393.     const ATTR_RECORD_LISTENER      154;
  394. -
  395.     const ATTR_THROW_EXCEPTIONS     155;
  396. -
  397.  
  398. -
  399.  
  400. -
  401.     /**
  402. -
  403.      * LIMIT CONSTANTS
  404. -
  405.      */
  406. -
  407.  
  408. -
  409.     /**
  410. -
  411.      * constant for row limiting
  412. -
  413.      */
  414. -
  415.     const LIMIT_ROWS       1;
  416. -
  417.     /**
  418. -
  419.      * constant for record limiting
  420. -
  421.      */
  422. -
  423.     const LIMIT_RECORDS    2;
  424. -
  425.  
  426. -
  427.     /**
  428. -
  429.      * FETCHMODE CONSTANTS
  430. -
  431.      */
  432. -
  433.  
  434. -
  435.     /**
  436. -
  437.      * IMMEDIATE FETCHING
  438. -
  439.      * mode for immediate fetching
  440. -
  441.      */
  442. -
  443.     const FETCH_IMMEDIATE       0;
  444. -
  445.     /**
  446. -
  447.      * BATCH FETCHING
  448. -
  449.      * mode for batch fetching
  450. -
  451.      */
  452. -
  453.     const FETCH_BATCH           1;
  454. -
  455.     /**
  456. -
  457.      * LAZY FETCHING
  458. -
  459.      * mode for offset fetching
  460. -
  461.      */
  462. -
  463.     const FETCH_OFFSET          3;
  464. -
  465.     /**
  466. -
  467.      * LAZY OFFSET FETCHING
  468. -
  469.      * mode for lazy offset fetching
  470. -
  471.      */
  472. -
  473.     const FETCH_LAZY_OFFSET     4;
  474. -
  475.  
  476. -
  477.     /**
  478. -
  479.      * FETCH CONSTANTS
  480. -
  481.      */
  482. -
  483.  
  484. -
  485.  
  486. -
  487.     /**
  488. -
  489.      * FETCH VALUEHOLDER
  490. -
  491.      */
  492. -
  493.     const FETCH_VHOLDER         1;
  494. -
  495.     /**
  496. -
  497.      * FETCH RECORD
  498. -
  499.      *
  500. -
  501.      * Specifies that the fetch method shall return Doctrine_Record
  502. -
  503.      * objects as the elements of the result set.
  504. -
  505.      *
  506. -
  507.      * This is the default fetchmode.
  508. -
  509.      */
  510. -
  511.     const FETCH_RECORD          2;
  512. -
  513.     /**
  514. -
  515.      * FETCH ARRAY
  516. -
  517.      */
  518. -
  519.  
  520. -
  521.     const FETCH_ARRAY           3;
  522. -
  523.     /**
  524. -
  525.      * PORTABILITY CONSTANTS
  526. -
  527.      */
  528. -
  529.  
  530. -
  531.     /**
  532. -
  533.      * Portability: turn off all portability features.
  534. -
  535.      * @see Doctrine::ATTR_PORTABILITY
  536. -
  537.      */
  538. -
  539.     const PORTABILITY_NONE          0;
  540. -
  541.     /**
  542. -
  543.      * Portability: convert names of tables and fields to case defined in the
  544. -
  545.      * "field_case" option when using the query*(), fetch*() methods.
  546. -
  547.      * @see Doctrine::ATTR_PORTABILITY
  548. -
  549.      */
  550. -
  551.     const PORTABILITY_FIX_CASE      1;
  552. -
  553.  
  554. -
  555.     /**
  556. -
  557.      * Portability: right trim the data output by query*() and fetch*().
  558. -
  559.      * @see Doctrine::ATTR_PORTABILITY
  560. -
  561.      */
  562. -
  563.     const PORTABILITY_RTRIM         2;
  564. -
  565.     /**
  566. -
  567.      * Portability: force reporting the number of rows deleted.
  568. -
  569.      * @see Doctrine::ATTR_PORTABILITY
  570. -
  571.      */
  572. -
  573.     const PORTABILITY_DELETE_COUNT  4;
  574. -
  575.     /**
  576. -
  577.      * Portability: convert empty values to null strings in data output by
  578. -
  579.      * query*() and fetch*().
  580. -
  581.      * @see Doctrine::ATTR_PORTABILITY
  582. -
  583.      */
  584. -
  585.     const PORTABILITY_EMPTY_TO_NULL 8;
  586. -
  587.     /**
  588. -
  589.      * Portability: removes database/table qualifiers from associative indexes
  590. -
  591.      * @see Doctrine::ATTR_PORTABILITY
  592. -
  593.      */
  594. -
  595.     const PORTABILITY_FIX_ASSOC_FIELD_NAMES 16;
  596. -
  597.     /**
  598. -
  599.      * Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions
  600. -
  601.      * @see Doctrine::ATTR_PORTABILITY
  602. -
  603.      */
  604. -
  605.     const PORTABILITY_EXPR          32;
  606. -
  607.     /**
  608. -
  609.      * Portability: turn on all portability features.
  610. -
  611.      * @see Doctrine::ATTR_PORTABILITY
  612. -
  613.      */
  614. -
  615.     const PORTABILITY_ALL           33;
  616. -
  617.  
  618. -
  619.     /**
  620. -
  621.      * LOCKMODE CONSTANTS
  622. -
  623.      */
  624. -
  625.  
  626. -
  627.     /**
  628. -
  629.      * mode for optimistic locking
  630. -
  631.      */
  632. -
  633.     const LOCK_OPTIMISTIC       0;
  634. -
  635.     /**
  636. -
  637.      * mode for pessimistic locking
  638. -
  639.      */
  640. -
  641.     const LOCK_PESSIMISTIC      1;
  642. -
  643.     /**
  644. -
  645.      * EXPORT CONSTANTS
  646. -
  647.      */
  648. -
  649.      
  650. -
  651.     /**
  652. -
  653.      * turns of exporting
  654. -
  655.      */
  656. -
  657.     const EXPORT_NONE               0;
  658. -
  659.     /**
  660. -
  661.      * export tables
  662. -
  663.      */
  664. -
  665.     const EXPORT_TABLES             1;
  666. -
  667.     /**
  668. -
  669.      * export constraints
  670. -
  671.      */
  672. -
  673.     const EXPORT_CONSTRAINTS        2;
  674. -
  675.     /**
  676. -
  677.      * export all
  678. -
  679.      */
  680. -
  681.     const EXPORT_ALL                3;
  682. -
  683.  
  684. -
  685.  
  686. -
  687.     /**
  688. -
  689.      * constant for auto_increment identifier
  690. -
  691.      */
  692. -
  693.     const IDENTIFIER_AUTOINC        1;
  694. -
  695.     /**
  696. -
  697.      * constant for sequence identifier
  698. -
  699.      */
  700. -
  701.     const IDENTIFIER_SEQUENCE       2;
  702. -
  703.     /**
  704. -
  705.      * constant for normal identifier
  706. -
  707.      */
  708. -
  709.     const IDENTIFIER_NATURAL        3;
  710. -
  711.     /**
  712. -
  713.      * constant for composite identifier
  714. -
  715.      */
  716. -
  717.     const IDENTIFIER_COMPOSITE      4;
  718. -
  719.     /**
  720. -
  721.      * constructor
  722. -
  723.      */
  724. -
  725.     public function __construct()
  726. -
  727.     {
  728. -
  729.         throw new Doctrine_Exception('Doctrine is static class. No instances can be created.');
  730. -
  731.     }
  732. -
  733.     /**
  734. -
  735.      * @var string $path            doctrine root directory
  736. -
  737.      */
  738. -
  739.     private static $path;
  740. -
  741.     /**
  742. -
  743.      * @var boolean $_debug 
  744. -
  745.      */
  746. -
  747.     private static $_debug false;
  748. -
  749.  
  750. -
  751.     public static function debug($bool null)
  752. -
  753.     {
  754. -
  755.         if ($bool !== null{
  756. -
  757.             self::$_debug = (bool) $bool;
  758. -
  759.         }
  760. -
  761.         return self::$_debug;
  762. -
  763.     }
  764. -
  765.     /**
  766. -
  767.      * getPath
  768. -
  769.      * returns the doctrine root
  770. -
  771.      *
  772. -
  773.      * @return string 
  774. -
  775.      */
  776. -
  777.     public static function getPath()
  778. -
  779.     {
  780. -
  781.         if self::$path{
  782. -
  783.             self::$path dirname(__FILE__);
  784. -
  785.         }
  786. -
  787.         return self::$path;
  788. -
  789.     }
  790. -
  791.     /**
  792. -
  793.      * loadAll
  794. -
  795.      * loads all runtime classes
  796. -
  797.      *
  798. -
  799.      * @return void 
  800. -
  801.      */
  802. -
  803.     public static function loadAll()
  804. -
  805.     {
  806. -
  807.         $classes Doctrine_Compiler::getRuntimeClasses();
  808. -
  809.  
  810. -
  811.         foreach ($classes as $class{
  812. -
  813.             Doctrine::autoload($class);
  814. -
  815.         }
  816. -
  817.     }
  818. -
  819.     /**
  820. -
  821.      * importSchema
  822. -
  823.      * method for importing existing schema to Doctrine_Record classes
  824. -
  825.      *
  826. -
  827.      * @param string $directory 
  828. -
  829.      * @param array $info 
  830. -
  831.      * @return boolean 
  832. -
  833.      */
  834. -
  835.     public static function importSchema($directoryarray $databases array())
  836. -
  837.     {
  838. -
  839.         return Doctrine_Manager::connection()->import->importSchema($directory$databases);
  840. -
  841.     }
  842. -
  843.     /**
  844. -
  845.      * exportSchema
  846. -
  847.      * method for exporting Doctrine_Record classes to a schema
  848. -
  849.      *
  850. -
  851.      * @param string $directory 
  852. -
  853.      */
  854. -
  855.     public static function exportSchema($directory null)
  856. -
  857.     {
  858. -
  859.         return Doctrine_Manager::connection()->export->exportSchema($directory);
  860. -
  861.     }
  862. -
  863.     /**
  864. -
  865.      * exportSql
  866. -
  867.      * method for exporting Doctrine_Record classes to a schema
  868. -
  869.      *
  870. -
  871.      * @param string $directory 
  872. -
  873.      */
  874. -
  875.     public static function exportSql($directory null)
  876. -
  877.     {
  878. -
  879.         return Doctrine_Manager::connection()->export->exportSql($directory);
  880. -
  881.     }
  882. -
  883.     /**
  884. -
  885.      * compile
  886. -
  887.      * method for making a single file of most used doctrine runtime components
  888. -
  889.      * including the compiled file instead of multiple files (in worst
  890. -
  891.      * cases dozens of files) can improve performance by an order of magnitude
  892. -
  893.      *
  894. -
  895.      * @param string $target 
  896. -
  897.      *
  898. -
  899.      * @throws Doctrine_Exception
  900. -
  901.      * @return void 
  902. -
  903.      */
  904. -
  905.     public static function compile($target null)
  906. -
  907.     {
  908. -
  909.         Doctrine_Compiler::compile($target);
  910. -
  911.     }
  912. -
  913.     /**
  914. -
  915.      * simple autoload function
  916. -
  917.      * returns true if the class was loaded, otherwise false
  918. -
  919.      *
  920. -
  921.      * @param string $classname 
  922. -
  923.      * @return boolean 
  924. -
  925.      */
  926. -
  927.     public static function autoload($classname)
  928. -
  929.     {  
  930. -
  931.         if (class_exists($classnamefalse)) {
  932. -
  933.             return false;
  934. -
  935.         }
  936. -
  937.         if (self::$path{
  938. -
  939.             self::$path dirname(__FILE__);
  940. -
  941.         }
  942. -
  943.         $class self::$path DIRECTORY_SEPARATOR str_replace('_'DIRECTORY_SEPARATOR,$classname'.php';
  944. -
  945.  
  946. -
  947.         if file_exists($class)) {
  948. -
  949.             return false;
  950. -
  951.         }
  952. -
  953.  
  954. -
  955.         require_once($class);
  956. -
  957.  
  958. -
  959.         return true;
  960. -
  961.     }
  962. -
  963.     /**
  964. -
  965.      * dump
  966. -
  967.      *
  968. -
  969.      * dumps a given variable
  970. -
  971.      *
  972. -
  973.      * @param mixed $var        a variable of any type
  974. -
  975.      * @param boolean $output   whether to output the content
  976. -
  977.      * @return void|string
  978. -
  979.      */
  980. -
  981.     public static function dump($var$output true)
  982. -
  983.     {
  984. -
  985.         $ret array();
  986. -
  987.         switch (gettype($var)) {
  988. -
  989.             case 'array':
  990. -
  991.                 $ret['Array(';
  992. -
  993.                 foreach ($var as $k => $v{
  994. -
  995.                     $ret[$k ' : ' Doctrine::dump($vfalse);
  996. -
  997.                 }
  998. -
  999.                 $ret[")";
  1000. -
  1001.                 break;
  1002. -
  1003.             case 'object':
  1004. -
  1005.                 $ret['Object(' get_class($var')';
  1006. -
  1007.                 break;
  1008. -
  1009.             default:
  1010. -
  1011.                 $ret[var_export($vartrue);
  1012. -
  1013.         }
  1014. -
  1015.         if ($output{
  1016. -
  1017.             print implode("\n"$ret);
  1018. -
  1019.         }
  1020. -
  1021.         return implode("\n"$ret);
  1022. -
  1023.     }
  1024. -
  1025.     /**
  1026. -
  1027.      * returns table name from class name
  1028. -
  1029.      *
  1030. -
  1031.      * @param string $classname 
  1032. -
  1033.      * @return string 
  1034. -
  1035.      */
  1036. -
  1037.     public static function tableize($classname)
  1038. -
  1039.     {
  1040. -
  1041.          return strtolower(preg_replace('~(?<=\\w)([A-Z])~''_$1'$classname));
  1042. -
  1043.     }
  1044. -
  1045.     /**
  1046. -
  1047.      * returns class name from table name
  1048. -
  1049.      *
  1050. -
  1051.      * @param string $tablename 
  1052. -
  1053.      * @return string 
  1054. -
  1055.      */
  1056. -
  1057.     public static function classify($tablename)
  1058. -
  1059.     {
  1060. -
  1061.         return preg_replace('~(_?)(_)([\w])~e''"$1".strtoupper("$3")'ucfirst($tablename));
  1062. -
  1063.     }
  1064. -
  1065.     /**
  1066. -
  1067.      * checks for valid class name (uses camel case and underscores)
  1068. -
  1069.      *
  1070. -
  1071.      * @param string $classname 
  1072. -
  1073.      * @return boolean 
  1074. -
  1075.      */
  1076. -
  1077.     public static function isValidClassname($classname)
  1078. -
  1079.     {
  1080. -
  1081.         if (preg_match('~(^[a-z])|(_[a-z])|([\W])|(_{2})~'$classname)) {
  1082. -
  1083.             return false;
  1084. -
  1085.         }    
  1086. -
  1087.  
  1088. -
  1089.         return true;
  1090. -
  1091.     }
  1092. -
  1093. }
  1094. -
  1095. ?>
  1096. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAccess.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAccess.php.html deleted file mode 100644 index 08a3ec802..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAccess.php.html +++ /dev/null @@ -1,149 +0,0 @@ - -
-

Source for file Access.php

-

Documentation is available at Access.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Access.php 1604 2007-06-08 19:07:32Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Access
  44. -
  45.  *
  46. -
  47.  * the purpose of Doctrine_Access is to provice array access
  48. -
  49.  * and property overload interface for subclasses
  50. -
  51.  *
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1604 $
  64. -
  65.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  66. -
  67.  */
  68. -
  69. abstract class Doctrine_Access extends Doctrine_Object implements ArrayAccess
  70. -
  71. {
  72. -
  73.     /**
  74. -
  75.      * setArray
  76. -
  77.      *
  78. -
  79.      * @param array $array          an array of key => value pairs
  80. -
  81.      * @since 1.0
  82. -
  83.      * @return Doctrine_Access 
  84. -
  85.      */
  86. -
  87.     public function setArray(array $array)
  88. -
  89.     {
  90. -
  91.         foreach ($array as $k=>$v{
  92. -
  93.             $this->set($k,$v);
  94. -
  95.         }
  96. -
  97.  
  98. -
  99.         return $this;
  100. -
  101.     }
  102. -
  103.     /**
  104. -
  105.      * __set        an alias of set()
  106. -
  107.      *
  108. -
  109.      * @see set, offsetSet
  110. -
  111.      * @param $name 
  112. -
  113.      * @param $value 
  114. -
  115.      * @since 1.0
  116. -
  117.      * @return void 
  118. -
  119.      */
  120. -
  121.     public function __set($name,$value)
  122. -
  123.     {
  124. -
  125.         $this->set($name,$value);
  126. -
  127.     }
  128. -
  129.     /**
  130. -
  131.      * __get -- an alias of get()
  132. -
  133.      *
  134. -
  135.      * @see get,  offsetGet
  136. -
  137.      * @param mixed $name 
  138. -
  139.      * @since 1.0
  140. -
  141.      * @return mixed 
  142. -
  143.      */
  144. -
  145.     public function __get($name)
  146. -
  147.     {
  148. -
  149.         return $this->get($name);
  150. -
  151.     }
  152. -
  153.     /**
  154. -
  155.      * __isset()
  156. -
  157.      *
  158. -
  159.      * @param string $name 
  160. -
  161.      * @since 1.0
  162. -
  163.      * @return boolean          whether or not this object contains $name
  164. -
  165.      */
  166. -
  167.     public function __isset($name)
  168. -
  169.     {
  170. -
  171.         return $this->contains($name);
  172. -
  173.     }
  174. -
  175.     /**
  176. -
  177.      * __unset()
  178. -
  179.      *
  180. -
  181.      * @param string $name 
  182. -
  183.      * @since 1.0
  184. -
  185.      * @return void 
  186. -
  187.      */
  188. -
  189.     public function __unset($name)
  190. -
  191.     {
  192. -
  193.         return $this->remove($name);
  194. -
  195.     }
  196. -
  197.     /**
  198. -
  199.      * @param mixed $offset 
  200. -
  201.      * @return boolean          whether or not this object contains $offset
  202. -
  203.      */
  204. -
  205.     public function offsetExists($offset)
  206. -
  207.     {
  208. -
  209.         return $this->contains($offset);
  210. -
  211.     }
  212. -
  213.     /**
  214. -
  215.      * offsetGet    an alias of get()
  216. -
  217.      * @see get,  __get
  218. -
  219.      * @param mixed $offset 
  220. -
  221.      * @return mixed 
  222. -
  223.      */
  224. -
  225.     public function offsetGet($offset)
  226. -
  227.     {
  228. -
  229.         return $this->get($offset);
  230. -
  231.     }
  232. -
  233.     /**
  234. -
  235.      * sets $offset to $value
  236. -
  237.      * @see set,  __set
  238. -
  239.      * @param mixed $offset 
  240. -
  241.      * @param mixed $value 
  242. -
  243.      * @return void 
  244. -
  245.      */
  246. -
  247.     public function offsetSet($offset$value)
  248. -
  249.     {
  250. -
  251.         if isset($offset)) {
  252. -
  253.             $this->add($value);
  254. -
  255.         else {
  256. -
  257.             $this->set($offset$value);
  258. -
  259.         }
  260. -
  261.     }
  262. -
  263.     /**
  264. -
  265.      * unset a given offset
  266. -
  267.      * @see set, offsetSet, __set
  268. -
  269.      * @param mixed $offset 
  270. -
  271.      */
  272. -
  273.     public function offsetUnset($offset)
  274. -
  275.     {
  276. -
  277.         return $this->remove($offset);
  278. -
  279.     }
  280. -
  281. }
  282. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapter.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapter.php.html deleted file mode 100644 index eafdb55e2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapter.php.html +++ /dev/null @@ -1,112 +0,0 @@ - -
-

Source for file Adapter.php

-

Documentation is available at Adapter.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Adapter.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  *
  44. -
  45.  * Doctrine_Adapter
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     const ATTR_AUTOCOMMIT 0;
  69. -
  70.     const ATTR_CASE 8;
  71. -
  72.     const ATTR_CLIENT_VERSION 5;
  73. -
  74.     const ATTR_CONNECTION_STATUS 7;
  75. -
  76.     const ATTR_CURSOR 10;
  77. -
  78.     const ATTR_CURSOR_NAME 9;
  79. -
  80.     const ATTR_DRIVER_NAME 16;
  81. -
  82.     const ATTR_ERRMODE 3;
  83. -
  84.     const ATTR_FETCH_CATALOG_NAMES 15;
  85. -
  86.     const ATTR_FETCH_TABLE_NAMES 14;
  87. -
  88.     const ATTR_MAX_COLUMN_LEN 18;
  89. -
  90.     const ATTR_ORACLE_NULLS 11;
  91. -
  92.     const ATTR_PERSISTENT 12;
  93. -
  94.     const ATTR_PREFETCH 1;
  95. -
  96.     const ATTR_SERVER_INFO 6;
  97. -
  98.     const ATTR_SERVER_VERSION 4;
  99. -
  100.     const ATTR_STATEMENT_CLASS 13;
  101. -
  102.     const ATTR_STRINGIFY_FETCHES 17;
  103. -
  104.     const ATTR_TIMEOUT 2;
  105. -
  106.     const CASE_LOWER 2;
  107. -
  108.     const CASE_NATURAL 0;
  109. -
  110.     const CASE_UPPER 1;
  111. -
  112.     const CURSOR_FWDONLY 0;
  113. -
  114.     const CURSOR_SCROLL 1;
  115. -
  116.     const ERR_ALREADY_EXISTS NULL;
  117. -
  118.     const ERR_CANT_MAP NULL;
  119. -
  120.     const ERR_CONSTRAINT NULL;
  121. -
  122.     const ERR_DISCONNECTED NULL;
  123. -
  124.     const ERR_MISMATCH NULL;
  125. -
  126.     const ERR_NO_PERM NULL;
  127. -
  128.     const ERR_NONE '00000';
  129. -
  130.     const ERR_NOT_FOUND NULL;
  131. -
  132.     const ERR_NOT_IMPLEMENTED NULL;
  133. -
  134.     const ERR_SYNTAX NULL;
  135. -
  136.     const ERR_TRUNCATED NULL;
  137. -
  138.     const ERRMODE_EXCEPTION 2;
  139. -
  140.     const ERRMODE_SILENT 0;
  141. -
  142.     const ERRMODE_WARNING 1;
  143. -
  144.     const FETCH_ASSOC 2;
  145. -
  146.     const FETCH_BOTH 4;
  147. -
  148.     const FETCH_BOUND 6;
  149. -
  150.     const FETCH_CLASS 8;
  151. -
  152.     const FETCH_CLASSTYPE 262144;
  153. -
  154.     const FETCH_COLUMN 7;
  155. -
  156.     const FETCH_FUNC 10;
  157. -
  158.     const FETCH_GROUP 65536;
  159. -
  160.     const FETCH_INTO 9;
  161. -
  162.     const FETCH_LAZY 1;
  163. -
  164.     const FETCH_NAMED 11;
  165. -
  166.     const FETCH_NUM 3;
  167. -
  168.     const FETCH_OBJ 5;
  169. -
  170.     const FETCH_ORI_ABS 4;
  171. -
  172.     const FETCH_ORI_FIRST 2;
  173. -
  174.     const FETCH_ORI_LAST 3;
  175. -
  176.     const FETCH_ORI_NEXT 0;
  177. -
  178.     const FETCH_ORI_PRIOR 1;
  179. -
  180.     const FETCH_ORI_REL 5;
  181. -
  182.     const FETCH_SERIALIZE 524288;
  183. -
  184.     const FETCH_UNIQUE 196608;
  185. -
  186.     const NULL_EMPTY_STRING 1;
  187. -
  188.     const NULL_NATURAL 0;
  189. -
  190.     const NULL_TO_STRING NULL;
  191. -
  192.     const PARAM_BOOL 5;
  193. -
  194.     const PARAM_INPUT_OUTPUT = -2147483648;
  195. -
  196.     const PARAM_INT 1;
  197. -
  198.     const PARAM_LOB 3;
  199. -
  200.     const PARAM_NULL 0;
  201. -
  202.     const PARAM_STMT 4;
  203. -
  204.     const PARAM_STR 2;
  205. -
  206. }
  207. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterDb2Exception.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterDb2Exception.php.html deleted file mode 100644 index 40dbc4565..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterDb2Exception.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Adapter_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Adapter_Db2_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterException.php.html deleted file mode 100644 index 2e02ce811..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Adapter_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterInterface.php.html deleted file mode 100644 index 14e99b9fd..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterInterface.php.html +++ /dev/null @@ -1,52 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Interface.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Adapter_Interface
  44. -
  45.  * This adapter interface should be implemented by all custom adapters
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. -
  66.     public function prepare($prepareString);
  67. -
  68.     public function query($queryString);
  69. -
  70.     public function quote($input);
  71. -
  72.     public function exec($statement);
  73. -
  74.     public function lastInsertId();
  75. -
  76.     public function beginTransaction();
  77. -
  78.     public function commit();
  79. -
  80.     public function rollBack();
  81. -
  82.     public function errorCode();
  83. -
  84.     public function errorInfo();
  85. -
  86. }
  87. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatement.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatement.php.html deleted file mode 100644 index 74fe7d731..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatement.php.html +++ /dev/null @@ -1,96 +0,0 @@ - -
-

Source for file Statement.php

-

Documentation is available at Statement.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Statement.php 1917 2007-07-01 11:27:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Adapter_Statement
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1917 $
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     public function bindValue($no$value)
  67. -
  68.     {
  69. -
  70.     }
  71. -
  72.     /**
  73. -
  74.      * fetch
  75. -
  76.      *
  77. -
  78.      * @see Doctrine::FETCH_* constants
  79. -
  80.      * @param integer $fetchStyle           Controls how the next row will be returned to the caller.
  81. -
  82.      *                                       This value must be one of the Doctrine::FETCH_* constants,
  83. -
  84.      *                                       defaulting to Doctrine::FETCH_BOTH
  85. -
  86.      *
  87. -
  88.      * @param integer $cursorOrientation    For a PDOStatement object representing a scrollable cursor,
  89. -
  90.      *                                       this value determines which row will be returned to the caller.
  91. -
  92.      *                                       This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to
  93. -
  94.      *                                       Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your
  95. -
  96.      *                                       Doctrine_Adapter_Statement_Interface object,
  97. -
  98.      *                                       you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you
  99. -
  100.      *                                       prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
  101. -
  102.      *
  103. -
  104.      * @param integer $cursorOffset         For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the
  105. -
  106.      *                                       $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies
  107. -
  108.      *                                       the absolute number of the row in the result set that shall be fetched.
  109. -
  110.      *                                      
  111. -
  112.      *                                       For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for
  113. -
  114.      *                                       which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value
  115. -
  116.      *                                       specifies the row to fetch relative to the cursor position before
  117. -
  118.      *                                       Doctrine_Adapter_Statement_Interface->fetch() was called.
  119. -
  120.      *
  121. -
  122.      * @return mixed 
  123. -
  124.      */
  125. -
  126.     public function fetch()
  127. -
  128.     {
  129. -
  130.     }
  131. -
  132.     public function nextRowset()
  133. -
  134.     {
  135. -
  136.     }
  137. -
  138.     public function execute()
  139. -
  140.     {
  141. -
  142.     }
  143. -
  144.     public function errorCode()
  145. -
  146.     {
  147. -
  148.     }
  149. -
  150.     public function errorInfo()
  151. -
  152.     {
  153. -
  154.     }
  155. -
  156.     public function rowCount()
  157. -
  158.     {
  159. -
  160.     }
  161. -
  162.     public function setFetchMode($mode)
  163. -
  164.     {
  165. -
  166.     }
  167. -
  168.     public function columnCount()
  169. -
  170.     {
  171. -
  172.     }
  173. -
  174. }
  175. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatementInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatementInterface.php.html deleted file mode 100644 index fecddfac9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAdapterStatementInterface.php.html +++ /dev/null @@ -1,283 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Interface.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Adapter_Statement
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  */
  62. -
  63. -
  64. {    
  65. -
  66.     /**
  67. -
  68.      * bindColumn
  69. -
  70.      * Bind a column to a PHP variable
  71. -
  72.      *
  73. -
  74.      * @param mixed $column         Number of the column (1-indexed) or name of the column in the result set.
  75. -
  76.      *                               If using the column name, be aware that the name should match
  77. -
  78.      *                               the case of the column, as returned by the driver.
  79. -
  80.      * @param string $param         Name of the PHP variable to which the column will be bound.
  81. -
  82.      * @param integer $type         Data type of the parameter, specified by the Doctrine::PARAM_* constants.
  83. -
  84.      * @return boolean              Returns TRUE on success or FALSE on failure
  85. -
  86.      */
  87. -
  88.     public function bindColumn($column$param$type null);
  89. -
  90.     /**
  91. -
  92.      * bindValue
  93. -
  94.      * Binds a value to a corresponding named or question mark
  95. -
  96.      * placeholder in the SQL statement that was use to prepare the statement.
  97. -
  98.      *
  99. -
  100.      * @param mixed $param          Parameter identifier. For a prepared statement using named placeholders,
  101. -
  102.      *                               this will be a parameter name of the form :name. For a prepared statement
  103. -
  104.      *                               using question mark placeholders, this will be the 1-indexed position of the parameter
  105. -
  106.      *
  107. -
  108.      * @param mixed $value          The value to bind to the parameter.
  109. -
  110.      * @param integer $type         Explicit data type for the parameter using the Doctrine::PARAM_* constants.
  111. -
  112.      *
  113. -
  114.      * @return boolean              Returns TRUE on success or FALSE on failure.
  115. -
  116.      */
  117. -
  118.     public function bindValue($param$value$type null);
  119. -
  120.     /**
  121. -
  122.      * bindParam
  123. -
  124.      * Binds a PHP variable to a corresponding named or question mark placeholder in the
  125. -
  126.      * SQL statement that was use to prepare the statement. Unlike Doctrine_Adapter_Statement_Interface->bindValue(),
  127. -
  128.      * the variable is bound as a reference and will only be evaluated at the time
  129. -
  130.      * that Doctrine_Adapter_Statement_Interface->execute() is called.
  131. -
  132.      *
  133. -
  134.      * Most parameters are input parameters, that is, parameters that are
  135. -
  136.      * used in a read-only fashion to build up the query. Some drivers support the invocation
  137. -
  138.      * of stored procedures that return data as output parameters, and some also as input/output
  139. -
  140.      * parameters that both send in data and are updated to receive it.
  141. -
  142.      *
  143. -
  144.      * @param mixed $param          Parameter identifier. For a prepared statement using named placeholders,
  145. -
  146.      *                               this will be a parameter name of the form :name. For a prepared statement
  147. -
  148.      *                               using question mark placeholders, this will be the 1-indexed position of the parameter
  149. -
  150.      *
  151. -
  152.      * @param mixed $variable       Name of the PHP variable to bind to the SQL statement parameter.
  153. -
  154.      *
  155. -
  156.      * @param integer $type         Explicit data type for the parameter using the Doctrine::PARAM_* constants. To return
  157. -
  158.      *                               an INOUT parameter from a stored procedure, use the bitwise OR operator to set the
  159. -
  160.      *                               Doctrine::PARAM_INPUT_OUTPUT bits for the data_type parameter.
  161. -
  162.      *
  163. -
  164.      * @param integer $length       Length of the data type. To indicate that a parameter is an OUT parameter
  165. -
  166.      *                               from a stored procedure, you must explicitly set the length.
  167. -
  168.      * @param mixed $driverOptions 
  169. -
  170.      * @return boolean              Returns TRUE on success or FALSE on failure.
  171. -
  172.      */
  173. -
  174.     public function bindParam($column$variable$type null$length null$driverOptions array());
  175. -
  176.     /**
  177. -
  178.      * closeCursor
  179. -
  180.      * Closes the cursor, enabling the statement to be executed again.
  181. -
  182.      *
  183. -
  184.      * @return boolean              Returns TRUE on success or FALSE on failure.
  185. -
  186.      */
  187. -
  188.     public function closeCursor();
  189. -
  190.     /** 
  191. -
  192.      * columnCount
  193. -
  194.      * Returns the number of columns in the result set
  195. -
  196.      *
  197. -
  198.      * @return integer              Returns the number of columns in the result set represented
  199. -
  200.      *                               by the Doctrine_Adapter_Statement_Interface object. If there is no result set,
  201. -
  202.      *                               this method should return 0.
  203. -
  204.      */
  205. -
  206.     public function columnCount();
  207. -
  208.     /**
  209. -
  210.      * errorCode
  211. -
  212.      * Fetch the SQLSTATE associated with the last operation on the statement handle
  213. -
  214.      *
  215. -
  216.      * @see Doctrine_Adapter_Interface::errorCode()
  217. -
  218.      * @return string       error code string
  219. -
  220.      */
  221. -
  222.     public function errorCode();
  223. -
  224.     /**
  225. -
  226.      * errorInfo
  227. -
  228.      * Fetch extended error information associated with the last operation on the statement handle
  229. -
  230.      *
  231. -
  232.      * @see Doctrine_Adapter_Interface::errorInfo()
  233. -
  234.      * @return array        error info array
  235. -
  236.      */
  237. -
  238.     public function errorInfo();
  239. -
  240.     /**
  241. -
  242.      * execute
  243. -
  244.      * Executes a prepared statement
  245. -
  246.      *
  247. -
  248.      * If the prepared statement included parameter markers, you must either:
  249. -
  250.      * call PDOStatement->bindParam() to bind PHP variables to the parameter markers:
  251. -
  252.      * bound variables pass their value as input and receive the output value,
  253. -
  254.      * if any, of their associated parameter markers or pass an array of input-only
  255. -
  256.      * parameter values
  257. -
  258.      *
  259. -
  260.      *
  261. -
  262.      * @param array $params             An array of values with as many elements as there are
  263. -
  264.      *                                   bound parameters in the SQL statement being executed.
  265. -
  266.      * @return boolean                  Returns TRUE on success or FALSE on failure.
  267. -
  268.      */
  269. -
  270.     public function execute($params null);
  271. -
  272.     /**
  273. -
  274.      * fetch
  275. -
  276.      *
  277. -
  278.      * @see Doctrine::FETCH_* constants
  279. -
  280.      * @param integer $fetchStyle           Controls how the next row will be returned to the caller.
  281. -
  282.      *                                       This value must be one of the Doctrine::FETCH_* constants,
  283. -
  284.      *                                       defaulting to Doctrine::FETCH_BOTH
  285. -
  286.      *
  287. -
  288.      * @param integer $cursorOrientation    For a PDOStatement object representing a scrollable cursor,
  289. -
  290.      *                                       this value determines which row will be returned to the caller.
  291. -
  292.      *                                       This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to
  293. -
  294.      *                                       Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your
  295. -
  296.      *                                       Doctrine_Adapter_Statement_Interface object,
  297. -
  298.      *                                       you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you
  299. -
  300.      *                                       prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
  301. -
  302.      *
  303. -
  304.      * @param integer $cursorOffset         For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the
  305. -
  306.      *                                       $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies
  307. -
  308.      *                                       the absolute number of the row in the result set that shall be fetched.
  309. -
  310.      *                                      
  311. -
  312.      *                                       For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for
  313. -
  314.      *                                       which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value
  315. -
  316.      *                                       specifies the row to fetch relative to the cursor position before
  317. -
  318.      *                                       Doctrine_Adapter_Statement_Interface->fetch() was called.
  319. -
  320.      *
  321. -
  322.      * @return mixed 
  323. -
  324.      */
  325. -
  326.     public function fetch($fetchStyle Doctrine::FETCH_BOTH,
  327. -
  328.                           $cursorOrientation Doctrine::FETCH_ORI_NEXT,
  329. -
  330.                           $cursorOffset null);
  331. -
  332.     /**
  333. -
  334.      * fetchAll
  335. -
  336.      * Returns an array containing all of the result set rows
  337. -
  338.      *
  339. -
  340.      * @param integer $fetchStyle           Controls how the next row will be returned to the caller.
  341. -
  342.      *                                       This value must be one of the Doctrine::FETCH_* constants,
  343. -
  344.      *                                       defaulting to Doctrine::FETCH_BOTH
  345. -
  346.      *
  347. -
  348.      * @param integer $columnIndex          Returns the indicated 0-indexed column when the value of $fetchStyle is
  349. -
  350.      *                                       Doctrine::FETCH_COLUMN. Defaults to 0.
  351. -
  352.      *
  353. -
  354.      * @return array 
  355. -
  356.      */
  357. -
  358.     public function fetchAll($fetchStyle Doctrine::FETCH_BOTH);
  359. -
  360.     /**
  361. -
  362.      * fetchColumn
  363. -
  364.      * Returns a single column from the next row of a
  365. -
  366.      * result set or FALSE if there are no more rows.
  367. -
  368.      *
  369. -
  370.      * @param integer $columnIndex          0-indexed number of the column you wish to retrieve from the row. If no
  371. -
  372.      *                                       value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
  373. -
  374.      *                                       fetches the first column.
  375. -
  376.      *
  377. -
  378.      * @return string                       returns a single column in the next row of a result set.
  379. -
  380.      */
  381. -
  382.     public function fetchColumn($columnIndex 0);
  383. -
  384.     /**
  385. -
  386.      * fetchObject
  387. -
  388.      * Fetches the next row and returns it as an object.
  389. -
  390.      *
  391. -
  392.      * Fetches the next row and returns it as an object. This function is an alternative to
  393. -
  394.      * Doctrine_Adapter_Statement_Interface->fetch() with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.
  395. -
  396.      *
  397. -
  398.      * @param string $className             Name of the created class, defaults to stdClass.
  399. -
  400.      * @param array $args                   Elements of this array are passed to the constructor.
  401. -
  402.      *
  403. -
  404.      * @return mixed                        an instance of the required class with property names that correspond
  405. -
  406.      *                                       to the column names or FALSE in case of an error.
  407. -
  408.      */
  409. -
  410.     public function fetchObject($className 'stdClass'$args array());
  411. -
  412.     /**
  413. -
  414.      * getAttribute
  415. -
  416.      * Retrieve a statement attribute
  417. -
  418.      *
  419. -
  420.      * @param integer $attribute 
  421. -
  422.      * @see Doctrine::ATTR_* constants
  423. -
  424.      * @return mixed                        the attribute value
  425. -
  426.      */
  427. -
  428.     public function getAttribute($attribute);
  429. -
  430.     /**
  431. -
  432.      * getColumnMeta
  433. -
  434.      * Returns metadata for a column in a result set
  435. -
  436.      *
  437. -
  438.      * @param integer $column               The 0-indexed column in the result set.
  439. -
  440.      *
  441. -
  442.      * @return array                        Associative meta data array with the following structure:
  443. -
  444.      *
  445. -
  446.      *           native_type                 The PHP native type used to represent the column value.
  447. -
  448.      *           driver:decl_                type The SQL type used to represent the column value in the database. If the column in the result set is the result of a function, this value is not returned by PDOStatement->getColumnMeta().
  449. -
  450.      *           flags                       Any flags set for this column.
  451. -
  452.      *           name                        The name of this column as returned by the database.
  453. -
  454.      *           len                         The length of this column. Normally -1 for types other than floating point decimals.
  455. -
  456.      *           precision                   The numeric precision of this column. Normally 0 for types other than floating point decimals.
  457. -
  458.      *           pdo_type                    The type of this column as represented by the PDO::PARAM_* constants.
  459. -
  460.      */
  461. -
  462.     public function getColumnMeta($column);
  463. -
  464.     /**
  465. -
  466.      * nextRowset
  467. -
  468.      * Advances to the next rowset in a multi-rowset statement handle
  469. -
  470.      * 
  471. -
  472.      * Some database servers support stored procedures that return more than one rowset
  473. -
  474.      * (also known as a result set). The nextRowset() method enables you to access the second
  475. -
  476.      * and subsequent rowsets associated with a PDOStatement object. Each rowset can have a
  477. -
  478.      * different set of columns from the preceding rowset.
  479. -
  480.      *
  481. -
  482.      * @return boolean                      Returns TRUE on success or FALSE on failure.
  483. -
  484.      */
  485. -
  486.     public function nextRowset();
  487. -
  488.     /**
  489. -
  490.      * rowCount
  491. -
  492.      * rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement
  493. -
  494.      * executed by the corresponding object.
  495. -
  496.      *
  497. -
  498.      * If the last SQL statement executed by the associated Statement object was a SELECT statement,
  499. -
  500.      * some databases may return the number of rows returned by that statement. However,
  501. -
  502.      * this behaviour is not guaranteed for all databases and should not be
  503. -
  504.      * relied on for portable applications.
  505. -
  506.      *
  507. -
  508.      * @return integer                      Returns the number of rows.
  509. -
  510.      */
  511. -
  512.     public function rowCount();
  513. -
  514.     /**
  515. -
  516.      * setAttribute
  517. -
  518.      * Set a statement attribute
  519. -
  520.      *
  521. -
  522.      * @param integer $attribute 
  523. -
  524.      * @param mixed $value                  the value of given attribute
  525. -
  526.      * @return boolean                      Returns TRUE on success or FALSE on failure.
  527. -
  528.      */
  529. -
  530.     public function setAttribute($attribute$value);
  531. -
  532.     /**
  533. -
  534.      * setFetchMode
  535. -
  536.      * Set the default fetch mode for this statement
  537. -
  538.      *
  539. -
  540.      * @param integer $mode                 The fetch mode must be one of the Doctrine::FETCH_* constants.
  541. -
  542.      * @return boolean                      Returns 1 on success or FALSE on failure.
  543. -
  544.      */
  545. -
  546.     public function setFetchMode($mode$arg1 null$arg2 null);
  547. -
  548. }
  549. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLog.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLog.php.html deleted file mode 100644 index 84cff217c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLog.php.html +++ /dev/null @@ -1,171 +0,0 @@ - -
-

Source for file AuditLog.php

-

Documentation is available at AuditLog.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_AuditLog
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision$
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     protected $_options = array(
  67. -
  68.                             'className'     => '%CLASS%Version',
  69. -
  70.                             'versionColumn' => 'version',
  71. -
  72.                             'generateFiles' => false,
  73. -
  74.                             'table'         => false,
  75. -
  76.                             );
  77. -
  78.  
  79. -
  80.     protected $_auditTable;
  81. -
  82.  
  83. -
  84.     public function __construct($options)
  85. -
  86.     {
  87. -
  88.         $this->_options = array_merge($this->_options$options);
  89. -
  90.     }
  91. -
  92.     /**
  93. -
  94.      * __get
  95. -
  96.      * an alias for getOption
  97. -
  98.      *
  99. -
  100.      * @param string $option 
  101. -
  102.      */
  103. -
  104.     public function __get($option)
  105. -
  106.     {
  107. -
  108.         if (isset($this->options[$option])) {
  109. -
  110.             return $this->_options[$option];
  111. -
  112.         }
  113. -
  114.         return null;
  115. -
  116.     }
  117. -
  118.     /**
  119. -
  120.      * __isset
  121. -
  122.      *
  123. -
  124.      * @param string $option 
  125. -
  126.      */
  127. -
  128.     public function __isset($option
  129. -
  130.     {
  131. -
  132.         return isset($this->_options[$option]);
  133. -
  134.     }
  135. -
  136.     /**
  137. -
  138.      * getOptions
  139. -
  140.      * returns all options of this table and the associated values
  141. -
  142.      *
  143. -
  144.      * @return array    all options and their values
  145. -
  146.      */
  147. -
  148.     public function getOptions()
  149. -
  150.     {
  151. -
  152.         return $this->_options;
  153. -
  154.     }
  155. -
  156.     /**
  157. -
  158.      * setOption
  159. -
  160.      * sets an option and returns this object in order to
  161. -
  162.      * allow flexible method chaining
  163. -
  164.      *
  165. -
  166.      * @see slef::$_options             for available options
  167. -
  168.      * @param string $name              the name of the option to set
  169. -
  170.      * @param mixed $value              the value of the option
  171. -
  172.      * @return Doctrine_AuditLog        this object
  173. -
  174.      */
  175. -
  176.     public function setOption($name$value)
  177. -
  178.     {
  179. -
  180.         if isset($this->_options[$name])) {
  181. -
  182.             throw new Doctrine_Exception('Unknown option ' $name);
  183. -
  184.         }
  185. -
  186.         $this->_options[$name$value;
  187. -
  188.     }
  189. -
  190.     /**
  191. -
  192.      * getOption
  193. -
  194.      * returns the value of given option
  195. -
  196.      *
  197. -
  198.      * @param string $name  the name of the option
  199. -
  200.      * @return mixed        the value of given option
  201. -
  202.      */
  203. -
  204.     public function getOption($name)
  205. -
  206.     {
  207. -
  208.         if (isset($this->_options[$name])) {
  209. -
  210.             return $this->_options[$name];
  211. -
  212.         }
  213. -
  214.         return null;
  215. -
  216.     }
  217. -
  218.  
  219. -
  220.     public function getVersion(Doctrine_Record $record$version)
  221. -
  222.     {           
  223. -
  224.         $className $this->_options['className'];
  225. -
  226.  
  227. -
  228.         $q new Doctrine_Query();
  229. -
  230.  
  231. -
  232.         $values array();
  233. -
  234.         foreach ((array) $this->_options['table']->getIdentifier(as $id{
  235. -
  236.             $conditions[$className '.' $id ' = ?';
  237. -
  238.             $values[$record->get($id);
  239. -
  240.         }
  241. -
  242.         $where implode(' AND '$conditions' AND ' $className '.' $this->_options['versionColumn'' = ?';
  243. -
  244.         
  245. -
  246.         $values[$version;
  247. -
  248.  
  249. -
  250.         $q->from($className)
  251. -
  252.           ->where($where);
  253. -
  254.  
  255. -
  256.         return $q->execute($valuesDoctrine_HYDRATE::HYDRATE_ARRAY);
  257. -
  258.     }
  259. -
  260.     public function buildDefinition(Doctrine_Table $table)
  261. -
  262.     {
  263. -
  264.         $this->_options['className'str_replace('%CLASS%'
  265. -
  266.                                                    $this->_options['table']->getComponentName(),
  267. -
  268.                                                    $this->_options['className']);
  269. -
  270.  
  271. -
  272.         $name $table->getComponentName();
  273. -
  274.  
  275. -
  276.         $className $name 'Version';
  277. -
  278.         
  279. -
  280.         if (class_exists($className)) {
  281. -
  282.             return false;
  283. -
  284.         }
  285. -
  286.  
  287. -
  288.         $columns $table->getColumns();
  289. -
  290.         
  291. -
  292.         // the version column should be part of the primary key definition
  293. -
  294.         $columns[$this->_options['versionColumn']]['primary'true;
  295. -
  296.  
  297. -
  298.         $id $table->getIdentifier();
  299. -
  300.  
  301. -
  302.         $options array('className' => $className);
  303. -
  304.  
  305. -
  306.         $builder new Doctrine_Import_Builder();
  307. -
  308.  
  309. -
  310.         $def $builder->buildDefinition($options$columns);
  311. -
  312.  
  313. -
  314.         if $this->_options['generateFiles']{
  315. -
  316.             eval($def);
  317. -
  318.         }
  319. -
  320.         return true;
  321. -
  322.     }
  323. -
  324. }
  325. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLogListener.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLogListener.php.html deleted file mode 100644 index b236e45f6..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineAuditLogListener.php.html +++ /dev/null @@ -1,85 +0,0 @@ - -
-

Source for file Listener.php

-

Documentation is available at Listener.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Record_Listener');
  42. -
  43. /**
  44. -
  45.  * Doctrine_AuditLog_Listener
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     
  69. -
  70.     protected $_auditLog;
  71. -
  72.  
  73. -
  74.     public function __construct(Doctrine_AuditLog $auditLog{
  75. -
  76.         $this->_auditLog = $auditLog;
  77. -
  78.     }
  79. -
  80.     public function preInsert(Doctrine_Event $event)
  81. -
  82.     {
  83. -
  84.         $versionColumn $this->_auditLog->getOption('versionColumn');
  85. -
  86.  
  87. -
  88.         $event->getInvoker()->set($versionColumn1);
  89. -
  90.     }
  91. -
  92.     public function preDelete(Doctrine_Event $event)
  93. -
  94.     {
  95. -
  96.         $class $this->_auditLog->getOption('className');
  97. -
  98.  
  99. -
  100.         $record  $event->getInvoker();
  101. -
  102.  
  103. -
  104.         $version new $class();
  105. -
  106.         $version->merge($record->toArray());
  107. -
  108.         $version->save();
  109. -
  110.  
  111. -
  112.         $versionColumn $this->_auditLog->getOption('versionColumn');
  113. -
  114.         $version $record->get($versionColumn);
  115. -
  116.  
  117. -
  118.         $record->set($versionColumn++$version);
  119. -
  120.     }
  121. -
  122.     public function preUpdate(Doctrine_Event $event)
  123. -
  124.     {
  125. -
  126.         $class $this->_auditLog->getOption('className');
  127. -
  128.         $record  $event->getInvoker();
  129. -
  130.         
  131. -
  132.         $version new $class();
  133. -
  134.         $version->merge($record->toArray());
  135. -
  136.         $version->save();        
  137. -
  138.  
  139. -
  140.         $versionColumn $this->_auditLog->getOption('versionColumn');
  141. -
  142.  
  143. -
  144.         $version $record->get($versionColumn);
  145. -
  146.  
  147. -
  148.         $record->set($versionColumn++$version);
  149. -
  150.     }
  151. -
  152. }
  153. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollection.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollection.php.html deleted file mode 100644 index 0aeaf5c27..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollection.php.html +++ /dev/null @@ -1,689 +0,0 @@ - -
-

Source for file Collection.php

-

Documentation is available at Collection.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Collection.php 2282 2007-08-28 16:45:22Z jackbravo $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Access');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Collection
  46. -
  47.  * Collection of Doctrine_Record objects.
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 2282 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. class Doctrine_Collection extends Doctrine_Access implements CountableIteratorAggregateSerializable
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var array $data                     an array containing the records of this collection
  74. -
  75.      */
  76. -
  77.     protected $data = array();
  78. -
  79.     /**
  80. -
  81.      * @var Doctrine_Table $table           each collection has only records of specified table
  82. -
  83.      */
  84. -
  85.     protected $_table;
  86. -
  87.     /**
  88. -
  89.      * @var array $_snapshot                a snapshot of the fetched data
  90. -
  91.      */
  92. -
  93.     protected $_snapshot = array();
  94. -
  95.     /**
  96. -
  97.      * @var Doctrine_Record $reference      collection can belong to a record
  98. -
  99.      */
  100. -
  101.     protected $reference;
  102. -
  103.     /**
  104. -
  105.      * @var string $referenceField         the reference field of the collection
  106. -
  107.      */
  108. -
  109.     protected $referenceField;
  110. -
  111.     /**
  112. -
  113.      * @var Doctrine_Relation               the record this collection is related to, if any
  114. -
  115.      */
  116. -
  117.     protected $relation;
  118. -
  119.     /**
  120. -
  121.      * @var string $keyColumn               the name of the column that is used for collection key mapping
  122. -
  123.      */
  124. -
  125.     protected $keyColumn;
  126. -
  127.     /**
  128. -
  129.      * @var Doctrine_Null $null             used for extremely fast null value testing
  130. -
  131.      */
  132. -
  133.     protected static $null;
  134. -
  135.  
  136. -
  137.  
  138. -
  139.     /**
  140. -
  141.      * constructor
  142. -
  143.      *
  144. -
  145.      * @param Doctrine_Table|string$table 
  146. -
  147.      */
  148. -
  149.     public function __construct($table)
  150. -
  151.     {
  152. -
  153.         if ($table instanceof Doctrine_Table)) {
  154. -
  155.             $table Doctrine_Manager::getInstance()
  156. -
  157.                         ->getTable($table);
  158. -
  159.         }
  160. -
  161.         $this->_table = $table;
  162. -
  163.  
  164. -
  165.         $name $table->getAttribute(Doctrine::ATTR_COLL_KEY);
  166. -
  167.         if ($name !== null{
  168. -
  169.             $this->keyColumn = $name;
  170. -
  171.         }
  172. -
  173.     }
  174. -
  175.     /**
  176. -
  177.      * initNullObject
  178. -
  179.      * initializes the null object for this collection
  180. -
  181.      *
  182. -
  183.      * @return void 
  184. -
  185.      */
  186. -
  187.     public static function initNullObject(Doctrine_Null $null)
  188. -
  189.     {
  190. -
  191.         self::$null $null;
  192. -
  193.     }
  194. -
  195.     /**
  196. -
  197.      * getTable
  198. -
  199.      * returns the table this collection belongs to
  200. -
  201.      *
  202. -
  203.      * @return Doctrine_Table 
  204. -
  205.      */
  206. -
  207.     public function getTable()
  208. -
  209.     {
  210. -
  211.         return $this->_table;
  212. -
  213.     }
  214. -
  215.     /**
  216. -
  217.      * setData
  218. -
  219.      *
  220. -
  221.      * @param array $data 
  222. -
  223.      * @return Doctrine_Collection 
  224. -
  225.      */
  226. -
  227.     public function setData(array $data
  228. -
  229.     {
  230. -
  231.         $this->data $data;
  232. -
  233.     }
  234. -
  235.     /**
  236. -
  237. /**
  238. -
  239.      * this method is automatically called when this Doctrine_Collection is serialized
  240. -
  241.      *
  242. -
  243.      * @return array 
  244. -
  245.      */
  246. -
  247.     public function serialize()
  248. -
  249.     {
  250. -
  251.         $vars get_object_vars($this);
  252. -
  253.  
  254. -
  255.         unset($vars['reference']);
  256. -
  257.         unset($vars['reference_field']);
  258. -
  259.         unset($vars['relation']);
  260. -
  261.         unset($vars['expandable']);
  262. -
  263.         unset($vars['expanded']);
  264. -
  265.         unset($vars['generator']);
  266. -
  267.  
  268. -
  269.         $vars['_table'$vars['_table']->getComponentName();
  270. -
  271.  
  272. -
  273.         return serialize($vars);
  274. -
  275.     }
  276. -
  277.     /**
  278. -
  279.      * unseralize
  280. -
  281.      * this method is automatically called everytime a Doctrine_Collection object is unserialized
  282. -
  283.      *
  284. -
  285.      * @return void 
  286. -
  287.      */
  288. -
  289.     public function unserialize($serialized)
  290. -
  291.     {
  292. -
  293.         $manager    Doctrine_Manager::getInstance();
  294. -
  295.         $connection    $manager->getCurrentConnection();
  296. -
  297.  
  298. -
  299.         $array unserialize($serialized);
  300. -
  301.  
  302. -
  303.         foreach ($array as $name => $values{
  304. -
  305.             $this->$name $values;
  306. -
  307.         }
  308. -
  309.  
  310. -
  311.         $this->_table        = $connection->getTable($this->_table);
  312. -
  313.  
  314. -
  315.  
  316. -
  317.         $name $this->_table->getAttribute(Doctrine::ATTR_COLL_KEY);
  318. -
  319.         if ($name !== null{
  320. -
  321.             $this->keyColumn = $name;
  322. -
  323.         }
  324. -
  325.     }
  326. -
  327.     /**
  328. -
  329.      * setKeyColumn
  330. -
  331.      * sets the key column for this collection
  332. -
  333.      *
  334. -
  335.      * @param string $column 
  336. -
  337.      * @return Doctrine_Collection 
  338. -
  339.      */
  340. -
  341.     public function setKeyColumn($column)
  342. -
  343.     {
  344. -
  345.         $this->keyColumn = $column;
  346. -
  347.         
  348. -
  349.         return $this;
  350. -
  351.     }
  352. -
  353.     /**
  354. -
  355.      * getKeyColumn
  356. -
  357.      * returns the name of the key column
  358. -
  359.      *
  360. -
  361.      * @return string 
  362. -
  363.      */
  364. -
  365.     public function getKeyColumn()
  366. -
  367.     {
  368. -
  369.         return $this->column;
  370. -
  371.     }
  372. -
  373.     /**
  374. -
  375.      * getData
  376. -
  377.      * returns all the records as an array
  378. -
  379.      *
  380. -
  381.      * @return array 
  382. -
  383.      */
  384. -
  385.     public function getData()
  386. -
  387.     {
  388. -
  389.         return $this->data;
  390. -
  391.     }
  392. -
  393.     /**
  394. -
  395.      * getFirst
  396. -
  397.      * returns the first record in the collection
  398. -
  399.      *
  400. -
  401.      * @return mixed 
  402. -
  403.      */
  404. -
  405.     public function getFirst()
  406. -
  407.     {
  408. -
  409.         return reset($this->data);
  410. -
  411.     }
  412. -
  413.     /**
  414. -
  415.      * getLast
  416. -
  417.      * returns the last record in the collection
  418. -
  419.      *
  420. -
  421.      * @return mixed 
  422. -
  423.      */
  424. -
  425.     public function getLast()
  426. -
  427.     {
  428. -
  429.         return end($this->data);
  430. -
  431.     }
  432. -
  433.     /**
  434. -
  435.      * setReference
  436. -
  437.      * sets a reference pointer
  438. -
  439.      *
  440. -
  441.      * @return void 
  442. -
  443.      */
  444. -
  445.     public function setReference(Doctrine_Record $recordDoctrine_Relation $relation)
  446. -
  447.     {
  448. -
  449.         $this->reference       = $record;
  450. -
  451.         $this->relation        = $relation;
  452. -
  453.  
  454. -
  455.         if ($relation instanceof Doctrine_Relation_ForeignKey
  456. -
  457.            || $relation instanceof Doctrine_Relation_LocalKey
  458. -
  459.         {
  460. -
  461.  
  462. -
  463.             $this->referenceField = $relation->getForeign();
  464. -
  465.  
  466. -
  467.             $value $record->get($relation->getLocal());
  468. -
  469.  
  470. -
  471.             foreach ($this->data as $record{
  472. -
  473.                 if ($value !== null{
  474. -
  475.                     $record->set($this->referenceField$valuefalse);
  476. -
  477.                 else {
  478. -
  479.                     $record->set($this->referenceField$this->referencefalse);
  480. -
  481.                 }
  482. -
  483.             }
  484. -
  485.         elseif ($relation instanceof Doctrine_Relation_Association{
  486. -
  487.  
  488. -
  489.         }
  490. -
  491.     }
  492. -
  493.     /**
  494. -
  495.      * getReference
  496. -
  497.      *
  498. -
  499.      * @return mixed 
  500. -
  501.      */
  502. -
  503.     public function getReference()
  504. -
  505.     {
  506. -
  507.         return $this->reference;
  508. -
  509.     }
  510. -
  511.     /**
  512. -
  513.      * remove
  514. -
  515.      * removes a specified collection element
  516. -
  517.      *
  518. -
  519.      * @param mixed $key 
  520. -
  521.      * @return boolean 
  522. -
  523.      */
  524. -
  525.     public function remove($key)
  526. -
  527.     {
  528. -
  529.         $removed $this->data[$key];
  530. -
  531.  
  532. -
  533.         unset($this->data[$key]);
  534. -
  535.         return $removed;
  536. -
  537.     }
  538. -
  539.     /**
  540. -
  541.      * contains
  542. -
  543.      * whether or not this collection contains a specified element
  544. -
  545.      *
  546. -
  547.      * @param mixed $key                    the key of the element
  548. -
  549.      * @return boolean 
  550. -
  551.      */
  552. -
  553.     public function contains($key)
  554. -
  555.     {
  556. -
  557.         return isset($this->data[$key]);
  558. -
  559.     }
  560. -
  561.     public function search(Doctrine_Record $record)
  562. -
  563.     {
  564. -
  565.         return array_search($record$this->datatrue);
  566. -
  567.     }
  568. -
  569.     /**
  570. -
  571.      * get
  572. -
  573.      * returns a record for given key
  574. -
  575.      *
  576. -
  577.      * There are two special cases:
  578. -
  579.      *
  580. -
  581.      * 1. if null is given as a key a new record is created and attached
  582. -
  583.      * at the end of the collection
  584. -
  585.      *
  586. -
  587.      * 2. if given key does not exist, then a new record is create and attached
  588. -
  589.      * to the given key
  590. -
  591.      *
  592. -
  593.      * Collection also maps referential information to newly created records
  594. -
  595.      *
  596. -
  597.      * @param mixed $key                    the key of the element
  598. -
  599.      * @return Doctrine_Record              return a specified record
  600. -
  601.      */
  602. -
  603.     public function get($key)
  604. -
  605.     {
  606. -
  607.         if ($key === null || isset($this->data[$key])) {
  608. -
  609.             $record $this->_table->create();
  610. -
  611.  
  612. -
  613.             if (isset($this->referenceField)) {
  614. -
  615.                 $value $this->reference->get($this->relation->getLocal());
  616. -
  617.  
  618. -
  619.                 if ($value !== null{
  620. -
  621.                     $record->set($this->referenceField$valuefalse);
  622. -
  623.                 else {
  624. -
  625.                     $record->set($this->referenceField$this->referencefalse);
  626. -
  627.                 }
  628. -
  629.             }
  630. -
  631.  
  632. -
  633.             $this->data[$record;
  634. -
  635.  
  636. -
  637.             return $record;
  638. -
  639.         }
  640. -
  641.  
  642. -
  643.         return $this->data[$key];
  644. -
  645.     }
  646. -
  647.  
  648. -
  649.     /**
  650. -
  651.      * @return array                an array containing all primary keys
  652. -
  653.      */
  654. -
  655.     public function getPrimaryKeys()
  656. -
  657.     {
  658. -
  659.         $list array();
  660. -
  661.         $name $this->_table->getIdentifier();
  662. -
  663.  
  664. -
  665.         foreach ($this->data as $record{
  666. -
  667.             if (is_array($record&& isset($record[$name])) {
  668. -
  669.                 $list[$record[$name];
  670. -
  671.             else {
  672. -
  673.                 $list[$record->getIncremented();
  674. -
  675.             }
  676. -
  677.         }
  678. -
  679.         return $list;
  680. -
  681.     }
  682. -
  683.     /**
  684. -
  685.      * returns all keys
  686. -
  687.      * @return array 
  688. -
  689.      */
  690. -
  691.     public function getKeys()
  692. -
  693.     {
  694. -
  695.         return array_keys($this->data);
  696. -
  697.     }
  698. -
  699.     /**
  700. -
  701.      * count
  702. -
  703.      * this class implements interface countable
  704. -
  705.      * returns the number of records in this collection
  706. -
  707.      *
  708. -
  709.      * @return integer 
  710. -
  711.      */
  712. -
  713.     public function count()
  714. -
  715.     {
  716. -
  717.         return count($this->data);
  718. -
  719.     }
  720. -
  721.     /**
  722. -
  723.      * set
  724. -
  725.      * @param integer $key 
  726. -
  727.      * @param Doctrine_Record $record 
  728. -
  729.      * @return void 
  730. -
  731.      */
  732. -
  733.     public function set($keyDoctrine_Record $record)
  734. -
  735.     {
  736. -
  737.         if (isset($this->referenceField)) {
  738. -
  739.             $record->set($this->referenceField$this->referencefalse);
  740. -
  741.         }
  742. -
  743.  
  744. -
  745.         $this->data[$key$record;
  746. -
  747.     }
  748. -
  749.     /**
  750. -
  751.      * adds a record to collection
  752. -
  753.      * @param Doctrine_Record $record              record to be added
  754. -
  755.      * @param string $key                          optional key for the record
  756. -
  757.      * @return boolean 
  758. -
  759.      */
  760. -
  761.     public function add(Doctrine_Record $record$key null)
  762. -
  763.     {
  764. -
  765.         if (isset($this->referenceField)) {
  766. -
  767.             $value $this->reference->get($this->relation->getLocal());
  768. -
  769.  
  770. -
  771.             if ($value !== null{
  772. -
  773.                 $record->set($this->referenceField$valuefalse);
  774. -
  775.             else {
  776. -
  777.                 $record->set($this->referenceField$this->referencefalse);
  778. -
  779.             }
  780. -
  781.         }
  782. -
  783.         /**
  784. -
  785.          * for some weird reason in_array cannot be used here (php bug ?)
  786. -
  787.          *
  788. -
  789.          * if used it results in fatal error : [ nesting level too deep ]
  790. -
  791.          */
  792. -
  793.         foreach ($this->data as $val{
  794. -
  795.             if ($val === $record{
  796. -
  797.                 return false;
  798. -
  799.             }
  800. -
  801.         }
  802. -
  803.  
  804. -
  805.         if (isset($key)) {
  806. -
  807.             if (isset($this->data[$key])) {
  808. -
  809.                 return false;
  810. -
  811.             }
  812. -
  813.             $this->data[$key$record;
  814. -
  815.             return true;
  816. -
  817.         }
  818. -
  819.  
  820. -
  821.         if (isset($this->keyColumn)) {
  822. -
  823.             $value $record->get($this->keyColumn);
  824. -
  825.             if ($value === null{
  826. -
  827.                 throw new Doctrine_Collection_Exception("Couldn't create collection index. Record field '".$this->keyColumn."' was null.");
  828. -
  829.             }
  830. -
  831.             $this->data[$value$record;
  832. -
  833.         else {
  834. -
  835.             $this->data[$record;
  836. -
  837.         }
  838. -
  839.         return true;
  840. -
  841.     }
  842. -
  843.     /**
  844. -
  845.      * loadRelated
  846. -
  847.      *
  848. -
  849.      * @param mixed $name 
  850. -
  851.      * @return boolean 
  852. -
  853.      */
  854. -
  855.     public function loadRelated($name null)
  856. -
  857.     {
  858. -
  859.         $list array();
  860. -
  861.         $query   new Doctrine_Query($this->_table->getConnection());
  862. -
  863.  
  864. -
  865.         if isset($name)) {
  866. -
  867.             foreach ($this->data as $record{
  868. -
  869.                 $value $record->getIncremented();
  870. -
  871.                 if ($value !== null{
  872. -
  873.                     $list[$value;
  874. -
  875.                 }
  876. -
  877.             }
  878. -
  879.             $query->from($this->_table->getComponentName('(' implode(", ",$this->_table->getPrimaryKeys()) ')');
  880. -
  881.             $query->where($this->_table->getComponentName('.id IN (' substr(str_repeat("?, "count($list)),0,-2')');
  882. -
  883.  
  884. -
  885.             return $query;
  886. -
  887.         }
  888. -
  889.  
  890. -
  891.         $rel     $this->_table->getRelation($name);
  892. -
  893.  
  894. -
  895.         if ($rel instanceof Doctrine_Relation_LocalKey || $rel instanceof Doctrine_Relation_ForeignKey{
  896. -
  897.             foreach ($this->data as $record{
  898. -
  899.                 $list[$record[$rel->getLocal()];
  900. -
  901.             }
  902. -
  903.         else {
  904. -
  905.             foreach ($this->data as $record{
  906. -
  907.                 $value $record->getIncremented();
  908. -
  909.                 if ($value !== null{
  910. -
  911.                     $list[$value;
  912. -
  913.                 }
  914. -
  915.             }
  916. -
  917.         }
  918. -
  919.  
  920. -
  921.         $dql     $rel->getRelationDql(count($list)'collection');
  922. -
  923.  
  924. -
  925.         $coll    $query->query($dql$list);
  926. -
  927.  
  928. -
  929.         $this->populateRelated($name$coll);
  930. -
  931.     }
  932. -
  933.     /**
  934. -
  935.      * populateRelated
  936. -
  937.      *
  938. -
  939.      * @param string $name 
  940. -
  941.      * @param Doctrine_Collection $coll 
  942. -
  943.      * @return void 
  944. -
  945.      */
  946. -
  947.     public function populateRelated($nameDoctrine_Collection $coll)
  948. -
  949.     {
  950. -
  951.         $rel     $this->_table->getRelation($name);
  952. -
  953.         $table   $rel->getTable();
  954. -
  955.         $foreign $rel->getForeign();
  956. -
  957.         $local   $rel->getLocal();
  958. -
  959.  
  960. -
  961.         if ($rel instanceof Doctrine_Relation_LocalKey{
  962. -
  963.             foreach ($this->data as $key => $record{
  964. -
  965.                 foreach ($coll as $k => $related{
  966. -
  967.                     if ($related[$foreign== $record[$local]{
  968. -
  969.                         $this->data[$key]->setRelated($name$related);
  970. -
  971.                     }
  972. -
  973.                 }
  974. -
  975.             }
  976. -
  977.         elseif ($rel instanceof Doctrine_Relation_ForeignKey{
  978. -
  979.             foreach ($this->data as $key => $record{
  980. -
  981.                 if $record->exists()) {
  982. -
  983.                     continue;
  984. -
  985.                 }
  986. -
  987.                 $sub new Doctrine_Collection($table);
  988. -
  989.  
  990. -
  991.                 foreach ($coll as $k => $related{
  992. -
  993.                     if ($related[$foreign== $record[$local]{
  994. -
  995.                         $sub->add($related);
  996. -
  997.                         $coll->remove($k);
  998. -
  999.                     }
  1000. -
  1001.                 }
  1002. -
  1003.  
  1004. -
  1005.                 $this->data[$key]->setRelated($name$sub);
  1006. -
  1007.             }
  1008. -
  1009.         elseif ($rel instanceof Doctrine_Relation_Association{
  1010. -
  1011.             $identifier $this->_table->getIdentifier();
  1012. -
  1013.             $asf        $rel->getAssociationFactory();
  1014. -
  1015.             $name       $table->getComponentName();
  1016. -
  1017.  
  1018. -
  1019.             foreach ($this->data as $key => $record{
  1020. -
  1021.                 if $record->exists()) {
  1022. -
  1023.                     continue;
  1024. -
  1025.                 }
  1026. -
  1027.                 $sub new Doctrine_Collection($table);
  1028. -
  1029.                 foreach ($coll as $k => $related{
  1030. -
  1031.                     if ($related->get($local== $record[$identifier]{
  1032. -
  1033.                         $sub->add($related->get($name));
  1034. -
  1035.                     }
  1036. -
  1037.                 }
  1038. -
  1039.                 $this->data[$key]->setRelated($name$sub);
  1040. -
  1041.  
  1042. -
  1043.             }
  1044. -
  1045.         }
  1046. -
  1047.     }
  1048. -
  1049.     /**
  1050. -
  1051.      * getNormalIterator
  1052. -
  1053.      * returns normal iterator - an iterator that will not expand this collection
  1054. -
  1055.      *
  1056. -
  1057.      * @return Doctrine_Iterator_Normal 
  1058. -
  1059.      */
  1060. -
  1061.     public function getNormalIterator()
  1062. -
  1063.     {
  1064. -
  1065.         return new Doctrine_Collection_Iterator_Normal($this);
  1066. -
  1067.     }
  1068. -
  1069.     /**
  1070. -
  1071.      * takeSnapshot
  1072. -
  1073.      * takes a snapshot from this collection
  1074. -
  1075.      *
  1076. -
  1077.      * snapshots are used for diff processing, for example
  1078. -
  1079.      * when a fetched collection has three elements, then two of those
  1080. -
  1081.      * are being removed the diff would contain one element
  1082. -
  1083.      *
  1084. -
  1085.      * Doctrine_Collection::save() attaches the diff with the help of last
  1086. -
  1087.      * snapshot.
  1088. -
  1089.      *
  1090. -
  1091.      * @return Doctrine_Collection 
  1092. -
  1093.      */
  1094. -
  1095.     public function takeSnapshot()
  1096. -
  1097.     {
  1098. -
  1099.         $this->_snapshot = $this->data;
  1100. -
  1101.         
  1102. -
  1103.         return $this;
  1104. -
  1105.     }
  1106. -
  1107.     /**
  1108. -
  1109.      * getSnapshot
  1110. -
  1111.      * returns the data of the last snapshot
  1112. -
  1113.      *
  1114. -
  1115.      * @return array    returns the data in last snapshot
  1116. -
  1117.      */
  1118. -
  1119.     public function getSnapshot()
  1120. -
  1121.     {
  1122. -
  1123.         return $this->_snapshot;
  1124. -
  1125.     }
  1126. -
  1127.     /**
  1128. -
  1129.      * processDiff
  1130. -
  1131.      * processes the difference of the last snapshot and the current data
  1132. -
  1133.      *
  1134. -
  1135.      * an example:
  1136. -
  1137.      * Snapshot with the objects 1, 2 and 4
  1138. -
  1139.      * Current data with objects 2, 3 and 5
  1140. -
  1141.      *
  1142. -
  1143.      * The process would remove object 4
  1144. -
  1145.      *
  1146. -
  1147.      * @return Doctrine_Collection 
  1148. -
  1149.      */
  1150. -
  1151.     public function processDiff(
  1152. -
  1153.     {
  1154. -
  1155.         foreach (array_diff($this->_snapshot$this->dataas $record{
  1156. -
  1157.             $record->delete();
  1158. -
  1159.         }
  1160. -
  1161.  
  1162. -
  1163.         return $this;
  1164. -
  1165.     }
  1166. -
  1167.     /**
  1168. -
  1169.      * toArray
  1170. -
  1171.      * Mimics the result of a $query->execute(array(), Doctrine::FETCH_ARRAY);
  1172. -
  1173.      *
  1174. -
  1175.      * @param boolean $deep 
  1176. -
  1177.      */
  1178. -
  1179.     public function toArray($deep false)
  1180. -
  1181.     {
  1182. -
  1183.         if ($deep{
  1184. -
  1185.             $data array();
  1186. -
  1187.             foreach ($this->data as $key => $record{
  1188. -
  1189.                 $data[$key$record->toArray($deep);
  1190. -
  1191.             }
  1192. -
  1193.             return $data;
  1194. -
  1195.         else {
  1196. -
  1197.             // this is preserved for backwards compatibility
  1198. -
  1199.             // but could be replaced with above code
  1200. -
  1201.             return $this->data;
  1202. -
  1203.         }
  1204. -
  1205.     }
  1206. -
  1207.     public function getDeleteDiff()
  1208. -
  1209.     {
  1210. -
  1211.         return array_diff($this->_snapshot$this->data);
  1212. -
  1213.     }
  1214. -
  1215.     public function getInsertDiff()
  1216. -
  1217.     {
  1218. -
  1219.         return array_diff($this->data$this->_snapshot);
  1220. -
  1221.     }
  1222. -
  1223.     /**
  1224. -
  1225.      * save
  1226. -
  1227.      * saves all records of this collection and processes the
  1228. -
  1229.      * difference of the last snapshot and the current data
  1230. -
  1231.      *
  1232. -
  1233.      * @param Doctrine_Connection $conn     optional connection parameter
  1234. -
  1235.      * @return Doctrine_Collection 
  1236. -
  1237.      */
  1238. -
  1239.     public function save(Doctrine_Connection $conn null)
  1240. -
  1241.     {
  1242. -
  1243.         if ($conn == null{
  1244. -
  1245.             $conn $this->_table->getConnection();
  1246. -
  1247.         }
  1248. -
  1249.         $conn->beginTransaction();
  1250. -
  1251.         $conn->transaction->addCollection($this);
  1252. -
  1253.  
  1254. -
  1255.         $this->processDiff();
  1256. -
  1257.  
  1258. -
  1259.         foreach ($this->getData(as $key => $record{
  1260. -
  1261.             $record->save($conn);
  1262. -
  1263.         }
  1264. -
  1265.  
  1266. -
  1267.         $conn->commit();
  1268. -
  1269.         
  1270. -
  1271.         return $this;
  1272. -
  1273.     }
  1274. -
  1275.     /**
  1276. -
  1277.      * delete
  1278. -
  1279.      * single shot delete
  1280. -
  1281.      * deletes all records from this collection
  1282. -
  1283.      * and uses only one database query to perform this operation
  1284. -
  1285.      *
  1286. -
  1287.      * @return Doctrine_Collection 
  1288. -
  1289.      */
  1290. -
  1291.     public function delete(Doctrine_Connection $conn null)
  1292. -
  1293.     {
  1294. -
  1295.         if ($conn == null{
  1296. -
  1297.             $conn $this->_table->getConnection();
  1298. -
  1299.         }
  1300. -
  1301.  
  1302. -
  1303.         $conn->beginTransaction();
  1304. -
  1305.         $conn->transaction->addCollection($this);
  1306. -
  1307.  
  1308. -
  1309.         foreach ($this as $key => $record{
  1310. -
  1311.             $record->delete($conn);
  1312. -
  1313.         }
  1314. -
  1315.  
  1316. -
  1317.         $conn->commit();
  1318. -
  1319.  
  1320. -
  1321.         $this->data = array();
  1322. -
  1323.         
  1324. -
  1325.         return $this;
  1326. -
  1327.     }
  1328. -
  1329.     /**
  1330. -
  1331.      * getIterator
  1332. -
  1333.      * @return object ArrayIterator 
  1334. -
  1335.      */
  1336. -
  1337.     public function getIterator()
  1338. -
  1339.     {
  1340. -
  1341.         $data $this->data;
  1342. -
  1343.         return new ArrayIterator($data);
  1344. -
  1345.     }
  1346. -
  1347.     /**
  1348. -
  1349.      * returns a string representation of this object
  1350. -
  1351.      */
  1352. -
  1353.     public function __toString()
  1354. -
  1355.     {
  1356. -
  1357.         return Doctrine_Lib::getCollectionAsString($this);
  1358. -
  1359.     }
  1360. -
  1361. }
  1362. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionException.php.html deleted file mode 100644 index dd6f51b65..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionException.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Collection_Exception
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. -
  64. }
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIterator.php.html deleted file mode 100644 index 153ede77f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIterator.php.html +++ /dev/null @@ -1,119 +0,0 @@ - -
-

Source for file Iterator.php

-

Documentation is available at Iterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Iterator.php 1323 2007-05-10 23:46:09Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Collection_Iterator
  44. -
  45.  * iterates through Doctrine_Collection
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1323 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. abstract class Doctrine_Collection_Iterator implements Iterator
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * @var Doctrine_Collection $collection 
  72. -
  73.      */
  74. -
  75.     protected $collection;
  76. -
  77.     /**
  78. -
  79.      * @var array $keys 
  80. -
  81.      */
  82. -
  83.     protected $keys;
  84. -
  85.     /**
  86. -
  87.      * @var mixed $key 
  88. -
  89.      */
  90. -
  91.     protected $key;
  92. -
  93.     /**
  94. -
  95.      * @var integer $index 
  96. -
  97.      */
  98. -
  99.     protected $index;
  100. -
  101.     /**
  102. -
  103.      * @var integer $count 
  104. -
  105.      */
  106. -
  107.     protected $count;
  108. -
  109.  
  110. -
  111.     /**
  112. -
  113.      * constructor
  114. -
  115.      * @var Doctrine_Collection $collection 
  116. -
  117.      */
  118. -
  119.     public function __construct($collection)
  120. -
  121.     {
  122. -
  123.         $this->collection = $collection;
  124. -
  125.         $this->keys       = $this->collection->getKeys();
  126. -
  127.         $this->count      = $this->collection->count();
  128. -
  129.     }
  130. -
  131.     /**
  132. -
  133.      * rewinds the iterator
  134. -
  135.      *
  136. -
  137.      * @return void 
  138. -
  139.      */
  140. -
  141.     public function rewind()
  142. -
  143.     {
  144. -
  145.         $this->index = 0;
  146. -
  147.         $i $this->index;
  148. -
  149.         if (isset($this->keys[$i])) {
  150. -
  151.             $this->key   = $this->keys[$i];
  152. -
  153.         }
  154. -
  155.     }
  156. -
  157.  
  158. -
  159.     /**
  160. -
  161.      * returns the current key
  162. -
  163.      *
  164. -
  165.      * @return integer 
  166. -
  167.      */
  168. -
  169.     public function key()
  170. -
  171.     {
  172. -
  173.         return $this->key;
  174. -
  175.     }
  176. -
  177.     /**
  178. -
  179.      * returns the current record
  180. -
  181.      *
  182. -
  183.      * @return Doctrine_Record 
  184. -
  185.      */
  186. -
  187.     public function current()
  188. -
  189.     {
  190. -
  191.         return $this->collection->get($this->key);
  192. -
  193.     }
  194. -
  195.     /**
  196. -
  197.      * advances the internal pointer
  198. -
  199.      *
  200. -
  201.      * @return void 
  202. -
  203.      */
  204. -
  205.     public function next()
  206. -
  207.     {
  208. -
  209.         $this->index++;
  210. -
  211.         $i $this->index;
  212. -
  213.         if (isset($this->keys[$i])) {
  214. -
  215.             $this->key   = $this->keys[$i];
  216. -
  217.         }
  218. -
  219.     }
  220. -
  221. }
  222. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorExpandable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorExpandable.php.html deleted file mode 100644 index 2a9507df0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorExpandable.php.html +++ /dev/null @@ -1,62 +0,0 @@ - -
-

Source for file Expandable.php

-

Documentation is available at Expandable.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Expandable.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Collection_Iterator');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Collection_Iterator_Normal
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function valid()
  69. -
  70.     {
  71. -
  72.         if ($this->index < $this->count{
  73. -
  74.             return true;
  75. -
  76.         elseif ($this->index == $this->count{
  77. -
  78.             $coll  $this->collection->expand($this->index);
  79. -
  80.  
  81. -
  82.             if ($coll instanceof Doctrine_Collection{
  83. -
  84.                 $count count($coll);
  85. -
  86.                 if ($count 0{
  87. -
  88.                     $this->keys   = array_merge($this->keys$coll->getKeys());
  89. -
  90.                     $this->count += $count;
  91. -
  92.                     return true;
  93. -
  94.                 }
  95. -
  96.             }
  97. -
  98.  
  99. -
  100.             return false;
  101. -
  102.         }
  103. -
  104.     }
  105. -
  106. }
  107. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorNormal.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorNormal.php.html deleted file mode 100644 index 1745f2695..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorNormal.php.html +++ /dev/null @@ -1,50 +0,0 @@ - -
-

Source for file Normal.php

-

Documentation is available at Normal.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Normal.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Collection_Iterator');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Collection_Iterator_Normal
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @return boolean                          whether or not the iteration will continue
  71. -
  72.      */
  73. -
  74.     public function valid()
  75. -
  76.     {
  77. -
  78.         return ($this->index < $this->count);
  79. -
  80.     }
  81. -
  82. }
  83. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorOffset.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorOffset.php.html deleted file mode 100644 index 25ed76b01..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionIteratorOffset.php.html +++ /dev/null @@ -1,45 +0,0 @@ - -
-

Source for file Offset.php

-

Documentation is available at Offset.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Offset.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Collection_Iterator');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Collection_Iterator_Normal
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function valid()
  69. -
  70.     }
  71. -
  72. }
  73. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionOffset.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionOffset.php.html deleted file mode 100644 index e03b52e41..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCollectionOffset.php.html +++ /dev/null @@ -1,70 +0,0 @@ - -
-

Source for file Offset.php

-

Documentation is available at Offset.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Offset.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Collection_Offset');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Collection_Offset
  46. -
  47.  * Collection of Doctrine_Record objects.
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var integer $limit 
  73. -
  74.      */
  75. -
  76.     private $limit;
  77. -
  78.     /**
  79. -
  80.      * @param Doctrine_Table $table 
  81. -
  82.      */
  83. -
  84.     public function __construct(Doctrine_Table $table)
  85. -
  86.     {
  87. -
  88.         parent::__construct($table);
  89. -
  90.         $this->limit = $table->getAttribute(Doctrine::ATTR_COLL_LIMIT);
  91. -
  92.     }
  93. -
  94.     /**
  95. -
  96.      * @return integer 
  97. -
  98.      */
  99. -
  100.     public function getLimit()
  101. -
  102.     {
  103. -
  104.         return $this->limit;
  105. -
  106.     }
  107. -
  108.     /**
  109. -
  110.      * @return Doctrine_Collection_Iterator_Expandable 
  111. -
  112.      */
  113. -
  114.     public function getIterator()
  115. -
  116.     {
  117. -
  118.         return new Doctrine_Collection_Iterator_Expandable($this);
  119. -
  120.     }
  121. -
  122. }
  123. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineColumn.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineColumn.php.html deleted file mode 100644 index 6258c013f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineColumn.php.html +++ /dev/null @@ -1,156 +0,0 @@ - -
-

Source for file Column.php

-

Documentation is available at Column.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Column.php 1392 2007-05-19 17:29:43Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Column
  44. -
  45.  * This class represents a database column
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision: 1392 $
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. class Doctrine_Column extends Doctrine_Access implements IteratorAggregateCountable
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * @var array $definition 
  72. -
  73.      */
  74. -
  75.     protected $_definition = array(
  76. -
  77.                                 'type'    => null,
  78. -
  79.                                 'length'  => 0,
  80. -
  81.                                 );
  82. -
  83.     /**
  84. -
  85.      * @var array $definition 
  86. -
  87.      */
  88. -
  89.     public function __construct(array $definition array())
  90. -
  91.     {
  92. -
  93.         $this->_definition = $definition;
  94. -
  95.     }
  96. -
  97.     /**
  98. -
  99.      * @return array 
  100. -
  101.      */
  102. -
  103.     public function getDefinition()
  104. -
  105.     {
  106. -
  107.         return $this->_definition;
  108. -
  109.     }
  110. -
  111.     /**
  112. -
  113.      * contains
  114. -
  115.      *
  116. -
  117.      * @return boolean 
  118. -
  119.      */
  120. -
  121.     public function contains($name
  122. -
  123.     {
  124. -
  125.         return isset($this->_definition[$name]);
  126. -
  127.     }
  128. -
  129.     /**
  130. -
  131.      * get
  132. -
  133.      *
  134. -
  135.      * @param string $name 
  136. -
  137.      * @return mixed 
  138. -
  139.      */
  140. -
  141.     public function get($name)
  142. -
  143.     {
  144. -
  145.         if isset($this->_definition[$name])) {
  146. -
  147.             return null;
  148. -
  149.         }
  150. -
  151.         
  152. -
  153.         return $this->_definition[$name];
  154. -
  155.     }
  156. -
  157.     /**
  158. -
  159.      * set
  160. -
  161.      *
  162. -
  163.      * @param string $name 
  164. -
  165.      * @return mixed 
  166. -
  167.      */
  168. -
  169.     public function set($name$value)
  170. -
  171.     {
  172. -
  173.         $this->_definition[$name$value;
  174. -
  175.     }
  176. -
  177.     /**
  178. -
  179.      * @param string $field 
  180. -
  181.      * @return array 
  182. -
  183.      */
  184. -
  185.     public function getEnumValues()
  186. -
  187.     {
  188. -
  189.         if (isset($this->_definition['values'])) {
  190. -
  191.             return $this->_definition['values'];
  192. -
  193.         else {
  194. -
  195.             return array();
  196. -
  197.         }
  198. -
  199.     }
  200. -
  201.     /**
  202. -
  203.      * enumValue
  204. -
  205.      *
  206. -
  207.      * @param string $field 
  208. -
  209.      * @param integer $index 
  210. -
  211.      * @return mixed 
  212. -
  213.      */
  214. -
  215.     public function enumValue($index)
  216. -
  217.     {
  218. -
  219.         if ($index instanceof Doctrine_Null{
  220. -
  221.             return $index;
  222. -
  223.         }
  224. -
  225.  
  226. -
  227.         return isset($this->_definition['values'][$index]$this->_definition['values'][$index$index;
  228. -
  229.     }
  230. -
  231.     /**
  232. -
  233.      * enumIndex
  234. -
  235.      *
  236. -
  237.      * @param string $field 
  238. -
  239.      * @param mixed $value 
  240. -
  241.      * @return mixed 
  242. -
  243.      */
  244. -
  245.     public function enumIndex($field$value)
  246. -
  247.     {
  248. -
  249.         $values $this->getEnumValues($field);
  250. -
  251.  
  252. -
  253.         return array_search($value$values);
  254. -
  255.     }
  256. -
  257.     /**
  258. -
  259.      * count
  260. -
  261.      *
  262. -
  263.      * @return integer 
  264. -
  265.      */
  266. -
  267.     public function count()
  268. -
  269.     {
  270. -
  271.         return count($this->_definition);
  272. -
  273.     }
  274. -
  275.     /**
  276. -
  277.      * getIterator
  278. -
  279.      *
  280. -
  281.      * @return ArrayIterator 
  282. -
  283.      */
  284. -
  285.     public function getIterator(
  286. -
  287.     {
  288. -
  289.         return new ArrayIterator($this->_definition);
  290. -
  291.     }
  292. -
  293.  
  294. -
  295. }
  296. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompiler.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompiler.php.html deleted file mode 100644 index f4018243d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompiler.php.html +++ /dev/null @@ -1,110 +0,0 @@ - -
-

Source for file Compiler.php

-

Documentation is available at Compiler.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Compiler.php 1768 2007-06-19 22:55:34Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Compiler
  44. -
  45.  * This class can be used for compiling the entire Doctrine framework into a single file
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1768 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * method for making a single file of most used doctrine runtime components
  71. -
  72.      * including the compiled file instead of multiple files (in worst
  73. -
  74.      * cases dozens of files) can improve performance by an order of magnitude
  75. -
  76.      *
  77. -
  78.      * @throws Doctrine_Compiler_Exception      if something went wrong during the compile operation
  79. -
  80.      * @return void 
  81. -
  82.      */
  83. -
  84.     public static function compile($target null)
  85. -
  86.     {
  87. -
  88.         $path Doctrine::getPath();
  89. -
  90.         $it new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)RecursiveIteratorIterator::LEAVES_ONLY);
  91. -
  92.  
  93. -
  94.         foreach ($it as $file{
  95. -
  96.             $e explode('.'$file->getFileName());
  97. -
  98.             
  99. -
  100.             // we don't want to require versioning files
  101. -
  102.             if (end($e=== 'php' && strpos($file->getFileName()'.inc'=== false{
  103. -
  104.                 require_once $file->getPathName();
  105. -
  106.             }
  107. -
  108.         }
  109. -
  110.  
  111. -
  112.         $classes array_merge(get_declared_classes()get_declared_interfaces());
  113. -
  114.  
  115. -
  116.         $ret     array();
  117. -
  118.  
  119. -
  120.         foreach ($classes as $class{
  121. -
  122.             $e explode('_'$class);
  123. -
  124.  
  125. -
  126.             if ($e[0!== 'Doctrine'{
  127. -
  128.                 continue;
  129. -
  130.             }
  131. -
  132.             $refl  new ReflectionClass($class);
  133. -
  134.             $file  $refl->getFileName();
  135. -
  136.             
  137. -
  138.             print 'Adding ' $file PHP_EOL;
  139. -
  140.  
  141. -
  142.             $lines file($file);
  143. -
  144.  
  145. -
  146.             $start $refl->getStartLine(1;
  147. -
  148.             $end   $refl->getEndLine();
  149. -
  150.  
  151. -
  152.             $ret array_merge($retarray_slice($lines$start($end $start)));
  153. -
  154.         }
  155. -
  156.  
  157. -
  158.         if ($target == null{
  159. -
  160.             $target $path DIRECTORY_SEPARATOR 'Doctrine.compiled.php';
  161. -
  162.         }
  163. -
  164.  
  165. -
  166.         // first write the 'compiled' data to a text file, so
  167. -
  168.         // that we can use php_strip_whitespace (which only works on files)
  169. -
  170.         $fp @fopen($target'w');
  171. -
  172.  
  173. -
  174.         if ($fp === false{
  175. -
  176.             throw new Doctrine_Compiler_Exception("Couldn't write compiled dataFailed to open $target");
  177. -
  178.         }
  179. -
  180.         fwrite($fp"<?php "implode(''$ret));
  181. -
  182.         fclose($fp);
  183. -
  184.  
  185. -
  186.         $stripped php_strip_whitespace($target);
  187. -
  188.         $fp @fopen($target'w');
  189. -
  190.         if ($fp === false{
  191. -
  192.             throw new Doctrine_Compiler_Exception("Couldn't write compiled dataFailed to open $file");
  193. -
  194.         }
  195. -
  196.         fwrite($fp$stripped);
  197. -
  198.         fclose($fp);
  199. -
  200.     }
  201. -
  202. }
  203. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompilerException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompilerException.php.html deleted file mode 100644 index dbe44e170..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineCompilerException.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Compiler_Exception
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  */
  62. -
  63. -
  64. }
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConfigurable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConfigurable.php.html deleted file mode 100644 index 056b685e3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConfigurable.php.html +++ /dev/null @@ -1,371 +0,0 @@ - -
-

Source for file Configurable.php

-

Documentation is available at Configurable.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Configurable.php 2153 2007-08-03 11:52:24Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Configurable
  44. -
  45.  * the base for Doctrine_Table, Doctrine_Manager and Doctrine_Connection
  46. -
  47.  *
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 2153 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. abstract class Doctrine_Configurable extends Doctrine_Object
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var array $attributes               an array of containing all attributes
  74. -
  75.      */
  76. -
  77.     protected $attributes = array();
  78. -
  79.     /**
  80. -
  81.      * @var Doctrine_Configurable $parent   the parent of this component
  82. -
  83.      */
  84. -
  85.     protected $parent;
  86. -
  87.     /**
  88. -
  89.      * @var array $_impl                    an array containing concrete implementations for class templates
  90. -
  91.      *                                       keys as template names and values as names of the concrete
  92. -
  93.      *                                       implementation classes
  94. -
  95.      */
  96. -
  97.     protected $_impl = array();
  98. -
  99.     /**
  100. -
  101.      * setAttribute
  102. -
  103.      * sets a given attribute
  104. -
  105.      *
  106. -
  107.      * <code>
  108. -
  109.      * $manager->setAttribute(Doctrine::ATTR_PORTABILITY, Doctrine::PORTABILITY_ALL);
  110. -
  111.      *
  112. -
  113.      * // or
  114. -
  115.      *
  116. -
  117.      * $manager->setAttribute('portability', Doctrine::PORTABILITY_ALL);
  118. -
  119.      * </code>
  120. -
  121.      *
  122. -
  123.      * @param mixed $attribute              either a Doctrine::ATTR_* integer constant or a string
  124. -
  125.      *                                       corresponding to a constant
  126. -
  127.      * @param mixed $value                  the value of the attribute
  128. -
  129.      * @see Doctrine::ATTR_* constants
  130. -
  131.      * @throws Doctrine_Exception           if the value is invalid
  132. -
  133.      * @return void 
  134. -
  135.      */
  136. -
  137.     public function setAttribute($attribute,$value)
  138. -
  139.     {
  140. -
  141.         if (is_string($attribute)) {
  142. -
  143.             $upper strtoupper($attribute);
  144. -
  145.             
  146. -
  147.             $const 'Doctrine::ATTR_' $attribute;
  148. -
  149.             if (defined($const)) {
  150. -
  151.                 $this->_state constant($const);
  152. -
  153.             else {
  154. -
  155.                 throw new Doctrine_Exception('Unknown attribute ' $attribute);
  156. -
  157.             }
  158. -
  159.         }
  160. -
  161.         switch ($attribute{
  162. -
  163.             case Doctrine::ATTR_FETCHMODE:
  164. -
  165.                 if ($value 0{
  166. -
  167.                    throw new Doctrine_Exception("Unknown fetchmode. See Doctrine::FETCH_* constants.");
  168. -
  169.                 }
  170. -
  171.                 break;
  172. -
  173.             case Doctrine::ATTR_LISTENER:
  174. -
  175.                 $this->setEventListener($value);
  176. -
  177.                 break;
  178. -
  179.             case Doctrine::ATTR_LOCKMODE:
  180. -
  181.                 break;
  182. -
  183.             case Doctrine::ATTR_CREATE_TABLES:
  184. -
  185.                     throw new Doctrine_Exception("ATTR_CREATE_TABLES has been deprecated. See exporting in the first chapter of the manual.");
  186. -
  187.                 break;
  188. -
  189.             case Doctrine::ATTR_ACCESSORS:
  190. -
  191.                     throw new Doctrine_Exception("Get / Set filtering is deprecated (slowed down Doctrine too much).")
  192. -
  193.                 break;
  194. -
  195.             case Doctrine::ATTR_COLL_LIMIT:
  196. -
  197.                 if ($value 1{
  198. -
  199.                     throw new Doctrine_Exception("Collection limit should be a value greater than or equal to 1.");
  200. -
  201.                 }
  202. -
  203.                 break;
  204. -
  205.             case Doctrine::ATTR_COLL_KEY:
  206. -
  207.                 if ($this instanceof Doctrine_Table)) {
  208. -
  209.                     throw new Doctrine_Exception("This attribute can only be set at table level.");
  210. -
  211.                 }
  212. -
  213.                 if ($value !== null && $this->hasColumn($value)) {
  214. -
  215.                     throw new Doctrine_Exception("Couldn't set collection key attributeNo such column '$value'");
  216. -
  217.                 }
  218. -
  219.                 break;
  220. -
  221.             case Doctrine::ATTR_CACHE:
  222. -
  223.                 if ($value !== null{
  224. -
  225.                     if ($value instanceof Doctrine_Cache_Interface)) {
  226. -
  227.                         throw new Doctrine_Exception('Cache driver should implement Doctrine_Cache_Interface');
  228. -
  229.                     }
  230. -
  231.                 }
  232. -
  233.                 break;
  234. -
  235.             case Doctrine::ATTR_VLD:
  236. -
  237.             case Doctrine::ATTR_AUTO_LENGTH_VLD:
  238. -
  239.             case Doctrine::ATTR_AUTO_TYPE_VLD:
  240. -
  241.             case Doctrine::ATTR_QUERY_LIMIT:
  242. -
  243.             case Doctrine::ATTR_QUOTE_IDENTIFIER:
  244. -
  245.             case Doctrine::ATTR_PORTABILITY:
  246. -
  247.             case Doctrine::ATTR_DEFAULT_TABLE_TYPE:
  248. -
  249.             case Doctrine::ATTR_ACCESSOR_PREFIX_GET:
  250. -
  251.             case Doctrine::ATTR_ACCESSOR_PREFIX_SET:
  252. -
  253.             case Doctrine::ATTR_EMULATE_DATABASE:
  254. -
  255.             case Doctrine::ATTR_DEFAULT_SEQUENCE:
  256. -
  257.             case Doctrine::ATTR_EXPORT:
  258. -
  259.             case Doctrine::ATTR_DECIMAL_PLACES:
  260. -
  261.             case Doctrine::ATTR_LOAD_REFERENCES:
  262. -
  263.             case Doctrine::ATTR_RECORD_LISTENER:
  264. -
  265.             case Doctrine::ATTR_THROW_EXCEPTIONS:
  266. -
  267.  
  268. -
  269.                 break;
  270. -
  271.             case Doctrine::ATTR_SEQCOL_NAME:
  272. -
  273.                 if is_string($value)) {
  274. -
  275.                     throw new Doctrine_Exception('Sequence column name attribute only accepts string values');
  276. -
  277.                 }
  278. -
  279.                 break;
  280. -
  281.             case Doctrine::ATTR_FIELD_CASE:
  282. -
  283.                 if ($value != && $value != CASE_LOWER && $value != CASE_UPPER)
  284. -
  285.                     throw new Doctrine_Exception('Field case attribute should be either 0, CASE_LOWER or CASE_UPPER constant.');
  286. -
  287.                 break;
  288. -
  289.             case Doctrine::ATTR_SEQNAME_FORMAT:
  290. -
  291.             case Doctrine::ATTR_IDXNAME_FORMAT:
  292. -
  293.                 if ($this instanceof Doctrine_Table{
  294. -
  295.                     throw new Doctrine_Exception('Sequence / index name format attributes cannot be set'
  296. -
  297.                                                . 'at table level (only at connection or global level).');
  298. -
  299.                 }
  300. -
  301.                 break;
  302. -
  303.             default:
  304. -
  305.                 throw new Doctrine_Exception("Unknown attribute.");
  306. -
  307.         }
  308. -
  309.  
  310. -
  311.         $this->attributes[$attribute$value;
  312. -
  313.  
  314. -
  315.     }
  316. -
  317.     /**
  318. -
  319.      * setImpl
  320. -
  321.      * binds given class to given template name
  322. -
  323.      *
  324. -
  325.      * this method is the base of Doctrine dependency injection
  326. -
  327.      *
  328. -
  329.      * @param string $template      name of the class template
  330. -
  331.      * @param string $class         name of the class to be bound
  332. -
  333.      * @return Doctrine_Configurable    this object
  334. -
  335.      */
  336. -
  337.     public function setImpl($template$class)
  338. -
  339.     {
  340. -
  341.         $this->_impl[$template$class;
  342. -
  343.         
  344. -
  345.         return $this;
  346. -
  347.     }
  348. -
  349.     /**
  350. -
  351.      * getImpl
  352. -
  353.      * returns the implementation for given class
  354. -
  355.      *
  356. -
  357.      * @return string   name of the concrete implementation
  358. -
  359.      */
  360. -
  361.     public function getImpl($template)
  362. -
  363.     {
  364. -
  365.         if isset($this->_impl[$template])) {
  366. -
  367.             if (isset($this->parent)) {
  368. -
  369.                 return $this->parent->getImpl($template);
  370. -
  371.             }
  372. -
  373.             return null;
  374. -
  375.         }
  376. -
  377.         return $this->_impl[$template];
  378. -
  379.     }
  380. -
  381.     /**
  382. -
  383.      * getCacheDriver
  384. -
  385.      *
  386. -
  387.      * @return Doctrine_Cache_Interface 
  388. -
  389.      */
  390. -
  391.     public function getCacheDriver()
  392. -
  393.     {
  394. -
  395.         if isset($this->attributes[Doctrine::ATTR_CACHE])) {
  396. -
  397.             throw new Doctrine_Exception('Cache driver not initialized.');
  398. -
  399.         }
  400. -
  401.         
  402. -
  403.         return $this->attributes[Doctrine::ATTR_CACHE];
  404. -
  405.     }
  406. -
  407.     /**
  408. -
  409.      * @param Doctrine_EventListener $listener 
  410. -
  411.      * @return void 
  412. -
  413.      */
  414. -
  415.     public function setEventListener($listener)
  416. -
  417.     {
  418. -
  419.         return $this->setListener($listener);
  420. -
  421.     }
  422. -
  423.     /**
  424. -
  425.      * addRecordListener
  426. -
  427.      *
  428. -
  429.      * @param Doctrine_EventListener_Interface|Doctrine_Overloadable$listener 
  430. -
  431.      * @return mixed        this object
  432. -
  433.      */
  434. -
  435.     public function addRecordListener($listener$name null)
  436. -
  437.     {
  438. -
  439.         if isset($this->attributes[Doctrine::ATTR_RECORD_LISTENER]||
  440. -
  441.              ($this->attributes[Doctrine::ATTR_RECORD_LISTENERinstanceof Doctrine_Record_Listener_Chain)) {
  442. -
  443.             
  444. -
  445.             $this->attributes[Doctrine::ATTR_RECORD_LISTENERnew Doctrine_Record_Listener_Chain();
  446. -
  447.         }
  448. -
  449.         $this->attributes[Doctrine::ATTR_RECORD_LISTENER]->add($listener$name);
  450. -
  451.  
  452. -
  453.         return $this;
  454. -
  455.     }
  456. -
  457.     /**
  458. -
  459.      * getListener
  460. -
  461.      *
  462. -
  463.      * @return Doctrine_EventListener_Interface|Doctrine_Overloadable
  464. -
  465.      */
  466. -
  467.     public function getRecordListener()
  468. -
  469.     {
  470. -
  471.         if isset($this->attributes[Doctrine::ATTR_RECORD_LISTENER])) {
  472. -
  473.             if (isset($this->parent)) {
  474. -
  475.                 return $this->parent->getRecordListener();
  476. -
  477.             }
  478. -
  479.             return null;
  480. -
  481.         }
  482. -
  483.         return $this->attributes[Doctrine::ATTR_RECORD_LISTENER];
  484. -
  485.     }
  486. -
  487.     /**
  488. -
  489.      * setListener
  490. -
  491.      *
  492. -
  493.      * @param Doctrine_EventListener_Interface|Doctrine_Overloadable$listener 
  494. -
  495.      * @return Doctrine_Configurable        this object
  496. -
  497.      */
  498. -
  499.     public function setRecordListener($listener)
  500. -
  501.     {
  502. -
  503.         if ($listener instanceof Doctrine_Record_Listener_Interface)
  504. -
  505.             && ($listener instanceof Doctrine_Overloadable)
  506. -
  507.         {
  508. -
  509.             throw new Doctrine_Exception("Couldn't set eventlistener. Record listeners should implement either Doctrine_Record_Listener_Interface or Doctrine_Overloadable");
  510. -
  511.         }
  512. -
  513.         $this->attributes[Doctrine::ATTR_RECORD_LISTENER$listener;
  514. -
  515.  
  516. -
  517.         return $this;
  518. -
  519.     }
  520. -
  521.     /**
  522. -
  523.      * addListener
  524. -
  525.      *
  526. -
  527.      * @param Doctrine_EventListener_Interface|Doctrine_Overloadable$listener 
  528. -
  529.      * @return mixed        this object
  530. -
  531.      */
  532. -
  533.     public function addListener($listener$name null)
  534. -
  535.     {
  536. -
  537.         if isset($this->attributes[Doctrine::ATTR_LISTENER]||
  538. -
  539.              ($this->attributes[Doctrine::ATTR_LISTENERinstanceof Doctrine_EventListener_Chain)) {
  540. -
  541.             
  542. -
  543.             $this->attributes[Doctrine::ATTR_LISTENERnew Doctrine_EventListener_Chain();
  544. -
  545.         }
  546. -
  547.         $this->attributes[Doctrine::ATTR_LISTENER]->add($listener$name);
  548. -
  549.  
  550. -
  551.         return $this;
  552. -
  553.     }
  554. -
  555.     /**
  556. -
  557.      * getListener
  558. -
  559.      *
  560. -
  561.      * @return Doctrine_EventListener_Interface|Doctrine_Overloadable
  562. -
  563.      */
  564. -
  565.     public function getListener()
  566. -
  567.     {
  568. -
  569.         if isset($this->attributes[Doctrine::ATTR_LISTENER])) {
  570. -
  571.             if (isset($this->parent)) {
  572. -
  573.                 return $this->parent->getListener();
  574. -
  575.             }
  576. -
  577.             return null;
  578. -
  579.         }
  580. -
  581.         return $this->attributes[Doctrine::ATTR_LISTENER];
  582. -
  583.     }
  584. -
  585.     /**
  586. -
  587.      * setListener
  588. -
  589.      *
  590. -
  591.      * @param Doctrine_EventListener_Interface|Doctrine_Overloadable$listener 
  592. -
  593.      * @return Doctrine_Configurable        this object
  594. -
  595.      */
  596. -
  597.     public function setListener($listener)
  598. -
  599.     {
  600. -
  601.         if ($listener instanceof Doctrine_EventListener_Interface)
  602. -
  603.             && ($listener instanceof Doctrine_Overloadable)
  604. -
  605.         {
  606. -
  607.             throw new Doctrine_EventListener_Exception("Couldn't set eventlistener. EventListeners should implement either Doctrine_EventListener_Interface or Doctrine_Overloadable");
  608. -
  609.         }
  610. -
  611.         $this->attributes[Doctrine::ATTR_LISTENER$listener;
  612. -
  613.  
  614. -
  615.         return $this;
  616. -
  617.     }
  618. -
  619.     /**
  620. -
  621.      * returns the value of an attribute
  622. -
  623.      *
  624. -
  625.      * @param integer $attribute 
  626. -
  627.      * @return mixed 
  628. -
  629.      */
  630. -
  631.     public function getAttribute($attribute)
  632. -
  633.     {
  634. -
  635.         $attribute = (int) $attribute;
  636. -
  637.  
  638. -
  639.         if ($attribute 0{
  640. -
  641.             throw new Doctrine_Exception('Unknown attribute.');
  642. -
  643.         }
  644. -
  645.  
  646. -
  647.         if isset($this->attributes[$attribute])) {
  648. -
  649.             if (isset($this->parent)) {
  650. -
  651.                 return $this->parent->getAttribute($attribute);
  652. -
  653.             }
  654. -
  655.             return null;
  656. -
  657.         }
  658. -
  659.         return $this->attributes[$attribute];
  660. -
  661.     }
  662. -
  663.     /**
  664. -
  665.      * getAttributes
  666. -
  667.      * returns all attributes as an array
  668. -
  669.      *
  670. -
  671.      * @return array 
  672. -
  673.      */
  674. -
  675.     public function getAttributes()
  676. -
  677.     {
  678. -
  679.         return $this->attributes;
  680. -
  681.     }
  682. -
  683.     /**
  684. -
  685.      * sets a parent for this configurable component
  686. -
  687.      * the parent must be configurable component itself
  688. -
  689.      *
  690. -
  691.      * @param Doctrine_Configurable $component 
  692. -
  693.      * @return void 
  694. -
  695.      */
  696. -
  697.     public function setParent(Doctrine_Configurable $component)
  698. -
  699.     {
  700. -
  701.         $this->parent = $component;
  702. -
  703.     }
  704. -
  705.     /**
  706. -
  707.      * getParent
  708. -
  709.      * returns the parent of this component
  710. -
  711.      *
  712. -
  713.      * @return Doctrine_Configurable 
  714. -
  715.      */
  716. -
  717.     public function getParent()
  718. -
  719.     {
  720. -
  721.         return $this->parent;
  722. -
  723.     }
  724. -
  725. }
  726. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnection.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnection.php.html deleted file mode 100644 index 5498a99ce..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnection.php.html +++ /dev/null @@ -1,1142 +0,0 @@ - -
-

Source for file Connection.php

-

Documentation is available at Connection.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Connection.php 2290 2007-08-29 21:57:46Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Configurable');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection
  46. -
  47.  *
  48. -
  49.  * A wrapper layer on top of PDO / Doctrine_Adapter
  50. -
  51.  *
  52. -
  53.  * Doctrine_Connection is the heart of any Doctrine based application.
  54. -
  55.  *
  56. -
  57.  * 1. Event listeners
  58. -
  59.  *    An easy to use, pluggable eventlistener architecture. Aspects such as
  60. -
  61.  *    logging, query profiling and caching can be easily implemented through
  62. -
  63.  *    the use of these listeners
  64. -
  65.  *
  66. -
  67.  * 2. Lazy-connecting
  68. -
  69.  *    Creating an instance of Doctrine_Connection does not connect
  70. -
  71.  *    to database. Connecting to database is only invoked when actually needed
  72. -
  73.  *    (for example when query() is being called)
  74. -
  75.  *
  76. -
  77.  * 3. Convenience methods
  78. -
  79.  *    Doctrine_Connection provides many convenience methods such as fetchAll(), fetchOne() etc.
  80. -
  81.  *
  82. -
  83.  * 4. Modular structure
  84. -
  85.  *    Higher level functionality such as schema importing, exporting, sequence handling etc.
  86. -
  87.  *    is divided into modules. For a full list of connection modules see
  88. -
  89.  *    Doctrine_Connection::$_modules
  90. -
  91.  *
  92. -
  93.  * @package     Doctrine
  94. -
  95.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  96. -
  97.  * @category    Object Relational Mapping
  98. -
  99.  * @link        www.phpdoctrine.com
  100. -
  101.  * @since       1.0
  102. -
  103.  * @version     $Revision: 2290 $
  104. -
  105.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  106. -
  107.  * @author      Lukas Smith <smith@pooteeweet.org> (MDB2 library)
  108. -
  109.  */
  110. -
  111. abstract class Doctrine_Connection extends Doctrine_Configurable implements CountableIteratorAggregate
  112. -
  113. {
  114. -
  115.     /**
  116. -
  117.      * @var $dbh                                the database handler
  118. -
  119.      */
  120. -
  121.     protected $dbh;
  122. -
  123.     /**
  124. -
  125.      * @var array $tables                       an array containing all the initialized Doctrine_Table objects
  126. -
  127.      *                                           keys representing Doctrine_Table component names and values as Doctrine_Table objects
  128. -
  129.      */
  130. -
  131.     protected $tables           = array();
  132. -
  133.     /**
  134. -
  135.      * @var string $driverName                  the name of this connection driver
  136. -
  137.      */
  138. -
  139.     protected $driverName;
  140. -
  141.     /**
  142. -
  143.      * @var boolean $isConnected                whether or not a connection has been established
  144. -
  145.      */
  146. -
  147.     protected $isConnected      = false;
  148. -
  149.     /**
  150. -
  151.      * @var array $supported                    an array containing all features this driver supports,
  152. -
  153.      *                                           keys representing feature names and values as
  154. -
  155.      *                                           one of the following (true, false, 'emulated')
  156. -
  157.      */
  158. -
  159.     protected $supported        = array();
  160. -
  161.     /**
  162. -
  163.      * @var array $pendingAttributes            An array of pending attributes. When setting attributes
  164. -
  165.      *                                           no connection is needed. When connected all the pending
  166. -
  167.      *                                           attributes are passed to the underlying adapter (usually PDO) instance.
  168. -
  169.      */
  170. -
  171.     protected $pendingAttributes  = array();
  172. -
  173.     /**
  174. -
  175.      * @var array $modules                      an array containing all modules
  176. -
  177.      *               transaction                 Doctrine_Transaction driver, handles savepoint and transaction isolation abstraction
  178. -
  179.      *
  180. -
  181.      *               expression                  Doctrine_Expression driver, handles expression abstraction
  182. -
  183.      *
  184. -
  185.      *               dataDict                    Doctrine_DataDict driver, handles datatype abstraction
  186. -
  187.      *
  188. -
  189.      *               export                      Doctrine_Export driver, handles db structure modification abstraction (contains
  190. -
  191.      *                                           methods such as alterTable, createConstraint etc.)
  192. -
  193.      *               import                      Doctrine_Import driver, handles db schema reading
  194. -
  195.      *
  196. -
  197.      *               sequence                    Doctrine_Sequence driver, handles sequential id generation and retrieval
  198. -
  199.      *
  200. -
  201.      *               unitOfWork                  Doctrine_Connection_UnitOfWork handles many orm functionalities such as object
  202. -
  203.      *                                           deletion and saving
  204. -
  205.      *
  206. -
  207.      *               formatter                   Doctrine_Formatter handles data formatting, quoting and escaping
  208. -
  209.      *
  210. -
  211.      * @see Doctrine_Connection::__get()
  212. -
  213.      * @see Doctrine_DataDict
  214. -
  215.      * @see Doctrine_Expression
  216. -
  217.      * @see Doctrine_Export
  218. -
  219.      * @see Doctrine_Transaction
  220. -
  221.      * @see Doctrine_Sequence
  222. -
  223.      * @see Doctrine_Connection_UnitOfWork
  224. -
  225.      * @see Doctrine_Formatter
  226. -
  227.      */
  228. -
  229.     private $modules = array('transaction' => false,
  230. -
  231.                              'expression'  => false,
  232. -
  233.                              'dataDict'    => false,
  234. -
  235.                              'export'      => false,
  236. -
  237.                              'import'      => false,
  238. -
  239.                              'sequence'    => false,
  240. -
  241.                              'unitOfWork'  => false,
  242. -
  243.                              'formatter'   => false,
  244. -
  245.                              'util'        => false,
  246. -
  247.                              );
  248. -
  249.     /**
  250. -
  251.      * @var array $properties               an array of connection properties
  252. -
  253.      */
  254. -
  255.     protected $properties = array('sql_comments'        => array(array('start' => '--''end' => "\n"'escape' => false),
  256. -
  257.                                                                  array('start' => '/*''end' => '*/''escape' => false)),
  258. -
  259.                                   'identifier_quoting'  => array('start' => '"''end' => '"','escape' => '"'),
  260. -
  261.                                   'string_quoting'      => array('start' => "'",
  262. -
  263.                                                                  'end' => "'",
  264. -
  265.                                                                  'escape' => false,
  266. -
  267.                                                                  'escape_pattern' => false),
  268. -
  269.                                   'wildcards'           => array('%''_'),
  270. -
  271.                                   'varchar_max_length'  => 255,
  272. -
  273.                                   );
  274. -
  275.     /**
  276. -
  277.      * @var array $serverInfo 
  278. -
  279.      */
  280. -
  281.     protected $serverInfo = array();
  282. -
  283.     
  284. -
  285.     protected $options    = array();
  286. -
  287.     /**
  288. -
  289.      * @var array $availableDrivers         an array containing all availible drivers
  290. -
  291.      */
  292. -
  293.     private static $availableDrivers    array(
  294. -
  295.                                         'Mysql',
  296. -
  297.                                         'Pgsql',
  298. -
  299.                                         'Oracle',
  300. -
  301.                                         'Informix',
  302. -
  303.                                         'Mssql',
  304. -
  305.                                         'Sqlite',
  306. -
  307.                                         'Firebird'
  308. -
  309.                                         );
  310. -
  311.     protected $_count;
  312. -
  313.  
  314. -
  315.     /**
  316. -
  317.      * the constructor
  318. -
  319.      *
  320. -
  321.      * @param Doctrine_Manager $manager                 the manager object
  322. -
  323.      * @param PDO|Doctrine_Adapter_Interface$adapter   database driver
  324. -
  325.      */
  326. -
  327.     public function __construct(Doctrine_Manager $manager$adapter$user null$pass null)
  328. -
  329.     {
  330. -
  331.         if (is_object($adapter)) {
  332. -
  333.             if ($adapter instanceof PDO&& in_array('Doctrine_Adapter_Interface'class_implements($adapter))) {
  334. -
  335.                 throw new Doctrine_Connection_Exception('First argument should be an instance of PDO or implement Doctrine_Adapter_Interface');
  336. -
  337.             }
  338. -
  339.             $this->dbh = $adapter;
  340. -
  341.  
  342. -
  343.             $this->isConnected = true;
  344. -
  345.  
  346. -
  347.         elseif(is_array($adapter)) {
  348. -
  349.             $this->pendingAttributes[Doctrine::ATTR_DRIVER_NAME$adapter['scheme'];
  350. -
  351.  
  352. -
  353.             $this->options['dsn']      $adapter['dsn'];
  354. -
  355.             $this->options['username'$adapter['user'];
  356. -
  357.             $this->options['password'$adapter['pass'];
  358. -
  359.         }
  360. -
  361.  
  362. -
  363.         $this->setParent($manager);
  364. -
  365.  
  366. -
  367.         $this->setAttribute(Doctrine::ATTR_CASEDoctrine::CASE_NATURAL);
  368. -
  369.         $this->setAttribute(Doctrine::ATTR_ERRMODEDoctrine::ERRMODE_EXCEPTION);
  370. -
  371.  
  372. -
  373.         $this->getAttribute(Doctrine::ATTR_LISTENER)->onOpen($this);
  374. -
  375.     }
  376. -
  377.     /**
  378. -
  379.      * getAttribute
  380. -
  381.      * retrieves a database connection attribute
  382. -
  383.      *
  384. -
  385.      * @param integer $attribute 
  386. -
  387.      * @return mixed 
  388. -
  389.      */
  390. -
  391.     public function getAttribute($attribute)
  392. -
  393.     {
  394. -
  395.  
  396. -
  397.         if ($attribute >= 100{
  398. -
  399.             if isset($this->attributes[$attribute])) {
  400. -
  401.                 return $this->parent->getAttribute($attribute);
  402. -
  403.             }
  404. -
  405.             return $this->attributes[$attribute];
  406. -
  407.         }
  408. -
  409.  
  410. -
  411.         if ($this->isConnected{
  412. -
  413.             try {
  414. -
  415.                 return $this->dbh->getAttribute($attribute);
  416. -
  417.             catch(Exception $e{
  418. -
  419.                 throw new Doctrine_Connection_Exception('Attribute ' $attribute ' not found.');
  420. -
  421.             }
  422. -
  423.         else {
  424. -
  425.             if isset($this->pendingAttributes[$attribute])) {
  426. -
  427.                 $this->connect();
  428. -
  429.                 $this->getAttribute($attribute);
  430. -
  431.             }
  432. -
  433.  
  434. -
  435.             return $this->pendingAttributes[$attribute];
  436. -
  437.         }
  438. -
  439.     }
  440. -
  441.     /**
  442. -
  443.      * returns an array of available PDO drivers
  444. -
  445.      */
  446. -
  447.     public static function getAvailableDrivers()
  448. -
  449.     {
  450. -
  451.         return PDO::getAvailableDrivers();
  452. -
  453.     }
  454. -
  455.     /**
  456. -
  457.      * setAttribute
  458. -
  459.      * sets an attribute
  460. -
  461.      *
  462. -
  463.      * @param integer $attribute 
  464. -
  465.      * @param mixed $value 
  466. -
  467.      * @return boolean 
  468. -
  469.      */
  470. -
  471.     public function setAttribute($attribute$value)
  472. -
  473.     {
  474. -
  475.         if ($attribute >= 100{
  476. -
  477.             parent::setAttribute($attribute$value);
  478. -
  479.         else {
  480. -
  481.             if ($this->isConnected{
  482. -
  483.                 $this->dbh->setAttribute($attribute$value);
  484. -
  485.             else {
  486. -
  487.                 $this->pendingAttributes[$attribute$value;
  488. -
  489.             }
  490. -
  491.         }
  492. -
  493.         return $this;
  494. -
  495.     }
  496. -
  497.     /**
  498. -
  499.      * getName
  500. -
  501.      * returns the name of this driver
  502. -
  503.      *
  504. -
  505.      * @return string           the name of this driver
  506. -
  507.      */
  508. -
  509.     public function getName()
  510. -
  511.     {
  512. -
  513.         return $this->driverName;
  514. -
  515.     }
  516. -
  517.     /**
  518. -
  519.      * __get
  520. -
  521.      * lazy loads given module and returns it
  522. -
  523.      *
  524. -
  525.      * @see Doctrine_DataDict
  526. -
  527.      * @see Doctrine_Expression
  528. -
  529.      * @see Doctrine_Export
  530. -
  531.      * @see Doctrine_Transaction
  532. -
  533.      * @see Doctrine_Connection::$modules       all availible modules
  534. -
  535.      * @param string $name                      the name of the module to get
  536. -
  537.      * @throws Doctrine_Connection_Exception    if trying to get an unknown module
  538. -
  539.      * @return Doctrine_Connection_Module       connection module
  540. -
  541.      */
  542. -
  543.     public function __get($name)
  544. -
  545.     {
  546. -
  547.         if (isset($this->properties[$name])) {
  548. -
  549.             return $this->properties[$name];
  550. -
  551.         }
  552. -
  553.  
  554. -
  555.         if isset($this->modules[$name])) {
  556. -
  557.             throw new Doctrine_Connection_Exception('Unknown module / property ' $name);
  558. -
  559.         }
  560. -
  561.         if ($this->modules[$name=== false{
  562. -
  563.             switch ($name{
  564. -
  565.                 case 'unitOfWork':
  566. -
  567.                     $this->modules[$namenew Doctrine_Connection_UnitOfWork($this);
  568. -
  569.                     break;
  570. -
  571.                 case 'formatter':
  572. -
  573.                     $this->modules[$namenew Doctrine_Formatter($this);
  574. -
  575.                     break;
  576. -
  577.                 default:
  578. -
  579.                     $class 'Doctrine_' ucwords($name'_' $this->getName();
  580. -
  581.                     $this->modules[$namenew $class($this);
  582. -
  583.                 }
  584. -
  585.         }
  586. -
  587.  
  588. -
  589.         return $this->modules[$name];
  590. -
  591.     }
  592. -
  593.     /**
  594. -
  595.      * returns the manager that created this connection
  596. -
  597.      *
  598. -
  599.      * @return Doctrine_Manager 
  600. -
  601.      */
  602. -
  603.     public function getManager()
  604. -
  605.     {
  606. -
  607.         return $this->getParent();
  608. -
  609.     }
  610. -
  611.     /**
  612. -
  613.      * returns the database handler of which this connection uses
  614. -
  615.      *
  616. -
  617.      * @return PDO              the database handler
  618. -
  619.      */
  620. -
  621.     public function getDbh()
  622. -
  623.     {
  624. -
  625.         $this->connect();
  626. -
  627.         
  628. -
  629.         return $this->dbh;
  630. -
  631.     }
  632. -
  633.     /**
  634. -
  635.      * connect
  636. -
  637.      * connects into database
  638. -
  639.      *
  640. -
  641.      * @return boolean 
  642. -
  643.      */
  644. -
  645.     public function connect()
  646. -
  647.     {
  648. -
  649.  
  650. -
  651.         if ($this->isConnected{
  652. -
  653.             return false;
  654. -
  655.         }
  656. -
  657.  
  658. -
  659.         $event new Doctrine_Event($thisDoctrine_Event::CONN_CONNECT);
  660. -
  661.  
  662. -
  663.         $this->getListener()->preConnect($event);
  664. -
  665.  
  666. -
  667.         $e     explode(':'$this->options['dsn']);
  668. -
  669.         $found false;
  670. -
  671.         
  672. -
  673.         if (extension_loaded('pdo')) {
  674. -
  675.             if (in_array($e[0]PDO::getAvailableDrivers())) {
  676. -
  677.                 $this->dbh = new PDO($this->options['dsn']$this->options['username']$this->options['password']);
  678. -
  679.                 $this->dbh->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  680. -
  681.                 $found true;
  682. -
  683.             }
  684. -
  685.         }
  686. -
  687.  
  688. -
  689.         if $found{
  690. -
  691.             $class 'Doctrine_Adapter_' ucwords($e[0]);
  692. -
  693.  
  694. -
  695.             if (class_exists($class)) {
  696. -
  697.                 $this->dbh = new $class($this->options['dsn']$this->options['username']$this->options['password']);
  698. -
  699.             else {
  700. -
  701.                 throw new Doctrine_Connection_Exception("Couldn't locate driver named " $e[0]);          
  702. -
  703.             }
  704. -
  705.         }
  706. -
  707.  
  708. -
  709.         // attach the pending attributes to adapter
  710. -
  711.         foreach($this->pendingAttributes as $attr => $value{
  712. -
  713.             // some drivers don't support setting this so we just skip it
  714. -
  715.             if($attr == Doctrine::ATTR_DRIVER_NAME{
  716. -
  717.                 continue;
  718. -
  719.             }
  720. -
  721.             $this->dbh->setAttribute($attr$value);
  722. -
  723.         }
  724. -
  725.  
  726. -
  727.         $this->isConnected = true;
  728. -
  729.  
  730. -
  731.         $this->getListener()->postConnect($event);
  732. -
  733.         return true;
  734. -
  735.     }
  736. -
  737.     
  738. -
  739.     public function incrementQueryCount(
  740. -
  741.     {
  742. -
  743.         $this->_count++;
  744. -
  745.     }
  746. -
  747.     /**
  748. -
  749.      * converts given driver name
  750. -
  751.      *
  752. -
  753.      * @param 
  754. -
  755.      */
  756. -
  757.     public function driverName($name)
  758. -
  759.     {
  760. -
  761.     }
  762. -
  763.     /**
  764. -
  765.      * supports
  766. -
  767.      *
  768. -
  769.      * @param string $feature   the name of the feature
  770. -
  771.      * @return boolean          whether or not this drivers supports given feature
  772. -
  773.      */
  774. -
  775.     public function supports($feature)
  776. -
  777.     {
  778. -
  779.         return (isset($this->supported[$feature])
  780. -
  781.                   && ($this->supported[$feature=== 'emulated'
  782. -
  783.                    || $this->supported[$feature]));
  784. -
  785.     }
  786. -
  787.     /**
  788. -
  789.      * Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
  790. -
  791.      * query, except that if there is already a row in the table with the same
  792. -
  793.      * key field values, the REPLACE query just updates its values instead of
  794. -
  795.      * inserting a new row.
  796. -
  797.      *
  798. -
  799.      * The REPLACE type of query does not make part of the SQL standards. Since
  800. -
  801.      * practically only MySQL and SQLIte implement it natively, this type of
  802. -
  803.      * query isemulated through this method for other DBMS using standard types
  804. -
  805.      * of queries inside a transaction to assure the atomicity of the operation.
  806. -
  807.      *
  808. -
  809.      * @param                   string  name of the table on which the REPLACE query will
  810. -
  811.      *                           be executed.
  812. -
  813.      *
  814. -
  815.      * @param   array           an associative array that describes the fields and the
  816. -
  817.      *                           values that will be inserted or updated in the specified table. The
  818. -
  819.      *                           indexes of the array are the names of all the fields of the table.
  820. -
  821.      *
  822. -
  823.      *                           The values of the array are values to be assigned to the specified field.
  824. -
  825.      *
  826. -
  827.      * @param array $keys       an array containing all key fields (primary key fields
  828. -
  829.      *                           or unique index fields) for this table
  830. -
  831.      *
  832. -
  833.      *                           the uniqueness of a row will be determined according to
  834. -
  835.      *                           the provided key fields
  836. -
  837.      *
  838. -
  839.      *                           this method will fail if no key fields are specified
  840. -
  841.      *
  842. -
  843.      * @throws Doctrine_Connection_Exception        if this driver doesn't support replace
  844. -
  845.      * @throws Doctrine_Connection_Exception        if some of the key values was null
  846. -
  847.      * @throws Doctrine_Connection_Exception        if there were no key fields
  848. -
  849.      * @throws PDOException                         if something fails at PDO level
  850. -
  851.      * @return integer                              number of rows affected
  852. -
  853.      */
  854. -
  855.     public function replace($tablearray $fieldsarray $keys)
  856. -
  857.     {
  858. -
  859.         //if ( ! $this->supports('replace'))
  860. -
  861.         //    throw new Doctrine_Connection_Exception('replace query is not supported');
  862. -
  863.  
  864. -
  865.         if (empty($keys)) {
  866. -
  867.             throw new Doctrine_Connection_Exception('Not specified which fields are keys');
  868. -
  869.         }
  870. -
  871.         $condition $values array();
  872. -
  873.  
  874. -
  875.         foreach ($fields as $name => $value{
  876. -
  877.             $values[$name$value;
  878. -
  879.  
  880. -
  881.             if (in_array($name$keys)) {
  882. -
  883.                 if ($value === null)
  884. -
  885.                     throw new Doctrine_Connection_Exception('key value '.$name.' may not be null');
  886. -
  887.  
  888. -
  889.                 $condition[]       $name ' = ?';
  890. -
  891.                 $conditionValues[$value;
  892. -
  893.             }
  894. -
  895.         }
  896. -
  897.  
  898. -
  899.         $query          'DELETE FROM ' $this->quoteIdentifier($table' WHERE ' implode(' AND '$condition);
  900. -
  901.         $affectedRows   $this->exec($query);
  902. -
  903.  
  904. -
  905.         $this->insert($table$values);
  906. -
  907.  
  908. -
  909.         $affectedRows++;
  910. -
  911.  
  912. -
  913.  
  914. -
  915.         return $affectedRows;
  916. -
  917.     }
  918. -
  919.     /**
  920. -
  921.      * Inserts a table row with specified data.
  922. -
  923.      *
  924. -
  925.      * @param string $table     The table to insert data into.
  926. -
  927.      * @param array $values     An associateve array containing column-value pairs.
  928. -
  929.      * @return boolean 
  930. -
  931.      */
  932. -
  933.     public function insert($tablearray $values array()) {
  934. -
  935.         if (empty($values)) {
  936. -
  937.             return false;
  938. -
  939.         }
  940. -
  941.  
  942. -
  943.         // column names are specified as array keys
  944. -
  945.         $cols array();
  946. -
  947.         // the query VALUES will contain either expresions (eg 'NOW()') or ?
  948. -
  949.         $a array();
  950. -
  951.         foreach ($values as $k => $value{
  952. -
  953.             $cols[$this->quoteIdentifier($k);
  954. -
  955.             if ($value instanceof Doctrine_Expression{
  956. -
  957.                 $a[$value->getSql();
  958. -
  959.                 unset($values[$k]);
  960. -
  961.             else {
  962. -
  963.                 $a['?';
  964. -
  965.             }
  966. -
  967.         }
  968. -
  969.  
  970. -
  971.         // build the statement
  972. -
  973.         $query 'INSERT INTO ' $this->quoteIdentifier($table
  974. -
  975.                . ' (' implode(', '$cols') '
  976. -
  977.                . 'VALUES (';
  978. -
  979.  
  980. -
  981.         $query .= implode(', '$a')';
  982. -
  983.         // prepare and execute the statement
  984. -
  985.  
  986. -
  987.         $this->exec($queryarray_values($values));
  988. -
  989.  
  990. -
  991.         return true;
  992. -
  993.     }
  994. -
  995.     /**
  996. -
  997.      * Set the charset on the current connection
  998. -
  999.      *
  1000. -
  1001.      * @param string    charset
  1002. -
  1003.      *
  1004. -
  1005.      * @return void 
  1006. -
  1007.      */
  1008. -
  1009.     public function setCharset($charset)
  1010. -
  1011.     {
  1012. -
  1013.  
  1014. -
  1015.     }
  1016. -
  1017.     /**
  1018. -
  1019.      * Quote a string so it can be safely used as a table or column name
  1020. -
  1021.      *
  1022. -
  1023.      * Delimiting style depends on which database driver is being used.
  1024. -
  1025.      *
  1026. -
  1027.      * NOTE: just because you CAN use delimited identifiers doesn't mean
  1028. -
  1029.      * you SHOULD use them.  In general, they end up causing way more
  1030. -
  1031.      * problems than they solve.
  1032. -
  1033.      *
  1034. -
  1035.      * Portability is broken by using the following characters inside
  1036. -
  1037.      * delimited identifiers:
  1038. -
  1039.      *   + backtick (<kbd>`</kbd>) -- due to MySQL
  1040. -
  1041.      *   + double quote (<kbd>"</kbd>) -- due to Oracle
  1042. -
  1043.      *   + brackets (<kbd>[</kbd> or <kbd>]</kbd>) -- due to Access
  1044. -
  1045.      *
  1046. -
  1047.      * Delimited identifiers are known to generally work correctly under
  1048. -
  1049.      * the following drivers:
  1050. -
  1051.      *   + mssql
  1052. -
  1053.      *   + mysql
  1054. -
  1055.      *   + mysqli
  1056. -
  1057.      *   + oci8
  1058. -
  1059.      *   + pgsql
  1060. -
  1061.      *   + sqlite
  1062. -
  1063.      *
  1064. -
  1065.      * InterBase doesn't seem to be able to use delimited identifiers
  1066. -
  1067.      * via PHP 4.  They work fine under PHP 5.
  1068. -
  1069.      *
  1070. -
  1071.      * @param string $str           identifier name to be quoted
  1072. -
  1073.      * @param bool $checkOption     check the 'quote_identifier' option
  1074. -
  1075.      *
  1076. -
  1077.      * @return string               quoted identifier string
  1078. -
  1079.      */
  1080. -
  1081.     public function quoteIdentifier($str$checkOption true)
  1082. -
  1083.     {
  1084. -
  1085.         // quick fix for the identifiers that contain a dot
  1086. -
  1087.         if (strpos($str'.')) {
  1088. -
  1089.             $e explode('.'$str);
  1090. -
  1091.             
  1092. -
  1093.             return $this->formatter->quoteIdentifier($e[0]$checkOption'.' 
  1094. -
  1095.                  . $this->formatter->quoteIdentifier($e[1]$checkOption);
  1096. -
  1097.         }
  1098. -
  1099.         return $this->formatter->quoteIdentifier($str$checkOption);
  1100. -
  1101.     }
  1102. -
  1103.     /**
  1104. -
  1105.      * convertBooleans
  1106. -
  1107.      * some drivers need the boolean values to be converted into integers
  1108. -
  1109.      * when using DQL API
  1110. -
  1111.      *
  1112. -
  1113.      * This method takes care of that conversion
  1114. -
  1115.      *
  1116. -
  1117.      * @param array $item 
  1118. -
  1119.      * @return void 
  1120. -
  1121.      */
  1122. -
  1123.     public function convertBooleans($item)
  1124. -
  1125.     {
  1126. -
  1127.         return $this->formatter->convertBooleans($item);
  1128. -
  1129.     }
  1130. -
  1131.     /**
  1132. -
  1133.      * quote
  1134. -
  1135.      * quotes given input parameter
  1136. -
  1137.      *
  1138. -
  1139.      * @param mixed $input      parameter to be quoted
  1140. -
  1141.      * @param string $type 
  1142. -
  1143.      * @return mixed 
  1144. -
  1145.      */
  1146. -
  1147.     public function quote($input$type null)
  1148. -
  1149.     {
  1150. -
  1151.         return $this->formatter->quote($input$type);
  1152. -
  1153.     }
  1154. -
  1155.     /**
  1156. -
  1157.      * Set the date/time format for the current connection
  1158. -
  1159.      *
  1160. -
  1161.      * @param string    time format
  1162. -
  1163.      *
  1164. -
  1165.      * @return void 
  1166. -
  1167.      */
  1168. -
  1169.     public function setDateFormat($format null)
  1170. -
  1171.     {
  1172. -
  1173.     }
  1174. -
  1175.     /**
  1176. -
  1177.      * fetchAll
  1178. -
  1179.      *
  1180. -
  1181.      * @param string $statement         sql query to be executed
  1182. -
  1183.      * @param array $params             prepared statement params
  1184. -
  1185.      * @return array 
  1186. -
  1187.      */
  1188. -
  1189.     public function fetchAll($statementarray $params array()) 
  1190. -
  1191.     {
  1192. -
  1193.         return $this->execute($statement$params)->fetchAll(Doctrine::FETCH_ASSOC);
  1194. -
  1195.     }
  1196. -
  1197.     /**
  1198. -
  1199.      * fetchOne
  1200. -
  1201.      *
  1202. -
  1203.      * @param string $statement         sql query to be executed
  1204. -
  1205.      * @param array $params             prepared statement params
  1206. -
  1207.      * @param int $colnum               0-indexed column number to retrieve
  1208. -
  1209.      * @return mixed 
  1210. -
  1211.      */
  1212. -
  1213.     public function fetchOne($statementarray $params array()$colnum 0
  1214. -
  1215.     {
  1216. -
  1217.         return $this->execute($statement$params)->fetchColumn($colnum);
  1218. -
  1219.     }
  1220. -
  1221.     /**
  1222. -
  1223.      * fetchRow
  1224. -
  1225.      *
  1226. -
  1227.      * @param string $statement         sql query to be executed
  1228. -
  1229.      * @param array $params             prepared statement params
  1230. -
  1231.      * @return array 
  1232. -
  1233.      */
  1234. -
  1235.     public function fetchRow($statementarray $params array()) 
  1236. -
  1237.     {
  1238. -
  1239.         return $this->execute($statement$params)->fetch(Doctrine::FETCH_ASSOC);
  1240. -
  1241.     }
  1242. -
  1243.     /**
  1244. -
  1245.      * fetchArray
  1246. -
  1247.      *
  1248. -
  1249.      * @param string $statement         sql query to be executed
  1250. -
  1251.      * @param array $params             prepared statement params
  1252. -
  1253.      * @return array 
  1254. -
  1255.      */
  1256. -
  1257.     public function fetchArray($statementarray $params array()) 
  1258. -
  1259.     {
  1260. -
  1261.         return $this->execute($statement$params)->fetch(Doctrine::FETCH_NUM);
  1262. -
  1263.     }
  1264. -
  1265.     /**
  1266. -
  1267.      * fetchColumn
  1268. -
  1269.      *
  1270. -
  1271.      * @param string $statement         sql query to be executed
  1272. -
  1273.      * @param array $params             prepared statement params
  1274. -
  1275.      * @param int $colnum               0-indexed column number to retrieve
  1276. -
  1277.      * @return array 
  1278. -
  1279.      */
  1280. -
  1281.     public function fetchColumn($statementarray $params array()$colnum 0
  1282. -
  1283.     {
  1284. -
  1285.         return $this->execute($statement$params)->fetchAll(Doctrine::FETCH_COLUMN$colnum);
  1286. -
  1287.     }
  1288. -
  1289.     /**
  1290. -
  1291.      * fetchAssoc
  1292. -
  1293.      *
  1294. -
  1295.      * @param string $statement         sql query to be executed
  1296. -
  1297.      * @param array $params             prepared statement params
  1298. -
  1299.      * @return array 
  1300. -
  1301.      */
  1302. -
  1303.     public function fetchAssoc($statementarray $params array()) 
  1304. -
  1305.     {
  1306. -
  1307.         return $this->execute($statement$params)->fetchAll(Doctrine::FETCH_ASSOC);
  1308. -
  1309.     }
  1310. -
  1311.     /**
  1312. -
  1313.      * fetchBoth
  1314. -
  1315.      *
  1316. -
  1317.      * @param string $statement         sql query to be executed
  1318. -
  1319.      * @param array $params             prepared statement params
  1320. -
  1321.      * @return array 
  1322. -
  1323.      */
  1324. -
  1325.     public function fetchBoth($statementarray $params array()) 
  1326. -
  1327.     {
  1328. -
  1329.         return $this->execute($statement$params)->fetchAll(Doctrine::FETCH_BOTH);
  1330. -
  1331.     }
  1332. -
  1333.     /**
  1334. -
  1335.      * query
  1336. -
  1337.      * queries the database using Doctrine Query Language
  1338. -
  1339.      * returns a collection of Doctrine_Record objects
  1340. -
  1341.      *
  1342. -
  1343.      * <code>
  1344. -
  1345.      * $users = $conn->query('SELECT u.* FROM User u');
  1346. -
  1347.      *
  1348. -
  1349.      * $users = $conn->query('SELECT u.* FROM User u WHERE u.name LIKE ?', array('someone'));
  1350. -
  1351.      * </code>
  1352. -
  1353.      *
  1354. -
  1355.      * @param string $query             DQL query
  1356. -
  1357.      * @param array $params             query parameters
  1358. -
  1359.      * @see Doctrine_Query
  1360. -
  1361.      * @return Doctrine_Collection      Collection of Doctrine_Record objects
  1362. -
  1363.      */
  1364. -
  1365.     public function query($queryarray $params array()) 
  1366. -
  1367.     {
  1368. -
  1369.         $parser new Doctrine_Query($this);
  1370. -
  1371.  
  1372. -
  1373.         return $parser->query($query$params);
  1374. -
  1375.     }
  1376. -
  1377.     /**
  1378. -
  1379.      * prepare
  1380. -
  1381.      *
  1382. -
  1383.      * @param string $statement 
  1384. -
  1385.      */
  1386. -
  1387.     public function prepare($statement)
  1388. -
  1389.     {
  1390. -
  1391.         $this->connect();
  1392. -
  1393.  
  1394. -
  1395.         try {
  1396. -
  1397.             $event new Doctrine_Event($thisDoctrine_Event::CONN_PREPARE$statement);
  1398. -
  1399.     
  1400. -
  1401.             $this->getAttribute(Doctrine::ATTR_LISTENER)->prePrepare($event);
  1402. -
  1403.  
  1404. -
  1405.             $stmt false;
  1406. -
  1407.     
  1408. -
  1409.             if $event->skipOperation{
  1410. -
  1411.                 $stmt $this->dbh->prepare($statement);
  1412. -
  1413.             }
  1414. -
  1415.     
  1416. -
  1417.             $this->getAttribute(Doctrine::ATTR_LISTENER)->postPrepare($event);
  1418. -
  1419.             
  1420. -
  1421.             return new Doctrine_Connection_Statement($this$stmt);
  1422. -
  1423.         catch(Doctrine_Adapter_Exception $e{
  1424. -
  1425.         catch(PDOException $e}
  1426. -
  1427.  
  1428. -
  1429.         $this->rethrowException($e$this);
  1430. -
  1431.     }
  1432. -
  1433.     /**
  1434. -
  1435.      * query
  1436. -
  1437.      * queries the database using Doctrine Query Language and returns
  1438. -
  1439.      * the first record found
  1440. -
  1441.      *
  1442. -
  1443.      * <code>
  1444. -
  1445.      * $user = $conn->queryOne('SELECT u.* FROM User u WHERE u.id = ?', array(1));
  1446. -
  1447.      *
  1448. -
  1449.      * $user = $conn->queryOne('SELECT u.* FROM User u WHERE u.name LIKE ? AND u.password = ?',
  1450. -
  1451.      *         array('someone', 'password')
  1452. -
  1453.      *         );
  1454. -
  1455.      * </code>
  1456. -
  1457.      *
  1458. -
  1459.      * @param string $query             DQL query
  1460. -
  1461.      * @param array $params             query parameters
  1462. -
  1463.      * @see Doctrine_Query
  1464. -
  1465.      * @return Doctrine_Record|false   Doctrine_Record object on success,
  1466. -
  1467.      *                                   boolean false on failure
  1468. -
  1469.      */
  1470. -
  1471.     public function queryOne($queryarray $params array()) 
  1472. -
  1473.     {
  1474. -
  1475.         $parser new Doctrine_Query($this);
  1476. -
  1477.  
  1478. -
  1479.         $coll $parser->query($query$params);
  1480. -
  1481.         if $coll->contains(0)) {
  1482. -
  1483.             return false;
  1484. -
  1485.         }
  1486. -
  1487.         return $coll[0];
  1488. -
  1489.     }
  1490. -
  1491.     /**
  1492. -
  1493.      * queries the database with limit and offset
  1494. -
  1495.      * added to the query and returns a PDOStatement object
  1496. -
  1497.      *
  1498. -
  1499.      * @param string $query 
  1500. -
  1501.      * @param integer $limit 
  1502. -
  1503.      * @param integer $offset 
  1504. -
  1505.      * @return PDOStatement 
  1506. -
  1507.      */
  1508. -
  1509.     public function select($query$limit 0$offset 0)
  1510. -
  1511.     {
  1512. -
  1513.         if ($limit || $offset 0{
  1514. -
  1515.             $query $this->modifyLimitQuery($query$limit$offset);
  1516. -
  1517.         }
  1518. -
  1519.         return $this->dbh->query($query);
  1520. -
  1521.     }
  1522. -
  1523.     /**
  1524. -
  1525.      * standaloneQuery
  1526. -
  1527.      *
  1528. -
  1529.      * @param string $query     sql query
  1530. -
  1531.      * @param array $params     query parameters
  1532. -
  1533.      *
  1534. -
  1535.      * @return PDOStatement|Doctrine_Adapter_Statement
  1536. -
  1537.      */
  1538. -
  1539.     public function standaloneQuery($query$params array())
  1540. -
  1541.     {
  1542. -
  1543.         return $this->execute($query$params);
  1544. -
  1545.     }
  1546. -
  1547.     /**
  1548. -
  1549.      * execute
  1550. -
  1551.      * @param string $query     sql query
  1552. -
  1553.      * @param array $params     query parameters
  1554. -
  1555.      *
  1556. -
  1557.      * @return PDOStatement|Doctrine_Adapter_Statement
  1558. -
  1559.      */
  1560. -
  1561.     public function execute($queryarray $params array())
  1562. -
  1563.     {
  1564. -
  1565.         $this->connect();
  1566. -
  1567.  
  1568. -
  1569.         try {
  1570. -
  1571.             if empty($params)) {
  1572. -
  1573.                 $stmt $this->prepare($query);
  1574. -
  1575.                 $stmt->execute($params);
  1576. -
  1577.                 return $stmt;
  1578. -
  1579.             else {
  1580. -
  1581.                 $event new Doctrine_Event($thisDoctrine_Event::CONN_QUERY$query$params);
  1582. -
  1583.  
  1584. -
  1585.                 $this->getAttribute(Doctrine::ATTR_LISTENER)->preQuery($event);
  1586. -
  1587.  
  1588. -
  1589.                 if $event->skipOperation{
  1590. -
  1591.                     $stmt $this->dbh->query($query);
  1592. -
  1593.  
  1594. -
  1595.                     $this->_count++;
  1596. -
  1597.                 }
  1598. -
  1599.                 $this->getAttribute(Doctrine::ATTR_LISTENER)->postQuery($event);
  1600. -
  1601.  
  1602. -
  1603.                 return $stmt;
  1604. -
  1605.             }
  1606. -
  1607.         catch(Doctrine_Adapter_Exception $e{
  1608. -
  1609.         catch(PDOException $e}
  1610. -
  1611.  
  1612. -
  1613.         $this->rethrowException($e$this);
  1614. -
  1615.     }
  1616. -
  1617.     /**
  1618. -
  1619.      * exec
  1620. -
  1621.      * @param string $query     sql query
  1622. -
  1623.      * @param array $params     query parameters
  1624. -
  1625.      *
  1626. -
  1627.      * @return PDOStatement|Doctrine_Adapter_Statement
  1628. -
  1629.      */
  1630. -
  1631.     public function exec($queryarray $params array()) {
  1632. -
  1633.         $this->connect();
  1634. -
  1635.  
  1636. -
  1637.         try {
  1638. -
  1639.             if empty($params)) {
  1640. -
  1641.                 $stmt $this->prepare($query);
  1642. -
  1643.                 $stmt->execute($params);
  1644. -
  1645.  
  1646. -
  1647.                 return $stmt->rowCount();
  1648. -
  1649.             else {
  1650. -
  1651.                 $event new Doctrine_Event($thisDoctrine_Event::CONN_EXEC$query$params);
  1652. -
  1653.  
  1654. -
  1655.                 $this->getAttribute(Doctrine::ATTR_LISTENER)->preExec($event);
  1656. -
  1657.  
  1658. -
  1659.                 if $event->skipOperation{
  1660. -
  1661.                     $count $this->dbh->exec($query);
  1662. -
  1663.  
  1664. -
  1665.                     $this->_count++;
  1666. -
  1667.                 }
  1668. -
  1669.                 $this->getAttribute(Doctrine::ATTR_LISTENER)->postExec($event);
  1670. -
  1671.  
  1672. -
  1673.                 return $count;
  1674. -
  1675.             }
  1676. -
  1677.         catch(Doctrine_Adapter_Exception $e{
  1678. -
  1679.         catch(PDOException $e}
  1680. -
  1681.  
  1682. -
  1683.         $this->rethrowException($e$this);
  1684. -
  1685.     }
  1686. -
  1687.     /**
  1688. -
  1689.      * rethrowException
  1690. -
  1691.      *
  1692. -
  1693.      * @throws Doctrine_Connection_Exception
  1694. -
  1695.      */
  1696. -
  1697.     public function rethrowException(Exception $e$invoker)
  1698. -
  1699.     {
  1700. -
  1701.         $event new Doctrine_Event($thisDoctrine_Event::CONN_ERROR);
  1702. -
  1703.  
  1704. -
  1705.         $this->getListener()->preError($event);
  1706. -
  1707.  
  1708. -
  1709.         $name 'Doctrine_Connection_' $this->driverName . '_Exception';
  1710. -
  1711.  
  1712. -
  1713.         $exc  new $name($e->getMessage()(int) $e->getCode());
  1714. -
  1715.         if is_array($e->errorInfo)) {
  1716. -
  1717.             $e->errorInfo = array(nullnullnullnull);
  1718. -
  1719.         }
  1720. -
  1721.         $exc->processErrorInfo($e->errorInfo);
  1722. -
  1723.  
  1724. -
  1725.          if ($this->getAttribute(Doctrine::ATTR_THROW_EXCEPTIONS)) {
  1726. -
  1727.             throw $exc;
  1728. -
  1729.         }
  1730. -
  1731.         
  1732. -
  1733.         $this->getListener()->postError($event);
  1734. -
  1735.     }
  1736. -
  1737.     /**
  1738. -
  1739.      * hasTable
  1740. -
  1741.      * whether or not this connection has table $name initialized
  1742. -
  1743.      *
  1744. -
  1745.      * @param mixed $name 
  1746. -
  1747.      * @return boolean 
  1748. -
  1749.      */
  1750. -
  1751.     public function hasTable($name)
  1752. -
  1753.     {
  1754. -
  1755.         return isset($this->tables[$name]);
  1756. -
  1757.     }
  1758. -
  1759.     /**
  1760. -
  1761.      * returns a table object for given component name
  1762. -
  1763.      *
  1764. -
  1765.      * @param string $name              component name
  1766. -
  1767.      * @return object Doctrine_Table 
  1768. -
  1769.      */
  1770. -
  1771.     public function getTable($name$allowExport true)
  1772. -
  1773.     {
  1774. -
  1775.         if (isset($this->tables[$name])) {
  1776. -
  1777.             return $this->tables[$name];
  1778. -
  1779.         }
  1780. -
  1781.         $class $name 'Table';
  1782. -
  1783.  
  1784. -
  1785.         if (class_exists($class&& in_array('Doctrine_Table'class_parents($class))) {
  1786. -
  1787.             $table new $class($name$this);
  1788. -
  1789.         else {
  1790. -
  1791.             $table new Doctrine_Table($name$this);
  1792. -
  1793.         }
  1794. -
  1795.  
  1796. -
  1797.         $this->tables[$name$table;
  1798. -
  1799.  
  1800. -
  1801.  
  1802. -
  1803.         return $table;
  1804. -
  1805.     }
  1806. -
  1807.     /**
  1808. -
  1809.      * returns an array of all initialized tables
  1810. -
  1811.      *
  1812. -
  1813.      * @return array 
  1814. -
  1815.      */
  1816. -
  1817.     public function getTables()
  1818. -
  1819.     {
  1820. -
  1821.         return $this->tables;
  1822. -
  1823.     }
  1824. -
  1825.     /**
  1826. -
  1827.      * returns an iterator that iterators through all
  1828. -
  1829.      * initialized table objects
  1830. -
  1831.      *
  1832. -
  1833.      * <code>
  1834. -
  1835.      * foreach ($conn as $index => $table) {
  1836. -
  1837.      *      print $table;  // get a string representation of each table object
  1838. -
  1839.      * }
  1840. -
  1841.      * </code>
  1842. -
  1843.      *
  1844. -
  1845.      * @return ArrayIterator        SPL ArrayIterator object
  1846. -
  1847.      */
  1848. -
  1849.     public function getIterator()
  1850. -
  1851.     {
  1852. -
  1853.         return new ArrayIterator($this->tables);
  1854. -
  1855.     }
  1856. -
  1857.     /**
  1858. -
  1859.      * returns the count of initialized table objects
  1860. -
  1861.      *
  1862. -
  1863.      * @return integer 
  1864. -
  1865.      */
  1866. -
  1867.     public function count()
  1868. -
  1869.     {
  1870. -
  1871.         return $this->_count;
  1872. -
  1873.     }
  1874. -
  1875.     /**
  1876. -
  1877.      * addTable
  1878. -
  1879.      * adds a Doctrine_Table object into connection registry
  1880. -
  1881.      *
  1882. -
  1883.      * @param $table                a Doctrine_Table object to be added into registry
  1884. -
  1885.      * @return boolean 
  1886. -
  1887.      */
  1888. -
  1889.     public function addTable(Doctrine_Table $table)
  1890. -
  1891.     {
  1892. -
  1893.         $name $table->getComponentName();
  1894. -
  1895.  
  1896. -
  1897.         if (isset($this->tables[$name])) {
  1898. -
  1899.             return false;
  1900. -
  1901.         }
  1902. -
  1903.         $this->tables[$name$table;
  1904. -
  1905.         return true;
  1906. -
  1907.     }
  1908. -
  1909.     /**
  1910. -
  1911.      * create
  1912. -
  1913.      * creates a record
  1914. -
  1915.      *
  1916. -
  1917.      * create                       creates a record
  1918. -
  1919.      * @param string $name          component name
  1920. -
  1921.      * @return Doctrine_Record      Doctrine_Record object
  1922. -
  1923.      */
  1924. -
  1925.     public function create($name)
  1926. -
  1927.     {
  1928. -
  1929.         return $this->getTable($name)->create();
  1930. -
  1931.     }
  1932. -
  1933.     /**
  1934. -
  1935.      * flush
  1936. -
  1937.      * saves all the records from all tables
  1938. -
  1939.      * this operation is isolated using a transaction
  1940. -
  1941.      *
  1942. -
  1943.      * @throws PDOException         if something went wrong at database level
  1944. -
  1945.      * @return void 
  1946. -
  1947.      */
  1948. -
  1949.     public function flush()
  1950. -
  1951.     {
  1952. -
  1953.         $this->beginTransaction();
  1954. -
  1955.         $this->unitOfWork->saveAll();
  1956. -
  1957.         $this->commit();
  1958. -
  1959.     }
  1960. -
  1961.     /**
  1962. -
  1963.      * clear
  1964. -
  1965.      * clears all repositories
  1966. -
  1967.      *
  1968. -
  1969.      * @return void 
  1970. -
  1971.      */
  1972. -
  1973.     public function clear()
  1974. -
  1975.     {
  1976. -
  1977.         foreach ($this->tables as $k => $table{
  1978. -
  1979.             $table->getRepository()->evictAll();
  1980. -
  1981.             $table->clear();
  1982. -
  1983.         }
  1984. -
  1985.     }
  1986. -
  1987.     /**
  1988. -
  1989.      * evictTables
  1990. -
  1991.      * evicts all tables
  1992. -
  1993.      *
  1994. -
  1995.      * @return void 
  1996. -
  1997.      */
  1998. -
  1999.     public function evictTables()
  2000. -
  2001.     {
  2002. -
  2003.         $this->tables array();
  2004. -
  2005.         $this->exported array();
  2006. -
  2007.     }
  2008. -
  2009.     /**
  2010. -
  2011.      * close
  2012. -
  2013.      * closes the connection
  2014. -
  2015.      *
  2016. -
  2017.      * @return void 
  2018. -
  2019.      */
  2020. -
  2021.     public function close()
  2022. -
  2023.     {
  2024. -
  2025.         $event new Doctrine_Event($thisDoctrine_Event::CONN_CLOSE);
  2026. -
  2027.  
  2028. -
  2029.         $this->getAttribute(Doctrine::ATTR_LISTENER)->preClose($event);
  2030. -
  2031.  
  2032. -
  2033.         $this->clear();
  2034. -
  2035.         
  2036. -
  2037.         unset($this->dbh);
  2038. -
  2039.         $this->isConnected false;
  2040. -
  2041.  
  2042. -
  2043.         $this->getAttribute(Doctrine::ATTR_LISTENER)->postClose($event);
  2044. -
  2045.     }
  2046. -
  2047.     /**
  2048. -
  2049.      * get the current transaction nesting level
  2050. -
  2051.      *
  2052. -
  2053.      * @return integer 
  2054. -
  2055.      */
  2056. -
  2057.     public function getTransactionLevel()
  2058. -
  2059.     {
  2060. -
  2061.         return $this->transaction->getTransactionLevel();
  2062. -
  2063.     }
  2064. -
  2065.     /**
  2066. -
  2067.      * errorCode
  2068. -
  2069.      * Fetch the SQLSTATE associated with the last operation on the database handle
  2070. -
  2071.      *
  2072. -
  2073.      * @return integer 
  2074. -
  2075.      */
  2076. -
  2077.     public function errorCode()
  2078. -
  2079.     {
  2080. -
  2081.         $this->connect();
  2082. -
  2083.  
  2084. -
  2085.         return $this->dbh->errorCode();
  2086. -
  2087.     }
  2088. -
  2089.     /**
  2090. -
  2091.      * errorInfo
  2092. -
  2093.      * Fetch extended error information associated with the last operation on the database handle
  2094. -
  2095.      *
  2096. -
  2097.      * @return array 
  2098. -
  2099.      */
  2100. -
  2101.     public function errorInfo()
  2102. -
  2103.     {
  2104. -
  2105.         $this->connect();
  2106. -
  2107.  
  2108. -
  2109.         return $this->dbh->errorInfo();
  2110. -
  2111.     }
  2112. -
  2113.     /**
  2114. -
  2115.      * lastInsertId
  2116. -
  2117.      *
  2118. -
  2119.      * Returns the ID of the last inserted row, or the last value from a sequence object,
  2120. -
  2121.      * depending on the underlying driver.
  2122. -
  2123.      *
  2124. -
  2125.      * Note: This method may not return a meaningful or consistent result across different drivers,
  2126. -
  2127.      * because the underlying database may not even support the notion of auto-increment fields or sequences.
  2128. -
  2129.      *
  2130. -
  2131.      * @param string $table     name of the table into which a new row was inserted
  2132. -
  2133.      * @param string $field     name of the field into which a new row was inserted
  2134. -
  2135.      */
  2136. -
  2137.     public function lastInsertId($table null$field null)
  2138. -
  2139.     {
  2140. -
  2141.         return $this->sequence->lastInsertId($table$field);
  2142. -
  2143.     }
  2144. -
  2145.     /**
  2146. -
  2147.      * beginTransaction
  2148. -
  2149.      * Start a transaction or set a savepoint.
  2150. -
  2151.      *
  2152. -
  2153.      * if trying to set a savepoint and there is no active transaction
  2154. -
  2155.      * a new transaction is being started
  2156. -
  2157.      *
  2158. -
  2159.      * Listeners: onPreTransactionBegin, onTransactionBegin
  2160. -
  2161.      *
  2162. -
  2163.      * @param string $savepoint                 name of a savepoint to set
  2164. -
  2165.      * @throws Doctrine_Transaction_Exception   if the transaction fails at database level
  2166. -
  2167.      * @return integer                          current transaction nesting level
  2168. -
  2169.      */
  2170. -
  2171.     public function beginTransaction($savepoint null)
  2172. -
  2173.     {
  2174. -
  2175.         $this->transaction->beginTransaction($savepoint);
  2176. -
  2177.     }
  2178. -
  2179.     /**
  2180. -
  2181.      * commit
  2182. -
  2183.      * Commit the database changes done during a transaction that is in
  2184. -
  2185.      * progress or release a savepoint. This function may only be called when
  2186. -
  2187.      * auto-committing is disabled, otherwise it will fail.
  2188. -
  2189.      *
  2190. -
  2191.      * Listeners: onPreTransactionCommit, onTransactionCommit
  2192. -
  2193.      *
  2194. -
  2195.      * @param string $savepoint                 name of a savepoint to release
  2196. -
  2197.      * @throws Doctrine_Transaction_Exception   if the transaction fails at PDO level
  2198. -
  2199.      * @throws Doctrine_Validator_Exception     if the transaction fails due to record validations
  2200. -
  2201.      * @return boolean                          false if commit couldn't be performed, true otherwise
  2202. -
  2203.      */
  2204. -
  2205.     public function commit($savepoint null)
  2206. -
  2207.     {
  2208. -
  2209.         $this->transaction->commit($savepoint);
  2210. -
  2211.     }
  2212. -
  2213.     /**
  2214. -
  2215.      * rollback
  2216. -
  2217.      * Cancel any database changes done during a transaction or since a specific
  2218. -
  2219.      * savepoint that is in progress. This function may only be called when
  2220. -
  2221.      * auto-committing is disabled, otherwise it will fail. Therefore, a new
  2222. -
  2223.      * transaction is implicitly started after canceling the pending changes.
  2224. -
  2225.      *
  2226. -
  2227.      * this method can be listened with onPreTransactionRollback and onTransactionRollback
  2228. -
  2229.      * eventlistener methods
  2230. -
  2231.      *
  2232. -
  2233.      * @param string $savepoint                 name of a savepoint to rollback to
  2234. -
  2235.      * @throws Doctrine_Transaction_Exception   if the rollback operation fails at database level
  2236. -
  2237.      * @return boolean                          false if rollback couldn't be performed, true otherwise
  2238. -
  2239.      */
  2240. -
  2241.     public function rollback($savepoint null)
  2242. -
  2243.     {
  2244. -
  2245.         $this->transaction->rollback($savepoint);
  2246. -
  2247.     }
  2248. -
  2249.  
  2250. -
  2251.     /**
  2252. -
  2253.      * returns a string representation of this object
  2254. -
  2255.      * @return string 
  2256. -
  2257.      */
  2258. -
  2259.     public function __toString()
  2260. -
  2261.     {
  2262. -
  2263.         return Doctrine_Lib::getConnectionAsString($this);
  2264. -
  2265.     }
  2266. -
  2267. }
  2268. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionCommon.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionCommon.php.html deleted file mode 100644 index a2f5d06aa..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionCommon.php.html +++ /dev/null @@ -1,65 +0,0 @@ - -
-

Source for file Common.php

-

Documentation is available at Common.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Common.php 1794 2007-06-24 20:11:41Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection');
  42. -
  43. /**
  44. -
  45.  * standard connection, the parent of pgsql, mysql and sqlite
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1794 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Adds an driver-specific LIMIT clause to the query
  71. -
  72.      *
  73. -
  74.      * @param string $query 
  75. -
  76.      * @param mixed $limit 
  77. -
  78.      * @param mixed $offset 
  79. -
  80.      */
  81. -
  82.     public function modifyLimitQuery($query$limit false,$offset false,$isManip=false)
  83. -
  84.     {
  85. -
  86.         $limit = (int) $limit;
  87. -
  88.         $offset = (int) $offset;
  89. -
  90.         
  91. -
  92.         if ($limit && $offset{
  93. -
  94.             $query .= ' LIMIT ' $limit ' OFFSET ' $offset;
  95. -
  96.         elseif ($limit && $offset{
  97. -
  98.             $query .= ' LIMIT ' $limit;
  99. -
  100.         elseif $limit && $offset{
  101. -
  102.             $query .= ' LIMIT 999999999999 OFFSET ' $offset;
  103. -
  104.         }
  105. -
  106.  
  107. -
  108.         return $query;
  109. -
  110.     }
  111. -
  112. }
  113. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionDb2.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionDb2.php.html deleted file mode 100644 index 9f6e1efbb..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionDb2.php.html +++ /dev/null @@ -1,72 +0,0 @@ - -
-

Source for file Db2.php

-

Documentation is available at Db2.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Db2.php 1181 2007-03-20 23:22:51Z gnat $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Db2
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1181 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Adds an driver-specific LIMIT clause to the query
  71. -
  72.      *
  73. -
  74.      * @param string $query         query to modify
  75. -
  76.      * @param integer $limit        limit the number of rows
  77. -
  78.      * @param integer $offset       start reading from given offset
  79. -
  80.      * @return string               the modified query
  81. -
  82.      */
  83. -
  84.     public function modifyLimitQuery($query$limit$offset)
  85. -
  86.     {
  87. -
  88.         if ($limit <= 0)
  89. -
  90.             return $query;
  91. -
  92.  
  93. -
  94.         if ($offset == 0{
  95. -
  96.             return $query ' FETCH FIRST '$limit .' ROWS ONLY';
  97. -
  98.         else {
  99. -
  100.             $sqlPieces explode('from'$query);
  101. -
  102.             $select $sqlPieces[0];
  103. -
  104.             $table $sqlPieces[1];
  105. -
  106.  
  107. -
  108.             $col explode('select'$select);
  109. -
  110.  
  111. -
  112.             $sql 'WITH OFFSET AS(' $select ', ROW_NUMBER() ' .
  113. -
  114.                'OVER(ORDER BY ' $col[1') AS dctrn_rownum FROM ' $table ')' .
  115. -
  116.                $select 'FROM OFFSET WHERE dctrn_rownum BETWEEN ' $offset .
  117. -
  118.                    'AND ' ($offset $limit 1);
  119. -
  120.             return $sql;
  121. -
  122.         }
  123. -
  124.     }
  125. -
  126. }
  127. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionException.php.html deleted file mode 100644 index 158252c0a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionException.php.html +++ /dev/null @@ -1,121 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1345 2007-05-14 13:00:14Z meus $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1345 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var array $errorMessages        an array containing messages for portable error codes
  71. -
  72.      */
  73. -
  74.     static protected $errorMessages = array(
  75. -
  76.                 Doctrine::ERR                    => 'unknown error',
  77. -
  78.                 Doctrine::ERR_ALREADY_EXISTS     => 'already exists',
  79. -
  80.                 Doctrine::ERR_CANNOT_CREATE      => 'can not create',
  81. -
  82.                 Doctrine::ERR_CANNOT_ALTER       => 'can not alter',
  83. -
  84.                 Doctrine::ERR_CANNOT_REPLACE     => 'can not replace',
  85. -
  86.                 Doctrine::ERR_CANNOT_DELETE      => 'can not delete',
  87. -
  88.                 Doctrine::ERR_CANNOT_DROP        => 'can not drop',
  89. -
  90.                 Doctrine::ERR_CONSTRAINT         => 'constraint violation',
  91. -
  92.                 Doctrine::ERR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint',
  93. -
  94.                 Doctrine::ERR_DIVZERO            => 'division by zero',
  95. -
  96.                 Doctrine::ERR_INVALID            => 'invalid',
  97. -
  98.                 Doctrine::ERR_INVALID_DATE       => 'invalid date or time',
  99. -
  100.                 Doctrine::ERR_INVALID_NUMBER     => 'invalid number',
  101. -
  102.                 Doctrine::ERR_MISMATCH           => 'mismatch',
  103. -
  104.                 Doctrine::ERR_NODBSELECTED       => 'no database selected',
  105. -
  106.                 Doctrine::ERR_NOSUCHFIELD        => 'no such field',
  107. -
  108.                 Doctrine::ERR_NOSUCHTABLE        => 'no such table',
  109. -
  110.                 Doctrine::ERR_NOT_CAPABLE        => 'Doctrine backend not capable',
  111. -
  112.                 Doctrine::ERR_NOT_FOUND          => 'not found',
  113. -
  114.                 Doctrine::ERR_NOT_LOCKED         => 'not locked',
  115. -
  116.                 Doctrine::ERR_SYNTAX             => 'syntax error',
  117. -
  118.                 Doctrine::ERR_UNSUPPORTED        => 'not supported',
  119. -
  120.                 Doctrine::ERR_VALUE_COUNT_ON_ROW => 'value count on row',
  121. -
  122.                 Doctrine::ERR_INVALID_DSN        => 'invalid DSN',
  123. -
  124.                 Doctrine::ERR_CONNECT_FAILED     => 'connect failed',
  125. -
  126.                 Doctrine::ERR_NEED_MORE_DATA     => 'insufficient data supplied',
  127. -
  128.                 Doctrine::ERR_EXTENSION_NOT_FOUND=> 'extension not found',
  129. -
  130.                 Doctrine::ERR_NOSUCHDB           => 'no such database',
  131. -
  132.                 Doctrine::ERR_ACCESS_VIOLATION   => 'insufficient permissions',
  133. -
  134.                 Doctrine::ERR_LOADMODULE         => 'error while including on demand module',
  135. -
  136.                 Doctrine::ERR_TRUNCATED          => 'truncated',
  137. -
  138.                 Doctrine::ERR_DEADLOCK           => 'deadlock detected',
  139. -
  140.                 );
  141. -
  142.     /**
  143. -
  144.      * @see Doctrine::ERR_* constants
  145. -
  146.      * @since 1.0
  147. -
  148.      * @var integer $portableCode           portable error code
  149. -
  150.      */
  151. -
  152.     protected $portableCode;
  153. -
  154.     /**
  155. -
  156.      * getPortableCode
  157. -
  158.      * returns portable error code
  159. -
  160.      *
  161. -
  162.      * @return integer      portable error code
  163. -
  164.      */
  165. -
  166.     public function getPortableCode()
  167. -
  168.     {
  169. -
  170.         return $this->portableCode;
  171. -
  172.     }
  173. -
  174.     /**
  175. -
  176.      * getPortableMessage
  177. -
  178.      * returns portable error message
  179. -
  180.      *
  181. -
  182.      * @return string       portable error message
  183. -
  184.      */
  185. -
  186.     public function getPortableMessage()
  187. -
  188.     {
  189. -
  190.         return self::errorMessage($this->portableCode);
  191. -
  192.     }
  193. -
  194.     /**
  195. -
  196.      * Return a textual error message for a Doctrine error code
  197. -
  198.      *
  199. -
  200.      * @param   int|array  integer error code,
  201. -
  202.      *                            null to get the current error code-message map,
  203. -
  204.      *                            or an array with a new error code-message map
  205. -
  206.      *
  207. -
  208.      * @return  string  error message, or false if the error code was
  209. -
  210.      *                   not recognized
  211. -
  212.      */
  213. -
  214.     public function errorMessage($value null)
  215. -
  216.     {
  217. -
  218.         return isset(self::$errorMessages[$value]?
  219. -
  220.            self::$errorMessages[$valueself::$errorMessages[Doctrine::ERR];
  221. -
  222.     }
  223. -
  224. }
  225. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebird.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebird.php.html deleted file mode 100644 index 2f0ad27a7..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebird.php.html +++ /dev/null @@ -1,116 +0,0 @@ - -
-

Source for file Firebird.php

-

Documentation is available at Firebird.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Firebird.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Firebird
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @author      Lorenzo Alberton <l.alberton@quipo.it> (PEAR MDB2 Interbase driver)
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  * @since       1.0
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * @var string $driverName                  the name of this connection driver
  75. -
  76.      */
  77. -
  78.     protected $driverName = 'Firebird';
  79. -
  80.     /**
  81. -
  82.      * the constructor
  83. -
  84.      *
  85. -
  86.      * @param Doctrine_Manager $manager 
  87. -
  88.      * @param PDO $pdo                          database handle
  89. -
  90.      */
  91. -
  92.     public function __construct(Doctrine_Manager $manager$adapter)
  93. -
  94.     {
  95. -
  96.  
  97. -
  98.         $this->supported = array(
  99. -
  100.                           'sequences'             => true,
  101. -
  102.                           'indexes'               => true,
  103. -
  104.                           'affected_rows'         => true,
  105. -
  106.                           'summary_functions'     => true,
  107. -
  108.                           'order_by_text'         => true,
  109. -
  110.                           'transactions'          => true,
  111. -
  112.                           'savepoints'            => true,
  113. -
  114.                           'current_id'            => true,
  115. -
  116.                           'limit_queries'         => 'emulated',
  117. -
  118.                           'LOBs'                  => true,
  119. -
  120.                           'replace'               => 'emulated',
  121. -
  122.                           'sub_selects'           => true,
  123. -
  124.                           'auto_increment'        => true,
  125. -
  126.                           'primary_key'           => true,
  127. -
  128.                           'result_introspection'  => true,
  129. -
  130.                           'prepared_statements'   => true,
  131. -
  132.                           'identifier_quoting'    => false,
  133. -
  134.                           'pattern_escaping'      => true
  135. -
  136.                           );
  137. -
  138.         // initialize all driver options
  139. -
  140.         /**
  141. -
  142.         $this->options['DBA_username'] = false;
  143. -
  144.         $this->options['DBA_password'] = false;
  145. -
  146.         $this->options['database_path'] = '';
  147. -
  148.         $this->options['database_extension'] = '.gdb';
  149. -
  150.         $this->options['server_version'] = '';
  151. -
  152.         */
  153. -
  154.         parent::__construct($manager$adapter);
  155. -
  156.     }
  157. -
  158.     /**
  159. -
  160.      * Set the charset on the current connection
  161. -
  162.      *
  163. -
  164.      * @param string    charset
  165. -
  166.      *
  167. -
  168.      * @return void 
  169. -
  170.      */
  171. -
  172.     public function setCharset($charset)
  173. -
  174.     {
  175. -
  176.         $query 'SET NAMES '.$this->dbh->quote($charset);
  177. -
  178.         $this->exec($query);
  179. -
  180.     }
  181. -
  182.     /**
  183. -
  184.      * Adds an driver-specific LIMIT clause to the query
  185. -
  186.      *
  187. -
  188.      * @param string $query     query to modify
  189. -
  190.      * @param integer $limit    limit the number of rows
  191. -
  192.      * @param integer $offset   start reading from given offset
  193. -
  194.      * @return string modified  query
  195. -
  196.      */
  197. -
  198.     public function modifyLimitQuery($query$limit$offset)
  199. -
  200.     {
  201. -
  202.         if ($limit 0{
  203. -
  204.             $query preg_replace('/^([\s(])*SELECT(?!\s*FIRST\s*\d+)/i',
  205. -
  206.                 "SELECT FIRST $limit SKIP $offset"$query);
  207. -
  208.         }
  209. -
  210.         return $query;
  211. -
  212.     }
  213. -
  214. }
  215. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebirdException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebirdException.php.html deleted file mode 100644 index cc4ae0205..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionFirebirdException.php.html +++ /dev/null @@ -1,143 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Firebird_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  * @author      Lorenzo Alberton <l.alberton@quipo.it> (PEAR MDB2 Interbase driver)
  64. -
  65.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * @var array $errorCodeMap         an array that is used for determining portable
  75. -
  76.      *                                   error code from a native database error code
  77. -
  78.      */
  79. -
  80.     protected static $errorCodeMap array(
  81. -
  82.                                     -104 => Doctrine::ERR_SYNTAX,
  83. -
  84.                                     -150 => Doctrine::ERR_ACCESS_VIOLATION,
  85. -
  86.                                     -151 => Doctrine::ERR_ACCESS_VIOLATION,
  87. -
  88.                                     -155 => Doctrine::ERR_NOSUCHTABLE,
  89. -
  90.                                     -157 => Doctrine::ERR_NOSUCHFIELD,
  91. -
  92.                                     -158 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
  93. -
  94.                                     -170 => Doctrine::ERR_MISMATCH,
  95. -
  96.                                     -171 => Doctrine::ERR_MISMATCH,
  97. -
  98.                                     -172 => Doctrine::ERR_INVALID,
  99. -
  100.                                     // -204 =>  // Covers too many errors, need to use regex on msg
  101. -
  102.                                     -205 => Doctrine::ERR_NOSUCHFIELD,
  103. -
  104.                                     -206 => Doctrine::ERR_NOSUCHFIELD,
  105. -
  106.                                     -208 => Doctrine::ERR_INVALID,
  107. -
  108.                                     -219 => Doctrine::ERR_NOSUCHTABLE,
  109. -
  110.                                     -297 => Doctrine::ERR_CONSTRAINT,
  111. -
  112.                                     -303 => Doctrine::ERR_INVALID,
  113. -
  114.                                     -413 => Doctrine::ERR_INVALID_NUMBER,
  115. -
  116.                                     -530 => Doctrine::ERR_CONSTRAINT,
  117. -
  118.                                     -551 => Doctrine::ERR_ACCESS_VIOLATION,
  119. -
  120.                                     -552 => Doctrine::ERR_ACCESS_VIOLATION,
  121. -
  122.                                     // -607 =>  // Covers too many errors, need to use regex on msg
  123. -
  124.                                     -625 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
  125. -
  126.                                     -803 => Doctrine::ERR_CONSTRAINT,
  127. -
  128.                                     -804 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
  129. -
  130.                                     -904 => Doctrine::ERR_CONNECT_FAILED,
  131. -
  132.                                     -922 => Doctrine::ERR_NOSUCHDB,
  133. -
  134.                                     -923 => Doctrine::ERR_CONNECT_FAILED,
  135. -
  136.                                     -924 => Doctrine::ERR_CONNECT_FAILED
  137. -
  138.                                     );
  139. -
  140.     /**
  141. -
  142.      * @var array $errorRegexps         an array that is used for determining portable
  143. -
  144.      *                                   error code from a native database error message
  145. -
  146.      */
  147. -
  148.     protected static $errorRegexps array(
  149. -
  150.                                     '/generator .* is not defined/'
  151. -
  152.                                         => Doctrine::ERR_SYNTAX,  // for compat. w ibase_errcode()
  153. -
  154.                                     '/table.*(not exist|not found|unknown)/i'
  155. -
  156.                                         => Doctrine::ERR_NOSUCHTABLE,
  157. -
  158.                                     '/table .* already exists/i'
  159. -
  160.                                         => Doctrine::ERR_ALREADY_EXISTS,
  161. -
  162.                                     '/unsuccessful metadata update .* failed attempt to store duplicate value/i'
  163. -
  164.                                         => Doctrine::ERR_ALREADY_EXISTS,
  165. -
  166.                                     '/unsuccessful metadata update .* not found/i'
  167. -
  168.                                         => Doctrine::ERR_NOT_FOUND,
  169. -
  170.                                     '/validation error for column .* value "\*\*\* null/i'
  171. -
  172.                                         => Doctrine::ERR_CONSTRAINT_NOT_NULL,
  173. -
  174.                                     '/violation of [\w ]+ constraint/i'
  175. -
  176.                                         => Doctrine::ERR_CONSTRAINT,
  177. -
  178.                                     '/conversion error from string/i'
  179. -
  180.                                         => Doctrine::ERR_INVALID_NUMBER,
  181. -
  182.                                     '/no permission for/i'
  183. -
  184.                                         => Doctrine::ERR_ACCESS_VIOLATION,
  185. -
  186.                                     '/arithmetic exception, numeric overflow, or string truncation/i'
  187. -
  188.                                         => Doctrine::ERR_INVALID,
  189. -
  190.                                     '/table unknown/i'
  191. -
  192.                                         => Doctrine::ERR_NOSUCHTABLE,
  193. -
  194.                                     );
  195. -
  196.     /**
  197. -
  198.      * This method checks if native error code/message can be
  199. -
  200.      * converted into a portable code and then adds this
  201. -
  202.      * portable error code to errorInfo array and returns the modified array
  203. -
  204.      *
  205. -
  206.      * the portable error code is added at the end of array
  207. -
  208.      *
  209. -
  210.      * @param array $errorInfo      error info array
  211. -
  212.      * @since 1.0
  213. -
  214.      * @return array 
  215. -
  216.      */
  217. -
  218.     public function processErrorInfo(array $errorInfo)
  219. -
  220.     {
  221. -
  222.             /**
  223. -
  224. /**
  225. -
  226.             // todo: are the following lines needed?
  227. -
  228.             // memo for the interbase php module hackers: we need something similar
  229. -
  230.             // to mysql_errno() to retrieve error codes instead of this ugly hack
  231. -
  232.             if (preg_match('/^([^0-9\-]+)([0-9\-]+)\s+(.*)$/', $native_msg, $m)) {
  233. -
  234.                 $native_code = (int)$m[2];
  235. -
  236.             } else {
  237. -
  238.                 $native_code = null;
  239. -
  240.             }
  241. -
  242.             */
  243. -
  244.  
  245. -
  246.         foreach (self::$errorRegexps as $regexp => $code{
  247. -
  248.             if (preg_match($regexp$errorInfo[2])) {
  249. -
  250.                 $errorInfo[3$code;
  251. -
  252.                 break;
  253. -
  254.             }
  255. -
  256.         }
  257. -
  258.         if (isset(self::$errorCodeMap[$errorInfo[1]])) {
  259. -
  260.             $errorInfo[3self::$errorCodeMap[$errorInfo[1]];
  261. -
  262.         }
  263. -
  264.         return $errorInfo;
  265. -
  266.     }
  267. -
  268. }
  269. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformix.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformix.php.html deleted file mode 100644 index 59b8fc1a1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformix.php.html +++ /dev/null @@ -1,59 +0,0 @@ - -
-

Source for file Informix.php

-

Documentation is available at Informix.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Informix.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Mysql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var string $driverName                  the name of this connection driver
  71. -
  72.      */
  73. -
  74.     protected $driverName = 'Informix';
  75. -
  76.     /**
  77. -
  78.      * the constructor
  79. -
  80.      *
  81. -
  82.      * @param Doctrine_Manager $manager 
  83. -
  84.      * @param PDO $pdo                          database handle
  85. -
  86.      */
  87. -
  88.     public function __construct(Doctrine_Manager $manager$adapter)
  89. -
  90.     {
  91. -
  92.         // initialize all driver options
  93. -
  94.  
  95. -
  96.         parent::__construct($manager$adapter);
  97. -
  98.     }
  99. -
  100. }
  101. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformixException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformixException.php.html deleted file mode 100644 index 8a5de1bf3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionInformixException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Informix_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMock.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMock.php.html deleted file mode 100644 index 983d8cd36..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMock.php.html +++ /dev/null @@ -1,58 +0,0 @@ - -
-

Source for file Mock.php

-

Documentation is available at Mock.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mock.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Common');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Mysql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var string $driverName                  the name of this connection driver
  73. -
  74.      */
  75. -
  76.     protected $driverName = 'Mock';
  77. -
  78.     /**
  79. -
  80.      * the constructor
  81. -
  82.      *
  83. -
  84.      * @param Doctrine_Manager $manager 
  85. -
  86.      * @param PDO|Doctrine_Adapter$adapter     database handler
  87. -
  88.      */
  89. -
  90.     public function __construct(Doctrine_Manager $manager$adapter)
  91. -
  92.     {
  93. -
  94.  
  95. -
  96.     }
  97. -
  98. }
  99. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionModule.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionModule.php.html deleted file mode 100644 index 32e5dc4a5..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionModule.php.html +++ /dev/null @@ -1,86 +0,0 @@ - -
-

Source for file Module.php

-

Documentation is available at Module.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Module.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Connection_Module
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * @var Doctrine_Connection $conn       Doctrine_Connection object, every connection
  69. -
  70.      *                                       module holds an instance of Doctrine_Connection
  71. -
  72.      */
  73. -
  74.     protected $conn;
  75. -
  76.     /**
  77. -
  78.      * @var string $moduleName              the name of this module
  79. -
  80.      */
  81. -
  82.     protected $moduleName;
  83. -
  84.     /**
  85. -
  86.      * @param Doctrine_Connection $conn     Doctrine_Connection object, every connection
  87. -
  88.      *                                       module holds an instance of Doctrine_Connection
  89. -
  90.      */
  91. -
  92.     public function __construct($conn null)
  93. -
  94.     {
  95. -
  96.         if ($conn instanceof Doctrine_Connection)) {
  97. -
  98.             $conn Doctrine_Manager::getInstance()->getCurrentConnection();
  99. -
  100.         }
  101. -
  102.         $this->conn = $conn;
  103. -
  104.  
  105. -
  106.         $e explode('_'get_class($this));
  107. -
  108.  
  109. -
  110.         $this->moduleName = $e[1];
  111. -
  112.     }
  113. -
  114.     /**
  115. -
  116.      * getConnection
  117. -
  118.      * returns the connection object this module uses
  119. -
  120.      *
  121. -
  122.      * @return Doctrine_Connection 
  123. -
  124.      */
  125. -
  126.     public function getConnection()
  127. -
  128.     {
  129. -
  130.         return $this->conn;
  131. -
  132.     }
  133. -
  134.     /**
  135. -
  136.      * getModuleName
  137. -
  138.      * returns the name of this module
  139. -
  140.      *
  141. -
  142.      * @return string       the name of this module
  143. -
  144.      */
  145. -
  146.     public function getModuleName()
  147. -
  148.     {
  149. -
  150.         return $this->moduleName;
  151. -
  152.     }
  153. -
  154. }
  155. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssql.php.html deleted file mode 100644 index 5dcf24dd3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssql.php.html +++ /dev/null @@ -1,197 +0,0 @@ - -
-

Source for file Mssql.php

-

Documentation is available at Mssql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mssql.php 1178 2007-03-18 20:00:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Mssql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @version     $Revision: 1178 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var string $driverName                  the name of this connection driver
  73. -
  74.      */
  75. -
  76.     protected $driverName = 'Mssql';
  77. -
  78.     /**
  79. -
  80.      * the constructor
  81. -
  82.      *
  83. -
  84.      * @param Doctrine_Manager $manager 
  85. -
  86.      * @param PDO $pdo                          database handle
  87. -
  88.      */
  89. -
  90.     public function __construct(Doctrine_Manager $manager$adapter)
  91. -
  92.     {
  93. -
  94.         // initialize all driver options
  95. -
  96.         $this->supported = array(
  97. -
  98.                           'sequences'             => 'emulated',
  99. -
  100.                           'indexes'               => true,
  101. -
  102.                           'affected_rows'         => true,
  103. -
  104.                           'transactions'          => true,
  105. -
  106.                           'summary_functions'     => true,
  107. -
  108.                           'order_by_text'         => true,
  109. -
  110.                           'current_id'            => 'emulated',
  111. -
  112.                           'limit_queries'         => 'emulated',
  113. -
  114.                           'LOBs'                  => true,
  115. -
  116.                           'replace'               => 'emulated',
  117. -
  118.                           'sub_selects'           => true,
  119. -
  120.                           'auto_increment'        => true,
  121. -
  122.                           'primary_key'           => true,
  123. -
  124.                           'result_introspection'  => true,
  125. -
  126.                           'prepared_statements'   => 'emulated',
  127. -
  128.                           );
  129. -
  130.  
  131. -
  132.         parent::__construct($manager$adapter);
  133. -
  134.     }
  135. -
  136.     /**
  137. -
  138.      * quoteIdentifier
  139. -
  140.      * Quote a string so it can be safely used as a table / column name
  141. -
  142.      *
  143. -
  144.      * Quoting style depends on which database driver is being used.
  145. -
  146.      *
  147. -
  148.      * @param string $identifier    identifier name to be quoted
  149. -
  150.      * @param bool   $checkOption   check the 'quote_identifier' option
  151. -
  152.      *
  153. -
  154.      * @return string  quoted identifier string
  155. -
  156.      */
  157. -
  158.     public function quoteIdentifier($identifier$checkOption false)
  159. -
  160.     {
  161. -
  162.         if ($checkOption && $this->getAttribute(Doctrine::ATTR_QUOTE_IDENTIFIER)) {
  163. -
  164.             return $identifier;
  165. -
  166.         }
  167. -
  168.         return '[' str_replace(']'']]'$identifier']';
  169. -
  170.     }
  171. -
  172.     /**
  173. -
  174.      * Adds an adapter-specific LIMIT clause to the SELECT statement.
  175. -
  176.      * [ borrowed from Zend Framework ]
  177. -
  178.      *
  179. -
  180.      * @param string $query 
  181. -
  182.      * @param mixed $limit 
  183. -
  184.      * @param mixed $offset 
  185. -
  186.      * @link http://lists.bestpractical.com/pipermail/rt-devel/2005-June/007339.html
  187. -
  188.      * @return string 
  189. -
  190.      */
  191. -
  192.     public function modifyLimitQuery($query$limit$offset$isManip false)
  193. -
  194.     {
  195. -
  196.         if ($limit 0{
  197. -
  198.             $count intval($limit);
  199. -
  200.  
  201. -
  202.             $offset intval($offset);
  203. -
  204.             if ($offset 0{
  205. -
  206.                 throw new Doctrine_Connection_Exception("LIMIT argument offset=$offset is not valid");
  207. -
  208.             }
  209. -
  210.     
  211. -
  212.             $orderby stristr($query'ORDER BY');
  213. -
  214.             if ($orderby !== false{
  215. -
  216.                 $sort (stripos($orderby'desc'!== false'desc' 'asc';
  217. -
  218.                 $order str_ireplace('ORDER BY'''$orderby);
  219. -
  220.                 $order trim(preg_replace('/ASC|DESC/i'''$order));
  221. -
  222.             }
  223. -
  224.     
  225. -
  226.             $query preg_replace('/^SELECT\s/i''SELECT TOP ' ($count+$offset' '$query);
  227. -
  228.     
  229. -
  230.             $query 'SELECT * FROM (SELECT TOP ' $count ' * FROM (' $query ') AS inner_tbl';
  231. -
  232.             if ($orderby !== false{
  233. -
  234.                 $query .= ' ORDER BY ' $order ' ';
  235. -
  236.                 $query .= (stripos($sort'asc'!== false'DESC' 'ASC';
  237. -
  238.             }
  239. -
  240.             $query .= ') AS outer_tbl';
  241. -
  242.             if ($orderby !== false{
  243. -
  244.                 $query .= ' ORDER BY ' $order ' ' $sort;
  245. -
  246.             }
  247. -
  248.     
  249. -
  250.             return $query;
  251. -
  252.  
  253. -
  254.         }
  255. -
  256.  
  257. -
  258.         return $query;
  259. -
  260.     }
  261. -
  262.     /**
  263. -
  264.      * return version information about the server
  265. -
  266.      *
  267. -
  268.      * @param bool   $native  determines if the raw version string should be returned
  269. -
  270.      * @return mixed array/string with version information or MDB2 error object
  271. -
  272.      */
  273. -
  274.     public function getServerVersion($native false)
  275. -
  276.     {
  277. -
  278.         if ($this->serverInfo{
  279. -
  280.             $serverInfo $this->serverInfo;
  281. -
  282.         else {
  283. -
  284.             $query      'SELECT @@VERSION';
  285. -
  286.             $serverInfo $this->fetchOne($query);
  287. -
  288.         }
  289. -
  290.         // cache server_info
  291. -
  292.         $this->serverInfo = $serverInfo;
  293. -
  294.         if $native{
  295. -
  296.             if (preg_match('/([0-9]+)\.([0-9]+)\.([0-9]+)/'$serverInfo$tmp)) {
  297. -
  298.                 $serverInfo array(
  299. -
  300.                     'major' => $tmp[1],
  301. -
  302.                     'minor' => $tmp[2],
  303. -
  304.                     'patch' => $tmp[3],
  305. -
  306.                     'extra' => null,
  307. -
  308.                     'native' => $serverInfo,
  309. -
  310.                 );
  311. -
  312.             else {
  313. -
  314.                 $serverInfo array(
  315. -
  316.                     'major' => null,
  317. -
  318.                     'minor' => null,
  319. -
  320.                     'patch' => null,
  321. -
  322.                     'extra' => null,
  323. -
  324.                     'native' => $serverInfo,
  325. -
  326.                 );
  327. -
  328.             }
  329. -
  330.         }
  331. -
  332.         return $serverInfo;
  333. -
  334.     }
  335. -
  336.     /**
  337. -
  338.      * Checks if there's a sequence that exists.
  339. -
  340.      *
  341. -
  342.      * @param  string $seq_name     The sequence name to verify.
  343. -
  344.      * @return boolean              The value if the table exists or not
  345. -
  346.      */
  347. -
  348.     public function checkSequence($seqName)
  349. -
  350.     {
  351. -
  352.         $query 'SELECT * FROM ' $seqName;
  353. -
  354.         try {
  355. -
  356.             $this->exec($query);
  357. -
  358.         catch(Doctrine_Connection_Exception $e{
  359. -
  360.             if ($e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  361. -
  362.                 return false;
  363. -
  364.             }
  365. -
  366.  
  367. -
  368.             throw $e;
  369. -
  370.         }
  371. -
  372.         return true;
  373. -
  374.     }
  375. -
  376. }
  377. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssqlException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssqlException.php.html deleted file mode 100644 index b4387c6fb..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMssqlException.php.html +++ /dev/null @@ -1,82 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Mssql_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var array $errorCodeMap         an array that is used for determining portable
  73. -
  74.      *                                   error code from a native database error code
  75. -
  76.      */
  77. -
  78.     protected static $errorCodeMap array(
  79. -
  80.                                       110   => Doctrine::ERR_VALUE_COUNT_ON_ROW,
  81. -
  82.                                       155   => Doctrine::ERR_NOSUCHFIELD,
  83. -
  84.                                       170   => Doctrine::ERR_SYNTAX,
  85. -
  86.                                       207   => Doctrine::ERR_NOSUCHFIELD,
  87. -
  88.                                       208   => Doctrine::ERR_NOSUCHTABLE,
  89. -
  90.                                       245   => Doctrine::ERR_INVALID_NUMBER,
  91. -
  92.                                       515   => Doctrine::ERR_CONSTRAINT_NOT_NULL,
  93. -
  94.                                       547   => Doctrine::ERR_CONSTRAINT,
  95. -
  96.                                       1913  => Doctrine::ERR_ALREADY_EXISTS,
  97. -
  98.                                       2627  => Doctrine::ERR_CONSTRAINT,
  99. -
  100.                                       2714  => Doctrine::ERR_ALREADY_EXISTS,
  101. -
  102.                                       3701  => Doctrine::ERR_NOSUCHTABLE,
  103. -
  104.                                       8134  => Doctrine::ERR_DIVZERO,
  105. -
  106.                                       );
  107. -
  108.     /**
  109. -
  110.      * This method checks if native error code/message can be
  111. -
  112.      * converted into a portable code and then adds this
  113. -
  114.      * portable error code to $portableCode field
  115. -
  116.      *
  117. -
  118.      * @param array $errorInfo      error info array
  119. -
  120.      * @since 1.0
  121. -
  122.      * @return boolean              whether or not the error info processing was successfull
  123. -
  124.      *                               (the process is successfull if portable error code was found)
  125. -
  126.      */
  127. -
  128.     public function processErrorInfo(array $errorInfo)
  129. -
  130.     {
  131. -
  132.         $code $errorInfo[1];
  133. -
  134.         if (isset(self::$errorCodeMap[$code])) {
  135. -
  136.             $this->portableCode = self::$errorCodeMap[$code];
  137. -
  138.             return true;
  139. -
  140.         }
  141. -
  142.         return false;
  143. -
  144.     }
  145. -
  146. }
  147. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysql.php.html deleted file mode 100644 index 59f0e2965..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysql.php.html +++ /dev/null @@ -1,215 +0,0 @@ - -
-

Source for file Mysql.php

-

Documentation is available at Mysql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mysql.php 1773 2007-06-19 23:33:04Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Common');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Mysql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @version     $Revision: 1773 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var string $driverName                  the name of this connection driver
  73. -
  74.      */
  75. -
  76.     protected $driverName = 'Mysql';
  77. -
  78.     /**
  79. -
  80.      * the constructor
  81. -
  82.      *
  83. -
  84.      * @param Doctrine_Manager $manager 
  85. -
  86.      * @param PDO|Doctrine_Adapter$adapter     database handler
  87. -
  88.      */
  89. -
  90.     public function __construct(Doctrine_Manager $manager$adapter)
  91. -
  92.     {
  93. -
  94.         $this->setAttribute(PDO::ATTR_EMULATE_PREPAREStrue);
  95. -
  96.         $this->setAttribute(Doctrine::ATTR_DEFAULT_TABLE_TYPE'INNODB');
  97. -
  98.  
  99. -
  100.         $this->supported = array(
  101. -
  102.                           'sequences'            => 'emulated',
  103. -
  104.                           'indexes'              => true,
  105. -
  106.                           'affected_rows'        => true,
  107. -
  108.                           'transactions'         => true,
  109. -
  110.                           'savepoints'           => false,
  111. -
  112.                           'summary_functions'    => true,
  113. -
  114.                           'order_by_text'        => true,
  115. -
  116.                           'current_id'           => 'emulated',
  117. -
  118.                           'limit_queries'        => true,
  119. -
  120.                           'LOBs'                 => true,
  121. -
  122.                           'replace'              => true,
  123. -
  124.                           'sub_selects'          => true,
  125. -
  126.                           'auto_increment'       => true,
  127. -
  128.                           'primary_key'          => true,
  129. -
  130.                           'result_introspection' => true,
  131. -
  132.                           'prepared_statements'  => 'emulated',
  133. -
  134.                           'identifier_quoting'   => true,
  135. -
  136.                           'pattern_escaping'     => true
  137. -
  138.                           );
  139. -
  140.  
  141. -
  142.         $this->properties['string_quoting'array('start' => "'",
  143. -
  144.                                                     'end' => "'",
  145. -
  146.                                                     'escape' => '\\',
  147. -
  148.                                                     'escape_pattern' => '\\');
  149. -
  150.  
  151. -
  152.         $this->properties['identifier_quoting'array('start' => '`',
  153. -
  154.                                                         'end' => '`',
  155. -
  156.                                                         'escape' => '`');
  157. -
  158.  
  159. -
  160.         $this->properties['sql_comments'array(
  161. -
  162.                                             array('start' => '-- ''end' => "\n"'escape' => false),
  163. -
  164.                                             array('start' => '#''end' => "\n"'escape' => false),
  165. -
  166.                                             array('start' => '/*''end' => '*/''escape' => false),
  167. -
  168.                                             );
  169. -
  170.  
  171. -
  172.         $this->properties['varchar_max_length'255;
  173. -
  174.  
  175. -
  176.         parent::__construct($manager$adapter);
  177. -
  178.     }
  179. -
  180.     /**
  181. -
  182.      * Set the charset on the current connection
  183. -
  184.      *
  185. -
  186.      * @param string    charset
  187. -
  188.      *
  189. -
  190.      * @return void 
  191. -
  192.      */
  193. -
  194.     public function setCharset($charset)
  195. -
  196.     {
  197. -
  198.         $query 'SET NAMES '.$this->dbh->quote($charset);
  199. -
  200.         $this->exec($query);
  201. -
  202.     }
  203. -
  204.     /**
  205. -
  206.      * Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
  207. -
  208.      * query, except that if there is already a row in the table with the same
  209. -
  210.      * key field values, the REPLACE query just updates its values instead of
  211. -
  212.      * inserting a new row.
  213. -
  214.      *
  215. -
  216.      * The REPLACE type of query does not make part of the SQL standards. Since
  217. -
  218.      * practically only MySQL implements it natively, this type of query is
  219. -
  220.      * emulated through this method for other DBMS using standard types of
  221. -
  222.      * queries inside a transaction to assure the atomicity of the operation.
  223. -
  224.      *
  225. -
  226.      * @access public
  227. -
  228.      *
  229. -
  230.      * @param string $table name of the table on which the REPLACE query will
  231. -
  232.      *   be executed.
  233. -
  234.      * @param array $fields associative array that describes the fields and the
  235. -
  236.      *   values that will be inserted or updated in the specified table. The
  237. -
  238.      *   indexes of the array are the names of all the fields of the table. The
  239. -
  240.      *   values of the array are also associative arrays that describe the
  241. -
  242.      *   values and other properties of the table fields.
  243. -
  244.      *
  245. -
  246.      *   Here follows a list of field properties that need to be specified:
  247. -
  248.      *
  249. -
  250.      *     value:
  251. -
  252.      *           Value to be assigned to the specified field. This value may be
  253. -
  254.      *           of specified in database independent type format as this
  255. -
  256.      *           function can perform the necessary datatype conversions.
  257. -
  258.      *
  259. -
  260.      *     Default:
  261. -
  262.      *           this property is required unless the Null property
  263. -
  264.      *           is set to 1.
  265. -
  266.      *
  267. -
  268.      *     type
  269. -
  270.      *           Name of the type of the field. Currently, all types Metabase
  271. -
  272.      *           are supported except for clob and blob.
  273. -
  274.      *
  275. -
  276.      *     Default: no type conversion
  277. -
  278.      *
  279. -
  280.      *     null
  281. -
  282.      *           Boolean property that indicates that the value for this field
  283. -
  284.      *           should be set to null.
  285. -
  286.      *
  287. -
  288.      *           The default value for fields missing in INSERT queries may be
  289. -
  290.      *           specified the definition of a table. Often, the default value
  291. -
  292.      *           is already null, but since the REPLACE may be emulated using
  293. -
  294.      *           an UPDATE query, make sure that all fields of the table are
  295. -
  296.      *           listed in this function argument array.
  297. -
  298.      *
  299. -
  300.      *     Default: 0
  301. -
  302.      *
  303. -
  304.      *     key
  305. -
  306.      *           Boolean property that indicates that this field should be
  307. -
  308.      *           handled as a primary key or at least as part of the compound
  309. -
  310.      *           unique index of the table that will determine the row that will
  311. -
  312.      *           updated if it exists or inserted a new row otherwise.
  313. -
  314.      *
  315. -
  316.      *           This function will fail if no key field is specified or if the
  317. -
  318.      *           value of a key field is set to null because fields that are
  319. -
  320.      *           part of unique index they may not be null.
  321. -
  322.      *
  323. -
  324.      *     Default: 0
  325. -
  326.      *
  327. -
  328.      * @return integer      the number of affected rows
  329. -
  330.      */
  331. -
  332.     public function replace($tablearray $fieldsarray $keys)
  333. -
  334.     {
  335. -
  336.         $count count($fields);
  337. -
  338.         $query $values '';
  339. -
  340.         $keys $colnum 0;
  341. -
  342.  
  343. -
  344.         for (reset($fields)$colnum $countnext($fields)$colnum++{
  345. -
  346.             $name key($fields);
  347. -
  348.  
  349. -
  350.             if ($colnum 0{
  351. -
  352.                 $query .= ',';
  353. -
  354.                 $values.= ',';
  355. -
  356.             }
  357. -
  358.  
  359. -
  360.             $query .= $name;
  361. -
  362.  
  363. -
  364.             if (isset($fields[$name]['null']&& $fields[$name]['null']{
  365. -
  366.                 $value 'NULL';
  367. -
  368.             else {
  369. -
  370.                 $type = isset($fields[$name]['type']$fields[$name]['type'null;
  371. -
  372.                 $value $this->quote($fields[$name]['value']$type);
  373. -
  374.             }
  375. -
  376.  
  377. -
  378.             $values .= $value;
  379. -
  380.  
  381. -
  382.             if (isset($fields[$name]['key']&& $fields[$name]['key']{
  383. -
  384.                 if ($value === 'NULL'{
  385. -
  386.                     throw new Doctrine_Connection_Mysql_Exception('key value '.$name.' may not be NULL');
  387. -
  388.                 }
  389. -
  390.                 $keys++;
  391. -
  392.             }
  393. -
  394.         }
  395. -
  396.  
  397. -
  398.         if ($keys == 0{
  399. -
  400.             throw new Doctrine_Connection_Mysql_Exception('not specified which fields are keys');
  401. -
  402.         }
  403. -
  404.         $query 'REPLACE INTO ' $table ' (' $query ') VALUES (' $values ')';
  405. -
  406.  
  407. -
  408.         return $this->exec($query);
  409. -
  410.     }
  411. -
  412. }
  413. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysqlException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysqlException.php.html deleted file mode 100644 index 018eb4e03..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionMysqlException.php.html +++ /dev/null @@ -1,92 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Mysql_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var array $errorCodeMap         an array that is used for determining portable
  73. -
  74.      *                                   error code from a native database error code
  75. -
  76.      */
  77. -
  78.     protected static $errorCodeMap array(
  79. -
  80.                                       1004 => Doctrine::ERR_CANNOT_CREATE,
  81. -
  82.                                       1005 => Doctrine::ERR_CANNOT_CREATE,
  83. -
  84.                                       1006 => Doctrine::ERR_CANNOT_CREATE,
  85. -
  86.                                       1007 => Doctrine::ERR_ALREADY_EXISTS,
  87. -
  88.                                       1008 => Doctrine::ERR_CANNOT_DROP,
  89. -
  90.                                       1022 => Doctrine::ERR_ALREADY_EXISTS,
  91. -
  92.                                       1044 => Doctrine::ERR_ACCESS_VIOLATION,
  93. -
  94.                                       1046 => Doctrine::ERR_NODBSELECTED,
  95. -
  96.                                       1048 => Doctrine::ERR_CONSTRAINT,
  97. -
  98.                                       1049 => Doctrine::ERR_NOSUCHDB,
  99. -
  100.                                       1050 => Doctrine::ERR_ALREADY_EXISTS,
  101. -
  102.                                       1051 => Doctrine::ERR_NOSUCHTABLE,
  103. -
  104.                                       1054 => Doctrine::ERR_NOSUCHFIELD,
  105. -
  106.                                       1061 => Doctrine::ERR_ALREADY_EXISTS,
  107. -
  108.                                       1062 => Doctrine::ERR_ALREADY_EXISTS,
  109. -
  110.                                       1064 => Doctrine::ERR_SYNTAX,
  111. -
  112.                                       1091 => Doctrine::ERR_NOT_FOUND,
  113. -
  114.                                       1100 => Doctrine::ERR_NOT_LOCKED,
  115. -
  116.                                       1136 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
  117. -
  118.                                       1142 => Doctrine::ERR_ACCESS_VIOLATION,
  119. -
  120.                                       1146 => Doctrine::ERR_NOSUCHTABLE,
  121. -
  122.                                       1216 => Doctrine::ERR_CONSTRAINT,
  123. -
  124.                                       1217 => Doctrine::ERR_CONSTRAINT,
  125. -
  126.                                       );
  127. -
  128.     /**
  129. -
  130.      * This method checks if native error code/message can be
  131. -
  132.      * converted into a portable code and then adds this
  133. -
  134.      * portable error code to $portableCode field
  135. -
  136.      *
  137. -
  138.      * @param array $errorInfo      error info array
  139. -
  140.      * @since 1.0
  141. -
  142.      * @return boolean              whether or not the error info processing was successfull
  143. -
  144.      *                               (the process is successfull if portable error code was found)
  145. -
  146.      */
  147. -
  148.     public function processErrorInfo(array $errorInfo)
  149. -
  150.     {
  151. -
  152.         $code $errorInfo[1];
  153. -
  154.         if (isset(self::$errorCodeMap[$code])) {
  155. -
  156.             $this->portableCode = self::$errorCodeMap[$code];
  157. -
  158.             return true;
  159. -
  160.         }
  161. -
  162.         return false;
  163. -
  164.     }
  165. -
  166. }
  167. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracle.php.html deleted file mode 100644 index 8d57f269f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracle.php.html +++ /dev/null @@ -1,124 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Oracle.php 1798 2007-06-24 21:05:12Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Oracle
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1798 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var string $driverName                  the name of this connection driver
  71. -
  72.      */
  73. -
  74.     protected $driverName = 'Oracle';
  75. -
  76.  
  77. -
  78.     public function __construct(Doctrine_Manager $manager$adapter)
  79. -
  80.     {
  81. -
  82.         $this->supported = array(
  83. -
  84.                           'sequences'            => true,
  85. -
  86.                           'indexes'              => true,
  87. -
  88.                           'summary_functions'    => true,
  89. -
  90.                           'order_by_text'        => true,
  91. -
  92.                           'current_id'           => true,
  93. -
  94.                           'affected_rows'        => true,
  95. -
  96.                           'transactions'         => true,
  97. -
  98.                           'savepoints'           => true,
  99. -
  100.                           'limit_queries'        => true,
  101. -
  102.                           'LOBs'                 => true,
  103. -
  104.                           'replace'              => 'emulated',
  105. -
  106.                           'sub_selects'          => true,
  107. -
  108.                           'auto_increment'       => false// implementation is broken
  109. -
  110.                           'primary_key'          => true,
  111. -
  112.                           'result_introspection' => true,
  113. -
  114.                           'prepared_statements'  => true,
  115. -
  116.                           'identifier_quoting'   => true,
  117. -
  118.                           'pattern_escaping'     => true,
  119. -
  120.                           );
  121. -
  122.         /**
  123. -
  124.         $this->options['DBA_username'] = false;
  125. -
  126.         $this->options['DBA_password'] = false;
  127. -
  128.         $this->options['database_name_prefix'] = false;
  129. -
  130.         $this->options['emulate_database'] = true;
  131. -
  132.         $this->options['default_tablespace'] = false;
  133. -
  134.         $this->options['default_text_field_length'] = 2000;
  135. -
  136.         $this->options['result_prefetching'] = false;
  137. -
  138.         */
  139. -
  140.         parent::__construct($manager$adapter);
  141. -
  142.     }
  143. -
  144.     /**
  145. -
  146.      * Sets up the date/time format
  147. -
  148.      *
  149. -
  150.      */
  151. -
  152.     public function setDateFormat($format 'YYYY-MM-DD HH24:MI:SS')
  153. -
  154.     {
  155. -
  156.       $this->exec('ALTER SESSION SET NLS_DATE_FORMAT = "' $format '"');
  157. -
  158.     }
  159. -
  160.     /**
  161. -
  162.      * Adds an driver-specific LIMIT clause to the query
  163. -
  164.      *
  165. -
  166.      * @param string $query         query to modify
  167. -
  168.      * @param integer $limit        limit the number of rows
  169. -
  170.      * @param integer $offset       start reading from given offset
  171. -
  172.      * @return string               the modified query
  173. -
  174.      */
  175. -
  176.     public function modifyLimitQuery($query$limit$offset)
  177. -
  178.     {
  179. -
  180.         /**
  181. -
  182.         $e      = explode("select ",strtolower($query));
  183. -
  184.         $e2     = explode(" from ",$e[1]);
  185. -
  186.         $fields = $e2[0];
  187. -
  188.         */
  189. -
  190.         $limit = (int) $limit;
  191. -
  192.         $offset = (int) $offset;
  193. -
  194.         if (preg_match('/^\s*SELECT/i'$query)) {
  195. -
  196.             if preg_match('/\sFROM\s/i'$query)) {
  197. -
  198.                 $query .= " FROM dual";
  199. -
  200.             }
  201. -
  202.             if ($limit 0{
  203. -
  204.                 // taken from http://svn.ez.no/svn/ezcomponents/packages/Database
  205. -
  206.                 $max $offset $limit;
  207. -
  208.                 if ($offset 0{
  209. -
  210.                     $min $offset 1;
  211. -
  212.                     $query 'SELECT * FROM (SELECT a.*, ROWNUM dctrn_rownum FROM (' $query
  213. -
  214.                            . ') a WHERE ROWNUM <= ' $max ') WHERE dctrn_rownum >= ' $min;
  215. -
  216.                 else {
  217. -
  218.                     $query 'SELECT a.* FROM (' $query .') a WHERE ROWNUM <= ' $max;
  219. -
  220.                 }
  221. -
  222.             }
  223. -
  224.         }
  225. -
  226.         return $query;
  227. -
  228.     }
  229. -
  230. }
  231. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracleException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracleException.php.html deleted file mode 100644 index ac86b12f0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionOracleException.php.html +++ /dev/null @@ -1,87 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Oracle_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var array $errorCodeMap         an array that is used for determining portable
  73. -
  74.      *                                   error code from a native database error code
  75. -
  76.      */
  77. -
  78.     protected static $errorCodeMap array(
  79. -
  80.                                       1    => Doctrine::ERR_CONSTRAINT,
  81. -
  82.                                       900  => Doctrine::ERR_SYNTAX,
  83. -
  84.                                       904  => Doctrine::ERR_NOSUCHFIELD,
  85. -
  86.                                       913  => Doctrine::ERR_VALUE_COUNT_ON_ROW,
  87. -
  88.                                       921  => Doctrine::ERR_SYNTAX,
  89. -
  90.                                       923  => Doctrine::ERR_SYNTAX,
  91. -
  92.                                       942  => Doctrine::ERR_NOSUCHTABLE,
  93. -
  94.                                       955  => Doctrine::ERR_ALREADY_EXISTS,
  95. -
  96.                                       1400 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
  97. -
  98.                                       1401 => Doctrine::ERR_INVALID,
  99. -
  100.                                       1407 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
  101. -
  102.                                       1418 => Doctrine::ERR_NOT_FOUND,
  103. -
  104.                                       1476 => Doctrine::ERR_DIVZERO,
  105. -
  106.                                       1722 => Doctrine::ERR_INVALID_NUMBER,
  107. -
  108.                                       2289 => Doctrine::ERR_NOSUCHTABLE,
  109. -
  110.                                       2291 => Doctrine::ERR_CONSTRAINT,
  111. -
  112.                                       2292 => Doctrine::ERR_CONSTRAINT,
  113. -
  114.                                       2449 => Doctrine::ERR_CONSTRAINT,
  115. -
  116.                                       );
  117. -
  118.     /**
  119. -
  120.      * This method checks if native error code/message can be
  121. -
  122.      * converted into a portable code and then adds this
  123. -
  124.      * portable error code to $portableCode field
  125. -
  126.      *
  127. -
  128.      * @param array $errorInfo      error info array
  129. -
  130.      * @since 1.0
  131. -
  132.      * @return boolean              whether or not the error info processing was successfull
  133. -
  134.      *                               (the process is successfull if portable error code was found)
  135. -
  136.      */
  137. -
  138.     public function processErrorInfo(array $errorInfo)
  139. -
  140.     {
  141. -
  142.         $code $errorInfo[1];
  143. -
  144.         if (isset(self::$errorCodeMap[$code])) {
  145. -
  146.             $this->portableCode = self::$errorCodeMap[$code];
  147. -
  148.             return true;
  149. -
  150.         }
  151. -
  152.         return false;
  153. -
  154.     }
  155. -
  156. }
  157. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsql.php.html deleted file mode 100644 index 1d058c145..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsql.php.html +++ /dev/null @@ -1,198 +0,0 @@ - -
-

Source for file Pgsql.php

-

Documentation is available at Pgsql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pgsql.php 2113 2007-07-31 05:50:41Z lukenukem $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload("Doctrine_Connection_Common");
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Pgsql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @version     $Revision: 2113 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var string $driverName                  the name of this connection driver
  73. -
  74.      */
  75. -
  76.     protected $driverName = 'Pgsql';
  77. -
  78.     /**
  79. -
  80.      * the constructor
  81. -
  82.      *
  83. -
  84.      * @param Doctrine_Manager $manager 
  85. -
  86.      * @param PDO $pdo                          database handle
  87. -
  88.      */
  89. -
  90.     public function __construct(Doctrine_Manager $manager$adapter)
  91. -
  92.     {
  93. -
  94.         // initialize all driver options
  95. -
  96.         $this->supported = array(
  97. -
  98.                           'sequences'               => true,
  99. -
  100.                           'indexes'                 => true,
  101. -
  102.                           'affected_rows'           => true,
  103. -
  104.                           'summary_functions'       => true,
  105. -
  106.                           'order_by_text'           => true,
  107. -
  108.                           'transactions'            => true,
  109. -
  110.                           'savepoints'              => true,
  111. -
  112.                           'current_id'              => true,
  113. -
  114.                           'limit_queries'           => true,
  115. -
  116.                           'LOBs'                    => true,
  117. -
  118.                           'replace'                 => 'emulated',
  119. -
  120.                           'sub_selects'             => true,
  121. -
  122.                           'auto_increment'          => 'emulated',
  123. -
  124.                           'primary_key'             => true,
  125. -
  126.                           'result_introspection'    => true,
  127. -
  128.                           'prepared_statements'     => true,
  129. -
  130.                           'identifier_quoting'      => true,
  131. -
  132.                           'pattern_escaping'        => true,
  133. -
  134.                           );
  135. -
  136.  
  137. -
  138.         $this->properties['string_quoting'array('start' => "'",
  139. -
  140.                                                     'end' => "'",
  141. -
  142.                                                     'escape' => "'",
  143. -
  144.                                                     'escape_pattern' => '\\');
  145. -
  146.  
  147. -
  148.         $this->properties['identifier_quoting'array('start' => '"',
  149. -
  150.                                                         'end' => '"',
  151. -
  152.                                                         'escape' => '"');
  153. -
  154.         parent::__construct($manager$adapter);
  155. -
  156.     }
  157. -
  158.     /**
  159. -
  160.      * Set the charset on the current connection
  161. -
  162.      *
  163. -
  164.      * @param string    charset
  165. -
  166.      *
  167. -
  168.      * @return void 
  169. -
  170.      */
  171. -
  172.     public function setCharset($charset)
  173. -
  174.     {
  175. -
  176.         $query 'SET NAMES '.$this->dbh->quote($charset);
  177. -
  178.         $this->exec($query);
  179. -
  180.     }
  181. -
  182.     /**
  183. -
  184.      * convertBoolean
  185. -
  186.      * some drivers need the boolean values to be converted into integers
  187. -
  188.      * when using DQL API
  189. -
  190.      *
  191. -
  192.      * This method takes care of that conversion
  193. -
  194.      *
  195. -
  196.      * @param array $item 
  197. -
  198.      * @return void 
  199. -
  200.      */
  201. -
  202.     public function convertBooleans($item)
  203. -
  204.     {
  205. -
  206.         if (is_array($item)) {
  207. -
  208.             foreach ($item as $key => $value{
  209. -
  210.                 if (is_bool($value)) {
  211. -
  212.                     $item[$key($value'true' 'false';
  213. -
  214.                 }
  215. -
  216.             }
  217. -
  218.         else {
  219. -
  220.            if (is_bool($item)) {
  221. -
  222.                $item ($item'true' 'false';
  223. -
  224.            }
  225. -
  226.         }
  227. -
  228.         return $item;
  229. -
  230.     }
  231. -
  232.     /**
  233. -
  234.      * Changes a query string for various DBMS specific reasons
  235. -
  236.      *
  237. -
  238.      * @param string $query         query to modify
  239. -
  240.      * @param integer $limit        limit the number of rows
  241. -
  242.      * @param integer $offset       start reading from given offset
  243. -
  244.      * @param boolean $isManip      if the query is a DML query
  245. -
  246.      * @return string               modified query
  247. -
  248.      */
  249. -
  250.     public function modifyLimitQuery($query$limit false$offset false$isManip false)
  251. -
  252.     {
  253. -
  254.         if ($limit 0{
  255. -
  256.             $query rtrim($query);
  257. -
  258.  
  259. -
  260.             if (substr($query-1== ';'{
  261. -
  262.                 $query substr($query0-1);
  263. -
  264.             }
  265. -
  266.  
  267. -
  268.             if ($isManip{
  269. -
  270.                 $manip preg_replace('/^(DELETE FROM|UPDATE).*$/''\\1'$query);
  271. -
  272.                 $from  $match[2];
  273. -
  274.                 $where $match[3];
  275. -
  276.                 $query $manip ' ' $from ' WHERE ctid=(SELECT ctid FROM '
  277. -
  278.                        . $from ' ' $where ' LIMIT ' $limit ')';
  279. -
  280.  
  281. -
  282.             else {
  283. -
  284.                 if empty($limit)) {
  285. -
  286.                   $query .= ' LIMIT ' $limit;
  287. -
  288.                 }
  289. -
  290.                 if empty($offset)) {
  291. -
  292.                   $query .= ' OFFSET ' $offset;
  293. -
  294.                 }
  295. -
  296.             }
  297. -
  298.         }
  299. -
  300.         return $query;
  301. -
  302.     }
  303. -
  304.     /**
  305. -
  306.      * return version information about the server
  307. -
  308.      *
  309. -
  310.      * @param string $native    determines if the raw version string should be returned
  311. -
  312.      * @return array|string    an array or string with version information
  313. -
  314.      */
  315. -
  316.     public function getServerVersion($native false)
  317. -
  318.     {
  319. -
  320.         $query 'SHOW SERVER_VERSION';
  321. -
  322.  
  323. -
  324.         $serverInfo $this->fetchOne($query);
  325. -
  326.  
  327. -
  328.         if $native{
  329. -
  330.             $tmp explode('.'$serverInfo3);
  331. -
  332.  
  333. -
  334.             if (empty($tmp[2]&& isset($tmp[1])
  335. -
  336.                 && preg_match('/(\d+)(.*)/'$tmp[1]$tmp2)
  337. -
  338.             {
  339. -
  340.                 $serverInfo array(
  341. -
  342.                     'major' => $tmp[0],
  343. -
  344.                     'minor' => $tmp2[1],
  345. -
  346.                     'patch' => null,
  347. -
  348.                     'extra' => $tmp2[2],
  349. -
  350.                     'native' => $serverInfo,
  351. -
  352.                 );
  353. -
  354.             else {
  355. -
  356.                 $serverInfo array(
  357. -
  358.                     'major' => isset($tmp[0]$tmp[0null,
  359. -
  360.                     'minor' => isset($tmp[1]$tmp[1null,
  361. -
  362.                     'patch' => isset($tmp[2]$tmp[2null,
  363. -
  364.                     'extra' => null,
  365. -
  366.                     'native' => $serverInfo,
  367. -
  368.                 );
  369. -
  370.             }
  371. -
  372.         }
  373. -
  374.         return $serverInfo;
  375. -
  376.     }
  377. -
  378. }
  379. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsqlException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsqlException.php.html deleted file mode 100644 index 4ad48b641..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionPgsqlException.php.html +++ /dev/null @@ -1,115 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Pgsql_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  58. -
  59.  * @author      Paul Cooper <pgc@ucecom.com> (PEAR MDB2 Pgsql driver)
  60. -
  61.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 1080 $
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * @var array $errorRegexps         an array that is used for determining portable
  75. -
  76.      *                                   error code from a native database error message
  77. -
  78.      */
  79. -
  80.     protected static $errorRegexps array(
  81. -
  82.                                     '/parser: parse error at or near/i'
  83. -
  84.                                         => Doctrine::ERR_SYNTAX,
  85. -
  86.                                     '/syntax error at/'
  87. -
  88.                                         => Doctrine::ERR_SYNTAX,
  89. -
  90.                                     '/column reference .* is ambiguous/i'
  91. -
  92.                                         => Doctrine::ERR_SYNTAX,
  93. -
  94.                                     '/column .* (of relation .*)?does not exist/i'
  95. -
  96.                                         => Doctrine::ERR_NOSUCHFIELD,
  97. -
  98.                                     '/attribute .* not found|relation .* does not have attribute/i'
  99. -
  100.                                         => Doctrine::ERR_NOSUCHFIELD,
  101. -
  102.                                     '/column .* specified in USING clause does not exist in (left|right) table/i'
  103. -
  104.                                         => Doctrine::ERR_NOSUCHFIELD,
  105. -
  106.                                     '/(relation|sequence|table).*does not exist|class .* not found/i'
  107. -
  108.                                         => Doctrine::ERR_NOSUCHTABLE,
  109. -
  110.                                     '/index .* does not exist/'
  111. -
  112.                                         => Doctrine::ERR_NOT_FOUND,
  113. -
  114.                                     '/relation .* already exists/i'
  115. -
  116.                                         => Doctrine::ERR_ALREADY_EXISTS,
  117. -
  118.                                     '/(divide|division) by zero$/i'
  119. -
  120.                                         => Doctrine::ERR_DIVZERO,
  121. -
  122.                                     '/pg_atoi: error in .*: can\'t parse /i'
  123. -
  124.                                         => Doctrine::ERR_INVALID_NUMBER,
  125. -
  126.                                     '/invalid input syntax for( type)? (integer|numeric)/i'
  127. -
  128.                                         => Doctrine::ERR_INVALID_NUMBER,
  129. -
  130.                                     '/value .* is out of range for type \w*int/i'
  131. -
  132.                                         => Doctrine::ERR_INVALID_NUMBER,
  133. -
  134.                                     '/integer out of range/i'
  135. -
  136.                                         => Doctrine::ERR_INVALID_NUMBER,
  137. -
  138.                                     '/value too long for type character/i'
  139. -
  140.                                         => Doctrine::ERR_INVALID,
  141. -
  142.                                     '/permission denied/'
  143. -
  144.                                         => Doctrine::ERR_ACCESS_VIOLATION,
  145. -
  146.                                     '/violates [\w ]+ constraint/'
  147. -
  148.                                         => Doctrine::ERR_CONSTRAINT,
  149. -
  150.                                     '/referential integrity violation/'
  151. -
  152.                                         => Doctrine::ERR_CONSTRAINT,
  153. -
  154.                                     '/violates not-null constraint/'
  155. -
  156.                                         => Doctrine::ERR_CONSTRAINT_NOT_NULL,
  157. -
  158.                                     '/more expressions than target columns/i'
  159. -
  160.                                         => Doctrine::ERR_VALUE_COUNT_ON_ROW,
  161. -
  162.                                 );
  163. -
  164.     /**
  165. -
  166.      * This method checks if native error code/message can be
  167. -
  168.      * converted into a portable code and then adds this
  169. -
  170.      * portable error code to $portableCode field
  171. -
  172.      *
  173. -
  174.      * the portable error code is added at the end of array
  175. -
  176.      *
  177. -
  178.      * @param array $errorInfo      error info array
  179. -
  180.      * @since 1.0
  181. -
  182.      * @see Doctrine::ERR_* constants
  183. -
  184.      * @see Doctrine_Connection::$portableCode
  185. -
  186.      * @return boolean              whether or not the error info processing was successfull
  187. -
  188.      *                               (the process is successfull if portable error code was found)
  189. -
  190.      */
  191. -
  192.     public function processErrorInfo(array $errorInfo)
  193. -
  194.     {
  195. -
  196.         foreach (self::$errorRegexps as $regexp => $code{
  197. -
  198.             if (preg_match($regexp$errorInfo[2])) {
  199. -
  200.                 $this->portableCode = $code;
  201. -
  202.                 return true;
  203. -
  204.             }
  205. -
  206.         }
  207. -
  208.         return false;
  209. -
  210.     }
  211. -
  212. }
  213. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfiler.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfiler.php.html deleted file mode 100644 index 3b047ad29..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfiler.php.html +++ /dev/null @@ -1,182 +0,0 @@ - -
-

Source for file Profiler.php

-

Documentation is available at Profiler.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Overloadable');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Profiler
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision$
  62. -
  63.  */
  64. -
  65. class Doctrine_Connection_Profiler implements Doctrine_OverloadableIteratorAggregateCountable
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * @param array $listeners      an array containing all availible listeners
  72. -
  73.      */
  74. -
  75.     private $listeners  = array('query',
  76. -
  77.                                 'prepare',
  78. -
  79.                                 'commit',
  80. -
  81.                                 'rollback',
  82. -
  83.                                 'connect',
  84. -
  85.                                 'begintransaction',
  86. -
  87.                                 'exec',
  88. -
  89.                                 'execute',
  90. -
  91.                                 );
  92. -
  93.     /**
  94. -
  95.      * @param array $events         an array containing all listened events
  96. -
  97.      */
  98. -
  99.     private $events     = array();
  100. -
  101.     /**
  102. -
  103.      * constructor
  104. -
  105.      */
  106. -
  107.     public function __construct({
  108. -
  109.  
  110. -
  111.     }
  112. -
  113.     /**
  114. -
  115.      * setFilterQueryType
  116. -
  117.      *
  118. -
  119.      * @param integer $filter 
  120. -
  121.      * @return boolean 
  122. -
  123.      */
  124. -
  125.     public function setFilterQueryType({
  126. -
  127.                                              
  128. -
  129.     }                                         
  130. -
  131.     /**
  132. -
  133.      * method overloader
  134. -
  135.      * this method is used for invoking different listeners, for the full
  136. -
  137.      * list of availible listeners, see Doctrine_EventListener
  138. -
  139.      *
  140. -
  141.      * @param string $m     the name of the method
  142. -
  143.      * @param array $a      method arguments
  144. -
  145.      * @see Doctrine_EventListener
  146. -
  147.      * @return boolean 
  148. -
  149.      */
  150. -
  151.     public function __call($m$a)
  152. -
  153.     {
  154. -
  155.         // first argument should be an instance of Doctrine_Event
  156. -
  157.         if ($a[0instanceof Doctrine_Event)) {
  158. -
  159.             throw new Doctrine_Connection_Profiler_Exception("Couldn't listen event. Event should be an instance of Doctrine_Event.");
  160. -
  161.         }
  162. -
  163.  
  164. -
  165.  
  166. -
  167.         if (substr($m03=== 'pre'{
  168. -
  169.             // pre-event listener found
  170. -
  171.             $a[0]->start();
  172. -
  173.  
  174. -
  175.             ifin_array($a[0]$this->eventstrue)) {
  176. -
  177.                 $this->events[$a[0];
  178. -
  179.             }
  180. -
  181.         else {
  182. -
  183.             // after-event listener found
  184. -
  185.             $a[0]->end();
  186. -
  187.         }
  188. -
  189.         /**
  190. -
  191.          * If filtering by query type is enabled, only keep the query if
  192. -
  193.          * it was one of the allowed types.
  194. -
  195.          */
  196. -
  197.          /**
  198. -
  199.         if ( ! is_null($this->filterTypes)) {
  200. -
  201.             if ( ! ($a[0]->getQueryType() & $this->_filterTypes)) {
  202. -
  203.  
  204. -
  205.             }
  206. -
  207.         }
  208. -
  209.         */
  210. -
  211.  
  212. -
  213.     }
  214. -
  215.     /**
  216. -
  217.      * get
  218. -
  219.      *
  220. -
  221.      * @param mixed $key 
  222. -
  223.      * @return Doctrine_Event 
  224. -
  225.      */
  226. -
  227.     public function get($key
  228. -
  229.     {
  230. -
  231.         if (isset($this->events[$key])) {
  232. -
  233.             return $this->events[$key];
  234. -
  235.         }
  236. -
  237.         return null;
  238. -
  239.     }
  240. -
  241.     /**
  242. -
  243.      * getAll
  244. -
  245.      * returns all profiled events as an array
  246. -
  247.      *
  248. -
  249.      * @return array        all events in an array
  250. -
  251.      */
  252. -
  253.     public function getAll(
  254. -
  255.     {
  256. -
  257.         return $this->events;
  258. -
  259.     }
  260. -
  261.     /**
  262. -
  263.      * getIterator
  264. -
  265.      * returns an iterator that iterates through the logged events
  266. -
  267.      *
  268. -
  269.      * @return ArrayIterator 
  270. -
  271.      */
  272. -
  273.     public function getIterator()
  274. -
  275.     {
  276. -
  277.         return new ArrayIterator($this->events);
  278. -
  279.     }
  280. -
  281.     /**
  282. -
  283.      * count
  284. -
  285.      * 
  286. -
  287.      * @return integer 
  288. -
  289.      */
  290. -
  291.     public function count(
  292. -
  293.     {
  294. -
  295.         return count($this->events);
  296. -
  297.     }
  298. -
  299.     /**
  300. -
  301.      * pop the last event from the event stack
  302. -
  303.      *
  304. -
  305.      * @return Doctrine_Event 
  306. -
  307.      */
  308. -
  309.     public function pop(
  310. -
  311.     {
  312. -
  313.         return array_pop($this->events);
  314. -
  315.     }
  316. -
  317.     /**
  318. -
  319.      * Get the Doctrine_Event object for the last query that was run, regardless if it has
  320. -
  321.      * ended or not. If the event has not ended, it's end time will be Null.
  322. -
  323.      *
  324. -
  325.      * @return Doctrine_Event 
  326. -
  327.      */
  328. -
  329.     public function lastEvent()
  330. -
  331.     {
  332. -
  333.         if (empty($this->events)) {
  334. -
  335.             return false;
  336. -
  337.         }
  338. -
  339.  
  340. -
  341.         end($this->events);
  342. -
  343.         return current($this->events);
  344. -
  345.     }
  346. -
  347. }
  348. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfilerException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfilerException.php.html deleted file mode 100644 index 936a01142..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionProfilerException.php.html +++ /dev/null @@ -1,43 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1345 2007-05-14 13:00:14Z meus $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Profiler_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Profiler_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1345 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68. }
  69. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqlite.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqlite.php.html deleted file mode 100644 index bcc75ffb9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqlite.php.html +++ /dev/null @@ -1,111 +0,0 @@ - -
-

Source for file Sqlite.php

-

Documentation is available at Sqlite.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sqlite.php 2285 2007-08-29 19:07:43Z jackbravo $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload("Doctrine_Connection_Common");
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Sqlite
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @version     $Revision: 2285 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var string $driverName                  the name of this connection driver
  73. -
  74.      */
  75. -
  76.     protected $driverName = 'Sqlite';
  77. -
  78.     /**
  79. -
  80.      * the constructor
  81. -
  82.      *
  83. -
  84.      * @param Doctrine_Manager $manager 
  85. -
  86.      * @param PDO $pdo                          database handle
  87. -
  88.      */
  89. -
  90.     public function __construct(Doctrine_Manager $manager$adapter)
  91. -
  92.     {
  93. -
  94.  
  95. -
  96.         $this->supported = array(
  97. -
  98.                           'sequences'            => 'emulated',
  99. -
  100.                           'indexes'              => true,
  101. -
  102.                           'affected_rows'        => true,
  103. -
  104.                           'summary_functions'    => true,
  105. -
  106.                           'order_by_text'        => true,
  107. -
  108.                           'current_id'           => 'emulated',
  109. -
  110.                           'limit_queries'        => true,
  111. -
  112.                           'LOBs'                 => true,
  113. -
  114.                           'replace'              => true,
  115. -
  116.                           'transactions'         => true,
  117. -
  118.                           'savepoints'           => false,
  119. -
  120.                           'sub_selects'          => true,
  121. -
  122.                           'auto_increment'       => true,
  123. -
  124.                           'primary_key'          => true,
  125. -
  126.                           'result_introspection' => false// not implemented
  127. -
  128.                           'prepared_statements'  => 'emulated',
  129. -
  130.                           'identifier_quoting'   => true,
  131. -
  132.                           'pattern_escaping'     => false,
  133. -
  134.                           );
  135. -
  136.         /**
  137. -
  138.         $this->options['base_transaction_name'] = '___php_Doctrine_sqlite_auto_commit_off';
  139. -
  140.         $this->options['fixed_float'] = 0;
  141. -
  142.         $this->options['database_path'] = '';
  143. -
  144.         $this->options['database_extension'] = '';
  145. -
  146.         $this->options['server_version'] = '';
  147. -
  148.         */
  149. -
  150.         parent::__construct($manager$adapter);
  151. -
  152.     }
  153. -
  154.     /**
  155. -
  156.      * initializes database functions missing in sqlite
  157. -
  158.      *
  159. -
  160.      * @see Doctrine_Expression
  161. -
  162.      * @return void 
  163. -
  164.      */
  165. -
  166.     public function connect(
  167. -
  168.     {
  169. -
  170.         parent::connect();
  171. -
  172.  
  173. -
  174.         $this->dbh->sqliteCreateFunction('mod',    array('Doctrine_Expression_Sqlite''modImpl')2);
  175. -
  176.         $this->dbh->sqliteCreateFunction('concat'array('Doctrine_Expression_Sqlite''concatImpl'));
  177. -
  178.         $this->dbh->sqliteCreateFunction('md5''md5'1);
  179. -
  180.         $this->dbh->sqliteCreateFunction('now''time'0);
  181. -
  182.     }
  183. -
  184.     /**
  185. -
  186.      * getDatabaseFile
  187. -
  188.      *
  189. -
  190.      * @param string $name      the name of the database
  191. -
  192.      * @return string 
  193. -
  194.      */
  195. -
  196.     public function getDatabaseFile($name)
  197. -
  198.     {
  199. -
  200.         return $name '.db';
  201. -
  202.     }
  203. -
  204. }
  205. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqliteException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqliteException.php.html deleted file mode 100644 index 5f307cd87..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionSqliteException.php.html +++ /dev/null @@ -1,85 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Sqlite_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var array $errorRegexps         an array that is used for determining portable
  73. -
  74.      *                                   error code from a native database error message
  75. -
  76.      */
  77. -
  78.     protected static $errorRegexps array(
  79. -
  80.                               '/^no such table:/'                    => Doctrine::ERR_NOSUCHTABLE,
  81. -
  82.                               '/^no such index:/'                    => Doctrine::ERR_NOT_FOUND,
  83. -
  84.                               '/^(table|index) .* already exists$/'  => Doctrine::ERR_ALREADY_EXISTS,
  85. -
  86.                               '/PRIMARY KEY must be unique/i'        => Doctrine::ERR_CONSTRAINT,
  87. -
  88.                               '/is not unique/'                      => Doctrine::ERR_CONSTRAINT,
  89. -
  90.                               '/columns .* are not unique/i'         => Doctrine::ERR_CONSTRAINT,
  91. -
  92.                               '/uniqueness constraint failed/'       => Doctrine::ERR_CONSTRAINT,
  93. -
  94.                               '/may not be NULL/'                    => Doctrine::ERR_CONSTRAINT_NOT_NULL,
  95. -
  96.                               '/^no such column:/'                   => Doctrine::ERR_NOSUCHFIELD,
  97. -
  98.                               '/column not present in both tables/i' => Doctrine::ERR_NOSUCHFIELD,
  99. -
  100.                               '/^near ".*": syntax error$/'          => Doctrine::ERR_SYNTAX,
  101. -
  102.                               '/[0-9]+ values for [0-9]+ columns/i'  => Doctrine::ERR_VALUE_COUNT_ON_ROW,
  103. -
  104.                               );
  105. -
  106.     /**
  107. -
  108.      * This method checks if native error code/message can be
  109. -
  110.      * converted into a portable code and then adds this
  111. -
  112.      * portable error code to $portableCode field
  113. -
  114.      *
  115. -
  116.      * @param array $errorInfo      error info array
  117. -
  118.      * @since 1.0
  119. -
  120.      * @see Doctrine::ERR_* constants
  121. -
  122.      * @see Doctrine_Connection::$portableCode
  123. -
  124.      * @return boolean              whether or not the error info processing was successfull
  125. -
  126.      *                               (the process is successfull if portable error code was found)
  127. -
  128.      */
  129. -
  130.     public function processErrorInfo(array $errorInfo)
  131. -
  132.     {
  133. -
  134.         foreach (self::$errorRegexps as $regexp => $code{
  135. -
  136.             if (preg_match($regexp$errorInfo[2])) {
  137. -
  138.  
  139. -
  140.                 $this->portableCode = $code;
  141. -
  142.                 return true;
  143. -
  144.             }
  145. -
  146.         }
  147. -
  148.         return false;
  149. -
  150.     }
  151. -
  152. }
  153. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionStatement.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionStatement.php.html deleted file mode 100644 index 72765d29d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionStatement.php.html +++ /dev/null @@ -1,446 +0,0 @@ - -
-

Source for file Statement.php

-

Documentation is available at Statement.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Statement.php 1532 2007-05-31 17:45:07Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Adapter_Statement_Interface');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_Statement
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1532 $
  62. -
  63.  */
  64. -
  65. class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interface
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * @var Doctrine_Connection $conn       Doctrine_Connection object, every connection
  72. -
  73.      *                                       statement holds an instance of Doctrine_Connection
  74. -
  75.      */
  76. -
  77.     protected $_conn;
  78. -
  79.     /**
  80. -
  81.      * @var mixed $_stmt                    PDOStatement object, boolean false or Doctrine_Adapter_Statement object
  82. -
  83.      */
  84. -
  85.     protected $_stmt;
  86. -
  87.     /**
  88. -
  89.      * constructor
  90. -
  91.      *
  92. -
  93.      * @param Doctrine_Connection $conn     Doctrine_Connection object, every connection
  94. -
  95.      *                                       statement holds an instance of Doctrine_Connection
  96. -
  97.      * @param mixed $stmt 
  98. -
  99.      */
  100. -
  101.     public function __construct(Doctrine_Connection $conn$stmt)
  102. -
  103.     {
  104. -
  105.         $this->_conn = $conn;
  106. -
  107.         $this->_stmt = $stmt;
  108. -
  109.  
  110. -
  111.         if ($stmt === false{
  112. -
  113.             throw new Doctrine_Exception('Unknown statement object given.');
  114. -
  115.         }
  116. -
  117.     }
  118. -
  119.     /**
  120. -
  121.      * getConnection
  122. -
  123.      * returns the connection object this statement uses
  124. -
  125.      *
  126. -
  127.      * @return Doctrine_Connection 
  128. -
  129.      */
  130. -
  131.     public function getConnection()
  132. -
  133.     {
  134. -
  135.         return $this->_conn;
  136. -
  137.     }
  138. -
  139.     public function getStatement()
  140. -
  141.     {
  142. -
  143.         return $this->_stmt;
  144. -
  145.     }
  146. -
  147.     public function getQuery()
  148. -
  149.     {
  150. -
  151.         return $this->_stmt->queryString;
  152. -
  153.     }
  154. -
  155.     /**
  156. -
  157.      * bindColumn
  158. -
  159.      * Bind a column to a PHP variable
  160. -
  161.      *
  162. -
  163.      * @param mixed $column         Number of the column (1-indexed) or name of the column in the result set.
  164. -
  165.      *                               If using the column name, be aware that the name should match
  166. -
  167.      *                               the case of the column, as returned by the driver.
  168. -
  169.      *
  170. -
  171.      * @param string $param         Name of the PHP variable to which the column will be bound.
  172. -
  173.      * @param integer $type         Data type of the parameter, specified by the Doctrine::PARAM_* constants.
  174. -
  175.      * @return boolean              Returns TRUE on success or FALSE on failure
  176. -
  177.      */
  178. -
  179.     public function bindColumn($column$param$type null)
  180. -
  181.     {
  182. -
  183.         if($type === null{
  184. -
  185.             return $this->_stmt->bindColumn($column$param);
  186. -
  187.         else {
  188. -
  189.             return $this->_stmt->bindColumn($column$param$type);
  190. -
  191.         }
  192. -
  193.     }
  194. -
  195.     /**
  196. -
  197.      * bindValue
  198. -
  199.      * Binds a value to a corresponding named or question mark
  200. -
  201.      * placeholder in the SQL statement that was use to prepare the statement.
  202. -
  203.      *
  204. -
  205.      * @param mixed $param          Parameter identifier. For a prepared statement using named placeholders,
  206. -
  207.      *                               this will be a parameter name of the form :name. For a prepared statement
  208. -
  209.      *                               using question mark placeholders, this will be the 1-indexed position of the parameter
  210. -
  211.      *
  212. -
  213.      * @param mixed $value          The value to bind to the parameter.
  214. -
  215.      * @param integer $type         Explicit data type for the parameter using the Doctrine::PARAM_* constants.
  216. -
  217.      *
  218. -
  219.      * @return boolean              Returns TRUE on success or FALSE on failure.
  220. -
  221.      */
  222. -
  223.     public function bindValue($param$value$type null)
  224. -
  225.     {
  226. -
  227.         if($type === null{
  228. -
  229.             return $this->_stmt->bindValue($param$value);
  230. -
  231.         else {
  232. -
  233.             return $this->_stmt->bindValue($param$value$type);
  234. -
  235.         }
  236. -
  237.     }
  238. -
  239.     /**
  240. -
  241.      * bindParam
  242. -
  243.      * Binds a PHP variable to a corresponding named or question mark placeholder in the
  244. -
  245.      * SQL statement that was use to prepare the statement. Unlike Doctrine_Adapter_Statement_Interface->bindValue(),
  246. -
  247.      * the variable is bound as a reference and will only be evaluated at the time
  248. -
  249.      * that Doctrine_Adapter_Statement_Interface->execute() is called.
  250. -
  251.      *
  252. -
  253.      * Most parameters are input parameters, that is, parameters that are
  254. -
  255.      * used in a read-only fashion to build up the query. Some drivers support the invocation
  256. -
  257.      * of stored procedures that return data as output parameters, and some also as input/output
  258. -
  259.      * parameters that both send in data and are updated to receive it.
  260. -
  261.      *
  262. -
  263.      * @param mixed $param          Parameter identifier. For a prepared statement using named placeholders,
  264. -
  265.      *                               this will be a parameter name of the form :name. For a prepared statement
  266. -
  267.      *                               using question mark placeholders, this will be the 1-indexed position of the parameter
  268. -
  269.      *
  270. -
  271.      * @param mixed $variable       Name of the PHP variable to bind to the SQL statement parameter.
  272. -
  273.      *
  274. -
  275.      * @param integer $type         Explicit data type for the parameter using the Doctrine::PARAM_* constants. To return
  276. -
  277.      *                               an INOUT parameter from a stored procedure, use the bitwise OR operator to set the
  278. -
  279.      *                               Doctrine::PARAM_INPUT_OUTPUT bits for the data_type parameter.
  280. -
  281.      *
  282. -
  283.      * @param integer $length       Length of the data type. To indicate that a parameter is an OUT parameter
  284. -
  285.      *                               from a stored procedure, you must explicitly set the length.
  286. -
  287.      * @param mixed $driverOptions 
  288. -
  289.      * @return boolean              Returns TRUE on success or FALSE on failure.
  290. -
  291.      */
  292. -
  293.     public function bindParam($column$variable$type null$length null$driverOptions array())
  294. -
  295.     {
  296. -
  297.         if($type === null{
  298. -
  299.             return $this->_stmt->bindParam($column$variable);
  300. -
  301.         else {
  302. -
  303.             return $this->_stmt->bindParam($column$variable$type$length$driverOptions);
  304. -
  305.         }
  306. -
  307.     }
  308. -
  309.     /**
  310. -
  311.      * closeCursor
  312. -
  313.      * Closes the cursor, enabling the statement to be executed again.
  314. -
  315.      *
  316. -
  317.      * @return boolean              Returns TRUE on success or FALSE on failure.
  318. -
  319.      */
  320. -
  321.     public function closeCursor()
  322. -
  323.     {
  324. -
  325.         return $this->_stmt->closeCursor();
  326. -
  327.     }
  328. -
  329.     /**
  330. -
  331.      * columnCount
  332. -
  333.      * Returns the number of columns in the result set
  334. -
  335.      *
  336. -
  337.      * @return integer              Returns the number of columns in the result set represented
  338. -
  339.      *                               by the Doctrine_Adapter_Statement_Interface object. If there is no result set,
  340. -
  341.      *                               this method should return 0.
  342. -
  343.      */
  344. -
  345.     public function columnCount()
  346. -
  347.     {
  348. -
  349.         return $this->_stmt->columnCount();
  350. -
  351.     }
  352. -
  353.     /**
  354. -
  355.      * errorCode
  356. -
  357.      * Fetch the SQLSTATE associated with the last operation on the statement handle
  358. -
  359.      *
  360. -
  361.      * @see Doctrine_Adapter_Interface::errorCode()
  362. -
  363.      * @return string       error code string
  364. -
  365.      */
  366. -
  367.     public function errorCode()
  368. -
  369.     {
  370. -
  371.         return $this->_stmt->errorCode();
  372. -
  373.     }
  374. -
  375.     /**
  376. -
  377.      * errorInfo
  378. -
  379.      * Fetch extended error information associated with the last operation on the statement handle
  380. -
  381.      *
  382. -
  383.      * @see Doctrine_Adapter_Interface::errorInfo()
  384. -
  385.      * @return array        error info array
  386. -
  387.      */
  388. -
  389.     public function errorInfo()
  390. -
  391.     {
  392. -
  393.         return $this->_stmt->errorInfo();
  394. -
  395.     }
  396. -
  397.     /**
  398. -
  399.      * execute
  400. -
  401.      * Executes a prepared statement
  402. -
  403.      *
  404. -
  405.      * If the prepared statement included parameter markers, you must either:
  406. -
  407.      * call PDOStatement->bindParam() to bind PHP variables to the parameter markers:
  408. -
  409.      * bound variables pass their value as input and receive the output value,
  410. -
  411.      * if any, of their associated parameter markers or pass an array of input-only
  412. -
  413.      * parameter values
  414. -
  415.      *
  416. -
  417.      *
  418. -
  419.      * @param array $params             An array of values with as many elements as there are
  420. -
  421.      *                                   bound parameters in the SQL statement being executed.
  422. -
  423.      * @return boolean                  Returns TRUE on success or FALSE on failure.
  424. -
  425.      */
  426. -
  427.     public function execute($params null)
  428. -
  429.     {
  430. -
  431.         try {
  432. -
  433.             $event new Doctrine_Event($thisDoctrine_Event::STMT_EXECUTE$this->getQuery()$params);
  434. -
  435.             $this->_conn->getListener()->preStmtExecute($event);
  436. -
  437.  
  438. -
  439.             $result true;
  440. -
  441.             if $event->skipOperation{
  442. -
  443.                 $result $this->_stmt->execute($params);
  444. -
  445.                 $this->_conn->incrementQueryCount();
  446. -
  447.             }
  448. -
  449.  
  450. -
  451.             $this->_conn->getListener()->postStmtExecute($event);
  452. -
  453.  
  454. -
  455.             return $result;
  456. -
  457.         catch (PDOException $e{
  458. -
  459.         catch (Doctrine_Adapter_Exception $e{
  460. -
  461.         }
  462. -
  463.  
  464. -
  465.         $this->_conn->rethrowException($e$this);
  466. -
  467.  
  468. -
  469.         return false;
  470. -
  471.     }
  472. -
  473.     /**
  474. -
  475.      * fetch
  476. -
  477.      *
  478. -
  479.      * @see Doctrine::FETCH_* constants
  480. -
  481.      * @param integer $fetchStyle           Controls how the next row will be returned to the caller.
  482. -
  483.      *                                       This value must be one of the Doctrine::FETCH_* constants,
  484. -
  485.      *                                       defaulting to Doctrine::FETCH_BOTH
  486. -
  487.      *
  488. -
  489.      * @param integer $cursorOrientation    For a PDOStatement object representing a scrollable cursor,
  490. -
  491.      *                                       this value determines which row will be returned to the caller.
  492. -
  493.      *                                       This value must be one of the Doctrine::FETCH_ORI_* constants, defaulting to
  494. -
  495.      *                                       Doctrine::FETCH_ORI_NEXT. To request a scrollable cursor for your
  496. -
  497.      *                                       Doctrine_Adapter_Statement_Interface object,
  498. -
  499.      *                                       you must set the Doctrine::ATTR_CURSOR attribute to Doctrine::CURSOR_SCROLL when you
  500. -
  501.      *                                       prepare the SQL statement with Doctrine_Adapter_Interface->prepare().
  502. -
  503.      *
  504. -
  505.      * @param integer $cursorOffset         For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for which the
  506. -
  507.      *                                       $cursorOrientation parameter is set to Doctrine::FETCH_ORI_ABS, this value specifies
  508. -
  509.      *                                       the absolute number of the row in the result set that shall be fetched.
  510. -
  511.      *
  512. -
  513.      *                                       For a Doctrine_Adapter_Statement_Interface object representing a scrollable cursor for
  514. -
  515.      *                                       which the $cursorOrientation parameter is set to Doctrine::FETCH_ORI_REL, this value
  516. -
  517.      *                                       specifies the row to fetch relative to the cursor position before
  518. -
  519.      *                                       Doctrine_Adapter_Statement_Interface->fetch() was called.
  520. -
  521.      *
  522. -
  523.      * @return mixed 
  524. -
  525.      */
  526. -
  527.     public function fetch($fetchMode Doctrine::FETCH_BOTH,
  528. -
  529.                           $cursorOrientation Doctrine::FETCH_ORI_NEXT,
  530. -
  531.                           $cursorOffset null)
  532. -
  533.     {
  534. -
  535.         $event new Doctrine_Event($thisDoctrine_Event::STMT_FETCH$this->getQuery());
  536. -
  537.  
  538. -
  539.         $event->fetchMode $fetchMode;
  540. -
  541.         $event->cursorOrientation $cursorOrientation;
  542. -
  543.         $event->cursorOffset $cursorOffset;
  544. -
  545.  
  546. -
  547.         $data $this->_conn->getListener()->preFetch($event);
  548. -
  549.  
  550. -
  551.         if $event->skipOperation{
  552. -
  553.             $data $this->_stmt->fetch($fetchMode$cursorOrientation$cursorOffset);
  554. -
  555.         }
  556. -
  557.  
  558. -
  559.         $this->_conn->getListener()->postFetch($event);
  560. -
  561.  
  562. -
  563.         return $data;
  564. -
  565.     }
  566. -
  567.     /**
  568. -
  569.      * fetchAll
  570. -
  571.      * Returns an array containing all of the result set rows
  572. -
  573.      *
  574. -
  575.      * @param integer $fetchMode            Controls how the next row will be returned to the caller.
  576. -
  577.      *                                       This value must be one of the Doctrine::FETCH_* constants,
  578. -
  579.      *                                       defaulting to Doctrine::FETCH_BOTH
  580. -
  581.      *
  582. -
  583.      * @param integer $columnIndex          Returns the indicated 0-indexed column when the value of $fetchStyle is
  584. -
  585.      *                                       Doctrine::FETCH_COLUMN. Defaults to 0.
  586. -
  587.      *
  588. -
  589.      * @return array 
  590. -
  591.      */
  592. -
  593.     public function fetchAll($fetchMode Doctrine::FETCH_BOTH,
  594. -
  595.                              $columnIndex null)
  596. -
  597.     {
  598. -
  599.         $event new Doctrine_Event($thisDoctrine_Event::STMT_FETCHALL$this->getQuery());
  600. -
  601.         $event->fetchMode $fetchMode;
  602. -
  603.         $event->columnIndex $columnIndex;
  604. -
  605.  
  606. -
  607.         $this->_conn->getListener()->preFetchAll($event);
  608. -
  609.  
  610. -
  611.         if $event->skipOperation{
  612. -
  613.             if ($columnIndex !== null{
  614. -
  615.                 $data $this->_stmt->fetchAll($fetchMode$columnIndex);
  616. -
  617.             else {
  618. -
  619.                 $data $this->_stmt->fetchAll($fetchMode);
  620. -
  621.             }
  622. -
  623.  
  624. -
  625.             $event->data $data;
  626. -
  627.         }
  628. -
  629.  
  630. -
  631.         $this->_conn->getListener()->postFetchAll($event);
  632. -
  633.  
  634. -
  635.         return $data;
  636. -
  637.     }
  638. -
  639.     /**
  640. -
  641.      * fetchColumn
  642. -
  643.      * Returns a single column from the next row of a
  644. -
  645.      * result set or FALSE if there are no more rows.
  646. -
  647.      *
  648. -
  649.      * @param integer $columnIndex          0-indexed number of the column you wish to retrieve from the row. If no
  650. -
  651.      *                                       value is supplied, Doctrine_Adapter_Statement_Interface->fetchColumn()
  652. -
  653.      *                                       fetches the first column.
  654. -
  655.      *
  656. -
  657.      * @return string                       returns a single column in the next row of a result set.
  658. -
  659.      */
  660. -
  661.     public function fetchColumn($columnIndex 0)
  662. -
  663.     {
  664. -
  665.         return $this->_stmt->fetchColumn($columnIndex);
  666. -
  667.     }
  668. -
  669.     /**
  670. -
  671.      * fetchObject
  672. -
  673.      * Fetches the next row and returns it as an object.
  674. -
  675.      *
  676. -
  677.      * Fetches the next row and returns it as an object. This function is an alternative to
  678. -
  679.      * Doctrine_Adapter_Statement_Interface->fetch() with Doctrine::FETCH_CLASS or Doctrine::FETCH_OBJ style.
  680. -
  681.      *
  682. -
  683.      * @param string $className             Name of the created class, defaults to stdClass.
  684. -
  685.      * @param array $args                   Elements of this array are passed to the constructor.
  686. -
  687.      *
  688. -
  689.      * @return mixed                        an instance of the required class with property names that correspond
  690. -
  691.      *                                       to the column names or FALSE in case of an error.
  692. -
  693.      */
  694. -
  695.     public function fetchObject($className 'stdClass'$args array())
  696. -
  697.     {
  698. -
  699.         return $this->_stmt->fetchObject($className$args);
  700. -
  701.     }
  702. -
  703.     /**
  704. -
  705.      * getAttribute
  706. -
  707.      * Retrieve a statement attribute
  708. -
  709.      *
  710. -
  711.      * @param integer $attribute 
  712. -
  713.      * @see Doctrine::ATTR_* constants
  714. -
  715.      * @return mixed                        the attribute value
  716. -
  717.      */
  718. -
  719.     public function getAttribute($attribute)
  720. -
  721.     {
  722. -
  723.         return $this->_stmt->getAttribute($attribute);
  724. -
  725.     }
  726. -
  727.     /**
  728. -
  729.      * getColumnMeta
  730. -
  731.      * Returns metadata for a column in a result set
  732. -
  733.      *
  734. -
  735.      * @param integer $column               The 0-indexed column in the result set.
  736. -
  737.      *
  738. -
  739.      * @return array                        Associative meta data array with the following structure:
  740. -
  741.      *
  742. -
  743.      *           native_type                 The PHP native type used to represent the column value.
  744. -
  745.      *           driver:decl_                type The SQL type used to represent the column value in the database. If the column in the result set is the result of a function, this value is not returned by PDOStatement->getColumnMeta().
  746. -
  747.      *           flags                       Any flags set for this column.
  748. -
  749.      *           name                        The name of this column as returned by the database.
  750. -
  751.      *           len                         The length of this column. Normally -1 for types other than floating point decimals.
  752. -
  753.      *           precision                   The numeric precision of this column. Normally 0 for types other than floating point decimals.
  754. -
  755.      *           pdo_type                    The type of this column as represented by the PDO::PARAM_* constants.
  756. -
  757.      */
  758. -
  759.     public function getColumnMeta($column)
  760. -
  761.     {
  762. -
  763.         return $this->_stmt->getColumnMeta($column);
  764. -
  765.     }
  766. -
  767.     /**
  768. -
  769.      * nextRowset
  770. -
  771.      * Advances to the next rowset in a multi-rowset statement handle
  772. -
  773.      *
  774. -
  775.      * Some database servers support stored procedures that return more than one rowset
  776. -
  777.      * (also known as a result set). The nextRowset() method enables you to access the second
  778. -
  779.      * and subsequent rowsets associated with a PDOStatement object. Each rowset can have a
  780. -
  781.      * different set of columns from the preceding rowset.
  782. -
  783.      *
  784. -
  785.      * @return boolean                      Returns TRUE on success or FALSE on failure.
  786. -
  787.      */
  788. -
  789.     public function nextRowset()
  790. -
  791.     {
  792. -
  793.         return $this->_stmt->nextRowset();
  794. -
  795.     }
  796. -
  797.     /**
  798. -
  799.      * rowCount
  800. -
  801.      * rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement
  802. -
  803.      * executed by the corresponding object.
  804. -
  805.      *
  806. -
  807.      * If the last SQL statement executed by the associated Statement object was a SELECT statement,
  808. -
  809.      * some databases may return the number of rows returned by that statement. However,
  810. -
  811.      * this behaviour is not guaranteed for all databases and should not be
  812. -
  813.      * relied on for portable applications.
  814. -
  815.      *
  816. -
  817.      * @return integer                      Returns the number of rows.
  818. -
  819.      */
  820. -
  821.     public function rowCount()
  822. -
  823.     {
  824. -
  825.         return $this->_stmt->rowCount();
  826. -
  827.     }
  828. -
  829.     /**
  830. -
  831.      * setAttribute
  832. -
  833.      * Set a statement attribute
  834. -
  835.      *
  836. -
  837.      * @param integer $attribute 
  838. -
  839.      * @param mixed $value                  the value of given attribute
  840. -
  841.      * @return boolean                      Returns TRUE on success or FALSE on failure.
  842. -
  843.      */
  844. -
  845.     public function setAttribute($attribute$value)
  846. -
  847.     {
  848. -
  849.         return $this->_stmt->setAttribute($attribute$value);
  850. -
  851.     }
  852. -
  853.     /**
  854. -
  855.      * setFetchMode
  856. -
  857.      * Set the default fetch mode for this statement
  858. -
  859.      *
  860. -
  861.      * @param integer $mode                 The fetch mode must be one of the Doctrine::FETCH_* constants.
  862. -
  863.      * @return boolean                      Returns 1 on success or FALSE on failure.
  864. -
  865.      */
  866. -
  867.     public function setFetchMode($mode$arg1 null$arg2 null)
  868. -
  869.     {
  870. -
  871.         return $this->_stmt->setFetchMode($mode$arg1$arg2);
  872. -
  873.     }
  874. -
  875. }
  876. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionUnitOfWork.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionUnitOfWork.php.html deleted file mode 100644 index 6c4170f93..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineConnectionUnitOfWork.php.html +++ /dev/null @@ -1,549 +0,0 @@ - -
-

Source for file UnitOfWork.php

-

Documentation is available at UnitOfWork.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: UnitOfWork.php 2197 2007-08-10 20:35:25Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Connection_UnitOfWork
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2197 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * buildFlushTree
  71. -
  72.      * builds a flush tree that is used in transactions
  73. -
  74.      *
  75. -
  76.      * The returned array has all the initialized components in
  77. -
  78.      * 'correct' order. Basically this means that the records of those
  79. -
  80.      * components can be saved safely in the order specified by the returned array.
  81. -
  82.      *
  83. -
  84.      * @param array $tables     an array of Doctrine_Table objects or component names
  85. -
  86.      * @return array            an array of component names in flushing order
  87. -
  88.      */
  89. -
  90.     public function buildFlushTree(array $tables)
  91. -
  92.     {
  93. -
  94.         $tree array();
  95. -
  96.         foreach ($tables as $k => $table{
  97. -
  98.  
  99. -
  100.             if ($table instanceof Doctrine_Table)) {
  101. -
  102.                 $table $this->conn->getTable($tablefalse);
  103. -
  104.             }
  105. -
  106.             $nm     $table->getComponentName();
  107. -
  108.  
  109. -
  110.             $index  array_search($nm$tree);
  111. -
  112.  
  113. -
  114.             if ($index === false{
  115. -
  116.                 $tree[$nm;
  117. -
  118.                 $index  max(array_keys($tree));
  119. -
  120.             }
  121. -
  122.  
  123. -
  124.             $rels $table->getRelations();
  125. -
  126.  
  127. -
  128.             // group relations
  129. -
  130.  
  131. -
  132.             foreach ($rels as $key => $rel{
  133. -
  134.                 if ($rel instanceof Doctrine_Relation_ForeignKey{
  135. -
  136.                     unset($rels[$key]);
  137. -
  138.                     array_unshift($rels$rel);
  139. -
  140.                 }
  141. -
  142.             }
  143. -
  144.  
  145. -
  146.             foreach ($rels as $rel{
  147. -
  148.                 $name   $rel->getTable()->getComponentName();
  149. -
  150.                 $index2 array_search($name,$tree);
  151. -
  152.                 $type   $rel->getType();
  153. -
  154.  
  155. -
  156.                 // skip self-referenced relations
  157. -
  158.                 if ($name === $nm{
  159. -
  160.                     continue;
  161. -
  162.                 }
  163. -
  164.  
  165. -
  166.                 if ($rel instanceof Doctrine_Relation_ForeignKey{
  167. -
  168.                     if ($index2 !== false{
  169. -
  170.                         if ($index2 >= $index)
  171. -
  172.                             continue;
  173. -
  174.  
  175. -
  176.                         unset($tree[$index]);
  177. -
  178.                         array_splice($tree,$index2,0,$nm);
  179. -
  180.                         $index $index2;
  181. -
  182.                     else {
  183. -
  184.                         $tree[$name;
  185. -
  186.                     }
  187. -
  188.  
  189. -
  190.                 elseif ($rel instanceof Doctrine_Relation_LocalKey{
  191. -
  192.                     if ($index2 !== false{
  193. -
  194.                         if ($index2 <= $index)
  195. -
  196.                             continue;
  197. -
  198.  
  199. -
  200.                         unset($tree[$index2]);
  201. -
  202.                         array_splice($tree,$index,0,$name);
  203. -
  204.                     else {
  205. -
  206.                         array_unshift($tree,$name);
  207. -
  208.                         $index++;
  209. -
  210.                     }
  211. -
  212.                 elseif ($rel instanceof Doctrine_Relation_Association{
  213. -
  214.                     $t $rel->getAssociationFactory();
  215. -
  216.                     $n $t->getComponentName();
  217. -
  218.  
  219. -
  220.                     if ($index2 !== false)
  221. -
  222.                         unset($tree[$index2]);
  223. -
  224.  
  225. -
  226.                     array_splice($tree$index0$name);
  227. -
  228.                     $index++;
  229. -
  230.  
  231. -
  232.                     $index3 array_search($n$tree);
  233. -
  234.  
  235. -
  236.                     if ($index3 !== false{
  237. -
  238.                         if ($index3 >= $index)
  239. -
  240.                             continue;
  241. -
  242.  
  243. -
  244.                         unset($tree[$index]);
  245. -
  246.                         array_splice($tree$index30$n);
  247. -
  248.                         $index $index2;
  249. -
  250.                     else {
  251. -
  252.                         $tree[$n;
  253. -
  254.                     }
  255. -
  256.                 }
  257. -
  258.             }
  259. -
  260.         }
  261. -
  262.         return array_values($tree);
  263. -
  264.     }
  265. -
  266.     /**
  267. -
  268.      * saves the given record
  269. -
  270.      *
  271. -
  272.      * @param Doctrine_Record $record 
  273. -
  274.      * @return void 
  275. -
  276.      */
  277. -
  278.     public function saveGraph(Doctrine_Record $record)
  279. -
  280.     {
  281. -
  282.         $conn $this->getConnection();
  283. -
  284.  
  285. -
  286.         $state $record->state();
  287. -
  288.         if ($state === Doctrine_Record::STATE_LOCKED{
  289. -
  290.             return false;
  291. -
  292.         }
  293. -
  294.  
  295. -
  296.         $record->state(Doctrine_Record::STATE_LOCKED);
  297. -
  298.  
  299. -
  300.         $conn->beginTransaction();
  301. -
  302.  
  303. -
  304.         $saveLater $this->saveRelated($record);
  305. -
  306.  
  307. -
  308.         $record->state($state);
  309. -
  310.  
  311. -
  312.         if ($record->isValid()) {
  313. -
  314.             $event new Doctrine_Event($recordDoctrine_Event::RECORD_SAVE);
  315. -
  316.  
  317. -
  318.             $record->preSave($event);
  319. -
  320.     
  321. -
  322.             $record->getTable()->getRecordListener()->preSave($event);
  323. -
  324.  
  325. -
  326.             if $event->skipOperation{
  327. -
  328.                 switch ($state{
  329. -
  330.                     case Doctrine_Record::STATE_TDIRTY:
  331. -
  332.                         $this->insert($record);
  333. -
  334.                         break;
  335. -
  336.                     case Doctrine_Record::STATE_DIRTY:
  337. -
  338.                     case Doctrine_Record::STATE_PROXY:
  339. -
  340.                         $this->update($record);
  341. -
  342.                         break;
  343. -
  344.                     case Doctrine_Record::STATE_CLEAN:
  345. -
  346.                     case Doctrine_Record::STATE_TCLEAN:
  347. -
  348.  
  349. -
  350.                         break;
  351. -
  352.                 }
  353. -
  354.             }
  355. -
  356.  
  357. -
  358.             $record->getTable()->getRecordListener()->postSave($event);
  359. -
  360.             
  361. -
  362.             $record->postSave($event);
  363. -
  364.         else {
  365. -
  366.             $conn->transaction->addInvalid($record);
  367. -
  368.         }
  369. -
  370.         
  371. -
  372.         $state $record->state();
  373. -
  374.  
  375. -
  376.         $record->state(Doctrine_Record::STATE_LOCKED);
  377. -
  378.  
  379. -
  380.         foreach ($saveLater as $fk{
  381. -
  382.             $alias $fk->getAlias();
  383. -
  384.  
  385. -
  386.             if ($record->hasReference($alias)) {
  387. -
  388.                 $obj $record->$alias;
  389. -
  390.                 $obj->save($conn);
  391. -
  392.             }
  393. -
  394.         }
  395. -
  396.  
  397. -
  398.         // save the MANY-TO-MANY associations
  399. -
  400.         $this->saveAssociations($record);
  401. -
  402.  
  403. -
  404.         $record->state($state);
  405. -
  406.  
  407. -
  408.         $conn->commit();
  409. -
  410.  
  411. -
  412.         return true;
  413. -
  414.     }
  415. -
  416.     /**
  417. -
  418.      * saves the given record
  419. -
  420.      *
  421. -
  422.      * @param Doctrine_Record $record 
  423. -
  424.      * @return void 
  425. -
  426.      */
  427. -
  428.     public function save(Doctrine_Record $record)
  429. -
  430.     {
  431. -
  432.         $event new Doctrine_Event($recordDoctrine_Event::RECORD_SAVE);
  433. -
  434.  
  435. -
  436.         $record->preSave($event);
  437. -
  438.  
  439. -
  440.         $record->getTable()->getRecordListener()->preSave($event);
  441. -
  442.  
  443. -
  444.         if $event->skipOperation{
  445. -
  446.             switch ($record->state()) {
  447. -
  448.                 case Doctrine_Record::STATE_TDIRTY:
  449. -
  450.                     $this->insert($record);
  451. -
  452.                     break;
  453. -
  454.                 case Doctrine_Record::STATE_DIRTY:
  455. -
  456.                 case Doctrine_Record::STATE_PROXY:
  457. -
  458.                     $this->update($record);
  459. -
  460.                     break;
  461. -
  462.                 case Doctrine_Record::STATE_CLEAN:
  463. -
  464.                 case Doctrine_Record::STATE_TCLEAN:
  465. -
  466.                     // do nothing
  467. -
  468.                     break;
  469. -
  470.             }
  471. -
  472.         }
  473. -
  474.  
  475. -
  476.         $record->getTable()->getRecordListener()->postSave($event);
  477. -
  478.         
  479. -
  480.         $record->postSave($event);
  481. -
  482.     }
  483. -
  484.     /**
  485. -
  486.      * deletes given record and all the related composites
  487. -
  488.      * this operation is isolated by a transaction
  489. -
  490.      *
  491. -
  492.      * this event can be listened by the onPreDelete and onDelete listeners
  493. -
  494.      *
  495. -
  496.      * @return boolean      true on success, false on failure
  497. -
  498.      */
  499. -
  500.     public function delete(Doctrine_Record $record)
  501. -
  502.     {
  503. -
  504.         if $record->exists()) {
  505. -
  506.             return false;
  507. -
  508.         }
  509. -
  510.         $this->conn->beginTransaction();
  511. -
  512.  
  513. -
  514.         $event new Doctrine_Event($recordDoctrine_Event::RECORD_DELETE);
  515. -
  516.  
  517. -
  518.         $record->preDelete($event);
  519. -
  520.         
  521. -
  522.         $record->getTable()->getRecordListener()->preDelete($event);
  523. -
  524.  
  525. -
  526.         $record->state(Doctrine_Record::STATE_LOCKED);
  527. -
  528.  
  529. -
  530.         $this->deleteComposites($record);
  531. -
  532.         
  533. -
  534.         $record->state(Doctrine_Record::STATE_TDIRTY);
  535. -
  536.  
  537. -
  538.         if $event->skipOperation{
  539. -
  540.             $this->conn->transaction->addDelete($record);
  541. -
  542.  
  543. -
  544.             $record->state(Doctrine_Record::STATE_TCLEAN);
  545. -
  546.         }
  547. -
  548.         
  549. -
  550.         $record->getTable()->getRecordListener()->postDelete($event);
  551. -
  552.  
  553. -
  554.         $record->postDelete($event);
  555. -
  556.  
  557. -
  558.         $this->conn->commit();
  559. -
  560.  
  561. -
  562.         return true;
  563. -
  564.     }
  565. -
  566.  
  567. -
  568.     /**
  569. -
  570.      * saveRelated
  571. -
  572.      * saves all related records to $record
  573. -
  574.      *
  575. -
  576.      * @throws PDOException         if something went wrong at database level
  577. -
  578.      * @param Doctrine_Record $record 
  579. -
  580.      */
  581. -
  582.     public function saveRelated(Doctrine_Record $record)
  583. -
  584.     {
  585. -
  586.         $saveLater array();
  587. -
  588.         foreach ($record->getReferences(as $k => $v{
  589. -
  590.             $rel $record->getTable()->getRelation($k);
  591. -
  592.  
  593. -
  594.             $local $rel->getLocal();
  595. -
  596.             $foreign $rel->getForeign();
  597. -
  598.  
  599. -
  600.             if ($rel instanceof Doctrine_Relation_ForeignKey{
  601. -
  602.                 $saveLater[$k$rel;
  603. -
  604.             elseif ($rel instanceof Doctrine_Relation_LocalKey{
  605. -
  606.                 // ONE-TO-ONE relationship
  607. -
  608.                 $obj $record->get($rel->getAlias());
  609. -
  610.  
  611. -
  612.                 // Protection against infinite function recursion before attempting to save
  613. -
  614.                 if ($obj instanceof Doctrine_Record &&
  615. -
  616.                     $obj->isModified()) {
  617. -
  618.                     $obj->save($this->conn);
  619. -
  620.                 }
  621. -
  622.             }
  623. -
  624.         }
  625. -
  626.  
  627. -
  628.         return $saveLater;
  629. -
  630.     }
  631. -
  632.     /**
  633. -
  634.      * saveAssociations
  635. -
  636.      *
  637. -
  638.      * this method takes a diff of one-to-many / many-to-many original and
  639. -
  640.      * current collections and applies the changes
  641. -
  642.      *
  643. -
  644.      * for example if original many-to-many related collection has records with
  645. -
  646.      * primary keys 1,2 and 3 and the new collection has records with primary keys
  647. -
  648.      * 3, 4 and 5, this method would first destroy the associations to 1 and 2 and then
  649. -
  650.      * save new associations to 4 and 5
  651. -
  652.      *
  653. -
  654.      * @throws PDOException         if something went wrong at database level
  655. -
  656.      * @param Doctrine_Record $record 
  657. -
  658.      * @return void 
  659. -
  660.      */
  661. -
  662.     public function saveAssociations(Doctrine_Record $record)
  663. -
  664.     {
  665. -
  666.         foreach ($record->getReferences(as $k => $v{
  667. -
  668.             $rel $record->getTable()->getRelation($k);
  669. -
  670.             
  671. -
  672.             if ($rel instanceof Doctrine_Relation_Association{   
  673. -
  674.                 $v->save($this->conn);
  675. -
  676.  
  677. -
  678.                 $assocTable $rel->getAssociationTable();
  679. -
  680.                 foreach ($v->getDeleteDiff(as $r{
  681. -
  682.                     $query 'DELETE FROM ' $assocTable->getTableName()
  683. -
  684.                            . ' WHERE ' $rel->getForeign(' = ?'
  685. -
  686.                            . ' AND ' $rel->getLocal(' = ?';
  687. -
  688.  
  689. -
  690.                     $this->conn->execute($queryarray($r->getIncremented()$record->getIncremented()));
  691. -
  692.                 }
  693. -
  694.  
  695. -
  696.                 foreach ($v->getInsertDiff(as $r{
  697. -
  698.                     $assocRecord $assocTable->create();
  699. -
  700.                     $assocRecord->set($rel->getForeign()$r);
  701. -
  702.                     $assocRecord->set($rel->getLocal()$record);
  703. -
  704.  
  705. -
  706.                     $this->saveGraph($assocRecord);
  707. -
  708.                 }
  709. -
  710.             }
  711. -
  712.         }
  713. -
  714.     }
  715. -
  716.     /**
  717. -
  718.      * deletes all related composites
  719. -
  720.      * this method is always called internally when a record is deleted
  721. -
  722.      *
  723. -
  724.      * @throws PDOException         if something went wrong at database level
  725. -
  726.      * @return void 
  727. -
  728.      */
  729. -
  730.     public function deleteComposites(Doctrine_Record $record)
  731. -
  732.     {
  733. -
  734.         foreach ($record->getTable()->getRelations(as $fk{
  735. -
  736.             switch ($fk->getType()) {
  737. -
  738.                 case Doctrine_Relation::ONE_COMPOSITE:
  739. -
  740.                 case Doctrine_Relation::MANY_COMPOSITE:
  741. -
  742.                     $obj $record->get($fk->getAlias());
  743. -
  744.                     if $obj instanceof Doctrine_Record && 
  745. -
  746.                            $obj->state(!= Doctrine_Record::STATE_LOCKED)  {
  747. -
  748.                             
  749. -
  750.                             $obj->delete($this->conn);
  751. -
  752.                                
  753. -
  754.                     }
  755. -
  756.                     break;
  757. -
  758.             }
  759. -
  760.         }
  761. -
  762.     }
  763. -
  764.     /**
  765. -
  766.      * saveAll
  767. -
  768.      * persists all the pending records from all tables
  769. -
  770.      *
  771. -
  772.      * @throws PDOException         if something went wrong at database level
  773. -
  774.      * @return void 
  775. -
  776.      */
  777. -
  778.     public function saveAll()
  779. -
  780.     {
  781. -
  782.         // get the flush tree
  783. -
  784.         $tree $this->buildFlushTree($this->conn->getTables());
  785. -
  786.  
  787. -
  788.         // save all records
  789. -
  790.         foreach ($tree as $name{
  791. -
  792.             $table $this->conn->getTable($name);
  793. -
  794.  
  795. -
  796.             foreach ($table->getRepository(as $record{
  797. -
  798.                 $this->save($record);
  799. -
  800.             }
  801. -
  802.         }
  803. -
  804.  
  805. -
  806.         // save all associations
  807. -
  808.         foreach ($tree as $name{
  809. -
  810.             $table $this->conn->getTable($name);
  811. -
  812.  
  813. -
  814.             foreach ($table->getRepository(as $record{
  815. -
  816.                 $this->saveAssociations($record);
  817. -
  818.             }
  819. -
  820.         }
  821. -
  822.     }
  823. -
  824.     /**
  825. -
  826.      * update
  827. -
  828.      * updates the given record
  829. -
  830.      *
  831. -
  832.      * @param Doctrine_Record $record   record to be updated
  833. -
  834.      * @return boolean                  whether or not the update was successful
  835. -
  836.      */
  837. -
  838.     public function update(Doctrine_Record $record)
  839. -
  840.     {
  841. -
  842.         $event new Doctrine_Event($recordDoctrine_Event::RECORD_UPDATE);
  843. -
  844.  
  845. -
  846.         $record->preUpdate($event);
  847. -
  848.  
  849. -
  850.         $record->getTable()->getRecordListener()->preUpdate($event);
  851. -
  852.  
  853. -
  854.         if $event->skipOperation{
  855. -
  856.             $array $record->getPrepared();
  857. -
  858.  
  859. -
  860.             if (empty($array)) {
  861. -
  862.                 return false;
  863. -
  864.             }
  865. -
  866.             $set array();
  867. -
  868.             foreach ($array as $name => $value{
  869. -
  870.                 if ($value instanceof Doctrine_Expression{
  871. -
  872.                     $set[$value->getSql();
  873. -
  874.                     unset($array[$name]);
  875. -
  876.                 else {
  877. -
  878.  
  879. -
  880.                     $set[$name ' = ?';
  881. -
  882.     
  883. -
  884.                     if ($value instanceof Doctrine_Record{
  885. -
  886.                         if $value->exists()) {
  887. -
  888.                             $record->save($this->conn);
  889. -
  890.                         }
  891. -
  892.                         $array[$name$value->getIncremented();
  893. -
  894.                         $record->set($name$value->getIncremented());
  895. -
  896.                     }
  897. -
  898.                 }
  899. -
  900.             }
  901. -
  902.  
  903. -
  904.             $params array_values($array);
  905. -
  906.             $id     $record->identifier();
  907. -
  908.     
  909. -
  910.             if is_array($id)) {
  911. -
  912.                 $id array($id);
  913. -
  914.             }
  915. -
  916.             $id     array_values($id);
  917. -
  918.             $params array_merge($params$id);
  919. -
  920.     
  921. -
  922.             $sql  'UPDATE ' $this->conn->quoteIdentifier($record->getTable()->getTableName())
  923. -
  924.                   . ' SET ' implode(', '$set)
  925. -
  926.                   . ' WHERE ' implode(' = ? AND '$record->getTable()->getPrimaryKeys())
  927. -
  928.                   . ' = ?';
  929. -
  930.     
  931. -
  932.             $stmt $this->conn->prepare($sql);
  933. -
  934.             $stmt->execute($params);
  935. -
  936.     
  937. -
  938.             $record->assignIdentifier(true);
  939. -
  940.         }
  941. -
  942.         
  943. -
  944.         $record->getTable()->getRecordListener()->postUpdate($event);
  945. -
  946.  
  947. -
  948.         $record->postUpdate($event);
  949. -
  950.  
  951. -
  952.         return true;
  953. -
  954.     }
  955. -
  956.     /**
  957. -
  958.      * inserts a record into database
  959. -
  960.      *
  961. -
  962.      * @param Doctrine_Record $record   record to be inserted
  963. -
  964.      * @return boolean 
  965. -
  966.      */
  967. -
  968.     public function insert(Doctrine_Record $record)
  969. -
  970.     {
  971. -
  972.          // listen the onPreInsert event
  973. -
  974.         $event new Doctrine_Event($recordDoctrine_Event::RECORD_INSERT);
  975. -
  976.  
  977. -
  978.         $record->preInsert($event);
  979. -
  980.         
  981. -
  982.         $record->getTable()->getRecordListener()->preInsert($event);
  983. -
  984.  
  985. -
  986.         if $event->skipOperation{
  987. -
  988.             $array $record->getPrepared();
  989. -
  990.     
  991. -
  992.             if (empty($array)) {
  993. -
  994.                 return false;
  995. -
  996.             }
  997. -
  998.             $table     $record->getTable();
  999. -
  1000.             $keys      $table->getPrimaryKeys();
  1001. -
  1002.     
  1003. -
  1004.             $seq       $record->getTable()->sequenceName;
  1005. -
  1006.     
  1007. -
  1008.             if empty($seq)) {
  1009. -
  1010.                 $id             $this->conn->sequence->nextId($seq);
  1011. -
  1012.                 $name           $record->getTable()->getIdentifier();
  1013. -
  1014.                 $array[$name]   $id;
  1015. -
  1016.     
  1017. -
  1018.                 $record->assignIdentifier($id);
  1019. -
  1020.             }
  1021. -
  1022.     
  1023. -
  1024.             $this->conn->insert($table->getTableName()$array);
  1025. -
  1026.     
  1027. -
  1028.             if (empty($seq&& count($keys== && $keys[0== $table->getIdentifier(&&
  1029. -
  1030.                 $table->getIdentifierType(!= Doctrine::IDENTIFIER_NATURAL{
  1031. -
  1032.     
  1033. -
  1034.                 if (strtolower($this->conn->getName()) == 'pgsql'{
  1035. -
  1036.                     $seq $table->getTableName('_' $keys[0];
  1037. -
  1038.                 }
  1039. -
  1040.     
  1041. -
  1042.                 $id $this->conn->sequence->lastInsertId($seq);
  1043. -
  1044.     
  1045. -
  1046.                 if $id{
  1047. -
  1048.                     $id $table->getMaxIdentifier();
  1049. -
  1050.                 }
  1051. -
  1052.     
  1053. -
  1054.                 $record->assignIdentifier($id);
  1055. -
  1056.             else {
  1057. -
  1058.                 $record->assignIdentifier(true);
  1059. -
  1060.             }
  1061. -
  1062.         }
  1063. -
  1064.         $record->getTable()->addRecord($record);
  1065. -
  1066.  
  1067. -
  1068.         $record->getTable()->getRecordListener()->postInsert($event);
  1069. -
  1070.  
  1071. -
  1072.         $record->postInsert($event);
  1073. -
  1074.  
  1075. -
  1076.         return true;
  1077. -
  1078.     }
  1079. -
  1080. }
  1081. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDict.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDict.php.html deleted file mode 100644 index 264352638..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDict.php.html +++ /dev/null @@ -1,102 +0,0 @@ - -
-

Source for file DataDict.php

-

Documentation is available at DataDict.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: DataDict.php 1098 2007-02-15 11:36:43Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_DataDict
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1098 $
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Obtain an array of changes that may need to applied
  71. -
  72.      *
  73. -
  74.      * @param array $current new definition
  75. -
  76.      * @param array  $previous old definition
  77. -
  78.      * @return array  containing all changes that will need to be applied
  79. -
  80.      */
  81. -
  82.     public function compareDefinition($current$previous)
  83. -
  84.     {
  85. -
  86.         $type !empty($current['type']$current['type'null;
  87. -
  88.  
  89. -
  90.         if (!method_exists($this"_compare{$type}Definition")) {
  91. -
  92.             throw new Doctrine_DataDict_Exception('type "'.$current['type'].'" is not yet supported');
  93. -
  94.         }
  95. -
  96.  
  97. -
  98.         if (empty($previous['type']|| $previous['type'!= $type{
  99. -
  100.             return $current;
  101. -
  102.         }
  103. -
  104.  
  105. -
  106.         $change $this->{"_compare{$type}Definition"}($current$previous);
  107. -
  108.  
  109. -
  110.         if ($previous['type'!= $type{
  111. -
  112.             $change['type'true;
  113. -
  114.         }
  115. -
  116.  
  117. -
  118.         $previous_notnull !empty($previous['notnull']$previous['notnull'false;
  119. -
  120.         $notnull !empty($current['notnull']$current['notnull'false;
  121. -
  122.         if ($previous_notnull != $notnull{
  123. -
  124.             $change['notnull'true;
  125. -
  126.         }
  127. -
  128.  
  129. -
  130.         $previous_default array_key_exists('default'$previous$previous['default':
  131. -
  132.             ($previous_notnull '' null);
  133. -
  134.         $default array_key_exists('default'$current$current['default':
  135. -
  136.             ($notnull '' null);
  137. -
  138.         if ($previous_default !== $default{
  139. -
  140.             $change['default'true;
  141. -
  142.         }
  143. -
  144.  
  145. -
  146.         return $change;
  147. -
  148.     }
  149. -
  150.     /**
  151. -
  152.      * parseBoolean
  153. -
  154.      * parses a literal boolean value and returns
  155. -
  156.      * proper sql equivalent
  157. -
  158.      *
  159. -
  160.      * @param string $value     boolean value to be parsed
  161. -
  162.      * @return string           parsed boolean value
  163. -
  164.      */
  165. -
  166.     public function parseBoolean($value)
  167. -
  168.     {
  169. -
  170.         // parse booleans
  171. -
  172.         if ($value == 'true'{
  173. -
  174.             $value 1;
  175. -
  176.         elseif ($value == 'false'{
  177. -
  178.             $value 0;
  179. -
  180.         }
  181. -
  182.         return $value;
  183. -
  184.     }
  185. -
  186. }
  187. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictException.php.html deleted file mode 100644 index 55aac4958..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_DataDict_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictInformix.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictInformix.php.html deleted file mode 100644 index cbe4fbf9a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataDictInformix.php.html +++ /dev/null @@ -1,118 +0,0 @@ - -
-

Source for file Informix.php

-

Documentation is available at Informix.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Informix.php 1273 2007-04-18 11:11:07Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_DataDict');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  52. -
  53.  * @version     $Revision: 1273 $
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * Obtain DBMS specific SQL code portion needed to declare an text type
  69. -
  70.      * field to be used in statements like CREATE TABLE.
  71. -
  72.      *
  73. -
  74.      * @param array $field  associative array with the name of the properties
  75. -
  76.      *       of the field being declared as array indexes. Currently, the types
  77. -
  78.      *       of supported field properties are as follows:
  79. -
  80.      *
  81. -
  82.      *       length
  83. -
  84.      *           Integer value that determines the maximum length of the text
  85. -
  86.      *           field. If this argument is missing the field should be
  87. -
  88.      *           declared to have the longest length allowed by the DBMS.
  89. -
  90.      *
  91. -
  92.      *       default
  93. -
  94.      *           Text value to be used as default for this field.
  95. -
  96.      *
  97. -
  98.      *       notnull
  99. -
  100.      *           Boolean flag that indicates whether this field is constrained
  101. -
  102.      *           to not be set to null.
  103. -
  104.      *
  105. -
  106.      * @return string  DBMS specific SQL code portion that should be used to
  107. -
  108.      *       declare the specified field.
  109. -
  110.      */
  111. -
  112.     public function getNativeDeclaration($field)
  113. -
  114.     {
  115. -
  116.         if isset($field['type'])) {
  117. -
  118.             throw new Doctrine_DataDict_Exception('Missing column type.');
  119. -
  120.         }
  121. -
  122.         switch ($field['type']{
  123. -
  124.             case 'char':
  125. -
  126.             case 'varchar':
  127. -
  128.             case 'array':
  129. -
  130.             case 'object':
  131. -
  132.             case 'string':
  133. -
  134.                 if (empty($field['length']&& array_key_exists('default'$field)) {
  135. -
  136.                     $field['length'$this->conn->varchar_max_length;
  137. -
  138.                 }
  139. -
  140.  
  141. -
  142.                 $length (empty($field['length'])) $field['length'false;
  143. -
  144.                 $fixed  ((isset($field['fixed']&& $field['fixed']|| $field['type'== 'char'true false;
  145. -
  146.  
  147. -
  148.                 return $fixed ($length 'CHAR('.$length.')' 'CHAR(255)')
  149. -
  150.                     : ($length 'VARCHAR('.$length.')' 'NVARCHAR');
  151. -
  152.             case 'clob':
  153. -
  154.                 return 'TEXT';
  155. -
  156.             case 'blob':
  157. -
  158.                 return 'BLOB';
  159. -
  160.             case 'integer':
  161. -
  162.                 if (!empty($field['length'])) {
  163. -
  164.                     $length $field['length'];
  165. -
  166.                     if ($length <= 1{
  167. -
  168.                         return 'SMALLINT';
  169. -
  170.                     elseif ($length == 2{
  171. -
  172.                         return 'SMALLINT';
  173. -
  174.                     elseif ($length == || $length == 4{
  175. -
  176.                         return 'INTEGER';
  177. -
  178.                     elseif ($length 4{
  179. -
  180.                         return 'DECIMAL(20)';
  181. -
  182.                     }
  183. -
  184.                 }
  185. -
  186.                 return 'INT';
  187. -
  188.             case 'boolean':
  189. -
  190.                 return 'SMALLINT';
  191. -
  192.             case 'date':
  193. -
  194.                 return 'DATE';
  195. -
  196.             case 'time':
  197. -
  198.                 return 'DATETIME YEAR TO SECOND';
  199. -
  200.             case 'timestamp':
  201. -
  202.                 return 'DATETIME';
  203. -
  204.             case 'float':
  205. -
  206.                 return 'FLOAT';
  207. -
  208.             case 'decimal':
  209. -
  210.                 return 'DECIMAL';
  211. -
  212.         }
  213. -
  214.         throw new Doctrine_DataDict_Exception('Unknown field type \'' $field['type'.  '\'.');
  215. -
  216.     }
  217. -
  218. }
  219. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataType.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataType.php.html deleted file mode 100644 index 5f69c1be1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDataType.php.html +++ /dev/null @@ -1,57 +0,0 @@ - -
-

Source for file DataType.php

-

Documentation is available at DataType.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_DataType
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1986 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function __construct()
  69. -
  70.     {
  71. -
  72.         
  73. -
  74.     }
  75. -
  76.     
  77. -
  78.     public function getName()
  79. -
  80.     {
  81. -
  82.         
  83. -
  84.     }
  85. -
  86.     
  87. -
  88.     public function getDefaultLength()
  89. -
  90.     {
  91. -
  92.         
  93. -
  94.     }
  95. -
  96. }
  97. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDb.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDb.php.html deleted file mode 100644 index a82900980..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineDb.php.html +++ /dev/null @@ -1,46 +0,0 @@ - -
-

Source for file Db.php

-

Documentation is available at Db.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Db.php 1819 2007-06-25 17:48:44Z subzero2000 $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Db
  44. -
  45.  * 
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1819 $
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     public function __construct()
  67. -
  68.     {
  69. -
  70.         throw new Doctrine_Exception('Doctrine_Db has been deprecated. The functionality has been merged into Doctrine_Connection.');
  71. -
  72.     }
  73. -
  74. }
  75. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEvent.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEvent.php.html deleted file mode 100644 index e2b52af6c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEvent.php.html +++ /dev/null @@ -1,299 +0,0 @@ - -
-

Source for file Event.php

-

Documentation is available at Event.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Event
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * CONNECTION EVENT CODES
  69. -
  70.      */
  71. -
  72.     const CONN_QUERY         1;
  73. -
  74.     const CONN_EXEC          2;
  75. -
  76.     const CONN_PREPARE       3;
  77. -
  78.     const CONN_CONNECT       4;
  79. -
  80.     const CONN_CLOSE         5;
  81. -
  82.     const CONN_ERROR         6;
  83. -
  84.  
  85. -
  86.     const STMT_EXECUTE       10;
  87. -
  88.     const STMT_FETCH         11;
  89. -
  90.     const STMT_FETCHALL      12;
  91. -
  92.  
  93. -
  94.     const TX_BEGIN           31;
  95. -
  96.     const TX_COMMIT          32;
  97. -
  98.     const TX_ROLLBACK        33;
  99. -
  100.     const SAVEPOINT_CREATE   34;
  101. -
  102.     const SAVEPOINT_ROLLBACK 35;
  103. -
  104.     const SAVEPOINT_COMMIT   36;
  105. -
  106.  
  107. -
  108.     /*
  109. -
  110.      * RECORD EVENT CODES
  111. -
  112.      */
  113. -
  114.     const RECORD_DELETE      21;
  115. -
  116.     const RECORD_SAVE        22;
  117. -
  118.     const RECORD_UPDATE      23;
  119. -
  120.     const RECORD_INSERT      24;
  121. -
  122.     const RECORD_SERIALIZE   25;
  123. -
  124.     const RECORD_UNSERIALIZE 26;
  125. -
  126.     /**
  127. -
  128.      * @var mixed $_invoker             the handler which invoked this event
  129. -
  130.      */
  131. -
  132.     protected $_invoker;
  133. -
  134.     /**
  135. -
  136.      * @var string $_query              the sql query associated with this event (if any)
  137. -
  138.      */
  139. -
  140.     protected $_query;
  141. -
  142.     /**
  143. -
  144.      * @var string $_params             the parameters associated with the query (if any)
  145. -
  146.      */
  147. -
  148.     protected $_params;
  149. -
  150.     /**
  151. -
  152.      * @see Doctrine_Event constants
  153. -
  154.      * @var integer $_code              the event code
  155. -
  156.      */
  157. -
  158.     protected $_code;
  159. -
  160.     /**
  161. -
  162.      * @var integer $_startedMicrotime  the time point in which this event was started
  163. -
  164.      */
  165. -
  166.     protected $_startedMicrotime;
  167. -
  168.     /**
  169. -
  170.      * @var integer $_endedMicrotime    the time point in which this event was ended
  171. -
  172.      */
  173. -
  174.     protected $_endedMicrotime;
  175. -
  176.     /**
  177. -
  178.      * @var array $_options             an array of options
  179. -
  180.      */
  181. -
  182.     protected $_options = array();
  183. -
  184.     /**
  185. -
  186.      * constructor
  187. -
  188.      *
  189. -
  190.      * @param Doctrine_Connection|Doctrine_Connection_Statement|
  191. -
  192.               Doctrine_Connection_UnitOfWork|Doctrine_Transaction $invoker   the handler which invoked this event
  193. -
  194.      * @param integer $code                                                  the event code
  195. -
  196.      * @param string $query                                                  the sql query associated with this event (if any)
  197. -
  198.      */
  199. -
  200.     public function __construct($invoker$code$query null$params array())
  201. -
  202.     {
  203. -
  204.         $this->_invoker = $invoker;
  205. -
  206.         $this->_code    = $code;
  207. -
  208.         $this->_query   = $query;
  209. -
  210.         $this->_params  = $params;
  211. -
  212.     }
  213. -
  214.     /**
  215. -
  216.      * getQuery
  217. -
  218.      *
  219. -
  220.      * @return string       returns the query associated with this event (if any)
  221. -
  222.      */
  223. -
  224.     public function getQuery()
  225. -
  226.     {
  227. -
  228.         return $this->_query;
  229. -
  230.     }
  231. -
  232.     /**
  233. -
  234.      * getName
  235. -
  236.      * returns the name of this event
  237. -
  238.      *
  239. -
  240.      * @return string       the name of this event
  241. -
  242.      */
  243. -
  244.     public function getName(
  245. -
  246.     {
  247. -
  248.         switch ($this->_code{
  249. -
  250.             case self::CONN_QUERY:
  251. -
  252.                 return 'query';
  253. -
  254.             case self::CONN_EXEC:
  255. -
  256.                 return 'exec';
  257. -
  258.             case self::CONN_PREPARE:
  259. -
  260.                 return 'prepare';
  261. -
  262.             case self::CONN_CONNECT:
  263. -
  264.                 return 'connect';
  265. -
  266.             case self::CONN_CLOSE:
  267. -
  268.                 return 'close';
  269. -
  270.             case self::CONN_ERROR:
  271. -
  272.                 return 'error';
  273. -
  274.  
  275. -
  276.             case self::STMT_EXECUTE:
  277. -
  278.                 return 'execute';
  279. -
  280.             case self::STMT_FETCH:
  281. -
  282.                 return 'fetch';
  283. -
  284.             case self::STMT_FETCHALL:
  285. -
  286.                 return 'fetch all';
  287. -
  288.             
  289. -
  290.             case self::TX_BEGIN:
  291. -
  292.                 return 'begin';
  293. -
  294.             case self::TX_COMMIT:
  295. -
  296.                 return 'commit';
  297. -
  298.             case self::TX_ROLLBACK:
  299. -
  300.                 return 'rollback';
  301. -
  302.  
  303. -
  304.             case self::SAVEPOINT_CREATE:
  305. -
  306.                 return 'create savepoint';
  307. -
  308.             case self::SAVEPOINT_ROLLBACK:
  309. -
  310.                 return 'rollback savepoint';
  311. -
  312.             case self::SAVEPOINT_COMMIT:
  313. -
  314.                 return 'commit Ssavepoint';
  315. -
  316.  
  317. -
  318.             case self::RECORD_DELETE:
  319. -
  320.                 return 'delete record';
  321. -
  322.             case self::RECORD_SAVE:
  323. -
  324.                 return 'save record';
  325. -
  326.             case self::RECORD_UPDATE:
  327. -
  328.                 return 'update record';
  329. -
  330.             case self::RECORD_INSERT:
  331. -
  332.                 return 'insert record';
  333. -
  334.             case self::RECORD_SERIALIZE:
  335. -
  336.                 return 'serialize record';
  337. -
  338.             case self::RECORD_UNSERIALIZE:
  339. -
  340.                 return 'unserialize record';
  341. -
  342.         }
  343. -
  344.     }
  345. -
  346.     /**
  347. -
  348.      * getCode
  349. -
  350.      *
  351. -
  352.      * @return integer      returns the code associated with this event
  353. -
  354.      */
  355. -
  356.     public function getCode()
  357. -
  358.     {
  359. -
  360.         return $this->_code;
  361. -
  362.     }
  363. -
  364.     /**
  365. -
  366.      * getOption
  367. -
  368.      * returns the value of an option
  369. -
  370.      *
  371. -
  372.      * @param string $option    the name of the option
  373. -
  374.      * @return mixed 
  375. -
  376.      */
  377. -
  378.     public function __get($option)
  379. -
  380.     {
  381. -
  382.         if isset($this->_options[$option])) {
  383. -
  384.             return null;
  385. -
  386.         }
  387. -
  388.         
  389. -
  390.         return $this->_options[$option];
  391. -
  392.     }
  393. -
  394.     /**
  395. -
  396.      * skipOperation
  397. -
  398.      * skips the next operation
  399. -
  400.      * an alias for __set('skipOperation', true)
  401. -
  402.      *
  403. -
  404.      * @return Doctrine_Event   this object
  405. -
  406.      */
  407. -
  408.     public function skipOperation()
  409. -
  410.     {
  411. -
  412.         $this->_options['skipOperation'true;
  413. -
  414.     
  415. -
  416.         return $this;
  417. -
  418.     }
  419. -
  420.     /**
  421. -
  422.      * setOption
  423. -
  424.      * sets the value of an option
  425. -
  426.      *
  427. -
  428.      * @param string $option    the name of the option
  429. -
  430.      * @param mixed $value      the value of the given option
  431. -
  432.      * @return Doctrine_Event   this object
  433. -
  434.      */
  435. -
  436.     public function __set($option$value)
  437. -
  438.     {
  439. -
  440.         $this->_options[$option$value;
  441. -
  442.  
  443. -
  444.         return $this;
  445. -
  446.     }
  447. -
  448.     /**
  449. -
  450.      * start
  451. -
  452.      * starts the internal timer of this event
  453. -
  454.      *
  455. -
  456.      * @return Doctrine_Event   this object
  457. -
  458.      */
  459. -
  460.     public function start()
  461. -
  462.     {
  463. -
  464.         $this->_startedMicrotime = microtime(true);
  465. -
  466.     }
  467. -
  468.     /**
  469. -
  470.      * hasEnded
  471. -
  472.      * whether or not this event has ended
  473. -
  474.      *
  475. -
  476.      * @return boolean 
  477. -
  478.      */
  479. -
  480.     public function hasEnded()
  481. -
  482.     {
  483. -
  484.         return ($this->_endedMicrotime != null);
  485. -
  486.     }
  487. -
  488.     /**
  489. -
  490.      * end
  491. -
  492.      * ends the internal timer of this event
  493. -
  494.      *
  495. -
  496.      * @return Doctrine_Event   this object
  497. -
  498.      */
  499. -
  500.     public function end()
  501. -
  502.     {
  503. -
  504.         $this->_endedMicrotime = microtime(true);
  505. -
  506.         
  507. -
  508.         return $this;
  509. -
  510.     }
  511. -
  512.     /**
  513. -
  514.      * getInvoker
  515. -
  516.      * returns the handler that invoked this event
  517. -
  518.      *
  519. -
  520.      * @return Doctrine_Connection|Doctrine_Connection_Statement|
  521. -
  522.      *          Doctrine_Connection_UnitOfWork|Doctrine_Transaction   the handler that invoked this event
  523. -
  524.      */
  525. -
  526.     public function getInvoker()
  527. -
  528.     {
  529. -
  530.         return $this->_invoker;
  531. -
  532.     }
  533. -
  534.     /**
  535. -
  536.      * getParams
  537. -
  538.      * returns the parameters of the query
  539. -
  540.      *
  541. -
  542.      * @return array   parameters of the query
  543. -
  544.      */
  545. -
  546.     public function getParams()
  547. -
  548.     {
  549. -
  550.         return $this->_params;
  551. -
  552.     }
  553. -
  554.     /**
  555. -
  556.      * Get the elapsed time (in microseconds) that the event ran.  If the event has
  557. -
  558.      * not yet ended, return false.
  559. -
  560.      *
  561. -
  562.      * @return mixed 
  563. -
  564.      */
  565. -
  566.     public function getElapsedSecs()
  567. -
  568.     {
  569. -
  570.         if (is_null($this->_endedMicrotime)) {
  571. -
  572.             return false;
  573. -
  574.         }
  575. -
  576.         return ($this->_endedMicrotime - $this->_startedMicrotime);
  577. -
  578.     }
  579. -
  580. }
  581. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListener.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListener.php.html deleted file mode 100644 index 4549f4a95..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListener.php.html +++ /dev/null @@ -1,128 +0,0 @@ - -
-

Source for file EventListener.php

-

Documentation is available at EventListener.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: EventListener.php 1976 2007-07-11 22:03:47Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_EventListener_Interface');
  42. -
  43. /**
  44. -
  45.  * Doctrine_EventListener     all event listeners extend this base class
  46. -
  47.  *                            the empty methods allow child classes to only implement the methods they need to implement
  48. -
  49.  *
  50. -
  51.  *
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 1976 $
  66. -
  67.  */
  68. -
  69. class Doctrine_EventListener implements Doctrine_EventListener_Interface
  70. -
  71. {
  72. -
  73.     public function preClose(Doctrine_Event $event)
  74. -
  75.     }
  76. -
  77.     public function postClose(Doctrine_Event $event)
  78. -
  79.     }
  80. -
  81.  
  82. -
  83.     public function onCollectionDelete(Doctrine_Collection $collection)
  84. -
  85.     }
  86. -
  87.     public function onPreCollectionDelete(Doctrine_Collection $collection)
  88. -
  89.     }
  90. -
  91.  
  92. -
  93.     public function onOpen(Doctrine_Connection $connection)
  94. -
  95.     }
  96. -
  97.  
  98. -
  99.     public function preTransactionCommit(Doctrine_Event $event)
  100. -
  101.     }
  102. -
  103.     public function postTransactionCommit(Doctrine_Event $event)
  104. -
  105.     }
  106. -
  107.  
  108. -
  109.     public function preTransactionRollback(Doctrine_Event $event)
  110. -
  111.     }
  112. -
  113.     public function postTransactionRollback(Doctrine_Event $event)
  114. -
  115.     }
  116. -
  117.  
  118. -
  119.     public function preTransactionBegin(Doctrine_Event $event)
  120. -
  121.     }
  122. -
  123.     public function postTransactionBegin(Doctrine_Event $event)
  124. -
  125.     }
  126. -
  127.  
  128. -
  129.  
  130. -
  131.     public function preSavepointCommit(Doctrine_Event $event)
  132. -
  133.     }
  134. -
  135.     public function postSavepointCommit(Doctrine_Event $event)
  136. -
  137.     }
  138. -
  139.  
  140. -
  141.     public function preSavepointRollback(Doctrine_Event $event)
  142. -
  143.     }
  144. -
  145.     public function postSavepointRollback(Doctrine_Event $event)
  146. -
  147.     }
  148. -
  149.  
  150. -
  151.     public function preSavepointCreate(Doctrine_Event $event)
  152. -
  153.     }
  154. -
  155.     public function postSavepointCreate(Doctrine_Event $event)
  156. -
  157.     }
  158. -
  159.  
  160. -
  161.     public function postConnect(Doctrine_Event $event)
  162. -
  163.     }
  164. -
  165.     public function preConnect(Doctrine_Event $event)
  166. -
  167.     }
  168. -
  169.  
  170. -
  171.     public function preQuery(Doctrine_Event $event)
  172. -
  173.     }
  174. -
  175.     public function postQuery(Doctrine_Event $event)
  176. -
  177.     }
  178. -
  179.  
  180. -
  181.     public function prePrepare(Doctrine_Event $event)
  182. -
  183.     }
  184. -
  185.     public function postPrepare(Doctrine_Event $event)
  186. -
  187.     }
  188. -
  189.  
  190. -
  191.     public function preExec(Doctrine_Event $event)
  192. -
  193.     }
  194. -
  195.     public function postExec(Doctrine_Event $event)
  196. -
  197.     }
  198. -
  199.  
  200. -
  201.     public function preError(Doctrine_Event $event)
  202. -
  203.     }
  204. -
  205.     public function postError(Doctrine_Event $event)
  206. -
  207.     }
  208. -
  209.  
  210. -
  211.     public function preFetch(Doctrine_Event $event)
  212. -
  213.     }
  214. -
  215.     public function postFetch(Doctrine_Event $event)
  216. -
  217.     }
  218. -
  219.  
  220. -
  221.     public function preFetchAll(Doctrine_Event $event)
  222. -
  223.     }
  224. -
  225.     public function postFetchAll(Doctrine_Event $event)
  226. -
  227.     }
  228. -
  229.  
  230. -
  231.     public function preStmtExecute(Doctrine_Event $event)
  232. -
  233.     }
  234. -
  235.     public function postStmtExecute(Doctrine_Event $event)
  236. -
  237.     }
  238. -
  239. }
  240. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerChain.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerChain.php.html deleted file mode 100644 index 53900aefe..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerChain.php.html +++ /dev/null @@ -1,396 +0,0 @@ - -
-

Source for file Chain.php

-

Documentation is available at Chain.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Chain.php 2186 2007-08-09 22:16:33Z jackbravo $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Access');
  42. -
  43.  
  44. -
  45. /**
  46. -
  47.  * Doctrine_EventListener_Chain
  48. -
  49.  * this class represents a chain of different listeners,
  50. -
  51.  * useful for having multiple listeners listening the events at the same time
  52. -
  53.  *
  54. -
  55.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  56. -
  57.  * @package     Doctrine
  58. -
  59.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  * @since       1.0
  66. -
  67.  * @version     $Revision: 2186 $
  68. -
  69.  */
  70. -
  71. -
  72. {
  73. -
  74.     /**
  75. -
  76.      * @var array $listeners        an array containing all listeners
  77. -
  78.      */
  79. -
  80.     private $listeners = array();
  81. -
  82.     /**
  83. -
  84.      * add
  85. -
  86.      * adds a listener to the chain of listeners
  87. -
  88.      *
  89. -
  90.      * @param object $listener 
  91. -
  92.      * @param string $name 
  93. -
  94.      * @return void 
  95. -
  96.      */
  97. -
  98.     public function add($listener$name null)
  99. -
  100.     {
  101. -
  102.         if ($listener instanceof Doctrine_EventListener_Interface&&
  103. -
  104.              ($listener instanceof Doctrine_Overloadable)) {
  105. -
  106.             
  107. -
  108.             throw new Doctrine_EventListener_Exception("Couldn't add eventlistener. EventListeners should implement either Doctrine_EventListener_Interface or Doctrine_Overloadable");
  109. -
  110.         }
  111. -
  112.         if ($name === null{
  113. -
  114.             $this->listeners[$listener;
  115. -
  116.         else {
  117. -
  118.             $this->listeners[$name$listener;
  119. -
  120.         }
  121. -
  122.     }
  123. -
  124.     /**
  125. -
  126.      * returns a Doctrine_EventListener on success
  127. -
  128.      * and null on failure
  129. -
  130.      *
  131. -
  132.      * @param mixed $key 
  133. -
  134.      * @return mixed 
  135. -
  136.      */
  137. -
  138.     public function get($key)
  139. -
  140.     {
  141. -
  142.         if isset($this->listeners[$key])) {
  143. -
  144.             return null;
  145. -
  146.         }
  147. -
  148.         return $this->listeners[$key];
  149. -
  150.     }
  151. -
  152.     /**
  153. -
  154.      * set
  155. -
  156.      *
  157. -
  158.      * @param mixed $key 
  159. -
  160.      * @param Doctrine_EventListener $listener 
  161. -
  162.      * @return void 
  163. -
  164.      */
  165. -
  166.     public function set($keyDoctrine_EventListener $listener)
  167. -
  168.     {
  169. -
  170.         $this->listeners[$key$listener;
  171. -
  172.     }
  173. -
  174.     /**
  175. -
  176.      * onLoad
  177. -
  178.      * an event invoked when Doctrine_Record is being loaded from database
  179. -
  180.      *
  181. -
  182.      * @param Doctrine_Record $record 
  183. -
  184.      * @return void 
  185. -
  186.      */
  187. -
  188.     public function onLoad(Doctrine_Record $record)
  189. -
  190.     {
  191. -
  192.         foreach ($this->listeners as $listener{
  193. -
  194.             $listener->onLoad($record);
  195. -
  196.         }
  197. -
  198.     }
  199. -
  200.     /**
  201. -
  202.      * onPreLoad
  203. -
  204.      * an event invoked when Doctrine_Record is being loaded
  205. -
  206.      * from database but not yet initialized
  207. -
  208.      *
  209. -
  210.      * @param Doctrine_Record $record 
  211. -
  212.      * @return void 
  213. -
  214.      */
  215. -
  216.     public function onPreLoad(Doctrine_Record $record)
  217. -
  218.     {
  219. -
  220.         foreach ($this->listeners as $listener{
  221. -
  222.             $listener->onPreLoad($record);
  223. -
  224.         }
  225. -
  226.     }
  227. -
  228.     /**
  229. -
  230.      * onSleep
  231. -
  232.      * an event invoked when Doctrine_Record is serialized
  233. -
  234.      *
  235. -
  236.      * @param Doctrine_Record $record 
  237. -
  238.      * @return void 
  239. -
  240.      */
  241. -
  242.     public function onSleep(Doctrine_Record $record)
  243. -
  244.     {
  245. -
  246.         foreach ($this->listeners as $listener{
  247. -
  248.             $listener->onSleep($record);
  249. -
  250.         }
  251. -
  252.     }
  253. -
  254.     /**
  255. -
  256.      * onWakeUp
  257. -
  258.      * an event invoked when Doctrine_Record is unserialized
  259. -
  260.      *
  261. -
  262.      * @param Doctrine_Record $record 
  263. -
  264.      * @return void 
  265. -
  266.      */
  267. -
  268.     public function onWakeUp(Doctrine_Record $record)
  269. -
  270.     {
  271. -
  272.         foreach ($this->listeners as $listener{
  273. -
  274.             $listener->onWakeUp($record);
  275. -
  276.         }
  277. -
  278.     }
  279. -
  280.     /**
  281. -
  282.      * postClose
  283. -
  284.      * an event invoked after Doctrine_Connection is closed
  285. -
  286.      *
  287. -
  288.      * @param Doctrine_Event $event 
  289. -
  290.      * @return void 
  291. -
  292.      */
  293. -
  294.     public function postClose(Doctrine_Event $event)
  295. -
  296.     {
  297. -
  298.         foreach ($this->listeners as $listener{
  299. -
  300.             $listener->postClose($event);
  301. -
  302.         }
  303. -
  304.     }
  305. -
  306.     /**
  307. -
  308.      * preClose
  309. -
  310.      * an event invoked before Doctrine_Connection is closed
  311. -
  312.      *
  313. -
  314.      * @param Doctrine_Event $event 
  315. -
  316.      * @return void 
  317. -
  318.      */
  319. -
  320.     public function preClose(Doctrine_Event $event)
  321. -
  322.     {
  323. -
  324.         foreach ($this->listeners as $listener{
  325. -
  326.             $listener->preClose($event);
  327. -
  328.         }
  329. -
  330.     }
  331. -
  332.     /**
  333. -
  334.      * onOpen
  335. -
  336.      * an event invoked after Doctrine_Connection is opened
  337. -
  338.      *
  339. -
  340.      * @param Doctrine_Connection $connection 
  341. -
  342.      * @return void 
  343. -
  344.      */
  345. -
  346.     public function onOpen(Doctrine_Connection $connection)
  347. -
  348.     {
  349. -
  350.         foreach ($this->listeners as $listener{
  351. -
  352.             $listener->onOpen($connection);
  353. -
  354.         }
  355. -
  356.     }
  357. -
  358.     /**
  359. -
  360.      * onTransactionCommit
  361. -
  362.      * an event invoked after a Doctrine_Connection transaction is committed
  363. -
  364.      *
  365. -
  366.      * @param Doctrine_Event $event 
  367. -
  368.      * @return void 
  369. -
  370.      */
  371. -
  372.     public function postTransactionCommit(Doctrine_Event $event)
  373. -
  374.     {
  375. -
  376.         foreach ($this->listeners as $listener{
  377. -
  378.             $listener->postTransactionCommit($event);
  379. -
  380.         }
  381. -
  382.     }
  383. -
  384.     /**
  385. -
  386.      * onPreTransactionCommit
  387. -
  388.      * an event invoked before a Doctrine_Connection transaction is committed
  389. -
  390.      *
  391. -
  392.      * @param Doctrine_Event $event 
  393. -
  394.      * @return void 
  395. -
  396.      */
  397. -
  398.     public function preTransactionCommit(Doctrine_Event $event)
  399. -
  400.     {
  401. -
  402.         foreach ($this->listeners as $listener{
  403. -
  404.             $listener->preTransactionCommit($event);
  405. -
  406.         }
  407. -
  408.     }
  409. -
  410.     /**
  411. -
  412.      * onTransactionRollback
  413. -
  414.      * an event invoked after a Doctrine_Connection transaction is being rolled back
  415. -
  416.      *
  417. -
  418.      * @param Doctrine_Event $event 
  419. -
  420.      * @return void 
  421. -
  422.      */
  423. -
  424.     public function postTransactionRollback(Doctrine_Event $event)
  425. -
  426.     {
  427. -
  428.         foreach ($this->listeners as $listener{
  429. -
  430.             $listener->postTransactionRollback($event);
  431. -
  432.         }
  433. -
  434.     }
  435. -
  436.     /**
  437. -
  438.      * onPreTransactionRollback
  439. -
  440.      * an event invoked before a Doctrine_Connection transaction is being rolled back
  441. -
  442.      *
  443. -
  444.      * @param Doctrine_Event $event 
  445. -
  446.      * @return void 
  447. -
  448.      */
  449. -
  450.     public function preTransactionRollback(Doctrine_Event $event)
  451. -
  452.     {
  453. -
  454.         foreach ($this->listeners as $listener{
  455. -
  456.             $listener->preTransactionRollback($event);
  457. -
  458.         }
  459. -
  460.     }
  461. -
  462.     /**
  463. -
  464.      * onTransactionBegin
  465. -
  466.      * an event invoked after a Doctrine_Connection transaction has been started
  467. -
  468.      *
  469. -
  470.      * @param Doctrine_Event $event 
  471. -
  472.      * @return void 
  473. -
  474.      */
  475. -
  476.     public function postTransactionBegin(Doctrine_Event $event)
  477. -
  478.     {
  479. -
  480.         foreach ($this->listeners as $listener{
  481. -
  482.             $listener->postTransactionBegin($event);
  483. -
  484.         }
  485. -
  486.     }
  487. -
  488.     /**
  489. -
  490.      * onTransactionBegin
  491. -
  492.      * an event invoked before a Doctrine_Connection transaction is being started
  493. -
  494.      *
  495. -
  496.      * @param Doctrine_Event $event 
  497. -
  498.      * @return void 
  499. -
  500.      */
  501. -
  502.     public function preTransactionBegin(Doctrine_Event $event)
  503. -
  504.     {
  505. -
  506.         foreach ($this->listeners as $listener{
  507. -
  508.             $listener->preTransactionBegin($event);
  509. -
  510.         }
  511. -
  512.     }
  513. -
  514.     /**
  515. -
  516.      * onCollectionDelete
  517. -
  518.      * an event invoked after a Doctrine_Collection is being deleted
  519. -
  520.      *
  521. -
  522.      * @param Doctrine_Collection $collection 
  523. -
  524.      * @return void 
  525. -
  526.      */
  527. -
  528.     public function onCollectionDelete(Doctrine_Collection $collection)
  529. -
  530.     {
  531. -
  532.         foreach ($this->listeners as $listener{
  533. -
  534.             $listener->onCollectionDelete($collection);
  535. -
  536.         }
  537. -
  538.     }
  539. -
  540.     /**
  541. -
  542.      * onCollectionDelete
  543. -
  544.      * an event invoked after a Doctrine_Collection is being deleted
  545. -
  546.      *
  547. -
  548.      * @param Doctrine_Collection $collection 
  549. -
  550.      * @return void 
  551. -
  552.      */
  553. -
  554.     public function onPreCollectionDelete(Doctrine_Collection $collection)
  555. -
  556.     {
  557. -
  558.         foreach ($this->listeners as $listener{
  559. -
  560.             $listener->onPreCollectionDelete($collection);
  561. -
  562.         }
  563. -
  564.     }
  565. -
  566.     public function postConnect(Doctrine_Event $event)
  567. -
  568.     {
  569. -
  570.         foreach ($this->listeners as $listener{
  571. -
  572.             $listener->postConnect($event);
  573. -
  574.         }
  575. -
  576.     }
  577. -
  578.     public function preConnect(Doctrine_Event $event)
  579. -
  580.     {
  581. -
  582.         foreach ($this->listeners as $listener{
  583. -
  584.             $listener->preConnect($event);
  585. -
  586.         }
  587. -
  588.     }
  589. -
  590.     public function preQuery(Doctrine_Event $event)
  591. -
  592.     
  593. -
  594.         foreach ($this->listeners as $listener{
  595. -
  596.             $listener->preQuery($event);
  597. -
  598.         }
  599. -
  600.     }
  601. -
  602.     public function postQuery(Doctrine_Event $event)
  603. -
  604.     {
  605. -
  606.         foreach ($this->listeners as $listener{
  607. -
  608.             $listener->postQuery($event);
  609. -
  610.         }
  611. -
  612.     }
  613. -
  614.  
  615. -
  616.     public function prePrepare(Doctrine_Event $event)
  617. -
  618.     
  619. -
  620.         foreach ($this->listeners as $listener{
  621. -
  622.             $listener->prePrepare($event);
  623. -
  624.         }
  625. -
  626.     }
  627. -
  628.     public function postPrepare(Doctrine_Event $event)
  629. -
  630.     {
  631. -
  632.         foreach ($this->listeners as $listener{
  633. -
  634.             $listener->postPrepare($event);
  635. -
  636.         }
  637. -
  638.     }
  639. -
  640.  
  641. -
  642.     public function preExec(Doctrine_Event $event)
  643. -
  644.     {
  645. -
  646.         foreach ($this->listeners as $listener{
  647. -
  648.             $listener->preExec($event);
  649. -
  650.         }
  651. -
  652.     }
  653. -
  654.     public function postExec(Doctrine_Event $event)
  655. -
  656.     {
  657. -
  658.         foreach ($this->listeners as $listener{
  659. -
  660.             $listener->postExec($event);
  661. -
  662.         }
  663. -
  664.     }
  665. -
  666.  
  667. -
  668.     public function preError(Doctrine_Event $event)
  669. -
  670.     
  671. -
  672.         foreach ($this->listeners as $listener{
  673. -
  674.             $listener->preError($event);
  675. -
  676.         }
  677. -
  678.     }
  679. -
  680.     public function postError(Doctrine_Event $event)
  681. -
  682.     {
  683. -
  684.         foreach ($this->listeners as $listener{
  685. -
  686.             $listener->postError($event);
  687. -
  688.         }
  689. -
  690.     }
  691. -
  692.  
  693. -
  694.     public function preFetch(Doctrine_Event $event)
  695. -
  696.     
  697. -
  698.         foreach ($this->listeners as $listener{
  699. -
  700.             $listener->preFetch($event);
  701. -
  702.         }
  703. -
  704.     }
  705. -
  706.     public function postFetch(Doctrine_Event $event)
  707. -
  708.     {
  709. -
  710.         foreach ($this->listeners as $listener{
  711. -
  712.             $listener->postFetch($event);
  713. -
  714.         }
  715. -
  716.     }
  717. -
  718.  
  719. -
  720.     public function preFetchAll(Doctrine_Event $event)
  721. -
  722.     
  723. -
  724.         foreach ($this->listeners as $listener{
  725. -
  726.             $listener->preFetchAll($event);
  727. -
  728.         }
  729. -
  730.     }
  731. -
  732.  
  733. -
  734.     public function postFetchAll(Doctrine_Event $event)
  735. -
  736.     {
  737. -
  738.         foreach ($this->listeners as $listener{
  739. -
  740.             $listener->postFetchAll($event);
  741. -
  742.         }
  743. -
  744.     }
  745. -
  746.  
  747. -
  748.     public function preStmtExecute(Doctrine_Event $event)
  749. -
  750.     {
  751. -
  752.         foreach ($this->listeners as $listener{
  753. -
  754.             $listener->preStmtExecute($event);
  755. -
  756.         }
  757. -
  758.     }
  759. -
  760.  
  761. -
  762.     public function postStmtExecute(Doctrine_Event $event)
  763. -
  764.     {
  765. -
  766.         foreach ($this->listeners as $listener{
  767. -
  768.             $listener->postStmtExecute($event);
  769. -
  770.         }
  771. -
  772.     }
  773. -
  774. }
  775. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerException.php.html deleted file mode 100644 index d5058fc61..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerException.php.html +++ /dev/null @@ -1,43 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1344 2007-05-12 23:27:16Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_EventListener_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1344 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {  
  67. -
  68. }
  69. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerInterface.php.html deleted file mode 100644 index ea28c1ef1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineEventListenerInterface.php.html +++ /dev/null @@ -1,77 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Interface.php 1976 2007-07-11 22:03:47Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_EventListener_Interface');
  42. -
  43. /**
  44. -
  45.  * Doctrine_EventListener     all event listeners extend this base class
  46. -
  47.  *                            the empty methods allow child classes to only implement the methods they need to implement
  48. -
  49.  *
  50. -
  51.  *
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 1976 $
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     public function preTransactionCommit(Doctrine_Event $event);
  73. -
  74.     public function postTransactionCommit(Doctrine_Event $event);
  75. -
  76.  
  77. -
  78.     public function preTransactionRollback(Doctrine_Event $event);
  79. -
  80.     public function postTransactionRollback(Doctrine_Event $event);
  81. -
  82.  
  83. -
  84.     public function preTransactionBegin(Doctrine_Event $event);
  85. -
  86.     public function postTransactionBegin(Doctrine_Event $event);
  87. -
  88.  
  89. -
  90.     public function postConnect(Doctrine_Event $event);
  91. -
  92.     public function preConnect(Doctrine_Event $event);
  93. -
  94.  
  95. -
  96.     public function preQuery(Doctrine_Event $event);
  97. -
  98.     public function postQuery(Doctrine_Event $event);
  99. -
  100.  
  101. -
  102.     public function prePrepare(Doctrine_Event $event);
  103. -
  104.     public function postPrepare(Doctrine_Event $event);
  105. -
  106.  
  107. -
  108.     public function preExec(Doctrine_Event $event);
  109. -
  110.     public function postExec(Doctrine_Event $event);
  111. -
  112.  
  113. -
  114.     public function preError(Doctrine_Event $event);
  115. -
  116.     public function postError(Doctrine_Event $event);
  117. -
  118.  
  119. -
  120.     public function preFetch(Doctrine_Event $event);
  121. -
  122.     public function postFetch(Doctrine_Event $event);
  123. -
  124.  
  125. -
  126.     public function preFetchAll(Doctrine_Event $event);
  127. -
  128.     public function postFetchAll(Doctrine_Event $event);
  129. -
  130.  
  131. -
  132.     public function preStmtExecute(Doctrine_Event $event);
  133. -
  134.     public function postStmtExecute(Doctrine_Event $event);
  135. -
  136. }
  137. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineException.php.html deleted file mode 100644 index 30d5d764d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineException.php.html +++ /dev/null @@ -1,98 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1344 2007-05-12 23:27:16Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Exception
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1344 $
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. class Doctrine_Exception extends Exception
  64. -
  65. -
  66.     /**
  67. -
  68.      * @var array $_errorMessages       an array of error messages
  69. -
  70.      */
  71. -
  72.     protected static $_errorMessages array(
  73. -
  74.                 Doctrine::ERR                    => 'unknown error',
  75. -
  76.                 Doctrine::ERR_ALREADY_EXISTS     => 'already exists',
  77. -
  78.                 Doctrine::ERR_CANNOT_CREATE      => 'can not create',
  79. -
  80.                 Doctrine::ERR_CANNOT_ALTER       => 'can not alter',
  81. -
  82.                 Doctrine::ERR_CANNOT_REPLACE     => 'can not replace',
  83. -
  84.                 Doctrine::ERR_CANNOT_DELETE      => 'can not delete',
  85. -
  86.                 Doctrine::ERR_CANNOT_DROP        => 'can not drop',
  87. -
  88.                 Doctrine::ERR_CONSTRAINT         => 'constraint violation',
  89. -
  90.                 Doctrine::ERR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint',
  91. -
  92.                 Doctrine::ERR_DIVZERO            => 'division by zero',
  93. -
  94.                 Doctrine::ERR_INVALID            => 'invalid',
  95. -
  96.                 Doctrine::ERR_INVALID_DATE       => 'invalid date or time',
  97. -
  98.                 Doctrine::ERR_INVALID_NUMBER     => 'invalid number',
  99. -
  100.                 Doctrine::ERR_MISMATCH           => 'mismatch',
  101. -
  102.                 Doctrine::ERR_NODBSELECTED       => 'no database selected',
  103. -
  104.                 Doctrine::ERR_NOSUCHFIELD        => 'no such field',
  105. -
  106.                 Doctrine::ERR_NOSUCHTABLE        => 'no such table',
  107. -
  108.                 Doctrine::ERR_NOT_CAPABLE        => 'Doctrine backend not capable',
  109. -
  110.                 Doctrine::ERR_NOT_FOUND          => 'not found',
  111. -
  112.                 Doctrine::ERR_NOT_LOCKED         => 'not locked',
  113. -
  114.                 Doctrine::ERR_SYNTAX             => 'syntax error',
  115. -
  116.                 Doctrine::ERR_UNSUPPORTED        => 'not supported',
  117. -
  118.                 Doctrine::ERR_VALUE_COUNT_ON_ROW => 'value count on row',
  119. -
  120.                 Doctrine::ERR_INVALID_DSN        => 'invalid DSN',
  121. -
  122.                 Doctrine::ERR_CONNECT_FAILED     => 'connect failed',
  123. -
  124.                 Doctrine::ERR_NEED_MORE_DATA     => 'insufficient data supplied',
  125. -
  126.                 Doctrine::ERR_EXTENSION_NOT_FOUND=> 'extension not found',
  127. -
  128.                 Doctrine::ERR_NOSUCHDB           => 'no such database',
  129. -
  130.                 Doctrine::ERR_ACCESS_VIOLATION   => 'insufficient permissions',
  131. -
  132.                 Doctrine::ERR_LOADMODULE         => 'error while including on demand module',
  133. -
  134.                 Doctrine::ERR_TRUNCATED          => 'truncated',
  135. -
  136.                 Doctrine::ERR_DEADLOCK           => 'deadlock detected',
  137. -
  138.             );
  139. -
  140.     /**
  141. -
  142.      * Return a textual error message for a Doctrine error code
  143. -
  144.      *
  145. -
  146.      * @param   int|array  integer error code,
  147. -
  148.      *                            null to get the current error code-message map,
  149. -
  150.      *                            or an array with a new error code-message map
  151. -
  152.      *
  153. -
  154.      * @return  string  error message
  155. -
  156.      */
  157. -
  158.     public function errorMessage($value null)
  159. -
  160.     {
  161. -
  162.         if (is_null($value)) {
  163. -
  164.             return self::$_errorMessages;
  165. -
  166.         }
  167. -
  168.  
  169. -
  170.         return isset(self::$_errorMessages[$value]?
  171. -
  172.            self::$_errorMessages[$valueself::$_errorMessages[Doctrine::ERR];
  173. -
  174.     }
  175. -
  176.  
  177. -
  178. }
  179. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExport.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExport.php.html deleted file mode 100644 index 559bcfda9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExport.php.html +++ /dev/null @@ -1,1138 +0,0 @@ - -
-

Source for file Export.php

-

Documentation is available at Export.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Export.php 2288 2007-08-29 21:51:49Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2288 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     protected $valid_default_values = array(
  71. -
  72.         'text'      => '',
  73. -
  74.         'boolean'   => true,
  75. -
  76.         'integer'   => 0,
  77. -
  78.         'decimal'   => 0.0,
  79. -
  80.         'float'     => 0.0,
  81. -
  82.         'timestamp' => '1970-01-01 00:00:00',
  83. -
  84.         'time'      => '00:00:00',
  85. -
  86.         'date'      => '1970-01-01',
  87. -
  88.         'clob'      => '',
  89. -
  90.         'blob'      => '',
  91. -
  92.         'string'    => ''
  93. -
  94.     );
  95. -
  96.  
  97. -
  98.     /**
  99. -
  100.      * drop an existing database
  101. -
  102.      * (this method is implemented by the drivers)
  103. -
  104.      *
  105. -
  106.      * @param string $name name of the database that should be dropped
  107. -
  108.      * @return void 
  109. -
  110.      */
  111. -
  112.     public function dropDatabase($database)
  113. -
  114.     {
  115. -
  116.         $this->conn->execute($this->dropDatabaseSql($database));
  117. -
  118.     }
  119. -
  120.     /**
  121. -
  122.      * drop an existing database
  123. -
  124.      * (this method is implemented by the drivers)
  125. -
  126.      *
  127. -
  128.      * @param string $name name of the database that should be dropped
  129. -
  130.      * @return void 
  131. -
  132.      */
  133. -
  134.     public function dropDatabaseSql($database)
  135. -
  136.     {
  137. -
  138.         throw new Doctrine_Export_Exception('Drop database not supported by this driver.');
  139. -
  140.     }
  141. -
  142.     /**
  143. -
  144.      * dropTableSql
  145. -
  146.      * drop an existing table
  147. -
  148.      *
  149. -
  150.      * @param string $table           name of table that should be dropped from the database
  151. -
  152.      * @return string 
  153. -
  154.      */
  155. -
  156.     public function dropTableSql($table)
  157. -
  158.     {
  159. -
  160.         return 'DROP TABLE ' $this->conn->quoteIdentifier($table);
  161. -
  162.     }
  163. -
  164.     /**
  165. -
  166.      * dropTable
  167. -
  168.      * drop an existing table
  169. -
  170.      *
  171. -
  172.      * @param string $table           name of table that should be dropped from the database
  173. -
  174.      * @return void 
  175. -
  176.      */
  177. -
  178.     public function dropTable($table)
  179. -
  180.     {
  181. -
  182.         $this->conn->execute($this->dropTableSql($table));
  183. -
  184.     }
  185. -
  186.  
  187. -
  188.     /**
  189. -
  190.      * drop existing index
  191. -
  192.      *
  193. -
  194.      * @param string    $table        name of table that should be used in method
  195. -
  196.      * @param string    $name         name of the index to be dropped
  197. -
  198.      * @return void 
  199. -
  200.      */
  201. -
  202.     public function dropIndex($table$name)
  203. -
  204.     {
  205. -
  206.         return $this->conn->exec($this->dropIndexSql($table$name));
  207. -
  208.     }
  209. -
  210.     
  211. -
  212.     /**
  213. -
  214.      * dropIndexSql
  215. -
  216.      *
  217. -
  218.      * @param string    $table        name of table that should be used in method
  219. -
  220.      * @param string    $name         name of the index to be dropped
  221. -
  222.      * @return string                 SQL that is used for dropping an index
  223. -
  224.      */
  225. -
  226.     public function dropIndexSql($table$name
  227. -
  228.     {
  229. -
  230.         $name $this->conn->quoteIdentifier($this->conn->formatter->getIndexName($name));
  231. -
  232.         return 'DROP INDEX ' $name;
  233. -
  234.     }
  235. -
  236.     /**
  237. -
  238.      * drop existing constraint
  239. -
  240.      *
  241. -
  242.      * @param string    $table        name of table that should be used in method
  243. -
  244.      * @param string    $name         name of the constraint to be dropped
  245. -
  246.      * @param string    $primary      hint if the constraint is primary
  247. -
  248.      * @return void 
  249. -
  250.      */
  251. -
  252.     public function dropConstraint($table$name$primary false)
  253. -
  254.     {
  255. -
  256.         $table $this->conn->quoteIdentifier($table);
  257. -
  258.         $name  $this->conn->quoteIdentifier($this->conn->formatter->getIndexName($name));
  259. -
  260.         return $this->conn->exec('ALTER TABLE ' $table ' DROP CONSTRAINT ' $name);
  261. -
  262.     }
  263. -
  264.     /**
  265. -
  266.      * dropSequenceSql
  267. -
  268.      * drop existing sequence
  269. -
  270.      * (this method is implemented by the drivers)
  271. -
  272.      *
  273. -
  274.      * @throws Doctrine_Connection_Exception     if something fails at database level
  275. -
  276.      * @param string $sequenceName      name of the sequence to be dropped
  277. -
  278.      * @return void 
  279. -
  280.      */
  281. -
  282.     public function dropSequence($sequenceName)
  283. -
  284.     {
  285. -
  286.         $this->conn->exec($this->dropSequenceSql($sequenceName));
  287. -
  288.     }
  289. -
  290.     /**
  291. -
  292.      * dropSequenceSql
  293. -
  294.      * drop existing sequence
  295. -
  296.      *
  297. -
  298.      * @throws Doctrine_Connection_Exception     if something fails at database level
  299. -
  300.      * @param string $sequenceName name of the sequence to be dropped
  301. -
  302.      * @return void 
  303. -
  304.      */
  305. -
  306.     public function dropSequenceSql($sequenceName)
  307. -
  308.     {
  309. -
  310.         throw new Doctrine_Export_Exception('Drop sequence not supported by this driver.');
  311. -
  312.     }
  313. -
  314.     /**
  315. -
  316.      * create a new database
  317. -
  318.      * (this method is implemented by the drivers)
  319. -
  320.      *
  321. -
  322.      * @param string $name name of the database that should be created
  323. -
  324.      * @return void 
  325. -
  326.      */
  327. -
  328.     public function createDatabase($database)
  329. -
  330.     {
  331. -
  332.         $this->conn->execute($this->createDatabaseSql($database));
  333. -
  334.     }
  335. -
  336.     /**
  337. -
  338.      * create a new database
  339. -
  340.      * (this method is implemented by the drivers)
  341. -
  342.      *
  343. -
  344.      * @param string $name name of the database that should be created
  345. -
  346.      * @return string 
  347. -
  348.      */
  349. -
  350.     public function createDatabaseSql($database)
  351. -
  352.     {
  353. -
  354.         throw new Doctrine_Export_Exception('Create database not supported by this driver.');
  355. -
  356.     }
  357. -
  358.     /**
  359. -
  360.      * create a new table
  361. -
  362.      *
  363. -
  364.      * @param string $name   Name of the database that should be created
  365. -
  366.      * @param array $fields  Associative array that contains the definition of each field of the new table
  367. -
  368.      *                        The indexes of the array entries are the names of the fields of the table an
  369. -
  370.      *                        the array entry values are associative arrays like those that are meant to be
  371. -
  372.      *                        passed with the field definitions to get[Type]Declaration() functions.
  373. -
  374.      *                           array(
  375. -
  376.      *                               'id' => array(
  377. -
  378.      *                                   'type' => 'integer',
  379. -
  380.      *                                   'unsigned' => 1
  381. -
  382.      *                                   'notnull' => 1
  383. -
  384.      *                                   'default' => 0
  385. -
  386.      *                               ),
  387. -
  388.      *                               'name' => array(
  389. -
  390.      *                                   'type' => 'text',
  391. -
  392.      *                                   'length' => 12
  393. -
  394.      *                               ),
  395. -
  396.      *                               'password' => array(
  397. -
  398.      *                                   'type' => 'text',
  399. -
  400.      *                                   'length' => 12
  401. -
  402.      *                               )
  403. -
  404.      *                           );
  405. -
  406.      * @param array $options  An associative array of table options:
  407. -
  408.      *
  409. -
  410.      * @return string 
  411. -
  412.      */
  413. -
  414.     public function createTableSql($namearray $fieldsarray $options array())
  415. -
  416.     {
  417. -
  418.         if $name{
  419. -
  420.             throw new Doctrine_Export_Exception('no valid table name specified');
  421. -
  422.         }
  423. -
  424.         
  425. -
  426.         if (empty($fields)) {
  427. -
  428.             throw new Doctrine_Export_Exception('no fields specified for table ' $name);
  429. -
  430.         }
  431. -
  432.  
  433. -
  434.         $queryFields $this->getFieldDeclarationList($fields);
  435. -
  436.  
  437. -
  438.  
  439. -
  440.         if (isset($options['primary']&& empty($options['primary'])) {
  441. -
  442.             $queryFields .= ', PRIMARY KEY(' implode(', 'array_values($options['primary'])) ')';
  443. -
  444.         }
  445. -
  446.  
  447. -
  448.         if (isset($options['indexes']&& empty($options['indexes'])) {
  449. -
  450.             foreach($options['indexes'as $index => $definition{
  451. -
  452.                 $queryFields .= ', ' $this->getIndexDeclaration($index$definition);
  453. -
  454.             }
  455. -
  456.         }
  457. -
  458.  
  459. -
  460.         $query 'CREATE TABLE ' $this->conn->quoteIdentifier($nametrue' (' $queryFields;
  461. -
  462.         
  463. -
  464.         $check $this->getCheckDeclaration($fields);
  465. -
  466.         
  467. -
  468.         if empty($check)) {
  469. -
  470.             $query .= ', ' $check;
  471. -
  472.         }
  473. -
  474.  
  475. -
  476.         $query .= ')';
  477. -
  478.  
  479. -
  480.  
  481. -
  482.  
  483. -
  484.         $sql[$query;
  485. -
  486.  
  487. -
  488.         if (isset($options['foreignKeys'])) {
  489. -
  490.  
  491. -
  492.             foreach ((array) $options['foreignKeys'as $k => $definition{
  493. -
  494.                 if (is_array($definition)) {
  495. -
  496.                     $sql[$this->createForeignKeySql($name$definition);
  497. -
  498.                 }
  499. -
  500.             }
  501. -
  502.         }   
  503. -
  504.         return $sql;
  505. -
  506.     }
  507. -
  508.     /**
  509. -
  510.      * create a new table
  511. -
  512.      *
  513. -
  514.      * @param string $name   Name of the database that should be created
  515. -
  516.      * @param array $fields  Associative array that contains the definition of each field of the new table
  517. -
  518.      * @param array $options  An associative array of table options:
  519. -
  520.      * @see Doctrine_Export::createTableSql()
  521. -
  522.      *
  523. -
  524.      * @return void 
  525. -
  526.      */
  527. -
  528.     public function createTable($namearray $fieldsarray $options array())
  529. -
  530.     {
  531. -
  532.         $sql = (array) $this->createTableSql($name$fields$options);
  533. -
  534.  
  535. -
  536.         foreach ($sql as $query{
  537. -
  538.             $this->conn->execute($query);
  539. -
  540.         }
  541. -
  542.     }
  543. -
  544.     /**
  545. -
  546.      * create sequence
  547. -
  548.      *
  549. -
  550.      * @throws Doctrine_Connection_Exception     if something fails at database level
  551. -
  552.      * @param string    $seqName        name of the sequence to be created
  553. -
  554.      * @param string    $start          start value of the sequence; default is 1
  555. -
  556.      * @param array     $options  An associative array of table options:
  557. -
  558.      *                           array(
  559. -
  560.      *                               'comment' => 'Foo',
  561. -
  562.      *                               'charset' => 'utf8',
  563. -
  564.      *                               'collate' => 'utf8_unicode_ci',
  565. -
  566.      *                           );
  567. -
  568.      * @return void 
  569. -
  570.      */
  571. -
  572.     public function createSequence($seqName$start 1array $options array())
  573. -
  574.     {
  575. -
  576.         return $this->conn->execute($this->createSequenceSql($seqName$start 1$options));
  577. -
  578.     }
  579. -
  580.     /**
  581. -
  582.      * return RDBMS specific create sequence statement
  583. -
  584.      * (this method is implemented by the drivers)
  585. -
  586.      *
  587. -
  588.      * @throws Doctrine_Connection_Exception     if something fails at database level
  589. -
  590.      * @param string    $seqName        name of the sequence to be created
  591. -
  592.      * @param string    $start          start value of the sequence; default is 1
  593. -
  594.      * @param array     $options  An associative array of table options:
  595. -
  596.      *                           array(
  597. -
  598.      *                               'comment' => 'Foo',
  599. -
  600.      *                               'charset' => 'utf8',
  601. -
  602.      *                               'collate' => 'utf8_unicode_ci',
  603. -
  604.      *                           );
  605. -
  606.      * @return string 
  607. -
  608.      */
  609. -
  610.     public function createSequenceSql($seqName$start 1array $options array())
  611. -
  612.     {
  613. -
  614.         throw new Doctrine_Export_Exception('Create sequence not supported by this driver.');
  615. -
  616.     }
  617. -
  618.     /**
  619. -
  620.      * create a constraint on a table
  621. -
  622.      *
  623. -
  624.      * @param string    $table         name of the table on which the constraint is to be created
  625. -
  626.      * @param string    $name          name of the constraint to be created
  627. -
  628.      * @param array     $definition    associative array that defines properties of the constraint to be created.
  629. -
  630.      *                                  Currently, only one property named FIELDS is supported. This property
  631. -
  632.      *                                  is also an associative with the names of the constraint fields as array
  633. -
  634.      *                                  constraints. Each entry of this array is set to another type of associative
  635. -
  636.      *                                  array that specifies properties of the constraint that are specific to
  637. -
  638.      *                                  each field.
  639. -
  640.      *
  641. -
  642.      *                                  Example
  643. -
  644.      *                                     array(
  645. -
  646.      *                                         'fields' => array(
  647. -
  648.      *                                             'user_name' => array(),
  649. -
  650.      *                                             'last_login' => array()
  651. -
  652.      *                                         )
  653. -
  654.      *                                     )
  655. -
  656.      * @return void 
  657. -
  658.      */
  659. -
  660.     public function createConstraint($table$name$definition)
  661. -
  662.     {
  663. -
  664.         return $this->conn->exec($this->createConstraintSql($table$name$definition));
  665. -
  666.     }
  667. -
  668.     /**
  669. -
  670.      * create a constraint on a table
  671. -
  672.      *
  673. -
  674.      * @param string    $table         name of the table on which the constraint is to be created
  675. -
  676.      * @param string    $name          name of the constraint to be created
  677. -
  678.      * @param array     $definition    associative array that defines properties of the constraint to be created.
  679. -
  680.      *                                  Currently, only one property named FIELDS is supported. This property
  681. -
  682.      *                                  is also an associative with the names of the constraint fields as array
  683. -
  684.      *                                  constraints. Each entry of this array is set to another type of associative
  685. -
  686.      *                                  array that specifies properties of the constraint that are specific to
  687. -
  688.      *                                  each field.
  689. -
  690.      *
  691. -
  692.      *                                  Example
  693. -
  694.      *                                     array(
  695. -
  696.      *                                         'fields' => array(
  697. -
  698.      *                                             'user_name' => array(),
  699. -
  700.      *                                             'last_login' => array()
  701. -
  702.      *                                         )
  703. -
  704.      *                                     )
  705. -
  706.      * @return void 
  707. -
  708.      */
  709. -
  710.     public function createConstraintSql($table$name$definition)
  711. -
  712.     {
  713. -
  714.         $table $this->conn->quoteIdentifier($table);
  715. -
  716.         $name  $this->conn->quoteIdentifier($this->conn->formatter->getIndexName($name));
  717. -
  718.         $query 'ALTER TABLE ' $table ' ADD CONSTRAINT ' $name;
  719. -
  720.  
  721. -
  722.         if (isset($definition['primary']&& $definition['primary']{
  723. -
  724.             $query .= ' PRIMARY KEY';
  725. -
  726.         elseif (isset($definition['unique']&& $definition['unique']{
  727. -
  728.             $query .= ' UNIQUE';
  729. -
  730.         }
  731. -
  732.  
  733. -
  734.         $fields array();
  735. -
  736.         foreach (array_keys($definition['fields']as $field{
  737. -
  738.             $fields[$this->conn->quoteIdentifier($fieldtrue);
  739. -
  740.         }
  741. -
  742.         $query .= ' ('implode(', '$fields')';
  743. -
  744.  
  745. -
  746.         return $query;
  747. -
  748.     }
  749. -
  750.     /**
  751. -
  752.      * Get the stucture of a field into an array
  753. -
  754.      *
  755. -
  756.      * @param string    $table         name of the table on which the index is to be created
  757. -
  758.      * @param string    $name          name of the index to be created
  759. -
  760.      * @param array     $definition    associative array that defines properties of the index to be created.
  761. -
  762.      *                                  Currently, only one property named FIELDS is supported. This property
  763. -
  764.      *                                  is also an associative with the names of the index fields as array
  765. -
  766.      *                                  indexes. Each entry of this array is set to another type of associative
  767. -
  768.      *                                  array that specifies properties of the index that are specific to
  769. -
  770.      *                                  each field.
  771. -
  772.      *
  773. -
  774.      *                                  Currently, only the sorting property is supported. It should be used
  775. -
  776.      *                                  to define the sorting direction of the index. It may be set to either
  777. -
  778.      *                                  ascending or descending.
  779. -
  780.      *
  781. -
  782.      *                                  Not all DBMS support index sorting direction configuration. The DBMS
  783. -
  784.      *                                  drivers of those that do not support it ignore this property. Use the
  785. -
  786.      *                                  function supports() to determine whether the DBMS driver can manage indexes.
  787. -
  788.      *
  789. -
  790.      *                                  Example
  791. -
  792.      *                                     array(
  793. -
  794.      *                                         'fields' => array(
  795. -
  796.      *                                             'user_name' => array(
  797. -
  798.      *                                                 'sorting' => 'ascending'
  799. -
  800.      *                                             ),
  801. -
  802.      *                                             'last_login' => array()
  803. -
  804.      *                                         )
  805. -
  806.      *                                     )
  807. -
  808.      * @return void 
  809. -
  810.      */
  811. -
  812.     public function createIndex($table$namearray $definition)
  813. -
  814.     {
  815. -
  816.         return $this->conn->execute($this->createIndexSql($table$name$definition));
  817. -
  818.     }
  819. -
  820.     /**
  821. -
  822.      * Get the stucture of a field into an array
  823. -
  824.      *
  825. -
  826.      * @param string    $table         name of the table on which the index is to be created
  827. -
  828.      * @param string    $name          name of the index to be created
  829. -
  830.      * @param array     $definition    associative array that defines properties of the index to be created.
  831. -
  832.      * @see Doctrine_Export::createIndex()
  833. -
  834.      * @return string 
  835. -
  836.      */
  837. -
  838.     public function createIndexSql($table$namearray $definition)
  839. -
  840.     {
  841. -
  842.         $table  $this->conn->quoteIdentifier($table);
  843. -
  844.         $name   $this->conn->quoteIdentifier($name);
  845. -
  846.         $type   '';
  847. -
  848.  
  849. -
  850.         if(isset($definition['type'])) {
  851. -
  852.             switch (strtolower($definition['type'])) {
  853. -
  854.                 case 'unique':
  855. -
  856.                     $type strtoupper($definition['type']' ';
  857. -
  858.                 break;
  859. -
  860.                 default:
  861. -
  862.                     throw new Doctrine_Export_Exception('Unknown index type ' $definition['type']);
  863. -
  864.             }
  865. -
  866.         }
  867. -
  868.  
  869. -
  870.         $query 'CREATE ' $type 'INDEX ' $name ' ON ' $table;
  871. -
  872.  
  873. -
  874.         $fields array();
  875. -
  876.         foreach ($definition['fields'as $field{
  877. -
  878.             $fields[$this->conn->quoteIdentifier($field);
  879. -
  880.         }
  881. -
  882.         $query .= ' (' implode(', '$fields')';
  883. -
  884.  
  885. -
  886.         return $query;
  887. -
  888.     }
  889. -
  890.     /**
  891. -
  892.      * createForeignKeySql
  893. -
  894.      *
  895. -
  896.      * @param string    $table         name of the table on which the foreign key is to be created
  897. -
  898.      * @param array     $definition    associative array that defines properties of the foreign key to be created.
  899. -
  900.      * @return string 
  901. -
  902.      */
  903. -
  904.     public function createForeignKeySql($tablearray $definition)
  905. -
  906.     {
  907. -
  908.         $table $this->conn->quoteIdentifier($table);
  909. -
  910.  
  911. -
  912.         $query 'ALTER TABLE ' $table ' ADD CONSTRAINT ' $this->getForeignKeyDeclaration($definition);
  913. -
  914.  
  915. -
  916.         return $query;
  917. -
  918.     
  919. -
  920.     /**
  921. -
  922.      * alter an existing table
  923. -
  924.      * (this method is implemented by the drivers)
  925. -
  926.      *
  927. -
  928.      * @param string $name         name of the table that is intended to be changed.
  929. -
  930.      * @param array $changes     associative array that contains the details of each type
  931. -
  932.      *                              of change that is intended to be performed. The types of
  933. -
  934.      *                              changes that are currently supported are defined as follows:
  935. -
  936.      *
  937. -
  938.      *                              name
  939. -
  940.      *
  941. -
  942.      *                                 New name for the table.
  943. -
  944.      *
  945. -
  946.      *                             add
  947. -
  948.      *
  949. -
  950.      *                                 Associative array with the names of fields to be added as
  951. -
  952.      *                                  indexes of the array. The value of each entry of the array
  953. -
  954.      *                                  should be set to another associative array with the properties
  955. -
  956.      *                                  of the fields to be added. The properties of the fields should
  957. -
  958.      *                                  be the same as defined by the MDB2 parser.
  959. -
  960.      *
  961. -
  962.      *
  963. -
  964.      *                             remove
  965. -
  966.      *
  967. -
  968.      *                                 Associative array with the names of fields to be removed as indexes
  969. -
  970.      *                                  of the array. Currently the values assigned to each entry are ignored.
  971. -
  972.      *                                  An empty array should be used for future compatibility.
  973. -
  974.      *
  975. -
  976.      *                             rename
  977. -
  978.      *
  979. -
  980.      *                                 Associative array with the names of fields to be renamed as indexes
  981. -
  982.      *                                  of the array. The value of each entry of the array should be set to
  983. -
  984.      *                                  another associative array with the entry named name with the new
  985. -
  986.      *                                  field name and the entry named Declaration that is expected to contain
  987. -
  988.      *                                  the portion of the field declaration already in DBMS specific SQL code
  989. -
  990.      *                                  as it is used in the CREATE TABLE statement.
  991. -
  992.      *
  993. -
  994.      *                             change
  995. -
  996.      *
  997. -
  998.      *                                 Associative array with the names of the fields to be changed as indexes
  999. -
  1000.      *                                  of the array. Keep in mind that if it is intended to change either the
  1001. -
  1002.      *                                  name of a field and any other properties, the change array entries
  1003. -
  1004.      *                                  should have the new names of the fields as array indexes.
  1005. -
  1006.      *
  1007. -
  1008.      *                                 The value of each entry of the array should be set to another associative
  1009. -
  1010.      *                                  array with the properties of the fields to that are meant to be changed as
  1011. -
  1012.      *                                  array entries. These entries should be assigned to the new values of the
  1013. -
  1014.      *                                  respective properties. The properties of the fields should be the same
  1015. -
  1016.      *                                  as defined by the MDB2 parser.
  1017. -
  1018.      *
  1019. -
  1020.      *                             Example
  1021. -
  1022.      *                                 array(
  1023. -
  1024.      *                                     'name' => 'userlist',
  1025. -
  1026.      *                                     'add' => array(
  1027. -
  1028.      *                                         'quota' => array(
  1029. -
  1030.      *                                             'type' => 'integer',
  1031. -
  1032.      *                                             'unsigned' => 1
  1033. -
  1034.      *                                         )
  1035. -
  1036.      *                                     ),
  1037. -
  1038.      *                                     'remove' => array(
  1039. -
  1040.      *                                         'file_limit' => array(),
  1041. -
  1042.      *                                         'time_limit' => array()
  1043. -
  1044.      *                                     ),
  1045. -
  1046.      *                                     'change' => array(
  1047. -
  1048.      *                                         'name' => array(
  1049. -
  1050.      *                                             'length' => '20',
  1051. -
  1052.      *                                             'definition' => array(
  1053. -
  1054.      *                                                 'type' => 'text',
  1055. -
  1056.      *                                                 'length' => 20,
  1057. -
  1058.      *                                             ),
  1059. -
  1060.      *                                         )
  1061. -
  1062.      *                                     ),
  1063. -
  1064.      *                                     'rename' => array(
  1065. -
  1066.      *                                         'sex' => array(
  1067. -
  1068.      *                                             'name' => 'gender',
  1069. -
  1070.      *                                             'definition' => array(
  1071. -
  1072.      *                                                 'type' => 'text',
  1073. -
  1074.      *                                                 'length' => 1,
  1075. -
  1076.      *                                                 'default' => 'M',
  1077. -
  1078.      *                                             ),
  1079. -
  1080.      *                                         )
  1081. -
  1082.      *                                     )
  1083. -
  1084.      *                                 )
  1085. -
  1086.      *
  1087. -
  1088.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  1089. -
  1090.      *                              can perform the requested table alterations if the value is true or
  1091. -
  1092.      *                              actually perform them otherwise.
  1093. -
  1094.      * @return void 
  1095. -
  1096.      */
  1097. -
  1098.     public function alterTable($namearray $changes$check)
  1099. -
  1100.     {
  1101. -
  1102.         $this->conn->execute($this->alterTableSql($name$changes$check));
  1103. -
  1104.     
  1105. -
  1106.     /**
  1107. -
  1108.      * generates the sql for altering an existing table
  1109. -
  1110.      * (this method is implemented by the drivers)
  1111. -
  1112.      *
  1113. -
  1114.      * @param string $name          name of the table that is intended to be changed.
  1115. -
  1116.      * @param array $changes        associative array that contains the details of each type      *
  1117. -
  1118.      * @param boolean $check        indicates whether the function should just check if the DBMS driver
  1119. -
  1120.      *                               can perform the requested table alterations if the value is true or
  1121. -
  1122.      *                               actually perform them otherwise.
  1123. -
  1124.      * @see Doctrine_Export::alterTable()
  1125. -
  1126.      * @return string 
  1127. -
  1128.      */
  1129. -
  1130.     public function alterTableSql($namearray $changes$check)
  1131. -
  1132.     {
  1133. -
  1134.         throw new Doctrine_Export_Exception('Alter table not supported by this driver.');
  1135. -
  1136.     
  1137. -
  1138.     /**
  1139. -
  1140.      * Get declaration of a number of field in bulk
  1141. -
  1142.      *
  1143. -
  1144.      * @param array $fields  a multidimensional associative array.
  1145. -
  1146.      *       The first dimension determines the field name, while the second
  1147. -
  1148.      *       dimension is keyed with the name of the properties
  1149. -
  1150.      *       of the field being declared as array indexes. Currently, the types
  1151. -
  1152.      *       of supported field properties are as follows:
  1153. -
  1154.      *
  1155. -
  1156.      *       length
  1157. -
  1158.      *           Integer value that determines the maximum length of the text
  1159. -
  1160.      *           field. If this argument is missing the field should be
  1161. -
  1162.      *           declared to have the longest length allowed by the DBMS.
  1163. -
  1164.      *
  1165. -
  1166.      *       default
  1167. -
  1168.      *           Text value to be used as default for this field.
  1169. -
  1170.      *
  1171. -
  1172.      *       notnull
  1173. -
  1174.      *           Boolean flag that indicates whether this field is constrained
  1175. -
  1176.      *           to not be set to null.
  1177. -
  1178.      *       charset
  1179. -
  1180.      *           Text value with the default CHARACTER SET for this field.
  1181. -
  1182.      *       collation
  1183. -
  1184.      *           Text value with the default COLLATION for this field.
  1185. -
  1186.      *       unique
  1187. -
  1188.      *           unique constraint
  1189. -
  1190.      *
  1191. -
  1192.      * @return string 
  1193. -
  1194.      */
  1195. -
  1196.     public function getFieldDeclarationList(array $fields)
  1197. -
  1198.     {
  1199. -
  1200.         foreach ($fields as $fieldName => $field{
  1201. -
  1202.             $query $this->getDeclaration($fieldName$field);
  1203. -
  1204.  
  1205. -
  1206.             $queryFields[$query;
  1207. -
  1208.         }
  1209. -
  1210.         return implode(', '$queryFields);
  1211. -
  1212.     }
  1213. -
  1214.     /**
  1215. -
  1216.      * Obtain DBMS specific SQL code portion needed to declare a generic type
  1217. -
  1218.      * field to be used in statements like CREATE TABLE.
  1219. -
  1220.      *
  1221. -
  1222.      * @param string $name   name the field to be declared.
  1223. -
  1224.      * @param array  $field  associative array with the name of the properties
  1225. -
  1226.      *       of the field being declared as array indexes. Currently, the types
  1227. -
  1228.      *       of supported field properties are as follows:
  1229. -
  1230.      *
  1231. -
  1232.      *       length
  1233. -
  1234.      *           Integer value that determines the maximum length of the text
  1235. -
  1236.      *           field. If this argument is missing the field should be
  1237. -
  1238.      *           declared to have the longest length allowed by the DBMS.
  1239. -
  1240.      *
  1241. -
  1242.      *       default
  1243. -
  1244.      *           Text value to be used as default for this field.
  1245. -
  1246.      *
  1247. -
  1248.      *       notnull
  1249. -
  1250.      *           Boolean flag that indicates whether this field is constrained
  1251. -
  1252.      *           to not be set to null.
  1253. -
  1254.      *       charset
  1255. -
  1256.      *           Text value with the default CHARACTER SET for this field.
  1257. -
  1258.      *       collation
  1259. -
  1260.      *           Text value with the default COLLATION for this field.
  1261. -
  1262.      *       unique
  1263. -
  1264.      *           unique constraint
  1265. -
  1266.      *       check
  1267. -
  1268.      *           column check constraint
  1269. -
  1270.      *
  1271. -
  1272.      * @return string  DBMS specific SQL code portion that should be used to
  1273. -
  1274.      *       declare the specified field.
  1275. -
  1276.      */
  1277. -
  1278.     public function getDeclaration($namearray $field)
  1279. -
  1280.     {
  1281. -
  1282.  
  1283. -
  1284.         $default   $this->getDefaultFieldDeclaration($field);
  1285. -
  1286.  
  1287. -
  1288.         $charset   (isset($field['charset']&& $field['charset']?
  1289. -
  1290.                     ' ' $this->getCharsetFieldDeclaration($field['charset']'';
  1291. -
  1292.  
  1293. -
  1294.         $collation (isset($field['collation']&& $field['collation']?
  1295. -
  1296.                     ' ' $this->getCollationFieldDeclaration($field['collation']'';
  1297. -
  1298.  
  1299. -
  1300.         $notnull   (isset($field['notnull']&& $field['notnull']' NOT NULL' '';
  1301. -
  1302.  
  1303. -
  1304.         $unique    (isset($field['unique']&& $field['unique']?
  1305. -
  1306.                     ' ' $this->getUniqueFieldDeclaration('';
  1307. -
  1308.                     
  1309. -
  1310.         $check     (isset($field['check']&& $field['check']?
  1311. -
  1312.                     ' ' $field['check''';
  1313. -
  1314.  
  1315. -
  1316.         $method 'get' $field['type''Declaration';
  1317. -
  1318.  
  1319. -
  1320.         if (method_exists($this->conn->dataDict$method)) {
  1321. -
  1322.             return $this->conn->dataDict->$method($name$field);
  1323. -
  1324.         else {
  1325. -
  1326.             $dec $this->conn->dataDict->getNativeDeclaration($field);
  1327. -
  1328.         }
  1329. -
  1330.         return $this->conn->quoteIdentifier($nametrue' ' $dec $charset $default $notnull $unique $check $collation;
  1331. -
  1332.     }
  1333. -
  1334.     /**
  1335. -
  1336.      * getDefaultDeclaration
  1337. -
  1338.      * Obtain DBMS specific SQL code portion needed to set a default value
  1339. -
  1340.      * declaration to be used in statements like CREATE TABLE.
  1341. -
  1342.      *
  1343. -
  1344.      * @param array $field      field definition array
  1345. -
  1346.      * @return string           DBMS specific SQL code portion needed to set a default value
  1347. -
  1348.      */
  1349. -
  1350.     public function getDefaultFieldDeclaration($field)
  1351. -
  1352.     {
  1353. -
  1354.         $default '';
  1355. -
  1356.         if (isset($field['default'])) {
  1357. -
  1358.             if ($field['default'=== ''{
  1359. -
  1360.                 $field['default'empty($field['notnull'])
  1361. -
  1362.                     ? null $this->valid_default_values[$field['type']];
  1363. -
  1364.  
  1365. -
  1366.                 if ($field['default'=== '' && 
  1367. -
  1368.                    ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_EMPTY_TO_NULL)) {
  1369. -
  1370.                     $field['default'null;
  1371. -
  1372.                 }
  1373. -
  1374.             }
  1375. -
  1376.     
  1377. -
  1378.             if ($field['type'=== 'boolean'{
  1379. -
  1380.                 $fields['default'$this->conn->convertBooleans($field['default']);                                     
  1381. -
  1382.             }
  1383. -
  1384.             $default ' DEFAULT ' $this->conn->quote($field['default']$field['type']);
  1385. -
  1386.         }
  1387. -
  1388.         return $default;
  1389. -
  1390.     }
  1391. -
  1392.     /**
  1393. -
  1394.      * Obtain DBMS specific SQL code portion needed to set a CHECK constraint
  1395. -
  1396.      * declaration to be used in statements like CREATE TABLE.
  1397. -
  1398.      *
  1399. -
  1400.      * @param array $definition     check definition
  1401. -
  1402.      * @return string               DBMS specific SQL code portion needed to set a CHECK constraint
  1403. -
  1404.      */
  1405. -
  1406.     public function getCheckDeclaration(array $definition)
  1407. -
  1408.     {
  1409. -
  1410.         $constraints array();
  1411. -
  1412.         foreach ($definition as $field => $def{
  1413. -
  1414.             if (is_string($def)) {
  1415. -
  1416.                 $constraints['CHECK (' $def ')';
  1417. -
  1418.             else {
  1419. -
  1420.                 if (isset($def['min'])) {
  1421. -
  1422.                     $constraints['CHECK (' $field ' >= ' $def['min'')';
  1423. -
  1424.                 }
  1425. -
  1426.  
  1427. -
  1428.                 if (isset($def['max'])) {
  1429. -
  1430.                     $constraints['CHECK (' $field ' <= ' $def['max'')';
  1431. -
  1432.                 }
  1433. -
  1434.             }
  1435. -
  1436.         }
  1437. -
  1438.  
  1439. -
  1440.         return implode(', '$constraints);
  1441. -
  1442.     }
  1443. -
  1444.     /**
  1445. -
  1446.      * Obtain DBMS specific SQL code portion needed to set an index
  1447. -
  1448.      * declaration to be used in statements like CREATE TABLE.
  1449. -
  1450.      *
  1451. -
  1452.      * @param string $name          name of the index
  1453. -
  1454.      * @param array $definition     index definition
  1455. -
  1456.      * @return string               DBMS specific SQL code portion needed to set an index
  1457. -
  1458.      */
  1459. -
  1460.     public function getIndexDeclaration($namearray $definition)
  1461. -
  1462.     {
  1463. -
  1464.         $name   $this->conn->quoteIdentifier($name);
  1465. -
  1466.         $type   '';
  1467. -
  1468.  
  1469. -
  1470.         if (isset($definition['type'])) {
  1471. -
  1472.             if (strtolower($definition['type']== 'unique'{
  1473. -
  1474.                 $type strtoupper($definition['type']' ';
  1475. -
  1476.             else {
  1477. -
  1478.                 throw new Doctrine_Export_Exception('Unknown index type ' $definition['type']);
  1479. -
  1480.             }
  1481. -
  1482.         }
  1483. -
  1484.  
  1485. -
  1486.         if isset($definition['fields']|| is_array($definition['fields'])) {
  1487. -
  1488.             throw new Doctrine_Export_Exception('No index columns given.');
  1489. -
  1490.         }
  1491. -
  1492.  
  1493. -
  1494.         $query $type 'INDEX ' $name;
  1495. -
  1496.  
  1497. -
  1498.         $query .= ' (' $this->getIndexFieldDeclarationList($definition['fields']')';
  1499. -
  1500.         
  1501. -
  1502.         return $query;
  1503. -
  1504.     }
  1505. -
  1506.     /**
  1507. -
  1508.      * getIndexFieldDeclarationList
  1509. -
  1510.      * Obtain DBMS specific SQL code portion needed to set an index
  1511. -
  1512.      * declaration to be used in statements like CREATE TABLE.
  1513. -
  1514.      *
  1515. -
  1516.      * @return string 
  1517. -
  1518.      */
  1519. -
  1520.     public function getIndexFieldDeclarationList(array $fields)
  1521. -
  1522.     {
  1523. -
  1524.         $ret array();
  1525. -
  1526.         foreach ($fields as $field => $definition{
  1527. -
  1528.             if(is_array($definition)) {
  1529. -
  1530.                 $ret[$this->conn->quoteIdentifier($field);
  1531. -
  1532.             else {
  1533. -
  1534.                 $ret[$this->conn->quoteIdentifier($definition);
  1535. -
  1536.             }
  1537. -
  1538.         }
  1539. -
  1540.         return implode(', '$ret);
  1541. -
  1542.     }
  1543. -
  1544.     /**
  1545. -
  1546.      * A method to return the required SQL string that fits between CREATE ... TABLE
  1547. -
  1548.      * to create the table as a temporary table.
  1549. -
  1550.      *
  1551. -
  1552.      * Should be overridden in driver classes to return the correct string for the
  1553. -
  1554.      * specific database type.
  1555. -
  1556.      *
  1557. -
  1558.      * The default is to return the string "TEMPORARY" - this will result in a
  1559. -
  1560.      * SQL error for any database that does not support temporary tables, or that
  1561. -
  1562.      * requires a different SQL command from "CREATE TEMPORARY TABLE".
  1563. -
  1564.      *
  1565. -
  1566.      * @return string The string required to be placed between "CREATE" and "TABLE"
  1567. -
  1568.      *                 to generate a temporary table, if possible.
  1569. -
  1570.      */
  1571. -
  1572.     public function getTemporaryTableQuery()
  1573. -
  1574.     {
  1575. -
  1576.         return 'TEMPORARY';
  1577. -
  1578.     }
  1579. -
  1580.     /**
  1581. -
  1582.      * getForeignKeyDeclaration
  1583. -
  1584.      * Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint
  1585. -
  1586.      * of a field declaration to be used in statements like CREATE TABLE.
  1587. -
  1588.      *
  1589. -
  1590.      * @param array $definition         an associative array with the following structure:
  1591. -
  1592.      *           name                    optional constraint name
  1593. -
  1594.      * 
  1595. -
  1596.      *           local                   the local field(s)
  1597. -
  1598.      *
  1599. -
  1600.      *           foreign                 the foreign reference field(s)
  1601. -
  1602.      *
  1603. -
  1604.      *           foreignTable            the name of the foreign table
  1605. -
  1606.      *
  1607. -
  1608.      *           onDelete                referential delete action
  1609. -
  1610.      *  
  1611. -
  1612.      *           onUpdate                referential update action
  1613. -
  1614.      *
  1615. -
  1616.      *           deferred                deferred constraint checking
  1617. -
  1618.      *
  1619. -
  1620.      *  The onDelete and onUpdate keys accept the following values:
  1621. -
  1622.      *
  1623. -
  1624.      *  CASCADE: Delete or update the row from the parent table and automatically delete or
  1625. -
  1626.      *           update the matching rows in the child table. Both ON DELETE CASCADE and ON UPDATE CASCADE are supported.
  1627. -
  1628.      *           Between two tables, you should not define several ON UPDATE CASCADE clauses that act on the same column
  1629. -
  1630.      *           in the parent table or in the child table.
  1631. -
  1632.      *
  1633. -
  1634.      *  SET NULL: Delete or update the row from the parent table and set the foreign key column or columns in the
  1635. -
  1636.      *           child table to NULL. This is valid only if the foreign key columns do not have the NOT NULL qualifier
  1637. -
  1638.      *           specified. Both ON DELETE SET NULL and ON UPDATE SET NULL clauses are supported.
  1639. -
  1640.      *
  1641. -
  1642.      *  NO ACTION: In standard SQL, NO ACTION means no action in the sense that an attempt to delete or update a primary
  1643. -
  1644.      *            key value is not allowed to proceed if there is a related foreign key value in the referenced table.
  1645. -
  1646.      *
  1647. -
  1648.      *  RESTRICT: Rejects the delete or update operation for the parent table. NO ACTION and RESTRICT are the same as
  1649. -
  1650.      *            omitting the ON DELETE or ON UPDATE clause.
  1651. -
  1652.      *
  1653. -
  1654.      *  SET DEFAULT
  1655. -
  1656.      *
  1657. -
  1658.      * @return string  DBMS specific SQL code portion needed to set the FOREIGN KEY constraint
  1659. -
  1660.      *                  of a field declaration.
  1661. -
  1662.      */
  1663. -
  1664.     public function getForeignKeyDeclaration(array $definition)
  1665. -
  1666.     {
  1667. -
  1668.         $sql  $this->getForeignKeyBaseDeclaration($definition);
  1669. -
  1670.         $sql .= $this->getAdvancedForeignKeyOptions($definition);
  1671. -
  1672.  
  1673. -
  1674.         return $sql;
  1675. -
  1676.     
  1677. -
  1678.     /**
  1679. -
  1680.      * getAdvancedForeignKeyOptions
  1681. -
  1682.      * Return the FOREIGN KEY query section dealing with non-standard options
  1683. -
  1684.      * as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
  1685. -
  1686.      *
  1687. -
  1688.      * @param array $definition     foreign key definition
  1689. -
  1690.      * @return string 
  1691. -
  1692.      */
  1693. -
  1694.     public function getAdvancedForeignKeyOptions(array $definition)
  1695. -
  1696.     {
  1697. -
  1698.         $query '';
  1699. -
  1700.         if empty($definition['onUpdate'])) {
  1701. -
  1702.             $query .= ' ON UPDATE ' $this->getForeignKeyRefentialAction($definition['onUpdate']);
  1703. -
  1704.         }
  1705. -
  1706.         if empty($definition['onDelete'])) {
  1707. -
  1708.             $query .= ' ON DELETE ' $this->getForeignKeyRefentialAction($definition['onDelete']);
  1709. -
  1710.         }
  1711. -
  1712.         return $query;
  1713. -
  1714.     }
  1715. -
  1716.     /**
  1717. -
  1718.      * getForeignKeyReferentialAction
  1719. -
  1720.      *
  1721. -
  1722.      * returns given referential action in uppercase if valid, otherwise throws
  1723. -
  1724.      * an exception
  1725. -
  1726.      *
  1727. -
  1728.      * @throws Doctrine_Exception_Exception     if unknown referential action given
  1729. -
  1730.      * @param string $action    foreign key referential action
  1731. -
  1732.      * @param string            foreign key referential action in uppercase
  1733. -
  1734.      */
  1735. -
  1736.     public function getForeignKeyReferentialAction($action)
  1737. -
  1738.     {
  1739. -
  1740.         $upper strtoupper($action);
  1741. -
  1742.         switch ($upper{
  1743. -
  1744.             case 'CASCADE':
  1745. -
  1746.             case 'SET NULL':
  1747. -
  1748.             case 'NO ACTION':
  1749. -
  1750.             case 'RESTRICT':
  1751. -
  1752.             case 'SET DEFAULT':
  1753. -
  1754.                 return $upper;
  1755. -
  1756.             break;
  1757. -
  1758.             default:
  1759. -
  1760.                 throw new Doctrine_Export_Exception('Unknown foreign key referential action \'' $upper '\' given.');
  1761. -
  1762.         }
  1763. -
  1764.     }
  1765. -
  1766.     /**
  1767. -
  1768.      * getForeignKeyBaseDeclaration
  1769. -
  1770.      * Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint
  1771. -
  1772.      * of a field declaration to be used in statements like CREATE TABLE.
  1773. -
  1774.      *
  1775. -
  1776.      * @param array $definition 
  1777. -
  1778.      * @return string 
  1779. -
  1780.      */
  1781. -
  1782.     public function getForeignKeyBaseDeclaration(array $definition)
  1783. -
  1784.     {
  1785. -
  1786.         $sql '';
  1787. -
  1788.         if (isset($definition['name'])) {
  1789. -
  1790.             $sql .= 'CONSTRAINT ' $this->conn->quoteIdentifier($definition['name']' ';
  1791. -
  1792.         }
  1793. -
  1794.         $sql .= 'FOREIGN KEY (';
  1795. -
  1796.  
  1797. -
  1798.         if isset($definition['local'])) {
  1799. -
  1800.             throw new Doctrine_Export_Exception('Local reference field missing from definition.');
  1801. -
  1802.         }
  1803. -
  1804.         if isset($definition['foreign'])) {
  1805. -
  1806.             throw new Doctrine_Export_Exception('Foreign reference field missing from definition.');
  1807. -
  1808.         }
  1809. -
  1810.         if isset($definition['foreignTable'])) {
  1811. -
  1812.             throw new Doctrine_Export_Exception('Foreign reference table missing from definition.');
  1813. -
  1814.         }
  1815. -
  1816.  
  1817. -
  1818.         if is_array($definition['local'])) {
  1819. -
  1820.             $definition['local'array($definition['local']);
  1821. -
  1822.         }
  1823. -
  1824.         if is_array($definition['foreign'])) {
  1825. -
  1826.             $definition['foreign'array($definition['foreign']);
  1827. -
  1828.         }
  1829. -
  1830.  
  1831. -
  1832.         $sql .= implode(', 'array_map(array($this->conn'quoteIdentifier')$definition['local']))
  1833. -
  1834.               . ') REFERENCES '
  1835. -
  1836.               . $definition['foreignTable''('
  1837. -
  1838.               . implode(', 'array_map(array($this->conn'quoteIdentifier')$definition['foreign'])) ')';
  1839. -
  1840.         
  1841. -
  1842.         return $sql;
  1843. -
  1844.     }
  1845. -
  1846.     /**
  1847. -
  1848.      * Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint
  1849. -
  1850.      * of a field declaration to be used in statements like CREATE TABLE.
  1851. -
  1852.      *
  1853. -
  1854.      * @return string  DBMS specific SQL code portion needed to set the UNIQUE constraint
  1855. -
  1856.      *                  of a field declaration.
  1857. -
  1858.      */
  1859. -
  1860.     public function getUniqueFieldDeclaration()
  1861. -
  1862.     {
  1863. -
  1864.         return 'UNIQUE';
  1865. -
  1866.     }
  1867. -
  1868.     /**
  1869. -
  1870.      * Obtain DBMS specific SQL code portion needed to set the CHARACTER SET
  1871. -
  1872.      * of a field declaration to be used in statements like CREATE TABLE.
  1873. -
  1874.      *
  1875. -
  1876.      * @param string $charset   name of the charset
  1877. -
  1878.      * @return string  DBMS specific SQL code portion needed to set the CHARACTER SET
  1879. -
  1880.      *                  of a field declaration.
  1881. -
  1882.      */
  1883. -
  1884.     public function getCharsetFieldDeclaration($charset)
  1885. -
  1886.     {
  1887. -
  1888.         return '';
  1889. -
  1890.     }
  1891. -
  1892.     /**
  1893. -
  1894.      * Obtain DBMS specific SQL code portion needed to set the COLLATION
  1895. -
  1896.      * of a field declaration to be used in statements like CREATE TABLE.
  1897. -
  1898.      *
  1899. -
  1900.      * @param string $collation   name of the collation
  1901. -
  1902.      * @return string  DBMS specific SQL code portion needed to set the COLLATION
  1903. -
  1904.      *                  of a field declaration.
  1905. -
  1906.      */
  1907. -
  1908.     public function getCollationFieldDeclaration($collation)
  1909. -
  1910.     {
  1911. -
  1912.         return '';
  1913. -
  1914.     
  1915. -
  1916.     /**
  1917. -
  1918.      * exportSchema
  1919. -
  1920.      * method for exporting Doctrine_Record classes to a schema
  1921. -
  1922.      *
  1923. -
  1924.      * if the directory parameter is given this method first iterates
  1925. -
  1926.      * recursively trhough the given directory in order to find any model classes
  1927. -
  1928.      *
  1929. -
  1930.      * Then it iterates through all declared classes and creates tables for the ones
  1931. -
  1932.      * that extend Doctrine_Record and are not abstract classes
  1933. -
  1934.      *
  1935. -
  1936.      * @throws Doctrine_Connection_Exception    if some error other than Doctrine::ERR_ALREADY_EXISTS
  1937. -
  1938.      *                                           occurred during the create table operation
  1939. -
  1940.      * @param string $directory     optional directory parameter
  1941. -
  1942.      * @return void 
  1943. -
  1944.      */
  1945. -
  1946.     public function exportSchema($directory null)
  1947. -
  1948.     {
  1949. -
  1950.         $sql $this->exportSql($directory);
  1951. -
  1952.  
  1953. -
  1954.         $this->conn->beginTransaction();
  1955. -
  1956.  
  1957. -
  1958.         foreach ($sql as $query{
  1959. -
  1960.             try {
  1961. -
  1962.                 $this->conn->exec($query);
  1963. -
  1964.             catch (Doctrine_Connection_Exception $e{
  1965. -
  1966.                 // we only want to silence table already exists errors
  1967. -
  1968.                 if($e->getPortableCode(!== Doctrine::ERR_ALREADY_EXISTS{
  1969. -
  1970.                     $this->conn->rollback();
  1971. -
  1972.                     throw $e;
  1973. -
  1974.                 }                                           
  1975. -
  1976.             }
  1977. -
  1978.         }
  1979. -
  1980.         $this->conn->commit();
  1981. -
  1982.     }
  1983. -
  1984.     /**
  1985. -
  1986.      * exportClasses
  1987. -
  1988.      * method for exporting Doctrine_Record classes to a schema
  1989. -
  1990.      *
  1991. -
  1992.      * @throws Doctrine_Connection_Exception    if some error other than Doctrine::ERR_ALREADY_EXISTS
  1993. -
  1994.      *                                           occurred during the create table operation
  1995. -
  1996.      * @param array $classes 
  1997. -
  1998.      * @return void 
  1999. -
  2000.      */
  2001. -
  2002.     public function exportClasses(array $classes)
  2003. -
  2004.     {
  2005. -
  2006.         $sql $this->exportClassesSql($classes);
  2007. -
  2008.  
  2009. -
  2010.         $this->conn->beginTransaction();
  2011. -
  2012.  
  2013. -
  2014.         foreach ($sql as $query{
  2015. -
  2016.             try {
  2017. -
  2018.                 $this->conn->exec($query);
  2019. -
  2020.             catch (Doctrine_Connection_Exception $e{
  2021. -
  2022.                 // we only want to silence table already exists errors
  2023. -
  2024.                 if($e->getPortableCode(!== Doctrine::ERR_ALREADY_EXISTS{
  2025. -
  2026.                     $this->conn->rollback();
  2027. -
  2028.                     throw $e;
  2029. -
  2030.                 }
  2031. -
  2032.             }
  2033. -
  2034.         }
  2035. -
  2036.         $this->conn->commit();
  2037. -
  2038.     }
  2039. -
  2040.     /**
  2041. -
  2042.      * exportClassesSql
  2043. -
  2044.      * method for exporting Doctrine_Record classes to a schema
  2045. -
  2046.      *
  2047. -
  2048.      * @throws Doctrine_Connection_Exception    if some error other than Doctrine::ERR_ALREADY_EXISTS
  2049. -
  2050.      *                                           occurred during the create table operation
  2051. -
  2052.      * @param array $classes 
  2053. -
  2054.      * @return void 
  2055. -
  2056.      */
  2057. -
  2058.     public function exportClassesSql(array $classes)
  2059. -
  2060.     {
  2061. -
  2062.         $parent new ReflectionClass('Doctrine_Record');
  2063. -
  2064.  
  2065. -
  2066.         $sql array();
  2067. -
  2068.         $fks array();
  2069. -
  2070.  
  2071. -
  2072.         // we iterate trhough the diff of previously declared classes 
  2073. -
  2074.         // and currently declared classes
  2075. -
  2076.         foreach ($classes as $name{
  2077. -
  2078.             $class new ReflectionClass($name);
  2079. -
  2080.             $conn  Doctrine_Manager::getInstance()->getConnectionForComponent($name);
  2081. -
  2082.  
  2083. -
  2084.             // check if class is an instance of Doctrine_Record and not abstract
  2085. -
  2086.             // class must have method setTableDefinition (to avoid non-Record subclasses like symfony's sfDoctrineRecord)
  2087. -
  2088.             if ($class->isSubclassOf($parent&& $class->isAbstract(&& $class->hasMethod('setTableDefinition')
  2089. -
  2090.                 && $class->getMethod('setTableDefinition')->getDeclaringClass()->getName(== $class->getName()) {
  2091. -
  2092.                 $record new $name();
  2093. -
  2094.                 $table  $record->getTable();
  2095. -
  2096.                 $data $table->getExportableFormat();
  2097. -
  2098.                 
  2099. -
  2100.                 $query $this->conn->export->createTableSql($data['tableName']$data['columns']$data['options']);
  2101. -
  2102.  
  2103. -
  2104.                 if (is_array($query)) {
  2105. -
  2106.                     $sql array_merge($sql$query);
  2107. -
  2108.                 else {
  2109. -
  2110.                     $sql[$query;
  2111. -
  2112.                 }
  2113. -
  2114.             }
  2115. -
  2116.         }
  2117. -
  2118.         $sql array_unique($sql);
  2119. -
  2120.         rsort($sql);
  2121. -
  2122.  
  2123. -
  2124.         return $sql;
  2125. -
  2126.     }
  2127. -
  2128.     /**
  2129. -
  2130.      * exportSql
  2131. -
  2132.      * returns the sql for exporting Doctrine_Record classes to a schema
  2133. -
  2134.      *
  2135. -
  2136.      * if the directory parameter is given this method first iterates
  2137. -
  2138.      * recursively trhough the given directory in order to find any model classes
  2139. -
  2140.      *
  2141. -
  2142.      * Then it iterates through all declared classes and creates tables for the ones
  2143. -
  2144.      * that extend Doctrine_Record and are not abstract classes
  2145. -
  2146.      *
  2147. -
  2148.      * @throws Doctrine_Connection_Exception    if some error other than Doctrine::ERR_ALREADY_EXISTS
  2149. -
  2150.      *                                           occurred during the create table operation
  2151. -
  2152.      * @param string $directory     optional directory parameter
  2153. -
  2154.      * @return void 
  2155. -
  2156.      */
  2157. -
  2158.     public function exportSql($directory null)
  2159. -
  2160.     {
  2161. -
  2162.         $declared get_declared_classes();
  2163. -
  2164.  
  2165. -
  2166.            if ($directory !== null{
  2167. -
  2168.                foreach ((array) $directory as $dir{
  2169. -
  2170.                 $it new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir),
  2171. -
  2172.                                                         RecursiveIteratorIterator::LEAVES_ONLY);
  2173. -
  2174.                                                         
  2175. -
  2176.                 foreach ($it as $file{
  2177. -
  2178.                     $e explode('.'$file->getFileName());
  2179. -
  2180.                     if (end($e=== 'php' && strpos($file->getFileName()'.inc'=== false{
  2181. -
  2182.                         require_once $file->getPathName();
  2183. -
  2184.                     }
  2185. -
  2186.                 }
  2187. -
  2188.             }
  2189. -
  2190.             $declared array_diff(get_declared_classes()$declared);
  2191. -
  2192.         }
  2193. -
  2194.  
  2195. -
  2196.         return $this->exportClassesSql($declared);
  2197. -
  2198.     }
  2199. -
  2200.     /**
  2201. -
  2202.      * exportTable
  2203. -
  2204.      * exports given table into database based on column and option definitions
  2205. -
  2206.      *
  2207. -
  2208.      * @throws Doctrine_Connection_Exception    if some error other than Doctrine::ERR_ALREADY_EXISTS
  2209. -
  2210.      *                                           occurred during the create table operation
  2211. -
  2212.      * @return boolean                          whether or not the export operation was successful
  2213. -
  2214.      *                                           false if table already existed in the database
  2215. -
  2216.      */
  2217. -
  2218.     public function exportTable(Doctrine_Table $table)
  2219. -
  2220.     {
  2221. -
  2222.         /**
  2223. -
  2224.         TODO: maybe there should be portability option for the following check
  2225. -
  2226.         if ( ! Doctrine::isValidClassname($table->getOption('declaringClass')->getName())) {
  2227. -
  2228.             throw new Doctrine_Export_Exception('Class name not valid.');
  2229. -
  2230.         }
  2231. -
  2232.         */
  2233. -
  2234.  
  2235. -
  2236.         try {
  2237. -
  2238.             $data $table->getExportableFormat();
  2239. -
  2240.  
  2241. -
  2242.             $this->conn->export->createTable($data['tableName']$data['columns']$data['options']);
  2243. -
  2244.         catch(Doctrine_Connection_Exception $e{
  2245. -
  2246.             // we only want to silence table already exists errors
  2247. -
  2248.             if($e->getPortableCode(!== Doctrine::ERR_ALREADY_EXISTS{
  2249. -
  2250.                 throw $e;
  2251. -
  2252.             }
  2253. -
  2254.         }
  2255. -
  2256.     }
  2257. -
  2258. }
  2259. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportException.php.html deleted file mode 100644 index 1bab15376..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFirebird.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFirebird.php.html deleted file mode 100644 index a282e1314..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFirebird.php.html +++ /dev/null @@ -1,548 +0,0 @@ - -
-

Source for file Firebird.php

-

Documentation is available at Firebird.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Firebird.php 1753 2007-06-19 11:10:13Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Export');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Sqlite
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @author      Lorenzo Alberton <l.alberton@quipo.it> (PEAR MDB2 Interbase driver)
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 1753 $
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * create a new database
  75. -
  76.      *
  77. -
  78.      * @param string $name  name of the database that should be created
  79. -
  80.      * @return void 
  81. -
  82.      */
  83. -
  84.     public function createDatabase($name)
  85. -
  86.     {
  87. -
  88.         throw new Doctrine_Export_Exception(
  89. -
  90.                 'PHP Interbase API does not support direct queries. You have to ' .
  91. -
  92.                 'create the db manually by using isql command or a similar program');
  93. -
  94.     }
  95. -
  96.     /**
  97. -
  98.      * drop an existing database
  99. -
  100.      *
  101. -
  102.      * @param string $name  name of the database that should be dropped
  103. -
  104.      * @return void 
  105. -
  106.      */
  107. -
  108.     public  function dropDatabase($name)
  109. -
  110.     {
  111. -
  112.         throw new Doctrine_Export_Exception(
  113. -
  114.                 'PHP Interbase API does not support direct queries. You have ' .
  115. -
  116.                 'to drop the db manually by using isql command or a similar program');
  117. -
  118.     }
  119. -
  120.     /**
  121. -
  122.      * add an autoincrement sequence + trigger
  123. -
  124.      *
  125. -
  126.      * @param string $name  name of the PK field
  127. -
  128.      * @param string $table name of the table
  129. -
  130.      * @param string $start start value for the sequence
  131. -
  132.      * @return void 
  133. -
  134.      */
  135. -
  136.     public function _makeAutoincrement($name$table$start null)
  137. -
  138.     {
  139. -
  140.         if (is_null($start)) {
  141. -
  142.             $this->conn->beginTransaction();
  143. -
  144.             $query 'SELECT MAX(' $this->conn->quoteIdentifier($nametrue') FROM ' $this->conn->quoteIdentifier($tabletrue);
  145. -
  146.             $start $this->conn->fetchOne($query'integer');
  147. -
  148.  
  149. -
  150.             ++$start;
  151. -
  152.             $result $this->createSequence($table$start);
  153. -
  154.             $this->conn->commit();
  155. -
  156.         else {
  157. -
  158.             $result $this->createSequence($table$start);
  159. -
  160.         }
  161. -
  162.  
  163. -
  164.         $sequence_name $this->conn->formatter->getSequenceName($table);
  165. -
  166.         $trigger_name  $this->conn->quoteIdentifier($table '_AUTOINCREMENT_PK'true);
  167. -
  168.  
  169. -
  170.         $table $this->conn->quoteIdentifier($tabletrue);
  171. -
  172.         $name  $this->conn->quoteIdentifier($name,  true);
  173. -
  174.  
  175. -
  176.         $triggerSql 'CREATE TRIGGER ' $trigger_name ' FOR ' $table '
  177. -
  178.                         ACTIVE BEFORE INSERT POSITION 0
  179. -
  180.                         AS
  181. -
  182.                         BEGIN
  183. -
  184.                         IF (NEW.' $name ' IS NULL OR NEW.' $name ' = 0) THEN
  185. -
  186.                             NEW.' $name ' = GEN_ID('.$sequence_name.', 1);
  187. -
  188.                         END';
  189. -
  190.         $result $this->conn->exec($triggerSql);
  191. -
  192.  
  193. -
  194.         // TODO ? $this->_silentCommit();
  195. -
  196.  
  197. -
  198.         return $result;
  199. -
  200.     }
  201. -
  202.     /**
  203. -
  204.      * drop an existing autoincrement sequence + trigger
  205. -
  206.      *
  207. -
  208.      * @param string $table name of the table
  209. -
  210.      * @return void 
  211. -
  212.      */
  213. -
  214.     public function _dropAutoincrement($table)
  215. -
  216.     {
  217. -
  218.  
  219. -
  220.         $result $this->dropSequence($table);
  221. -
  222.  
  223. -
  224.         //remove autoincrement trigger associated with the table
  225. -
  226.         $table $this->conn->quote(strtoupper($table));
  227. -
  228.         $triggerName $this->conn->quote(strtoupper($table'_AUTOINCREMENT_PK');
  229. -
  230.  
  231. -
  232.         return $this->conn->exec("DELETE FROM RDB\$TRIGGERS WHERE UPPER(RDB\$RELATION_NAME)=" $table " AND UPPER(RDB\$TRIGGER_NAME)=" $triggerName);
  233. -
  234.     }
  235. -
  236.     /**
  237. -
  238.      * create a new table
  239. -
  240.      *
  241. -
  242.      * @param string $name     Name of the database that should be created
  243. -
  244.      * @param array $fields Associative array that contains the definition of each field of the new table
  245. -
  246.      *                         The indexes of the array entries are the names of the fields of the table an
  247. -
  248.      *                         the array entry values are associative arrays like those that are meant to be
  249. -
  250.      *                          passed with the field definitions to get[Type]Declaration() functions.
  251. -
  252.      *
  253. -
  254.      *                         Example
  255. -
  256.      *                         array(
  257. -
  258.      *
  259. -
  260.      *                             'id' => array(
  261. -
  262.      *                                 'type' => 'integer',
  263. -
  264.      *                                 'unsigned' => 1,
  265. -
  266.      *                                 'notnull' => 1,
  267. -
  268.      *                                 'default' => 0,
  269. -
  270.      *                             ),
  271. -
  272.      *                             'name' => array(
  273. -
  274.      *                                 'type' => 'text',
  275. -
  276.      *                                 'length' => 12,
  277. -
  278.      *                             ),
  279. -
  280.      *                             'description' => array(
  281. -
  282.      *                                 'type' => 'text',
  283. -
  284.      *                                 'length' => 12,
  285. -
  286.      *                             )
  287. -
  288.      *                         );
  289. -
  290.      * @param array $options  An associative array of table options:
  291. -
  292.      *
  293. -
  294.      * @return void 
  295. -
  296.      */
  297. -
  298.     public function createTable($namearray $fieldsarray $options array()) {
  299. -
  300.         parent::createTable($name$fields$options);
  301. -
  302.  
  303. -
  304.         // TODO ? $this->_silentCommit();
  305. -
  306.         foreach ($fields as $field_name => $field{
  307. -
  308.             if empty($field['autoincrement'])) {
  309. -
  310.                 //create PK constraint
  311. -
  312.                 $pk_definition array(
  313. -
  314.                     'fields' => array($field_name => array()),
  315. -
  316.                     'primary' => true,
  317. -
  318.                 );
  319. -
  320.                 //$pk_name = $name.'_PK';
  321. -
  322.                 $pk_name null;
  323. -
  324.                 $result $this->createConstraint($name$pk_name$pk_definition);
  325. -
  326.  
  327. -
  328.                 //create autoincrement sequence + trigger
  329. -
  330.                 return $this->_makeAutoincrement($field_name$name1);
  331. -
  332.             }
  333. -
  334.         }
  335. -
  336.     }
  337. -
  338.     /**
  339. -
  340.      * Check if planned changes are supported
  341. -
  342.      *
  343. -
  344.      * @param string $name name of the database that should be dropped
  345. -
  346.      * @return void 
  347. -
  348.      */
  349. -
  350.     public function checkSupportedChanges(&$changes)
  351. -
  352.     {
  353. -
  354.         foreach ($changes as $change_name => $change{
  355. -
  356.             switch ($change_name{
  357. -
  358.                 case 'notnull':
  359. -
  360.                     throw new Doctrine_DataDict_Exception('it is not supported changes to field not null constraint');
  361. -
  362.                 case 'default':
  363. -
  364.                     throw new Doctrine_DataDict_Exception('it is not supported changes to field default value');
  365. -
  366.                 case 'length':
  367. -
  368.                     /*
  369. -
  370.                     return throw new Doctrine_DataDict_Firebird_Exception('it is not supported changes to field default length');
  371. -
  372.                     */
  373. -
  374.                 case 'unsigned':
  375. -
  376.                 case 'type':
  377. -
  378.                 case 'declaration':
  379. -
  380.                 case 'definition':
  381. -
  382.                     break;
  383. -
  384.                 default:
  385. -
  386.                     throw new Doctrine_DataDict_Exception('it is not supported change of type' $change_name);
  387. -
  388.             }
  389. -
  390.         }
  391. -
  392.         return true;
  393. -
  394.     }
  395. -
  396.     /**
  397. -
  398.      * drop an existing table
  399. -
  400.      *
  401. -
  402.      * @param string $name name of the table that should be dropped
  403. -
  404.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  405. -
  406.      * @access public
  407. -
  408.      */
  409. -
  410.     public function dropTable($name)
  411. -
  412.     {
  413. -
  414.         $result $this->_dropAutoincrement($name);
  415. -
  416.         $result parent::dropTable($name);
  417. -
  418.  
  419. -
  420.         //$this->_silentCommit();
  421. -
  422.  
  423. -
  424.         return $result;
  425. -
  426.     }
  427. -
  428.     /**
  429. -
  430.      * alter an existing table
  431. -
  432.      *
  433. -
  434.      * @param string $name         name of the table that is intended to be changed.
  435. -
  436.      * @param array $changes     associative array that contains the details of each type
  437. -
  438.      *                              of change that is intended to be performed. The types of
  439. -
  440.      *                              changes that are currently supported are defined as follows:
  441. -
  442.      *
  443. -
  444.      *                              name
  445. -
  446.      *
  447. -
  448.      *                                 New name for the table.
  449. -
  450.      *
  451. -
  452.      *                             add
  453. -
  454.      *
  455. -
  456.      *                                 Associative array with the names of fields to be added as
  457. -
  458.      *                                  indexes of the array. The value of each entry of the array
  459. -
  460.      *                                  should be set to another associative array with the properties
  461. -
  462.      *                                  of the fields to be added. The properties of the fields should
  463. -
  464.      *                                  be the same as defined by the Metabase parser.
  465. -
  466.      *
  467. -
  468.      *
  469. -
  470.      *                             remove
  471. -
  472.      *
  473. -
  474.      *                                 Associative array with the names of fields to be removed as indexes
  475. -
  476.      *                                  of the array. Currently the values assigned to each entry are ignored.
  477. -
  478.      *                                  An empty array should be used for future compatibility.
  479. -
  480.      *
  481. -
  482.      *                             rename
  483. -
  484.      *
  485. -
  486.      *                                 Associative array with the names of fields to be renamed as indexes
  487. -
  488.      *                                  of the array. The value of each entry of the array should be set to
  489. -
  490.      *                                  another associative array with the entry named name with the new
  491. -
  492.      *                                  field name and the entry named Declaration that is expected to contain
  493. -
  494.      *                                  the portion of the field declaration already in DBMS specific SQL code
  495. -
  496.      *                                  as it is used in the CREATE TABLE statement.
  497. -
  498.      *
  499. -
  500.      *                             change
  501. -
  502.      *
  503. -
  504.      *                                 Associative array with the names of the fields to be changed as indexes
  505. -
  506.      *                                  of the array. Keep in mind that if it is intended to change either the
  507. -
  508.      *                                  name of a field and any other properties, the change array entries
  509. -
  510.      *                                  should have the new names of the fields as array indexes.
  511. -
  512.      *
  513. -
  514.      *                                 The value of each entry of the array should be set to another associative
  515. -
  516.      *                                  array with the properties of the fields to that are meant to be changed as
  517. -
  518.      *                                  array entries. These entries should be assigned to the new values of the
  519. -
  520.      *                                  respective properties. The properties of the fields should be the same
  521. -
  522.      *                                  as defined by the Metabase parser.
  523. -
  524.      *
  525. -
  526.      *                             Example
  527. -
  528.      *                                 array(
  529. -
  530.      *                                     'name' => 'userlist',
  531. -
  532.      *                                     'add' => array(
  533. -
  534.      *                                         'quota' => array(
  535. -
  536.      *                                             'type' => 'integer',
  537. -
  538.      *                                             'unsigned' => 1
  539. -
  540.      *                                         )
  541. -
  542.      *                                     ),
  543. -
  544.      *                                     'remove' => array(
  545. -
  546.      *                                         'file_limit' => array(),
  547. -
  548.      *                                         'time_limit' => array()
  549. -
  550.      *                                     ),
  551. -
  552.      *                                     'change' => array(
  553. -
  554.      *                                         'name' => array(
  555. -
  556.      *                                             'length' => '20',
  557. -
  558.      *                                             'definition' => array(
  559. -
  560.      *                                                 'type' => 'text',
  561. -
  562.      *                                                 'length' => 20,
  563. -
  564.      *                                             ),
  565. -
  566.      *                                         )
  567. -
  568.      *                                     ),
  569. -
  570.      *                                     'rename' => array(
  571. -
  572.      *                                         'sex' => array(
  573. -
  574.      *                                             'name' => 'gender',
  575. -
  576.      *                                             'definition' => array(
  577. -
  578.      *                                                 'type' => 'text',
  579. -
  580.      *                                                 'length' => 1,
  581. -
  582.      *                                                 'default' => 'M',
  583. -
  584.      *                                             ),
  585. -
  586.      *                                         )
  587. -
  588.      *                                     )
  589. -
  590.      *                                 )
  591. -
  592.      *
  593. -
  594.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  595. -
  596.      *                              can perform the requested table alterations if the value is true or
  597. -
  598.      *                              actually perform them otherwise.
  599. -
  600.      * @return void 
  601. -
  602.      */
  603. -
  604.     public function alterTable($namearray $changes$check)
  605. -
  606.     {
  607. -
  608.         foreach ($changes as $changeName => $change{
  609. -
  610.             switch ($changeName{
  611. -
  612.                 case 'add':
  613. -
  614.                 case 'remove':
  615. -
  616.                 case 'rename':
  617. -
  618.                     break;
  619. -
  620.                 case 'change':
  621. -
  622.                     foreach ($changes['change'as $field{
  623. -
  624.                         $this->checkSupportedChanges($field);
  625. -
  626.                     }
  627. -
  628.                     break;
  629. -
  630.                 default:
  631. -
  632.                     throw new Doctrine_DataDict_Exception('change type ' $changeName ' not yet supported');
  633. -
  634.             }
  635. -
  636.         }
  637. -
  638.         if ($check{
  639. -
  640.             return true;
  641. -
  642.         }
  643. -
  644.         $query '';
  645. -
  646.         if (!empty($changes['add']&& is_array($changes['add'])) {
  647. -
  648.             foreach ($changes['add'as $fieldName => $field{
  649. -
  650.                 if ($query{
  651. -
  652.                     $query.= ', ';
  653. -
  654.                 }
  655. -
  656.                 $query.= 'ADD ' $this->getDeclaration($field['type']$fieldName$field$name);
  657. -
  658.             }
  659. -
  660.         }
  661. -
  662.  
  663. -
  664.         if (!empty($changes['remove']&& is_array($changes['remove'])) {
  665. -
  666.             foreach ($changes['remove'as $field_name => $field{
  667. -
  668.                 if ($query{
  669. -
  670.                     $query.= ', ';
  671. -
  672.                 }
  673. -
  674.                 $field_name $this->conn->quoteIdentifier($field_nametrue);
  675. -
  676.                 $query.= 'DROP ' $field_name;
  677. -
  678.             }
  679. -
  680.         }
  681. -
  682.  
  683. -
  684.         if (!empty($changes['rename']&& is_array($changes['rename'])) {
  685. -
  686.             foreach ($changes['rename'as $field_name => $field{
  687. -
  688.                 if ($query{
  689. -
  690.                     $query.= ', ';
  691. -
  692.                 }
  693. -
  694.                 $field_name $this->conn->quoteIdentifier($field_nametrue);
  695. -
  696.                 $query.= 'ALTER ' $field_name ' TO ' $this->conn->quoteIdentifier($field['name']true);
  697. -
  698.             }
  699. -
  700.         }
  701. -
  702.  
  703. -
  704.         if (!empty($changes['change']&& is_array($changes['change'])) {
  705. -
  706.             // missing support to change DEFAULT and NULLability
  707. -
  708.             foreach ($changes['change'as $fieldName => $field{
  709. -
  710.                 $this->checkSupportedChanges($field);
  711. -
  712.                 if ($query{
  713. -
  714.                     $query.= ', ';
  715. -
  716.                 }
  717. -
  718.                 $this->conn->loadModule('Datatype'nulltrue);
  719. -
  720.                 $field_name $this->conn->quoteIdentifier($fieldNametrue);
  721. -
  722.                 $query.= 'ALTER ' $field_name.' TYPE ' $this->getTypeDeclaration($field['definition']);
  723. -
  724.             }
  725. -
  726.         }
  727. -
  728.  
  729. -
  730.         if (!strlen($query)) {
  731. -
  732.             return false;
  733. -
  734.         }
  735. -
  736.  
  737. -
  738.         $name $this->conn->quoteIdentifier($nametrue);
  739. -
  740.         $result $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  741. -
  742.         $this->_silentCommit();
  743. -
  744.         return $result;
  745. -
  746.     }
  747. -
  748.     /**
  749. -
  750.      * Get the stucture of a field into an array
  751. -
  752.      *
  753. -
  754.      * @param string    $table         name of the table on which the index is to be created
  755. -
  756.      * @param string    $name         name of the index to be created
  757. -
  758.      * @param array     $definition        associative array that defines properties of the index to be created.
  759. -
  760.      *                                  Currently, only one property named FIELDS is supported. This property
  761. -
  762.      *                                  is also an associative with the names of the index fields as array
  763. -
  764.      *                                  indexes. Each entry of this array is set to another type of associative
  765. -
  766.      *                                  array that specifies properties of the index that are specific to
  767. -
  768.      *                                  each field.
  769. -
  770.      *
  771. -
  772.      *                                 Currently, only the sorting property is supported. It should be used
  773. -
  774.      *                                  to define the sorting direction of the index. It may be set to either
  775. -
  776.      *                                  ascending or descending.
  777. -
  778.      *
  779. -
  780.      *                                 Not all DBMS support index sorting direction configuration. The DBMS
  781. -
  782.      *                                  drivers of those that do not support it ignore this property. Use the
  783. -
  784.      *                                  function support() to determine whether the DBMS driver can manage indexes.
  785. -
  786.  
  787. -
  788.      *                                  Example
  789. -
  790.      *                                     array(
  791. -
  792.      *                                         'fields' => array(
  793. -
  794.      *                                             'user_name' => array(
  795. -
  796.      *                                                 'sorting' => 'ascending'
  797. -
  798.      *                                             ),
  799. -
  800.      *                                             'last_login' => array()
  801. -
  802.      *                                         )
  803. -
  804.      *                                     )
  805. -
  806.      * @return void 
  807. -
  808.      */
  809. -
  810.     public function createIndexSql($table$namearray $definition)
  811. -
  812.     {
  813. -
  814.         $query 'CREATE';
  815. -
  816.  
  817. -
  818.         $query_sort '';
  819. -
  820.         foreach ($definition['fields'as $field{
  821. -
  822.             if (!strcmp($query_sort''&& isset($field['sorting'])) {
  823. -
  824.                 switch ($field['sorting']{
  825. -
  826.                     case 'ascending':
  827. -
  828.                         $query_sort ' ASC';
  829. -
  830.                         break;
  831. -
  832.                     case 'descending':
  833. -
  834.                         $query_sort ' DESC';
  835. -
  836.                         break;
  837. -
  838.                 }
  839. -
  840.             }
  841. -
  842.         }
  843. -
  844.         $table $this->conn->quoteIdentifier($tabletrue);
  845. -
  846.         $name  $this->conn->quoteIdentifier($this->conn->formatter->getIndexName($name)true);
  847. -
  848.         $query .= $query_sort' INDEX ' $name ' ON ' $table;
  849. -
  850.         $fields array();
  851. -
  852.         foreach (array_keys($definition['fields']as $field{
  853. -
  854.             $fields[$this->conn->quoteIdentifier($fieldtrue);
  855. -
  856.         }
  857. -
  858.         $query .= ' ('.implode(', '$fields')';
  859. -
  860.  
  861. -
  862.         return $query;
  863. -
  864.     }
  865. -
  866.     /**
  867. -
  868.      * create a constraint on a table
  869. -
  870.      *
  871. -
  872.      * @param string    $table      name of the table on which the constraint is to be created
  873. -
  874.      * @param string    $name       name of the constraint to be created
  875. -
  876.      * @param array     $definition associative array that defines properties of the constraint to be created.
  877. -
  878.      *                               Currently, only one property named FIELDS is supported. This property
  879. -
  880.      *                               is also an associative with the names of the constraint fields as array
  881. -
  882.      *                               constraints. Each entry of this array is set to another type of associative
  883. -
  884.      *                               array that specifies properties of the constraint that are specific to
  885. -
  886.      *                               each field.
  887. -
  888.      *
  889. -
  890.      *                               Example
  891. -
  892.      *                                   array(
  893. -
  894.      *                                       'fields' => array(
  895. -
  896.      *                                           'user_name' => array(),
  897. -
  898.      *                                           'last_login' => array(),
  899. -
  900.      *                                       )
  901. -
  902.      *                                   )
  903. -
  904.      * @return void 
  905. -
  906.      */
  907. -
  908.     public function createConstraint($table$name$definition)
  909. -
  910.     {
  911. -
  912.         $table $this->conn->quoteIdentifier($tabletrue);
  913. -
  914.  
  915. -
  916.         if (!empty($name)) {
  917. -
  918.             $name $this->conn->quoteIdentifier($this->conn->formatter->getIndexName($name)true);
  919. -
  920.         }
  921. -
  922.         $query "ALTER TABLE $table ADD";
  923. -
  924.         if (!empty($definition['primary'])) {
  925. -
  926.             if (!empty($name)) {
  927. -
  928.                 $query.= ' CONSTRAINT '.$name;
  929. -
  930.             }
  931. -
  932.             $query.= ' PRIMARY KEY';
  933. -
  934.         else {
  935. -
  936.             $query.= ' CONSTRAINT '$name;
  937. -
  938.             if (!empty($definition['unique'])) {
  939. -
  940.                $query.= ' UNIQUE';
  941. -
  942.             }
  943. -
  944.         }
  945. -
  946.         $fields array();
  947. -
  948.         foreach (array_keys($definition['fields']as $field{
  949. -
  950.             $fields[$this->conn->quoteIdentifier($fieldtrue);
  951. -
  952.         }
  953. -
  954.         $query .= ' ('implode(', '$fields')';
  955. -
  956.         $result $this->conn->exec($query);
  957. -
  958.         // TODO ? $this->_silentCommit();
  959. -
  960.         return $result;
  961. -
  962.     }
  963. -
  964.     /**
  965. -
  966.      * A method to return the required SQL string that fits between CREATE ... TABLE
  967. -
  968.      * to create the table as a temporary table.
  969. -
  970.      *
  971. -
  972.      * @return string The string required to be placed between "CREATE" and "TABLE"
  973. -
  974.      *                 to generate a temporary table, if possible.
  975. -
  976.      */
  977. -
  978.     public function getTemporaryTableQuery()
  979. -
  980.     {
  981. -
  982.         return 'GLOBAL TEMPORARY';
  983. -
  984.     }
  985. -
  986.     /**
  987. -
  988.      * create sequence
  989. -
  990.      *
  991. -
  992.      * @param string $seqName name of the sequence to be created
  993. -
  994.      * @param string $start start value of the sequence; default is 1
  995. -
  996.      * @param array     $options  An associative array of table options:
  997. -
  998.      *                           array(
  999. -
  1000.      *                               'comment' => 'Foo',
  1001. -
  1002.      *                               'charset' => 'utf8',
  1003. -
  1004.      *                               'collate' => 'utf8_unicode_ci',
  1005. -
  1006.      *                           );
  1007. -
  1008.      * @return boolean 
  1009. -
  1010.      */
  1011. -
  1012.     public function createSequence($seqName$start 1array $options array())
  1013. -
  1014.     {
  1015. -
  1016.         $sequenceName $this->conn->formatter->getSequenceName($seqName);
  1017. -
  1018.  
  1019. -
  1020.         $this->conn->exec('CREATE GENERATOR ' $sequenceName);
  1021. -
  1022.  
  1023. -
  1024.         try {
  1025. -
  1026.             $this->conn->exec('SET GENERATOR ' $sequenceName ' TO ' ($start-1));
  1027. -
  1028.             
  1029. -
  1030.             return true;
  1031. -
  1032.         catch (Doctrine_Connection_Exception $e{
  1033. -
  1034.             try {
  1035. -
  1036.                 $this->dropSequence($seqName);
  1037. -
  1038.             catch(Doctrine_Connection_Exception $e{
  1039. -
  1040.                 throw new Doctrine_Export_Exception('Could not drop inconsistent sequence table');
  1041. -
  1042.             }
  1043. -
  1044.         }
  1045. -
  1046.         throw new Doctrine_Export_Exception('could not create sequence table');
  1047. -
  1048.     }
  1049. -
  1050.     /**
  1051. -
  1052.      * drop existing sequence
  1053. -
  1054.      *
  1055. -
  1056.      * @param string $seqName name of the sequence to be dropped
  1057. -
  1058.      * @return void 
  1059. -
  1060.      */
  1061. -
  1062.     public function dropSequenceSql($seqName)
  1063. -
  1064.     {
  1065. -
  1066.         $sequenceName $this->conn->formatter->getSequenceName($seqName);
  1067. -
  1068.         $sequenceName $this->conn->quote($sequenceName);
  1069. -
  1070.         $query "DELETE FROM RDB\$GENERATORS WHERE UPPER(RDB\$GENERATOR_NAME)=" $sequenceName;
  1071. -
  1072.         
  1073. -
  1074.         return $query;
  1075. -
  1076.     }
  1077. -
  1078. }
  1079. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFrontbase.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFrontbase.php.html deleted file mode 100644 index 4c5f417f7..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportFrontbase.php.html +++ /dev/null @@ -1,318 +0,0 @@ - -
-

Source for file Frontbase.php

-

Documentation is available at Frontbase.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Export');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Frontbase
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision$
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * create a new database
  73. -
  74.      *
  75. -
  76.      * @param string $name name of the database that should be created
  77. -
  78.      * @return string 
  79. -
  80.      */
  81. -
  82.     public function createDatabaseSql($name)
  83. -
  84.     {
  85. -
  86.         $name  $this->conn->quoteIdentifier($nametrue);
  87. -
  88.         return 'CREATE DATABASE ' $name;
  89. -
  90.     }
  91. -
  92.     /**
  93. -
  94.      * drop an existing database
  95. -
  96.      *
  97. -
  98.      * @param string $name name of the database that should be dropped
  99. -
  100.      * @return string 
  101. -
  102.      */
  103. -
  104.     public function dropDatabaseSql($name)
  105. -
  106.     {
  107. -
  108.         $name  $this->conn->quoteIdentifier($nametrue);
  109. -
  110.         return 'DELETE DATABASE ' $name;    
  111. -
  112.     }
  113. -
  114.     /**
  115. -
  116.      * drop an existing table
  117. -
  118.      *
  119. -
  120.      * @param object $this->conns        database object that is extended by this class
  121. -
  122.      * @param string $name       name of the table that should be dropped
  123. -
  124.      * @return string 
  125. -
  126.      */
  127. -
  128.     public function dropTableSql($name)
  129. -
  130.     {
  131. -
  132.         $name $this->conn->quoteIdentifier($nametrue);
  133. -
  134.         return 'DROP TABLE ' $name ' CASCADE';
  135. -
  136.     }
  137. -
  138.     /**
  139. -
  140.      * alter an existing table
  141. -
  142.      *
  143. -
  144.      * @param string $name         name of the table that is intended to be changed.
  145. -
  146.      * @param array $changes     associative array that contains the details of each type
  147. -
  148.      *                              of change that is intended to be performed. The types of
  149. -
  150.      *                              changes that are currently supported are defined as follows:
  151. -
  152.      *
  153. -
  154.      *                              name
  155. -
  156.      *
  157. -
  158.      *                                 New name for the table.
  159. -
  160.      *
  161. -
  162.      *                             add
  163. -
  164.      *
  165. -
  166.      *                                 Associative array with the names of fields to be added as
  167. -
  168.      *                                  indexes of the array. The value of each entry of the array
  169. -
  170.      *                                  should be set to another associative array with the properties
  171. -
  172.      *                                  of the fields to be added. The properties of the fields should
  173. -
  174.      *                                  be the same as defined by the MDB2 parser.
  175. -
  176.      *
  177. -
  178.      *
  179. -
  180.      *                             remove
  181. -
  182.      *
  183. -
  184.      *                                 Associative array with the names of fields to be removed as indexes
  185. -
  186.      *                                  of the array. Currently the values assigned to each entry are ignored.
  187. -
  188.      *                                  An empty array should be used for future compatibility.
  189. -
  190.      *
  191. -
  192.      *                             rename
  193. -
  194.      *
  195. -
  196.      *                                 Associative array with the names of fields to be renamed as indexes
  197. -
  198.      *                                  of the array. The value of each entry of the array should be set to
  199. -
  200.      *                                  another associative array with the entry named name with the new
  201. -
  202.      *                                  field name and the entry named Declaration that is expected to contain
  203. -
  204.      *                                  the portion of the field declaration already in DBMS specific SQL code
  205. -
  206.      *                                  as it is used in the CREATE TABLE statement.
  207. -
  208.      *
  209. -
  210.      *                             change
  211. -
  212.      *
  213. -
  214.      *                                 Associative array with the names of the fields to be changed as indexes
  215. -
  216.      *                                  of the array. Keep in mind that if it is intended to change either the
  217. -
  218.      *                                  name of a field and any other properties, the change array entries
  219. -
  220.      *                                  should have the new names of the fields as array indexes.
  221. -
  222.      *
  223. -
  224.      *                                 The value of each entry of the array should be set to another associative
  225. -
  226.      *                                  array with the properties of the fields to that are meant to be changed as
  227. -
  228.      *                                  array entries. These entries should be assigned to the new values of the
  229. -
  230.      *                                  respective properties. The properties of the fields should be the same
  231. -
  232.      *                                  as defined by the MDB2 parser.
  233. -
  234.      *
  235. -
  236.      *                             Example
  237. -
  238.      *                                 array(
  239. -
  240.      *                                     'name' => 'userlist',
  241. -
  242.      *                                     'add' => array(
  243. -
  244.      *                                         'quota' => array(
  245. -
  246.      *                                             'type' => 'integer',
  247. -
  248.      *                                             'unsigned' => 1
  249. -
  250.      *                                         )
  251. -
  252.      *                                     ),
  253. -
  254.      *                                     'remove' => array(
  255. -
  256.      *                                         'file_limit' => array(),
  257. -
  258.      *                                         'time_limit' => array()
  259. -
  260.      *                                     ),
  261. -
  262.      *                                     'change' => array(
  263. -
  264.      *                                         'name' => array(
  265. -
  266.      *                                             'length' => '20',
  267. -
  268.      *                                             'definition' => array(
  269. -
  270.      *                                                 'type' => 'text',
  271. -
  272.      *                                                 'length' => 20,
  273. -
  274.      *                                             ),
  275. -
  276.      *                                         )
  277. -
  278.      *                                     ),
  279. -
  280.      *                                     'rename' => array(
  281. -
  282.      *                                         'sex' => array(
  283. -
  284.      *                                             'name' => 'gender',
  285. -
  286.      *                                             'definition' => array(
  287. -
  288.      *                                                 'type' => 'text',
  289. -
  290.      *                                                 'length' => 1,
  291. -
  292.      *                                                 'default' => 'M',
  293. -
  294.      *                                             ),
  295. -
  296.      *                                         )
  297. -
  298.      *                                     )
  299. -
  300.      *                                 )
  301. -
  302.      *
  303. -
  304.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  305. -
  306.      *                              can perform the requested table alterations if the value is true or
  307. -
  308.      *                              actually perform them otherwise.
  309. -
  310.      * @access public
  311. -
  312.      *
  313. -
  314.      * @return boolean 
  315. -
  316.      */
  317. -
  318.     public function alterTable($namearray $changes$check)
  319. -
  320.     {
  321. -
  322.         foreach ($changes as $changeName => $change){
  323. -
  324.             switch ($changeName{
  325. -
  326.             case 'add':
  327. -
  328.             case 'remove':
  329. -
  330.             case 'change':
  331. -
  332.             case 'rename':
  333. -
  334.             case 'name':
  335. -
  336.                 break;
  337. -
  338.             default:
  339. -
  340.                 throw new Doctrine_Export_Exception('change type "'.$changeName.'" not yet supported');
  341. -
  342.             }
  343. -
  344.         }
  345. -
  346.  
  347. -
  348.         if ($check{
  349. -
  350.             return true;
  351. -
  352.         }
  353. -
  354.  
  355. -
  356.         $query '';
  357. -
  358.         if (!empty($changes['name'])) {
  359. -
  360.             $changeName $this->conn->quoteIdentifier($changes['name']true);
  361. -
  362.             $query .= 'RENAME TO ' $changeName;
  363. -
  364.         }
  365. -
  366.  
  367. -
  368.         if (!empty($changes['add']&& is_array($changes['add'])) {
  369. -
  370.             foreach ($changes['add'as $fieldName => $field{
  371. -
  372.                 if ($query{
  373. -
  374.                     $query.= ', ';
  375. -
  376.                 }
  377. -
  378.                 $query.= 'ADD ' $this->conn->getDeclaration($field['type']$fieldName$field);
  379. -
  380.             }
  381. -
  382.         }
  383. -
  384.  
  385. -
  386.         if (!empty($changes['remove']&& is_array($changes['remove'])) {
  387. -
  388.             foreach ($changes['remove'as $fieldName => $field{
  389. -
  390.                 if ($query{
  391. -
  392.                     $query.= ', ';
  393. -
  394.                 }
  395. -
  396.                 $fieldName $this->conn->quoteIdentifier($fieldNametrue);
  397. -
  398.                 $query.= 'DROP ' $fieldName;
  399. -
  400.             }
  401. -
  402.         }
  403. -
  404.  
  405. -
  406.         $rename array();
  407. -
  408.         if (!empty($changes['rename']&& is_array($changes['rename'])) {
  409. -
  410.             foreach ($changes['rename'as $fieldName => $field{
  411. -
  412.                 $rename[$field['name']] $fieldName;
  413. -
  414.             }
  415. -
  416.         }
  417. -
  418.  
  419. -
  420.         if (!empty($changes['change']&& is_array($changes['change'])) {
  421. -
  422.             foreach ($changes['change'as $fieldName => $field{
  423. -
  424.                 if ($query{
  425. -
  426.                     $query.= ', ';
  427. -
  428.                 }
  429. -
  430.                 if (isset($rename[$fieldName])) {
  431. -
  432.                     $oldFieldName $rename[$fieldName];
  433. -
  434.                     unset($rename[$fieldName]);
  435. -
  436.                 else {
  437. -
  438.                     $oldFieldName $fieldName;
  439. -
  440.                 }
  441. -
  442.                 $oldFieldName $this->conn->quoteIdentifier($oldFieldNametrue);
  443. -
  444.                 $query.= 'CHANGE ' $oldFieldName ' ' $this->conn->getDeclaration($field['definition']['type']$oldFieldName$field['definition']);
  445. -
  446.             }
  447. -
  448.         }
  449. -
  450.  
  451. -
  452.         if (!empty($rename&& is_array($rename)) {
  453. -
  454.             foreach ($rename as $renamedFieldName => $renamed_field{
  455. -
  456.                 if ($query{
  457. -
  458.                     $query.= ', ';
  459. -
  460.                 }
  461. -
  462.                 $oldFieldName $rename[$renamedFieldName];
  463. -
  464.                 $field $changes['rename'][$oldFieldName];
  465. -
  466.                 $query.= 'CHANGE ' $this->conn->getDeclaration($field['definition']['type']$oldFieldName$field['definition']);
  467. -
  468.             }
  469. -
  470.         }
  471. -
  472.  
  473. -
  474.         if (!$query{
  475. -
  476.             return true;
  477. -
  478.         }
  479. -
  480.  
  481. -
  482.         $name $this->conn->quoteIdentifier($nametrue);
  483. -
  484.         return $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  485. -
  486.     }
  487. -
  488.     /**
  489. -
  490.      * create sequence
  491. -
  492.      *
  493. -
  494.      * @param string    $seqName     name of the sequence to be created
  495. -
  496.      * @param string    $start         start value of the sequence; default is 1
  497. -
  498.      * @param array     $options  An associative array of table options:
  499. -
  500.      *                           array(
  501. -
  502.      *                               'comment' => 'Foo',
  503. -
  504.      *                               'charset' => 'utf8',
  505. -
  506.      *                               'collate' => 'utf8_unicode_ci',
  507. -
  508.      *                           );
  509. -
  510.      * @return void 
  511. -
  512.      */
  513. -
  514.     public function createSequence($sequenceName$start 1array $options array())
  515. -
  516.     {
  517. -
  518.         $sequenceName $this->conn->quoteIdentifier($this->conn->getSequenceName($sequenceName)true);
  519. -
  520.         $seqcolName   $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  521. -
  522.  
  523. -
  524.         $query 'CREATE TABLE ' $sequenceName ' (' $seqcolName ' INTEGER DEFAULT UNIQUE, PRIMARY KEY(' $seqcolName '))';
  525. -
  526.         $res $this->conn->exec($query);
  527. -
  528.         $res $this->conn->exec('SET UNIQUE = 1 FOR ' $sequenceName);
  529. -
  530.  
  531. -
  532.         if ($start == 1{
  533. -
  534.             return true;
  535. -
  536.         }
  537. -
  538.         
  539. -
  540.         try {
  541. -
  542.             $this->conn->exec('INSERT INTO ' $sequenceName ' (' $seqcolName ') VALUES (' ($start-1')');
  543. -
  544.         catch(Doctrine_Connection_Exception $e{
  545. -
  546.             // Handle error
  547. -
  548.             try {
  549. -
  550.                 $this->conn->exec('DROP TABLE ' $sequenceName);
  551. -
  552.             catch(Doctrine_Connection_Exception $e{
  553. -
  554.                 throw new Doctrine_Export_Exception('could not drop inconsistent sequence table');
  555. -
  556.             }
  557. -
  558.  
  559. -
  560.             throw new Doctrine_Export_Exception('could not create sequence table');
  561. -
  562.         }
  563. -
  564.     }
  565. -
  566.     /**
  567. -
  568.      * drop existing sequence
  569. -
  570.      *
  571. -
  572.      * @param string $seqName       name of the sequence to be dropped
  573. -
  574.      * @return string 
  575. -
  576.      */
  577. -
  578.     public function dropSequenceSql($seqName)
  579. -
  580.     {
  581. -
  582.         $sequenceName $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName)true);
  583. -
  584.  
  585. -
  586.         return 'DROP TABLE ' $sequenceName ' CASCADE';
  587. -
  588.     }
  589. -
  590.     /**
  591. -
  592.      * drop existing index
  593. -
  594.      *
  595. -
  596.      * @param string    $table        name of table that should be used in method
  597. -
  598.      * @param string    $name         name of the index to be dropped
  599. -
  600.      * @return boolean 
  601. -
  602.      */
  603. -
  604.     public function dropIndexSql($table$name)
  605. -
  606.     {
  607. -
  608.         $table $this->conn->quoteIdentifier($tabletrue);
  609. -
  610.         $name $this->conn->quoteIdentifier($this->conn->getIndexName($name)true);
  611. -
  612.  
  613. -
  614.         return 'ALTER TABLE ' $table ' DROP INDEX ' $name;
  615. -
  616.     }
  617. -
  618. }
  619. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMssql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMssql.php.html deleted file mode 100644 index 71dc391b2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMssql.php.html +++ /dev/null @@ -1,261 +0,0 @@ - -
-

Source for file Mssql.php

-

Documentation is available at Mssql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mssql.php 1697 2007-06-14 20:18:25Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Export');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Mssql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @author      Frank M. Kromann <frank@kromann.info> (PEAR MDB2 Mssql driver)
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 1697 $
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.   /**
  73. -
  74.      * create a new database
  75. -
  76.      *
  77. -
  78.      * @param string $name name of the database that should be created
  79. -
  80.      * @return void 
  81. -
  82.      */
  83. -
  84.     public function createDatabase($name)
  85. -
  86.     {
  87. -
  88.         $name $this->conn->quoteIdentifier($nametrue);
  89. -
  90.         $query "CREATE DATABASE $name";
  91. -
  92.         if ($this->conn->options['database_device']{
  93. -
  94.             $query.= ' ON '.$this->conn->options['database_device'];
  95. -
  96.             $query.= $this->conn->options['database_size''=' .
  97. -
  98.                      $this->conn->options['database_size''';
  99. -
  100.         }
  101. -
  102.         return $this->conn->standaloneQuery($querynulltrue);
  103. -
  104.     }
  105. -
  106.     /**
  107. -
  108.      * drop an existing database
  109. -
  110.      *
  111. -
  112.      * @param string $name name of the database that should be dropped
  113. -
  114.      * @return void 
  115. -
  116.      */
  117. -
  118.     public function dropDatabase($name)
  119. -
  120.     {
  121. -
  122.         $name $this->conn->quoteIdentifier($nametrue);
  123. -
  124.         return $this->conn->standaloneQuery('DROP DATABASE ' $namenulltrue);
  125. -
  126.     }
  127. -
  128.  
  129. -
  130.     /**
  131. -
  132.      * Override the parent method.
  133. -
  134.      *
  135. -
  136.      * @return string The string required to be placed between "CREATE" and "TABLE"
  137. -
  138.      *                 to generate a temporary table, if possible.
  139. -
  140.      */
  141. -
  142.     public function getTemporaryTableQuery()
  143. -
  144.     {
  145. -
  146.         return '';
  147. -
  148.     }  
  149. -
  150.     /**
  151. -
  152.      * alter an existing table
  153. -
  154.      *
  155. -
  156.      * @param string $name         name of the table that is intended to be changed.
  157. -
  158.      * @param array $changes     associative array that contains the details of each type
  159. -
  160.      *                              of change that is intended to be performed. The types of
  161. -
  162.      *                              changes that are currently supported are defined as follows:
  163. -
  164.      *
  165. -
  166.      *                              name
  167. -
  168.      *
  169. -
  170.      *                                 New name for the table.
  171. -
  172.      *
  173. -
  174.      *                             add
  175. -
  176.      *
  177. -
  178.      *                                 Associative array with the names of fields to be added as
  179. -
  180.      *                                  indexes of the array. The value of each entry of the array
  181. -
  182.      *                                  should be set to another associative array with the properties
  183. -
  184.      *                                  of the fields to be added. The properties of the fields should
  185. -
  186.      *                                  be the same as defined by the Metabase parser.
  187. -
  188.      *
  189. -
  190.      *
  191. -
  192.      *                             remove
  193. -
  194.      *
  195. -
  196.      *                                 Associative array with the names of fields to be removed as indexes
  197. -
  198.      *                                  of the array. Currently the values assigned to each entry are ignored.
  199. -
  200.      *                                  An empty array should be used for future compatibility.
  201. -
  202.      *
  203. -
  204.      *                             rename
  205. -
  206.      *
  207. -
  208.      *                                 Associative array with the names of fields to be renamed as indexes
  209. -
  210.      *                                  of the array. The value of each entry of the array should be set to
  211. -
  212.      *                                  another associative array with the entry named name with the new
  213. -
  214.      *                                  field name and the entry named Declaration that is expected to contain
  215. -
  216.      *                                  the portion of the field declaration already in DBMS specific SQL code
  217. -
  218.      *                                  as it is used in the CREATE TABLE statement.
  219. -
  220.      *
  221. -
  222.      *                             change
  223. -
  224.      *
  225. -
  226.      *                                 Associative array with the names of the fields to be changed as indexes
  227. -
  228.      *                                  of the array. Keep in mind that if it is intended to change either the
  229. -
  230.      *                                  name of a field and any other properties, the change array entries
  231. -
  232.      *                                  should have the new names of the fields as array indexes.
  233. -
  234.      *
  235. -
  236.      *                                 The value of each entry of the array should be set to another associative
  237. -
  238.      *                                  array with the properties of the fields to that are meant to be changed as
  239. -
  240.      *                                  array entries. These entries should be assigned to the new values of the
  241. -
  242.      *                                  respective properties. The properties of the fields should be the same
  243. -
  244.      *                                  as defined by the Metabase parser.
  245. -
  246.      *
  247. -
  248.      *                             Example
  249. -
  250.      *                                 array(
  251. -
  252.      *                                     'name' => 'userlist',
  253. -
  254.      *                                     'add' => array(
  255. -
  256.      *                                         'quota' => array(
  257. -
  258.      *                                             'type' => 'integer',
  259. -
  260.      *                                             'unsigned' => 1
  261. -
  262.      *                                         )
  263. -
  264.      *                                     ),
  265. -
  266.      *                                     'remove' => array(
  267. -
  268.      *                                         'file_limit' => array(),
  269. -
  270.      *                                         'time_limit' => array()
  271. -
  272.      *                                     ),
  273. -
  274.      *                                     'change' => array(
  275. -
  276.      *                                         'name' => array(
  277. -
  278.      *                                             'length' => '20',
  279. -
  280.      *                                             'definition' => array(
  281. -
  282.      *                                                 'type' => 'text',
  283. -
  284.      *                                                 'length' => 20,
  285. -
  286.      *                                             ),
  287. -
  288.      *                                         )
  289. -
  290.      *                                     ),
  291. -
  292.      *                                     'rename' => array(
  293. -
  294.      *                                         'sex' => array(
  295. -
  296.      *                                             'name' => 'gender',
  297. -
  298.      *                                             'definition' => array(
  299. -
  300.      *                                                 'type' => 'text',
  301. -
  302.      *                                                 'length' => 1,
  303. -
  304.      *                                                 'default' => 'M',
  305. -
  306.      *                                             ),
  307. -
  308.      *                                         )
  309. -
  310.      *                                     )
  311. -
  312.      *                                 )
  313. -
  314.      *
  315. -
  316.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  317. -
  318.      *                              can perform the requested table alterations if the value is true or
  319. -
  320.      *                              actually perform them otherwise.
  321. -
  322.      * @return void 
  323. -
  324.      */
  325. -
  326.     public function alterTable($namearray $changes$check)
  327. -
  328.     {
  329. -
  330.         foreach ($changes as $changeName => $change{
  331. -
  332.             switch ($changeName{
  333. -
  334.                 case 'add':
  335. -
  336.                     break;
  337. -
  338.                 case 'remove':
  339. -
  340.                     break;
  341. -
  342.                 case 'name':
  343. -
  344.                 case 'rename':
  345. -
  346.                 case 'change':
  347. -
  348.                 default:
  349. -
  350.                     throw new Doctrine_Export_Exception('alterTable: change type "' $changeName '" not yet supported');
  351. -
  352.             }
  353. -
  354.         }
  355. -
  356.  
  357. -
  358.         $query '';
  359. -
  360.         if empty($changes['add']&& is_array($changes['add'])) {
  361. -
  362.             foreach ($changes['add'as $fieldName => $field{
  363. -
  364.                 if ($query{
  365. -
  366.                     $query .= ', ';
  367. -
  368.                 }
  369. -
  370.                 $query .= 'ADD ' $this->conn->getDeclaration($field['type']$fieldName$field);
  371. -
  372.             }
  373. -
  374.         }
  375. -
  376.  
  377. -
  378.         if empty($changes['remove']&& is_array($changes['remove'])) {
  379. -
  380.             foreach ($changes['remove'as $fieldName => $field{
  381. -
  382.                 if ($query{
  383. -
  384.                     $query .= ', ';
  385. -
  386.                 }
  387. -
  388.                 $field_name $this->conn->quoteIdentifier($fieldNametrue);
  389. -
  390.                 $query .= 'DROP COLUMN ' $fieldName;
  391. -
  392.             }
  393. -
  394.         }
  395. -
  396.  
  397. -
  398.         if $query{
  399. -
  400.             return false;
  401. -
  402.         }
  403. -
  404.  
  405. -
  406.         $name $this->conn->quoteIdentifier($nametrue);
  407. -
  408.         return $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  409. -
  410.     }
  411. -
  412.     /**
  413. -
  414.      * create sequence
  415. -
  416.      *
  417. -
  418.      * @param string $seqName name of the sequence to be created
  419. -
  420.      * @param string $start start value of the sequence; default is 1
  421. -
  422.      * @param array     $options  An associative array of table options:
  423. -
  424.      *                           array(
  425. -
  426.      *                               'comment' => 'Foo',
  427. -
  428.      *                               'charset' => 'utf8',
  429. -
  430.      *                               'collate' => 'utf8_unicode_ci',
  431. -
  432.      *                           );
  433. -
  434.      * @return string 
  435. -
  436.      */
  437. -
  438.     public function createSequence($seqName$start 1array $options array())
  439. -
  440.     {
  441. -
  442.         $sequenceName $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName)true);
  443. -
  444.         $seqcolName $this->conn->quoteIdentifier($this->conn->options['seqcol_name']true);
  445. -
  446.         $query 'CREATE TABLE ' $sequenceName ' (' $seqcolName .
  447. -
  448.                  ' INT PRIMARY KEY CLUSTERED IDENTITY(' $start ', 1) NOT NULL)';
  449. -
  450.  
  451. -
  452.         $res $this->conn->exec($query);
  453. -
  454.  
  455. -
  456.         if ($start == 1{
  457. -
  458.             return true;
  459. -
  460.         }
  461. -
  462.  
  463. -
  464.         try {
  465. -
  466.             $query 'SET IDENTITY_INSERT ' $sequenceName ' ON ' .
  467. -
  468.                      'INSERT INTO ' $sequenceName ' (' $seqcolName ') VALUES ( ' $start ')';
  469. -
  470.             $res $this->conn->exec($query);
  471. -
  472.         catch (Exception $e{
  473. -
  474.             $result $this->conn->exec('DROP TABLE ' $sequenceName);
  475. -
  476.         }
  477. -
  478.         return true;
  479. -
  480.     }
  481. -
  482.     /**
  483. -
  484.      * This function drops an existing sequence
  485. -
  486.      *
  487. -
  488.      * @param string $seqName      name of the sequence to be dropped
  489. -
  490.      * @return void 
  491. -
  492.      */
  493. -
  494.     public function dropSequenceSql($seqName)
  495. -
  496.     {
  497. -
  498.         $sequenceName $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName)true);
  499. -
  500.         return 'DROP TABLE ' $sequenceName;
  501. -
  502.     }
  503. -
  504. }
  505. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMysql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMysql.php.html deleted file mode 100644 index 9da082816..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportMysql.php.html +++ /dev/null @@ -1,643 +0,0 @@ - -
-

Source for file Mysql.php

-

Documentation is available at Mysql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mysql.php 2288 2007-08-29 21:51:49Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Export');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Mysql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2288 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.    /**
  71. -
  72.      * create a new database
  73. -
  74.      *
  75. -
  76.      * @param string $name name of the database that should be created
  77. -
  78.      * @return string 
  79. -
  80.      */
  81. -
  82.     public function createDatabaseSql($name)
  83. -
  84.     {
  85. -
  86.         return 'CREATE DATABASE ' $this->conn->quoteIdentifier($nametrue);
  87. -
  88.     }
  89. -
  90.     /**
  91. -
  92.      * drop an existing database
  93. -
  94.      *
  95. -
  96.      * @param string $name name of the database that should be dropped
  97. -
  98.      * @return string 
  99. -
  100.      */
  101. -
  102.     public function dropDatabaseSql($name)
  103. -
  104.     {
  105. -
  106.         return 'DROP DATABASE ' $this->conn->quoteIdentifier($name);
  107. -
  108.     }
  109. -
  110.     /**
  111. -
  112.      * create a new table
  113. -
  114.      *
  115. -
  116.      * @param string $name   Name of the database that should be created
  117. -
  118.      * @param array $fields  Associative array that contains the definition of each field of the new table
  119. -
  120.      *                        The indexes of the array entries are the names of the fields of the table an
  121. -
  122.      *                        the array entry values are associative arrays like those that are meant to be
  123. -
  124.      *                        passed with the field definitions to get[Type]Declaration() functions.
  125. -
  126.      *                           array(
  127. -
  128.      *                               'id' => array(
  129. -
  130.      *                                   'type' => 'integer',
  131. -
  132.      *                                   'unsigned' => 1
  133. -
  134.      *                                   'notnull' => 1
  135. -
  136.      *                                   'default' => 0
  137. -
  138.      *                               ),
  139. -
  140.      *                               'name' => array(
  141. -
  142.      *                                   'type' => 'text',
  143. -
  144.      *                                   'length' => 12
  145. -
  146.      *                               ),
  147. -
  148.      *                               'password' => array(
  149. -
  150.      *                                   'type' => 'text',
  151. -
  152.      *                                   'length' => 12
  153. -
  154.      *                               )
  155. -
  156.      *                           );
  157. -
  158.      * @param array $options  An associative array of table options:
  159. -
  160.      *                           array(
  161. -
  162.      *                               'comment' => 'Foo',
  163. -
  164.      *                               'charset' => 'utf8',
  165. -
  166.      *                               'collate' => 'utf8_unicode_ci',
  167. -
  168.      *                               'type'    => 'innodb',
  169. -
  170.      *                           );
  171. -
  172.      *
  173. -
  174.      * @return void 
  175. -
  176.      */
  177. -
  178.     public function createTableSql($namearray $fieldsarray $options array()) 
  179. -
  180.     {
  181. -
  182.         if $name)
  183. -
  184.             throw new Doctrine_Export_Exception('no valid table name specified');
  185. -
  186.  
  187. -
  188.         if (empty($fields)) {
  189. -
  190.             throw new Doctrine_Export_Exception('no fields specified for table "'.$name.'"');
  191. -
  192.         }
  193. -
  194.         $queryFields $this->getFieldDeclarationList($fields);
  195. -
  196.         
  197. -
  198.         // build indexes for all foreign key fields (needed in MySQL!!)
  199. -
  200.         if (isset($options['foreignKeys'])) {
  201. -
  202.             foreach ($options['foreignKeys'as $fk{
  203. -
  204.                 $local $fk['local'];
  205. -
  206.                 $found false;
  207. -
  208.                 if (isset($options['indexes'])) {
  209. -
  210.                     foreach ($options['indexes'as $definition{
  211. -
  212.                         if (is_string($definition['fields'])) {
  213. -
  214.                             // Check if index already exists on the column                            
  215. -
  216.                             $found ($local == $definition['fields']);                        
  217. -
  218.                         else if (in_array($local$definition['fields']&& count($definition['fields']=== 1{
  219. -
  220.                             // Index already exists on the column
  221. -
  222.                             $found true;
  223. -
  224.                         }
  225. -
  226.                     }
  227. -
  228.                 }
  229. -
  230.                 if (isset($options['primary']&& !empty($options['primary']&&
  231. -
  232.                         in_array($local$options['primary'])) {
  233. -
  234.                     // field is part of the PK and therefore already indexed
  235. -
  236.                     $found true;
  237. -
  238.                 }
  239. -
  240.                 
  241. -
  242.                 if $found{
  243. -
  244.                     $options['indexes'][$localarray('fields' => array($local => array()));
  245. -
  246.                 }
  247. -
  248.             }
  249. -
  250.         }
  251. -
  252.  
  253. -
  254.         // add all indexes
  255. -
  256.         if (isset($options['indexes']&& empty($options['indexes'])) {
  257. -
  258.             foreach($options['indexes'as $index => $definition{
  259. -
  260.                 $queryFields .= ', ' $this->getIndexDeclaration($index$definition);
  261. -
  262.             }
  263. -
  264.         }
  265. -
  266.  
  267. -
  268.         // attach all primary keys
  269. -
  270.         if (isset($options['primary']&& empty($options['primary'])) {
  271. -
  272.             $queryFields .= ', PRIMARY KEY(' implode(', 'array_values($options['primary'])) ')';
  273. -
  274.         }
  275. -
  276.  
  277. -
  278.         $query 'CREATE TABLE ' $this->conn->quoteIdentifier($nametrue' (' $queryFields ')';
  279. -
  280.  
  281. -
  282.         $optionStrings array();
  283. -
  284.  
  285. -
  286.         if (isset($options['comment'])) {
  287. -
  288.             $optionStrings['comment''COMMENT = ' $this->dbh->quote($options['comment']'text');
  289. -
  290.         }
  291. -
  292.         if (isset($options['charset'])) {
  293. -
  294.             $optionStrings['charset''DEFAULT CHARACTER SET ' $options['charset'];
  295. -
  296.             if (isset($options['collate'])) {
  297. -
  298.                 $optionStrings['charset'.= ' COLLATE ' $options['collate'];
  299. -
  300.             }
  301. -
  302.         }
  303. -
  304.  
  305. -
  306.         $type false;
  307. -
  308.  
  309. -
  310.         // get the type of the table
  311. -
  312.         if (isset($options['type'])) {
  313. -
  314.             $type $options['type'];
  315. -
  316.         else {
  317. -
  318.             $type $this->conn->getAttribute(Doctrine::ATTR_DEFAULT_TABLE_TYPE);
  319. -
  320.         }
  321. -
  322.  
  323. -
  324.         if ($type{
  325. -
  326.             $optionStrings['ENGINE = ' $type;
  327. -
  328.         }
  329. -
  330.  
  331. -
  332.         if (!empty($optionStrings)) {
  333. -
  334.             $query.= ' '.implode(' '$optionStrings);
  335. -
  336.         }
  337. -
  338.         $sql[$query;
  339. -
  340.  
  341. -
  342.         if (isset($options['foreignKeys'])) {
  343. -
  344.  
  345. -
  346.             foreach ((array) $options['foreignKeys'as $k => $definition{
  347. -
  348.                 if (is_array($definition)) {
  349. -
  350.                     $sql[$this->createForeignKeySql($name$definition);
  351. -
  352.                 }
  353. -
  354.             }
  355. -
  356.         }   
  357. -
  358.         return $sql;
  359. -
  360.     }
  361. -
  362.     /**
  363. -
  364.      * alter an existing table
  365. -
  366.      *
  367. -
  368.      * @param string $name         name of the table that is intended to be changed.
  369. -
  370.      * @param array $changes     associative array that contains the details of each type
  371. -
  372.      *                              of change that is intended to be performed. The types of
  373. -
  374.      *                              changes that are currently supported are defined as follows:
  375. -
  376.      *
  377. -
  378.      *                              name
  379. -
  380.      *
  381. -
  382.      *                                 New name for the table.
  383. -
  384.      *
  385. -
  386.      *                             add
  387. -
  388.      *
  389. -
  390.      *                                 Associative array with the names of fields to be added as
  391. -
  392.      *                                  indexes of the array. The value of each entry of the array
  393. -
  394.      *                                  should be set to another associative array with the properties
  395. -
  396.      *                                  of the fields to be added. The properties of the fields should
  397. -
  398.      *                                  be the same as defined by the Metabase parser.
  399. -
  400.      *
  401. -
  402.      *
  403. -
  404.      *                             remove
  405. -
  406.      *
  407. -
  408.      *                                 Associative array with the names of fields to be removed as indexes
  409. -
  410.      *                                  of the array. Currently the values assigned to each entry are ignored.
  411. -
  412.      *                                  An empty array should be used for future compatibility.
  413. -
  414.      *
  415. -
  416.      *                             rename
  417. -
  418.      *
  419. -
  420.      *                                 Associative array with the names of fields to be renamed as indexes
  421. -
  422.      *                                  of the array. The value of each entry of the array should be set to
  423. -
  424.      *                                  another associative array with the entry named name with the new
  425. -
  426.      *                                  field name and the entry named Declaration that is expected to contain
  427. -
  428.      *                                  the portion of the field declaration already in DBMS specific SQL code
  429. -
  430.      *                                  as it is used in the CREATE TABLE statement.
  431. -
  432.      *
  433. -
  434.      *                             change
  435. -
  436.      *
  437. -
  438.      *                                 Associative array with the names of the fields to be changed as indexes
  439. -
  440.      *                                  of the array. Keep in mind that if it is intended to change either the
  441. -
  442.      *                                  name of a field and any other properties, the change array entries
  443. -
  444.      *                                  should have the new names of the fields as array indexes.
  445. -
  446.      *
  447. -
  448.      *                                 The value of each entry of the array should be set to another associative
  449. -
  450.      *                                  array with the properties of the fields to that are meant to be changed as
  451. -
  452.      *                                  array entries. These entries should be assigned to the new values of the
  453. -
  454.      *                                  respective properties. The properties of the fields should be the same
  455. -
  456.      *                                  as defined by the Metabase parser.
  457. -
  458.      *
  459. -
  460.      *                             Example
  461. -
  462.      *                                 array(
  463. -
  464.      *                                     'name' => 'userlist',
  465. -
  466.      *                                     'add' => array(
  467. -
  468.      *                                         'quota' => array(
  469. -
  470.      *                                             'type' => 'integer',
  471. -
  472.      *                                             'unsigned' => 1
  473. -
  474.      *                                         )
  475. -
  476.      *                                     ),
  477. -
  478.      *                                     'remove' => array(
  479. -
  480.      *                                         'file_limit' => array(),
  481. -
  482.      *                                         'time_limit' => array()
  483. -
  484.      *                                     ),
  485. -
  486.      *                                     'change' => array(
  487. -
  488.      *                                         'name' => array(
  489. -
  490.      *                                             'length' => '20',
  491. -
  492.      *                                             'definition' => array(
  493. -
  494.      *                                                 'type' => 'text',
  495. -
  496.      *                                                 'length' => 20,
  497. -
  498.      *                                             ),
  499. -
  500.      *                                         )
  501. -
  502.      *                                     ),
  503. -
  504.      *                                     'rename' => array(
  505. -
  506.      *                                         'sex' => array(
  507. -
  508.      *                                             'name' => 'gender',
  509. -
  510.      *                                             'definition' => array(
  511. -
  512.      *                                                 'type' => 'text',
  513. -
  514.      *                                                 'length' => 1,
  515. -
  516.      *                                                 'default' => 'M',
  517. -
  518.      *                                             ),
  519. -
  520.      *                                         )
  521. -
  522.      *                                     )
  523. -
  524.      *                                 )
  525. -
  526.      *
  527. -
  528.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  529. -
  530.      *                            can perform the requested table alterations if the value is true or
  531. -
  532.      *                            actually perform them otherwise.
  533. -
  534.      * @return boolean 
  535. -
  536.      */
  537. -
  538.     public function alterTableSql($namearray $changes$check)
  539. -
  540.     {
  541. -
  542.         if $name{
  543. -
  544.             throw new Doctrine_Export_Exception('no valid table name specified');
  545. -
  546.         }
  547. -
  548.         foreach ($changes as $changeName => $change{
  549. -
  550.             switch ($changeName{
  551. -
  552.                 case 'add':
  553. -
  554.                 case 'remove':
  555. -
  556.                 case 'change':
  557. -
  558.                 case 'rename':
  559. -
  560.                 case 'name':
  561. -
  562.                     break;
  563. -
  564.                 default:
  565. -
  566.                     throw new Doctrine_Export_Exception('change type "' $changeName '" not yet supported');
  567. -
  568.             }
  569. -
  570.         }
  571. -
  572.  
  573. -
  574.         if ($check{
  575. -
  576.             return true;
  577. -
  578.         }
  579. -
  580.  
  581. -
  582.         $query '';
  583. -
  584.         if empty($changes['name'])) {
  585. -
  586.             $change_name $this->conn->quoteIdentifier($changes['name']);
  587. -
  588.             $query .= 'RENAME TO ' $change_name;
  589. -
  590.         }
  591. -
  592.  
  593. -
  594.         if empty($changes['add']&& is_array($changes['add'])) {
  595. -
  596.             foreach ($changes['add'as $fieldName => $field{
  597. -
  598.                 if ($query{
  599. -
  600.                     $query.= ', ';
  601. -
  602.                 }
  603. -
  604.                 $query.= 'ADD ' $this->getDeclaration($field['type']$fieldName$field);
  605. -
  606.             }
  607. -
  608.         }
  609. -
  610.  
  611. -
  612.         if empty($changes['remove']&& is_array($changes['remove'])) {
  613. -
  614.             foreach ($changes['remove'as $fieldName => $field{
  615. -
  616.                 if ($query{
  617. -
  618.                     $query .= ', ';
  619. -
  620.                 }
  621. -
  622.                 $fieldName $this->conn->quoteIdentifier($fieldName);
  623. -
  624.                 $query .= 'DROP ' $fieldName;
  625. -
  626.             }
  627. -
  628.         }
  629. -
  630.  
  631. -
  632.         $rename array();
  633. -
  634.         if empty($changes['rename']&& is_array($changes['rename'])) {
  635. -
  636.             foreach ($changes['rename'as $fieldName => $field{
  637. -
  638.                 $rename[$field['name']] $fieldName;
  639. -
  640.             }
  641. -
  642.         }
  643. -
  644.  
  645. -
  646.         if empty($changes['change']&& is_array($changes['change'])) {
  647. -
  648.             foreach ($changes['change'as $fieldName => $field{
  649. -
  650.                 if ($query{
  651. -
  652.                     $query.= ', ';
  653. -
  654.                 }
  655. -
  656.                 if (isset($rename[$fieldName])) {
  657. -
  658.                     $oldFieldName $rename[$fieldName];
  659. -
  660.                     unset($rename[$fieldName]);
  661. -
  662.                 else {
  663. -
  664.                     $oldFieldName $fieldName;
  665. -
  666.                 }
  667. -
  668.                 $oldFieldName $this->conn->quoteIdentifier($oldFieldNametrue);
  669. -
  670.                 $query .= 'CHANGE ' $oldFieldName ' ' 
  671. -
  672.                         . $this->getDeclaration($field['definition']['type']$fieldName$field['definition']);
  673. -
  674.             }
  675. -
  676.         }
  677. -
  678.  
  679. -
  680.         if empty($rename&& is_array($rename)) {
  681. -
  682.             foreach ($rename as $renameName => $renamedField{
  683. -
  684.                 if ($query{
  685. -
  686.                     $query.= ', ';
  687. -
  688.                 }
  689. -
  690.                 $field $changes['rename'][$renamedField];
  691. -
  692.                 $renamedField $this->conn->quoteIdentifier($renamedFieldtrue);
  693. -
  694.                 $query .= 'CHANGE ' $renamedField ' '
  695. -
  696.                         . $this->getDeclaration($field['definition']['type']$field['name']$field['definition']);
  697. -
  698.             }
  699. -
  700.         }
  701. -
  702.  
  703. -
  704.         if $query{
  705. -
  706.             return false;
  707. -
  708.         }
  709. -
  710.  
  711. -
  712.         $name $this->conn->quoteIdentifier($nametrue);
  713. -
  714.         return $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  715. -
  716.     }
  717. -
  718.     /**
  719. -
  720.      * create sequence
  721. -
  722.      *
  723. -
  724.      * @param string    $sequenceName name of the sequence to be created
  725. -
  726.      * @param string    $start        start value of the sequence; default is 1
  727. -
  728.      * @param array     $options  An associative array of table options:
  729. -
  730.      *                           array(
  731. -
  732.      *                               'comment' => 'Foo',
  733. -
  734.      *                               'charset' => 'utf8',
  735. -
  736.      *                               'collate' => 'utf8_unicode_ci',
  737. -
  738.      *                               'type'    => 'innodb',
  739. -
  740.      *                           );
  741. -
  742.      * @return boolean 
  743. -
  744.      */
  745. -
  746.     public function createSequence($sequenceName$start 1array $options array())
  747. -
  748.     {
  749. -
  750.         $sequenceName   $this->conn->quoteIdentifier($this->conn->getSequenceName($sequenceName)true);
  751. -
  752.         $seqcolName     $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  753. -
  754.  
  755. -
  756.         $optionsStrings array();
  757. -
  758.  
  759. -
  760.         if (isset($options['comment']&& empty($options['comment'])) {
  761. -
  762.             $optionsStrings['comment''COMMENT = ' $this->conn->quote($options['comment']'string');
  763. -
  764.         }
  765. -
  766.  
  767. -
  768.         if (isset($options['charset']&& empty($options['charset'])) {
  769. -
  770.             $optionsStrings['charset''DEFAULT CHARACTER SET ' $options['charset'];
  771. -
  772.  
  773. -
  774.             if (isset($options['collate'])) {
  775. -
  776.                 $optionsStrings['collate'.= ' COLLATE ' $options['collate'];
  777. -
  778.             }
  779. -
  780.         }
  781. -
  782.  
  783. -
  784.         $type false;
  785. -
  786.  
  787. -
  788.         if (isset($options['type'])) {
  789. -
  790.             $type $options['type'];
  791. -
  792.         else {
  793. -
  794.             $type $this->conn->default_table_type;
  795. -
  796.         }
  797. -
  798.         if ($type{
  799. -
  800.             $optionsStrings['ENGINE = ' $type;
  801. -
  802.         }
  803. -
  804.  
  805. -
  806.  
  807. -
  808.         try {
  809. -
  810.             $query  'CREATE TABLE ' $sequenceName
  811. -
  812.                     . ' (' $seqcolName ' INT NOT NULL AUTO_INCREMENT, PRIMARY KEY ('
  813. -
  814.                     . $seqcolName '))'
  815. -
  816.                     . strlen($this->conn->default_table_type' TYPE = '
  817. -
  818.                     . $this->conn->default_table_type '';
  819. -
  820.  
  821. -
  822.             $res    $this->conn->exec($query);
  823. -
  824.         catch(Doctrine_Connection_Exception $e{
  825. -
  826.             throw new Doctrine_Export_Exception('could not create sequence table');
  827. -
  828.         }
  829. -
  830.  
  831. -
  832.         if ($start == 1)
  833. -
  834.             return true;
  835. -
  836.  
  837. -
  838.         $query  'INSERT INTO ' $sequenceName
  839. -
  840.                 . ' (' $seqcolName ') VALUES (' ($start 1')';
  841. -
  842.  
  843. -
  844.         $res    $this->conn->exec($query);
  845. -
  846.  
  847. -
  848.         // Handle error
  849. -
  850.         try {
  851. -
  852.             $result $this->conn->exec('DROP TABLE ' $sequenceName);
  853. -
  854.         catch(Doctrine_Connection_Exception $e{
  855. -
  856.             throw new Doctrine_Export_Exception('could not drop inconsistent sequence table');
  857. -
  858.         }
  859. -
  860.  
  861. -
  862.  
  863. -
  864.     }
  865. -
  866.     /**
  867. -
  868.      * Get the stucture of a field into an array
  869. -
  870.      *
  871. -
  872.      * @author Leoncx
  873. -
  874.      * @param string    $table         name of the table on which the index is to be created
  875. -
  876.      * @param string    $name          name of the index to be created
  877. -
  878.      * @param array     $definition    associative array that defines properties of the index to be created.
  879. -
  880.      *                                  Currently, only one property named FIELDS is supported. This property
  881. -
  882.      *                                  is also an associative with the names of the index fields as array
  883. -
  884.      *                                  indexes. Each entry of this array is set to another type of associative
  885. -
  886.      *                                  array that specifies properties of the index that are specific to
  887. -
  888.      *                                  each field.
  889. -
  890.      *
  891. -
  892.      *                                  Currently, only the sorting property is supported. It should be used
  893. -
  894.      *                                  to define the sorting direction of the index. It may be set to either
  895. -
  896.      *                                  ascending or descending.
  897. -
  898.      *
  899. -
  900.      *                                  Not all DBMS support index sorting direction configuration. The DBMS
  901. -
  902.      *                                  drivers of those that do not support it ignore this property. Use the
  903. -
  904.      *                                  function supports() to determine whether the DBMS driver can manage indexes.
  905. -
  906.      *
  907. -
  908.      *                                  Example
  909. -
  910.      *                                     array(
  911. -
  912.      *                                         'fields' => array(
  913. -
  914.      *                                             'user_name' => array(
  915. -
  916.      *                                                 'sorting' => 'ASC'
  917. -
  918.      *                                                 'length' => 10
  919. -
  920.      *                                             ),
  921. -
  922.      *                                             'last_login' => array()
  923. -
  924.      *                                         )
  925. -
  926.      *                                     )
  927. -
  928.      * @throws PDOException
  929. -
  930.      * @return void 
  931. -
  932.      */
  933. -
  934.     public function createIndexSql($table$namearray $definition)
  935. -
  936.     {
  937. -
  938.         $table  $table;
  939. -
  940.         $name   $this->conn->getIndexName($name);
  941. -
  942.         $type   '';
  943. -
  944.         if (isset($definition['type'])) {
  945. -
  946.             switch (strtolower($definition['type'])) {
  947. -
  948.                 case 'fulltext':
  949. -
  950.                 case 'unique':
  951. -
  952.                     $type strtoupper($definition['type']' ';
  953. -
  954.                 break;
  955. -
  956.                 default:
  957. -
  958.                     throw new Doctrine_Export_Exception('Unknown index type ' $definition['type']);
  959. -
  960.             }
  961. -
  962.         }
  963. -
  964.         $query  'CREATE ' $type 'INDEX ' $name ' ON ' $table;
  965. -
  966.         $query .= ' (' $this->getIndexFieldDeclarationList(')';
  967. -
  968.  
  969. -
  970.         return $query;
  971. -
  972.     }
  973. -
  974.     /** 
  975. -
  976.      * getDefaultDeclaration
  977. -
  978.      * Obtain DBMS specific SQL code portion needed to set a default value
  979. -
  980.      * declaration to be used in statements like CREATE TABLE.
  981. -
  982.      *
  983. -
  984.      * @param array $field      field definition array
  985. -
  986.      * @return string           DBMS specific SQL code portion needed to set a default value
  987. -
  988.      */
  989. -
  990.     public function getDefaultFieldDeclaration($field)
  991. -
  992.     {
  993. -
  994.         $default '';
  995. -
  996.         if (isset($field['default']&& $field['length'<= 255{
  997. -
  998.             if ($field['default'=== ''{
  999. -
  1000.                 $field['default'empty($field['notnull'])
  1001. -
  1002.                     ? null $this->valid_default_values[$field['type']];
  1003. -
  1004.  
  1005. -
  1006.                 if ($field['default'=== ''
  1007. -
  1008.                     && ($conn->getAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_EMPTY_TO_NULL)
  1009. -
  1010.                 {
  1011. -
  1012.                     $field['default'' ';
  1013. -
  1014.                 }
  1015. -
  1016.             }
  1017. -
  1018.     
  1019. -
  1020.             $default ' DEFAULT ' $this->conn->quote($field['default']$field['type']);
  1021. -
  1022.         }
  1023. -
  1024.         return $default;
  1025. -
  1026.     }
  1027. -
  1028.     /**
  1029. -
  1030.      * Obtain DBMS specific SQL code portion needed to set an index
  1031. -
  1032.      * declaration to be used in statements like CREATE TABLE.
  1033. -
  1034.      *
  1035. -
  1036.      * @param string $charset       name of the index
  1037. -
  1038.      * @param array $definition     index definition
  1039. -
  1040.      * @return string  DBMS specific SQL code portion needed to set an index
  1041. -
  1042.      */
  1043. -
  1044.     public function getIndexDeclaration($namearray $definition)
  1045. -
  1046.     {
  1047. -
  1048.         $name   $this->conn->quoteIdentifier($name);
  1049. -
  1050.         $type   '';
  1051. -
  1052.         if(isset($definition['type'])) {
  1053. -
  1054.             switch (strtolower($definition['type'])) {
  1055. -
  1056.                 case 'fulltext':
  1057. -
  1058.                 case 'unique':
  1059. -
  1060.                     $type strtoupper($definition['type']' ';
  1061. -
  1062.                 break;
  1063. -
  1064.                 default:
  1065. -
  1066.                     throw new Doctrine_Export_Exception('Unknown index type ' $definition['type']);
  1067. -
  1068.             }
  1069. -
  1070.         }
  1071. -
  1072.         
  1073. -
  1074.         if isset($definition['fields'])) {
  1075. -
  1076.             throw new Doctrine_Export_Exception('No index columns given.');
  1077. -
  1078.         }
  1079. -
  1080.         if is_array($definition['fields'])) {
  1081. -
  1082.             $definition['fields'array($definition['fields']);
  1083. -
  1084.         }
  1085. -
  1086.  
  1087. -
  1088.         $query $type 'INDEX ' $this->conn->formatter->getIndexName($name);
  1089. -
  1090.  
  1091. -
  1092.         $query .= ' (' $this->getIndexFieldDeclarationList($definition['fields']')';
  1093. -
  1094.         
  1095. -
  1096.         return $query;
  1097. -
  1098.     }
  1099. -
  1100.     /**
  1101. -
  1102.      * getIndexFieldDeclarationList
  1103. -
  1104.      * Obtain DBMS specific SQL code portion needed to set an index
  1105. -
  1106.      * declaration to be used in statements like CREATE TABLE.
  1107. -
  1108.      *
  1109. -
  1110.      * @return string 
  1111. -
  1112.      */
  1113. -
  1114.     public function getIndexFieldDeclarationList(array $fields)
  1115. -
  1116.     {
  1117. -
  1118.         $declFields array();
  1119. -
  1120.  
  1121. -
  1122.         foreach ($fields as $fieldName => $field{
  1123. -
  1124.             $fieldString $fieldName;
  1125. -
  1126.  
  1127. -
  1128.             if (is_array($field)) {
  1129. -
  1130.                 if (isset($field['length'])) {
  1131. -
  1132.                     $fieldString .= '(' $field['length'')';
  1133. -
  1134.                 }
  1135. -
  1136.  
  1137. -
  1138.                 if (isset($field['sorting'])) {
  1139. -
  1140.                     $sort strtoupper($field['sorting']);
  1141. -
  1142.                     switch ($sort{
  1143. -
  1144.                         case 'ASC':
  1145. -
  1146.                         case 'DESC':
  1147. -
  1148.                             $fieldString .= ' ' $sort;
  1149. -
  1150.                             break;
  1151. -
  1152.                         default:
  1153. -
  1154.                             throw new Doctrine_Export_Exception('Unknown index sorting option given.');
  1155. -
  1156.                     }
  1157. -
  1158.                 }
  1159. -
  1160.             else {
  1161. -
  1162.                 $fieldString $field;
  1163. -
  1164.             }
  1165. -
  1166.             $declFields[$fieldString;
  1167. -
  1168.         }
  1169. -
  1170.         return implode(', '$declFields);
  1171. -
  1172.     }
  1173. -
  1174.     /**
  1175. -
  1176.      * getAdvancedForeignKeyOptions
  1177. -
  1178.      * Return the FOREIGN KEY query section dealing with non-standard options
  1179. -
  1180.      * as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
  1181. -
  1182.      *
  1183. -
  1184.      * @param array $definition 
  1185. -
  1186.      * @return string 
  1187. -
  1188.      */
  1189. -
  1190.     public function getAdvancedForeignKeyOptions(array $definition)
  1191. -
  1192.     {
  1193. -
  1194.         $query '';
  1195. -
  1196.         if (!empty($definition['match'])) {
  1197. -
  1198.             $query .= ' MATCH ' $definition['match'];
  1199. -
  1200.         }
  1201. -
  1202.         if (!empty($definition['onUpdate'])) {
  1203. -
  1204.             $query .= ' ON UPDATE ' $this->getForeignKeyReferentialAction($definition['onUpdate']);
  1205. -
  1206.         }
  1207. -
  1208.         if (!empty($definition['onDelete'])) {
  1209. -
  1210.             $query .= ' ON DELETE ' $this->getForeignKeyReferentialAction($definition['onDelete']);
  1211. -
  1212.         }
  1213. -
  1214.         return $query;
  1215. -
  1216.     }
  1217. -
  1218.     /**
  1219. -
  1220.      * drop existing index
  1221. -
  1222.      *
  1223. -
  1224.      * @param string    $table          name of table that should be used in method
  1225. -
  1226.      * @param string    $name           name of the index to be dropped
  1227. -
  1228.      * @return void 
  1229. -
  1230.      */
  1231. -
  1232.     public function dropIndexSql($table$name)
  1233. -
  1234.     {
  1235. -
  1236.         $table  $this->conn->quoteIdentifier($tabletrue);
  1237. -
  1238.         $name   $this->conn->quoteIdentifier($this->conn->formatter->getIndexName($name)true);
  1239. -
  1240.         return 'DROP INDEX ' $name ' ON ' $table;
  1241. -
  1242.     }
  1243. -
  1244.     /**
  1245. -
  1246.      * dropTable
  1247. -
  1248.      *
  1249. -
  1250.      * @param string    $table          name of table that should be dropped from the database
  1251. -
  1252.      * @throws PDOException
  1253. -
  1254.      * @return void 
  1255. -
  1256.      */
  1257. -
  1258.     public function dropTableSql($table)
  1259. -
  1260.     {
  1261. -
  1262.         $table  $this->conn->quoteIdentifier($tabletrue);
  1263. -
  1264.         return 'DROP TABLE ' $table;
  1265. -
  1266.     }
  1267. -
  1268. }
  1269. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportOracle.php.html deleted file mode 100644 index 566c0c23c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportOracle.php.html +++ /dev/null @@ -1,501 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Oracle.php 2288 2007-08-29 21:51:49Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Export');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Oracle
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2288 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * create a new database
  73. -
  74.      *
  75. -
  76.      * @param object $db database object that is extended by this class
  77. -
  78.      * @param string $name name of the database that should be created
  79. -
  80.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  81. -
  82.      * @access public
  83. -
  84.      */
  85. -
  86.     public function createDatabase($name)
  87. -
  88.     {
  89. -
  90.         if $this->conn->getAttribute(Doctrine::ATTR_EMULATE_DATABASE))
  91. -
  92.             throw new Doctrine_Export_Exception('database creation is only supported if the "emulate_database" attribute is enabled');
  93. -
  94.  
  95. -
  96.         $username   sprintf($this->conn->getAttribute(Doctrine::ATTR_DB_NAME_FORMAT)$name);
  97. -
  98.         $password   $this->conn->dsn['password'$this->conn->dsn['password'$name;
  99. -
  100.  
  101. -
  102.         $tablespace $this->conn->getAttribute(Doctrine::ATTR_DB_NAME_FORMAT)
  103. -
  104.                     ? ' DEFAULT TABLESPACE '.$this->conn->options['default_tablespace''';
  105. -
  106.  
  107. -
  108.         $query  'CREATE USER ' $username ' IDENTIFIED BY ' $password $tablespace;
  109. -
  110.         $result $this->conn->exec($query);
  111. -
  112.  
  113. -
  114.         try {
  115. -
  116.             $query 'GRANT CREATE SESSION, CREATE TABLE, UNLIMITED TABLESPACE, CREATE SEQUENCE, CREATE TRIGGER TO ' $username;
  117. -
  118.             $result $this->conn->exec($query);
  119. -
  120.         catch (Exception $e{
  121. -
  122.             $query 'DROP USER '.$username.' CASCADE';
  123. -
  124.             $result2 $this->conn->exec($query);
  125. -
  126.         }
  127. -
  128.         return true;
  129. -
  130.     }
  131. -
  132.     /**
  133. -
  134.      * drop an existing database
  135. -
  136.      *
  137. -
  138.      * @param object $this->conn database object that is extended by this class
  139. -
  140.      * @param string $name name of the database that should be dropped
  141. -
  142.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  143. -
  144.      * @access public
  145. -
  146.      */
  147. -
  148.     public function dropDatabase($name)
  149. -
  150.     {
  151. -
  152.         if $this->conn->getAttribute(Doctrine::ATTR_EMULATE_DATABASE))
  153. -
  154.             throw new Doctrine_Export_Exception('database dropping is only supported if the
  155. -
  156.                                                        "emulate_database" option is enabled');
  157. -
  158.  
  159. -
  160.         $username sprintf($this->conn->getAttribute(Doctrine::ATTR_DB_NAME_FORMAT)$name);
  161. -
  162.  
  163. -
  164.         return $this->conn->exec('DROP USER ' $username ' CASCADE');
  165. -
  166.     }
  167. -
  168.     /**
  169. -
  170.      * add an autoincrement sequence + trigger
  171. -
  172.      *
  173. -
  174.      * @param string $name  name of the PK field
  175. -
  176.      * @param string $table name of the table
  177. -
  178.      * @param string $start start value for the sequence
  179. -
  180.      * @return mixed        MDB2_OK on success, a MDB2 error on failure
  181. -
  182.      * @access private
  183. -
  184.      */
  185. -
  186.     public function _makeAutoincrement($name$table$start 1)
  187. -
  188.     {
  189. -
  190.         $sql   array();
  191. -
  192.         $table strtoupper($table);
  193. -
  194.         $indexName  $table '_AI_PK';
  195. -
  196.         $definition array(
  197. -
  198.             'primary' => true,
  199. -
  200.             'fields' => array($name => true),
  201. -
  202.         );
  203. -
  204.  
  205. -
  206.         $sql[$this->createConstraintSql($table$indexName$definition);
  207. -
  208.  
  209. -
  210.         if (is_null($start)) {
  211. -
  212.             $query 'SELECT MAX(' $this->conn->quoteIdentifier($nametrue') FROM ' $this->conn->quoteIdentifier($tabletrue);
  213. -
  214.             $start $this->conn->fetchOne($query);
  215. -
  216.  
  217. -
  218.             ++$start;
  219. -
  220.         }
  221. -
  222.  
  223. -
  224.         $sql[$this->createSequenceSql($table$start);
  225. -
  226.  
  227. -
  228.         $sequenceName $this->conn->formatter->getSequenceName($table);
  229. -
  230.         $triggerName  $this->conn->quoteIdentifier($table '_AI_PK'true);
  231. -
  232.         $table $this->conn->quoteIdentifier($tabletrue);
  233. -
  234.         $name  $this->conn->quoteIdentifier($nametrue);
  235. -
  236.         $sql['CREATE TRIGGER ' $triggerName '
  237. -
  238.    BEFORE INSERT
  239. -
  240.    ON '.$table.'
  241. -
  242.    FOR EACH ROW
  243. -
  244. DECLARE
  245. -
  246.    last_Sequence NUMBER;
  247. -
  248.    last_InsertID NUMBER;
  249. -
  250. BEGIN
  251. -
  252.    SELECT '.$sequenceName.'.NEXTVAL INTO :NEW.'.$name.' FROM DUAL;
  253. -
  254.    IF (:NEW.'.$name.' IS NULL OR :NEW.'.$name.' = 0) THEN
  255. -
  256.       SELECT '.$sequenceName.'.NEXTVAL INTO :NEW.'.$name.' FROM DUAL;
  257. -
  258.    ELSE
  259. -
  260.       SELECT NVL(Last_Number, 0) INTO last_Sequence
  261. -
  262.         FROM User_Sequences
  263. -
  264.        WHERE UPPER(Sequence_Name) = UPPER(\''.$sequenceName.'\');
  265. -
  266.       SELECT :NEW.id INTO last_InsertID FROM DUAL;
  267. -
  268.       WHILE (last_InsertID > last_Sequence) LOOP
  269. -
  270.          SELECT ' $sequenceName '.NEXTVAL INTO last_Sequence FROM DUAL;
  271. -
  272.       END LOOP;
  273. -
  274.    END IF;
  275. -
  276. END;
  277. -
  278. ';
  279. -
  280.         return $sql;
  281. -
  282.     }
  283. -
  284.     /**
  285. -
  286.      * drop an existing autoincrement sequence + trigger
  287. -
  288.      *
  289. -
  290.      * @param string $table name of the table
  291. -
  292.      * @return void 
  293. -
  294.      */
  295. -
  296.     public function dropAutoincrement($table)
  297. -
  298.     {
  299. -
  300.         $table strtoupper($table);
  301. -
  302.         $triggerName $table '_AI_PK';
  303. -
  304.         $trigger_name_quoted $this->conn->quote($triggerName);
  305. -
  306.         $query 'SELECT trigger_name FROM user_triggers';
  307. -
  308.         $query.= ' WHERE trigger_name='.$trigger_name_quoted.' OR trigger_name='.strtoupper($trigger_name_quoted);
  309. -
  310.         $trigger $this->conn->fetchOne($query);
  311. -
  312.  
  313. -
  314.         if ($trigger{
  315. -
  316.             $trigger_name  $this->conn->quoteIdentifier($table '_AI_PK'true);
  317. -
  318.             $trigger_sql 'DROP TRIGGER ' $trigger_name;
  319. -
  320.  
  321. -
  322.             // if throws exception, trigger for autoincrement PK could not be dropped
  323. -
  324.             $this->conn->exec($trigger_sql);
  325. -
  326.  
  327. -
  328.             // if throws exception, sequence for autoincrement PK could not be dropped
  329. -
  330.             $this->dropSequence($table);
  331. -
  332.  
  333. -
  334.             $indexName $table '_AI_PK';
  335. -
  336.  
  337. -
  338.             // if throws exception, primary key for autoincrement PK could not be dropped
  339. -
  340.             $this->dropConstraint($table$indexName);
  341. -
  342.         }
  343. -
  344.     }
  345. -
  346.    /**
  347. -
  348.      * A method to return the required SQL string that fits between CREATE ... TABLE
  349. -
  350.      * to create the table as a temporary table.
  351. -
  352.      *
  353. -
  354.      * @return string The string required to be placed between "CREATE" and "TABLE"
  355. -
  356.      *                 to generate a temporary table, if possible.
  357. -
  358.      */
  359. -
  360.     public function getTemporaryTableQuery()
  361. -
  362.     {
  363. -
  364.         return 'GLOBAL TEMPORARY';
  365. -
  366.     }
  367. -
  368.     /**
  369. -
  370.      * getAdvancedForeignKeyOptions
  371. -
  372.      * Return the FOREIGN KEY query section dealing with non-standard options
  373. -
  374.      * as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
  375. -
  376.      *
  377. -
  378.      * @param array $definition         foreign key definition
  379. -
  380.      * @return string 
  381. -
  382.      * @access protected
  383. -
  384.      */
  385. -
  386.     public function getAdvancedForeignKeyOptions(array $definition)
  387. -
  388.     {
  389. -
  390.         $query '';
  391. -
  392.         if (isset($definition['onDelete'])) {
  393. -
  394.             $query .= ' ON DELETE ' $definition['onDelete'];
  395. -
  396.         }
  397. -
  398.         if (isset($definition['deferrable'])) {
  399. -
  400.             $query .= ' DEFERRABLE';
  401. -
  402.         else {
  403. -
  404.             $query .= ' NOT DEFERRABLE';
  405. -
  406.         }
  407. -
  408.         if (isset($definition['feferred'])) {
  409. -
  410.             $query .= ' INITIALLY DEFERRED';
  411. -
  412.         else {
  413. -
  414.             $query .= ' INITIALLY IMMEDIATE';
  415. -
  416.         }
  417. -
  418.         return $query;
  419. -
  420.     }
  421. -
  422.  
  423. -
  424.     /**
  425. -
  426.      * create a new table
  427. -
  428.      *
  429. -
  430.      * @param string $name     Name of the database that should be created
  431. -
  432.      * @param array $fields Associative array that contains the definition of each field of the new table
  433. -
  434.      *                         The indexes of the array entries are the names of the fields of the table an
  435. -
  436.      *                         the array entry values are associative arrays like those that are meant to be
  437. -
  438.      *                          passed with the field definitions to get[Type]Declaration() functions.
  439. -
  440.      *
  441. -
  442.      *                         Example
  443. -
  444.      *                         array(
  445. -
  446.      *
  447. -
  448.      *                             'id' => array(
  449. -
  450.      *                                 'type' => 'integer',
  451. -
  452.      *                                 'unsigned' => 1
  453. -
  454.      *                                 'notnull' => 1
  455. -
  456.      *                                 'default' => 0
  457. -
  458.      *                             ),
  459. -
  460.      *                             'name' => array(
  461. -
  462.      *                                 'type' => 'text',
  463. -
  464.      *                                 'length' => 12
  465. -
  466.      *                             ),
  467. -
  468.      *                             'password' => array(
  469. -
  470.      *                                 'type' => 'text',
  471. -
  472.      *                                 'length' => 12
  473. -
  474.      *                             )
  475. -
  476.      *                         );
  477. -
  478.      * @param array $options  An associative array of table options:
  479. -
  480.      *
  481. -
  482.      * @return void 
  483. -
  484.      */
  485. -
  486.     public function createTable($namearray $fieldsarray $options array())
  487. -
  488.     {
  489. -
  490.         $this->conn->beginTransaction();
  491. -
  492.  
  493. -
  494.         foreach ($this->createTableSql($name$fields$optionsas $sql{
  495. -
  496.             $this->conn->exec($sql);
  497. -
  498.         }
  499. -
  500.  
  501. -
  502.         $this->conn->commit();
  503. -
  504.     }
  505. -
  506.  
  507. -
  508.     /**
  509. -
  510.      * create a new table
  511. -
  512.      *
  513. -
  514.      * @param string $name     Name of the database that should be created
  515. -
  516.      * @param array $fields Associative array that contains the definition of each field of the new table
  517. -
  518.      *                         The indexes of the array entries are the names of the fields of the table an
  519. -
  520.      *                         the array entry values are associative arrays like those that are meant to be
  521. -
  522.      *                          passed with the field definitions to get[Type]Declaration() functions.
  523. -
  524.      *
  525. -
  526.      *                         Example
  527. -
  528.      *                         array(
  529. -
  530.      *
  531. -
  532.      *                             'id' => array(
  533. -
  534.      *                                 'type' => 'integer',
  535. -
  536.      *                                 'unsigned' => 1
  537. -
  538.      *                                 'notnull' => 1
  539. -
  540.      *                                 'default' => 0
  541. -
  542.      *                             ),
  543. -
  544.      *                             'name' => array(
  545. -
  546.      *                                 'type' => 'text',
  547. -
  548.      *                                 'length' => 12
  549. -
  550.      *                             ),
  551. -
  552.      *                             'password' => array(
  553. -
  554.      *                                 'type' => 'text',
  555. -
  556.      *                                 'length' => 12
  557. -
  558.      *                             )
  559. -
  560.      *                         );
  561. -
  562.      * @param array $options  An associative array of table options:
  563. -
  564.      *
  565. -
  566.      * @return void 
  567. -
  568.      */
  569. -
  570.     public function createTableSql($namearray $fieldsarray $options array())
  571. -
  572.     {
  573. -
  574.         $sql parent::createTableSql($name$fields$options);
  575. -
  576.  
  577. -
  578.         foreach ($fields as $fieldName => $field{
  579. -
  580.             if (isset($field['autoincrement']&& $field['autoincrement'||
  581. -
  582.                (isset($field['autoinc']&& $fields['autoinc'])) {           
  583. -
  584.                 $sql array_merge($sql$this->_makeAutoincrement($fieldName$name));
  585. -
  586.             }
  587. -
  588.         }
  589. -
  590.  
  591. -
  592.         return $sql;
  593. -
  594.     }
  595. -
  596.     /**
  597. -
  598.      * drop an existing table
  599. -
  600.      *
  601. -
  602.      * @param string $name name of the table that should be dropped
  603. -
  604.      * @return void 
  605. -
  606.      */
  607. -
  608.     public function dropTable($name)
  609. -
  610.     {
  611. -
  612.         //$this->conn->beginNestedTransaction();
  613. -
  614.         $result $this->dropAutoincrement($name);
  615. -
  616.         $result parent::dropTable($name);
  617. -
  618.         //$this->conn->completeNestedTransaction();
  619. -
  620.         return $result;
  621. -
  622.     }
  623. -
  624.     /**
  625. -
  626.      * alter an existing table
  627. -
  628.      *
  629. -
  630.      * @param string $name         name of the table that is intended to be changed.
  631. -
  632.      * @param array $changes     associative array that contains the details of each type
  633. -
  634.      *                              of change that is intended to be performed. The types of
  635. -
  636.      *                              changes that are currently supported are defined as follows:
  637. -
  638.      *
  639. -
  640.      *                              name
  641. -
  642.      *
  643. -
  644.      *                                 New name for the table.
  645. -
  646.      *
  647. -
  648.      *                             add
  649. -
  650.      *
  651. -
  652.      *                                 Associative array with the names of fields to be added as
  653. -
  654.      *                                  indexes of the array. The value of each entry of the array
  655. -
  656.      *                                  should be set to another associative array with the properties
  657. -
  658.      *                                  of the fields to be added. The properties of the fields should
  659. -
  660.      *                                  be the same as defined by the MDB2 parser.
  661. -
  662.      *
  663. -
  664.      *
  665. -
  666.      *                             remove
  667. -
  668.      *
  669. -
  670.      *                                 Associative array with the names of fields to be removed as indexes
  671. -
  672.      *                                  of the array. Currently the values assigned to each entry are ignored.
  673. -
  674.      *                                  An empty array should be used for future compatibility.
  675. -
  676.      *
  677. -
  678.      *                             rename
  679. -
  680.      *
  681. -
  682.      *                                 Associative array with the names of fields to be renamed as indexes
  683. -
  684.      *                                  of the array. The value of each entry of the array should be set to
  685. -
  686.      *                                  another associative array with the entry named name with the new
  687. -
  688.      *                                  field name and the entry named Declaration that is expected to contain
  689. -
  690.      *                                  the portion of the field declaration already in DBMS specific SQL code
  691. -
  692.      *                                  as it is used in the CREATE TABLE statement.
  693. -
  694.      *
  695. -
  696.      *                             change
  697. -
  698.      *
  699. -
  700.      *                                 Associative array with the names of the fields to be changed as indexes
  701. -
  702.      *                                  of the array. Keep in mind that if it is intended to change either the
  703. -
  704.      *                                  name of a field and any other properties, the change array entries
  705. -
  706.      *                                  should have the new names of the fields as array indexes.
  707. -
  708.      *
  709. -
  710.      *                                 The value of each entry of the array should be set to another associative
  711. -
  712.      *                                  array with the properties of the fields to that are meant to be changed as
  713. -
  714.      *                                  array entries. These entries should be assigned to the new values of the
  715. -
  716.      *                                  respective properties. The properties of the fields should be the same
  717. -
  718.      *                                  as defined by the MDB2 parser.
  719. -
  720.      *
  721. -
  722.      *                             Example
  723. -
  724.      *                                 array(
  725. -
  726.      *                                     'name' => 'userlist',
  727. -
  728.      *                                     'add' => array(
  729. -
  730.      *                                         'quota' => array(
  731. -
  732.      *                                             'type' => 'integer',
  733. -
  734.      *                                             'unsigned' => 1
  735. -
  736.      *                                         )
  737. -
  738.      *                                     ),
  739. -
  740.      *                                     'remove' => array(
  741. -
  742.      *                                         'file_limit' => array(),
  743. -
  744.      *                                         'time_limit' => array()
  745. -
  746.      *                                     ),
  747. -
  748.      *                                     'change' => array(
  749. -
  750.      *                                         'name' => array(
  751. -
  752.      *                                             'length' => '20',
  753. -
  754.      *                                             'definition' => array(
  755. -
  756.      *                                                 'type' => 'text',
  757. -
  758.      *                                                 'length' => 20,
  759. -
  760.      *                                             ),
  761. -
  762.      *                                         )
  763. -
  764.      *                                     ),
  765. -
  766.      *                                     'rename' => array(
  767. -
  768.      *                                         'sex' => array(
  769. -
  770.      *                                             'name' => 'gender',
  771. -
  772.      *                                             'definition' => array(
  773. -
  774.      *                                                 'type' => 'text',
  775. -
  776.      *                                                 'length' => 1,
  777. -
  778.      *                                                 'default' => 'M',
  779. -
  780.      *                                             ),
  781. -
  782.      *                                         )
  783. -
  784.      *                                     )
  785. -
  786.      *                                 )
  787. -
  788.      *
  789. -
  790.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  791. -
  792.      *                              can perform the requested table alterations if the value is true or
  793. -
  794.      *                              actually perform them otherwise.
  795. -
  796.      * @return void 
  797. -
  798.      */
  799. -
  800.     public function alterTable($namearray $changes$check)
  801. -
  802.     {
  803. -
  804.  
  805. -
  806.         foreach ($changes as $changeName => $change{
  807. -
  808.             switch ($changeName{
  809. -
  810.                 case 'add':
  811. -
  812.                 case 'remove':
  813. -
  814.                 case 'change':
  815. -
  816.                 case 'name':
  817. -
  818.                 case 'rename':
  819. -
  820.                     break;
  821. -
  822.                 default:
  823. -
  824.                     throw new Doctrine_Export_Exception('change type "' $changeName '" not yet supported');
  825. -
  826.             }
  827. -
  828.         }
  829. -
  830.  
  831. -
  832.         if ($check{
  833. -
  834.             return false;
  835. -
  836.         }
  837. -
  838.  
  839. -
  840.         $name $this->conn->quoteIdentifier($nametrue);
  841. -
  842.  
  843. -
  844.         if empty($changes['add']&& is_array($changes['add'])) {
  845. -
  846.             $fields array();
  847. -
  848.             foreach ($changes['add'as $fieldName => $field{
  849. -
  850.                 $fields[$this->conn->getDeclaration($field['type']$fieldName$field);
  851. -
  852.             }
  853. -
  854.             $result $this->conn->exec('ALTER TABLE ' $name ' ADD (' implode(', '$fields')');
  855. -
  856.         }
  857. -
  858.  
  859. -
  860.         if empty($changes['change']&& is_array($changes['change'])) {
  861. -
  862.             $fields array();
  863. -
  864.             foreach ($changes['change'as $fieldName => $field{
  865. -
  866.                 $fields[$fieldName' ' $this->conn->getDeclaration($field['definition']['type']''$field['definition']);
  867. -
  868.             }
  869. -
  870.             $result $this->conn->exec('ALTER TABLE ' $name ' MODIFY (' implode(', '$fields')');
  871. -
  872.         }
  873. -
  874.  
  875. -
  876.         if empty($changes['rename']&& is_array($changes['rename'])) {
  877. -
  878.             foreach ($changes['rename'as $fieldName => $field{
  879. -
  880.                 $query 'ALTER TABLE ' $name ' RENAME COLUMN ' $this->conn->quoteIdentifier($fieldNametrue)
  881. -
  882.                        . ' TO ' $this->conn->quoteIdentifier($field['name']);
  883. -
  884.  
  885. -
  886.                 $result $this->conn->exec($query);
  887. -
  888.             }
  889. -
  890.         }
  891. -
  892.  
  893. -
  894.         if empty($changes['remove']&& is_array($changes['remove'])) {
  895. -
  896.             $fields array();
  897. -
  898.             foreach ($changes['remove'as $fieldName => $field{
  899. -
  900.                 $fields[$this->conn->quoteIdentifier($fieldNametrue);
  901. -
  902.             }
  903. -
  904.             $result $this->conn->exec('ALTER TABLE ' $name ' DROP COLUMN ' implode(', '$fields));
  905. -
  906.         }
  907. -
  908.  
  909. -
  910.         if empty($changes['name'])) {
  911. -
  912.             $changeName $this->conn->quoteIdentifier($changes['name']true);
  913. -
  914.             $result $this->conn->exec('ALTER TABLE ' $name ' RENAME TO ' $changeName);
  915. -
  916.         }
  917. -
  918.     }
  919. -
  920.     /**
  921. -
  922.      * create sequence
  923. -
  924.      *
  925. -
  926.      * @param string $seqName name of the sequence to be created
  927. -
  928.      * @param string $start start value of the sequence; default is 1
  929. -
  930.      * @param array     $options  An associative array of table options:
  931. -
  932.      *                           array(
  933. -
  934.      *                               'comment' => 'Foo',
  935. -
  936.      *                               'charset' => 'utf8',
  937. -
  938.      *                               'collate' => 'utf8_unicode_ci',
  939. -
  940.      *                           );
  941. -
  942.      * @return string 
  943. -
  944.      */
  945. -
  946.     public function createSequenceSql($seqName$start 1array $options array())
  947. -
  948.     {
  949. -
  950.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  951. -
  952.         $query  'CREATE SEQUENCE ' $sequenceName ' START WITH ' $start ' INCREMENT BY 1 NOCACHE';
  953. -
  954.         $query .= ($start ' MINVALUE ' $start '');
  955. -
  956.         return $query;
  957. -
  958.     }
  959. -
  960.     /**
  961. -
  962.      * drop existing sequence
  963. -
  964.      *
  965. -
  966.      * @param object $this->conn database object that is extended by this class
  967. -
  968.      * @param string $seqName name of the sequence to be dropped
  969. -
  970.      * @return string 
  971. -
  972.      */
  973. -
  974.     public function dropSequenceSql($seqName)
  975. -
  976.     {
  977. -
  978.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  979. -
  980.         return 'DROP SEQUENCE ' $sequenceName;
  981. -
  982.     }
  983. -
  984. }
  985. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportPgsql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportPgsql.php.html deleted file mode 100644 index 30dae8e05..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportPgsql.php.html +++ /dev/null @@ -1,356 +0,0 @@ - -
-

Source for file Pgsql.php

-

Documentation is available at Pgsql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pgsql.php 2291 2007-08-29 22:03:55Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Export');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Pgsql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2291 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.    /**
  71. -
  72.      * create a new database
  73. -
  74.      *
  75. -
  76.      * @param string $name name of the database that should be created
  77. -
  78.      * @throws PDOException
  79. -
  80.      * @return void 
  81. -
  82.      */
  83. -
  84.     public function createDatabaseSql($name)
  85. -
  86.     {
  87. -
  88.         $query  'CREATE DATABASE ' $this->conn->quoteIdentifier($name);
  89. -
  90.         
  91. -
  92.         return $query;
  93. -
  94.     }
  95. -
  96.     /**
  97. -
  98.      * drop an existing database
  99. -
  100.      *
  101. -
  102.      * @param string $name name of the database that should be dropped
  103. -
  104.      * @throws PDOException
  105. -
  106.      * @access public
  107. -
  108.      */
  109. -
  110.     public function dropDatabaseSql($name)
  111. -
  112.     {
  113. -
  114.         $query  'DROP DATABASE ' $this->conn->quoteIdentifier($name);
  115. -
  116.         
  117. -
  118.         return $query;
  119. -
  120.     }
  121. -
  122.     /**
  123. -
  124.      * getAdvancedForeignKeyOptions
  125. -
  126.      * Return the FOREIGN KEY query section dealing with non-standard options
  127. -
  128.      * as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
  129. -
  130.      *
  131. -
  132.      * @param array $definition         foreign key definition
  133. -
  134.      * @return string 
  135. -
  136.      * @access protected
  137. -
  138.      */
  139. -
  140.     public function getAdvancedForeignKeyOptions(array $definition)
  141. -
  142.     {
  143. -
  144.         $query '';
  145. -
  146.         if (isset($definition['match'])) {
  147. -
  148.             $query .= ' MATCH ' $definition['match'];
  149. -
  150.         }
  151. -
  152.         if (isset($definition['onUpdate'])) {
  153. -
  154.             $query .= ' ON UPDATE ' $definition['onUpdate'];
  155. -
  156.         }
  157. -
  158.         if (isset($definition['onDelete'])) {
  159. -
  160.             $query .= ' ON DELETE ' $definition['onDelete'];
  161. -
  162.         }
  163. -
  164.         if (isset($definition['deferrable'])) {
  165. -
  166.             $query .= ' DEFERRABLE';
  167. -
  168.         else {
  169. -
  170.             $query .= ' NOT DEFERRABLE';
  171. -
  172.         }
  173. -
  174.         if (isset($definition['feferred'])) {
  175. -
  176.             $query .= ' INITIALLY DEFERRED';
  177. -
  178.         else {
  179. -
  180.             $query .= ' INITIALLY IMMEDIATE';
  181. -
  182.         }
  183. -
  184.         return $query;
  185. -
  186.     }
  187. -
  188.  
  189. -
  190.     /**
  191. -
  192.      * alter an existing table
  193. -
  194.      *
  195. -
  196.      * @param string $name         name of the table that is intended to be changed.
  197. -
  198.      * @param array $changes     associative array that contains the details of each type
  199. -
  200.      *                              of change that is intended to be performed. The types of
  201. -
  202.      *                              changes that are currently supported are defined as follows:
  203. -
  204.      *
  205. -
  206.      *                              name
  207. -
  208.      *
  209. -
  210.      *                                 New name for the table.
  211. -
  212.      *
  213. -
  214.      *                             add
  215. -
  216.      *
  217. -
  218.      *                                 Associative array with the names of fields to be added as
  219. -
  220.      *                                  indexes of the array. The value of each entry of the array
  221. -
  222.      *                                  should be set to another associative array with the properties
  223. -
  224.      *                                  of the fields to be added. The properties of the fields should
  225. -
  226.      *                                  be the same as defined by the Metabase parser.
  227. -
  228.      *
  229. -
  230.      *
  231. -
  232.      *                             remove
  233. -
  234.      *
  235. -
  236.      *                                 Associative array with the names of fields to be removed as indexes
  237. -
  238.      *                                  of the array. Currently the values assigned to each entry are ignored.
  239. -
  240.      *                                  An empty array should be used for future compatibility.
  241. -
  242.      *
  243. -
  244.      *                             rename
  245. -
  246.      *
  247. -
  248.      *                                 Associative array with the names of fields to be renamed as indexes
  249. -
  250.      *                                  of the array. The value of each entry of the array should be set to
  251. -
  252.      *                                  another associative array with the entry named name with the new
  253. -
  254.      *                                  field name and the entry named Declaration that is expected to contain
  255. -
  256.      *                                  the portion of the field declaration already in DBMS specific SQL code
  257. -
  258.      *                                  as it is used in the CREATE TABLE statement.
  259. -
  260.      *
  261. -
  262.      *                             change
  263. -
  264.      *
  265. -
  266.      *                                 Associative array with the names of the fields to be changed as indexes
  267. -
  268.      *                                  of the array. Keep in mind that if it is intended to change either the
  269. -
  270.      *                                  name of a field and any other properties, the change array entries
  271. -
  272.      *                                  should have the new names of the fields as array indexes.
  273. -
  274.      *
  275. -
  276.      *                                 The value of each entry of the array should be set to another associative
  277. -
  278.      *                                  array with the properties of the fields to that are meant to be changed as
  279. -
  280.      *                                  array entries. These entries should be assigned to the new values of the
  281. -
  282.      *                                  respective properties. The properties of the fields should be the same
  283. -
  284.      *                                  as defined by the Metabase parser.
  285. -
  286.      *
  287. -
  288.      *                             Example
  289. -
  290.      *                                 array(
  291. -
  292.      *                                     'name' => 'userlist',
  293. -
  294.      *                                     'add' => array(
  295. -
  296.      *                                         'quota' => array(
  297. -
  298.      *                                             'type' => 'integer',
  299. -
  300.      *                                             'unsigned' => 1
  301. -
  302.      *                                         )
  303. -
  304.      *                                     ),
  305. -
  306.      *                                     'remove' => array(
  307. -
  308.      *                                         'file_limit' => array(),
  309. -
  310.      *                                         'time_limit' => array()
  311. -
  312.      *                                     ),
  313. -
  314.      *                                     'change' => array(
  315. -
  316.      *                                         'name' => array(
  317. -
  318.      *                                             'length' => '20',
  319. -
  320.      *                                             'definition' => array(
  321. -
  322.      *                                                 'type' => 'text',
  323. -
  324.      *                                                 'length' => 20,
  325. -
  326.      *                                             ),
  327. -
  328.      *                                         )
  329. -
  330.      *                                     ),
  331. -
  332.      *                                     'rename' => array(
  333. -
  334.      *                                         'sex' => array(
  335. -
  336.      *                                             'name' => 'gender',
  337. -
  338.      *                                             'definition' => array(
  339. -
  340.      *                                                 'type' => 'text',
  341. -
  342.      *                                                 'length' => 1,
  343. -
  344.      *                                                 'default' => 'M',
  345. -
  346.      *                                             ),
  347. -
  348.      *                                         )
  349. -
  350.      *                                     )
  351. -
  352.      *                                 )
  353. -
  354.      *
  355. -
  356.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  357. -
  358.      *                              can perform the requested table alterations if the value is true or
  359. -
  360.      *                              actually perform them otherwise.
  361. -
  362.      * @throws Doctrine_Connection_Exception
  363. -
  364.      * @return boolean 
  365. -
  366.      */
  367. -
  368.     public function alterTable($namearray $changes$check)
  369. -
  370.     {
  371. -
  372.         foreach ($changes as $changeName => $change{
  373. -
  374.             switch ($changeName{
  375. -
  376.                 case 'add':
  377. -
  378.                 case 'remove':
  379. -
  380.                 case 'change':
  381. -
  382.                 case 'name':
  383. -
  384.                 case 'rename':
  385. -
  386.                     break;
  387. -
  388.                 default:
  389. -
  390.                     throw new Doctrine_Export_Exception('change type "' $changeName '\" not yet supported');
  391. -
  392.             }
  393. -
  394.         }
  395. -
  396.  
  397. -
  398.         if ($check{
  399. -
  400.             return true;
  401. -
  402.         }
  403. -
  404.  
  405. -
  406.         if (isset($changes['add']&& is_array($changes['add'])) {
  407. -
  408.             foreach ($changes['add'as $fieldName => $field{
  409. -
  410.                 $query 'ADD ' $this->getDeclaration($fieldName$field);
  411. -
  412.                 $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  413. -
  414.             }
  415. -
  416.         }
  417. -
  418.  
  419. -
  420.         if (isset($changes['remove']&& is_array($changes['remove'])) {
  421. -
  422.             foreach ($changes['remove'as $fieldName => $field{
  423. -
  424.                 $fieldName $this->conn->quoteIdentifier($fieldNametrue);
  425. -
  426.                 $query 'DROP ' $fieldName;
  427. -
  428.                 $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  429. -
  430.             }
  431. -
  432.         }
  433. -
  434.  
  435. -
  436.         if (isset($changes['change']&& is_array($changes['change'])) {
  437. -
  438.             foreach ($changes['change'as $fieldName => $field{
  439. -
  440.                 $fieldName $this->conn->quoteIdentifier($fieldNametrue);
  441. -
  442.                 if (isset($field['type'])) {
  443. -
  444.                     $serverInfo $this->conn->getServerVersion();
  445. -
  446.  
  447. -
  448.                     if (is_array($serverInfo&& $serverInfo['major'8{
  449. -
  450.                         throw new Doctrine_Export_Exception('changing column type for "'.$field['type'].'\" requires PostgreSQL 8.0 or above');
  451. -
  452.                     }
  453. -
  454.                     $query 'ALTER ' $fieldName ' TYPE ' $this->conn->datatype->getTypeDeclaration($field['definition']);
  455. -
  456.                     $this->conn->exec('ALTER TABLE ' $name ' ' $query);;
  457. -
  458.                 }
  459. -
  460.                 if (array_key_exists('default'$field)) {
  461. -
  462.                     $query 'ALTER ' $fieldName ' SET DEFAULT ' $this->conn->quote($field['definition']['default']$field['definition']['type']);
  463. -
  464.                     $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  465. -
  466.                 }
  467. -
  468.                 if (!empty($field['notnull'])) {
  469. -
  470.                     $query 'ALTER ' $fieldName ' ' ($field['definition']['notnull''SET' 'DROP'' NOT NULL';
  471. -
  472.                     $this->conn->exec('ALTER TABLE ' $name ' ' $query);
  473. -
  474.                 }
  475. -
  476.             }
  477. -
  478.         }
  479. -
  480.  
  481. -
  482.         if (isset($changes['rename']&& is_array($changes['rename'])) {
  483. -
  484.             foreach ($changes['rename'as $fieldName => $field{
  485. -
  486.                 $fieldName $this->conn->quoteIdentifier($fieldNametrue);
  487. -
  488.                 $this->conn->exec('ALTER TABLE ' $name ' RENAME COLUMN ' $fieldName ' TO ' $this->conn->quoteIdentifier($field['name']true));
  489. -
  490.             }
  491. -
  492.         }
  493. -
  494.  
  495. -
  496.         $name $this->conn->quoteIdentifier($nametrue);
  497. -
  498.         if (isset($changes['name'])) {
  499. -
  500.             $changeName $this->conn->quoteIdentifier($changes['name']true);
  501. -
  502.             $this->conn->exec('ALTER TABLE ' $name ' RENAME TO ' $changeName);
  503. -
  504.         }
  505. -
  506.     }
  507. -
  508.     /**
  509. -
  510.      * return RDBMS specific create sequence statement
  511. -
  512.      *
  513. -
  514.      * @throws Doctrine_Connection_Exception     if something fails at database level
  515. -
  516.      * @param string    $seqName        name of the sequence to be created
  517. -
  518.      * @param string    $start          start value of the sequence; default is 1
  519. -
  520.      * @param array     $options  An associative array of table options:
  521. -
  522.      *                           array(
  523. -
  524.      *                               'comment' => 'Foo',
  525. -
  526.      *                               'charset' => 'utf8',
  527. -
  528.      *                               'collate' => 'utf8_unicode_ci',
  529. -
  530.      *                           );
  531. -
  532.      * @return string 
  533. -
  534.      */
  535. -
  536.     public function createSequenceSql($sequenceName$start 1array $options array())
  537. -
  538.     {
  539. -
  540.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($sequenceName)true);
  541. -
  542.         return $this->conn->exec('CREATE SEQUENCE ' $sequenceName ' INCREMENT 1' .
  543. -
  544.                     ($start ' MINVALUE ' $start ''' START ' $start);
  545. -
  546.     }
  547. -
  548.     /**
  549. -
  550.      * drop existing sequence
  551. -
  552.      *
  553. -
  554.      * @param string $sequenceName name of the sequence to be dropped
  555. -
  556.      */
  557. -
  558.     public function dropSequenceSql($sequenceName)
  559. -
  560.     {
  561. -
  562.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($sequenceName)true);
  563. -
  564.         return 'DROP SEQUENCE ' $sequenceName;
  565. -
  566.     }
  567. -
  568.  
  569. -
  570.     /**
  571. -
  572.      * Creates a table.
  573. -
  574.      *
  575. -
  576.      * @param unknown_type $name 
  577. -
  578.      * @param array $fields 
  579. -
  580.      * @param array $options 
  581. -
  582.      * @return unknown 
  583. -
  584.      */
  585. -
  586.     public function createTableSql($namearray $fieldsarray $options array())
  587. -
  588.     {
  589. -
  590.         if $name{
  591. -
  592.             throw new Doctrine_Export_Exception('no valid table name specified');
  593. -
  594.         }
  595. -
  596.         
  597. -
  598.         if (empty($fields)) {
  599. -
  600.             throw new Doctrine_Export_Exception('no fields specified for table ' $name);
  601. -
  602.         }
  603. -
  604.  
  605. -
  606.         $queryFields $this->getFieldDeclarationList($fields);
  607. -
  608.  
  609. -
  610.  
  611. -
  612.         if (isset($options['primary']&& empty($options['primary'])) {
  613. -
  614.             $queryFields .= ', PRIMARY KEY(' implode(', 'array_values($options['primary'])) ')';
  615. -
  616.         }
  617. -
  618.  
  619. -
  620.         $query 'CREATE TABLE ' $this->conn->quoteIdentifier($nametrue' (' $queryFields ')';
  621. -
  622.  
  623. -
  624.         $sql[$query;
  625. -
  626.  
  627. -
  628.         if (isset($options['indexes']&& empty($options['indexes'])) {
  629. -
  630.             foreach($options['indexes'as $index => $definition{
  631. -
  632.                 $sql[$this->createIndexSql($name$index$definition);
  633. -
  634.             }
  635. -
  636.         }
  637. -
  638.         
  639. -
  640.         if (isset($options['foreignKeys'])) {
  641. -
  642.  
  643. -
  644.             foreach ((array) $options['foreignKeys'as $k => $definition{
  645. -
  646.                 if (is_array($definition)) {
  647. -
  648.                     $sql[$this->createForeignKeySql($name$definition);
  649. -
  650.                 }
  651. -
  652.             }
  653. -
  654.         }
  655. -
  656.         
  657. -
  658.         return $sql;
  659. -
  660.     }
  661. -
  662.     
  663. -
  664.     /**
  665. -
  666.      * createForeignKeySql
  667. -
  668.      *
  669. -
  670.      * @param string    $table         name of the table on which the foreign key is to be created
  671. -
  672.      * @param array     $definition    associative array that defines properties of the foreign key to be created.
  673. -
  674.      * @return string 
  675. -
  676.      */
  677. -
  678.     public function createForeignKeySql($tablearray $definition)
  679. -
  680.     {
  681. -
  682.         $table $this->conn->quoteIdentifier($table);
  683. -
  684.  
  685. -
  686.         $query 'ALTER TABLE ' $table ' ADD ' $this->getForeignKeyDeclaration($definition);
  687. -
  688.  
  689. -
  690.         return $query;
  691. -
  692.     
  693. -
  694. }
  695. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportReporter.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportReporter.php.html deleted file mode 100644 index 47b9662be..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportReporter.php.html +++ /dev/null @@ -1,53 +0,0 @@ - -
-

Source for file Reporter.php

-

Documentation is available at Reporter.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Reporter.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Reporter
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. class Doctrine_Export_Reporter implements IteratorAggregate {
  66. -
  67.     protected $messages = array();
  68. -
  69.  
  70. -
  71.     public function add($code$message{
  72. -
  73.         $this->messages[array($code$message);
  74. -
  75.     }
  76. -
  77.     public function pop({
  78. -
  79.         return array_pop($this->messages);
  80. -
  81.     }
  82. -
  83.     public function getIterator({
  84. -
  85.         return new ArrayIterator($this->messages);
  86. -
  87.     }
  88. -
  89. }
  90. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchema.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchema.php.html deleted file mode 100644 index dd1f061a1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchema.php.html +++ /dev/null @@ -1,97 +0,0 @@ - -
-

Source for file Schema.php

-

Documentation is available at Schema.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  * $Id: Schema.php 1838 2007-06-26 00:58:21Z nicobn $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Export_Schema
  46. -
  47.  *
  48. -
  49.  * Different methods to import a XML schema. The logic behind using two different
  50. -
  51.  * methods is simple. Some people will like the idea of producing Doctrine_Record
  52. -
  53.  * objects directly, which is totally fine. But in fast and growing application,
  54. -
  55.  * table definitions tend to be a little bit more volatile. importArr() can be used
  56. -
  57.  * to output a table definition in a PHP file. This file can then be stored
  58. -
  59.  * independantly from the object itself.
  60. -
  61.  *
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @version     $Revision: 1838 $
  72. -
  73.  * @author      Nicolas Bérard-Nault <nicobn@gmail.com>
  74. -
  75.  */
  76. -
  77. abstract class Doctrine_Export_Schema
  78. -
  79. {
  80. -
  81.     /**
  82. -
  83.      * build
  84. -
  85.      * 
  86. -
  87.      * Build the schema string to be dumped to file
  88. -
  89.      *
  90. -
  91.      * @param string $array 
  92. -
  93.      * @return void 
  94. -
  95.      */
  96. -
  97.     abstract function build($array);
  98. -
  99.     
  100. -
  101.     /**
  102. -
  103.      * dump
  104. -
  105.      * 
  106. -
  107.      * Dump the array to the schema file
  108. -
  109.      *
  110. -
  111.      * @param string $array 
  112. -
  113.      * @param string $schema 
  114. -
  115.      * @return void 
  116. -
  117.      */
  118. -
  119.     abstract function dump($array$schema);
  120. -
  121.     
  122. -
  123.     /**
  124. -
  125.      * buildSchema
  126. -
  127.      * 
  128. -
  129.      * Build schema array that can be dumped to file
  130. -
  131.      *
  132. -
  133.      * @param string $directory 
  134. -
  135.      * @return void 
  136. -
  137.      */
  138. -
  139.     public function buildSchema($directory)
  140. -
  141.     {
  142. -
  143.         // we need to figure out how we can build all the model information for the passed directory/directories
  144. -
  145.         return array();
  146. -
  147.     }
  148. -
  149.     
  150. -
  151.     /**
  152. -
  153.      * exportSchema
  154. -
  155.      *
  156. -
  157.      * @param string $schema 
  158. -
  159.      * @param string $directory 
  160. -
  161.      * @return void 
  162. -
  163.      */
  164. -
  165.     public function exportSchema($schema$directory)
  166. -
  167.     {
  168. -
  169.         $array $this->buildSchema($directory);
  170. -
  171.         
  172. -
  173.         $this->dump($arr$schema);
  174. -
  175.     }
  176. -
  177. }
  178. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaXml.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaXml.php.html deleted file mode 100644 index 46b4b4fb3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaXml.php.html +++ /dev/null @@ -1,87 +0,0 @@ - -
-

Source for file Xml.php

-

Documentation is available at Xml.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  * $Id: Xml.php 1838 2007-06-26 00:58:21Z nicobn $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Export_Schema_Xml
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @version     $Revision: 1838 $
  58. -
  59.  * @author      Nicolas Bérard-Nault <nicobn@gmail.com>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * build
  69. -
  70.      * 
  71. -
  72.      * Build the schema xml string to be dumped to file
  73. -
  74.      *
  75. -
  76.      * @param string $array 
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     public function build($array)
  83. -
  84.     {
  85. -
  86.         $xml new SimpleXMLElement();
  87. -
  88.         
  89. -
  90.         foreach ($array as $tableName => $fields{
  91. -
  92.             $table $xml->addChild('table');
  93. -
  94.             $name $table->addChild('name'$tableName);
  95. -
  96.             $declaration $table->addChild('declaration');
  97. -
  98.             
  99. -
  100.             foreach ($fields as $fieldName => $properties{
  101. -
  102.                 $field $declaration->addChild('field');
  103. -
  104.                 $field->addChild('name'$fieldName);
  105. -
  106.                 
  107. -
  108.                 foreach ($properties as $key => $value{
  109. -
  110.                     $field->addChild($key$value);
  111. -
  112.                 }
  113. -
  114.             }
  115. -
  116.         }
  117. -
  118.         
  119. -
  120.         return $xml->asXml();
  121. -
  122.     }
  123. -
  124.     
  125. -
  126.     /**
  127. -
  128.      * dump
  129. -
  130.      * 
  131. -
  132.      * Dump the array to the schema file
  133. -
  134.      *
  135. -
  136.      * @param string $array 
  137. -
  138.      * @param string $schema 
  139. -
  140.      * @return void 
  141. -
  142.      */
  143. -
  144.     public function dump($array$schema)
  145. -
  146.     {
  147. -
  148.         $xml $this->build($array);
  149. -
  150.         
  151. -
  152.         file_put_contents($schema$xml);
  153. -
  154.     }
  155. -
  156. }
  157. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaYml.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaYml.php.html deleted file mode 100644 index eb473a50d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSchemaYml.php.html +++ /dev/null @@ -1,70 +0,0 @@ - -
-

Source for file Yml.php

-

Documentation is available at Yml.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  * $Id: Yml.php 1838 2007-06-26 00:58:21Z nicobn $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Export_Schema_Yml
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @version     $Revision: 1838 $
  58. -
  59.  * @author      Nicolas Bérard-Nault <nicobn@gmail.com>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * build
  69. -
  70.      * 
  71. -
  72.      * Build the schema yml string to be dumped to file
  73. -
  74.      *
  75. -
  76.      * @param string $array 
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     public function build($array)
  83. -
  84.     {
  85. -
  86.         return var_dump($array);
  87. -
  88.     }
  89. -
  90.     
  91. -
  92.     /**
  93. -
  94.      * dump
  95. -
  96.      * 
  97. -
  98.      * Dump the array to the schema file
  99. -
  100.      *
  101. -
  102.      * @param string $arr 
  103. -
  104.      * @param string $schema 
  105. -
  106.      * @return void 
  107. -
  108.      */
  109. -
  110.     public function dump($arr$schema)
  111. -
  112.     {
  113. -
  114.         $yml $this->build($array);
  115. -
  116.         
  117. -
  118.         file_put_contents($schema$yml);
  119. -
  120.     }
  121. -
  122. }
  123. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSqlite.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSqlite.php.html deleted file mode 100644 index ab80e824c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExportSqlite.php.html +++ /dev/null @@ -1,336 +0,0 @@ - -
-

Source for file Sqlite.php

-

Documentation is available at Sqlite.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sqlite.php 2288 2007-08-29 21:51:49Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Export');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Export_Sqlite
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2288 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * drop an existing database
  73. -
  74.      *
  75. -
  76.      * @param string $name                  name of the database that should be dropped
  77. -
  78.      * @throws Doctrine_Export_Exception    if the database file does not exist
  79. -
  80.      * @throws Doctrine_Export_Exception    if something failed during the removal of the database file
  81. -
  82.      * @return void 
  83. -
  84.      */
  85. -
  86.     public function dropDatabase($name)
  87. -
  88.     {
  89. -
  90.         $databaseFile $this->conn->getDatabaseFile($name);
  91. -
  92.         if (!@file_exists($databaseFile)) {
  93. -
  94.             throw new Doctrine_Export_Exception('database does not exist');
  95. -
  96.         }
  97. -
  98.         $result @unlink($databaseFile);
  99. -
  100.         if $result{
  101. -
  102.             throw new Doctrine_Export_Exception('could not remove the database file');
  103. -
  104.         }
  105. -
  106.     }
  107. -
  108.  
  109. -
  110.     /**
  111. -
  112.      * Get the stucture of a field into an array
  113. -
  114.      *
  115. -
  116.      * @param string    $table         name of the table on which the index is to be created
  117. -
  118.      * @param string    $name         name of the index to be created
  119. -
  120.      * @param array     $definition        associative array that defines properties of the index to be created.
  121. -
  122.      *                                  Currently, only one property named FIELDS is supported. This property
  123. -
  124.      *                                  is also an associative with the names of the index fields as array
  125. -
  126.      *                                  indexes. Each entry of this array is set to another type of associative
  127. -
  128.      *                                  array that specifies properties of the index that are specific to
  129. -
  130.      *                                  each field.
  131. -
  132.      *
  133. -
  134.      *                                 Currently, only the sorting property is supported. It should be used
  135. -
  136.      *                                  to define the sorting direction of the index. It may be set to either
  137. -
  138.      *                                  ascending or descending.
  139. -
  140.      *
  141. -
  142.      *                                 Not all DBMS support index sorting direction configuration. The DBMS
  143. -
  144.      *                                  drivers of those that do not support it ignore this property. Use the
  145. -
  146.      *                                  function support() to determine whether the DBMS driver can manage indexes.
  147. -
  148.  
  149. -
  150.      *                                  Example
  151. -
  152.      *                                     array(
  153. -
  154.      *                                         'fields' => array(
  155. -
  156.      *                                             'user_name' => array(
  157. -
  158.      *                                                 'sorting' => 'ascending'
  159. -
  160.      *                                             ),
  161. -
  162.      *                                             'last_login' => array()
  163. -
  164.      *                                         )
  165. -
  166.      *                                     )
  167. -
  168.      * @throws PDOException
  169. -
  170.      * @return void 
  171. -
  172.      */
  173. -
  174.     public function createIndexSql($table$namearray $definition)
  175. -
  176.     {
  177. -
  178.         $table $this->conn->quoteIdentifier($tabletrue);
  179. -
  180.         $name  $this->conn->formatter->getIndexName($name);
  181. -
  182.         $query 'CREATE INDEX ' $name ' ON ' $table;
  183. -
  184.         $query .= ' (' $this->getIndexFieldDeclarationList($definition['fields']')';
  185. -
  186.  
  187. -
  188.         return $query;
  189. -
  190.     }
  191. -
  192.     /**
  193. -
  194.      * getIndexFieldDeclarationList
  195. -
  196.      * Obtain DBMS specific SQL code portion needed to set an index
  197. -
  198.      * declaration to be used in statements like CREATE TABLE.
  199. -
  200.      *
  201. -
  202.      * @return string 
  203. -
  204.      */
  205. -
  206.     public function getIndexFieldDeclarationList(array $fields)
  207. -
  208.     {
  209. -
  210.         $declFields array();
  211. -
  212.  
  213. -
  214.         foreach ($fields as $fieldName => $field{
  215. -
  216.             $fieldString $fieldName;
  217. -
  218.  
  219. -
  220.             if (is_array($field)) {
  221. -
  222.                 if (isset($field['sorting'])) {
  223. -
  224.                     $sort strtoupper($field['sorting']);
  225. -
  226.                     switch ($sort{
  227. -
  228.                         case 'ASC':
  229. -
  230.                         case 'DESC':
  231. -
  232.                             $fieldString .= ' ' $sort;
  233. -
  234.                             break;
  235. -
  236.                         default:
  237. -
  238.                             throw new Doctrine_Export_Exception('Unknown index sorting option given.');
  239. -
  240.                     }
  241. -
  242.                 }
  243. -
  244.             else {
  245. -
  246.                 $fieldString $field;
  247. -
  248.             }
  249. -
  250.             $declFields[$fieldString;
  251. -
  252.         }
  253. -
  254.         return implode(', '$declFields);
  255. -
  256.     }
  257. -
  258.     /**
  259. -
  260.      * create a new table
  261. -
  262.      *
  263. -
  264.      * @param string $name   Name of the database that should be created
  265. -
  266.      * @param array $fields  Associative array that contains the definition of each field of the new table
  267. -
  268.      *                        The indexes of the array entries are the names of the fields of the table an
  269. -
  270.      *                        the array entry values are associative arrays like those that are meant to be
  271. -
  272.      *                        passed with the field definitions to get[Type]Declaration() functions.
  273. -
  274.      *                           array(
  275. -
  276.      *                               'id' => array(
  277. -
  278.      *                                   'type' => 'integer',
  279. -
  280.      *                                   'unsigned' => 1
  281. -
  282.      *                                   'notnull' => 1
  283. -
  284.      *                                   'default' => 0
  285. -
  286.      *                               ),
  287. -
  288.      *                               'name' => array(
  289. -
  290.      *                                   'type' => 'text',
  291. -
  292.      *                                   'length' => 12
  293. -
  294.      *                               ),
  295. -
  296.      *                               'password' => array(
  297. -
  298.      *                                   'type' => 'text',
  299. -
  300.      *                                   'length' => 12
  301. -
  302.      *                               )
  303. -
  304.      *                           );
  305. -
  306.      * @param array $options  An associative array of table options:
  307. -
  308.      *
  309. -
  310.      * @return void 
  311. -
  312.      */
  313. -
  314.     public function createTableSql($namearray $fieldsarray $options array())
  315. -
  316.     {
  317. -
  318.         if $name{
  319. -
  320.             throw new Doctrine_Export_Exception('no valid table name specified');
  321. -
  322.         }
  323. -
  324.         
  325. -
  326.         if (empty($fields)) {
  327. -
  328.             throw new Doctrine_Export_Exception('no fields specified for table '.$name);
  329. -
  330.         }
  331. -
  332.         $queryFields $this->getFieldDeclarationList($fields);
  333. -
  334.         
  335. -
  336.         $autoinc false;
  337. -
  338.         foreach($fields as $field{
  339. -
  340.             if(isset($field['autoincrement']&& $field['autoincrement'|| 
  341. -
  342.               (isset($field['autoinc']&& $field['autoinc'])) {
  343. -
  344.                 $autoinc true;
  345. -
  346.                 break;
  347. -
  348.             }
  349. -
  350.         }
  351. -
  352.  
  353. -
  354.         if $autoinc && isset($options['primary']&& empty($options['primary'])) {
  355. -
  356.             $queryFields.= ', PRIMARY KEY('.implode(', 'array_values($options['primary'])).')';
  357. -
  358.         }
  359. -
  360.  
  361. -
  362.         $name  $this->conn->quoteIdentifier($nametrue);
  363. -
  364.         $sql   'CREATE TABLE ' $name ' (' $queryFields;
  365. -
  366.  
  367. -
  368.         if ($check $this->getCheckDeclaration($fields)) {
  369. -
  370.             $sql .= ', ' $check;
  371. -
  372.         }
  373. -
  374.  
  375. -
  376.         if (isset($options['checks']&& $check $this->getCheckDeclaration($options['checks'])) {
  377. -
  378.             $sql .= ', ' $check;
  379. -
  380.         }
  381. -
  382.  
  383. -
  384.         $sql .= ')';
  385. -
  386.  
  387. -
  388.         $query[$sql;
  389. -
  390.  
  391. -
  392.         if (isset($options['indexes']&& empty($options['indexes'])) {
  393. -
  394.             foreach ($options['indexes'as $index => $definition{
  395. -
  396.                 $query[$this->createIndexSql($name$index$definition);
  397. -
  398.             }
  399. -
  400.         }
  401. -
  402.         return $query;
  403. -
  404.         
  405. -
  406.         
  407. -
  408.         /**
  409. -
  410.         try {
  411. -
  412.  
  413. -
  414.             if ( ! empty($fk)) {
  415. -
  416.                 $this->conn->beginTransaction();
  417. -
  418.             }
  419. -
  420.  
  421. -
  422.             $ret   = $this->conn->exec($query);
  423. -
  424.  
  425. -
  426.             if ( ! empty($fk)) {
  427. -
  428.                 foreach ($fk as $definition) {
  429. -
  430.  
  431. -
  432.                     $query = 'CREATE TRIGGER doctrine_' . $name . '_cscd_delete '
  433. -
  434.                            . 'AFTER DELETE ON ' . $name . ' FOR EACH ROW '
  435. -
  436.                            . 'BEGIN '
  437. -
  438.                            . 'DELETE FROM ' . $definition['foreignTable'] . ' WHERE ';
  439. -
  440.  
  441. -
  442.                     $local = (array) $definition['local'];
  443. -
  444.                     foreach((array) $definition['foreign'] as $k => $field) {
  445. -
  446.                         $query .= $field . ' = old.' . $local[$k] . ';';
  447. -
  448.                     }
  449. -
  450.  
  451. -
  452.                     $query .= 'END;';
  453. -
  454.  
  455. -
  456.                     $this->conn->exec($query);
  457. -
  458.                 }
  459. -
  460.  
  461. -
  462.                 $this->conn->commit();
  463. -
  464.             }
  465. -
  466.  
  467. -
  468.  
  469. -
  470.         } catch(Doctrine_Exception $e) {
  471. -
  472.  
  473. -
  474.             $this->conn->rollback();
  475. -
  476.  
  477. -
  478.             throw $e;
  479. -
  480.         }
  481. -
  482.         */
  483. -
  484.     }
  485. -
  486.     /**
  487. -
  488.      * getAdvancedForeignKeyOptions
  489. -
  490.      * Return the FOREIGN KEY query section dealing with non-standard options
  491. -
  492.      * as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
  493. -
  494.      *
  495. -
  496.      * @param array $definition         foreign key definition
  497. -
  498.      * @return string 
  499. -
  500.      * @access protected
  501. -
  502.      */
  503. -
  504.     public function getAdvancedForeignKeyOptions(array $definition)
  505. -
  506.     {
  507. -
  508.         $query '';
  509. -
  510.         if (isset($definition['match'])) {
  511. -
  512.             $query .= ' MATCH ' $definition['match'];
  513. -
  514.         }
  515. -
  516.         if (isset($definition['onUpdate'])) {
  517. -
  518.             $query .= ' ON UPDATE ' $definition['onUpdate'];
  519. -
  520.         }
  521. -
  522.         if (isset($definition['onDelete'])) {
  523. -
  524.             $query .= ' ON DELETE ' $definition['onDelete'];
  525. -
  526.         }
  527. -
  528.         if (isset($definition['deferrable'])) {
  529. -
  530.             $query .= ' DEFERRABLE';
  531. -
  532.         else {
  533. -
  534.             $query .= ' NOT DEFERRABLE';
  535. -
  536.         }
  537. -
  538.         if (isset($definition['feferred'])) {
  539. -
  540.             $query .= ' INITIALLY DEFERRED';
  541. -
  542.         else {
  543. -
  544.             $query .= ' INITIALLY IMMEDIATE';
  545. -
  546.         }
  547. -
  548.         return $query;
  549. -
  550.     }
  551. -
  552.     /**
  553. -
  554.      * create sequence
  555. -
  556.      *
  557. -
  558.      * @param string    $seqName        name of the sequence to be created
  559. -
  560.      * @param string    $start          start value of the sequence; default is 1
  561. -
  562.      * @param array     $options  An associative array of table options:
  563. -
  564.      *                           array(
  565. -
  566.      *                               'comment' => 'Foo',
  567. -
  568.      *                               'charset' => 'utf8',
  569. -
  570.      *                               'collate' => 'utf8_unicode_ci',
  571. -
  572.      *                           );
  573. -
  574.      * @return boolean 
  575. -
  576.      */
  577. -
  578.     public function createSequence($seqName$start 1array $options array())
  579. -
  580.     {
  581. -
  582.         $sequenceName   $this->conn->quoteIdentifier($this->conn->getSequenceName($seqName)true);
  583. -
  584.         $seqcolName     $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  585. -
  586.         $query          'CREATE TABLE ' $sequenceName ' (' $seqcolName ' INTEGER PRIMARY KEY DEFAULT 0 NOT NULL)';
  587. -
  588.  
  589. -
  590.         $this->conn->exec($query);
  591. -
  592.  
  593. -
  594.         if ($start == 1{
  595. -
  596.             return true;
  597. -
  598.         }
  599. -
  600.  
  601. -
  602.         try {
  603. -
  604.             $this->conn->exec('INSERT INTO ' $sequenceName ' (' $seqcolName ') VALUES (' ($start-1')');
  605. -
  606.             return true;
  607. -
  608.         catch(Doctrine_Connection_Exception $e{
  609. -
  610.             // Handle error    
  611. -
  612.  
  613. -
  614.             try {
  615. -
  616.                 $result $db->exec('DROP TABLE ' $sequenceName);
  617. -
  618.             catch(Doctrine_Connection_Exception $e{
  619. -
  620.                 throw new Doctrine_Export_Exception('could not drop inconsistent sequence table');
  621. -
  622.             }
  623. -
  624.         }
  625. -
  626.         throw new Doctrine_Export_Exception('could not create sequence table');
  627. -
  628.     }
  629. -
  630.     /**
  631. -
  632.      * drop existing sequence
  633. -
  634.      *
  635. -
  636.      * @param string $sequenceName      name of the sequence to be dropped
  637. -
  638.      * @return string 
  639. -
  640.      */
  641. -
  642.     public function dropSequenceSql($sequenceName)
  643. -
  644.     {
  645. -
  646.         $sequenceName $this->conn->quoteIdentifier($this->conn->getSequenceName($sequenceName)true);
  647. -
  648.  
  649. -
  650.         return 'DROP TABLE ' $sequenceName;
  651. -
  652.     }
  653. -
  654. }
  655. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpression.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpression.php.html deleted file mode 100644 index 096557660..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpression.php.html +++ /dev/null @@ -1,110 +0,0 @@ - -
-

Source for file Expression.php

-

Documentation is available at Expression.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Expression.php 2283 2007-08-28 19:51:06Z jackbravo $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2283 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     protected $_expression;
  69. -
  70.     
  71. -
  72.     protected $_conn;
  73. -
  74.  
  75. -
  76.     public function __construct($expr$conn null)
  77. -
  78.     {
  79. -
  80.         $this->setExpression($expr);
  81. -
  82.         
  83. -
  84.         if ($conn !== null{
  85. -
  86.             $this->_conn = $conn;
  87. -
  88.         }
  89. -
  90.     }
  91. -
  92.  
  93. -
  94.     public function getConnection()
  95. -
  96.     {
  97. -
  98.         if isset($this->_conn)) {
  99. -
  100.             return Doctrine_Manager::connection();
  101. -
  102.         }
  103. -
  104.  
  105. -
  106.         return $this->_conn;
  107. -
  108.     }
  109. -
  110.  
  111. -
  112.     public function setExpression($clause)
  113. -
  114.     {
  115. -
  116.         $this->_expression = $this->parseClause($clause);
  117. -
  118.     }
  119. -
  120.  
  121. -
  122.     public function parseExpression($expr)
  123. -
  124.     {
  125. -
  126.         $pos  strpos($expr'(');
  127. -
  128.         if ($pos === false{
  129. -
  130.             return $expr;
  131. -
  132.         }
  133. -
  134.  
  135. -
  136.         // get the name of the function
  137. -
  138.         $name   substr($expr0$pos);
  139. -
  140.         $argStr substr($expr($pos 1)-1);
  141. -
  142.  
  143. -
  144.         // parse args
  145. -
  146.         foreach (Doctrine_Tokenizer::bracketExplode($argStr','as $arg{
  147. -
  148.            $args[$this->parseClause($arg);
  149. -
  150.         }
  151. -
  152.  
  153. -
  154.         return call_user_func_array(array($this->getConnection()->expression$name)$args);
  155. -
  156.     }
  157. -
  158.  
  159. -
  160.     public function parseClause($clause)
  161. -
  162.     {
  163. -
  164.         $e Doctrine_Tokenizer::bracketExplode($clause' ');
  165. -
  166.  
  167. -
  168.         foreach ($e as $k => $expr{
  169. -
  170.             $e[$k$this->parseExpression($expr);
  171. -
  172.         }
  173. -
  174.         
  175. -
  176.         return implode(' '$e);
  177. -
  178.     }
  179. -
  180.  
  181. -
  182.     public function getSql()
  183. -
  184.     {
  185. -
  186.  
  187. -
  188.         return $this->_expression;
  189. -
  190.     }
  191. -
  192.  
  193. -
  194.     public function __toString()
  195. -
  196.     {
  197. -
  198.         return $this->getSql();
  199. -
  200.     }
  201. -
  202. }
  203. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionDriver.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionDriver.php.html deleted file mode 100644 index 598701c76..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionDriver.php.html +++ /dev/null @@ -1,719 +0,0 @@ - -
-

Source for file Driver.php

-

Documentation is available at Driver.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Driver
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function getIdentifier($column)
  69. -
  70.     {
  71. -
  72.         return $column;
  73. -
  74.     }
  75. -
  76.     public function getIdentifiers($columns)
  77. -
  78.     {
  79. -
  80.         return $columns;
  81. -
  82.     }
  83. -
  84.     /**
  85. -
  86.      * regexp
  87. -
  88.      * returns the regular expression operator
  89. -
  90.      *
  91. -
  92.      * @return string 
  93. -
  94.      */
  95. -
  96.     public function regexp()
  97. -
  98.     {
  99. -
  100.         throw new Doctrine_Expression_Exception('Regular expression operator is not supported by this database driver.');
  101. -
  102.     }
  103. -
  104.     /**
  105. -
  106.      * Returns the average value of a column
  107. -
  108.      *
  109. -
  110.      * @param string $column    the column to use
  111. -
  112.      * @return string           generated sql including an AVG aggregate function
  113. -
  114.      */
  115. -
  116.     public function avg($column)
  117. -
  118.     {
  119. -
  120.         $column $this->getIdentifier($column);
  121. -
  122.         return 'AVG(' .  $column ')';
  123. -
  124.     }
  125. -
  126.  
  127. -
  128.     /**
  129. -
  130.      * Returns the number of rows (without a NULL value) of a column
  131. -
  132.      *
  133. -
  134.      * If a '*' is used instead of a column the number of selected rows
  135. -
  136.      * is returned.
  137. -
  138.      *
  139. -
  140.      * @param string|integer$column    the column to use
  141. -
  142.      * @return string                   generated sql including a COUNT aggregate function
  143. -
  144.      */
  145. -
  146.     public function count($column)
  147. -
  148.     {
  149. -
  150.         $column $this->getIdentifier($column);
  151. -
  152.         return 'COUNT(' $column ')';
  153. -
  154.     }
  155. -
  156.  
  157. -
  158.     /**
  159. -
  160.      * Returns the highest value of a column
  161. -
  162.      *
  163. -
  164.      * @param string $column    the column to use
  165. -
  166.      * @return string           generated sql including a MAX aggregate function
  167. -
  168.      */
  169. -
  170.     public function max($column)
  171. -
  172.     {
  173. -
  174.         $column $this->getIdentifier($column);
  175. -
  176.         return 'MAX(' $column ')';
  177. -
  178.     }
  179. -
  180.  
  181. -
  182.     /**
  183. -
  184.      * Returns the lowest value of a column
  185. -
  186.      *
  187. -
  188.      * @param string $column the column to use
  189. -
  190.      * @return string 
  191. -
  192.      */
  193. -
  194.     public function min($column)
  195. -
  196.     {
  197. -
  198.         $column $this->getIdentifier($column);
  199. -
  200.         return 'MIN(' $column ')';
  201. -
  202.     }
  203. -
  204.  
  205. -
  206.     /**
  207. -
  208.      * Returns the total sum of a column
  209. -
  210.      *
  211. -
  212.      * @param string $column the column to use
  213. -
  214.      * @return string 
  215. -
  216.      */
  217. -
  218.     public function sum($column)
  219. -
  220.     {
  221. -
  222.         $column $this->getIdentifier($column);
  223. -
  224.         return 'SUM(' $column ')';
  225. -
  226.     }
  227. -
  228.  
  229. -
  230.     // scalar functions
  231. -
  232.  
  233. -
  234.     /**
  235. -
  236.      * Returns the md5 sum of a field.
  237. -
  238.      *
  239. -
  240.      * Note: Not SQL92, but common functionality
  241. -
  242.      *
  243. -
  244.      * @return string 
  245. -
  246.      */
  247. -
  248.     public function md5($column)
  249. -
  250.     {
  251. -
  252.         $column $this->getIdentifier($column);
  253. -
  254.         return 'MD5(' $column ')';
  255. -
  256.     }
  257. -
  258.  
  259. -
  260.     /**
  261. -
  262.      * Returns the length of a text field.
  263. -
  264.      *
  265. -
  266.      * @param string $expression1 
  267. -
  268.      * @param string $expression2 
  269. -
  270.      * @return string 
  271. -
  272.      */
  273. -
  274.     public function length($column)
  275. -
  276.     {
  277. -
  278.         $column $this->getIdentifier($column);
  279. -
  280.         return 'LENGTH(' $column ')';
  281. -
  282.     }
  283. -
  284.  
  285. -
  286.     /**
  287. -
  288.      * Rounds a numeric field to the number of decimals specified.
  289. -
  290.      *
  291. -
  292.      * @param string $expression1 
  293. -
  294.      * @param string $expression2 
  295. -
  296.      * @return string 
  297. -
  298.      */
  299. -
  300.     public function round($column$decimals 0)
  301. -
  302.     {
  303. -
  304.         $column $this->getIdentifier($column);
  305. -
  306.  
  307. -
  308.         return 'ROUND(' $column ', ' $decimals ')';
  309. -
  310.     }
  311. -
  312.  
  313. -
  314.     /**
  315. -
  316.      * Returns the remainder of the division operation
  317. -
  318.      * $expression1 / $expression2.
  319. -
  320.      *
  321. -
  322.      * @param string $expression1 
  323. -
  324.      * @param string $expression2 
  325. -
  326.      * @return string 
  327. -
  328.      */
  329. -
  330.     public function mod($expression1$expression2)
  331. -
  332.     {
  333. -
  334.         $expression1 $this->getIdentifier($expression1);
  335. -
  336.         $expression2 $this->getIdentifier($expression2);
  337. -
  338.         return 'MOD(' $expression1 ', ' $expression2 ')';
  339. -
  340.     }
  341. -
  342.  
  343. -
  344.     /**
  345. -
  346.      * trim
  347. -
  348.      * returns the string $str with leading and proceeding space characters removed
  349. -
  350.      *
  351. -
  352.      * @param string $str       literal string or column name
  353. -
  354.      * @return string 
  355. -
  356.      */
  357. -
  358.     public function trim($str)
  359. -
  360.     {
  361. -
  362.         return 'TRIM(' $str ')';
  363. -
  364.     }
  365. -
  366.  
  367. -
  368.     /**
  369. -
  370.      * rtrim
  371. -
  372.      * returns the string $str with proceeding space characters removed
  373. -
  374.      *
  375. -
  376.      * @param string $str       literal string or column name
  377. -
  378.      * @return string 
  379. -
  380.      */
  381. -
  382.     public function rtrim($str)
  383. -
  384.     {
  385. -
  386.         return 'RTRIM(' $str ')';
  387. -
  388.     }
  389. -
  390.  
  391. -
  392.     /**
  393. -
  394.      * ltrim
  395. -
  396.      * returns the string $str with leading space characters removed
  397. -
  398.      *
  399. -
  400.      * @param string $str       literal string or column name
  401. -
  402.      * @return string 
  403. -
  404.      */
  405. -
  406.     public function ltrim($str)
  407. -
  408.     {
  409. -
  410.         return 'LTRIM(' $str ')';
  411. -
  412.     }
  413. -
  414.     /**
  415. -
  416.      * upper
  417. -
  418.      * Returns the string $str with all characters changed to
  419. -
  420.      * uppercase according to the current character set mapping.
  421. -
  422.      *
  423. -
  424.      * @param string $str       literal string or column name
  425. -
  426.      * @return string 
  427. -
  428.      */
  429. -
  430.     public function upper($str)
  431. -
  432.     {
  433. -
  434.         return 'UPPER(' $str ')';
  435. -
  436.     }
  437. -
  438.     /**
  439. -
  440.      * lower
  441. -
  442.      * Returns the string $str with all characters changed to
  443. -
  444.      * lowercase according to the current character set mapping.
  445. -
  446.      *
  447. -
  448.      * @param string $str       literal string or column name
  449. -
  450.      * @return string 
  451. -
  452.      */
  453. -
  454.     public function lower($str)
  455. -
  456.     {
  457. -
  458.         return 'LOWER(' $str ')';
  459. -
  460.     }
  461. -
  462.     /**
  463. -
  464.      * locate
  465. -
  466.      * returns the position of the first occurrence of substring $substr in string $str
  467. -
  468.      *
  469. -
  470.      * @param string $substr    literal string to find
  471. -
  472.      * @param string $str       literal string
  473. -
  474.      * @return integer 
  475. -
  476.      */
  477. -
  478.     public function locate($str$substr)
  479. -
  480.     {
  481. -
  482.         return 'LOCATE(' $str ', ' $substr ')';
  483. -
  484.     }
  485. -
  486.     /**
  487. -
  488.      * Returns the current system date.
  489. -
  490.      *
  491. -
  492.      * @return string 
  493. -
  494.      */
  495. -
  496.     public function now()
  497. -
  498.     {
  499. -
  500.         return 'NOW()';
  501. -
  502.     }
  503. -
  504.     /**
  505. -
  506.      * soundex
  507. -
  508.      * Returns a string to call a function to compute the
  509. -
  510.      * soundex encoding of a string
  511. -
  512.      *
  513. -
  514.      * The string "?000" is returned if the argument is NULL.
  515. -
  516.      *
  517. -
  518.      * @param string $value 
  519. -
  520.      * @return string   SQL soundex function with given parameter
  521. -
  522.      */
  523. -
  524.     public function soundex($value)
  525. -
  526.     {
  527. -
  528.         throw new Doctrine_Expression_Exception('SQL soundex function not supported by this driver.');
  529. -
  530.     }
  531. -
  532.     /**
  533. -
  534.      * return string to call a function to get a substring inside an SQL statement
  535. -
  536.      *
  537. -
  538.      * Note: Not SQL92, but common functionality.
  539. -
  540.      *
  541. -
  542.      * SQLite only supports the 2 parameter variant of this function
  543. -
  544.      *
  545. -
  546.      * @param string $value         an sql string literal or column name/alias
  547. -
  548.      * @param integer $position     where to start the substring portion
  549. -
  550.      * @param integer $length       the substring portion length
  551. -
  552.      * @return string               SQL substring function with given parameters
  553. -
  554.      */
  555. -
  556.     public function substring($value$from$len null)
  557. -
  558.     {
  559. -
  560.         $value $this->getIdentifier($value);
  561. -
  562.         if ($len === null)
  563. -
  564.             return 'SUBSTRING(' $value ' FROM ' $from ')';
  565. -
  566.         else {
  567. -
  568.             $len $this->getIdentifier($len);
  569. -
  570.             return 'SUBSTRING(' $value ' FROM ' $from ' FOR ' $len ')';
  571. -
  572.         }
  573. -
  574.     }
  575. -
  576.     /**
  577. -
  578.      * Returns a series of strings concatinated
  579. -
  580.      *
  581. -
  582.      * concat() accepts an arbitrary number of parameters. Each parameter
  583. -
  584.      * must contain an expression or an array with expressions.
  585. -
  586.      *
  587. -
  588.      * @param string|array(string)strings that will be concatinated.
  589. -
  590.      */
  591. -
  592.     public function concat()
  593. -
  594.     {
  595. -
  596.         $args func_get_args();
  597. -
  598.  
  599. -
  600.         return 'CONCAT(' join(', '(array) $args')';
  601. -
  602.     }
  603. -
  604.     /**
  605. -
  606.      * Returns the SQL for a logical not.
  607. -
  608.      *
  609. -
  610.      * Example:
  611. -
  612.      * <code>
  613. -
  614.      * $q = new Doctrine_Query();
  615. -
  616.      * $e = $q->expr;
  617. -
  618.      * $q->select('*')->from('table')
  619. -
  620.      *   ->where($e->eq('id', $e->not('null'));
  621. -
  622.      * </code>
  623. -
  624.      *
  625. -
  626.      * @return string a logical expression
  627. -
  628.      */
  629. -
  630.     public function not($expression)
  631. -
  632.     {
  633. -
  634.         $expression $this->getIdentifier($expression);
  635. -
  636.         return 'NOT(' $expression ')';
  637. -
  638.     }
  639. -
  640.     /**
  641. -
  642.      * Returns the SQL to perform the same mathematical operation over an array
  643. -
  644.      * of values or expressions.
  645. -
  646.      *
  647. -
  648.      * basicMath() accepts an arbitrary number of parameters. Each parameter
  649. -
  650.      * must contain a value or an expression or an array with values or
  651. -
  652.      * expressions.
  653. -
  654.      *
  655. -
  656.      * @param string $type the type of operation, can be '+', '-', '*' or '/'.
  657. -
  658.      * @param string|array(string)
  659. -
  660.      * @return string an expression
  661. -
  662.      */
  663. -
  664.     private function basicMath($typearray $args)
  665. -
  666.     {
  667. -
  668.         $elements $this->getIdentifiers($args);
  669. -
  670.         if (count($elements1{
  671. -
  672.             return '';
  673. -
  674.         }
  675. -
  676.         if (count($elements== 1{
  677. -
  678.             return $elements[0];
  679. -
  680.         else {
  681. -
  682.             return '(' implode(' ' $type ' '$elements')';
  683. -
  684.         }
  685. -
  686.     }
  687. -
  688.     /**
  689. -
  690.      * Returns the SQL to add values or expressions together.
  691. -
  692.      *
  693. -
  694.      * add() accepts an arbitrary number of parameters. Each parameter
  695. -
  696.      * must contain a value or an expression or an array with values or
  697. -
  698.      * expressions.
  699. -
  700.      *
  701. -
  702.      * Example:
  703. -
  704.      * <code>
  705. -
  706.      * $q = new Doctrine_Query();
  707. -
  708.      * $e = $q->expr;
  709. -
  710.      *
  711. -
  712.      * $q->select('u.*')
  713. -
  714.      *   ->from('User u')
  715. -
  716.      *   ->where($e->eq($e->add('id', 2), 12));
  717. -
  718.      * </code>
  719. -
  720.      *
  721. -
  722.      * @param string|array(string)
  723. -
  724.      * @return string an expression
  725. -
  726.      */
  727. -
  728.     public function add(array $args)
  729. -
  730.     {
  731. -
  732.         return $this->basicMath('+'$args);
  733. -
  734.     
  735. -
  736.  
  737. -
  738.     /**
  739. -
  740.      * Returns the SQL to subtract values or expressions from eachother.
  741. -
  742.      *
  743. -
  744.      * subtract() accepts an arbitrary number of parameters. Each parameter
  745. -
  746.      * must contain a value or an expression or an array with values or
  747. -
  748.      * expressions.
  749. -
  750.      *
  751. -
  752.      * Example:
  753. -
  754.      * <code>
  755. -
  756.      * $q = new Doctrine_Query();
  757. -
  758.      * $e = $q->expr;
  759. -
  760.      *
  761. -
  762.      * $q->select('u.*')
  763. -
  764.      *   ->from('User u')
  765. -
  766.      *   ->where($e->eq($e->sub('id', 2), 12));
  767. -
  768.      * </code>
  769. -
  770.      *
  771. -
  772.      * @param string|array(string)
  773. -
  774.      * @return string an expression
  775. -
  776.      */
  777. -
  778.     public function sub(array $args)
  779. -
  780.     {
  781. -
  782.         return $this->basicMath('-'$args );
  783. -
  784.     
  785. -
  786.  
  787. -
  788.     /**
  789. -
  790.      * Returns the SQL to multiply values or expressions by eachother.
  791. -
  792.      *
  793. -
  794.      * multiply() accepts an arbitrary number of parameters. Each parameter
  795. -
  796.      * must contain a value or an expression or an array with values or
  797. -
  798.      * expressions.
  799. -
  800.      *
  801. -
  802.      * Example:
  803. -
  804.      * <code>
  805. -
  806.      * $q = new Doctrine_Query();
  807. -
  808.      * $e = $q->expr;
  809. -
  810.      *
  811. -
  812.      * $q->select('u.*')
  813. -
  814.      *   ->from('User u')
  815. -
  816.      *   ->where($e->eq($e->mul('id', 2), 12));
  817. -
  818.      * </code>
  819. -
  820.      *
  821. -
  822.      * @param string|array(string)
  823. -
  824.      * @return string an expression
  825. -
  826.      */
  827. -
  828.     public function mul(array $args)
  829. -
  830.     {
  831. -
  832.         return $this->basicMath('*'$args);
  833. -
  834.     
  835. -
  836.  
  837. -
  838.     /**
  839. -
  840.      * Returns the SQL to divide values or expressions by eachother.
  841. -
  842.      *
  843. -
  844.      * divide() accepts an arbitrary number of parameters. Each parameter
  845. -
  846.      * must contain a value or an expression or an array with values or
  847. -
  848.      * expressions.
  849. -
  850.      *
  851. -
  852.      * Example:
  853. -
  854.      * <code>
  855. -
  856.      * $q = new Doctrine_Query();
  857. -
  858.      * $e = $q->expr;
  859. -
  860.      *
  861. -
  862.      * $q->select('u.*')
  863. -
  864.      *   ->from('User u')
  865. -
  866.      *   ->where($e->eq($e->div('id', 2), 12));
  867. -
  868.      * </code>
  869. -
  870.      *
  871. -
  872.      * @param string|array(string)
  873. -
  874.      * @return string an expression
  875. -
  876.      */
  877. -
  878.     public function div(array $args)
  879. -
  880.     {
  881. -
  882.         return $this->basicMath('/'$args);
  883. -
  884.     
  885. -
  886.  
  887. -
  888.     /**
  889. -
  890.      * Returns the SQL to check if two values are equal.
  891. -
  892.      *
  893. -
  894.      * Example:
  895. -
  896.      * <code>
  897. -
  898.      * $q = new Doctrine_Query();
  899. -
  900.      * $q->select('u.*')
  901. -
  902.      *   ->from('User u')
  903. -
  904.      *   ->where($q->expr->eq('id', 1));
  905. -
  906.      * </code>
  907. -
  908.      *
  909. -
  910.      * @param string $value1 logical expression to compare
  911. -
  912.      * @param string $value2 logical expression to compare with
  913. -
  914.      * @return string logical expression
  915. -
  916.      */
  917. -
  918.     public function eq($value1$value2)
  919. -
  920.     {
  921. -
  922.         $value1 $this->getIdentifier($value1);
  923. -
  924.         $value2 $this->getIdentifier($value2);
  925. -
  926.         return $value1 ' = ' $value2;
  927. -
  928.     }
  929. -
  930.  
  931. -
  932.     /**
  933. -
  934.      * Returns the SQL to check if two values are unequal.
  935. -
  936.      *
  937. -
  938.      * Example:
  939. -
  940.      * <code>
  941. -
  942.      * $q = new Doctrine_Query();
  943. -
  944.      * $q->select('u.*')
  945. -
  946.      *   ->from('User u')
  947. -
  948.      *   ->where($q->expr->neq('id', 1));
  949. -
  950.      * </code>
  951. -
  952.      *
  953. -
  954.      * @param string $value1 logical expression to compare
  955. -
  956.      * @param string $value2 logical expression to compare with
  957. -
  958.      * @return string logical expression
  959. -
  960.      */
  961. -
  962.     public function neq($value1$value2)
  963. -
  964.     {
  965. -
  966.         $value1 $this->getIdentifier($value1);
  967. -
  968.         $value2 $this->getIdentifier($value2);
  969. -
  970.         return $value1 ' <> ' $value2;
  971. -
  972.     }
  973. -
  974.  
  975. -
  976.     /**
  977. -
  978.      * Returns the SQL to check if one value is greater than another value.
  979. -
  980.      *
  981. -
  982.      * Example:
  983. -
  984.      * <code>
  985. -
  986.      * $q = new Doctrine_Query();
  987. -
  988.      * $q->select('u.*')
  989. -
  990.      *   ->from('User u')
  991. -
  992.      *   ->where($q->expr->gt('id', 1));
  993. -
  994.      * </code>
  995. -
  996.      *
  997. -
  998.      * @param string $value1 logical expression to compare
  999. -
  1000.      * @param string $value2 logical expression to compare with
  1001. -
  1002.      * @return string logical expression
  1003. -
  1004.      */
  1005. -
  1006.     public function gt($value1$value2)
  1007. -
  1008.     {
  1009. -
  1010.         $value1 $this->getIdentifier($value1);
  1011. -
  1012.         $value2 $this->getIdentifier($value2);
  1013. -
  1014.         return $value1 ' > ' $value2;
  1015. -
  1016.     }
  1017. -
  1018.  
  1019. -
  1020.     /**
  1021. -
  1022.      * Returns the SQL to check if one value is greater than or equal to
  1023. -
  1024.      * another value.
  1025. -
  1026.      *
  1027. -
  1028.      * Example:
  1029. -
  1030.      * <code>
  1031. -
  1032.      * $q = new Doctrine_Query();
  1033. -
  1034.      * $q->select('u.*')
  1035. -
  1036.      *   ->from('User u')
  1037. -
  1038.      *   ->where($q->expr->gte('id', 1));
  1039. -
  1040.      * </code>
  1041. -
  1042.      *
  1043. -
  1044.      * @param string $value1 logical expression to compare
  1045. -
  1046.      * @param string $value2 logical expression to compare with
  1047. -
  1048.      * @return string logical expression
  1049. -
  1050.      */
  1051. -
  1052.     public function gte($value1$value2)
  1053. -
  1054.     {
  1055. -
  1056.         $value1 $this->getIdentifier($value1);
  1057. -
  1058.         $value2 $this->getIdentifier($value2);
  1059. -
  1060.         return $value1 ' >= ' $value2;
  1061. -
  1062.     }
  1063. -
  1064.  
  1065. -
  1066.     /**
  1067. -
  1068.      * Returns the SQL to check if one value is less than another value.
  1069. -
  1070.      *
  1071. -
  1072.      * Example:
  1073. -
  1074.      * <code>
  1075. -
  1076.      * $q = new Doctrine_Query();
  1077. -
  1078.      * $q->select('u.*')
  1079. -
  1080.      *   ->from('User u')
  1081. -
  1082.      *   ->where($q->expr->lt('id', 1));
  1083. -
  1084.      * </code>
  1085. -
  1086.      *
  1087. -
  1088.      * @param string $value1        logical expression to compare
  1089. -
  1090.      * @param string $value2        logical expression to compare with
  1091. -
  1092.      * @return string logical expression
  1093. -
  1094.      */
  1095. -
  1096.     public function lt($value1$value2)
  1097. -
  1098.     {
  1099. -
  1100.         $value1 $this->getIdentifier($value1);
  1101. -
  1102.         $value2 $this->getIdentifier($value2);
  1103. -
  1104.         return $value1 ' < ' $value2;
  1105. -
  1106.     }
  1107. -
  1108.  
  1109. -
  1110.     /**
  1111. -
  1112.      * Returns the SQL to check if one value is less than or equal to
  1113. -
  1114.      * another value.
  1115. -
  1116.      *
  1117. -
  1118.      * Example:
  1119. -
  1120.      * <code>
  1121. -
  1122.      * $q = new Doctrine_Query();
  1123. -
  1124.      * $q->select('u.*')
  1125. -
  1126.      *   ->from('User u')
  1127. -
  1128.      *   ->where($q->expr->lte('id', 1));
  1129. -
  1130.      * </code>
  1131. -
  1132.      *
  1133. -
  1134.      * @param string $value1        logical expression to compare
  1135. -
  1136.      * @param string $value2        logical expression to compare with
  1137. -
  1138.      * @return string logical expression
  1139. -
  1140.      */
  1141. -
  1142.     public function lte($value1$value2)
  1143. -
  1144.     {
  1145. -
  1146.         $value1 $this->getIdentifier($value1);
  1147. -
  1148.         $value2 $this->getIdentifier($value2);
  1149. -
  1150.         return $value1 ' <= ' $value2;
  1151. -
  1152.     }
  1153. -
  1154.  
  1155. -
  1156.     /**
  1157. -
  1158.      * Returns the SQL to check if a value is one in a set of
  1159. -
  1160.      * given values..
  1161. -
  1162.      *
  1163. -
  1164.      * in() accepts an arbitrary number of parameters. The first parameter
  1165. -
  1166.      * must always specify the value that should be matched against. Successive
  1167. -
  1168.      * must contain a logical expression or an array with logical expressions.
  1169. -
  1170.      * These expressions will be matched against the first parameter.
  1171. -
  1172.      *
  1173. -
  1174.      * Example:
  1175. -
  1176.      * <code>
  1177. -
  1178.      * $q = new Doctrine_Query();
  1179. -
  1180.      * $q->select('u.*')
  1181. -
  1182.      *   ->from('User u')
  1183. -
  1184.      *   ->where($q->expr->in( 'id', array(1,2,3)));
  1185. -
  1186.      * </code>
  1187. -
  1188.      *
  1189. -
  1190.      * @param string $column        the value that should be matched against
  1191. -
  1192.      * @param string|array(string) values that will be matched against $column
  1193. -
  1194.      * @return string logical expression
  1195. -
  1196.      */
  1197. -
  1198.     public function in($column$values)
  1199. -
  1200.     {
  1201. -
  1202.         if is_array($values)) {
  1203. -
  1204.             $values array($values);
  1205. -
  1206.         }
  1207. -
  1208.         $values $this->getIdentifiers($values);
  1209. -
  1210.         $column $this->getIdentifier($column);
  1211. -
  1212.  
  1213. -
  1214.         if (count($values== 0{
  1215. -
  1216.             throw new Doctrine_Expression_Exception('Values array for IN operator should not be empty.');
  1217. -
  1218.         }
  1219. -
  1220.         return $column ' IN (' implode(', '$values')';
  1221. -
  1222.     }
  1223. -
  1224.     /**
  1225. -
  1226.      * Returns SQL that checks if a expression is null.
  1227. -
  1228.      *
  1229. -
  1230.      * Example:
  1231. -
  1232.      * <code>
  1233. -
  1234.      * $q = new Doctrine_Query();
  1235. -
  1236.      * $q->select('u.*')
  1237. -
  1238.      *   ->from('User u')
  1239. -
  1240.      *   ->where($q->expr->isNull('id'));
  1241. -
  1242.      * </code>
  1243. -
  1244.      *
  1245. -
  1246.      * @param string $expression the expression that should be compared to null
  1247. -
  1248.      * @return string logical expression
  1249. -
  1250.      */
  1251. -
  1252.     public function isNull($expression)
  1253. -
  1254.     {
  1255. -
  1256.         $expression $this->getIdentifier($expression);
  1257. -
  1258.         return $expression ' IS NULL';
  1259. -
  1260.     }
  1261. -
  1262.     /**
  1263. -
  1264.      * Returns SQL that checks if a expression is not null.
  1265. -
  1266.      *
  1267. -
  1268.      * Example:
  1269. -
  1270.      * <code>
  1271. -
  1272.      * $q = new Doctrine_Query();
  1273. -
  1274.      * $q->select('u.*')
  1275. -
  1276.      *   ->from('User u')
  1277. -
  1278.      *   ->where($q->expr->isNotNull('id'));
  1279. -
  1280.      * </code>
  1281. -
  1282.      *
  1283. -
  1284.      * @param string $expression the expression that should be compared to null
  1285. -
  1286.      * @return string logical expression
  1287. -
  1288.      */
  1289. -
  1290.     public function isNotNull($expression)
  1291. -
  1292.     {
  1293. -
  1294.         $expression $this->getIdentifier($expression);
  1295. -
  1296.         return $expression ' IS NOT NULL';
  1297. -
  1298.     }
  1299. -
  1300.     /**
  1301. -
  1302.      * Returns SQL that checks if an expression evaluates to a value between
  1303. -
  1304.      * two values.
  1305. -
  1306.      *
  1307. -
  1308.      * The parameter $expression is checked if it is between $value1 and $value2.
  1309. -
  1310.      *
  1311. -
  1312.      * Note: There is a slight difference in the way BETWEEN works on some databases.
  1313. -
  1314.      * http://www.w3schools.com/sql/sql_between.asp. If you want complete database
  1315. -
  1316.      * independence you should avoid using between().
  1317. -
  1318.      *
  1319. -
  1320.      * Example:
  1321. -
  1322.      * <code>
  1323. -
  1324.      * $q = new Doctrine_Query();
  1325. -
  1326.      * $q->select('u.*')
  1327. -
  1328.      *   ->from('User u')
  1329. -
  1330.      *   ->where($q->expr->between('id', 1, 5));
  1331. -
  1332.      * </code>
  1333. -
  1334.      *
  1335. -
  1336.      * @param string $expression the value to compare to
  1337. -
  1338.      * @param string $value1 the lower value to compare with
  1339. -
  1340.      * @param string $value2 the higher value to compare with
  1341. -
  1342.      * @return string logical expression
  1343. -
  1344.      */
  1345. -
  1346.     public function between($expression$value1$value2)
  1347. -
  1348.     {
  1349. -
  1350.         $expression $this->getIdentifier($expression);
  1351. -
  1352.         $value1 $this->getIdentifier($value1);
  1353. -
  1354.         $value2 $this->getIdentifier($value2);
  1355. -
  1356.         return $expression ' BETWEEN ' .$value1 ' AND ' $value2;
  1357. -
  1358.     }
  1359. -
  1360.     /**
  1361. -
  1362.      * Returns global unique identifier
  1363. -
  1364.      *
  1365. -
  1366.      * @return string to get global unique identifier
  1367. -
  1368.      */
  1369. -
  1370.     public function guid()
  1371. -
  1372.     {
  1373. -
  1374.         throw new Doctrine_Expression_Exception('method not implemented');
  1375. -
  1376.     }
  1377. -
  1378.     /**
  1379. -
  1380.      * returns arcus cosine SQL string
  1381. -
  1382.      *
  1383. -
  1384.      * @return string 
  1385. -
  1386.      */
  1387. -
  1388.     public function acos($value)
  1389. -
  1390.     {
  1391. -
  1392.         return 'ACOS(' $value ')';
  1393. -
  1394.     }
  1395. -
  1396.     /**
  1397. -
  1398.      * __call
  1399. -
  1400.      *
  1401. -
  1402.      * for all native RDBMS functions the function name itself is returned
  1403. -
  1404.      */
  1405. -
  1406.     public function __call($m$a
  1407. -
  1408.     {
  1409. -
  1410.         if ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_EXPR{
  1411. -
  1412.             throw new Doctrine_Expression_Exception('Unknown expression ' $m);
  1413. -
  1414.         }
  1415. -
  1416.         return $m '(' implode(', '$a')';
  1417. -
  1418.     }
  1419. -
  1420. }
  1421. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionException.php.html deleted file mode 100644 index 8a976321d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionFirebird.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionFirebird.php.html deleted file mode 100644 index 22b11ef93..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionFirebird.php.html +++ /dev/null @@ -1,64 +0,0 @@ - -
-

Source for file Firebird.php

-

Documentation is available at Firebird.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Firebird.php 1917 2007-07-01 11:27:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Expression_Driver');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Firebird
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1917 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  * @author      Lorenzo Alberton <l.alberton@quipo.it> (PEAR MDB2 Interbase driver)
  64. -
  65.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * return string for internal table used when calling only a function
  75. -
  76.      *
  77. -
  78.      * @return string for internal table used when calling only a function
  79. -
  80.      * @access public
  81. -
  82.      */
  83. -
  84.     public function functionTable()
  85. -
  86.     {
  87. -
  88.         return ' FROM RDB$DATABASE';
  89. -
  90.     }
  91. -
  92.     /**
  93. -
  94.      * build string to define escape pattern string
  95. -
  96.      *
  97. -
  98.      * @return string define escape pattern
  99. -
  100.      */
  101. -
  102.     function patternEscapeString()
  103. -
  104.     {
  105. -
  106.         return " ESCAPE '"$this->conn->string_quoting['escape_pattern'."'";
  107. -
  108.     }
  109. -
  110. }
  111. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionInformix.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionInformix.php.html deleted file mode 100644 index c24380834..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionInformix.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Informix.php

-

Documentation is available at Informix.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Informix.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Expression');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Informix
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMock.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMock.php.html deleted file mode 100644 index 37856bf2c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMock.php.html +++ /dev/null @@ -1,43 +0,0 @@ - -
-

Source for file Mock.php

-

Documentation is available at Mock.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Mock
  46. -
  47.  * Mock driver that is used for testing purposes
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision$
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. }
  69. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMssql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMssql.php.html deleted file mode 100644 index 87e4afb51..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMssql.php.html +++ /dev/null @@ -1,97 +0,0 @@ - -
-

Source for file Mssql.php

-

Documentation is available at Mssql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mssql.php 1917 2007-07-01 11:27:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Expression_Driver');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Mssql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1917 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Return string to call a variable with the current timestamp inside an SQL statement
  71. -
  72.      * There are three special variables for current date and time:
  73. -
  74.      * - CURRENT_TIMESTAMP (date and time, TIMESTAMP type)
  75. -
  76.      * - CURRENT_DATE (date, DATE type)
  77. -
  78.      * - CURRENT_TIME (time, TIME type)
  79. -
  80.      *
  81. -
  82.      * @return string to call a variable with the current timestamp
  83. -
  84.      * @access public
  85. -
  86.      */
  87. -
  88.     public function now($type 'timestamp')
  89. -
  90.     {
  91. -
  92.         switch ($type{
  93. -
  94.             case 'time':
  95. -
  96.             case 'date':
  97. -
  98.             case 'timestamp':
  99. -
  100.             default:
  101. -
  102.                 return 'GETDATE()';
  103. -
  104.         }
  105. -
  106.     }
  107. -
  108.     /**
  109. -
  110.      * return string to call a function to get a substring inside an SQL statement
  111. -
  112.      *
  113. -
  114.      * @return string to call a function to get a substring
  115. -
  116.      */
  117. -
  118.     public function substring($value$position$length null)
  119. -
  120.     {
  121. -
  122.         if is_null($length)) {
  123. -
  124.             return 'SUBSTRING(' $value ', ' $position ', ' $length ')';
  125. -
  126.         }
  127. -
  128.         return 'SUBSTRING(' $value ', ' $position ', LEN(' $value ') - ' $position ' + 1)';
  129. -
  130.     }
  131. -
  132.     /**
  133. -
  134.      * Returns string to concatenate two or more string parameters
  135. -
  136.      *
  137. -
  138.      * @param string $arg1 
  139. -
  140.      * @param string $arg2 
  141. -
  142.      * @param string $values... 
  143. -
  144.      * @return string to concatenate two strings
  145. -
  146.      */
  147. -
  148.     public function concat()
  149. -
  150.     {
  151. -
  152.         $args func_get_args();
  153. -
  154.         return '(' implode(' + '$args')';
  155. -
  156.     }
  157. -
  158.     /**
  159. -
  160.      * Returns global unique identifier
  161. -
  162.      *
  163. -
  164.      * @return string to get global unique identifier
  165. -
  166.      */
  167. -
  168.     public function guid()
  169. -
  170.     {
  171. -
  172.         return 'NEWID()';
  173. -
  174.     }
  175. -
  176. }
  177. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMysql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMysql.php.html deleted file mode 100644 index 6112cef6c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionMysql.php.html +++ /dev/null @@ -1,118 +0,0 @@ - -
-

Source for file Mysql.php

-

Documentation is available at Mysql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mysql.php 1917 2007-07-01 11:27:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Expression_Driver');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Mysql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1917 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * returns the regular expression operator
  71. -
  72.      *
  73. -
  74.      * @return string 
  75. -
  76.      */
  77. -
  78.     public function regexp()
  79. -
  80.     {
  81. -
  82.         return 'RLIKE';
  83. -
  84.     }
  85. -
  86.     /**
  87. -
  88.      * return string to call a function to get random value inside an SQL statement
  89. -
  90.      *
  91. -
  92.      * @return string to generate float between 0 and 1
  93. -
  94.      */
  95. -
  96.     public function random()
  97. -
  98.     {
  99. -
  100.         return 'RAND()';
  101. -
  102.     }
  103. -
  104.     /**
  105. -
  106.      * build a pattern matching string
  107. -
  108.      *
  109. -
  110.      * EXPERIMENTAL
  111. -
  112.      *
  113. -
  114.      * WARNING: this function is experimental and may change signature at
  115. -
  116.      * any time until labelled as non-experimental
  117. -
  118.      *
  119. -
  120.      * @access public
  121. -
  122.      *
  123. -
  124.      * @param array $pattern even keys are strings, odd are patterns (% and _)
  125. -
  126.      * @param string $operator optional pattern operator (LIKE, ILIKE and maybe others in the future)
  127. -
  128.      * @param string $field optional field name that is being matched against
  129. -
  130.      *                   (might be required when emulating ILIKE)
  131. -
  132.      *
  133. -
  134.      * @return string SQL pattern
  135. -
  136.      */
  137. -
  138.     public function matchPattern($pattern$operator null$field null)
  139. -
  140.     {
  141. -
  142.         $match '';
  143. -
  144.         if (!is_null($operator)) {
  145. -
  146.             $field is_null($field'' $field.' ';
  147. -
  148.             $operator strtoupper($operator);
  149. -
  150.             switch ($operator{
  151. -
  152.                 // case insensitive
  153. -
  154.                 case 'ILIKE':
  155. -
  156.                     $match $field.'LIKE ';
  157. -
  158.                     break;
  159. -
  160.                 // case sensitive
  161. -
  162.                 case 'LIKE':
  163. -
  164.                     $match $field.'LIKE BINARY ';
  165. -
  166.                     break;
  167. -
  168.                 default:
  169. -
  170.                     throw new Doctrine_Expression_Mysql_Exception('not a supported operator type:'$operator);
  171. -
  172.             }
  173. -
  174.         }
  175. -
  176.         $match.= "'";
  177. -
  178.         foreach ($pattern as $key => $value{
  179. -
  180.             if ($key 2{
  181. -
  182.                 $match .= $value;
  183. -
  184.             else {
  185. -
  186.                 $match .= $this->conn->escapePattern($this->conn->escape($value));
  187. -
  188.             }
  189. -
  190.         }
  191. -
  192.         $match.= "'";
  193. -
  194.         $match.= $this->patternEscapeString();
  195. -
  196.         return $match;
  197. -
  198.     }
  199. -
  200.     /**
  201. -
  202.      * Returns global unique identifier
  203. -
  204.      *
  205. -
  206.      * @return string to get global unique identifier
  207. -
  208.      */
  209. -
  210.     public function guid()
  211. -
  212.     {
  213. -
  214.         return 'UUID()';
  215. -
  216.     }
  217. -
  218. }
  219. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionOracle.php.html deleted file mode 100644 index b304b8072..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionOracle.php.html +++ /dev/null @@ -1,112 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Oracle.php 1917 2007-07-01 11:27:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Expression_Driver');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Sqlite
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1917 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns a series of strings concatinated
  71. -
  72.      *
  73. -
  74.      * concat() accepts an arbitrary number of parameters. Each parameter
  75. -
  76.      * must contain an expression
  77. -
  78.      *
  79. -
  80.      * @param string $arg1, $arg2 ... $argN     strings that will be concatinated.
  81. -
  82.      * @return string 
  83. -
  84.      */
  85. -
  86.     public function concat()
  87. -
  88.     {
  89. -
  90.         $args func_get_args();
  91. -
  92.  
  93. -
  94.         return join(' || ' $args);
  95. -
  96.     }
  97. -
  98.     /**
  99. -
  100.      * return string to call a function to get a substring inside an SQL statement
  101. -
  102.      *
  103. -
  104.      * Note: Not SQL92, but common functionality.
  105. -
  106.      *
  107. -
  108.      * @param string $value         an sql string literal or column name/alias
  109. -
  110.      * @param integer $position     where to start the substring portion
  111. -
  112.      * @param integer $length       the substring portion length
  113. -
  114.      * @return string               SQL substring function with given parameters
  115. -
  116.      */
  117. -
  118.     public function substring($value$position$length null)
  119. -
  120.     {
  121. -
  122.         if ($length !== null)
  123. -
  124.             return "SUBSTR($value$position$length)";
  125. -
  126.  
  127. -
  128.         return "SUBSTR($value$position)";
  129. -
  130.     }
  131. -
  132.     /**
  133. -
  134.      * Return string to call a variable with the current timestamp inside an SQL statement
  135. -
  136.      * There are three special variables for current date and time:
  137. -
  138.      * - CURRENT_TIMESTAMP (date and time, TIMESTAMP type)
  139. -
  140.      * - CURRENT_DATE (date, DATE type)
  141. -
  142.      * - CURRENT_TIME (time, TIME type)
  143. -
  144.      *
  145. -
  146.      * @return string to call a variable with the current timestamp
  147. -
  148.      */
  149. -
  150.     public function now($type 'timestamp')
  151. -
  152.     {
  153. -
  154.         switch ($type{
  155. -
  156.             case 'date':
  157. -
  158.             case 'time':
  159. -
  160.             case 'timestamp':
  161. -
  162.             default:
  163. -
  164.                 return 'TO_CHAR(CURRENT_TIMESTAMP, \'YYYY-MM-DD HH24:MI:SS\')';
  165. -
  166.         }
  167. -
  168.     }
  169. -
  170.     /**
  171. -
  172.      * random
  173. -
  174.      *
  175. -
  176.      * @return string           an oracle SQL string that generates a float between 0 and 1
  177. -
  178.      */
  179. -
  180.     public function random()
  181. -
  182.     {
  183. -
  184.         return 'dbms_random.value';
  185. -
  186.     }
  187. -
  188.     /**
  189. -
  190.      * Returns global unique identifier
  191. -
  192.      *
  193. -
  194.      * @return string to get global unique identifier
  195. -
  196.      */
  197. -
  198.     public function guid()
  199. -
  200.     {
  201. -
  202.         return 'SYS_GUID()';
  203. -
  204.     }
  205. -
  206. }
  207. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionPgsql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionPgsql.php.html deleted file mode 100644 index 014aa7d3d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionPgsql.php.html +++ /dev/null @@ -1,213 +0,0 @@ - -
-

Source for file Pgsql.php

-

Documentation is available at Pgsql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pgsql.php 2276 2007-08-25 08:06:17Z lukenukem $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Expression_Driver');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Pgsql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2276 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the md5 sum of a field.
  71. -
  72.      *
  73. -
  74.      * Note: Not SQL92, but common functionality
  75. -
  76.      *
  77. -
  78.      * md5() works with the default PostgreSQL 8 versions.
  79. -
  80.      *
  81. -
  82.      * If you are using PostgreSQL 7.x or older you need
  83. -
  84.      * to make sure that the digest procedure is installed.
  85. -
  86.      * If you use RPMS (Redhat and Mandrake) install the postgresql-contrib
  87. -
  88.      * package. You must then install the procedure by running this shell command:
  89. -
  90.      * <code>
  91. -
  92.      * psql [dbname] < /usr/share/pgsql/contrib/pgcrypto.sql
  93. -
  94.      * </code>
  95. -
  96.      * You should make sure you run this as the postgres user.
  97. -
  98.      *
  99. -
  100.      * @return string 
  101. -
  102.      */
  103. -
  104.     public function md5($column)
  105. -
  106.     {
  107. -
  108.         $column $this->getIdentifier($column);
  109. -
  110.  
  111. -
  112.         if ($this->version 7{
  113. -
  114.             return 'MD5(' $column ')';
  115. -
  116.         else {
  117. -
  118.             return 'encode(digest(' $column .', md5), hex)';
  119. -
  120.         }
  121. -
  122.     }
  123. -
  124.  
  125. -
  126.     /**
  127. -
  128.      * Returns part of a string.
  129. -
  130.      *
  131. -
  132.      * Note: Not SQL92, but common functionality.
  133. -
  134.      *
  135. -
  136.      * @param string $value the target $value the string or the string column.
  137. -
  138.      * @param int $from extract from this characeter.
  139. -
  140.      * @param int $len extract this amount of characters.
  141. -
  142.      * @return string sql that extracts part of a string.
  143. -
  144.      */
  145. -
  146.     public function substring($value$from$len null)
  147. -
  148.     {
  149. -
  150.         $value $this->getIdentifier($value);
  151. -
  152.  
  153. -
  154.         if ($len === null{
  155. -
  156.             $len $this->getIdentifier($len);
  157. -
  158.             return 'SUBSTR(' $value ', ' $from ')';
  159. -
  160.         else {
  161. -
  162.             return 'SUBSTR(' $value ', ' $from ', ' $len ')';
  163. -
  164.         }
  165. -
  166.     }
  167. -
  168.  
  169. -
  170.     /**
  171. -
  172.      * Returns a series of strings concatinated
  173. -
  174.      *
  175. -
  176.      * concat() accepts an arbitrary number of parameters. Each parameter
  177. -
  178.      * must contain an expression or an array with expressions.
  179. -
  180.      *
  181. -
  182.      * @param string|array(string)strings that will be concatinated.
  183. -
  184.      * @return string 
  185. -
  186.      */
  187. -
  188.  
  189. -
  190.  
  191. -
  192.     /**
  193. -
  194.      * PostgreSQLs AGE(<timestamp1> [, <timestamp2>]) function.
  195. -
  196.      *
  197. -
  198.      * @param string $timestamp1 timestamp to subtract from NOW()
  199. -
  200.      * @param string $timestamp2 optional; if given: subtract arguments
  201. -
  202.      * @return string 
  203. -
  204.      */
  205. -
  206.     public function age($timestamp1$timestamp2 null{
  207. -
  208.        if$timestamp2 == null {
  209. -
  210.            return 'AGE(' $timestamp1 ')';
  211. -
  212.        }
  213. -
  214.        return 'AGE(' $timestamp1 ', ' $timestamp2 ')';
  215. -
  216.     }
  217. -
  218.  
  219. -
  220.     /**
  221. -
  222.      * PostgreSQLs DATE_PART( <text>, <time> ) function.
  223. -
  224.      *
  225. -
  226.      * @param string $text what to extract
  227. -
  228.      * @param string $time timestamp or interval to extract from
  229. -
  230.      * @return string 
  231. -
  232.      */
  233. -
  234.     public function date_part($text$time{
  235. -
  236.        return 'DATE_PART(' $text ', ' $time ')';
  237. -
  238.     }
  239. -
  240.  
  241. -
  242.  
  243. -
  244.     public function concat()
  245. -
  246.     {
  247. -
  248.         $args func_get_args();
  249. -
  250.  
  251. -
  252.         return join(' || ' $args);
  253. -
  254.     }
  255. -
  256.     /**
  257. -
  258.      * Returns the SQL string to return the current system date and time.
  259. -
  260.      *
  261. -
  262.      * @return string 
  263. -
  264.      */
  265. -
  266.     public function now()
  267. -
  268.     {
  269. -
  270.         return 'LOCALTIMESTAMP(0)';
  271. -
  272.     }
  273. -
  274.     /**
  275. -
  276.      * regexp
  277. -
  278.      *
  279. -
  280.      * @return string           the regular expression operator
  281. -
  282.      */
  283. -
  284.     public function regexp()
  285. -
  286.     {
  287. -
  288.         return 'SIMILAR TO';
  289. -
  290.     }
  291. -
  292.     /**
  293. -
  294.      * return string to call a function to get random value inside an SQL statement
  295. -
  296.      *
  297. -
  298.      * @return return string to generate float between 0 and 1
  299. -
  300.      * @access public
  301. -
  302.      */
  303. -
  304.     public function random()
  305. -
  306.     {
  307. -
  308.         return 'RANDOM()';
  309. -
  310.     }
  311. -
  312.     /**
  313. -
  314.      * build a pattern matching string
  315. -
  316.      *
  317. -
  318.      * EXPERIMENTAL
  319. -
  320.      *
  321. -
  322.      * WARNING: this function is experimental and may change signature at
  323. -
  324.      * any time until labelled as non-experimental
  325. -
  326.      *
  327. -
  328.      * @access public
  329. -
  330.      *
  331. -
  332.      * @param array $pattern even keys are strings, odd are patterns (% and _)
  333. -
  334.      * @param string $operator optional pattern operator (LIKE, ILIKE and maybe others in the future)
  335. -
  336.      * @param string $field optional field name that is being matched against
  337. -
  338.      *                   (might be required when emulating ILIKE)
  339. -
  340.      *
  341. -
  342.      * @return string SQL pattern
  343. -
  344.      */
  345. -
  346.     public function matchPattern($pattern$operator null$field null)
  347. -
  348.     {
  349. -
  350.         $match '';
  351. -
  352.         if (!is_null($operator)) {
  353. -
  354.             $field is_null($field'' $field.' ';
  355. -
  356.             $operator strtoupper($operator);
  357. -
  358.             switch ($operator{
  359. -
  360.                 // case insensitive
  361. -
  362.                 case 'ILIKE':
  363. -
  364.                     $match $field.'ILIKE ';
  365. -
  366.                     break;
  367. -
  368.                 // case sensitive
  369. -
  370.                 case 'LIKE':
  371. -
  372.                     $match $field.'LIKE ';
  373. -
  374.                     break;
  375. -
  376.                 default:
  377. -
  378.                     throw new Doctrine_Expression_Pgsql_Exception('not a supported operator type:'$operator);
  379. -
  380.             }
  381. -
  382.         }
  383. -
  384.         $match.= "'";
  385. -
  386.         foreach ($pattern as $key => $value{
  387. -
  388.             if ($key 2{
  389. -
  390.                 $match.= $value;
  391. -
  392.             else {
  393. -
  394.                 $match.= $this->conn->escapePattern($this->conn->escape($value));
  395. -
  396.             }
  397. -
  398.         }
  399. -
  400.         $match.= "'";
  401. -
  402.         $match.= $this->patternEscapeString();
  403. -
  404.         return $match;
  405. -
  406.     }
  407. -
  408. }
  409. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionSqlite.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionSqlite.php.html deleted file mode 100644 index 7948cbb55..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineExpressionSqlite.php.html +++ /dev/null @@ -1,173 +0,0 @@ - -
-

Source for file Sqlite.php

-

Documentation is available at Sqlite.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sqlite.php 1917 2007-07-01 11:27:45Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Expression_Driver');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Expression_Sqlite
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1917 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the md5 sum of the data that SQLite's md5() function receives.
  71. -
  72.      *
  73. -
  74.      * @param mixed $data 
  75. -
  76.      * @return string 
  77. -
  78.      */
  79. -
  80.     public static function md5Impl($data)
  81. -
  82.     {
  83. -
  84.         return md5($data);
  85. -
  86.     }
  87. -
  88.     /**
  89. -
  90.      * Returns the modules of the data that SQLite's mod() function receives.
  91. -
  92.      *
  93. -
  94.      * @param integer $dividend 
  95. -
  96.      * @param integer $divisor 
  97. -
  98.      * @return string 
  99. -
  100.      */
  101. -
  102.     public static function modImpl($dividend$divisor)
  103. -
  104.     {
  105. -
  106.         return $dividend $divisor;
  107. -
  108.     }
  109. -
  110.  
  111. -
  112.     /**
  113. -
  114.      * Returns a concatenation of the data that SQLite's concat() function receives.
  115. -
  116.      *
  117. -
  118.      * @return string 
  119. -
  120.      */
  121. -
  122.     public static function concatImpl()
  123. -
  124.     {
  125. -
  126.         $args func_get_args();
  127. -
  128.         return join(''$args);
  129. -
  130.     }
  131. -
  132.     /**
  133. -
  134.      * locate
  135. -
  136.      * returns the position of the first occurrence of substring $substr in string $str that
  137. -
  138.      * SQLite's locate() function receives
  139. -
  140.      *
  141. -
  142.      * @param string $substr    literal string to find
  143. -
  144.      * @param string $str       literal string
  145. -
  146.      * @return string 
  147. -
  148.      */
  149. -
  150.     public static function locateImpl($substr$str)
  151. -
  152.     {
  153. -
  154.         return strpos($str$substr);
  155. -
  156.     }
  157. -
  158.     public static function sha1Impl($str)
  159. -
  160.     {
  161. -
  162.         return sha1($str);
  163. -
  164.     }
  165. -
  166.     public static function ltrimImpl($str)
  167. -
  168.     {
  169. -
  170.         return ltrim($str);
  171. -
  172.     }
  173. -
  174.     public static function rtrimImpl($str)
  175. -
  176.     {
  177. -
  178.         return rtrim($str);
  179. -
  180.     }
  181. -
  182.     public static function trimImpl($str)
  183. -
  184.     {
  185. -
  186.         return trim($str);
  187. -
  188.     }
  189. -
  190.     /**
  191. -
  192.      * returns the regular expression operator
  193. -
  194.      *
  195. -
  196.      * @return string 
  197. -
  198.      */
  199. -
  200.     public function regexp()
  201. -
  202.     {
  203. -
  204.         return 'RLIKE';
  205. -
  206.     }
  207. -
  208.     /**
  209. -
  210.      * soundex
  211. -
  212.      * Returns a string to call a function to compute the
  213. -
  214.      * soundex encoding of a string
  215. -
  216.      *
  217. -
  218.      * The string "?000" is returned if the argument is NULL.
  219. -
  220.      *
  221. -
  222.      * @param string $value 
  223. -
  224.      * @return string   SQL soundex function with given parameter
  225. -
  226.      */
  227. -
  228.     public function soundex($value)
  229. -
  230.     {
  231. -
  232.         return 'SOUNDEX(' $value ')';
  233. -
  234.     }
  235. -
  236.     /**
  237. -
  238.      * Return string to call a variable with the current timestamp inside an SQL statement
  239. -
  240.      * There are three special variables for current date and time.
  241. -
  242.      *
  243. -
  244.      * @return string       sqlite function as string
  245. -
  246.      */
  247. -
  248.     public function now($type 'timestamp')
  249. -
  250.     {
  251. -
  252.         switch ($type{
  253. -
  254.             case 'time':
  255. -
  256.                 return 'time(\'now\')';
  257. -
  258.             case 'date':
  259. -
  260.                 return 'date(\'now\')';
  261. -
  262.             case 'timestamp':
  263. -
  264.             default:
  265. -
  266.                 return 'datetime(\'now\')';
  267. -
  268.         }
  269. -
  270.     }
  271. -
  272.     /**
  273. -
  274.      * return string to call a function to get random value inside an SQL statement
  275. -
  276.      *
  277. -
  278.      * @return string to generate float between 0 and 1
  279. -
  280.      */
  281. -
  282.     public function random()
  283. -
  284.     {
  285. -
  286.         return '((RANDOM() + 2147483648) / 4294967296)';
  287. -
  288.     }
  289. -
  290.     /**
  291. -
  292.      * return string to call a function to get a substring inside an SQL statement
  293. -
  294.      *
  295. -
  296.      * Note: Not SQL92, but common functionality.
  297. -
  298.      *
  299. -
  300.      * SQLite only supports the 2 parameter variant of this function
  301. -
  302.      *
  303. -
  304.      * @param string $value         an sql string literal or column name/alias
  305. -
  306.      * @param integer $position     where to start the substring portion
  307. -
  308.      * @param integer $length       the substring portion length
  309. -
  310.      * @return string               SQL substring function with given parameters
  311. -
  312.      */
  313. -
  314.     public function substring($value$position$length null)
  315. -
  316.     {
  317. -
  318.         if ($length !== null{
  319. -
  320.             return 'SUBSTR(' $value ', ' $position ', ' $length ')';
  321. -
  322.         }
  323. -
  324.         return 'SUBSTR(' $value ', ' $position ', LENGTH(' $value '))';
  325. -
  326.     }
  327. -
  328. }
  329. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFile.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFile.php.html deleted file mode 100644 index d9ae6afd3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFile.php.html +++ /dev/null @@ -1,61 +0,0 @@ - -
-

Source for file File.php

-

Documentation is available at File.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_File
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function setTableDefinition()
  69. -
  70.     {
  71. -
  72.         $this->hasColumn('url''string'255);
  73. -
  74.     }
  75. -
  76.     public function setUp()
  77. -
  78.     {
  79. -
  80.         $this->actAs('Searchable'array('className' => 'Doctrine_File_Index',
  81. -
  82.                                          'fields' => array('url''content')));
  83. -
  84.         
  85. -
  86.         $this->index('url'array('fields' => array('url')));
  87. -
  88.     }
  89. -
  90.     public function get($name$load true)
  91. -
  92.     {
  93. -
  94.         if ($name === 'content'{
  95. -
  96.             return file_get_contents(parent::get('url'));
  97. -
  98.         }
  99. -
  100.         return parent::get($name$load);
  101. -
  102.     }
  103. -
  104. }
  105. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFileIndex.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFileIndex.php.html deleted file mode 100644 index 311ec3434..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFileIndex.php.html +++ /dev/null @@ -1,64 +0,0 @@ - -
-

Source for file Index.php

-

Documentation is available at Index.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_File_Index
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function setTableDefinition()
  69. -
  70.     {
  71. -
  72.         $this->hasColumn('keyword''string'255array('notnull' => true,
  73. -
  74.                                                          'primary' => true));
  75. -
  76.                                                          
  77. -
  78.         $this->hasColumn('field''string'50array('notnull' => true,
  79. -
  80.                                                       'primary' => true));
  81. -
  82.  
  83. -
  84.         $this->hasColumn('position''string'255array('notnull' => true,
  85. -
  86.                                                           'primary' => true));
  87. -
  88.                                                           
  89. -
  90.         $this->hasColumn('file_id''integer'8array('notnull' => true,
  91. -
  92.                                                         'primary' => true));
  93. -
  94.     }
  95. -
  96.     public function setUp()
  97. -
  98.     {
  99. -
  100.         $this->hasOne('Doctrine_File'array('local' => 'file_id',
  101. -
  102.                                              'foreign' => 'id',
  103. -
  104.                                              'onDelete' => 'CASCADE',
  105. -
  106.                                              'onUpdate' => 'CASCADE'));
  107. -
  108.     }
  109. -
  110. }
  111. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFormatter.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFormatter.php.html deleted file mode 100644 index f8310112b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineFormatter.php.html +++ /dev/null @@ -1,229 +0,0 @@ - -
-

Source for file Formatter.php

-

Documentation is available at Formatter.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Formatter
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Quotes pattern (% and _) characters in a string)
  71. -
  72.      *
  73. -
  74.      * EXPERIMENTAL
  75. -
  76.      *
  77. -
  78.      * WARNING: this function is experimental and may change signature at
  79. -
  80.      * any time until labelled as non-experimental
  81. -
  82.      *
  83. -
  84.      * @param   string  the input string to quote
  85. -
  86.      *
  87. -
  88.      * @return  string  quoted string
  89. -
  90.      */
  91. -
  92.     public function escapePattern($text)
  93. -
  94.     {
  95. -
  96.         if ($this->string_quoting['escape_pattern']{
  97. -
  98.             $tmp $this->conn->string_quoting;
  99. -
  100.  
  101. -
  102.             $text str_replace($tmp['escape_pattern']
  103. -
  104.                                 $tmp['escape_pattern'.
  105. -
  106.                                 $tmp['escape_pattern']$text);
  107. -
  108.  
  109. -
  110.             foreach ($this->wildcards as $wildcard{
  111. -
  112.                 $text str_replace($wildcard$tmp['escape_pattern'$wildcard$text);
  113. -
  114.             }
  115. -
  116.         }
  117. -
  118.         return $text;
  119. -
  120.     }
  121. -
  122.     /**
  123. -
  124.      * convertBooleans
  125. -
  126.      * some drivers need the boolean values to be converted into integers
  127. -
  128.      * when using DQL API
  129. -
  130.      *
  131. -
  132.      * This method takes care of that conversion
  133. -
  134.      *
  135. -
  136.      * @param array $item 
  137. -
  138.      * @return void 
  139. -
  140.      */
  141. -
  142.     public function convertBooleans($item)
  143. -
  144.     {
  145. -
  146.         if (is_array($item)) {
  147. -
  148.             foreach ($item as $k => $value{
  149. -
  150.                 if (is_bool($value)) {
  151. -
  152.                     $item[$k= (int) $value;
  153. -
  154.                 }
  155. -
  156.             }
  157. -
  158.         else {
  159. -
  160.             if (is_bool($item)) {
  161. -
  162.                 $item = (int) $item;
  163. -
  164.             }
  165. -
  166.         }
  167. -
  168.         return $item;
  169. -
  170.     }
  171. -
  172.     /**
  173. -
  174.      * Quote a string so it can be safely used as a table or column name
  175. -
  176.      *
  177. -
  178.      * Delimiting style depends on which database driver is being used.
  179. -
  180.      *
  181. -
  182.      * NOTE: just because you CAN use delimited identifiers doesn't mean
  183. -
  184.      * you SHOULD use them.  In general, they end up causing way more
  185. -
  186.      * problems than they solve.
  187. -
  188.      *
  189. -
  190.      * Portability is broken by using the following characters inside
  191. -
  192.      * delimited identifiers:
  193. -
  194.      *   + backtick (<kbd>`</kbd>) -- due to MySQL
  195. -
  196.      *   + double quote (<kbd>"</kbd>) -- due to Oracle
  197. -
  198.      *   + brackets (<kbd>[</kbd> or <kbd>]</kbd>) -- due to Access
  199. -
  200.      *
  201. -
  202.      * Delimited identifiers are known to generally work correctly under
  203. -
  204.      * the following drivers:
  205. -
  206.      *   + mssql
  207. -
  208.      *   + mysql
  209. -
  210.      *   + mysqli
  211. -
  212.      *   + oci8
  213. -
  214.      *   + pgsql
  215. -
  216.      *   + sqlite
  217. -
  218.      *
  219. -
  220.      * InterBase doesn't seem to be able to use delimited identifiers
  221. -
  222.      * via PHP 4.  They work fine under PHP 5.
  223. -
  224.      *
  225. -
  226.      * @param string $str           identifier name to be quoted
  227. -
  228.      * @param bool $checkOption     check the 'quote_identifier' option
  229. -
  230.      *
  231. -
  232.      * @return string               quoted identifier string
  233. -
  234.      */
  235. -
  236.     public function quoteIdentifier($str$checkOption true)
  237. -
  238.     {
  239. -
  240.         if ($checkOption && $this->conn->getAttribute(Doctrine::ATTR_QUOTE_IDENTIFIER)) {
  241. -
  242.             return $str;
  243. -
  244.         }
  245. -
  246.         $tmp $this->conn->identifier_quoting;
  247. -
  248.         $str str_replace($tmp['end'],
  249. -
  250.                            $tmp['escape'.
  251. -
  252.                            $tmp['end']$str);
  253. -
  254.  
  255. -
  256.         return $tmp['start'$str $tmp['end'];
  257. -
  258.     }
  259. -
  260.     /**
  261. -
  262.      * quote
  263. -
  264.      * quotes given input parameter
  265. -
  266.      *
  267. -
  268.      * @param mixed $input      parameter to be quoted
  269. -
  270.      * @param string $type 
  271. -
  272.      * @return mixed 
  273. -
  274.      */
  275. -
  276.     public function quote($input$type null)
  277. -
  278.     {
  279. -
  280.         if ($type == null{
  281. -
  282.             $type gettype($input);
  283. -
  284.         }
  285. -
  286.         switch ($type{
  287. -
  288.             case 'integer':
  289. -
  290.             case 'enum':
  291. -
  292.             case 'boolean':
  293. -
  294.             case 'double':
  295. -
  296.             case 'float':
  297. -
  298.             case 'bool':
  299. -
  300.             case 'int':
  301. -
  302.                 return $input;
  303. -
  304.             case 'array':
  305. -
  306.             case 'object':
  307. -
  308.                 $input serialize($input);
  309. -
  310.             case 'string':
  311. -
  312.             case 'char':
  313. -
  314.             case 'varchar':
  315. -
  316.             case 'text':
  317. -
  318.             case 'gzip':
  319. -
  320.             case 'blob':
  321. -
  322.             case 'clob':
  323. -
  324.                 $this->conn->connect();
  325. -
  326.  
  327. -
  328.                 return $this->conn->getDbh()->quote($input);
  329. -
  330.         }
  331. -
  332.     }
  333. -
  334.     /**
  335. -
  336.      * Removes any formatting in an sequence name using the 'seqname_format' option
  337. -
  338.      *
  339. -
  340.      * @param string $sqn string that containts name of a potential sequence
  341. -
  342.      * @return string name of the sequence with possible formatting removed
  343. -
  344.      */
  345. -
  346.     public function fixSequenceName($sqn)
  347. -
  348.     {
  349. -
  350.         $seqPattern '/^'.preg_replace('/%s/''([a-z0-9_]+)',  $this->conn->getAttribute(Doctrine::ATTR_SEQNAME_FORMAT)).'$/i';
  351. -
  352.         $seqName    preg_replace($seqPattern'\\1'$sqn);
  353. -
  354.  
  355. -
  356.         if ($seqName && strcasecmp($sqn$this->getSequenceName($seqName))) {
  357. -
  358.             return $seqName;
  359. -
  360.         }
  361. -
  362.         return $sqn;
  363. -
  364.     }
  365. -
  366.     /**
  367. -
  368.      * Removes any formatting in an index name using the 'idxname_format' option
  369. -
  370.      *
  371. -
  372.      * @param string $idx string that containts name of anl index
  373. -
  374.      * @return string name of the index with possible formatting removed
  375. -
  376.      */
  377. -
  378.     public function fixIndexName($idx)
  379. -
  380.     {
  381. -
  382.         $indexPattern   '/^'.preg_replace('/%s/''([a-z0-9_]+)'$this->conn->getAttribute(Doctrine::ATTR_IDXNAME_FORMAT)).'$/i';
  383. -
  384.         $indexName      preg_replace($indexPattern'\\1'$idx);
  385. -
  386.         if ($indexName && strcasecmp($idx$this->getIndexName($indexName))) {
  387. -
  388.             return $indexName;
  389. -
  390.         }
  391. -
  392.         return $idx;
  393. -
  394.     }
  395. -
  396.     /**
  397. -
  398.      * adds sequence name formatting to a sequence name
  399. -
  400.      *
  401. -
  402.      * @param string    name of the sequence
  403. -
  404.      * @return string   formatted sequence name
  405. -
  406.      */
  407. -
  408.     public function getSequenceName($sqn)
  409. -
  410.     {
  411. -
  412.         return sprintf($this->conn->getAttribute(Doctrine::ATTR_SEQNAME_FORMAT),
  413. -
  414.             preg_replace('/[^a-z0-9_\$.]/i''_'$sqn));
  415. -
  416.     }
  417. -
  418.     /**
  419. -
  420.      * adds index name formatting to a index name
  421. -
  422.      *
  423. -
  424.      * @param string    name of the index
  425. -
  426.      * @return string   formatted index name
  427. -
  428.      */
  429. -
  430.     public function getIndexName($idx)
  431. -
  432.     {
  433. -
  434.         return sprintf($this->conn->getAttribute(Doctrine::ATTR_IDXNAME_FORMAT),
  435. -
  436.                 preg_replace('/[^a-z0-9_\$]/i''_'$idx));
  437. -
  438.     }
  439. -
  440. }
  441. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHook.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHook.php.html deleted file mode 100644 index 127beee0d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHook.php.html +++ /dev/null @@ -1,223 +0,0 @@ - -
-

Source for file Hook.php

-

Documentation is available at Hook.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Hook.php 2149 2007-08-02 21:27:42Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hook
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2149 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var Doctrine_Query $query           the base query
  71. -
  72.      */
  73. -
  74.     protected $query;
  75. -
  76.     /**
  77. -
  78.      * @var array $joins                    the optional joins of the base query
  79. -
  80.      */
  81. -
  82.     protected $joins;
  83. -
  84.     /**
  85. -
  86.      * @var array $hooks                    hooks array
  87. -
  88.      */
  89. -
  90.     protected $hooks        = array(
  91. -
  92.                              'where',
  93. -
  94.                              'orderby',
  95. -
  96.                              'limit',
  97. -
  98.                              'offset'
  99. -
  100.                               );
  101. -
  102.     /**
  103. -
  104.      * @var array $fieldParsers             custom field parsers array
  105. -
  106.      *                                       keys as field names in the format componentAlias.FieldName
  107. -
  108.      *                                       values as parser names / objects
  109. -
  110.      */
  111. -
  112.     protected $fieldParsers = array();
  113. -
  114.  
  115. -
  116.     /**
  117. -
  118.      * @var array $typeParsers              type parsers array
  119. -
  120.      *                                       keys as type names and values as parser names / objects
  121. -
  122.      */
  123. -
  124.     protected $typeParsers  = array(
  125. -
  126.                               'char'      => 'Doctrine_Hook_WordLike',
  127. -
  128.                               'string'    => 'Doctrine_Hook_WordLike',
  129. -
  130.                               'varchar'   => 'Doctrine_Hook_WordLike',
  131. -
  132.                               'integer'   => 'Doctrine_Hook_Integer',
  133. -
  134.                               'enum'      => 'Doctrine_Hook_Integer',
  135. -
  136.                               'time'      => 'Doctrine_Hook_Time',
  137. -
  138.                               'date'      => 'Doctrine_Hook_Date',
  139. -
  140.                               );
  141. -
  142.  
  143. -
  144.     /**
  145. -
  146.      * @param Doctrine_Query $query         the base query
  147. -
  148.      */
  149. -
  150.     public function __construct($query)
  151. -
  152.     {
  153. -
  154.         if (is_string($query)) {
  155. -
  156.             $this->query = new Doctrine_Query();
  157. -
  158.             $this->query->parseQuery($query);
  159. -
  160.         elseif ($query instanceof Doctrine_Query{
  161. -
  162.             $this->query = $query;
  163. -
  164.         else {
  165. -
  166.             throw new Doctrine_Exception('Constructor argument should be either Doctrine_Query object or valid DQL query');          
  167. -
  168.         }
  169. -
  170.         
  171. -
  172.         $this->query->getQuery();
  173. -
  174.     }
  175. -
  176.     /**
  177. -
  178.      * getQuery
  179. -
  180.      *
  181. -
  182.      * @return Doctrine_Query       returns the query object associated with this hook
  183. -
  184.      */
  185. -
  186.     public function getQuery()
  187. -
  188.     {
  189. -
  190.         return $this->query;
  191. -
  192.     }
  193. -
  194.     /**
  195. -
  196.      * setTypeParser
  197. -
  198.      *
  199. -
  200.      * @param string $type              type name
  201. -
  202.      * @param string|object $parser     parser name or custom parser object
  203. -
  204.      */
  205. -
  206.     public function setTypeParser($type$parser
  207. -
  208.     {
  209. -
  210.         $this->typeParsers[$type$parser;
  211. -
  212.     }
  213. -
  214.     /**
  215. -
  216.      * setFieldParser
  217. -
  218.      *
  219. -
  220.      * @param string $field             field name
  221. -
  222.      * @param string|object $parser     parser name or custom parser object
  223. -
  224.      */
  225. -
  226.     public function setFieldParser($field$parser)
  227. -
  228.     {
  229. -
  230.         $this->fieldParsers[$field$parser;
  231. -
  232.     }
  233. -
  234.     /**
  235. -
  236.      * hookWhere
  237. -
  238.      * builds DQL query where part from given parameter array
  239. -
  240.      *
  241. -
  242.      * @param array $params         an associative array containing field
  243. -
  244.      *                               names and their values
  245. -
  246.      * @return boolean              whether or not the hooking was
  247. -
  248.      */
  249. -
  250.     public function hookWhere($params)
  251. -
  252.     {
  253. -
  254.         if is_array($params)) {
  255. -
  256.             return false;
  257. -
  258.         }
  259. -
  260.         foreach ($params as $name => $value{
  261. -
  262.             if ($value === '' || $value === '-'{
  263. -
  264.                 continue;
  265. -
  266.             }
  267. -
  268.             $e explode('.'$name);
  269. -
  270.  
  271. -
  272.             if (count($e== 2{
  273. -
  274.                 list($alias$column$e;
  275. -
  276.  
  277. -
  278.                 $map   $this->query->getAliasDeclaration($alias);
  279. -
  280.                 $table $map['table'];
  281. -
  282.  
  283. -
  284.                 if $table{
  285. -
  286.                     throw new Doctrine_Exception('Unknown alias ' $alias);
  287. -
  288.                 }
  289. -
  290.  
  291. -
  292.                 if ($def $table->getDefinitionOf($column)) {
  293. -
  294.  
  295. -
  296.                 $def[0gettype($value);
  297. -
  298.                     if (isset($this->typeParsers[$def[0]])) {
  299. -
  300.                         $name   $this->typeParsers[$def[0]];
  301. -
  302.                         $parser new $name;
  303. -
  304.                     }
  305. -
  306.  
  307. -
  308.                     $parser->parse($alias$column$value);
  309. -
  310.  
  311. -
  312.                     $this->query->addWhere($parser->getCondition()$parser->getParams());
  313. -
  314.                 }
  315. -
  316.             }
  317. -
  318.         }
  319. -
  320.  
  321. -
  322.         return true;
  323. -
  324.     }
  325. -
  326.     /**
  327. -
  328.      * hookOrderBy
  329. -
  330.      * builds DQL query orderby part from given parameter array
  331. -
  332.      *
  333. -
  334.      * @param array $params         an array containing all fields which the built query
  335. -
  336.      *                               should be ordered by
  337. -
  338.      * @return boolean              whether or not the hooking was successful
  339. -
  340.      */
  341. -
  342.     public function hookOrderby($params)
  343. -
  344.     {
  345. -
  346.         if is_array($params)) {
  347. -
  348.             return false;
  349. -
  350.         }
  351. -
  352.         foreach ($params as $name{
  353. -
  354.             $e explode(' '$name);
  355. -
  356.  
  357. -
  358.             $order 'ASC';
  359. -
  360.  
  361. -
  362.             if (count($e1{
  363. -
  364.                 $order ($e[1== 'DESC''DESC' 'ASC';
  365. -
  366.             }
  367. -
  368.  
  369. -
  370.             $e explode('.'$e[0]);
  371. -
  372.  
  373. -
  374.             if (count($e== 2{
  375. -
  376.                 list($alias$column$e;
  377. -
  378.  
  379. -
  380.                 $map   $this->query->getAliasDeclaration($alias);
  381. -
  382.                 $table $map['table'];
  383. -
  384.  
  385. -
  386.                 if ($def $table->getDefinitionOf($column)) {   
  387. -
  388.                     $this->query->addOrderBy($alias '.' $column ' ' $order);
  389. -
  390.                 }
  391. -
  392.             }
  393. -
  394.         }
  395. -
  396.         return true;
  397. -
  398.     }
  399. -
  400.     /**
  401. -
  402.      * @param integer $limit 
  403. -
  404.      */
  405. -
  406.     public function hookLimit($limit)
  407. -
  408.     {
  409. -
  410.         $this->query->limit((int) $limit);
  411. -
  412.     }
  413. -
  414.     /**
  415. -
  416.      * @param integer $offset 
  417. -
  418.      */
  419. -
  420.     public function hookOffset($offset)
  421. -
  422.     {
  423. -
  424.         $this->query->offset((int) $offset);
  425. -
  426.     }
  427. -
  428. }
  429. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookEqual.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookEqual.php.html deleted file mode 100644 index 3b86ed88c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookEqual.php.html +++ /dev/null @@ -1,60 +0,0 @@ - -
-

Source for file Equal.php

-

Documentation is available at Equal.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Equal.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Hook_Parser');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hook_Equal
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * parse
  71. -
  72.      * Parses given field and field value to DQL condition
  73. -
  74.      * and parameters. This method should always return
  75. -
  76.      * prepared statement conditions (conditions that use
  77. -
  78.      * placeholders instead of literal values).
  79. -
  80.      *
  81. -
  82.      * @param string $alias     component alias
  83. -
  84.      * @param string $field     the field name
  85. -
  86.      * @param mixed $value      the value of the field
  87. -
  88.      * @return void 
  89. -
  90.      */
  91. -
  92.     public function parse($alias$field$value)
  93. -
  94.     {
  95. -
  96.         $this->params    = (array) $value;
  97. -
  98.         $this->condition = $alias '.' $field ' = ?';
  99. -
  100.     }
  101. -
  102. }
  103. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookInteger.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookInteger.php.html deleted file mode 100644 index 3bd1e9cbd..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookInteger.php.html +++ /dev/null @@ -1,83 +0,0 @@ - -
-

Source for file Integer.php

-

Documentation is available at Integer.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Integer.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Hook_Parser_Complex');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hook_Integer
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * parse
  71. -
  72.      * Parses given field and field value to DQL condition
  73. -
  74.      * and parameters. This method should always return
  75. -
  76.      * prepared statement conditions (conditions that use
  77. -
  78.      * placeholders instead of literal values).
  79. -
  80.      *
  81. -
  82.      * @param string $alias     component alias
  83. -
  84.      * @param string $field     the field name
  85. -
  86.      * @param mixed $value      the value of the field
  87. -
  88.      * @return void 
  89. -
  90.      */
  91. -
  92.     public function parseSingle($alias$field$value)
  93. -
  94.     {
  95. -
  96.         $e explode(' '$value);
  97. -
  98.  
  99. -
  100.         foreach ($e as $v{
  101. -
  102.              $v trim($v);
  103. -
  104.  
  105. -
  106.              $e2   explode('-'$v);
  107. -
  108.  
  109. -
  110.             $name $alias'.' $field;
  111. -
  112.  
  113. -
  114.              if (count($e2== 1{
  115. -
  116.                  // one '-' found
  117. -
  118.  
  119. -
  120.                 $a[$name ' = ?';
  121. -
  122.  
  123. -
  124.                 $this->params[$v;
  125. -
  126.             else {
  127. -
  128.                 // more than one '-' found
  129. -
  130.  
  131. -
  132.                 $a['(' $name ' > ? AND ' $name ' < ?)';
  133. -
  134.  
  135. -
  136.                 $this->params += array($e2[0]$e2[1]);
  137. -
  138.             }
  139. -
  140.  
  141. -
  142.         }
  143. -
  144.         return implode(' OR '$a);
  145. -
  146.     }
  147. -
  148. }
  149. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParser.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParser.php.html deleted file mode 100644 index e1618c625..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParser.php.html +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Source for file Parser.php

-

Documentation is available at Parser.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Parser.php 1158 2007-03-02 20:47:17Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hook_Parser
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1158 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. abstract class Doctrine_Hook_Parser
  66. -
  67. {
  68. -
  69.     protected $condition;
  70. -
  71.     protected $params = array();
  72. -
  73.  
  74. -
  75.     public function getCondition()
  76. -
  77.     {
  78. -
  79.         return $this->condition;
  80. -
  81.     }
  82. -
  83.     /**
  84. -
  85.      * getParams
  86. -
  87.      * returns the parameters associated with this parser
  88. -
  89.      *
  90. -
  91.      * @return array 
  92. -
  93.      */
  94. -
  95.     public function getParams()
  96. -
  97.     {
  98. -
  99.         return $this->params;
  100. -
  101.     }
  102. -
  103.     /**
  104. -
  105.      * parse
  106. -
  107.      * Parses given field and field value to DQL condition
  108. -
  109.      * and parameters. This method should always return
  110. -
  111.      * prepared statement conditions (conditions that use
  112. -
  113.      * placeholders instead of literal values).
  114. -
  115.      *
  116. -
  117.      * @param string $alias     component alias
  118. -
  119.      * @param string $field     the field name
  120. -
  121.      * @param mixed $value      the value of the field
  122. -
  123.      * @return void 
  124. -
  125.      */
  126. -
  127.     abstract public function parse($alias$field$value);
  128. -
  129. }
  130. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParserComplex.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParserComplex.php.html deleted file mode 100644 index 76b29fe5c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookParserComplex.php.html +++ /dev/null @@ -1,103 +0,0 @@ - -
-

Source for file Complex.php

-

Documentation is available at Complex.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Complex.php 1482 2007-05-26 16:49:58Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Hook_Parser');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hook_Parser_Complex
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1482 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * parse
  71. -
  72.      * Parses given field and field value to DQL condition
  73. -
  74.      * and parameters. This method should always return
  75. -
  76.      * prepared statement conditions (conditions that use
  77. -
  78.      * placeholders instead of literal values).
  79. -
  80.      *
  81. -
  82.      * @param string $alias     component alias
  83. -
  84.      * @param string $field     the field name
  85. -
  86.      * @param mixed $value      the value of the field
  87. -
  88.      * @return void 
  89. -
  90.      */
  91. -
  92.     public function parse($alias$field$value)
  93. -
  94.     {
  95. -
  96.         $this->condition = $this->parseClause($alias$field$value);
  97. -
  98.     }
  99. -
  100.     /**
  101. -
  102.      * parseClause
  103. -
  104.      *
  105. -
  106.      * @param string $alias     component alias
  107. -
  108.      * @param string $field     the field name
  109. -
  110.      * @param mixed $value      the value of the field
  111. -
  112.      * @return void 
  113. -
  114.      */
  115. -
  116.     public function parseClause($alias$field$value)
  117. -
  118.     {
  119. -
  120.         $parts Doctrine_Tokenizer::quoteExplode($value' AND ');
  121. -
  122.  
  123. -
  124.         if (count($parts1{
  125. -
  126.             $ret array();
  127. -
  128.             foreach ($parts as $part{
  129. -
  130.                 $ret[$this->parseSingle($alias$field$part);
  131. -
  132.             }
  133. -
  134.  
  135. -
  136.             $r implode(' AND '$ret);
  137. -
  138.         else {
  139. -
  140.             $parts Doctrine_Tokenizer::quoteExplode($value' OR ');
  141. -
  142.             if (count($parts1{
  143. -
  144.                 $ret array();
  145. -
  146.                 foreach ($parts as $part{
  147. -
  148.                     $ret[$this->parseClause($alias$field$part);
  149. -
  150.                 }
  151. -
  152.  
  153. -
  154.                 $r implode(' OR '$ret);
  155. -
  156.             else {
  157. -
  158.                 $ret $this->parseSingle($alias$field$parts[0]);
  159. -
  160.                 return $ret;
  161. -
  162.             }
  163. -
  164.         }
  165. -
  166.         return '(' $r ')';
  167. -
  168.     }
  169. -
  170.     /**
  171. -
  172.      * parseSingle
  173. -
  174.      *
  175. -
  176.      * @param string $alias     component alias
  177. -
  178.      * @param string $field     the field name
  179. -
  180.      * @param mixed $value      the value of the field
  181. -
  182.      * @return void 
  183. -
  184.      */
  185. -
  186.     abstract public function parseSingle($alias$field$value);
  187. -
  188. }
  189. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookWordLike.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookWordLike.php.html deleted file mode 100644 index 39b1a584a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHookWordLike.php.html +++ /dev/null @@ -1,74 +0,0 @@ - -
-

Source for file WordLike.php

-

Documentation is available at WordLike.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: WordLike.php 1482 2007-05-26 16:49:58Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Hook_Parser');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hook_WordLike
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1482 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * parse
  71. -
  72.      * Parses given field and field value to DQL condition
  73. -
  74.      * and parameters. This method should always return
  75. -
  76.      * prepared statement conditions (conditions that use
  77. -
  78.      * placeholders instead of literal values).
  79. -
  80.      *
  81. -
  82.      * @param string $alias     component alias
  83. -
  84.      * @param string $field     the field name
  85. -
  86.      * @param mixed $value      the value of the field
  87. -
  88.      * @return void 
  89. -
  90.      */
  91. -
  92.     public function parseSingle($alias$field$value)
  93. -
  94.     {
  95. -
  96.         if (strpos($value"'"!== false{
  97. -
  98.             $value Doctrine_Tokenizer::bracketTrim($value"'""'");
  99. -
  100.         
  101. -
  102.             $a[]   $alias '.' $field ' LIKE ?';
  103. -
  104.             $this->params[$value '%';
  105. -
  106.  
  107. -
  108.         else {
  109. -
  110.             $e2 explode(' ',$value);
  111. -
  112.     
  113. -
  114.             foreach ($e2 as $v{
  115. -
  116.                 $v trim($v);
  117. -
  118.                 $a[$alias '.' $field ' LIKE ?';
  119. -
  120.                 $this->params[$v '%';
  121. -
  122.             }
  123. -
  124.         }
  125. -
  126.         return implode(' OR '$a);
  127. -
  128.     }
  129. -
  130. }
  131. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrate.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrate.php.html deleted file mode 100644 index 0464795a4..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrate.php.html +++ /dev/null @@ -1,1226 +0,0 @@ - -
-

Source for file Hydrate.php

-

Documentation is available at Hydrate.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Hydrate.php 2234 2007-08-14 18:28:35Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hydrate is a base class for Doctrine_RawSql and Doctrine_Query.
  46. -
  47.  * Its purpose is to populate object graphs.
  48. -
  49.  *
  50. -
  51.  *
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2234 $
  64. -
  65.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  66. -
  67.  */
  68. -
  69. class Doctrine_Hydrate extends Doctrine_Object implements Serializable
  70. -
  71. {
  72. -
  73.     /**
  74. -
  75.      * QUERY TYPE CONSTANTS
  76. -
  77.      */
  78. -
  79.  
  80. -
  81.     /**
  82. -
  83.      * constant for SELECT queries
  84. -
  85.      */
  86. -
  87.     const SELECT = 0;
  88. -
  89.     /**
  90. -
  91.      * constant for DELETE queries
  92. -
  93.      */
  94. -
  95.     const DELETE = 1;
  96. -
  97.     /**
  98. -
  99.      * constant for UPDATE queries
  100. -
  101.      */
  102. -
  103.     const UPDATE = 2;
  104. -
  105.     /**
  106. -
  107.      * constant for INSERT queries
  108. -
  109.      */
  110. -
  111.     const INSERT = 3;
  112. -
  113.     /**
  114. -
  115.      * constant for CREATE queries
  116. -
  117.      */
  118. -
  119.     const CREATE = 4;
  120. -
  121.     /**
  122. -
  123.      * Constant for the array hydration mode.
  124. -
  125.      */
  126. -
  127.     const HYDRATE_ARRAY = 3;
  128. -
  129.     /**
  130. -
  131.      * Constant for the record (object) hydration mode.
  132. -
  133.      */
  134. -
  135.     const HYDRATE_RECORD = 2;
  136. -
  137.  
  138. -
  139.     /**
  140. -
  141.      * @var array $params                       query input parameters
  142. -
  143.      */
  144. -
  145.     protected $_params      = array();
  146. -
  147.     /**
  148. -
  149.      * @var Doctrine_Connection $conn           Doctrine_Connection object
  150. -
  151.      */
  152. -
  153.     protected $_conn;
  154. -
  155.     /**
  156. -
  157.      * @var Doctrine_View $_view                Doctrine_View object, when set this object will use the
  158. -
  159.      *                                           the query given by the view object for object population
  160. -
  161.      */
  162. -
  163.     protected $_view;
  164. -
  165.     /**
  166. -
  167.      * @var array $_aliasMap                    two dimensional array containing the map for query aliases
  168. -
  169.      *       Main keys are component aliases
  170. -
  171.      *
  172. -
  173.      *           table               table object associated with given alias
  174. -
  175.      *
  176. -
  177.      *           relation            the relation object owned by the parent
  178. -
  179.      *
  180. -
  181.      *           parent              the alias of the parent
  182. -
  183.      *
  184. -
  185.      *           agg                 the aggregates of this component
  186. -
  187.      */
  188. -
  189.     protected $_aliasMap         = array();
  190. -
  191.     /**
  192. -
  193.      *
  194. -
  195.      */
  196. -
  197.     protected $pendingAggregates = array();
  198. -
  199.     /**
  200. -
  201.      * @var array $aggregateMap             an array containing all aggregate aliases, keys as dql aliases
  202. -
  203.      *                                       and values as sql aliases
  204. -
  205.      */
  206. -
  207.     protected $aggregateMap      = array();
  208. -
  209.     /**
  210. -
  211.      * @var array $_options                 an array of options
  212. -
  213.      */
  214. -
  215.     protected $_options    = array(
  216. -
  217.                             'fetchMode'      => Doctrine::FETCH_RECORD,
  218. -
  219.                             'parserCache'    => false,
  220. -
  221.                             'resultSetCache' => false,
  222. -
  223.                             );
  224. -
  225.     /**
  226. -
  227.      * @var string $_sql            cached SQL query
  228. -
  229.      */
  230. -
  231.     protected $_sql;
  232. -
  233.     /**
  234. -
  235.      * @var array $parts            SQL query string parts
  236. -
  237.      */
  238. -
  239.     protected $parts = array(
  240. -
  241.         'select'    => array(),
  242. -
  243.         'distinct'  => false,
  244. -
  245.         'forUpdate' => false,
  246. -
  247.         'from'      => array(),
  248. -
  249.         'set'       => array(),
  250. -
  251.         'join'      => array(),
  252. -
  253.         'where'     => array(),
  254. -
  255.         'groupby'   => array(),
  256. -
  257.         'having'    => array(),
  258. -
  259.         'orderby'   => array(),
  260. -
  261.         'limit'     => false,
  262. -
  263.         'offset'    => false,
  264. -
  265.         );
  266. -
  267.     /**
  268. -
  269.      * @var integer $type                   the query type
  270. -
  271.      *
  272. -
  273.      * @see Doctrine_Query::* constants
  274. -
  275.      */
  276. -
  277.     protected $type            = self::SELECT;
  278. -
  279.     /**
  280. -
  281.      * @var array 
  282. -
  283.      */
  284. -
  285.     protected $_cache;
  286. -
  287.     /**
  288. -
  289.      * The current hydration mode.
  290. -
  291.      */
  292. -
  293.     protected $_hydrationMode = self::HYDRATE_RECORD;
  294. -
  295.     /**
  296. -
  297.      * @var boolean $_expireCache           a boolean value that indicates whether or not to force cache expiration
  298. -
  299.      */
  300. -
  301.     protected $_expireCache     = false;
  302. -
  303.  
  304. -
  305.     protected $_timeToLive;
  306. -
  307.  
  308. -
  309.     protected $_tableAliases    = array();
  310. -
  311.     /**
  312. -
  313.      * @var array $_tableAliasSeeds         A simple array keys representing table aliases and values
  314. -
  315.      *                                       as table alias seeds. The seeds are used for generating short table
  316. -
  317.      *                                       aliases.
  318. -
  319.      */
  320. -
  321.     protected $_tableAliasSeeds = array();
  322. -
  323.     /**
  324. -
  325.      * constructor
  326. -
  327.      *
  328. -
  329.      * @param Doctrine_Connection|null$connection 
  330. -
  331.      */
  332. -
  333.     public function __construct($connection null)
  334. -
  335.     {
  336. -
  337.         if ($connection instanceof Doctrine_Connection)) {
  338. -
  339.             $connection Doctrine_Manager::getInstance()->getCurrentConnection();
  340. -
  341.         }
  342. -
  343.         $this->_conn = $connection;
  344. -
  345.     }
  346. -
  347.     /**
  348. -
  349.      * getRootAlias
  350. -
  351.      * returns the alias of the the root component
  352. -
  353.      *
  354. -
  355.      * @return array 
  356. -
  357.      */
  358. -
  359.     public function getRootAlias()
  360. -
  361.     {
  362. -
  363.         if (!$this->_aliasMap{
  364. -
  365.           $this->getSql();
  366. -
  367.         }
  368. -
  369.         
  370. -
  371.         reset($this->_aliasMap);
  372. -
  373.  
  374. -
  375.         return key($this->_aliasMap);
  376. -
  377.     }
  378. -
  379.     /**
  380. -
  381.      * getRootDeclaration
  382. -
  383.      * returns the root declaration
  384. -
  385.      *
  386. -
  387.      * @return array 
  388. -
  389.      */
  390. -
  391.     public function getRootDeclaration()
  392. -
  393.     {
  394. -
  395.         $map reset($this->_aliasMap);
  396. -
  397.  
  398. -
  399.         return $map;
  400. -
  401.     }
  402. -
  403.     /**
  404. -
  405.      * getRoot
  406. -
  407.      * returns the root component for this object
  408. -
  409.      *
  410. -
  411.      * @return Doctrine_Table       root components table
  412. -
  413.      */
  414. -
  415.     public function getRoot()
  416. -
  417.     {
  418. -
  419.         $map reset($this->_aliasMap);
  420. -
  421.  
  422. -
  423.         if isset($map['table'])) {
  424. -
  425.             throw new Doctrine_Hydrate_Exception('Root component not initialized.');
  426. -
  427.         }
  428. -
  429.  
  430. -
  431.         return $map['table'];
  432. -
  433.     }
  434. -
  435.     /**
  436. -
  437.      * getSql
  438. -
  439.      * return the sql associated with this object
  440. -
  441.      *
  442. -
  443.      * @return string   sql query string
  444. -
  445.      */
  446. -
  447.     public function getSql()
  448. -
  449.     {
  450. -
  451.         return $this->getQuery();
  452. -
  453.     }
  454. -
  455.     /**
  456. -
  457.      * useCache
  458. -
  459.      *
  460. -
  461.      * @param Doctrine_Cache_Interface|bool$driver      cache driver
  462. -
  463.      * @param integer $timeToLive                        how long the cache entry is valid
  464. -
  465.      * @return Doctrine_Hydrate         this object
  466. -
  467.      */
  468. -
  469.     public function useCache($driver true$timeToLive null)
  470. -
  471.     {
  472. -
  473.         if ($driver !== null{
  474. -
  475.             if ($driver !== true{
  476. -
  477.                 if ($driver instanceof Doctrine_Cache_Interface)) {
  478. -
  479.                     $msg 'First argument should be instance of Doctrine_Cache_Interface or null.';
  480. -
  481.  
  482. -
  483.                     throw new Doctrine_Hydrate_Exception($msg);
  484. -
  485.                 }
  486. -
  487.             }
  488. -
  489.         }
  490. -
  491.         $this->_cache = $driver;
  492. -
  493.  
  494. -
  495.         return $this->setCacheLifeSpan($timeToLive);
  496. -
  497.     }
  498. -
  499.     /**
  500. -
  501.      * expireCache
  502. -
  503.      *
  504. -
  505.      * @param boolean $expire       whether or not to force cache expiration
  506. -
  507.      * @return Doctrine_Hydrate     this object
  508. -
  509.      */
  510. -
  511.     public function expireCache($expire true)
  512. -
  513.     {
  514. -
  515.         $this->_expireCache = true;
  516. -
  517.  
  518. -
  519.         return $this;
  520. -
  521.     }
  522. -
  523.     /**
  524. -
  525.      * setCacheLifeSpan
  526. -
  527.      *
  528. -
  529.      * @param integer $timeToLive   how long the cache entry is valid
  530. -
  531.      * @return Doctrine_Hydrate     this object
  532. -
  533.      */
  534. -
  535.     public function setCacheLifeSpan($timeToLive)
  536. -
  537.     {
  538. -
  539.         if ($timeToLive !== null{
  540. -
  541.             $timeToLive = (int) $timeToLive;
  542. -
  543.         }
  544. -
  545.         $this->_timeToLive = $timeToLive;
  546. -
  547.  
  548. -
  549.         return $this;
  550. -
  551.     }
  552. -
  553.     /**
  554. -
  555.      * getCacheDriver
  556. -
  557.      * returns the cache driver associated with this object
  558. -
  559.      *
  560. -
  561.      * @return Doctrine_Cache_Interface|boolean|null   cache driver
  562. -
  563.      */
  564. -
  565.     public function getCacheDriver()
  566. -
  567.     {
  568. -
  569.         if ($this->_cache instanceof Doctrine_Cache_Interface{
  570. -
  571.             return $this->_cache;
  572. -
  573.         else {
  574. -
  575.             return $this->_conn->getCacheDriver();
  576. -
  577.         }
  578. -
  579.     }
  580. -
  581.     /**
  582. -
  583.      * Sets the fetchmode.
  584. -
  585.      *
  586. -
  587.      * @param integer $fetchmode  One of the Doctrine_Hydrate::HYDRATE_* constants.
  588. -
  589.      */
  590. -
  591.     public function setHydrationMode($hydrationMode)
  592. -
  593.     {
  594. -
  595.         $this->_hydrationMode = $hydrationMode;
  596. -
  597.         return $this;
  598. -
  599.     }
  600. -
  601.     /**
  602. -
  603.      * serialize
  604. -
  605.      * this method is automatically called when this Doctrine_Hydrate is serialized
  606. -
  607.      *
  608. -
  609.      * @return array    an array of serialized properties
  610. -
  611.      */
  612. -
  613.     public function serialize()
  614. -
  615.     {
  616. -
  617.         $vars get_object_vars($this);
  618. -
  619.  
  620. -
  621.     }
  622. -
  623.     /**
  624. -
  625.      * unseralize
  626. -
  627.      * this method is automatically called everytime a Doctrine_Hydrate object is unserialized
  628. -
  629.      *
  630. -
  631.      * @param string $serialized                Doctrine_Record as serialized string
  632. -
  633.      * @return void 
  634. -
  635.      */
  636. -
  637.     public function unserialize($serialized)
  638. -
  639.     {
  640. -
  641.  
  642. -
  643.     }
  644. -
  645.     /**
  646. -
  647.      * generateNewTableAlias
  648. -
  649.      * generates a new alias from given table alias
  650. -
  651.      *
  652. -
  653.      * @param string $tableAlias    table alias from which to generate the new alias from
  654. -
  655.      * @return string               the created table alias
  656. -
  657.      */
  658. -
  659.     public function generateNewTableAlias($tableAlias)
  660. -
  661.     {
  662. -
  663.         if (isset($this->_tableAliases[$tableAlias])) {
  664. -
  665.             // generate a new alias
  666. -
  667.             $name substr($tableAlias01);
  668. -
  669.             $i    ((int) substr($tableAlias1));
  670. -
  671.  
  672. -
  673.             if ($i == 0{
  674. -
  675.                 $i 1;
  676. -
  677.             }
  678. -
  679.  
  680. -
  681.             $newIndex  ($this->_tableAliasSeeds[$name$i);
  682. -
  683.  
  684. -
  685.             return $name $newIndex;
  686. -
  687.         }
  688. -
  689.  
  690. -
  691.         return $tableAlias;
  692. -
  693.     }
  694. -
  695.     /**
  696. -
  697.      * hasTableAlias
  698. -
  699.      * whether or not this object has given tableAlias
  700. -
  701.      *
  702. -
  703.      * @param string $tableAlias    the table alias to be checked
  704. -
  705.      * @return boolean              true if this object has given alias, otherwise false
  706. -
  707.      */
  708. -
  709.     public function hasTableAlias($tableAlias)
  710. -
  711.     {
  712. -
  713.         return (isset($this->_tableAliases[$tableAlias]));
  714. -
  715.     }
  716. -
  717.     /**
  718. -
  719.      * getComponentAlias
  720. -
  721.      * get component alias associated with given table alias
  722. -
  723.      *
  724. -
  725.      * @param string $tableAlias    the table alias that identifies the component alias
  726. -
  727.      * @return string               component alias
  728. -
  729.      */
  730. -
  731.     public function getComponentAlias($tableAlias)
  732. -
  733.     {
  734. -
  735.         if isset($this->_tableAliases[$tableAlias])) {
  736. -
  737.             throw new Doctrine_Hydrate_Exception('Unknown table alias ' $tableAlias);
  738. -
  739.         }
  740. -
  741.         return $this->_tableAliases[$tableAlias];
  742. -
  743.     }
  744. -
  745.     /**
  746. -
  747.      * getTableAliasSeed
  748. -
  749.      * returns the alias seed for given table alias
  750. -
  751.      *
  752. -
  753.      * @param string $tableAlias    table alias that identifies the alias seed
  754. -
  755.      * @return integer              table alias seed
  756. -
  757.      */
  758. -
  759.     public function getTableAliasSeed($tableAlias)
  760. -
  761.     {
  762. -
  763.         if isset($this->_tableAliasSeeds[$tableAlias])) {
  764. -
  765.             return 0;
  766. -
  767.         }
  768. -
  769.         return $this->_tableAliasSeeds[$tableAlias];
  770. -
  771.     }
  772. -
  773.     /**
  774. -
  775.      * generateTableAlias
  776. -
  777.      * generates a table alias from given table name and associates
  778. -
  779.      * it with given component alias
  780. -
  781.      *
  782. -
  783.      * @param string $componentAlias    the component alias to be associated with generated table alias
  784. -
  785.      * @param string $tableName         the table name from which to generate the table alias
  786. -
  787.      * @return string                   the generated table alias
  788. -
  789.      */
  790. -
  791.     public function generateTableAlias($componentAlias$tableName)
  792. -
  793.     {
  794. -
  795.         $char   strtolower(substr($tableName01));
  796. -
  797.  
  798. -
  799.         $alias  $char;
  800. -
  801.  
  802. -
  803.         if isset($this->_tableAliasSeeds[$alias])) {
  804. -
  805.             $this->_tableAliasSeeds[$alias1;
  806. -
  807.         }
  808. -
  809.  
  810. -
  811.         while (isset($this->_tableAliases[$alias])) {
  812. -
  813.             if isset($this->_tableAliasSeeds[$alias])) {
  814. -
  815.                 $this->_tableAliasSeeds[$alias1;
  816. -
  817.             }
  818. -
  819.             $alias $char . ++$this->_tableAliasSeeds[$alias];
  820. -
  821.         }
  822. -
  823.  
  824. -
  825.         $this->_tableAliases[$alias$componentAlias;
  826. -
  827.  
  828. -
  829.         return $alias;
  830. -
  831.     }
  832. -
  833.     /**
  834. -
  835.      * getTableAliases
  836. -
  837.      * returns all table aliases
  838. -
  839.      *
  840. -
  841.      * @return array        table aliases as an array
  842. -
  843.      */
  844. -
  845.     public function getTableAliases()
  846. -
  847.     {
  848. -
  849.         return $this->_tableAliases;
  850. -
  851.     }
  852. -
  853.     /** 
  854. -
  855.      * addTableAlias
  856. -
  857.      * adds an alias for table and associates it with given component alias
  858. -
  859.      *
  860. -
  861.      * @param string $componentAlias    the alias for the query component associated with given tableAlias
  862. -
  863.      * @param string $tableAlias        the table alias to be added
  864. -
  865.      * @return Doctrine_Hydrate 
  866. -
  867.      */
  868. -
  869.     public function addTableAlias($tableAlias$componentAlias)
  870. -
  871.     {
  872. -
  873.         $this->_tableAliases[$tableAlias$componentAlias;
  874. -
  875.  
  876. -
  877.         return $this;
  878. -
  879.     }
  880. -
  881.     /**
  882. -
  883.      * getTableAlias
  884. -
  885.      * some database such as Oracle need the identifier lengths to be < ~30 chars
  886. -
  887.      * hence Doctrine creates as short identifier aliases as possible
  888. -
  889.      *
  890. -
  891.      * this method is used for the creation of short table aliases, its also
  892. -
  893.      * smart enough to check if an alias already exists for given component (componentAlias)
  894. -
  895.      *
  896. -
  897.      * @param string $componentAlias    the alias for the query component to search table alias for
  898. -
  899.      * @param string $tableName         the table name from which the table alias is being created
  900. -
  901.      * @return string                   the generated / fetched short alias
  902. -
  903.      */
  904. -
  905.     public function getTableAlias($componentAlias$tableName null)
  906. -
  907.     {
  908. -
  909.         $alias array_search($componentAlias$this->_tableAliases);
  910. -
  911.  
  912. -
  913.         if ($alias !== false{
  914. -
  915.             return $alias;
  916. -
  917.         }
  918. -
  919.  
  920. -
  921.         if ($tableName === null{
  922. -
  923.             throw new Doctrine_Hydrate_Exception("Couldn't get short alias for " $componentAlias);
  924. -
  925.         }
  926. -
  927.  
  928. -
  929.         return $this->generateTableAlias($componentAlias$tableName);
  930. -
  931.     }
  932. -
  933.     /**
  934. -
  935.      * addQueryPart
  936. -
  937.      * adds a query part in the query part array
  938. -
  939.      *
  940. -
  941.      * @param string $name          the name of the query part to be added
  942. -
  943.      * @param string $part          query part string
  944. -
  945.      * @throws Doctrine_Hydrate_Exception   if trying to add unknown query part
  946. -
  947.      * @return Doctrine_Hydrate     this object
  948. -
  949.      */
  950. -
  951.     public function addQueryPart($name$part)
  952. -
  953.     {
  954. -
  955.         if isset($this->parts[$name])) {
  956. -
  957.             throw new Doctrine_Hydrate_Exception('Unknown query part ' $name);
  958. -
  959.         }
  960. -
  961.         if (is_array($part)) {
  962. -
  963.             $this->parts[$namearray_merge($this->parts[$name]$part);
  964. -
  965.         else {
  966. -
  967.             $this->parts[$name][$part;
  968. -
  969.         }
  970. -
  971.         return $this;
  972. -
  973.     }
  974. -
  975.     /**
  976. -
  977.      * setQueryPart
  978. -
  979.      * sets a query part in the query part array
  980. -
  981.      *
  982. -
  983.      * @param string $name          the name of the query part to be set
  984. -
  985.      * @param string $part          query part string
  986. -
  987.      * @throws Doctrine_Hydrate_Exception   if trying to set unknown query part
  988. -
  989.      * @return Doctrine_Hydrate     this object
  990. -
  991.      */
  992. -
  993.     public function getQueryPart($part)
  994. -
  995.     {
  996. -
  997.         if isset($this->parts[$part])) {
  998. -
  999.             throw new Doctrine_Hydrate_Exception('Unknown query part ' $part);
  1000. -
  1001.         }
  1002. -
  1003.  
  1004. -
  1005.         return $this->parts[$part];
  1006. -
  1007.     }
  1008. -
  1009.     /**
  1010. -
  1011.      * removeQueryPart
  1012. -
  1013.      * removes a query part from the query part array
  1014. -
  1015.      *
  1016. -
  1017.      * @param string $name          the name of the query part to be removed
  1018. -
  1019.      * @throws Doctrine_Hydrate_Exception   if trying to remove unknown query part
  1020. -
  1021.      * @return Doctrine_Hydrate     this object
  1022. -
  1023.      */
  1024. -
  1025.     public function removeQueryPart($name)
  1026. -
  1027.     {
  1028. -
  1029.         if (isset($this->parts[$name])) {
  1030. -
  1031.             if ($name == 'limit' || $name == 'offset'{
  1032. -
  1033.                 $this->parts[$namefalse;
  1034. -
  1035.             else {
  1036. -
  1037.                 $this->parts[$namearray();
  1038. -
  1039.             }
  1040. -
  1041.         else {
  1042. -
  1043.             throw new Doctrine_Hydrate_Exception('Unknown query part ' $name);
  1044. -
  1045.         }
  1046. -
  1047.         return $this;
  1048. -
  1049.     }
  1050. -
  1051.     /**
  1052. -
  1053.      * setQueryPart
  1054. -
  1055.      * sets a query part in the query part array
  1056. -
  1057.      *
  1058. -
  1059.      * @param string $name          the name of the query part to be set
  1060. -
  1061.      * @param string $part          query part string
  1062. -
  1063.      * @throws Doctrine_Hydrate_Exception   if trying to set unknown query part
  1064. -
  1065.      * @return Doctrine_Hydrate     this object
  1066. -
  1067.      */
  1068. -
  1069.     public function setQueryPart($name$part)
  1070. -
  1071.     {
  1072. -
  1073.         if isset($this->parts[$name])) {
  1074. -
  1075.             throw new Doctrine_Hydrate_Exception('Unknown query part ' $name);
  1076. -
  1077.         }
  1078. -
  1079.  
  1080. -
  1081.         if ($name !== 'limit' && $name !== 'offset'{
  1082. -
  1083.             if (is_array($part)) {
  1084. -
  1085.                 $this->parts[$name$part;
  1086. -
  1087.             else {
  1088. -
  1089.                 $this->parts[$namearray($part);
  1090. -
  1091.             }
  1092. -
  1093.         else {
  1094. -
  1095.             $this->parts[$name$part;
  1096. -
  1097.         }
  1098. -
  1099.  
  1100. -
  1101.         return $this;
  1102. -
  1103.     }
  1104. -
  1105.     /**
  1106. -
  1107.      * hasAliasDeclaration
  1108. -
  1109.      * whether or not this object has a declaration for given component alias
  1110. -
  1111.      *
  1112. -
  1113.      * @param string $componentAlias    the component alias the retrieve the declaration from
  1114. -
  1115.      * @return boolean 
  1116. -
  1117.      */
  1118. -
  1119.     public function hasAliasDeclaration($componentAlias)
  1120. -
  1121.     {
  1122. -
  1123.         return isset($this->_aliasMap[$componentAlias]);
  1124. -
  1125.     }
  1126. -
  1127.     /**
  1128. -
  1129.      * getAliasDeclaration
  1130. -
  1131.      * get the declaration for given component alias
  1132. -
  1133.      *
  1134. -
  1135.      * @param string $componentAlias    the component alias the retrieve the declaration from
  1136. -
  1137.      * @return array                    the alias declaration
  1138. -
  1139.      */
  1140. -
  1141.     public function getAliasDeclaration($componentAlias)
  1142. -
  1143.     {
  1144. -
  1145.         if isset($this->_aliasMap[$componentAlias])) {
  1146. -
  1147.             throw new Doctrine_Hydrate_Exception('Unknown component alias ' $componentAlias);
  1148. -
  1149.         }
  1150. -
  1151.  
  1152. -
  1153.         return $this->_aliasMap[$componentAlias];
  1154. -
  1155.     }
  1156. -
  1157.     /**
  1158. -
  1159.      * copyAliases
  1160. -
  1161.      * copy aliases from another Hydrate object
  1162. -
  1163.      *
  1164. -
  1165.      * this method is needed by DQL subqueries which need the aliases
  1166. -
  1167.      * of the parent query
  1168. -
  1169.      *
  1170. -
  1171.      * @param Doctrine_Hydrate $query   the query object from which the
  1172. -
  1173.      *                                   aliases are copied from
  1174. -
  1175.      * @return Doctrine_Hydrate         this object
  1176. -
  1177.      */
  1178. -
  1179.     public function copyAliases(Doctrine_Hydrate $query)
  1180. -
  1181.     {
  1182. -
  1183.         $this->_tableAliases = $query->_tableAliases;
  1184. -
  1185.         $this->_aliasMap     = $query->_aliasMap;
  1186. -
  1187.         $this->_tableAliasSeeds = $query->_tableAliasSeeds;
  1188. -
  1189.         return $this;
  1190. -
  1191.     }
  1192. -
  1193.     /**
  1194. -
  1195.      * createSubquery
  1196. -
  1197.      * creates a subquery
  1198. -
  1199.      *
  1200. -
  1201.      * @return Doctrine_Hydrate 
  1202. -
  1203.      */
  1204. -
  1205.     public function createSubquery()
  1206. -
  1207.     {
  1208. -
  1209.         $class get_class($this);
  1210. -
  1211.         $obj   new $class();
  1212. -
  1213.  
  1214. -
  1215.         // copy the aliases to the subquery
  1216. -
  1217.         $obj->copyAliases($this);
  1218. -
  1219.  
  1220. -
  1221.         // this prevents the 'id' being selected, re ticket #307
  1222. -
  1223.         $obj->isSubquery(true);
  1224. -
  1225.  
  1226. -
  1227.         return $obj;
  1228. -
  1229.     }
  1230. -
  1231.     /**
  1232. -
  1233.      * limitSubqueryUsed
  1234. -
  1235.      * whether or not limit subquery was used
  1236. -
  1237.      *
  1238. -
  1239.      * @return boolean 
  1240. -
  1241.      */
  1242. -
  1243.     public function isLimitSubqueryUsed()
  1244. -
  1245.     {
  1246. -
  1247.         return false;
  1248. -
  1249.     }
  1250. -
  1251.     /**
  1252. -
  1253.      * clear
  1254. -
  1255.      * resets all the variables
  1256. -
  1257.      *
  1258. -
  1259.      * @return void 
  1260. -
  1261.      */
  1262. -
  1263.     protected function clear()
  1264. -
  1265.     {
  1266. -
  1267.         $this->parts = array(
  1268. -
  1269.                     'select'    => array(),
  1270. -
  1271.                     'distinct'  => false,
  1272. -
  1273.                     'forUpdate' => false,
  1274. -
  1275.                     'from'      => array(),
  1276. -
  1277.                     'set'       => array(),
  1278. -
  1279.                     'join'      => array(),
  1280. -
  1281.                     'where'     => array(),
  1282. -
  1283.                     'groupby'   => array(),
  1284. -
  1285.                     'having'    => array(),
  1286. -
  1287.                     'orderby'   => array(),
  1288. -
  1289.                     'limit'     => false,
  1290. -
  1291.                     'offset'    => false,
  1292. -
  1293.                     );
  1294. -
  1295.         $this->inheritanceApplied false;
  1296. -
  1297.     }
  1298. -
  1299.     /**
  1300. -
  1301.      * getConnection
  1302. -
  1303.      *
  1304. -
  1305.      * @return Doctrine_Connection 
  1306. -
  1307.      */
  1308. -
  1309.     public function getConnection()
  1310. -
  1311.     {
  1312. -
  1313.         return $this->_conn;
  1314. -
  1315.     }
  1316. -
  1317.     /**
  1318. -
  1319.      * setView
  1320. -
  1321.      * sets a database view this query object uses
  1322. -
  1323.      * this method should only be called internally by doctrine
  1324. -
  1325.      *
  1326. -
  1327.      * @param Doctrine_View $view       database view
  1328. -
  1329.      * @return void 
  1330. -
  1331.      */
  1332. -
  1333.     public function setView(Doctrine_View $view)
  1334. -
  1335.     {
  1336. -
  1337.         $this->_view = $view;
  1338. -
  1339.     }
  1340. -
  1341.     /**
  1342. -
  1343.      * getView
  1344. -
  1345.      * returns the view associated with this query object (if any)
  1346. -
  1347.      *
  1348. -
  1349.      * @return Doctrine_View        the view associated with this query object
  1350. -
  1351.      */
  1352. -
  1353.     public function getView()
  1354. -
  1355.     {
  1356. -
  1357.         return $this->_view;
  1358. -
  1359.     }
  1360. -
  1361.     /**
  1362. -
  1363.      * getParams
  1364. -
  1365.      *
  1366. -
  1367.      * @return array 
  1368. -
  1369.      */
  1370. -
  1371.     public function getParams()
  1372. -
  1373.     {
  1374. -
  1375.         return $this->_params;
  1376. -
  1377.     }
  1378. -
  1379.     /**
  1380. -
  1381.      * setParams
  1382. -
  1383.      *
  1384. -
  1385.      * @param array $params 
  1386. -
  1387.      */
  1388. -
  1389.     public function setParams(array $params array()) {
  1390. -
  1391.         $this->_params = $params;
  1392. -
  1393.     }
  1394. -
  1395.     public function convertEnums($params)
  1396. -
  1397.     {
  1398. -
  1399.         return $params;
  1400. -
  1401.     }
  1402. -
  1403.     /**
  1404. -
  1405.      * setAliasMap
  1406. -
  1407.      * sets the whole component alias map
  1408. -
  1409.      *
  1410. -
  1411.      * @param array $map            alias map
  1412. -
  1413.      * @return Doctrine_Hydrate     this object
  1414. -
  1415.      */
  1416. -
  1417.     public function setAliasMap(array $map)
  1418. -
  1419.     {
  1420. -
  1421.         $this->_aliasMap $map;
  1422. -
  1423.  
  1424. -
  1425.         return $this;
  1426. -
  1427.     }
  1428. -
  1429.     /**
  1430. -
  1431. /**
  1432. -
  1433.      * getAliasMap
  1434. -
  1435.      * returns the component alias map
  1436. -
  1437.      *
  1438. -
  1439.      * @return array    component alias map
  1440. -
  1441.      */
  1442. -
  1443.     public function getAliasMap()
  1444. -
  1445.     {
  1446. -
  1447.         return $this->_aliasMap;
  1448. -
  1449.     }
  1450. -
  1451.     /**
  1452. -
  1453.      * getCachedForm
  1454. -
  1455.      * returns the cached form of this query for given resultSet
  1456. -
  1457.      *
  1458. -
  1459.      * @param array $resultSet 
  1460. -
  1461.      * @return string           serialized string representation of this query
  1462. -
  1463.      */
  1464. -
  1465.     public function getCachedForm(array $resultSet)
  1466. -
  1467.     {
  1468. -
  1469.         $map '';
  1470. -
  1471.  
  1472. -
  1473.         foreach ($this->getAliasMap(as $k => $v{
  1474. -
  1475.             if isset($v['parent'])) {
  1476. -
  1477.                 $map[$k][$v['table']->getComponentName();
  1478. -
  1479.             else {
  1480. -
  1481.                 $map[$k][$v['parent''.' $v['relation']->getAlias();
  1482. -
  1483.             }
  1484. -
  1485.             if (isset($v['agg'])) {
  1486. -
  1487.                 $map[$k][$v['agg'];
  1488. -
  1489.             }
  1490. -
  1491.         }
  1492. -
  1493.  
  1494. -
  1495.         return serialize(array($resultSet$map$this->getTableAliases()));
  1496. -
  1497.     }
  1498. -
  1499.     public function _execute($params)
  1500. -
  1501.     {
  1502. -
  1503.         $params $this->_conn->convertBooleans(array_merge($this->_params$params));
  1504. -
  1505.  
  1506. -
  1507.         if $this->_view{
  1508. -
  1509.             $query $this->getQuery($params);
  1510. -
  1511.         else {
  1512. -
  1513.             $query $this->_view->getSelectSql();
  1514. -
  1515.         }
  1516. -
  1517.  
  1518. -
  1519.         $params $this->convertEnums($params);
  1520. -
  1521.  
  1522. -
  1523.         if ($this->isLimitSubqueryUsed(&&
  1524. -
  1525.             $this->_conn->getAttribute(Doctrine::ATTR_DRIVER_NAME!== 'mysql'{
  1526. -
  1527.  
  1528. -
  1529.             $params array_merge($params$params);
  1530. -
  1531.         }
  1532. -
  1533.  
  1534. -
  1535.         if ($this->type !== self::SELECT{
  1536. -
  1537.             return $this->_conn->exec($query$params);
  1538. -
  1539.         }
  1540. -
  1541.  
  1542. -
  1543.         $stmt $this->_conn->execute($query$params);
  1544. -
  1545.         return $stmt;
  1546. -
  1547.     }
  1548. -
  1549.     /**
  1550. -
  1551.      * execute
  1552. -
  1553.      * executes the query and populates the data set
  1554. -
  1555.      *
  1556. -
  1557.      * @param string $params 
  1558. -
  1559.      * @return Doctrine_Collection            the root collection
  1560. -
  1561.      */
  1562. -
  1563.     public function execute($params array()$hydrationMode null)
  1564. -
  1565.     {
  1566. -
  1567.         if ($this->_cache{
  1568. -
  1569.             $cacheDriver $this->getCacheDriver();
  1570. -
  1571.  
  1572. -
  1573.             $dql  $this->getDql();
  1574. -
  1575.             // calculate hash for dql query
  1576. -
  1577.             $hash md5($dql var_export($paramstrue));
  1578. -
  1579.  
  1580. -
  1581.             $cached ($this->_expireCachenull $cacheDriver->fetch($hash);
  1582. -
  1583.  
  1584. -
  1585.  
  1586. -
  1587.             if ($cached === null{
  1588. -
  1589.                 // cache miss
  1590. -
  1591.                 $stmt $this->_execute($params);
  1592. -
  1593.                 $array $this->parseData2($stmtself::HYDRATE_ARRAY);
  1594. -
  1595.  
  1596. -
  1597.                 $cached $this->getCachedForm($array);
  1598. -
  1599.  
  1600. -
  1601.                 $cacheDriver->save($hash$cached$this->_timeToLive);
  1602. -
  1603.             else {
  1604. -
  1605.                 $cached unserialize($cached);
  1606. -
  1607.                 $this->_tableAliases $cached[2];
  1608. -
  1609.                 $array $cached[0];
  1610. -
  1611.  
  1612. -
  1613.                 $map   array();
  1614. -
  1615.                 foreach ($cached[1as $k => $v{
  1616. -
  1617.                     $e explode('.'$v[0]);
  1618. -
  1619.                     if (count($e=== 1{
  1620. -
  1621.                         $map[$k]['table'$this->_conn->getTable($e[0]);
  1622. -
  1623.                     else {
  1624. -
  1625.                         $map[$k]['parent']   $e[0];
  1626. -
  1627.                         $map[$k]['relation'$map[$e[0]]['table']->getRelation($e[1]);
  1628. -
  1629.                         $map[$k]['table']    $map[$k]['relation']->getTable();
  1630. -
  1631.                     }
  1632. -
  1633.                     if (isset($v[1])) {
  1634. -
  1635.                         $map[$k]['agg'$v[1];
  1636. -
  1637.                     }
  1638. -
  1639.                 }
  1640. -
  1641.                 $this->_aliasMap $map;
  1642. -
  1643.             }
  1644. -
  1645.         else {
  1646. -
  1647.             $stmt $this->_execute($params);
  1648. -
  1649.  
  1650. -
  1651.             if (is_integer($stmt)) {
  1652. -
  1653.                 return $stmt;
  1654. -
  1655.             }
  1656. -
  1657.  
  1658. -
  1659.             $array $this->parseData2($stmt$hydrationMode);
  1660. -
  1661.         }
  1662. -
  1663.         return $array;
  1664. -
  1665.     }
  1666. -
  1667.  
  1668. -
  1669.     /**
  1670. -
  1671.      * getType
  1672. -
  1673.      *
  1674. -
  1675.      * returns the type of this query object
  1676. -
  1677.      * by default the type is Doctrine_Hydrate::SELECT but if update() or delete()
  1678. -
  1679.      * are being called the type is Doctrine_Hydrate::UPDATE and Doctrine_Hydrate::DELETE,
  1680. -
  1681.      * respectively
  1682. -
  1683.      *
  1684. -
  1685.      * @see Doctrine_Hydrate::SELECT
  1686. -
  1687.      * @see Doctrine_Hydrate::UPDATE
  1688. -
  1689.      * @see Doctrine_Hydrate::DELETE
  1690. -
  1691.      *
  1692. -
  1693.      * @return integer      return the query type
  1694. -
  1695.      */
  1696. -
  1697.     public function getType()
  1698. -
  1699.     {
  1700. -
  1701.         return $this->type;
  1702. -
  1703.     }
  1704. -
  1705.     /**
  1706. -
  1707.      * applyInheritance
  1708. -
  1709.      * applies column aggregation inheritance to DQL / SQL query
  1710. -
  1711.      *
  1712. -
  1713.      * @return string 
  1714. -
  1715.      */
  1716. -
  1717.     public function applyInheritance()
  1718. -
  1719.     {
  1720. -
  1721.         // get the inheritance maps
  1722. -
  1723.         $array array();
  1724. -
  1725.  
  1726. -
  1727.         foreach ($this->_aliasMap as $componentAlias => $data{
  1728. -
  1729.             $tableAlias $this->getTableAlias($componentAlias);
  1730. -
  1731.             $array[$tableAlias][$data['table']->inheritanceMap;
  1732. -
  1733.         }
  1734. -
  1735.  
  1736. -
  1737.         // apply inheritance maps
  1738. -
  1739.         $str '';
  1740. -
  1741.         $c array();
  1742. -
  1743.  
  1744. -
  1745.         $index 0;
  1746. -
  1747.         foreach ($array as $tableAlias => $maps{
  1748. -
  1749.             $a array();
  1750. -
  1751.  
  1752. -
  1753.             // don't use table aliases if the query isn't a select query
  1754. -
  1755.             if ($this->type !== Doctrine_Query::SELECT{
  1756. -
  1757.                 $tableAlias '';
  1758. -
  1759.             else {
  1760. -
  1761.                 $tableAlias .= '.';
  1762. -
  1763.             }
  1764. -
  1765.  
  1766. -
  1767.             foreach ($maps as $map{
  1768. -
  1769.                 $b array();
  1770. -
  1771.                 foreach ($map as $field => $value{
  1772. -
  1773.                     $identifier $this->_conn->quoteIdentifier($tableAlias $field);
  1774. -
  1775.  
  1776. -
  1777.                     if ($index 0{
  1778. -
  1779.                         $b['(' $identifier ' = ' $this->_conn->quote($value)
  1780. -
  1781.                              . ' OR ' $identifier ' IS NULL)';
  1782. -
  1783.                     else {
  1784. -
  1785.                         $b[$identifier ' = ' $this->_conn->quote($value);
  1786. -
  1787.                     }
  1788. -
  1789.                 }
  1790. -
  1791.  
  1792. -
  1793.                 if empty($b)) {
  1794. -
  1795.                     $a[implode(' AND '$b);
  1796. -
  1797.                 }
  1798. -
  1799.             }
  1800. -
  1801.  
  1802. -
  1803.             if empty($a)) {
  1804. -
  1805.                 $c[implode(' AND '$a);
  1806. -
  1807.             }
  1808. -
  1809.             $index++;
  1810. -
  1811.         }
  1812. -
  1813.  
  1814. -
  1815.         $str .= implode(' AND '$c);
  1816. -
  1817.  
  1818. -
  1819.         return $str;
  1820. -
  1821.     }
  1822. -
  1823.     /**
  1824. -
  1825.      * fetchArray
  1826. -
  1827.      * Convenience method to execute using array fetching as hydration mode.
  1828. -
  1829.      *
  1830. -
  1831.      * @param string $params 
  1832. -
  1833.      * @return array 
  1834. -
  1835.      */
  1836. -
  1837.     public function fetchArray($params array()) {
  1838. -
  1839.         return $this->execute($paramsself::HYDRATE_ARRAY);
  1840. -
  1841.     }
  1842. -
  1843.     /**
  1844. -
  1845.      * fetchOne
  1846. -
  1847.      * Convenience method to execute the query and return the first item
  1848. -
  1849.      * of the collection.
  1850. -
  1851.      *
  1852. -
  1853.      * @param string $params Parameters
  1854. -
  1855.      * @param int $hydrationMode Hydration mode
  1856. -
  1857.      * @return mixed Array or Doctrine_Collection or false if no result.
  1858. -
  1859.      */
  1860. -
  1861.     public function fetchOne($params array()$hydrationMode null)
  1862. -
  1863.     {
  1864. -
  1865.         if (is_null($hydrationMode)) {
  1866. -
  1867.             $hydrationMode $this->_hydrationMode;
  1868. -
  1869.         }
  1870. -
  1871.  
  1872. -
  1873.         $collection $this->execute($params$hydrationMode);
  1874. -
  1875.  
  1876. -
  1877.         switch ($hydrationMode{
  1878. -
  1879.             case self::HYDRATE_RECORD:
  1880. -
  1881.                 if (count($collection0{
  1882. -
  1883.                     return $collection->getFirst();
  1884. -
  1885.                 }
  1886. -
  1887.             case self::HYDRATE_ARRAY:
  1888. -
  1889.                 if (!empty($collection[0])) {
  1890. -
  1891.                     return $collection[0];
  1892. -
  1893.                 }
  1894. -
  1895.         }
  1896. -
  1897.  
  1898. -
  1899.         return false;
  1900. -
  1901.     }
  1902. -
  1903.     /**
  1904. -
  1905.      * parseData
  1906. -
  1907.      * parses the data returned by statement object
  1908. -
  1909.      *
  1910. -
  1911.      * This is method defines the core of Doctrine object population algorithm
  1912. -
  1913.      * hence this method strives to be as fast as possible
  1914. -
  1915.      *
  1916. -
  1917.      * The key idea is the loop over the rowset only once doing all the needed operations
  1918. -
  1919.      * within this massive loop.
  1920. -
  1921.      *
  1922. -
  1923.      * @param mixed $stmt 
  1924. -
  1925.      * @return array 
  1926. -
  1927.      */
  1928. -
  1929.     public function parseData2($stmt$hydrationMode)
  1930. -
  1931.     {
  1932. -
  1933.  
  1934. -
  1935.         $cache array();
  1936. -
  1937.         $rootMap   reset($this->_aliasMap);
  1938. -
  1939.         $rootAlias key($this->_aliasMap);
  1940. -
  1941.         $componentName $rootMap['table']->getComponentName();
  1942. -
  1943.         $index 0;
  1944. -
  1945.         $incr  true;
  1946. -
  1947.         $lastAlias '';
  1948. -
  1949.         $currData  array();
  1950. -
  1951.  
  1952. -
  1953.         if ($hydrationMode === null{
  1954. -
  1955.             $hydrationMode $this->_hydrationMode;
  1956. -
  1957.         }
  1958. -
  1959.  
  1960. -
  1961.         if ($hydrationMode === self::HYDRATE_ARRAY{
  1962. -
  1963.             $driver new Doctrine_Hydrate_Array();
  1964. -
  1965.         else {
  1966. -
  1967.             $driver new Doctrine_Hydrate_Record();
  1968. -
  1969.         }
  1970. -
  1971.  
  1972. -
  1973.         $array $driver->getElementCollection($componentName);
  1974. -
  1975.         $identifiable array();
  1976. -
  1977.  
  1978. -
  1979.         if ($stmt === false || $stmt === 0{
  1980. -
  1981.             return $array;
  1982. -
  1983.         }
  1984. -
  1985.  
  1986. -
  1987.         while ($data $stmt->fetch(Doctrine::FETCH_ASSOC)) {
  1988. -
  1989.             $parse true;
  1990. -
  1991.  
  1992. -
  1993.             foreach ($data as $key => $value{
  1994. -
  1995.  
  1996. -
  1997.                 // The following little cache solution ensures that field aliases are
  1998. -
  1999.                 // parsed only once. This increases speed on large result sets by an order
  2000. -
  2001.                 // of magnitude.
  2002. -
  2003.                 if isset($cache[$key])) {
  2004. -
  2005.                     $e explode('__'$key);
  2006. -
  2007.                     $cache[$key]['field'$field strtolower(array_pop($e));
  2008. -
  2009.                     $cache[$key]['alias'$this->_tableAliases[strtolower(implode('__'$e))];
  2010. -
  2011.                 }
  2012. -
  2013.  
  2014. -
  2015.  
  2016. -
  2017.                 $map   $this->_aliasMap[$cache[$key]['alias']];
  2018. -
  2019.                 $table $map['table'];
  2020. -
  2021.                 $alias $cache[$key]['alias'];
  2022. -
  2023.                 $field $cache[$key]['field'];
  2024. -
  2025.  
  2026. -
  2027.                 if (isset($this->_aliasMap[$alias]['agg'][$field])) {
  2028. -
  2029.                     $field $this->_aliasMap[$alias]['agg'][$field];
  2030. -
  2031.                 }
  2032. -
  2033.  
  2034. -
  2035.  
  2036. -
  2037.                 $componentName  $map['table']->getComponentName();
  2038. -
  2039.                 if (isset($map['relation'])) {
  2040. -
  2041.                     $componentAlias $map['relation']->getAlias();
  2042. -
  2043.                 else {
  2044. -
  2045.                     $componentAlias $map['table']->getComponentName();
  2046. -
  2047.                 }
  2048. -
  2049.  
  2050. -
  2051.  
  2052. -
  2053.                 if isset($currData[$alias])) {
  2054. -
  2055.                     $currData[$aliasarray();
  2056. -
  2057.                 }
  2058. -
  2059.  
  2060. -
  2061.                 if isset($prev[$alias])) {
  2062. -
  2063.                     $prev[$aliasarray();
  2064. -
  2065.                 }
  2066. -
  2067.  
  2068. -
  2069.  
  2070. -
  2071.                 $skip false;
  2072. -
  2073.                 if (($alias !== $lastAlias || $parse&& empty($currData[$alias])) {
  2074. -
  2075.  
  2076. -
  2077.                     // component changed
  2078. -
  2079.                     $element $driver->getElement($currData[$alias]$componentName);
  2080. -
  2081.  
  2082. -
  2083.                     $oneToOne false;
  2084. -
  2085.  
  2086. -
  2087.                     if ($alias === $rootAlias{
  2088. -
  2089.                         // dealing with root component
  2090. -
  2091.  
  2092. -
  2093.                         $index $driver->search($element$array);
  2094. -
  2095.                         if ($index === false{
  2096. -
  2097.                             $array[$element;
  2098. -
  2099.                         }
  2100. -
  2101.  
  2102. -
  2103.                         $coll =$array;
  2104. -
  2105.                     else {
  2106. -
  2107.                         $parent   $map['parent'];
  2108. -
  2109.                         $relation $map['relation'];
  2110. -
  2111.  
  2112. -
  2113.                         if (!isset($prev[$parent])) {
  2114. -
  2115.                             break;
  2116. -
  2117.                         }
  2118. -
  2119.  
  2120. -
  2121.                         // check the type of the relation
  2122. -
  2123.                         if $relation->isOneToOne()) {
  2124. -
  2125.                             // initialize the collection
  2126. -
  2127.  
  2128. -
  2129.                             if ($driver->initRelated($prev[$parent]$componentAlias)) {
  2130. -
  2131.  
  2132. -
  2133.                                 // append element
  2134. -
  2135.                                 if (isset($identifiable[$alias])) {
  2136. -
  2137.                                     $index $driver->search($element$prev[$parent][$componentAlias]);
  2138. -
  2139.  
  2140. -
  2141.                                     if ($index === false{
  2142. -
  2143.                                         $prev[$parent][$componentAlias][$element;
  2144. -
  2145.                                     }
  2146. -
  2147.                                 }
  2148. -
  2149.                                 // register collection for later snapshots
  2150. -
  2151.                                 $driver->registerCollection($prev[$parent][$componentAlias]);
  2152. -
  2153.                             }
  2154. -
  2155.                         else {
  2156. -
  2157.                             if isset($identifiable[$alias])) {
  2158. -
  2159.                                 $prev[$parent][$componentAlias$driver->getNullPointer();
  2160. -
  2161.                             else {
  2162. -
  2163.                                 $prev[$parent][$componentAlias$element;
  2164. -
  2165.                             }
  2166. -
  2167.                             $oneToOne true;
  2168. -
  2169.                         }
  2170. -
  2171.                         $coll =$prev[$parent][$componentAlias];
  2172. -
  2173.                     }
  2174. -
  2175.  
  2176. -
  2177.                     $this->_setLastElement($prev$coll$index$alias$oneToOne);
  2178. -
  2179.  
  2180. -
  2181.                     $currData[$aliasarray();
  2182. -
  2183.                     $identifiable[$aliasnull;
  2184. -
  2185.                 }
  2186. -
  2187.  
  2188. -
  2189.  
  2190. -
  2191.  
  2192. -
  2193.                 $currData[$alias][$field$table->prepareValue($field$value);
  2194. -
  2195.                 $index false;
  2196. -
  2197.                 if ($value !== null{
  2198. -
  2199.                     $identifiable[$aliastrue;
  2200. -
  2201.                 }
  2202. -
  2203.                 $lastAlias $alias;
  2204. -
  2205.                 $parse false;
  2206. -
  2207.  
  2208. -
  2209.             }
  2210. -
  2211.         }
  2212. -
  2213.  
  2214. -
  2215.         foreach ($currData as $alias => $data{
  2216. -
  2217.             $table $this->_aliasMap[$alias]['table'];
  2218. -
  2219.             $componentName $table->getComponentName();
  2220. -
  2221.             // component changed       
  2222. -
  2223.  
  2224. -
  2225.             $element $driver->getElement($currData[$alias]$componentName);
  2226. -
  2227.  
  2228. -
  2229.             $oneToOne false;
  2230. -
  2231.  
  2232. -
  2233.             if ($alias === $rootAlias{
  2234. -
  2235.                 // dealing with root component
  2236. -
  2237.                 $index $driver->search($element$array);
  2238. -
  2239.                 if ($index === false{
  2240. -
  2241.                     $array[$element;
  2242. -
  2243.                 }
  2244. -
  2245.                 $coll =$array;
  2246. -
  2247.             else {
  2248. -
  2249.                 $parent   $this->_aliasMap[$alias]['parent'];
  2250. -
  2251.                 $relation $this->_aliasMap[$alias]['relation'];
  2252. -
  2253.                 $componentAlias $relation->getAlias();
  2254. -
  2255.  
  2256. -
  2257.                 if (!isset($prev[$parent])) {
  2258. -
  2259.                     break;
  2260. -
  2261.                 }
  2262. -
  2263.  
  2264. -
  2265.                 // check the type of the relation
  2266. -
  2267.                 if $relation->isOneToOne()) {
  2268. -
  2269.                     // initialize the collection
  2270. -
  2271.  
  2272. -
  2273.                     if ($driver->initRelated($prev[$parent]$componentAlias)) {
  2274. -
  2275.  
  2276. -
  2277.                         // append element
  2278. -
  2279.                         if (isset($identifiable[$alias])) {
  2280. -
  2281.                             $index $driver->search($element$prev[$parent][$componentAlias]);
  2282. -
  2283.  
  2284. -
  2285.                             if ($index === false{
  2286. -
  2287.                                 $prev[$parent][$componentAlias][$element;
  2288. -
  2289.                             }
  2290. -
  2291.                         }
  2292. -
  2293.                         // register collection for later snapshots
  2294. -
  2295.                         $driver->registerCollection($prev[$parent][$componentAlias]);
  2296. -
  2297.                     }
  2298. -
  2299.                 else {
  2300. -
  2301.                     if isset($identifiable[$alias])) {
  2302. -
  2303.                         $prev[$parent][$componentAlias$driver->getNullPointer();
  2304. -
  2305.                     else {
  2306. -
  2307.  
  2308. -
  2309.                         $prev[$parent][$componentAlias$element;
  2310. -
  2311.                     }
  2312. -
  2313.                     $oneToOne true;
  2314. -
  2315.                 }
  2316. -
  2317.                 $coll =$prev[$parent][$componentAlias];
  2318. -
  2319.             }
  2320. -
  2321.  
  2322. -
  2323.             $this->_setLastElement($prev$coll$index$alias$oneToOne);
  2324. -
  2325.  
  2326. -
  2327.             $index false;
  2328. -
  2329.             $currData[$aliasarray();
  2330. -
  2331.             unset($identifiable[$alias]);
  2332. -
  2333.         }
  2334. -
  2335.  
  2336. -
  2337.         $driver->flush();
  2338. -
  2339.  
  2340. -
  2341.         $stmt->closeCursor();
  2342. -
  2343.         return $array;
  2344. -
  2345.     }
  2346. -
  2347.     /**
  2348. -
  2349.      * _setLastElement
  2350. -
  2351.      *
  2352. -
  2353.      * sets the last element of given data array / collection
  2354. -
  2355.      * as previous element
  2356. -
  2357.      *
  2358. -
  2359.      * @param boolean|integer$index 
  2360. -
  2361.      * @return void 
  2362. -
  2363.      */
  2364. -
  2365.     public function _setLastElement(&$prev&$coll$index$alias$oneToOne)
  2366. -
  2367.     {
  2368. -
  2369.         if ($coll === self::$_null{
  2370. -
  2371.             return false;
  2372. -
  2373.         }
  2374. -
  2375.         if ($index !== false{
  2376. -
  2377.             $prev[$alias=$coll[$index];
  2378. -
  2379.         else {
  2380. -
  2381.             // first check the count (we do not want to get the last element
  2382. -
  2383.             // of an empty collection/array)
  2384. -
  2385.             if (count($coll0{
  2386. -
  2387.                 if (is_array($coll)) {
  2388. -
  2389.                     if ($oneToOne{
  2390. -
  2391.                         $prev[$alias=$coll;
  2392. -
  2393.                     else {
  2394. -
  2395.                         end($coll);
  2396. -
  2397.                         $prev[$alias=$coll[key($coll)];
  2398. -
  2399.                     }
  2400. -
  2401.                 else {
  2402. -
  2403.                     $prev[$alias$coll->getLast();
  2404. -
  2405.                 }
  2406. -
  2407.             else {
  2408. -
  2409.                 if (isset($prev[$alias])) {
  2410. -
  2411.                     unset($prev[$alias]);
  2412. -
  2413.                 }
  2414. -
  2415.             }
  2416. -
  2417.         }
  2418. -
  2419.     }
  2420. -
  2421.     /**
  2422. -
  2423.      * @return string                   returns a string representation of this object
  2424. -
  2425.      */
  2426. -
  2427.     public function __toString()
  2428. -
  2429.     {
  2430. -
  2431.         return Doctrine_Lib::formatSql($this->getQuery());
  2432. -
  2433.     }
  2434. -
  2435. }
  2436. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateArray.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateArray.php.html deleted file mode 100644 index dfecf7798..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateArray.php.html +++ /dev/null @@ -1,90 +0,0 @@ - -
-

Source for file Array.php

-

Documentation is available at Array.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hydrate_Array
  46. -
  47.  * defines an array fetching strategy for Doctrine_Hydrate
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision$
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     public function getElementCollection($component)
  71. -
  72.     {
  73. -
  74.         return array();
  75. -
  76.     }
  77. -
  78.     public function getElement(array $data$component)
  79. -
  80.     {
  81. -
  82.         return $data;
  83. -
  84.     }
  85. -
  86.     public function isIdentifiable(array $dataDoctrine_Table $table)
  87. -
  88.     {
  89. -
  90.         return empty($data));
  91. -
  92.     }
  93. -
  94.     public function registerCollection($coll)
  95. -
  96.     {
  97. -
  98.  
  99. -
  100.     }
  101. -
  102.     public function initRelated(array &$data$name)
  103. -
  104.     {
  105. -
  106.         if isset($data[$name])) {
  107. -
  108.             $data[$namearray();
  109. -
  110.         }
  111. -
  112.         return true;
  113. -
  114.     }
  115. -
  116.     public function getNullPointer(
  117. -
  118.     {
  119. -
  120.         return null;    
  121. -
  122.     }
  123. -
  124.     public function search(array $elementarray $data)
  125. -
  126.     {
  127. -
  128.         foreach ($data as $key => $val{
  129. -
  130.             $found true;
  131. -
  132.             foreach ($element as $k => $e{
  133. -
  134.                 if (isset($val[$k]&& $val[$k!== $e{
  135. -
  136.                     $found false;
  137. -
  138.                 }
  139. -
  140.             }
  141. -
  142.             if ($found{
  143. -
  144.                 return $key;
  145. -
  146.             }
  147. -
  148.         }
  149. -
  150.         return false;
  151. -
  152.     }
  153. -
  154.     public function flush()
  155. -
  156.     {
  157. -
  158.         
  159. -
  160.     }
  161. -
  162. }
  163. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateException.php.html deleted file mode 100644 index aa982ee90..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hydrate_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateRecord.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateRecord.php.html deleted file mode 100644 index b9bbaa9b2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineHydrateRecord.php.html +++ /dev/null @@ -1,126 +0,0 @@ - -
-

Source for file Record.php

-

Documentation is available at Record.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Hydrate_Record
  46. -
  47.  * defines a record fetching strategy for Doctrine_Hydrate
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision$
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     protected $_collections = array();
  71. -
  72.     
  73. -
  74.     protected $_records = array();
  75. -
  76.     
  77. -
  78.     protected $_tables = array();
  79. -
  80.  
  81. -
  82.     public function getElementCollection($component)
  83. -
  84.     {
  85. -
  86.         $coll new Doctrine_Collection($component);
  87. -
  88.         $this->_collections[$coll;
  89. -
  90.  
  91. -
  92.         return $coll;
  93. -
  94.     }
  95. -
  96.     public function search(Doctrine_Record $recordDoctrine_Collection $coll)
  97. -
  98.     {
  99. -
  100.         return array_search($record$coll->getData()true);
  101. -
  102.     }
  103. -
  104.     public function initRelated($record$name)
  105. -
  106.     {
  107. -
  108.         if is_array($record)) {
  109. -
  110.             $record[$name];
  111. -
  112.  
  113. -
  114.             return true;
  115. -
  116.         }
  117. -
  118.         return false;
  119. -
  120.     }
  121. -
  122.     public function registerCollection(Doctrine_Collection $coll)
  123. -
  124.     {
  125. -
  126.         $this->_collections[$coll;
  127. -
  128.     }
  129. -
  130.     /**
  131. -
  132.      * isIdentifiable
  133. -
  134.      * returns whether or not a given data row is identifiable (it contains
  135. -
  136.      * all primary key fields specified in the second argument)
  137. -
  138.      *
  139. -
  140.      * @param array $row 
  141. -
  142.      * @param Doctrine_Table $table 
  143. -
  144.      * @return boolean 
  145. -
  146.      */
  147. -
  148.     public function isIdentifiable(array $rowDoctrine_Table $table)
  149. -
  150.     {
  151. -
  152.         $primaryKeys $table->getIdentifier();
  153. -
  154.  
  155. -
  156.         if (is_array($primaryKeys)) {
  157. -
  158.             foreach ($primaryKeys as $id{
  159. -
  160.                 if isset($row[$id])) {
  161. -
  162.                     return false;
  163. -
  164.                 }
  165. -
  166.             }
  167. -
  168.         else {
  169. -
  170.             if isset($row[$primaryKeys])) {
  171. -
  172.                 return false;
  173. -
  174.             }
  175. -
  176.         }
  177. -
  178.         return true;
  179. -
  180.     }
  181. -
  182.     public function getNullPointer(
  183. -
  184.     {
  185. -
  186.         return self::$_null;
  187. -
  188.     }
  189. -
  190.     public function getElement(array $data$component)
  191. -
  192.     {
  193. -
  194.         if isset($this->_tables[$component])) {
  195. -
  196.             $this->_tables[$componentDoctrine_Manager::getInstance()->getTable($component);
  197. -
  198.             $this->_tables[$component]->setAttribute(Doctrine::ATTR_LOAD_REFERENCESfalse);
  199. -
  200.         }
  201. -
  202.         $this->_tables[$component]->setData($data);
  203. -
  204.         $record $this->_tables[$component]->getRecord();
  205. -
  206.         $this->_records[$record;
  207. -
  208.  
  209. -
  210.         return $record;
  211. -
  212.     }
  213. -
  214.     public function flush()
  215. -
  216.     {
  217. -
  218.         // take snapshots from all initialized collections
  219. -
  220.         foreach ($this->_collections as $key => $coll{
  221. -
  222.             $coll->takeSnapshot();
  223. -
  224.         }
  225. -
  226.         foreach ($this->_tables as $table{
  227. -
  228.             $table->setAttribute(Doctrine::ATTR_LOAD_REFERENCEStrue);
  229. -
  230.         }
  231. -
  232.     }
  233. -
  234. }
  235. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImport.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImport.php.html deleted file mode 100644 index c310a8dcb..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImport.php.html +++ /dev/null @@ -1,211 +0,0 @@ - -
-

Source for file Import.php

-

Documentation is available at Import.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Import.php 2255 2007-08-16 22:42:35Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Import
  46. -
  47.  * Main responsible of performing import operation. Delegates database schema
  48. -
  49.  * reading to a reader object and passes the result to a builder object which
  50. -
  51.  * builds a Doctrine data model.
  52. -
  53.  *
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 2255 $
  66. -
  67.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  68. -
  69.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  70. -
  71.  */
  72. -
  73. -
  74. {
  75. -
  76.     protected $sql = array();
  77. -
  78.     /**
  79. -
  80.      * lists all databases
  81. -
  82.      *
  83. -
  84.      * @return array 
  85. -
  86.      */
  87. -
  88.     public function listDatabases()
  89. -
  90.     {
  91. -
  92.         if isset($this->sql['listDatabases'])) {
  93. -
  94.             throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  95. -
  96.         }
  97. -
  98.  
  99. -
  100.         return $this->conn->fetchColumn($this->sql['listDatabases']);
  101. -
  102.     }
  103. -
  104.     /**
  105. -
  106.      * lists all availible database functions
  107. -
  108.      *
  109. -
  110.      * @return array 
  111. -
  112.      */
  113. -
  114.     public function listFunctions()
  115. -
  116.     {
  117. -
  118.         if isset($this->sql['listFunctions'])) {
  119. -
  120.             throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  121. -
  122.         }
  123. -
  124.  
  125. -
  126.         return $this->conn->fetchColumn($this->sql['listFunctions']);
  127. -
  128.     }
  129. -
  130.     /**
  131. -
  132.      * lists all database triggers
  133. -
  134.      *
  135. -
  136.      * @param string|null$database 
  137. -
  138.      * @return array 
  139. -
  140.      */
  141. -
  142.     public function listTriggers($database null)
  143. -
  144.     {
  145. -
  146.         throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  147. -
  148.     }
  149. -
  150.     /**
  151. -
  152.      * lists all database sequences
  153. -
  154.      *
  155. -
  156.      * @param string|null$database 
  157. -
  158.      * @return array 
  159. -
  160.      */
  161. -
  162.     public function listSequences($database null)
  163. -
  164.     {
  165. -
  166.         if isset($this->sql['listSequences'])) {
  167. -
  168.             throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  169. -
  170.         }
  171. -
  172.  
  173. -
  174.         return $this->conn->fetchColumn($this->sql['listSequences']);
  175. -
  176.     }
  177. -
  178.     /**
  179. -
  180.      * lists table constraints
  181. -
  182.      *
  183. -
  184.      * @param string $table     database table name
  185. -
  186.      * @return array 
  187. -
  188.      */
  189. -
  190.     public function listTableConstraints($table)
  191. -
  192.     {
  193. -
  194.         throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  195. -
  196.     }
  197. -
  198.     /**
  199. -
  200.      * lists table constraints
  201. -
  202.      *
  203. -
  204.      * @param string $table     database table name
  205. -
  206.      * @return array 
  207. -
  208.      */
  209. -
  210.     public function listTableColumns($table)
  211. -
  212.     {
  213. -
  214.         throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  215. -
  216.     }
  217. -
  218.     /**
  219. -
  220.      * lists table constraints
  221. -
  222.      *
  223. -
  224.      * @param string $table     database table name
  225. -
  226.      * @return array 
  227. -
  228.      */
  229. -
  230.     public function listTableIndexes($table)
  231. -
  232.     {
  233. -
  234.         throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  235. -
  236.     }
  237. -
  238.     /**
  239. -
  240.      * lists tables
  241. -
  242.      *
  243. -
  244.      * @param string|null$database 
  245. -
  246.      * @return array 
  247. -
  248.      */
  249. -
  250.     public function listTables($database null)
  251. -
  252.     {
  253. -
  254.         throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  255. -
  256.     }
  257. -
  258.     /**
  259. -
  260.      * lists table triggers
  261. -
  262.      *
  263. -
  264.      * @param string $table     database table name
  265. -
  266.      * @return array 
  267. -
  268.      */
  269. -
  270.     public function listTableTriggers($table)
  271. -
  272.     {
  273. -
  274.         throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  275. -
  276.     }
  277. -
  278.     /**
  279. -
  280.      * lists table views
  281. -
  282.      *
  283. -
  284.      * @param string $table     database table name
  285. -
  286.      * @return array 
  287. -
  288.      */
  289. -
  290.     public function listTableViews($table)
  291. -
  292.     {
  293. -
  294.         throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  295. -
  296.     }
  297. -
  298.     /**
  299. -
  300.      * lists database users
  301. -
  302.      *
  303. -
  304.      * @return array 
  305. -
  306.      */
  307. -
  308.     public function listUsers()
  309. -
  310.     {
  311. -
  312.         if isset($this->sql['listUsers'])) {
  313. -
  314.             throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  315. -
  316.         }
  317. -
  318.  
  319. -
  320.         return $this->conn->fetchColumn($this->sql['listUsers']);
  321. -
  322.     }
  323. -
  324.     /**
  325. -
  326.      * lists database views
  327. -
  328.      *
  329. -
  330.      * @param string|null$database 
  331. -
  332.      * @return array 
  333. -
  334.      */
  335. -
  336.     public function listViews($database null)
  337. -
  338.     {
  339. -
  340.         if isset($this->sql['listViews'])) {
  341. -
  342.             throw new Doctrine_Import_Exception(__FUNCTION__ . ' not supported by this driver.');
  343. -
  344.         }
  345. -
  346.  
  347. -
  348.         return $this->conn->fetchColumn($this->sql['listViews']);
  349. -
  350.     }
  351. -
  352.     /**
  353. -
  354.      * importSchema
  355. -
  356.      *
  357. -
  358.      * method for importing existing schema to Doctrine_Record classes
  359. -
  360.      *
  361. -
  362.      * @param string $directory 
  363. -
  364.      * @param array $databases 
  365. -
  366.      * @return array                the names of the imported classes
  367. -
  368.      */
  369. -
  370.     public function importSchema($directoryarray $databases array())
  371. -
  372.     {
  373. -
  374.         $builder new Doctrine_Import_Builder();
  375. -
  376.         $builder->setTargetPath($directory);
  377. -
  378.  
  379. -
  380.         $classes array();
  381. -
  382.         foreach ($this->listTables(as $table{
  383. -
  384.             $builder->buildRecord(array('tableName' => $table,
  385. -
  386.                                         'className' => Doctrine::classify($table)),
  387. -
  388.                                   $this->listTableColumns($table),
  389. -
  390.                                   array());
  391. -
  392.         
  393. -
  394.             $classes[Doctrine::classify($table);
  395. -
  396.         }
  397. -
  398.         
  399. -
  400.         return $classes;
  401. -
  402.     }
  403. -
  404. }
  405. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilder.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilder.php.html deleted file mode 100644 index 7c26f803b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilder.php.html +++ /dev/null @@ -1,264 +0,0 @@ - -
-

Source for file Builder.php

-

Documentation is available at Builder.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Builder.php 2051 2007-07-23 20:28:46Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Import_Builder
  46. -
  47.  * Import builder is responsible of building Doctrine ActiveRecord classes
  48. -
  49.  * based on a database schema.
  50. -
  51.  *
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2051 $
  64. -
  65.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  66. -
  67.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  68. -
  69.  * @author      Nicolas Bérard-Nault <nicobn@php.net>
  70. -
  71.  */
  72. -
  73. -
  74. {
  75. -
  76.     /**
  77. -
  78.      * @var string $path    the path where imported files are being generated
  79. -
  80.      */
  81. -
  82.     private $path = '';
  83. -
  84.  
  85. -
  86.     private $suffix = '.php';
  87. -
  88.  
  89. -
  90.     private static $tpl;
  91. -
  92.  
  93. -
  94.     public function __construct()
  95. -
  96.     {
  97. -
  98.         $this->loadTemplate();
  99. -
  100.     }
  101. -
  102.  
  103. -
  104.     /**
  105. -
  106.      * setTargetPath
  107. -
  108.      *
  109. -
  110.      * @param string path   the path where imported files are being generated
  111. -
  112.      * @return 
  113. -
  114.      */
  115. -
  116.     public function setTargetPath($path)
  117. -
  118.     {
  119. -
  120.         if file_exists($path)) {
  121. -
  122.             mkdir($path0777);
  123. -
  124.         }
  125. -
  126.  
  127. -
  128.         $this->path = $path;
  129. -
  130.     }
  131. -
  132.     /**
  133. -
  134.      * getTargetPath
  135. -
  136.      *
  137. -
  138.      * @return string       the path where imported files are being generated
  139. -
  140.      */
  141. -
  142.     public function getTargetPath()
  143. -
  144.     {
  145. -
  146.         return $this->path;
  147. -
  148.     }
  149. -
  150.  
  151. -
  152.     /**
  153. -
  154.      * This is a template that was previously in Builder/Record.tpl. Due to the fact
  155. -
  156.      * that it was not bundled when compiling, it had to be moved here.
  157. -
  158.      *
  159. -
  160.      * @return void 
  161. -
  162.      */
  163. -
  164.     public function loadTemplate(
  165. -
  166.     {
  167. -
  168.         if (isset(self::$tpl)) {
  169. -
  170.             return;
  171. -
  172.         }
  173. -
  174.  
  175. -
  176.         self::$tpl =<<<END
  177. -
  178. /**
  179. -
  180.  * This class has been auto-generated by the Doctrine ORM Framework
  181. -
  182.  */
  183. -
  184. class %s extends Doctrine_Record
  185. -
  186. {
  187. -
  188.     public function setTableDefinition()
  189. -
  190.     {
  191. -
  192. %s
  193. -
  194.     }
  195. -
  196.     public function setUp()
  197. -
  198.     {
  199. -
  200. %s
  201. -
  202.     }
  203. -
  204. }
  205. -
  206. END;
  207. -
  208.  
  209. -
  210.     }
  211. -
  212.  
  213. -
  214.     /*
  215. -
  216.      * Build the table definition of a Doctrine_Record object
  217. -
  218.      *
  219. -
  220.      * @param  string $table
  221. -
  222.      * @param  array  $tableColumns
  223. -
  224.      */
  225. -
  226.     public function buildColumnDefinition(array $tableColumns)
  227. -
  228.     {
  229. -
  230.         $columns   array();
  231. -
  232.         $i 1;
  233. -
  234.  
  235. -
  236.         foreach ($tableColumns as $name => $column{
  237. -
  238.             $columns[$i'        $this->hasColumn(\'' $name '\', \'' $column['type''\'';
  239. -
  240.             if ($column['length']{
  241. -
  242.                 $columns[$i.= ', ' $column['length'];
  243. -
  244.             else {
  245. -
  246.                 $columns[$i.= ', null';
  247. -
  248.             }
  249. -
  250.  
  251. -
  252.             $a array();
  253. -
  254.  
  255. -
  256.             if (isset($column['default']&& $column['default']{
  257. -
  258.                 $a['\'default\' => ' var_export($column['default']true);
  259. -
  260.             }
  261. -
  262.             if (isset($column['notnull']&& $column['notnull']{
  263. -
  264.                 $a['\'notnull\' => true';
  265. -
  266.             }
  267. -
  268.             if (isset($column['primary']&& $column['primary']{
  269. -
  270.                 $a['\'primary\' => true';
  271. -
  272.             }
  273. -
  274.             if (isset($column['autoinc']&& $column['autoinc']{
  275. -
  276.                 $a['\'autoincrement\' => true';
  277. -
  278.             }
  279. -
  280.             if (isset($column['unique']&& $column['unique']{
  281. -
  282.                 $a['\'unique\' => true';
  283. -
  284.             }
  285. -
  286.             if (isset($column['unsigned']&& $column['unsigned']{
  287. -
  288.                 $a['\'unsigned\' => true';
  289. -
  290.             }
  291. -
  292.             if ($column['type'== 'enum' && isset($column['values']&& $column['values']{
  293. -
  294.                 $a['\'values\' => array(' implode(','$column['values']')';
  295. -
  296.             }
  297. -
  298.  
  299. -
  300.             if empty($a)) {
  301. -
  302.                 $columns[$i.= ', ' 'array(';
  303. -
  304.                 $length strlen($columns[$i]);
  305. -
  306.                 $columns[$i.= implode(',' PHP_EOL str_repeat(' '$length)$a')';
  307. -
  308.             }
  309. -
  310.             $columns[$i.= ');';
  311. -
  312.  
  313. -
  314.             if ($i (count($tableColumns1)) {
  315. -
  316.                 $columns[$i.= PHP_EOL;
  317. -
  318.             }
  319. -
  320.             $i++;
  321. -
  322.         }
  323. -
  324.         
  325. -
  326.         return implode("\n"$columns);
  327. -
  328.     }
  329. -
  330.     public function buildRelationDefinition(array $relations)
  331. -
  332.     {
  333. -
  334.         $ret array();
  335. -
  336.         $i 0;
  337. -
  338.         foreach ($relations as $name => $relation{
  339. -
  340.             $alias (isset($relation['alias']&& $relation['alias'!== $name' as ' $relation['alias''';
  341. -
  342.  
  343. -
  344.             if isset($relation['type'])) {
  345. -
  346.                 $relation['type'Doctrine_Relation::ONE;
  347. -
  348.             }
  349. -
  350.  
  351. -
  352.             if ($relation['type'=== Doctrine_Relation::ONE || 
  353. -
  354.                 $relation['type'=== Doctrine_Relation::ONE_COMPOSITE{
  355. -
  356.                 $ret[$i'        $this->hasOne(\'' $name $alias '\'';
  357. -
  358.             else {
  359. -
  360.                 $ret[$i'        $this->hasMany(\'' $name $alias '\'';
  361. -
  362.             }
  363. -
  364.             $a array();
  365. -
  366.  
  367. -
  368.             if (isset($relation['deferred']&& $relation['deferred']{
  369. -
  370.                 $a['\'default\' => ' var_export($relation['deferred']true);
  371. -
  372.             }
  373. -
  374.             if (isset($relation['local']&& $relation['local']{
  375. -
  376.                 $a['\'local\' => ' var_export($relation['local']true);
  377. -
  378.             }
  379. -
  380.             if (isset($relation['foreign']&& $relation['foreign']{
  381. -
  382.                 $a['\'foreign\' => ' var_export($relation['foreign']true);
  383. -
  384.             }
  385. -
  386.             if (isset($relation['onDelete']&& $relation['onDelete']{
  387. -
  388.                 $a['\'onDelete\' => ' var_export($relation['onDelete']true);
  389. -
  390.             }
  391. -
  392.             if (isset($relation['onUpdate']&& $relation['onUpdate']{
  393. -
  394.                 $a['\'onUpdate\' => ' var_export($relation['onUpdate']true);
  395. -
  396.             }
  397. -
  398.             if empty($a)) {
  399. -
  400.                 $ret[$i.= ', ' 'array(';
  401. -
  402.                 $length strlen($ret[$i]);
  403. -
  404.                 $ret[$i.= implode(',' PHP_EOL str_repeat(' '$length)$a')';
  405. -
  406.             }
  407. -
  408.             $ret[$i.= ');';
  409. -
  410.             $i++;
  411. -
  412.         }
  413. -
  414.         return implode("\n"$ret);
  415. -
  416.     }
  417. -
  418.     
  419. -
  420.  
  421. -
  422.     public function buildDefinition(array $optionsarray $columnsarray $relations array())
  423. -
  424.     {
  425. -
  426.         if isset($options['className'])) {
  427. -
  428.             throw new Doctrine_Import_Builder_Exception('Missing class name.');
  429. -
  430.         }
  431. -
  432.  
  433. -
  434.         //$opt     = array(0 => str_repeat(' ', 8) . '$this->setTableName(\''. $table .'\');');
  435. -
  436.  
  437. -
  438.         $content sprintf(self::$tpl$options['className'],
  439. -
  440.                           $this->buildColumnDefinition($columns),
  441. -
  442.                           $this->buildRelationDefinition($relations));
  443. -
  444.                           
  445. -
  446.         return $content;
  447. -
  448.     }
  449. -
  450.  
  451. -
  452.     public function buildRecord($options$columns$relations)
  453. -
  454.     {
  455. -
  456.         if isset($options['className'])) {
  457. -
  458.             throw new Doctrine_Import_Builder_Exception('Missing class name.');
  459. -
  460.         }
  461. -
  462.  
  463. -
  464.         if isset($options['fileName'])) {
  465. -
  466.             if (empty($this->path)) {
  467. -
  468.                 $errMsg 'No build target directory set.';
  469. -
  470.                 throw new Doctrine_Import_Builder_Exception($errMsg);
  471. -
  472.             }
  473. -
  474.             
  475. -
  476.  
  477. -
  478.             if (is_writable($this->path=== false{
  479. -
  480.                 $errMsg 'Build target directory ' $this->path ' is not writable.';
  481. -
  482.                 throw new Doctrine_Import_Builder_Exception($errMsg);
  483. -
  484.             }
  485. -
  486.  
  487. -
  488.             $options['fileName']  $this->path DIRECTORY_SEPARATOR $options['className'$this->suffix;
  489. -
  490.         }
  491. -
  492.  
  493. -
  494.         $content $this->buildDefinition($options$columns$relations);
  495. -
  496.  
  497. -
  498.         $bytes file_put_contents($options['fileName']'<?php' PHP_EOL $content);
  499. -
  500.  
  501. -
  502.         if ($bytes === false{
  503. -
  504.             throw new Doctrine_Import_Builder_Exception("Couldn't write file " $options['fileName']);
  505. -
  506.         }
  507. -
  508.     }
  509. -
  510. }
  511. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderBaseClass.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderBaseClass.php.html deleted file mode 100644 index 19ec1ff8a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderBaseClass.php.html +++ /dev/null @@ -1,50 +0,0 @@ - -
-

Source for file BaseClass.php

-

Documentation is available at BaseClass.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: BaseClass.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import_Builder');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: BaseClass.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Import_Builder_BaseClass
  60. -
  61.  * Builds a Doctrine_Record base class definition based on a schema.
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @since       1.0
  72. -
  73.  * @version     $Revision: 1080 $
  74. -
  75.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  76. -
  77.  */
  78. -
  79. -
  80. {
  81. -
  82. }
  83. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderException.php.html deleted file mode 100644 index bc3ca4097..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportBuilderException.php.html +++ /dev/null @@ -1,48 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import_Exception');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Import_Builder_Exception
  60. -
  61.  * @package     Doctrine
  62. -
  63.  * @category    Object Relational Mapping
  64. -
  65.  * @link        www.phpdoctrine.com
  66. -
  67.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  68. -
  69.  * @since       1.0
  70. -
  71.  * @version     $Revision: 1080 $
  72. -
  73.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  74. -
  75.  */
  76. -
  77. -
  78. }
  79. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportException.php.html deleted file mode 100644 index fa34d4b31..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Import_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportFirebird.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportFirebird.php.html deleted file mode 100644 index 4793a1dda..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportFirebird.php.html +++ /dev/null @@ -1,130 +0,0 @@ - -
-

Source for file Firebird.php

-

Documentation is available at Firebird.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Firebird.php 1616 2007-06-10 19:17:26Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @author      Lorenzo Alberton <l.alberton@quipo.it> (PEAR MDB2 Interbase driver)
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @version     $Revision: 1616 $
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * list all tables in the current database
  71. -
  72.      *
  73. -
  74.      * @return array        data array
  75. -
  76.      */
  77. -
  78.     public function listTables($database null)
  79. -
  80.     {
  81. -
  82.         $query 'SELECT RDB$RELATION_NAME FROM RDB$RELATIONS WHERE RDB$SYSTEM_FLAG=0 AND RDB$VIEW_BLR IS NULL';
  83. -
  84.  
  85. -
  86.         return $this->conn->fetchColumn($query);
  87. -
  88.     }
  89. -
  90.     /**
  91. -
  92.      * list all fields in a tables in the current database
  93. -
  94.      *
  95. -
  96.      * @param string $table name of table that should be used in method
  97. -
  98.      * @return mixed data array on success, a MDB2 error on failure
  99. -
  100.      * @access public
  101. -
  102.      */
  103. -
  104.     public function listTableFields($table)
  105. -
  106.     {
  107. -
  108.         $table $this->conn->quote(strtoupper($table)'text');
  109. -
  110.         $query 'SELECT RDB$FIELD_NAME FROM RDB$RELATION_FIELDS WHERE UPPER(RDB$RELATION_NAME) = ' $table;
  111. -
  112.  
  113. -
  114.         return $this->conn->fetchColumn($query);
  115. -
  116.     }
  117. -
  118.     /**
  119. -
  120.      * list all users
  121. -
  122.      *
  123. -
  124.      * @return array            data array containing all database users
  125. -
  126.      */
  127. -
  128.     public function listUsers()
  129. -
  130.     {
  131. -
  132.         return $this->conn->fetchColumn('SELECT DISTINCT RDB$USER FROM RDB$USER_PRIVILEGES');
  133. -
  134.     }
  135. -
  136.     /**
  137. -
  138.      * list the views in the database
  139. -
  140.      *
  141. -
  142.      * @return array            data array containing all database views
  143. -
  144.      */
  145. -
  146.     public function listViews($database null)
  147. -
  148.     {
  149. -
  150.         return $this->conn->fetchColumn('SELECT DISTINCT RDB$VIEW_NAME FROM RDB$VIEW_RELATIONS');
  151. -
  152.     }
  153. -
  154.     /**
  155. -
  156.      * list the views in the database that reference a given table
  157. -
  158.      *
  159. -
  160.      * @param string $table     table for which all references views should be found
  161. -
  162.      * @return array            data array containing all views for given table
  163. -
  164.      */
  165. -
  166.     public function listTableViews($table)
  167. -
  168.     {
  169. -
  170.         $query  'SELECT DISTINCT RDB$VIEW_NAME FROM RDB$VIEW_RELATIONS';
  171. -
  172.         $table  $this->conn->quote(strtoupper($table)'text');
  173. -
  174.         $query .= ' WHERE UPPER(RDB$RELATION_NAME) = ' $table;
  175. -
  176.  
  177. -
  178.         return $this->conn->fetchColumn($query);
  179. -
  180.     }
  181. -
  182.     /**
  183. -
  184.      * list all functions in the current database
  185. -
  186.      *
  187. -
  188.      * @return array              data array containing all availible functions
  189. -
  190.      */
  191. -
  192.     public function listFunctions()
  193. -
  194.     {
  195. -
  196.         $query 'SELECT RDB$FUNCTION_NAME FROM RDB$FUNCTIONS WHERE RDB$SYSTEM_FLAG IS NULL';
  197. -
  198.  
  199. -
  200.         return $this->conn->fetchColumn($query);
  201. -
  202.     }
  203. -
  204.     /**
  205. -
  206.      * This function will be called to get all triggers of the
  207. -
  208.      * current database ($this->conn->getDatabase())
  209. -
  210.      *
  211. -
  212.      * @param  string $table      The name of the table from the
  213. -
  214.      *                             previous database to query against.
  215. -
  216.      * @return array              data array containing all triggers for given table
  217. -
  218.      */
  219. -
  220.     public function listTableTriggers($table)
  221. -
  222.     {
  223. -
  224.         $query 'SELECT RDB$TRIGGER_NAME FROM RDB$TRIGGERS WHERE RDB$SYSTEM_FLAG IS NULL OR RDB$SYSTEM_FLAG = 0';
  225. -
  226.  
  227. -
  228.         if is_null($table)) {
  229. -
  230.             $table $this->conn->quote(strtoupper($table)'text');
  231. -
  232.             $query .= ' WHERE UPPER(RDB$RELATION_NAME) = ' $table;
  233. -
  234.         }
  235. -
  236.  
  237. -
  238.         return $this->conn->fetchColumn($query);
  239. -
  240.     }
  241. -
  242. }
  243. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportInformix.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportInformix.php.html deleted file mode 100644 index e25a9b9f9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportInformix.php.html +++ /dev/null @@ -1,63 +0,0 @@ - -
-

Source for file Informix.php

-

Documentation is available at Informix.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Informix.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  52. -
  53.  * @version     $Revision: 1080 $
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     protected $sql = array(
  67. -
  68.                     'listTables'          => "SELECT tabname,tabtype FROM systables WHERE tabtype IN ('T','V') AND owner != 'informix'",
  69. -
  70.                     'listColumns'         => "SELECT c.colname, c.coltype, c.collength, d.default, c.colno
  71. -
  72.                                               FROM syscolumns c, systables t,outer sysdefaults d
  73. -
  74.                                               WHERE c.tabid = t.tabid AND d.tabid = t.tabid AND d.colno = c.colno
  75. -
  76.                                               AND tabname='%s' ORDER BY c.colno",
  77. -
  78.                     'listPk'              => "SELECT part1, part2, part3, part4, part5, part6, part7, part8 FROM
  79. -
  80.                                               systables t, sysconstraints s, sysindexes i WHERE t.tabname='%s'
  81. -
  82.                                               AND s.tabid=t.tabid AND s.constrtype='P'
  83. -
  84.                                               AND i.idxname=s.idxname",
  85. -
  86.                     'listForeignKeys'     => "SELECT tr.tabname,updrule,delrule,
  87. -
  88.                                               i.part1 o1,i2.part1 d1,i.part2 o2,i2.part2 d2,i.part3 o3,i2.part3 d3,i.part4 o4,i2.part4 d4,
  89. -
  90.                                               i.part5 o5,i2.part5 d5,i.part6 o6,i2.part6 d6,i.part7 o7,i2.part7 d7,i.part8 o8,i2.part8 d8
  91. -
  92.                                               from systables t,sysconstraints s,sysindexes i,
  93. -
  94.                                               sysreferences r,systables tr,sysconstraints s2,sysindexes i2
  95. -
  96.                                               where t.tabname='%s'
  97. -
  98.                                               and s.tabid=t.tabid and s.constrtype='R' and r.constrid=s.constrid
  99. -
  100.                                               and i.idxname=s.idxname and tr.tabid=r.ptabid
  101. -
  102.                                               and s2.constrid=r.primary and i2.idxname=s2.idxname",
  103. -
  104.                                         );
  105. -
  106.  
  107. -
  108. }
  109. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMssql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMssql.php.html deleted file mode 100644 index 8b5099dc5..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMssql.php.html +++ /dev/null @@ -1,200 +0,0 @@ - -
-

Source for file Mssql.php

-

Documentation is available at Mssql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mssql.php 1889 2007-06-28 12:11:55Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  52. -
  53.  * @author      Frank M. Kromann <frank@kromann.info> (PEAR MDB2 Mssql driver)
  54. -
  55.  * @author      David Coallier <davidc@php.net> (PEAR MDB2 Mssql driver)
  56. -
  57.  * @version     $Revision: 1889 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * lists all database sequences
  73. -
  74.      *
  75. -
  76.      * @param string|null$database 
  77. -
  78.      * @return array 
  79. -
  80.      */
  81. -
  82.     public function listSequences($database null)
  83. -
  84.     {
  85. -
  86.         $query "SELECT name FROM sysobjects WHERE xtype = 'U'";
  87. -
  88.         $tableNames $this->conn->fetchColumn($query);
  89. -
  90.  
  91. -
  92.         return array_map(array($this->conn->formatter'fixSequenceName')$tableNames);
  93. -
  94.     }
  95. -
  96.     /**
  97. -
  98.      * lists table constraints
  99. -
  100.      *
  101. -
  102.      * @param string $table     database table name
  103. -
  104.      * @return array 
  105. -
  106.      */
  107. -
  108.     public function listTableColumns($table)
  109. -
  110.     {
  111. -
  112.         $sql     'EXEC sp_columns @table_name = ' $this->conn->quoteIdentifier($tabletrue);
  113. -
  114.         $result  $this->conn->fetchAssoc($sql);
  115. -
  116.         $columns array();
  117. -
  118.  
  119. -
  120.         foreach ($result as $key => $val{
  121. -
  122.             $val array_change_key_case($valCASE_LOWER);
  123. -
  124.  
  125. -
  126.             if (strstr($val['type_name']' ')) {
  127. -
  128.                 list($type$identityexplode(' '$val['type_name']);
  129. -
  130.             else {
  131. -
  132.                 $type $val['type_name'];
  133. -
  134.                 $identity '';
  135. -
  136.             }
  137. -
  138.  
  139. -
  140.             if ($type == 'varchar'{
  141. -
  142.                 $type .= '(' $val['length'')';
  143. -
  144.             }
  145. -
  146.  
  147. -
  148.             $decl $this->conn->dataDict->getPortableDeclaration($val);
  149. -
  150.  
  151. -
  152.             $description  array(
  153. -
  154.                 'name'      => $val['column_name'],
  155. -
  156.                 'ntype'     => $type,
  157. -
  158.                 'type'      => $decl['type'][0],
  159. -
  160.                 'alltypes'  => $decl['type'],
  161. -
  162.                 'length'    => $decl['length'],
  163. -
  164.                 'fixed'     => $decl['fixed'],
  165. -
  166.                 'unsigned'  => $decl['unsigned'],
  167. -
  168.                 'notnull'   => (bool) ($val['is_nullable'=== 'NO'),
  169. -
  170.                 'default'   => $val['column_def'],
  171. -
  172.                 'primary'   => (strtolower($identity== 'identity'),
  173. -
  174.             );
  175. -
  176.             $columns[$val['column_name']] $description;
  177. -
  178.         }
  179. -
  180.  
  181. -
  182.         return $columns;
  183. -
  184.     }
  185. -
  186.     /**
  187. -
  188.      * lists table constraints
  189. -
  190.      *
  191. -
  192.      * @param string $table     database table name
  193. -
  194.      * @return array 
  195. -
  196.      */
  197. -
  198.     public function listTableIndexes($table)
  199. -
  200.     {
  201. -
  202.  
  203. -
  204.     }
  205. -
  206.     /**
  207. -
  208.      * lists tables
  209. -
  210.      *
  211. -
  212.      * @param string|null$database 
  213. -
  214.      * @return array 
  215. -
  216.      */
  217. -
  218.     public function listTables($database null)
  219. -
  220.     {
  221. -
  222.         $sql "SELECT name FROM sysobjects WHERE type = 'U' ORDER BY name";
  223. -
  224.  
  225. -
  226.         return $this->conn->fetchColumn($sql);
  227. -
  228.     }
  229. -
  230.     /**
  231. -
  232.      * lists all triggers
  233. -
  234.      *
  235. -
  236.      * @return array 
  237. -
  238.      */
  239. -
  240.     public function listTriggers($database null)
  241. -
  242.     {
  243. -
  244.         $query "SELECT name FROM sysobjects WHERE xtype = 'TR'";
  245. -
  246.  
  247. -
  248.         $result $this->conn->fetchColumn($query);
  249. -
  250.  
  251. -
  252.         return $result;
  253. -
  254.     }
  255. -
  256.     /**
  257. -
  258.      * lists table triggers
  259. -
  260.      *
  261. -
  262.      * @param string $table     database table name
  263. -
  264.      * @return array 
  265. -
  266.      */
  267. -
  268.     public function listTableTriggers($table)
  269. -
  270.     {
  271. -
  272.         $table $this->conn->quote($table'text');
  273. -
  274.         $query "SELECT name FROM sysobjects WHERE xtype = 'TR' AND object_name(parent_obj) = " $table;
  275. -
  276.  
  277. -
  278.         $result $this->conn->fetchColumn($query);
  279. -
  280.  
  281. -
  282.         return $result;
  283. -
  284.     }
  285. -
  286.     /**
  287. -
  288.      * lists table views
  289. -
  290.      *
  291. -
  292.      * @param string $table     database table name
  293. -
  294.      * @return array 
  295. -
  296.      */
  297. -
  298.     public function listTableViews($table)
  299. -
  300.     {
  301. -
  302.         $keyName 'INDEX_NAME';
  303. -
  304.         $pkName 'PK_NAME';
  305. -
  306.         if ($this->conn->options['portability'Doctrine::PORTABILITY_FIX_CASE{
  307. -
  308.             if ($this->conn->options['field_case'== CASE_LOWER{
  309. -
  310.                 $keyName strtolower($keyName);
  311. -
  312.                 $pkName  strtolower($pkName);
  313. -
  314.             else {
  315. -
  316.                 $keyName strtoupper($keyName);
  317. -
  318.                 $pkName  strtoupper($pkName);
  319. -
  320.             }
  321. -
  322.         }
  323. -
  324.         $table $this->conn->quote($table'text');
  325. -
  326.         $query 'EXEC sp_statistics @table_name = ' $table;
  327. -
  328.         $indexes $this->conn->fetchColumn($query$keyName);
  329. -
  330.  
  331. -
  332.         $query 'EXEC sp_pkeys @table_name = ' $table;
  333. -
  334.         $pkAll $this->conn->fetchColumn($query$pkName);
  335. -
  336.  
  337. -
  338.         $result array();
  339. -
  340.  
  341. -
  342.         foreach ($indexes as $index{
  343. -
  344.             if (!in_array($index$pkAll&& $index != null{
  345. -
  346.                 $result[$this->conn->formatter->fixIndexName($index);
  347. -
  348.             }
  349. -
  350.         }
  351. -
  352.  
  353. -
  354.         return $result;
  355. -
  356.     }
  357. -
  358.     /**
  359. -
  360.      * lists database views
  361. -
  362.      *
  363. -
  364.      * @param string|null$database 
  365. -
  366.      * @return array 
  367. -
  368.      */
  369. -
  370.     public function listViews($database null)
  371. -
  372.     {
  373. -
  374.         $query "SELECT name FROM sysobjects WHERE xtype = 'V'";
  375. -
  376.  
  377. -
  378.         return $this->conn->fetchColumn($query);
  379. -
  380.     }
  381. -
  382. }
  383. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMysql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMysql.php.html deleted file mode 100644 index b8d2fb5ba..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportMysql.php.html +++ /dev/null @@ -1,212 +0,0 @@ - -
-

Source for file Mysql.php

-

Documentation is available at Mysql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mysql.php 2081 2007-07-26 19:52:12Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  52. -
  53.  * @version     $Revision: 2081 $
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     protected $sql  = array(
  67. -
  68.                             'showDatabases'   => 'SHOW DATABASES',
  69. -
  70.                             'listTableFields' => 'DESCRIBE %s',
  71. -
  72.                             'listSequences'   => 'SHOW TABLES',
  73. -
  74.                             'listTables'      => 'SHOW TABLES',
  75. -
  76.                             'listUsers'       => 'SELECT DISTINCT USER FROM USER',
  77. -
  78.                             'listViews'       => "SHOW FULL TABLES %sWHERE Table_type = 'VIEW'",
  79. -
  80.                             );
  81. -
  82.     /**
  83. -
  84.      * lists all database sequences
  85. -
  86.      *
  87. -
  88.      * @param string|null$database 
  89. -
  90.      * @return array 
  91. -
  92.      */
  93. -
  94.     public function listSequences($database null)
  95. -
  96.     {
  97. -
  98.         $query 'SHOW TABLES';
  99. -
  100.         if (!is_null($database)) {
  101. -
  102.             $query .= ' FROM ' $database;
  103. -
  104.         }
  105. -
  106.         $tableNames $this->conn->fetchColumn($query);
  107. -
  108.  
  109. -
  110.         return array_map(array($this->conn'fixSequenceName')$tableNames);
  111. -
  112.     }
  113. -
  114.     /**
  115. -
  116.      * lists table constraints
  117. -
  118.      *
  119. -
  120.      * @param string $table     database table name
  121. -
  122.      * @return array 
  123. -
  124.      */
  125. -
  126.     public function listTableConstraints($table)
  127. -
  128.     {
  129. -
  130.         $keyName 'Key_name';
  131. -
  132.         $nonUnique 'Non_unique';
  133. -
  134.         if ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_FIX_CASE{
  135. -
  136.             if ($this->conn->options['field_case'== CASE_LOWER{
  137. -
  138.                 $keyName strtolower($keyName);
  139. -
  140.                 $nonUnique strtolower($nonUnique);
  141. -
  142.             else {
  143. -
  144.                 $keyName strtoupper($keyName);
  145. -
  146.                 $nonUnique strtoupper($nonUnique);
  147. -
  148.             }
  149. -
  150.         }
  151. -
  152.  
  153. -
  154.         $table $this->conn->quoteIdentifier($tabletrue);
  155. -
  156.         $query 'SHOW INDEX FROM ' $table;
  157. -
  158.         $indexes $this->conn->fetchAssoc($query);
  159. -
  160.  
  161. -
  162.         $result array();
  163. -
  164.         foreach ($indexes as $indexData{
  165. -
  166.             if (!$indexData[$nonUnique]{
  167. -
  168.                 if ($indexData[$keyName!== 'PRIMARY'{
  169. -
  170.                     $index $this->conn->fixIndexName($indexData[$keyName]);
  171. -
  172.                 else {
  173. -
  174.                     $index 'PRIMARY';
  175. -
  176.                 }
  177. -
  178.                 if empty($index)) {
  179. -
  180.                     $result[$index;
  181. -
  182.                 }
  183. -
  184.             }
  185. -
  186.         }
  187. -
  188.         return $result;
  189. -
  190.     }
  191. -
  192.     /**
  193. -
  194.      * lists table foreign keys
  195. -
  196.      *
  197. -
  198.      * @param string $table     database table name
  199. -
  200.      * @return array 
  201. -
  202.      */
  203. -
  204.     public function listTableForeignKeys($table
  205. -
  206.     {
  207. -
  208.         $sql 'SHOW CREATE TABLE ' $this->conn->quoteIdentifier($tabletrue);    
  209. -
  210.     }
  211. -
  212.     /**
  213. -
  214.      * lists table constraints
  215. -
  216.      *
  217. -
  218.      * @param string $table     database table name
  219. -
  220.      * @return array 
  221. -
  222.      */
  223. -
  224.     public function listTableColumns($table)
  225. -
  226.     {
  227. -
  228.         $sql 'DESCRIBE ' $this->conn->quoteIdentifier($tabletrue);
  229. -
  230.         $result $this->conn->fetchAssoc($sql);
  231. -
  232.  
  233. -
  234.         $description array();
  235. -
  236.         foreach ($result as $key => $val{
  237. -
  238.  
  239. -
  240.             $val array_change_key_case($valCASE_LOWER);
  241. -
  242.  
  243. -
  244.             $decl $this->conn->dataDict->getPortableDeclaration($val);
  245. -
  246.  
  247. -
  248.             $values = isset($decl['values']$decl['values'array();
  249. -
  250.  
  251. -
  252.             $description array(
  253. -
  254.                 'name'      => $val['field'],
  255. -
  256.                 'type'      => $decl['type'][0],
  257. -
  258.                 'alltypes'  => $decl['type'],
  259. -
  260.                 'ntype'     => $val['type'],
  261. -
  262.                 'length'    => $decl['length'],
  263. -
  264.                 'fixed'     => $decl['fixed'],
  265. -
  266.                 'unsigned'  => $decl['unsigned'],
  267. -
  268.                 'values'    => $values,
  269. -
  270.                 'primary'   => (strtolower($val['key']== 'pri'),
  271. -
  272.                 'default'   => $val['default'],
  273. -
  274.                 'notnull'   => (bool) ($val['null'!= 'YES'),
  275. -
  276.                 'autoinc'   => (bool) (strpos($val['extra']'auto_increment'!== false),
  277. -
  278.             );
  279. -
  280.             $columns[$val['field']] $description;
  281. -
  282.         }
  283. -
  284.  
  285. -
  286.  
  287. -
  288.         return $columns;
  289. -
  290.     }
  291. -
  292.     /**
  293. -
  294.      * lists table constraints
  295. -
  296.      *
  297. -
  298.      * @param string $table     database table name
  299. -
  300.      * @return array 
  301. -
  302.      */
  303. -
  304.     public function listTableIndexes($table)
  305. -
  306.     {
  307. -
  308.         $keyName 'Key_name';
  309. -
  310.         $nonUnique 'Non_unique';
  311. -
  312.         if ($this->conn->options['portability'Doctrine::PORTABILITY_FIX_CASE{
  313. -
  314.             if ($this->conn->options['field_case'== CASE_LOWER{
  315. -
  316.                 $keyName strtolower($keyName);
  317. -
  318.                 $nonUnique strtolower($nonUnique);
  319. -
  320.             else {
  321. -
  322.                 $keyName strtoupper($keyName);
  323. -
  324.                 $nonUnique strtoupper($nonUnique);
  325. -
  326.             }
  327. -
  328.         }
  329. -
  330.  
  331. -
  332.         $table $this->conn->quoteIdentifier($tabletrue);
  333. -
  334.         $query 'SHOW INDEX FROM ' $table;
  335. -
  336.         $indexes $this->conn->fetchAssoc($query);
  337. -
  338.  
  339. -
  340.  
  341. -
  342.         $result array();
  343. -
  344.         foreach ($indexes as $indexData{
  345. -
  346.             if ($indexData[$nonUnique&& ($index $this->conn->fixIndexName($indexData[$keyName]))) {
  347. -
  348.                 $result[$index;
  349. -
  350.             }
  351. -
  352.         }
  353. -
  354.         return $result;
  355. -
  356.     }
  357. -
  358.     /**
  359. -
  360.      * lists tables
  361. -
  362.      *
  363. -
  364.      * @param string|null$database 
  365. -
  366.      * @return array 
  367. -
  368.      */
  369. -
  370.     public function listTables($database null)
  371. -
  372.     {
  373. -
  374.         return $this->conn->fetchColumn($this->sql['listTables']);
  375. -
  376.     }
  377. -
  378.     /**
  379. -
  380.      * lists database views
  381. -
  382.      *
  383. -
  384.      * @param string|null$database 
  385. -
  386.      * @return array 
  387. -
  388.      */
  389. -
  390.     public function listViews($database null)
  391. -
  392.     {
  393. -
  394.         if (!is_null($database)) {
  395. -
  396.             $query sprintf($this->sql['listViews']' FROM ' $database);
  397. -
  398.         }
  399. -
  400.  
  401. -
  402.         return $this->conn->fetchColumn($query);
  403. -
  404.     }
  405. -
  406. }
  407. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportOracle.php.html deleted file mode 100644 index 2072e7396..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportOracle.php.html +++ /dev/null @@ -1,233 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Oracle.php 1889 2007-06-28 12:11:55Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @version     $Revision: 1889 $
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  */
  60. -
  61. -
  62. {
  63. -
  64.     /**
  65. -
  66.      * lists all databases
  67. -
  68.      *
  69. -
  70.      * @return array 
  71. -
  72.      */
  73. -
  74.     public function listDatabases()
  75. -
  76.     {
  77. -
  78.         if $this->conn->getAttribute(Doctrine::ATTR_EMULATE_DATABASE)) {
  79. -
  80.             throw new Doctrine_Import_Exception('database listing is only supported if the "emulate_database" option is enabled');
  81. -
  82.         }
  83. -
  84.         /**
  85. -
  86.         if ($this->conn->options['database_name_prefix']) {
  87. -
  88.             $query = 'SELECT SUBSTR(username, ';
  89. -
  90.             $query.= (strlen($this->conn->getAttribute(['database_name_prefix'])+1);
  91. -
  92.             $query.= ") FROM sys.dba_users WHERE username LIKE '";
  93. -
  94.             $query.= $this->conn->options['database_name_prefix']."%'";
  95. -
  96.         } else {
  97. -
  98.         */
  99. -
  100.         $query   'SELECT username FROM sys.dba_users';
  101. -
  102.  
  103. -
  104.         $result2 $this->conn->standaloneQuery($query);
  105. -
  106.         $result  $result2->fetchColumn();
  107. -
  108.  
  109. -
  110.         return $result;
  111. -
  112.     }
  113. -
  114.     /**
  115. -
  116.      * lists all availible database functions
  117. -
  118.      *
  119. -
  120.      * @return array 
  121. -
  122.      */
  123. -
  124.     public function listFunctions()
  125. -
  126.     {
  127. -
  128.         $query "SELECT name FROM sys.user_source WHERE line = 1 AND type = 'FUNCTION'";
  129. -
  130.  
  131. -
  132.         return $this->conn->fetchColumn($query);
  133. -
  134.     }
  135. -
  136.     /**
  137. -
  138.      * lists all database triggers
  139. -
  140.      *
  141. -
  142.      * @param string|null$database 
  143. -
  144.      * @return array 
  145. -
  146.      */
  147. -
  148.     public function listTriggers($database null)
  149. -
  150.     {
  151. -
  152.  
  153. -
  154.     }
  155. -
  156.     /**
  157. -
  158.      * lists all database sequences
  159. -
  160.      *
  161. -
  162.      * @param string|null$database 
  163. -
  164.      * @return array 
  165. -
  166.      */
  167. -
  168.     public function listSequences($database null)
  169. -
  170.     {
  171. -
  172.         $query "SELECT sequence_name FROM sys.user_sequences";
  173. -
  174.  
  175. -
  176.         $tableNames $this->conn->fetchColumn($query);
  177. -
  178.  
  179. -
  180.         return array_map(array($this->conn->formatter'fixSequenceName')$tableNames);
  181. -
  182.     }
  183. -
  184.     /**
  185. -
  186.      * lists table constraints
  187. -
  188.      *
  189. -
  190.      * @param string $table     database table name
  191. -
  192.      * @return array 
  193. -
  194.      */
  195. -
  196.     public function listTableConstraints($table)
  197. -
  198.     {
  199. -
  200.         $table $this->conn->quote($table'text');
  201. -
  202.  
  203. -
  204.         $query 'SELECT index_name name FROM user_constraints'
  205. -
  206.                . ' WHERE table_name = ' $table ' OR table_name = ' strtoupper($table);
  207. -
  208.  
  209. -
  210.         $constraints $this->conn->fetchColumn($query);
  211. -
  212.  
  213. -
  214.         return array_map(array($this->conn->formatter'fixIndexName')$constraints);
  215. -
  216.     }
  217. -
  218.     /**
  219. -
  220.      * lists table constraints
  221. -
  222.      *
  223. -
  224.      * @param string $table     database table name
  225. -
  226.      * @return array 
  227. -
  228.      */
  229. -
  230.     public function listTableColumns($table)
  231. -
  232.     {
  233. -
  234.         $table  strtoupper($table);
  235. -
  236.         $sql    "SELECT column_name, data_type, data_length, nullable, data_default, data_scale, data_precision FROM all_tab_columns"
  237. -
  238.                 . " WHERE table_name = '" $table "' ORDER BY column_name";
  239. -
  240.  
  241. -
  242.         $result $this->conn->fetchAssoc($sql);
  243. -
  244.  
  245. -
  246.         foreach($result as $val{
  247. -
  248.             $val array_change_key_case($valCASE_LOWER);
  249. -
  250.             $decl $this->conn->dataDict->getPortableDeclaration($val);
  251. -
  252.  
  253. -
  254.  
  255. -
  256.             $descr[$val['column_name']] array(
  257. -
  258.                'name'       => $val['column_name'],
  259. -
  260.                'notnull'    => (bool) ($val['nullable'=== 'N'),
  261. -
  262.                'ntype'      => $val['data_type'],
  263. -
  264.                'type'       => $decl['type'][0],
  265. -
  266.                'alltypes'   => $decl['type'],
  267. -
  268.                'fixed'      => $decl['fixed'],
  269. -
  270.                'unsigned'   => $decl['unsigned'],
  271. -
  272.                'default'    => $val['data_default'],
  273. -
  274.                'length'     => $val['data_length'],
  275. -
  276.                'precision'  => $val['data_precision'],
  277. -
  278.                'scale'      => $val['scale'],
  279. -
  280.             );
  281. -
  282.         }
  283. -
  284.         return $result;
  285. -
  286.     }
  287. -
  288.     /**
  289. -
  290.      * lists table constraints
  291. -
  292.      *
  293. -
  294.      * @param string $table     database table name
  295. -
  296.      * @return array 
  297. -
  298.      */
  299. -
  300.     public function listTableIndexes($table)
  301. -
  302.     {
  303. -
  304.         $table $this->conn->quote($table'text');
  305. -
  306.         $query 'SELECT index_name name FROM user_indexes'
  307. -
  308.                . ' WHERE table_name = ' $table ' OR table_name = ' strtoupper($table)
  309. -
  310.                . ' AND generated = ' $this->conn->quote('N''text');
  311. -
  312.  
  313. -
  314.         $indexes $this->conn->fetchColumn($query);
  315. -
  316.  
  317. -
  318.         return array_map(array($this->conn->formatter'fixIndexName')$indexes);
  319. -
  320.     }
  321. -
  322.     /**
  323. -
  324.      * lists tables
  325. -
  326.      *
  327. -
  328.      * @param string|null$database 
  329. -
  330.      * @return array 
  331. -
  332.      */
  333. -
  334.     public function listTables($database null)
  335. -
  336.     {
  337. -
  338.         $query 'SELECT table_name FROM sys.user_tables';
  339. -
  340.         return $this->conn->fetchColumn($query);
  341. -
  342.     }
  343. -
  344.     /**
  345. -
  346.      * lists table triggers
  347. -
  348.      *
  349. -
  350.      * @param string $table     database table name
  351. -
  352.      * @return array 
  353. -
  354.      */
  355. -
  356.     public function listTableTriggers($table)
  357. -
  358.     {
  359. -
  360.  
  361. -
  362.     }
  363. -
  364.     /**
  365. -
  366.      * lists table views
  367. -
  368.      *
  369. -
  370.      * @param string $table     database table name
  371. -
  372.      * @return array 
  373. -
  374.      */
  375. -
  376.     public function listTableViews($table)
  377. -
  378.     {
  379. -
  380.  
  381. -
  382.     }
  383. -
  384.     /**
  385. -
  386.      * lists database users
  387. -
  388.      *
  389. -
  390.      * @return array 
  391. -
  392.      */
  393. -
  394.     public function listUsers()
  395. -
  396.     {
  397. -
  398.         /**
  399. -
  400.         if ($this->conn->options['emulate_database'] && $this->conn->options['database_name_prefix']) {
  401. -
  402.             $query = 'SELECT SUBSTR(username, ';
  403. -
  404.             $query.= (strlen($this->conn->options['database_name_prefix'])+1);
  405. -
  406.             $query.= ") FROM sys.dba_users WHERE username NOT LIKE '";
  407. -
  408.             $query.= $this->conn->options['database_name_prefix']."%'";
  409. -
  410.         } else {
  411. -
  412.         */
  413. -
  414.  
  415. -
  416.         $query 'SELECT username FROM sys.dba_users';
  417. -
  418.         //}
  419. -
  420.  
  421. -
  422.         return $this->conn->fetchColumn($query);
  423. -
  424.     }
  425. -
  426.     /**
  427. -
  428.      * lists database views
  429. -
  430.      *
  431. -
  432.      * @param string|null$database 
  433. -
  434.      * @return array 
  435. -
  436.      */
  437. -
  438.     public function listViews($database null)
  439. -
  440.     {
  441. -
  442.         $query 'SELECT view_name FROM sys.user_views';
  443. -
  444.         return $this->conn->fetchColumn($query);
  445. -
  446.     }
  447. -
  448. }
  449. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportPgsql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportPgsql.php.html deleted file mode 100644 index e94e12587..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportPgsql.php.html +++ /dev/null @@ -1,242 +0,0 @@ - -
-

Source for file Pgsql.php

-

Documentation is available at Pgsql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pgsql.php 1889 2007-06-28 12:11:55Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @author      Paul Cooper <pgc@ucecom.com>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @version     $Revision: 1889 $
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70.     protected $sql = array(
  71. -
  72.                         'listDatabases' => 'SELECT datname FROM pg_database',
  73. -
  74.                         'listFunctions' => "SELECT
  75. -
  76.                                                 proname
  77. -
  78.                                             FROM
  79. -
  80.                                                 pg_proc pr,
  81. -
  82.                                                 pg_type tp
  83. -
  84.                                             WHERE
  85. -
  86.                                                 tp.oid = pr.prorettype
  87. -
  88.                                                 AND pr.proisagg = FALSE
  89. -
  90.                                                 AND tp.typname <> 'trigger'
  91. -
  92.                                                 AND pr.pronamespace IN
  93. -
  94.                                                     (SELECT oid FROM pg_namespace
  95. -
  96.                                                      WHERE nspname NOT LIKE 'pg_%' AND nspname != 'information_schema'",
  97. -
  98.                         'listSequences' => "SELECT
  99. -
  100.                                                 relname
  101. -
  102.                                             FROM
  103. -
  104.                                                 pg_class
  105. -
  106.                                             WHERE relkind = 'S' AND relnamespace IN
  107. -
  108.                                                 (SELECT oid FROM pg_namespace
  109. -
  110.                                                  WHERE nspname NOT LIKE 'pg_%' AND nspname != 'information_schema')",
  111. -
  112.                         'listTables'    => "SELECT
  113. -
  114.                                                 c.relname AS table_name
  115. -
  116.                                             FROM pg_class c, pg_user u
  117. -
  118.                                             WHERE c.relowner = u.usesysid
  119. -
  120.                                                 AND c.relkind = 'r'
  121. -
  122.                                                 AND NOT EXISTS (SELECT 1 FROM pg_views WHERE viewname = c.relname)
  123. -
  124.                                                 AND c.relname !~ '^(pg_|sql_)'
  125. -
  126.                                             UNION
  127. -
  128.                                             SELECT c.relname AS table_name
  129. -
  130.                                             FROM pg_class c
  131. -
  132.                                             WHERE c.relkind = 'r'
  133. -
  134.                                                 AND NOT EXISTS (SELECT 1 FROM pg_views WHERE viewname = c.relname)
  135. -
  136.                                                 AND NOT EXISTS (SELECT 1 FROM pg_user WHERE usesysid = c.relowner)
  137. -
  138.                                                 AND c.relname !~ '^pg_'",
  139. -
  140.                         'listViews'     => 'SELECT viewname FROM pg_views',
  141. -
  142.                         'listUsers'     => 'SELECT usename FROM pg_user',
  143. -
  144.                         'listTableConstraints' => "SELECT
  145. -
  146.                                                         relname
  147. -
  148.                                                    FROM
  149. -
  150.                                                         pg_class
  151. -
  152.                                                    WHERE oid IN (
  153. -
  154.                                                         SELECT indexrelid
  155. -
  156.                                                         FROM pg_index, pg_class
  157. -
  158.                                                         WHERE pg_class.relname = %s
  159. -
  160.                                                             AND pg_class.oid = pg_index.indrelid
  161. -
  162.                                                             AND (indisunique = 't' OR indisprimary = 't')
  163. -
  164.                                                         )",
  165. -
  166.                         'listTableIndexes'     => "SELECT
  167. -
  168.                                                         relname
  169. -
  170.                                                    FROM
  171. -
  172.                                                         pg_class
  173. -
  174.                                                    WHERE oid IN (
  175. -
  176.                                                         SELECT indexrelid
  177. -
  178.                                                         FROM pg_index, pg_class
  179. -
  180.                                                         WHERE pg_class.relname = %s
  181. -
  182.                                                             AND pg_class.oid=pg_index.indrelid
  183. -
  184.                                                             AND indisunique != 't'
  185. -
  186.                                                             AND indisprimary != 't'
  187. -
  188.                                                         )",
  189. -
  190.                         'listTableColumns'     => "SELECT
  191. -
  192.                                                         a.attnum,
  193. -
  194.                                                         a.attname AS field,
  195. -
  196.                                                         t.typname AS type,
  197. -
  198.                                                         format_type(a.atttypid, a.atttypmod) AS complete_type,
  199. -
  200.                                                         a.attnotnull AS isnotnull,
  201. -
  202.                                                         (SELECT 't'
  203. -
  204.                                                           FROM pg_index
  205. -
  206.                                                           WHERE c.oid = pg_index.indrelid
  207. -
  208.                                                           AND pg_index.indkey[0] = a.attnum
  209. -
  210.                                                           AND pg_index.indisprimary = 't'
  211. -
  212.                                                         ) AS pri,
  213. -
  214.                                                         (SELECT pg_attrdef.adsrc
  215. -
  216.                                                           FROM pg_attrdef
  217. -
  218.                                                           WHERE c.oid = pg_attrdef.adrelid
  219. -
  220.                                                           AND pg_attrdef.adnum=a.attnum
  221. -
  222.                                                         ) AS default
  223. -
  224.                                                   FROM pg_attribute a, pg_class c, pg_type t
  225. -
  226.                                                   WHERE c.relname = %s
  227. -
  228.                                                         AND a.attnum > 0
  229. -
  230.                                                         AND a.attrelid = c.oid
  231. -
  232.                                                         AND a.atttypid = t.oid
  233. -
  234.                                                   ORDER BY a.attnum",
  235. -
  236.                         );
  237. -
  238.     /**
  239. -
  240.      * lists all database triggers
  241. -
  242.      *
  243. -
  244.      * @param string|null$database 
  245. -
  246.      * @return array 
  247. -
  248.      */
  249. -
  250.     public function listTriggers($database null)
  251. -
  252.     {
  253. -
  254.  
  255. -
  256.     }
  257. -
  258.     /**
  259. -
  260.      * lists table constraints
  261. -
  262.      *
  263. -
  264.      * @param string $table     database table name
  265. -
  266.      * @return array 
  267. -
  268.      */
  269. -
  270.     public function listTableConstraints($table)
  271. -
  272.     {
  273. -
  274.         $table $this->conn->quote($table);
  275. -
  276.         $query sprintf($this->sql['listTableConstraints']$table);
  277. -
  278.  
  279. -
  280.         return $this->conn->fetchColumn($query);
  281. -
  282.     }
  283. -
  284.     /**
  285. -
  286.      * lists table constraints
  287. -
  288.      *
  289. -
  290.      * @param string $table     database table name
  291. -
  292.      * @return array 
  293. -
  294.      */
  295. -
  296.     public function listTableColumns($table)
  297. -
  298.     {
  299. -
  300.         $table $this->conn->quote($table);
  301. -
  302.         $query sprintf($this->sql['listTableColumns']$table);
  303. -
  304.         $result $this->conn->fetchAssoc($query);
  305. -
  306.  
  307. -
  308.         $columns     array();
  309. -
  310.         foreach ($result as $key => $val{
  311. -
  312.             $val array_change_key_case($valCASE_LOWER);
  313. -
  314.  
  315. -
  316.             if (strtolower($val['type']=== 'varchar'{
  317. -
  318.                 // get length from varchar definition
  319. -
  320.                 $length preg_replace('~.*\(([0-9]*)\).*~''$1'$val['complete_type']);
  321. -
  322.                 $val['length'$length;
  323. -
  324.             }
  325. -
  326.             
  327. -
  328.             $decl $this->conn->dataDict->getPortableDeclaration($val);
  329. -
  330.  
  331. -
  332.             $description array(
  333. -
  334.                 'name'      => $val['field'],
  335. -
  336.                 'ntype'     => $val['type'],
  337. -
  338.                 'type'      => $decl['type'][0],
  339. -
  340.                 'alltypes'  => $decl['type'],
  341. -
  342.                 'length'    => $decl['length'],
  343. -
  344.                 'fixed'     => $decl['fixed'],
  345. -
  346.                 'unsigned'  => $decl['unsigned'],
  347. -
  348.                 'notnull'   => ($val['isnotnull'== ''),
  349. -
  350.                 'default'   => $val['default'],
  351. -
  352.                 'primary'   => ($val['pri'== 't'),
  353. -
  354.             );
  355. -
  356.             $columns[$val['field']] $description;
  357. -
  358.         }
  359. -
  360.         return $columns;
  361. -
  362.     }
  363. -
  364.     /**
  365. -
  366.      * list all indexes in a table
  367. -
  368.      *
  369. -
  370.      * @param string $table     database table name
  371. -
  372.      * @return array 
  373. -
  374.      */
  375. -
  376.     public function listTableIndexes($table)
  377. -
  378.     {
  379. -
  380.         $table $this->conn->quote($table);
  381. -
  382.         $query sprintf($this->sql['listTableIndexes']$table);
  383. -
  384.  
  385. -
  386.         return $this->conn->fetchColumn($query);
  387. -
  388.     }
  389. -
  390.     /**
  391. -
  392.      * lists tables
  393. -
  394.      *
  395. -
  396.      * @param string|null$database 
  397. -
  398.      * @return array 
  399. -
  400.      */
  401. -
  402.     public function listTables($database null)
  403. -
  404.     {
  405. -
  406.         return $this->conn->fetchColumn($this->sql['listTables']);
  407. -
  408.     }
  409. -
  410.     /**
  411. -
  412.      * lists table triggers
  413. -
  414.      *
  415. -
  416.      * @param string $table     database table name
  417. -
  418.      * @return array 
  419. -
  420.      */
  421. -
  422.     public function listTableTriggers($table)
  423. -
  424.     {
  425. -
  426.         $query 'SELECT trg.tgname AS trigger_name
  427. -
  428.                     FROM pg_trigger trg,
  429. -
  430.                          pg_class tbl
  431. -
  432.                    WHERE trg.tgrelid = tbl.oid';
  433. -
  434.         if ($table !== null{
  435. -
  436.             $table $this->conn->quote(strtoupper($table)'string');
  437. -
  438.             $query .= " AND tbl.relname = $table";
  439. -
  440.         }
  441. -
  442.         return $this->conn->fetchColumn($query);
  443. -
  444.     }
  445. -
  446.     /**
  447. -
  448.      * list the views in the database that reference a given table
  449. -
  450.      *
  451. -
  452.      * @param string $table     database table name
  453. -
  454.      * @return array 
  455. -
  456.      */
  457. -
  458.     public function listTableViews($table)
  459. -
  460.     {
  461. -
  462.         return $this->conn->fetchColumn($query);
  463. -
  464.     }
  465. -
  466. }
  467. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReader.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReader.php.html deleted file mode 100644 index 75966386f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReader.php.html +++ /dev/null @@ -1,65 +0,0 @@ - -
-

Source for file Reader.php

-

Documentation is available at Reader.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Reader.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Reader.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55. /**
  56. -
  57.  *  class Doctrine_Import_Reader
  58. -
  59.  *  Is responsible of reading a database definitions from a source and costructing a
  60. -
  61.  *  database schema
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @since       1.0
  72. -
  73.  * @version     $Revision: 1080 $
  74. -
  75.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  76. -
  77.  */
  78. -
  79. abstract class Doctrine_Import_Reader
  80. -
  81. {
  82. -
  83.  
  84. -
  85.     /** Aggregations: */
  86. -
  87.  
  88. -
  89.     /*** Attributes: ***/
  90. -
  91.  
  92. -
  93.      /*** Attributes: ***/
  94. -
  95.  
  96. -
  97.     /**
  98. -
  99.      *
  100. -
  101.      * @return Doctrine_Schema 
  102. -
  103.      * @abstract
  104. -
  105.      * @access public
  106. -
  107.      */
  108. -
  109.     abstract public function read);
  110. -
  111.  
  112. -
  113. // end of Doctrine_Import_Reader
  114. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderDb.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderDb.php.html deleted file mode 100644 index e2c6760fc..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderDb.php.html +++ /dev/null @@ -1,110 +0,0 @@ - -
-

Source for file Db.php

-

Documentation is available at Db.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Db.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import_Reader');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Db.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Import_Reader_Db
  60. -
  61.  * Reads a database using the given PDO connection and constructs a database
  62. -
  63.  * schema
  64. -
  65.  * @package     Doctrine
  66. -
  67.  * @category    Object Relational Mapping
  68. -
  69.  * @link        www.phpdoctrine.com
  70. -
  71.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  72. -
  73.  * @since       1.0
  74. -
  75.  * @version     $Revision: 1080 $
  76. -
  77.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  78. -
  79.  */
  80. -
  81. -
  82. {
  83. -
  84.  
  85. -
  86.     /** Aggregations: */
  87. -
  88.  
  89. -
  90.     /*** Attributes: ***/
  91. -
  92.  
  93. -
  94.      /*** Attributes: ***/
  95. -
  96.  
  97. -
  98.     /**
  99. -
  100.      * @access private
  101. -
  102.      */
  103. -
  104.     private $pdo;
  105. -
  106.  
  107. -
  108.     /**
  109. -
  110.      *
  111. -
  112.      * @param object pdo      * @return
  113. -
  114.      * @access public
  115. -
  116.      */
  117. -
  118.     public function setPdo$pdo )
  119. -
  120.     {
  121. -
  122.  
  123. -
  124.     // end of member function setPdo
  125. -
  126.  
  127. -
  128.     /**
  129. -
  130.      *
  131. -
  132.      * @return Doctrine_Schema 
  133. -
  134.      * @access public
  135. -
  136.      */
  137. -
  138.     public function read)
  139. -
  140.     {
  141. -
  142.         $dataDict Doctrine_Manager::getInstance()->getCurrentConnection()->getDataDict();
  143. -
  144.  
  145. -
  146.         $schema new Doctrine_Schema()/* @todo FIXME i am incomplete*/
  147. -
  148.         $db new Doctrine_Schema_Database();
  149. -
  150.         $schema->addDatabase($db);
  151. -
  152.  
  153. -
  154.         $dbName 'XXtest'// @todo FIXME where should we get
  155. -
  156.  
  157. -
  158.         $this->conn->set("name",$dbName);
  159. -
  160.         $tableNames $dataDict->listTables();
  161. -
  162.         foreach ($tableNames as $tableName){
  163. -
  164.             $table new Doctrine_Schema_Table();
  165. -
  166.             $table->set("name",$tableName);
  167. -
  168.             $tableColumns $dataDict->listTableColumns($tableName);
  169. -
  170.             foreach ($tableColumns as $tableColumn){
  171. -
  172.                 $table->addColumn($tableColumn);
  173. -
  174.             }
  175. -
  176.             $this->conn->addTable($table);
  177. -
  178.             if ($fks $dataDict->listTableConstraints($tableName)){
  179. -
  180.                 foreach ($fks as $fk){
  181. -
  182.                     $relation new Doctrine_Schema_Relation();
  183. -
  184.                     $relation->setRelationBetween($fk['referencingColumn'],$fk['referencedTable'],$fk['referencedColumn']);
  185. -
  186.                     $table->setRelation($relation);
  187. -
  188.                 }
  189. -
  190.             }
  191. -
  192.         }
  193. -
  194.  
  195. -
  196.         return $schema;
  197. -
  198.     }
  199. -
  200.  
  201. -
  202. // end of Doctrine_Import_Reader_Db
  203. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderException.php.html deleted file mode 100644 index a462234a1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderException.php.html +++ /dev/null @@ -1,55 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55. /**
  56. -
  57.  *  class Doctrine_Import_Reader_Exception
  58. -
  59.  * @package     Doctrine
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  66. -
  67.  * @since       1.0
  68. -
  69.  * @version     $Revision: 1080 $
  70. -
  71.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  72. -
  73.  */
  74. -
  75. -
  76. {
  77. -
  78.  
  79. -
  80.     /** Aggregations: */
  81. -
  82.  
  83. -
  84.     /*** Attributes: ***/
  85. -
  86.  
  87. -
  88.      /*** Attributes: ***/
  89. -
  90.  
  91. -
  92. // end of Doctrine_Import_Reader_Exception
  93. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderPropel.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderPropel.php.html deleted file mode 100644 index 5ebea07b4..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportReaderPropel.php.html +++ /dev/null @@ -1,74 +0,0 @@ - -
-

Source for file Propel.php

-

Documentation is available at Propel.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Propel.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import_Reader');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Propel.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Import_Reader_Xml_Propel
  60. -
  61.  * @package     Doctrine
  62. -
  63.  * @category    Object Relational Mapping
  64. -
  65.  * @link        www.phpdoctrine.com
  66. -
  67.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  68. -
  69.  * @since       1.0
  70. -
  71.  * @version     $Revision: 1080 $
  72. -
  73.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  74. -
  75.  */
  76. -
  77. -
  78. {
  79. -
  80.  
  81. -
  82.     /** Aggregations: */
  83. -
  84.  
  85. -
  86.     /*** Attributes: ***/
  87. -
  88.  
  89. -
  90.      /*** Attributes: ***/
  91. -
  92.  
  93. -
  94.     /**
  95. -
  96.      * @access private
  97. -
  98.      */
  99. -
  100.     private $xml;
  101. -
  102.  
  103. -
  104.     /**
  105. -
  106.      *
  107. -
  108.      * @param string xml      * @return
  109. -
  110.      * @access public
  111. -
  112.      */
  113. -
  114.     public function setXml$xml )
  115. -
  116.     {
  117. -
  118.  
  119. -
  120.     // end of member function setXml
  121. -
  122.  
  123. -
  124.     public function read()
  125. -
  126.     }
  127. -
  128.  
  129. -
  130. // end of Doctrine_Import_Reader_Xml_Propel
  131. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchema.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchema.php.html deleted file mode 100644 index 68869bbea..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchema.php.html +++ /dev/null @@ -1,96 +0,0 @@ - -
-

Source for file Schema.php

-

Documentation is available at Schema.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  * $Id: Schema.php 1838 2007-06-26 00:58:21Z nicobn $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Import_Schema
  46. -
  47.  *
  48. -
  49.  * Different methods to import a XML schema. The logic behind using two different
  50. -
  51.  * methods is simple. Some people will like the idea of producing Doctrine_Record
  52. -
  53.  * objects directly, which is totally fine. But in fast and growing application,
  54. -
  55.  * table definitions tend to be a little bit more volatile. importArr() can be used
  56. -
  57.  * to output a table definition in a PHP file. This file can then be stored
  58. -
  59.  * independantly from the object itself.
  60. -
  61.  *
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @version     $Revision: 1838 $
  72. -
  73.  * @author      Nicolas Bérard-Nault <nicobn@gmail.com>
  74. -
  75.  * @author      Jonathan H. Wage <jonwage@gmail.com>
  76. -
  77.  */
  78. -
  79. abstract class Doctrine_Import_Schema
  80. -
  81. {
  82. -
  83.     /**
  84. -
  85.      * parse
  86. -
  87.      *
  88. -
  89.      * Function to do the actual parsing of the file
  90. -
  91.      *
  92. -
  93.      * @param string $schema 
  94. -
  95.      * @return void 
  96. -
  97.      * @author Jonathan H. Wage
  98. -
  99.      */
  100. -
  101.     
  102. -
  103.     abstract function parse($schema);
  104. -
  105.     
  106. -
  107.     /**
  108. -
  109.      * Parse the schema and return it in an array
  110. -
  111.      *
  112. -
  113.      * @param  string $schema 
  114. -
  115.      * @access public
  116. -
  117.      */
  118. -
  119.     abstract function parseSchema($schema);
  120. -
  121.     
  122. -
  123.     /**
  124. -
  125.      * importSchema
  126. -
  127.      *
  128. -
  129.      * A method to import a Schema and translate it into a Doctrine_Record object
  130. -
  131.      *
  132. -
  133.      * @param  string $schema       The file containing the XML schema
  134. -
  135.      * @param  string $directory    The directory where the Doctrine_Record class will
  136. -
  137.      *                               be written
  138. -
  139.      * @access public
  140. -
  141.      */
  142. -
  143.     public function importSchema($schema$directory)
  144. -
  145.     {
  146. -
  147.         $builder new Doctrine_Import_Builder();
  148. -
  149.         $builder->setTargetPath($directory);
  150. -
  151.  
  152. -
  153.         $array $this->parseSchema($schema);
  154. -
  155.         
  156. -
  157.         foreach ($array as $name => $properties{
  158. -
  159.             $options['className'$properties['class'];
  160. -
  161.             $options['fileName'$directory.DIRECTORY_SEPARATOR.$properties['class'].'.class.php';
  162. -
  163.             
  164. -
  165.             $columns $properties['columns'];
  166. -
  167.             
  168. -
  169.             $builder->buildRecord($options$columnsarray());
  170. -
  171.         }
  172. -
  173.     }    
  174. -
  175. }
  176. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaXml.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaXml.php.html deleted file mode 100644 index 1d90e7cd8..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaXml.php.html +++ /dev/null @@ -1,112 +0,0 @@ - -
-

Source for file Xml.php

-

Documentation is available at Xml.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  * $Id: Xml.php 1838 2007-06-26 00:58:21Z nicobn $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Import_Xml
  46. -
  47.  *
  48. -
  49.  * Different methods to import a XML schema. The logic behind using two different
  50. -
  51.  * methods is simple. Some people will like the idea of producing Doctrine_Record
  52. -
  53.  * objects directly, which is totally fine. But in fast and growing application,
  54. -
  55.  * table definitions tend to be a little bit more volatile. importArr() can be used
  56. -
  57.  * to output a table definition in a PHP file. This file can then be stored
  58. -
  59.  * independantly from the object itself.
  60. -
  61.  *
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @version     $Revision: 1838 $
  72. -
  73.  * @author      Nicolas Bérard-Nault <nicobn@gmail.com>
  74. -
  75.  * @author      Jonathan H. Wage <jonwage@gmail.com>
  76. -
  77.  */
  78. -
  79. -
  80. {
  81. -
  82.     /**
  83. -
  84.      * parse
  85. -
  86.      *
  87. -
  88.      * @param string $schema 
  89. -
  90.      * @return void 
  91. -
  92.      */
  93. -
  94.     public function parse($schema)
  95. -
  96.     {
  97. -
  98.         if (!is_readable($schema)) {
  99. -
  100.             throw new Doctrine_Import_Exception('Could not read schema file '$schema);
  101. -
  102.         }
  103. -
  104.         
  105. -
  106.         if (!($xmlString file_get_contents($schema))) {
  107. -
  108.             throw new Doctrine_Import_Exception('Schema file '$schema ' is empty');
  109. -
  110.         }
  111. -
  112.         
  113. -
  114.         return simplexml_load_string($xmlString);
  115. -
  116.     }
  117. -
  118.     
  119. -
  120.     /**
  121. -
  122.      * parseSchema
  123. -
  124.      *
  125. -
  126.      * A method to parse a XML Schema and translate it into a property array.
  127. -
  128.      * The function returns that property array.
  129. -
  130.      *
  131. -
  132.      * @param  string $schema   Path to the file containing the XML schema
  133. -
  134.      * @return array 
  135. -
  136.      */
  137. -
  138.     public function parseSchema($schema)
  139. -
  140.     {        
  141. -
  142.         $xmlObj $this->parse($schema);
  143. -
  144.         
  145. -
  146.         // Go through all tables...
  147. -
  148.         foreach ($xmlObj->table as $table{
  149. -
  150.             // Go through all columns... 
  151. -
  152.             foreach ($table->declaration->field as $field{
  153. -
  154.                 $colDesc array(
  155. -
  156.                     'name'      => (string) $field->name,
  157. -
  158.                     'type'      => (string) $field->type,
  159. -
  160.                     'ptype'     => (string) $field->type,
  161. -
  162.                     'length'    => (int) $field->length,
  163. -
  164.                     'fixed'     => (int) $field->fixed,
  165. -
  166.                     'unsigned'  => (bool) $field->unsigned,
  167. -
  168.                     'primary'   => (bool) (isset($field->primary&& $field->primary),
  169. -
  170.                     'default'   => (string) $field->default,
  171. -
  172.                     'notnull'   => (bool) (isset($field->notnull&& $field->notnull),
  173. -
  174.                     'autoinc'   => (bool) (isset($field->autoincrement&& $field->autoincrement),
  175. -
  176.                 );
  177. -
  178.             
  179. -
  180.                 $columns[(string) $field->name$colDesc;
  181. -
  182.             }
  183. -
  184.             
  185. -
  186.             $class $table->class ? (string) $table->class:(string) $table->name;
  187. -
  188.             
  189. -
  190.             $tables[(string) $table->name]['name'= (string) $table->name;
  191. -
  192.             $tables[(string) $table->name]['class'= (string) $class;
  193. -
  194.             
  195. -
  196.             $tables[(string) $table->name]['columns'$columns;
  197. -
  198.         }
  199. -
  200.         
  201. -
  202.         return $tables;
  203. -
  204.     }
  205. -
  206. }
  207. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaYml.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaYml.php.html deleted file mode 100644 index eb2634d7d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSchemaYml.php.html +++ /dev/null @@ -1,108 +0,0 @@ - -
-

Source for file Yml.php

-

Documentation is available at Yml.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  * $Id: Yml.php 1838 2007-06-26 00:58:21Z nicobn $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Import_Schema_Yml
  46. -
  47.  *
  48. -
  49.  * Different methods to import a YML schema. The logic behind using two different
  50. -
  51.  * methods is simple. Some people will like the idea of producing Doctrine_Record
  52. -
  53.  * objects directly, which is totally fine. But in fast and growing application,
  54. -
  55.  * table definitions tend to be a little bit more volatile. importArr() can be used
  56. -
  57.  * to output a table definition in a PHP file. This file can then be stored
  58. -
  59.  * independantly from the object itself.
  60. -
  61.  *
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @version     $Revision: 1838 $
  72. -
  73.  * @author      Nicolas Bérard-Nault <nicobn@gmail.com>
  74. -
  75.  * @author      Jonathan H. Wage <jonwage@gmail.com>
  76. -
  77.  */
  78. -
  79. -
  80. {
  81. -
  82.     /**
  83. -
  84.      * parse
  85. -
  86.      *
  87. -
  88.      * @param string $schema 
  89. -
  90.      * @return void 
  91. -
  92.      */
  93. -
  94.     public function parse($schema)
  95. -
  96.     {
  97. -
  98.         if (!is_readable($schema)) {
  99. -
  100.             throw new Doctrine_Import_Exception('Could not read schema file '$schema);
  101. -
  102.         }
  103. -
  104.  
  105. -
  106.         return array();
  107. -
  108.     }
  109. -
  110.     
  111. -
  112.     /**
  113. -
  114.      * parseSchema
  115. -
  116.      *
  117. -
  118.      * A method to parse a Yml Schema and translate it into a property array.
  119. -
  120.      * The function returns that property array.
  121. -
  122.      *
  123. -
  124.      * @param  string $schema   Path to the file containing the XML schema
  125. -
  126.      * @return array 
  127. -
  128.      */
  129. -
  130.     public function parseSchema($schema)
  131. -
  132.     
  133. -
  134.         $array $this->parse($schema);
  135. -
  136.           
  137. -
  138.         $tables array();
  139. -
  140.         
  141. -
  142.         // Not working yet
  143. -
  144.         /*
  145. -
  146.         // Go through all tables...
  147. -
  148.         foreach ($array['table'] as $table) {
  149. -
  150.             // Go through all columns... 
  151. -
  152.             foreach ($table['declaration']['field'] as $field) {
  153. -
  154.                 $colDesc = array(
  155. -
  156.                     'name'      => (string) $field['name'],
  157. -
  158.                     'type'      => (string) $field['type'],
  159. -
  160.                     'ptype'     => (string) $field['type'],
  161. -
  162.                     'length'    => (int) $field['length'],
  163. -
  164.                     'fixed'     => (int) $field['fixed'],
  165. -
  166.                     'unsigned'  => (bool) $field['unsigned'],
  167. -
  168.                     'primary'   => (bool) (isset($field['primary']) && $field['primary']),
  169. -
  170.                     'default'   => (string) $field['default'],
  171. -
  172.                     'notnull'   => (bool) (isset($field['notnull']) && $field['notnull']),
  173. -
  174.                     'autoinc'   => (bool) (isset($field['autoincrement']) && $field['autoincrement']),
  175. -
  176.                 );
  177. -
  178.             
  179. -
  180.                 $columns[(string) $field['name']] = $colDesc;
  181. -
  182.             }
  183. -
  184.             
  185. -
  186.             $tables[(string) $table['name']] = $columns;
  187. -
  188.         }
  189. -
  190.         */
  191. -
  192.         
  193. -
  194.         return $tables;
  195. -
  196.     }
  197. -
  198. }
  199. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSqlite.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSqlite.php.html deleted file mode 100644 index 5557de1d3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineImportSqlite.php.html +++ /dev/null @@ -1,238 +0,0 @@ - -
-

Source for file Sqlite.php

-

Documentation is available at Sqlite.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sqlite.php 1889 2007-06-28 12:11:55Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Import');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  52. -
  53.  * @version     $Revision: 1889 $
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * lists all databases
  69. -
  70.      *
  71. -
  72.      * @return array 
  73. -
  74.      */
  75. -
  76.     public function listDatabases()
  77. -
  78.     {
  79. -
  80.  
  81. -
  82.     }
  83. -
  84.     /**
  85. -
  86.      * lists all availible database functions
  87. -
  88.      *
  89. -
  90.      * @return array 
  91. -
  92.      */
  93. -
  94.     public function listFunctions()
  95. -
  96.     {
  97. -
  98.  
  99. -
  100.     }
  101. -
  102.     /**
  103. -
  104.      * lists all database triggers
  105. -
  106.      *
  107. -
  108.      * @param string|null$database 
  109. -
  110.      * @return array 
  111. -
  112.      */
  113. -
  114.     public function listTriggers($database null)
  115. -
  116.     {
  117. -
  118.  
  119. -
  120.     }
  121. -
  122.     /**
  123. -
  124.      * lists all database sequences
  125. -
  126.      *
  127. -
  128.      * @param string|null$database 
  129. -
  130.      * @return array 
  131. -
  132.      */
  133. -
  134.     public function listSequences($database null)
  135. -
  136.     {
  137. -
  138.         $query      "SELECT name FROM sqlite_master WHERE type='table' AND sql NOT NULL ORDER BY name";
  139. -
  140.         $tableNames $this->conn->fetchColumn($query);
  141. -
  142.  
  143. -
  144.         $result array();
  145. -
  146.         foreach ($tableNames as $tableName{
  147. -
  148.             if ($sqn $this->conn->fixSequenceName($tableNametrue)) {
  149. -
  150.                 $result[$sqn;
  151. -
  152.             }
  153. -
  154.         }
  155. -
  156.         if ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_FIX_CASE{
  157. -
  158.             $result array_map(($this->conn->getAttribute(Doctrine::ATTR_FIELD_CASE== CASE_LOWER 'strtolower' 'strtoupper')$result);
  159. -
  160.         }
  161. -
  162.         return $result;
  163. -
  164.     }
  165. -
  166.     /**
  167. -
  168.      * lists table constraints
  169. -
  170.      *
  171. -
  172.      * @param string $table     database table name
  173. -
  174.      * @return array 
  175. -
  176.      */
  177. -
  178.     public function listTableConstraints($table)
  179. -
  180.     {
  181. -
  182.         $table $this->conn->quote($table'text');
  183. -
  184.  
  185. -
  186.         $query "SELECT sql FROM sqlite_master WHERE type='index' AND ";
  187. -
  188.  
  189. -
  190.         if ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_FIX_CASE{
  191. -
  192.             $query .= 'LOWER(tbl_name) = ' strtolower($table);
  193. -
  194.         else {
  195. -
  196.             $query .= 'tbl_name = ' $table;
  197. -
  198.         }
  199. -
  200.         $query  .= ' AND sql NOT NULL ORDER BY name';
  201. -
  202.         $indexes $this->conn->fetchColumn($query);
  203. -
  204.  
  205. -
  206.         $result array();
  207. -
  208.         foreach ($indexes as $sql{
  209. -
  210.             if (preg_match("/^create unique index ([^ ]+) on /i"$sql$tmp)) {
  211. -
  212.                 $index $this->conn->fixIndexName($tmp[1]);
  213. -
  214.                 if empty($index)) {
  215. -
  216.                     $result[$indextrue;
  217. -
  218.                 }
  219. -
  220.             }
  221. -
  222.         }
  223. -
  224.  
  225. -
  226.         if ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITYDoctrine::PORTABILITY_FIX_CASE{
  227. -
  228.             $result array_change_key_case($result$this->conn->getAttribute(Doctrine::ATTR_FIELD_CASE));
  229. -
  230.         }
  231. -
  232.         return array_keys($result);
  233. -
  234.     }
  235. -
  236.     /**
  237. -
  238.      * lists table constraints
  239. -
  240.      *
  241. -
  242.      * @param string $table     database table name
  243. -
  244.      * @return array 
  245. -
  246.      */
  247. -
  248.     public function listTableColumns($table)
  249. -
  250.     {
  251. -
  252.         $sql    'PRAGMA table_info(' $table ')';
  253. -
  254.         $result $this->conn->fetchAll($sql);
  255. -
  256.  
  257. -
  258.         $description array();
  259. -
  260.         $columns     array();
  261. -
  262.         foreach ($result as $key => $val{
  263. -
  264.             $val array_change_key_case($valCASE_LOWER);
  265. -
  266.             $decl $this->conn->dataDict->getPortableDeclaration($val);
  267. -
  268.  
  269. -
  270.             $description array(
  271. -
  272.                     'name'      => $val['name'],
  273. -
  274.                     'ntype'     => $val['type'],
  275. -
  276.                     'type'      => $decl['type'][0],
  277. -
  278.                     'alltypes'  => $decl['type'],
  279. -
  280.                     'notnull'   => (bool) $val['notnull'],
  281. -
  282.                     'default'   => $val['dflt_value'],
  283. -
  284.                     'primary'   => (bool) $val['pk'],
  285. -
  286.                     'length'    => null,
  287. -
  288.                     'scale'     => null,
  289. -
  290.                     'precision' => null,
  291. -
  292.                     'unsigned'  => null,
  293. -
  294.                     );
  295. -
  296.             $columns[$val['name']] $description;
  297. -
  298.         }
  299. -
  300.         return $columns;
  301. -
  302.     }
  303. -
  304.     /**
  305. -
  306.      * lists table constraints
  307. -
  308.      *
  309. -
  310.      * @param string $table     database table name
  311. -
  312.      * @return array 
  313. -
  314.      */
  315. -
  316.     public function listTableIndexes($table)
  317. -
  318.     {
  319. -
  320.         $sql  'PRAGMA index_list(' $table ')';
  321. -
  322.         return $this->conn->fetchColumn($sql);
  323. -
  324.    }
  325. -
  326.     /**
  327. -
  328.      * lists tables
  329. -
  330.      *
  331. -
  332.      * @param string|null$database 
  333. -
  334.      * @return array 
  335. -
  336.      */
  337. -
  338.     public function listTables($database null)
  339. -
  340.     {
  341. -
  342.         $sql "SELECT name FROM sqlite_master WHERE type = 'table' "
  343. -
  344.              . "UNION ALL SELECT name FROM sqlite_temp_master "
  345. -
  346.              . "WHERE type = 'table' ORDER BY name";
  347. -
  348.  
  349. -
  350.         return $this->conn->fetchColumn($sql);
  351. -
  352.     }
  353. -
  354.     /**
  355. -
  356.      * lists table triggers
  357. -
  358.      *
  359. -
  360.      * @param string $table     database table name
  361. -
  362.      * @return array 
  363. -
  364.      */
  365. -
  366.     public function listTableTriggers($table)
  367. -
  368.     {
  369. -
  370.  
  371. -
  372.     }
  373. -
  374.     /**
  375. -
  376.      * lists table views
  377. -
  378.      *
  379. -
  380.      * @param string $table     database table name
  381. -
  382.      * @return array 
  383. -
  384.      */
  385. -
  386.     public function listTableViews($table)
  387. -
  388.     {
  389. -
  390.         $query "SELECT name, sql FROM sqlite_master WHERE type='view' AND sql NOT NULL";
  391. -
  392.         $views $db->fetchAll($query);
  393. -
  394.  
  395. -
  396.         $result array();
  397. -
  398.         foreach ($views as $row{
  399. -
  400.             if (preg_match("/^create view .* \bfrom\b\s+\b{$table}\b /i"$row['sql'])) {
  401. -
  402.                 if empty($row['name'])) {
  403. -
  404.                     $result[$row['name']] true;
  405. -
  406.                 }
  407. -
  408.             }
  409. -
  410.         }
  411. -
  412.         return $result;
  413. -
  414.     }
  415. -
  416.     /**
  417. -
  418.      * lists database users
  419. -
  420.      *
  421. -
  422.      * @return array 
  423. -
  424.      */
  425. -
  426.     public function listUsers()
  427. -
  428.     {
  429. -
  430.  
  431. -
  432.     }
  433. -
  434.     /**
  435. -
  436.      * lists database views
  437. -
  438.      *
  439. -
  440.      * @param string|null$database 
  441. -
  442.      * @return array 
  443. -
  444.      */
  445. -
  446.     public function listViews($database null)
  447. -
  448.     {
  449. -
  450.         $query "SELECT name FROM sqlite_master WHERE type='view' AND sql NOT NULL";
  451. -
  452.  
  453. -
  454.         return $this->conn->fetchColumn($query);
  455. -
  456.     }
  457. -
  458. }
  459. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineIntegrityMapper.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineIntegrityMapper.php.html deleted file mode 100644 index 784d65796..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineIntegrityMapper.php.html +++ /dev/null @@ -1,150 +0,0 @@ - -
-

Source for file IntegrityMapper.php

-

Documentation is available at IntegrityMapper.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_IntegrityMapper
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function processDeleteIntegrity(Doctrine_Record $record)
  69. -
  70.     {
  71. -
  72.         $coll $this->buildIntegrityRelationQuery($record);
  73. -
  74.         
  75. -
  76.         $this->invokeIntegrityActions($record);
  77. -
  78.     }
  79. -
  80.     public function invokeIntegrityActions(Doctrine_Record $record)
  81. -
  82.     {
  83. -
  84.         $deleteActions Doctrine_Manager::getInstance()
  85. -
  86.                          ->getDeleteActions($record->getTable()->getComponentName());
  87. -
  88.                          
  89. -
  90.         foreach ($record->getTable()->getRelations(as $relation{
  91. -
  92.             $componentName $relation->getTable()->getComponentName();
  93. -
  94.             
  95. -
  96.             foreach($record->get($relation->getAlias()) as $coll{
  97. -
  98.                 if ($coll instanceof Doctrine_Collection)) {
  99. -
  100.                     $coll array($coll);
  101. -
  102.                 }
  103. -
  104.                 foreach ($coll as $record{
  105. -
  106.                     $this->invokeIntegrityActions($record);
  107. -
  108.  
  109. -
  110.                     if (isset($deleteActions[$componentName])) {
  111. -
  112.                         if ($deleteActions[$componentName=== 'SET NULL'{
  113. -
  114.                             $record->set($relation->getForeign()null);
  115. -
  116.                         elseif ($deleteActions[$componentName=== 'CASCADE'{
  117. -
  118.                             $this->conn->transaction->addDelete($record);
  119. -
  120.                         }
  121. -
  122.                     }
  123. -
  124.  
  125. -
  126.                 }
  127. -
  128.             }
  129. -
  130.         }
  131. -
  132.     }
  133. -
  134.     public function buildIntegrityRelationQuery(Doctrine_Record $record)
  135. -
  136.     {
  137. -
  138.         $q new Doctrine_Query();
  139. -
  140.         
  141. -
  142.         $aliases array();
  143. -
  144.         $indexes array();
  145. -
  146.  
  147. -
  148.         $root $record->getTable()->getComponentName();
  149. -
  150.         $rootAlias strtolower(substr($root01));
  151. -
  152.         $aliases[$rootAlias$root;
  153. -
  154.  
  155. -
  156.         foreach ((array) $record->getTable()->getIdentifier(as $id{
  157. -
  158.             $field $rootAlias '.' $id;
  159. -
  160.             $cond[]   $field ' = ?';
  161. -
  162.             $fields[$field;
  163. -
  164.             $params   $record->get($id);
  165. -
  166.         }
  167. -
  168.         $fields implode(', '$fields);
  169. -
  170.         $components[$root;
  171. -
  172.         $this->buildIntegrityRelations($record->getTable()$aliases$fields$indexes$components);
  173. -
  174.  
  175. -
  176.         $q->select($fields)->from($root' ' $rootAlias);
  177. -
  178.  
  179. -
  180.         foreach ($aliases as $alias => $name{
  181. -
  182.             $q->leftJoin($rootAlias '.' $name ' ' $alias);
  183. -
  184.         }
  185. -
  186.         $q->where(implode(' AND '$cond));
  187. -
  188.  
  189. -
  190.         return $q->execute(array($params));
  191. -
  192.     }
  193. -
  194.     public function buildIntegrityRelations(Doctrine_Table $table&$aliases&$fields&$indexes&$components)
  195. -
  196.     {
  197. -
  198.         $deleteActions Doctrine_Manager::getInstance()
  199. -
  200.                          ->getDeleteActions($table->getComponentName());
  201. -
  202.  
  203. -
  204.         foreach ($table->getRelations(as $relation{
  205. -
  206.             $componentName $relation->getTable()->getComponentName();
  207. -
  208.             if (in_array($componentName$components)) {
  209. -
  210.                 continue;
  211. -
  212.             }
  213. -
  214.             $components[$componentName;
  215. -
  216.  
  217. -
  218.             $alias strtolower(substr($relation->getAlias()01));
  219. -
  220.  
  221. -
  222.             if isset($indexes[$alias])) {
  223. -
  224.                 $indexes[$alias1;
  225. -
  226.             }
  227. -
  228.  
  229. -
  230.             if (isset($deleteActions[$componentName])) {
  231. -
  232.                 if (isset($aliases[$alias])) {
  233. -
  234.                     $alias $alias . ++$indexes[$alias];
  235. -
  236.                 }
  237. -
  238.                 $aliases[$alias$relation->getAlias();
  239. -
  240.  
  241. -
  242.                 if ($deleteActions[$componentName=== 'SET NULL'{
  243. -
  244.                     if ($relation instanceof Doctrine_Relation_ForeignKey{
  245. -
  246.                         foreach ((array) $relation->getForeign(as $foreign{
  247. -
  248.                             $fields .= ', ' $alias '.' $foreign;
  249. -
  250.                         }
  251. -
  252.                     elseif ($relation instanceof Doctrine_Relation_LocalKey{
  253. -
  254.                         foreach ((array) $relation->getLocal(as $foreign{
  255. -
  256.                             $fields .= ', ' $alias '.' $foreign;
  257. -
  258.                         }
  259. -
  260.                     }
  261. -
  262.                 }
  263. -
  264.                 foreach ((array) $relation->getTable()->getIdentifier(as $id{
  265. -
  266.                     $fields .= ', ' $alias '.' $id;
  267. -
  268.                 }
  269. -
  270.                 if ($deleteActions[$componentName=== 'CASCADE'{
  271. -
  272.                     $this->buildIntegrityRelations($relation->getTable()$aliases$fields$indexes$components);
  273. -
  274.                 }
  275. -
  276.             }
  277. -
  278.         }
  279. -
  280.     }
  281. -
  282. }
  283. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLib.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLib.php.html deleted file mode 100644 index 2aa8fbdab..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLib.php.html +++ /dev/null @@ -1,268 +0,0 @@ - -
-

Source for file Lib.php

-

Documentation is available at Lib.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Lib.php 1916 2007-07-01 10:47:44Z meus $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Lib has not commonly used static functions, mostly for debugging purposes
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1916 $
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * @param integer $state                the state of record
  69. -
  70.      * @see Doctrine_Record::STATE_* constants
  71. -
  72.      * @return string                       string representation of given state
  73. -
  74.      */
  75. -
  76.     public static function getRecordStateAsString($state)
  77. -
  78.     {
  79. -
  80.         switch ($state{
  81. -
  82.         case Doctrine_Record::STATE_PROXY:
  83. -
  84.             return "proxy";
  85. -
  86.             break;
  87. -
  88.         case Doctrine_Record::STATE_CLEAN:
  89. -
  90.             return "persistent clean";
  91. -
  92.             break;
  93. -
  94.         case Doctrine_Record::STATE_DIRTY:
  95. -
  96.             return "persistent dirty";
  97. -
  98.             break;
  99. -
  100.         case Doctrine_Record::STATE_TDIRTY:
  101. -
  102.             return "transient dirty";
  103. -
  104.             break;
  105. -
  106.         case Doctrine_Record::STATE_TCLEAN:
  107. -
  108.             return "transient clean";
  109. -
  110.             break;
  111. -
  112.         }
  113. -
  114.     }
  115. -
  116.     /**
  117. -
  118.      * returns a string representation of Doctrine_Record object
  119. -
  120.      * @param Doctrine_Record $record 
  121. -
  122.      * @return string 
  123. -
  124.      */
  125. -
  126.     public static function getRecordAsString(Doctrine_Record $record)
  127. -
  128.     {
  129. -
  130.         $r['<pre>';
  131. -
  132.         $r['Component  : ' $record->getTable()->getComponentName();
  133. -
  134.         $r['ID         : ' $record->obtainIdentifier();
  135. -
  136.         $r['References : ' count($record->getReferences());
  137. -
  138.         $r['State      : ' Doctrine_Lib::getRecordStateAsString($record->getState());
  139. -
  140.         $r['OID        : ' $record->getOID();
  141. -
  142.         $r['data       : ' Doctrine::dump($record->getData()false);
  143. -
  144.         $r['</pre>';
  145. -
  146.         return implode("\n",$r)."<br />";
  147. -
  148.     }
  149. -
  150.     /**
  151. -
  152.      * Return an collection of records as XML.
  153. -
  154.      * 
  155. -
  156.      * @see getRecordAsXml for options to set in the record class to control this.
  157. -
  158.      *
  159. -
  160.      * @param Doctrine_Collection $collection 
  161. -
  162.      * @param SimpleXMLElement $xml 
  163. -
  164.      * @return string Xml as string
  165. -
  166.      */
  167. -
  168.  
  169. -
  170.     public static function getCollectionAsXml(Doctrine_Collection $collectionSimpleXMLElement $incomming_xml null){
  171. -
  172.  
  173. -
  174.         $collectionName Doctrine_Lib::plurelize($collection->getTable()->tableName);
  175. -
  176.                 if $collection->count != 0{
  177. -
  178.                     $record $collection[0];
  179. -
  180.             $xml_options $record->option("xml");
  181. -
  182.                     if isset($xml_options["collection_name"])) {
  183. -
  184.                         $collectionName $xml_options["collection_name"];
  185. -
  186.                     }
  187. -
  188.                 }
  189. -
  190.  
  191. -
  192.         if isset($incomming_xml)) {
  193. -
  194.                         $new_xml_string "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><" $collectionName "></" $collectionName ">";
  195. -
  196.             $xml new SimpleXMLElement($new_xml_string);
  197. -
  198.         else {
  199. -
  200.             $xml $incomming_xml->addChild($collectionName);
  201. -
  202.         }
  203. -
  204.         foreach ($collection as $key => $record{
  205. -
  206.             Doctrine_Lib::getRecordAsXml($record$xml);
  207. -
  208.         }
  209. -
  210.         return $xml->asXML();
  211. -
  212.     }
  213. -
  214.  
  215. -
  216.     public static function plurelize($string){
  217. -
  218.         return $string "s";
  219. -
  220.     }
  221. -
  222.  
  223. -
  224.     /**
  225. -
  226.      * Return a recrd as XML.
  227. -
  228.      *
  229. -
  230.      * In order to control how this is done set the "xml" option in a record.
  231. -
  232.      * This option is an array that has the keys "ignore_fields" and "include_relations". Both of these are arrays that list the name of fields/relations to include/process.
  233. -
  234.      *
  235. -
  236.      * If you want to insert this xml as a part inside another xml send a
  237. -
  238.      * SimpleXMLElement to the function. Because of the nature of SimpleXML the
  239. -
  240.      * content you add to this element will be avilable after the function is
  241. -
  242.      * complete.
  243. -
  244.      *
  245. -
  246.      * @param Doctrine_Record $record 
  247. -
  248.      * @param SimpleXMLElement $xml 
  249. -
  250.      * @return string Xml as string
  251. -
  252.      */
  253. -
  254.     public static function getRecordAsXml(Doctrine_Record $recordSimpleXMlElement $incomming_xml NULL)
  255. -
  256.     {
  257. -
  258.         $recordname $record->getTable()->tableName;
  259. -
  260.         if !isset($incomming_xml)) {
  261. -
  262.                         $new_xml_string "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><" $recordname "></" $recordname ">";
  263. -
  264.             $xml new SimpleXMLElement($new_xml_string);
  265. -
  266.         }else{
  267. -
  268.             $xml $incomming_xml->addChild($recordname);
  269. -
  270.         }
  271. -
  272.                 foreach($record->obtainIdentifier(as $pk_field => $pk_value){
  273. -
  274.                     $xml->addChild($pk_field,$pk_value)
  275. -
  276.                 }
  277. -
  278.         $xml_options $record->option("xml");
  279. -
  280.                 if isset($xml_options["record_name"])) {
  281. -
  282.                     $recordname $xml_options["record_name"];
  283. -
  284.                 }
  285. -
  286.         foreach ($record->getData(as $field => $value{
  287. -
  288.             if ((isset($xml_options["ignore_fields"]&& !in_array($field$xml_options["ignore_fields"])) || !isset($xml_options["ignore_fields"])) {
  289. -
  290.                 if ($value instanceOf Doctrine_Null{
  291. -
  292.                     $xml->addChild($field);
  293. -
  294.                 else {    
  295. -
  296.                     $xml->addChild($field$value);
  297. -
  298.                 }
  299. -
  300.             }
  301. -
  302.         }
  303. -
  304.         if (!isset($xml_options["include_relations"])) {
  305. -
  306.             return $xml->asXML();
  307. -
  308.         }
  309. -
  310.         $relations $record->getTable()->getRelations();
  311. -
  312.         foreach ($relations as $name => $relation{
  313. -
  314.             if (in_array($name$xml_options["include_relations"])) {
  315. -
  316.                 $relation_type $relation->getType();
  317. -
  318.                 $related_records $record->get($name);
  319. -
  320.                 if ($relation_type == Doctrine_Relation::ONE && $related_records instanceOf Doctrine_Record{
  321. -
  322.                     Doctrine_Lib::getRecordAsXml($related_records$xml);
  323. -
  324.                 else {
  325. -
  326.                     Doctrine_Lib::getCollectionAsXml($related_records$xml);
  327. -
  328.                 }
  329. -
  330.             }
  331. -
  332.         }
  333. -
  334.         return $xml->asXML();
  335. -
  336.     }
  337. -
  338.  
  339. -
  340.  
  341. -
  342.     /**
  343. -
  344.      * getStateAsString
  345. -
  346.      * returns a given connection state as string
  347. -
  348.      * @param integer $state        connection state
  349. -
  350.      */
  351. -
  352.     public static function getConnectionStateAsString($state)
  353. -
  354.     {
  355. -
  356.         switch ($state{
  357. -
  358.         case Doctrine_Transaction::STATE_SLEEP:
  359. -
  360.             return "open";
  361. -
  362.             break;
  363. -
  364.         case Doctrine_Transaction::STATE_BUSY:
  365. -
  366.             return "busy";
  367. -
  368.             break;
  369. -
  370.         case Doctrine_Transaction::STATE_ACTIVE:
  371. -
  372.             return "active";
  373. -
  374.             break;
  375. -
  376.         }
  377. -
  378.     }
  379. -
  380.     /**
  381. -
  382.      * returns a string representation of Doctrine_Connection object
  383. -
  384.      * @param Doctrine_Connection $connection 
  385. -
  386.      * @return string 
  387. -
  388.      */
  389. -
  390.     public static function getConnectionAsString(Doctrine_Connection $connection)
  391. -
  392.     {
  393. -
  394.         $r['<pre>';
  395. -
  396.         $r['Doctrine_Connection object';
  397. -
  398.         $r['State               : ' Doctrine_Lib::getConnectionStateAsString($connection->transaction->getState());
  399. -
  400.         $r['Open Transactions   : ' $connection->transaction->getTransactionLevel();
  401. -
  402.         $r['Table in memory     : ' $connection->count();
  403. -
  404.         $r['Driver name         : ' $connection->getAttribute(Doctrine::ATTR_DRIVER_NAME);
  405. -
  406.  
  407. -
  408.         $r["</pre>";
  409. -
  410.         return implode("\n",$r)."<br>";
  411. -
  412.     }
  413. -
  414.     /**
  415. -
  416.      * returns a string representation of Doctrine_Table object
  417. -
  418.      * @param Doctrine_Table $table 
  419. -
  420.      * @return string 
  421. -
  422.      */
  423. -
  424.     public static function getTableAsString(Doctrine_Table $table)
  425. -
  426.     {
  427. -
  428.         $r["<pre>";
  429. -
  430.         $r["Component   : ".$table->getComponentName();
  431. -
  432.         $r["Table       : ".$table->getTableName();
  433. -
  434.         $r["</pre>";
  435. -
  436.         return implode("\n",$r)."<br>";
  437. -
  438.     }
  439. -
  440.     /**
  441. -
  442.      * @return string 
  443. -
  444.      */
  445. -
  446.     public static function formatSql($sql)
  447. -
  448.     {
  449. -
  450.         $e explode("\n",$sql);
  451. -
  452.         $color "367FAC";
  453. -
  454.         $l $sql;
  455. -
  456.         $l str_replace("SELECT ""<font color='$color'><b>SELECT </b></font><br \>  ",$l);
  457. -
  458.         $l str_replace("FROM ""<font color='$color'><b>FROM </b></font><br \>",$l);
  459. -
  460.         $l str_replace(" LEFT JOIN ""<br \><font color='$color'><bLEFT JOIN </b></font>",$l);
  461. -
  462.         $l str_replace(" INNER JOIN ""<br \><font color='$color'><bINNER JOIN </b></font>",$l);
  463. -
  464.         $l str_replace(" WHERE ""<br \><font color='$color'><bWHERE </b></font>",$l);
  465. -
  466.         $l str_replace(" GROUP BY ""<br \><font color='$color'><bGROUP BY </b></font>",$l);
  467. -
  468.         $l str_replace(" HAVING ""<br \><font color='$color'><bHAVING </b></font>",$l);
  469. -
  470.         $l str_replace(" AS ""<font color='$color'><bAS </b></font><br \>  ",$l);
  471. -
  472.         $l str_replace(" ON ""<font color='$color'><bON </b></font>",$l);
  473. -
  474.         $l str_replace(" ORDER BY ""<font color='$color'><bORDER BY </b></font><br \>",$l);
  475. -
  476.         $l str_replace(" LIMIT ""<font color='$color'><bLIMIT </b></font><br \>",$l);
  477. -
  478.         $l str_replace(" OFFSET ""<font color='$color'><bOFFSET </b></font><br \>",$l);
  479. -
  480.         $l str_replace("  ""<dd>",$l);
  481. -
  482.  
  483. -
  484.         return $l;
  485. -
  486.     }
  487. -
  488.     /**
  489. -
  490.      * returns a string representation of Doctrine_Collection object
  491. -
  492.      * @param Doctrine_Collection $collection 
  493. -
  494.      * @return string 
  495. -
  496.      */
  497. -
  498.     public static function getCollectionAsString(Doctrine_Collection $collection)
  499. -
  500.     {
  501. -
  502.         $r["<pre>";
  503. -
  504.         $r[get_class($collection);
  505. -
  506.         $r['data : ' Doctrine::dump($collection->getData()false);
  507. -
  508.         //$r[] = 'snapshot : ' . Doctrine::dump($collection->getSnapshot());
  509. -
  510.  
  511. -
  512.         $r["</pre>";
  513. -
  514.         return implode("\n",$r);
  515. -
  516.     }
  517. -
  518. }
  519. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingException.php.html deleted file mode 100644 index 9d734cf81..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingException.php.html +++ /dev/null @@ -1,24 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?PHP
  2. -
  3. /**
  4. -
  5.  * Locking exception class
  6. -
  7.  *
  8. -
  9.  * A loking exception represents an error that occured during a locking process
  10. -
  11.  * (obtain/release locks).
  12. -
  13.  * @package     Doctrine
  14. -
  15.  * @category    Object Relational Mapping
  16. -
  17.  * @link        www.phpdoctrine.com
  18. -
  19.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  20. -
  21.  * @since       1.0
  22. -
  23.  * @version     $Revision: 1080 $
  24. -
  25.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  26. -
  27.  */
  28. -
  29. -
  30. {}
  31. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingManagerPessimistic.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingManagerPessimistic.php.html deleted file mode 100644 index e0856d2f6..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineLockingManagerPessimistic.php.html +++ /dev/null @@ -1,298 +0,0 @@ - -
-

Source for file Pessimistic.php

-

Documentation is available at Pessimistic.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pessimistic.php 1468 2007-05-24 16:54:42Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Offline locking of records comes in handy where you need to make sure that
  44. -
  45.  * a time-consuming task on a record or many records, which is spread over several
  46. -
  47.  * page requests can't be interfered by other users.
  48. -
  49.  *
  50. -
  51.  * @link        www.phpdoctrine.com
  52. -
  53.  * @author      Roman Borschel <roman@code-factory.org>
  54. -
  55.  * @author      Pierre Minnieur <pm@pierre-minnieur.de>
  56. -
  57.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  58. -
  59.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  60. -
  61.  * @since       1.0
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @version     $Revision: 1468 $
  68. -
  69.  */
  70. -
  71. -
  72. {
  73. -
  74.     /**
  75. -
  76.      * The conn that is used by the locking manager
  77. -
  78.      *
  79. -
  80.      * @var Doctrine_Connection object
  81. -
  82.      */
  83. -
  84.     private $conn;
  85. -
  86.     /**
  87. -
  88.      * The database table name for the lock tracking
  89. -
  90.      */
  91. -
  92.     private $_lockTable = 'doctrine_lock_tracking';
  93. -
  94.  
  95. -
  96.     /**
  97. -
  98.      * Constructs a new locking manager object
  99. -
  100.      *
  101. -
  102.      * When the CREATE_TABLES attribute of the connection on which the manager
  103. -
  104.      * is supposed to work on is set to true, the locking table is created.
  105. -
  106.      *
  107. -
  108.      * @param Doctrine_Connection $conn The database connection to use
  109. -
  110.      */
  111. -
  112.     public function __construct(Doctrine_Connection $conn)
  113. -
  114.     {
  115. -
  116.         $this->conn = $conn;
  117. -
  118.  
  119. -
  120.         if ($this->conn->getAttribute(Doctrine::ATTR_EXPORTDoctrine::EXPORT_TABLES{
  121. -
  122.             $columns array();
  123. -
  124.             $columns['object_type']        array('type'    => 'string',
  125. -
  126.                                                    'length'  => 50,
  127. -
  128.                                                    'notnull' => true,
  129. -
  130.                                                    'primary' => true);
  131. -
  132.  
  133. -
  134.             $columns['object_key']         array('type'    => 'string',
  135. -
  136.                                                    'length'  => 250,
  137. -
  138.                                                    'notnull' => true,
  139. -
  140.                                                    'primary' => true);
  141. -
  142.  
  143. -
  144.             $columns['user_ident']         array('type'    => 'string',
  145. -
  146.                                                    'length'  => 50,
  147. -
  148.                                                    'notnull' => true);
  149. -
  150.  
  151. -
  152.             $columns['timestamp_obtained'array('type'    => 'integer',
  153. -
  154.                                                    'length'  => 10,
  155. -
  156.                                                    'notnull' => true);
  157. -
  158.  
  159. -
  160.             $options array('primary' => array('object_type''object_key'));
  161. -
  162.             try {
  163. -
  164.                 $this->conn->export->createTable($this->_lockTable$columns$options);
  165. -
  166.             catch(Exception $e{
  167. -
  168.  
  169. -
  170.             }
  171. -
  172.         }
  173. -
  174.     }
  175. -
  176.  
  177. -
  178.     /**
  179. -
  180.      * Obtains a lock on a {@link Doctrine_Record}
  181. -
  182.      *
  183. -
  184.      * @param  Doctrine_Record $record     The record that has to be locked
  185. -
  186.      * @param  mixed           $userIdent  A unique identifier of the locking user
  187. -
  188.      * @return boolean  TRUE if the locking was successful, FALSE if another user
  189. -
  190.      *                   holds a lock on this record
  191. -
  192.      * @throws Doctrine_Locking_Exception  If the locking failed due to database errors
  193. -
  194.      */
  195. -
  196.     public function getLock(Doctrine_Record $record$userIdent)
  197. -
  198.     {
  199. -
  200.         $objectType $record->getTable()->getComponentName();
  201. -
  202.         $key        $record->obtainIdentifier();
  203. -
  204.  
  205. -
  206.         $gotLock false;
  207. -
  208.         $time time();
  209. -
  210.  
  211. -
  212.         if (is_array($key)) {
  213. -
  214.             // Composite key
  215. -
  216.             $key implode('|'$key);
  217. -
  218.         }
  219. -
  220.  
  221. -
  222.         try {
  223. -
  224.             $dbh $this->conn->getDbh();
  225. -
  226.             $dbh->beginTransaction();
  227. -
  228.  
  229. -
  230.             $stmt $dbh->prepare('INSERT INTO ' $this->_lockTable
  231. -
  232.                                   . ' (object_type, object_key, user_ident, timestamp_obtained)'
  233. -
  234.                                   . ' VALUES (:object_type, :object_key, :user_ident, :ts_obtained)');
  235. -
  236.  
  237. -
  238.             $stmt->bindParam(':object_type'$objectType);
  239. -
  240.             $stmt->bindParam(':object_key'$key);
  241. -
  242.             $stmt->bindParam(':user_ident'$userIdent);
  243. -
  244.             $stmt->bindParam(':ts_obtained'$time);
  245. -
  246.  
  247. -
  248.             try {
  249. -
  250.                 $stmt->execute();
  251. -
  252.                 $gotLock true;
  253. -
  254.  
  255. -
  256.             // we catch an Exception here instead of PDOException since we might also be catching Doctrine_Exception
  257. -
  258.             catch(Exception $pkviolation{
  259. -
  260.                 // PK violation occured => existing lock!
  261. -
  262.             }
  263. -
  264.  
  265. -
  266.             if $gotLock{
  267. -
  268.                 $lockingUserIdent $this->_getLockingUserIdent($objectType$key);
  269. -
  270.                 if ($lockingUserIdent !== null && $lockingUserIdent == $userIdent{
  271. -
  272.                     $gotLock true// The requesting user already has a lock
  273. -
  274.                     // Update timestamp
  275. -
  276.                     $stmt $dbh->prepare('UPDATE ' $this->_lockTable 
  277. -
  278.                                           . ' SET timestamp_obtained = :ts'
  279. -
  280.                                           . ' WHERE object_type = :object_type AND'
  281. -
  282.                                           . ' object_key  = :object_key  AND'
  283. -
  284.                                           . ' user_ident  = :user_ident');
  285. -
  286.                     $stmt->bindParam(':ts'$time);
  287. -
  288.                     $stmt->bindParam(':object_type'$objectType);
  289. -
  290.                     $stmt->bindParam(':object_key'$key);
  291. -
  292.                     $stmt->bindParam(':user_ident'$lockingUserIdent);
  293. -
  294.                     $stmt->execute();
  295. -
  296.                 }
  297. -
  298.             }
  299. -
  300.             $dbh->commit();
  301. -
  302.         catch (Exception $pdoe{
  303. -
  304.             $dbh->rollback();
  305. -
  306.             throw new Doctrine_Locking_Exception($pdoe->getMessage());
  307. -
  308.         }
  309. -
  310.  
  311. -
  312.         return $gotLock;
  313. -
  314.     }
  315. -
  316.  
  317. -
  318.     /**
  319. -
  320.      * Releases a lock on a {@link Doctrine_Record}
  321. -
  322.      *
  323. -
  324.      * @param  Doctrine_Record $record    The record for which the lock has to be released
  325. -
  326.      * @param  mixed           $userIdent The unique identifier of the locking user
  327. -
  328.      * @return boolean  TRUE if a lock was released, FALSE if no lock was released
  329. -
  330.      * @throws Doctrine_Locking_Exception If the release procedure failed due to database errors
  331. -
  332.      */
  333. -
  334.     public function releaseLock(Doctrine_Record $record$userIdent)
  335. -
  336.     {
  337. -
  338.         $objectType $record->getTable()->getComponentName();
  339. -
  340.         $key        $record->obtainIdentifier();
  341. -
  342.  
  343. -
  344.         if (is_array($key)) {
  345. -
  346.             // Composite key
  347. -
  348.             $key implode('|'$key);
  349. -
  350.         }
  351. -
  352.  
  353. -
  354.         try {
  355. -
  356.             $dbh $this->conn->getDbh();
  357. -
  358.             $stmt $dbh->prepare("DELETE FROM $this->_lockTable WHERE
  359. -
  360.                                         object_type = :object_type AND
  361. -
  362.                                         object_key  = :object_key  AND
  363. -
  364.                                         user_ident  = :user_ident");
  365. -
  366.             $stmt->bindParam(':object_type'$objectType);
  367. -
  368.             $stmt->bindParam(':object_key'$key);
  369. -
  370.             $stmt->bindParam(':user_ident'$userIdent);
  371. -
  372.             $stmt->execute();
  373. -
  374.  
  375. -
  376.             $count $stmt->rowCount();
  377. -
  378.  
  379. -
  380.             return ($count 0);
  381. -
  382.         catch (PDOException $pdoe{
  383. -
  384.             throw new Doctrine_Locking_Exception($pdoe->getMessage());
  385. -
  386.         }
  387. -
  388.     }
  389. -
  390.  
  391. -
  392.     /**
  393. -
  394.      * Gets the unique user identifier of a lock
  395. -
  396.      *
  397. -
  398.      * @param  string $objectType  The type of the object (component name)
  399. -
  400.      * @param  mixed  $key         The unique key of the object
  401. -
  402.      * @return mixed  The unique user identifier for the specified lock
  403. -
  404.      * @throws Doctrine_Locking_Exception If the query failed due to database errors
  405. -
  406.      */
  407. -
  408.     private function _getLockingUserIdent($objectType$key)
  409. -
  410.     {
  411. -
  412.         if (is_array($key)) {
  413. -
  414.             // Composite key
  415. -
  416.             $key implode('|'$key);
  417. -
  418.         }
  419. -
  420.  
  421. -
  422.         try {
  423. -
  424.             $dbh $this->conn->getDbh();
  425. -
  426.             $stmt $dbh->prepare('SELECT user_ident FROM ' $this->_lockTable
  427. -
  428.                                   . ' WHERE object_type = :object_type AND object_key = :object_key');
  429. -
  430.             $stmt->bindParam(':object_type'$objectType);
  431. -
  432.             $stmt->bindParam(':object_key'$key);
  433. -
  434.             $success $stmt->execute();
  435. -
  436.  
  437. -
  438.             if (!$success{
  439. -
  440.                 throw new Doctrine_Locking_Exception("Failed to determine locking user");
  441. -
  442.             }
  443. -
  444.  
  445. -
  446.             $userIdent $stmt->fetchColumn();
  447. -
  448.         catch (PDOException $pdoe{
  449. -
  450.             throw new Doctrine_Locking_Exception($pdoe->getMessage());
  451. -
  452.         }
  453. -
  454.  
  455. -
  456.         return $userIdent;
  457. -
  458.     }
  459. -
  460.  
  461. -
  462.     /**
  463. -
  464.      * Gets the identifier that identifies the owner of the lock on the given
  465. -
  466.      * record.
  467. -
  468.      *
  469. -
  470.      * @param Doctrine_Record $lockedRecord  The record.
  471. -
  472.      * @return mixed The unique user identifier that identifies the owner of the lock.
  473. -
  474.      */
  475. -
  476.     public function getLockOwner($lockedRecord)
  477. -
  478.     {
  479. -
  480.         $objectType $lockedRecord->getTable()->getComponentName();
  481. -
  482.         $key        $lockedRecord->obtainIdentifier();
  483. -
  484.         return $this->_getLockingUserIdent($objectType$key);
  485. -
  486.     }
  487. -
  488.  
  489. -
  490.     /**
  491. -
  492.      * Releases locks older than a defined amount of seconds
  493. -
  494.      *
  495. -
  496.      * When called without parameters all locks older than 15 minutes are released.
  497. -
  498.      *
  499. -
  500.      * @param  integer $age  The maximum valid age of locks in seconds
  501. -
  502.      * @param  string  $objectType  The type of the object (component name)
  503. -
  504.      * @param  mixed   $userIdent The unique identifier of the locking user
  505. -
  506.      * @return integer The number of locks that have been released
  507. -
  508.      * @throws Doctrine_Locking_Exception If the release process failed due to database errors
  509. -
  510.      */
  511. -
  512.     public function releaseAgedLocks($age 900$objectType null$userIdent null)
  513. -
  514.     {
  515. -
  516.         $age time($age;
  517. -
  518.  
  519. -
  520.         try {
  521. -
  522.             $dbh $this->conn->getDbh();
  523. -
  524.             $stmt $dbh->prepare('DELETE FROM ' $this->_lockTable . ' WHERE timestamp_obtained < :age');
  525. -
  526.             $stmt->bindParam(':age'$age);
  527. -
  528.             $query 'DELETE FROM ' $this->_lockTable . ' WHERE timestamp_obtained < :age';
  529. -
  530.             if ($objectType{
  531. -
  532.                 $query .= ' AND object_type = :object_type';
  533. -
  534.             }
  535. -
  536.             if ($userIdent{
  537. -
  538.                 $query .= ' AND user_ident = :user_ident';
  539. -
  540.             }
  541. -
  542.             $stmt $dbh->prepare($query);
  543. -
  544.             $stmt->bindParam(':age'$age);
  545. -
  546.             if ($objectType{
  547. -
  548.                 $stmt->bindParam(':object_type'$objectType);
  549. -
  550.             }
  551. -
  552.             if ($userIdent{
  553. -
  554.                 $stmt->bindParam(':user_ident'$userIdent);
  555. -
  556.             }
  557. -
  558.             $stmt->execute();
  559. -
  560.  
  561. -
  562.             $count $stmt->rowCount();
  563. -
  564.  
  565. -
  566.             return $count;
  567. -
  568.         catch (PDOException $pdoe{
  569. -
  570.             throw new Doctrine_Locking_Exception($pdoe->getMessage());
  571. -
  572.         }
  573. -
  574.     }
  575. -
  576.  
  577. -
  578. }
  579. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManager.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManager.php.html deleted file mode 100644 index 6a6318a90..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManager.php.html +++ /dev/null @@ -1,565 +0,0 @@ - -
-

Source for file Manager.php

-

Documentation is available at Manager.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Manager.php 2290 2007-08-29 21:57:46Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  *
  44. -
  45.  * Doctrine_Manager is the base component of all doctrine based projects.
  46. -
  47.  * It opens and keeps track of all connections (database connections).
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 2290 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. class Doctrine_Manager extends Doctrine_Configurable implements CountableIteratorAggregate
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var array $connections      an array containing all the opened connections
  74. -
  75.      */
  76. -
  77.     protected $_connections   = array();
  78. -
  79.     /**
  80. -
  81.      * @var array $bound            an array containing all components that have a bound connection
  82. -
  83.      */
  84. -
  85.     protected $_bound         = array();
  86. -
  87.     /**
  88. -
  89.      * @var integer $index          the incremented index
  90. -
  91.      */
  92. -
  93.     protected $_index         = 0;
  94. -
  95.     /**
  96. -
  97.      * @var integer $currIndex      the current connection index
  98. -
  99.      */
  100. -
  101.     protected $_currIndex     = 0;
  102. -
  103.     /**
  104. -
  105.      * @var string $root            root directory
  106. -
  107.      */
  108. -
  109.     protected $_root;
  110. -
  111.     /**
  112. -
  113.      * @var array $_integrityActions    an array containing all registered integrity actions
  114. -
  115.      *                                   used when emulating these actions
  116. -
  117.      */
  118. -
  119.     protected $_integrityActions = array();
  120. -
  121.     
  122. -
  123.     protected static $driverMap array('oci' => 'oracle');
  124. -
  125.     /**
  126. -
  127.      * constructor
  128. -
  129.      *
  130. -
  131.      * this is private constructor (use getInstance to get an instance of this class)
  132. -
  133.      */
  134. -
  135.     private function __construct()
  136. -
  137.     {
  138. -
  139.         $this->_root = dirname(__FILE__);
  140. -
  141.  
  142. -
  143. -
  144.     }
  145. -
  146.     public function addDeleteAction($componentName$foreignComponent$action)
  147. -
  148.     {
  149. -
  150.         $this->_integrityActions[$componentName]['onDelete'][$foreignComponent$action;
  151. -
  152.     }
  153. -
  154.     public function addUpdateAction($componentName$foreignComponent$action)
  155. -
  156.     {
  157. -
  158.         $this->_integrityActions[$componentName]['onUpdate'][$foreignComponent$action;
  159. -
  160.     }
  161. -
  162.     public function getDeleteActions($componentName)
  163. -
  164.     {
  165. -
  166.         if isset($this->_integrityActions[$componentName]['onDelete'])) {
  167. -
  168.             return null;
  169. -
  170.         }
  171. -
  172.         
  173. -
  174.         return $this->_integrityActions[$componentName]['onDelete'];
  175. -
  176.     }
  177. -
  178.     public function getUpdateActions($componentName)
  179. -
  180.     {
  181. -
  182.         if isset($this->_integrityActions[$componentName]['onUpdate'])) {
  183. -
  184.             return null;
  185. -
  186.         }
  187. -
  188.         
  189. -
  190.         return $this->_integrityActions[$componentName]['onUpdate'];
  191. -
  192.     }
  193. -
  194.     /**
  195. -
  196.      * setDefaultAttributes
  197. -
  198.      * sets default attributes
  199. -
  200.      *
  201. -
  202.      * @return boolean 
  203. -
  204.      */
  205. -
  206.     public function setDefaultAttributes()
  207. -
  208.     {
  209. -
  210.         static $init false;
  211. -
  212.         if $init{
  213. -
  214.             $init true;
  215. -
  216.             $attributes array(
  217. -
  218.                         Doctrine::ATTR_CACHE            => null,
  219. -
  220.                         Doctrine::ATTR_LOAD_REFERENCES  => true,
  221. -
  222.                         Doctrine::ATTR_LISTENER         => new Doctrine_EventListener(),
  223. -
  224.                         Doctrine::ATTR_RECORD_LISTENER  => new Doctrine_Record_Listener(),
  225. -
  226.                         Doctrine::ATTR_THROW_EXCEPTIONS => true,
  227. -
  228.                         Doctrine::ATTR_LOCKMODE         => 1,
  229. -
  230.                         Doctrine::ATTR_VLD              => false,
  231. -
  232.                         Doctrine::ATTR_AUTO_LENGTH_VLD  => true,
  233. -
  234.                         Doctrine::ATTR_AUTO_TYPE_VLD    => true,
  235. -
  236.                         Doctrine::ATTR_QUERY_LIMIT      => Doctrine::LIMIT_RECORDS,
  237. -
  238.                         Doctrine::ATTR_IDXNAME_FORMAT   => "%s_idx",
  239. -
  240.                         Doctrine::ATTR_SEQNAME_FORMAT   => "%s_seq",
  241. -
  242.                         Doctrine::ATTR_QUOTE_IDENTIFIER => false,
  243. -
  244.                         Doctrine::ATTR_SEQCOL_NAME      => 'id',
  245. -
  246.                         Doctrine::ATTR_PORTABILITY      => Doctrine::PORTABILITY_ALL,
  247. -
  248.                         Doctrine::ATTR_EXPORT           => Doctrine::EXPORT_ALL,
  249. -
  250.                         Doctrine::ATTR_DECIMAL_PLACES   => 2,
  251. -
  252.                         );
  253. -
  254.             foreach ($attributes as $attribute => $value{
  255. -
  256.                 $old $this->getAttribute($attribute);
  257. -
  258.                 if ($old === null{
  259. -
  260.                     $this->setAttribute($attribute,$value);
  261. -
  262.                 }
  263. -
  264.             }
  265. -
  266.             return true;
  267. -
  268.         }
  269. -
  270.         return false;
  271. -
  272.     }
  273. -
  274.     /**
  275. -
  276.      * returns the root directory of Doctrine
  277. -
  278.      *
  279. -
  280.      * @return string 
  281. -
  282.      */
  283. -
  284.     final public function getRoot()
  285. -
  286.     {
  287. -
  288.         return $this->_root;
  289. -
  290.     }
  291. -
  292.     /**
  293. -
  294.      * getInstance
  295. -
  296.      * returns an instance of this class
  297. -
  298.      * (this class uses the singleton pattern)
  299. -
  300.      *
  301. -
  302.      * @return Doctrine_Manager 
  303. -
  304.      */
  305. -
  306.     public static function getInstance()
  307. -
  308.     {
  309. -
  310.         static $instance;
  311. -
  312.         if isset($instance)) {
  313. -
  314.             $instance new self();
  315. -
  316.         }
  317. -
  318.         return $instance;
  319. -
  320.     }
  321. -
  322.     /**
  323. -
  324.      * connection
  325. -
  326.      *
  327. -
  328.      * if the adapter parameter is set this method acts as
  329. -
  330.      * a short cut for Doctrine_Manager::getInstance()->openConnection($adapter, $name);
  331. -
  332.      *
  333. -
  334.      * if the adapter paramater is not set this method acts as
  335. -
  336.      * a short cut for Doctrine_Manager::getInstance()->getCurrentConnection()
  337. -
  338.      *
  339. -
  340.      * @param PDO|Doctrine_Adapter_Interface$adapter   database driver
  341. -
  342.      * @param string $name                              name of the connection, if empty numeric key is used
  343. -
  344.      * @throws Doctrine_Manager_Exception               if trying to bind a connection with an existing name
  345. -
  346.      * @return Doctrine_Connection 
  347. -
  348.      */
  349. -
  350.     public static function connection($adapter null$name null)
  351. -
  352.     {
  353. -
  354.         if ($adapter == null{
  355. -
  356.             return Doctrine_Manager::getInstance()->getCurrentConnection();
  357. -
  358.         else {
  359. -
  360.             return Doctrine_Manager::getInstance()->openConnection($adapter$name);
  361. -
  362.         }
  363. -
  364.     }
  365. -
  366.     /**
  367. -
  368.      * openConnection
  369. -
  370.      * opens a new connection and saves it to Doctrine_Manager->connections
  371. -
  372.      *
  373. -
  374.      * @param PDO|Doctrine_Adapter_Interface$adapter   database driver
  375. -
  376.      * @param string $name                              name of the connection, if empty numeric key is used
  377. -
  378.      * @throws Doctrine_Manager_Exception               if trying to bind a connection with an existing name
  379. -
  380.      * @throws Doctrine_Manager_Exception               if trying to open connection for unknown driver
  381. -
  382.      * @return Doctrine_Connection 
  383. -
  384.      */
  385. -
  386.     public function openConnection($adapter$name null$setCurrent true)
  387. -
  388.     {
  389. -
  390.         if (is_object($adapter)) {
  391. -
  392.             if ($adapter instanceof PDO&& in_array('Doctrine_Adapter_Interface'class_implements($adapter))) {
  393. -
  394.                 throw new Doctrine_Manager_Exception("First argument should be an instance of PDO or implement Doctrine_Adapter_Interface");
  395. -
  396.             }
  397. -
  398.  
  399. -
  400.             $driverName $adapter->getAttribute(Doctrine::ATTR_DRIVER_NAME);
  401. -
  402.         elseif (is_array($adapter)) {
  403. -
  404.             if isset($adapter[0])) {
  405. -
  406.                 throw new Doctrine_Manager_Exception('Empty data source name given.');
  407. -
  408.             }
  409. -
  410.             $e explode(':'$adapter[0]);
  411. -
  412.  
  413. -
  414.             if($e[0== 'uri'{
  415. -
  416.                 $e[0'odbc';
  417. -
  418.             }
  419. -
  420.  
  421. -
  422.             $parts['dsn']    $adapter[0];
  423. -
  424.             $parts['scheme'$e[0];
  425. -
  426.             $parts['user']   (isset($adapter[1])) $adapter[1null;
  427. -
  428.             $parts['pass']   (isset($adapter[2])) $adapter[2null;
  429. -
  430.             
  431. -
  432.             $driverName $e[0];
  433. -
  434.             $adapter $parts;
  435. -
  436.         else {
  437. -
  438.             $parts $this->parseDsn($adapter);
  439. -
  440.             
  441. -
  442.             $driverName $parts['scheme'];
  443. -
  444.             
  445. -
  446.             $adapter $parts;
  447. -
  448.         }
  449. -
  450.  
  451. -
  452.         // initialize the default attributes
  453. -
  454.         $this->setDefaultAttributes();
  455. -
  456.  
  457. -
  458.         if ($name !== null{
  459. -
  460.             $name = (string) $name;
  461. -
  462.             if (isset($this->_connections[$name])) {
  463. -
  464.                 return $this->_connections[$name];
  465. -
  466.             }
  467. -
  468.         else {
  469. -
  470.             $name $this->_index;
  471. -
  472.             $this->_index++;
  473. -
  474.         }
  475. -
  476.  
  477. -
  478.         $drivers array('mysql'    => 'Doctrine_Connection_Mysql',
  479. -
  480.                          'sqlite'   => 'Doctrine_Connection_Sqlite',
  481. -
  482.                          'pgsql'    => 'Doctrine_Connection_Pgsql',
  483. -
  484.                          'oci'      => 'Doctrine_Connection_Oracle',
  485. -
  486.                          'oci8'     => 'Doctrine_Connection_Oracle',
  487. -
  488.                          'oracle'   => 'Doctrine_Connection_Oracle',
  489. -
  490.                          'mssql'    => 'Doctrine_Connection_Mssql',
  491. -
  492.                          'dblib'    => 'Doctrine_Connection_Mssql',
  493. -
  494.                          'firebird' => 'Doctrine_Connection_Firebird',
  495. -
  496.                          'informix' => 'Doctrine_Connection_Informix',
  497. -
  498.                          'mock'     => 'Doctrine_Connection_Mock');
  499. -
  500.         if isset($drivers[$driverName])) {
  501. -
  502.             throw new Doctrine_Manager_Exception('Unknown driver ' $driverName);
  503. -
  504.         }
  505. -
  506.         $className $drivers[$driverName];
  507. -
  508.         $conn new $className($this$adapter);
  509. -
  510.  
  511. -
  512.         $this->_connections[$name$conn;
  513. -
  514.  
  515. -
  516.         if ($setCurrent{
  517. -
  518.             $this->_currIndex $name;
  519. -
  520.         }
  521. -
  522.         return $this->_connections[$name];
  523. -
  524.     }
  525. -
  526.     /**
  527. -
  528.      * parseDsn
  529. -
  530.      *
  531. -
  532.      * @param string $dsn 
  533. -
  534.      * @return array Parsed contents of DSN
  535. -
  536.      */
  537. -
  538.     public function parseDsn($dsn)
  539. -
  540.     {
  541. -
  542.         // silence any warnings
  543. -
  544.         $parts @parse_url($dsn);
  545. -
  546.  
  547. -
  548.         $names array('dsn''scheme''host''port''user''pass''path''query''fragment');
  549. -
  550.  
  551. -
  552.         foreach ($names as $name{
  553. -
  554.             if isset($parts[$name])) {
  555. -
  556.                 $parts[$namenull;
  557. -
  558.             }
  559. -
  560.         }
  561. -
  562.  
  563. -
  564.         if (count($parts== || isset($parts['scheme'])) {
  565. -
  566.             throw new Doctrine_Manager_Exception('Empty data source name');
  567. -
  568.         }
  569. -
  570.  
  571. -
  572.         switch ($parts['scheme']{
  573. -
  574.             case 'sqlite':
  575. -
  576.             case 'sqlite2':
  577. -
  578.             case 'sqlite3':
  579. -
  580.                 if (isset($parts['host']&& $parts['host'== ':memory'{
  581. -
  582.                     $parts['database'':memory:';
  583. -
  584.                     $parts['dsn']      'sqlite::memory:';
  585. -
  586.                 else {
  587. -
  588.                     $parts['database'$parts['path'];
  589. -
  590.                     $parts['dsn'$parts['scheme'':' $parts['path'];         
  591. -
  592.                 }
  593. -
  594.  
  595. -
  596.                 break;
  597. -
  598.             case 'mysql':
  599. -
  600.             case 'informix':
  601. -
  602.             case 'oci8':
  603. -
  604.             case 'oci':
  605. -
  606.             case 'mssql':
  607. -
  608.             case 'firebird':
  609. -
  610.             case 'dblib':
  611. -
  612.             case 'pgsql':
  613. -
  614.             case 'odbc':
  615. -
  616.             case 'mock':
  617. -
  618.             case 'oracle':
  619. -
  620.                 if isset($parts['path']|| $parts['path'== '/'{
  621. -
  622.                     throw new Doctrine_Manager_Exception('No database available in data source name');
  623. -
  624.                 }
  625. -
  626.                 if (isset($parts['path'])) {
  627. -
  628.                     $parts['database'substr($parts['path']1);
  629. -
  630.                 }
  631. -
  632.                 if isset($parts['host'])) {
  633. -
  634.                     throw new Doctrine_Manager_Exception('No hostname set in data source name');
  635. -
  636.                 }
  637. -
  638.                 
  639. -
  640.                 if (isset(self::$driverMap[$parts['scheme']])) {
  641. -
  642.                     $parts['scheme'self::$driverMap[$parts['scheme']];
  643. -
  644.                 }
  645. -
  646.  
  647. -
  648.                 $parts['dsn'$parts['scheme'':host='
  649. -
  650.                               . $parts['host'';dbname='
  651. -
  652.                               . $parts['database'];
  653. -
  654.                 
  655. -
  656.                 if (isset($parts['port'])) {
  657. -
  658.                     // append port to dsn if supplied
  659. -
  660.                     $parts['dsn'.= ';port=' $parts['port'];
  661. -
  662.                 }
  663. -
  664.                 break;
  665. -
  666.             default:
  667. -
  668.                 throw new Doctrine_Manager_Exception('Unknown driver '.$parts['scheme']);
  669. -
  670.         }
  671. -
  672.  
  673. -
  674.  
  675. -
  676.         return $parts;
  677. -
  678.     }
  679. -
  680.     /**
  681. -
  682.      * getConnection
  683. -
  684.      * @param integer $index 
  685. -
  686.      * @return object Doctrine_Connection 
  687. -
  688.      * @throws Doctrine_Manager_Exception   if trying to get a non-existent connection
  689. -
  690.      */
  691. -
  692.     public function getConnection($name)
  693. -
  694.     {
  695. -
  696.         if isset($this->_connections[$name])) {
  697. -
  698.             throw new Doctrine_Manager_Exception('Unknown connection: ' $name);
  699. -
  700.         }
  701. -
  702.  
  703. -
  704.         return $this->_connections[$name];
  705. -
  706.     }
  707. -
  708.     /**
  709. -
  710.      * getComponentAlias
  711. -
  712.      * retrieves the alias for given component name
  713. -
  714.      * if the alias couldn't be found, this method returns the given
  715. -
  716.      * component name
  717. -
  718.      *
  719. -
  720.      * @param string $componentName 
  721. -
  722.      * @return string                   the component alias
  723. -
  724.      */
  725. -
  726.     public function getComponentAlias($componentName)
  727. -
  728.     {
  729. -
  730.         if (isset($this->componentAliases[$componentName])) {
  731. -
  732.             return $this->componentAliases[$componentName];
  733. -
  734.         }
  735. -
  736.  
  737. -
  738.         return $componentName;
  739. -
  740.     }
  741. -
  742.     /**
  743. -
  744.      * sets an alias for given component name
  745. -
  746.      * very useful when building a large framework with a possibility
  747. -
  748.      * to override any given class
  749. -
  750.      *
  751. -
  752.      * @param string $componentName         the name of the component
  753. -
  754.      * @param string $alias 
  755. -
  756.      * @return Doctrine_Manager 
  757. -
  758.      */
  759. -
  760.     public function setComponentAlias($componentName$alias)
  761. -
  762.     {
  763. -
  764.         $this->componentAliases[$componentName$alias;
  765. -
  766.  
  767. -
  768.         return $this;
  769. -
  770.     }
  771. -
  772.     /**
  773. -
  774.      * getConnectionName
  775. -
  776.      *
  777. -
  778.      * @param Doctrine_Connection $conn     connection object to be searched for
  779. -
  780.      * @return string                       the name of the connection
  781. -
  782.      */
  783. -
  784.     public function getConnectionName(Doctrine_Connection $conn)
  785. -
  786.     {
  787. -
  788.         return array_search($conn$this->_connectionstrue);
  789. -
  790.     }
  791. -
  792.     /**
  793. -
  794.      * bindComponent
  795. -
  796.      * binds given component to given connection
  797. -
  798.      * this means that when ever the given component uses a connection
  799. -
  800.      * it will be using the bound connection instead of the current connection
  801. -
  802.      *
  803. -
  804.      * @param string $componentName 
  805. -
  806.      * @param string $connectionName 
  807. -
  808.      * @return boolean 
  809. -
  810.      */
  811. -
  812.     public function bindComponent($componentName$connectionName)
  813. -
  814.     {
  815. -
  816.         $this->_bound[$componentName$connectionName;
  817. -
  818.     }
  819. -
  820.     /**
  821. -
  822.      * getConnectionForComponent
  823. -
  824.      *
  825. -
  826.      * @param string $componentName 
  827. -
  828.      * @return Doctrine_Connection 
  829. -
  830.      */
  831. -
  832.     public function getConnectionForComponent($componentName null)
  833. -
  834.     {
  835. -
  836.         if (isset($this->_bound[$componentName])) {
  837. -
  838.             return $this->getConnection($this->_bound[$componentName]);
  839. -
  840.         }
  841. -
  842.         return $this->getCurrentConnection();
  843. -
  844.     }
  845. -
  846.     /**
  847. -
  848.      * getTable
  849. -
  850.      * this is the same as Doctrine_Connection::getTable() except
  851. -
  852.      * that it works seamlessly in multi-server/connection environment
  853. -
  854.      *
  855. -
  856.      * @see Doctrine_Connection::getTable()
  857. -
  858.      * @param string $componentName 
  859. -
  860.      * @return Doctrine_Table 
  861. -
  862.      */
  863. -
  864.     public function getTable($componentName)
  865. -
  866.     {
  867. -
  868.         return $this->getConnectionForComponent($componentName)->getTable($componentName);
  869. -
  870.     }
  871. -
  872.     /**
  873. -
  874.      * table
  875. -
  876.      * this is the same as Doctrine_Connection::getTable() except
  877. -
  878.      * that it works seamlessly in multi-server/connection environment
  879. -
  880.      *
  881. -
  882.      * @see Doctrine_Connection::getTable()
  883. -
  884.      * @param string $componentName 
  885. -
  886.      * @return Doctrine_Table 
  887. -
  888.      */
  889. -
  890.     public static function table($componentName)
  891. -
  892.     {
  893. -
  894.         return Doctrine_Manager::getInstance()
  895. -
  896.                ->getConnectionForComponent($componentName)
  897. -
  898.                ->getTable($componentName);
  899. -
  900.     }
  901. -
  902.     /**
  903. -
  904.      * closes the connection
  905. -
  906.      *
  907. -
  908.      * @param Doctrine_Connection $connection 
  909. -
  910.      * @return void 
  911. -
  912.      */
  913. -
  914.     public function closeConnection(Doctrine_Connection $connection)
  915. -
  916.     {
  917. -
  918.         $connection->close();
  919. -
  920.  
  921. -
  922.         $key array_search($connection$this->_connectionstrue);
  923. -
  924.  
  925. -
  926.         if ($key !== false{
  927. -
  928.             unset($this->_connections[$key]);
  929. -
  930.         }
  931. -
  932.         $this->_currIndex key($this->_connections);
  933. -
  934.  
  935. -
  936.         unset($connection);
  937. -
  938.     }
  939. -
  940.     /**
  941. -
  942.      * getConnections
  943. -
  944.      * returns all opened connections
  945. -
  946.      *
  947. -
  948.      * @return array 
  949. -
  950.      */
  951. -
  952.     public function getConnections()
  953. -
  954.     {
  955. -
  956.         return $this->_connections;
  957. -
  958.     }
  959. -
  960.     /**
  961. -
  962.      * setCurrentConnection
  963. -
  964.      * sets the current connection to $key
  965. -
  966.      *
  967. -
  968.      * @param mixed $key                        the connection key
  969. -
  970.      * @throws InvalidKeyException
  971. -
  972.      * @return void 
  973. -
  974.      */
  975. -
  976.     public function setCurrentConnection($key)
  977. -
  978.     {
  979. -
  980.         $key = (string) $key;
  981. -
  982.         if isset($this->_connections[$key])) {
  983. -
  984.             throw new InvalidKeyException();
  985. -
  986.         }
  987. -
  988.         $this->_currIndex $key;
  989. -
  990.     }
  991. -
  992.     /**
  993. -
  994.      * contains
  995. -
  996.      * whether or not the manager contains specified connection
  997. -
  998.      *
  999. -
  1000.      * @param mixed $key                        the connection key
  1001. -
  1002.      * @return boolean 
  1003. -
  1004.      */
  1005. -
  1006.     public function contains($key)
  1007. -
  1008.     {
  1009. -
  1010.         return isset($this->_connections[$key]);
  1011. -
  1012.     }
  1013. -
  1014.     /**
  1015. -
  1016.      * count
  1017. -
  1018.      * returns the number of opened connections
  1019. -
  1020.      *
  1021. -
  1022.      * @return integer 
  1023. -
  1024.      */
  1025. -
  1026.     public function count()
  1027. -
  1028.     {
  1029. -
  1030.         return count($this->_connections);
  1031. -
  1032.     }
  1033. -
  1034.     /**
  1035. -
  1036.      * getIterator
  1037. -
  1038.      * returns an ArrayIterator that iterates through all connections
  1039. -
  1040.      *
  1041. -
  1042.      * @return ArrayIterator 
  1043. -
  1044.      */
  1045. -
  1046.     public function getIterator()
  1047. -
  1048.     {
  1049. -
  1050.         return new ArrayIterator($this->_connections);
  1051. -
  1052.     }
  1053. -
  1054.     /**
  1055. -
  1056.      * getCurrentConnection
  1057. -
  1058.      * returns the current connection
  1059. -
  1060.      *
  1061. -
  1062.      * @throws Doctrine_Connection_Exception       if there are no open connections
  1063. -
  1064.      * @return Doctrine_Connection 
  1065. -
  1066.      */
  1067. -
  1068.     public function getCurrentConnection()
  1069. -
  1070.     {
  1071. -
  1072.         $i $this->_currIndex;
  1073. -
  1074.         if isset($this->_connections[$i])) {
  1075. -
  1076.             throw new Doctrine_Connection_Exception();
  1077. -
  1078.         }
  1079. -
  1080.         return $this->_connections[$i];
  1081. -
  1082.     }
  1083. -
  1084.     /**
  1085. -
  1086.      * __toString
  1087. -
  1088.      * returns a string representation of this object
  1089. -
  1090.      *
  1091. -
  1092.      * @return string 
  1093. -
  1094.      */
  1095. -
  1096.     public function __toString()
  1097. -
  1098.     {
  1099. -
  1100.         $r["<pre>";
  1101. -
  1102.         $r["Doctrine_Manager";
  1103. -
  1104.         $r["Connections : ".count($this->_connections);
  1105. -
  1106.         $r["</pre>";
  1107. -
  1108.         return implode("\n",$r);
  1109. -
  1110.     }
  1111. -
  1112. }
  1113. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManagerException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManagerException.php.html deleted file mode 100644 index c55b82aab..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineManagerException.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Manager_Exception
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. -
  64. }
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNode.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNode.php.html deleted file mode 100644 index 8b53938dd..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNode.php.html +++ /dev/null @@ -1,173 +0,0 @@ - -
-

Source for file Node.php

-

Documentation is available at Node.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Node.php 1949 2007-07-08 12:57:52Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1949 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. class Doctrine_Node implements IteratorAggregate
  64. -
  65. {
  66. -
  67.     /**
  68. -
  69.      * @param object    $record   reference to associated Doctrine_Record instance
  70. -
  71.      */
  72. -
  73.     protected $record;
  74. -
  75.  
  76. -
  77.     /**
  78. -
  79.      * @param array     $options 
  80. -
  81.      */
  82. -
  83.     protected $options;
  84. -
  85.  
  86. -
  87.     /**
  88. -
  89.      * @param string     $iteratorType  (Pre | Post | Level)
  90. -
  91.      */
  92. -
  93.     protected $iteratorType;
  94. -
  95.  
  96. -
  97.     /**
  98. -
  99.      * @param array     $iteratorOptions 
  100. -
  101.      */
  102. -
  103.     protected $iteratorOptions;
  104. -
  105.     
  106. -
  107.     /**
  108. -
  109.      * The tree to which the node belongs.
  110. -
  111.      *
  112. -
  113.      * @var unknown_type 
  114. -
  115.      */
  116. -
  117.     protected $_tree;
  118. -
  119.  
  120. -
  121.     /**
  122. -
  123.      * contructor, creates node with reference to record and any options
  124. -
  125.      *
  126. -
  127.      * @param object $record                    instance of Doctrine_Record
  128. -
  129.      * @param array $options                    options
  130. -
  131.      */
  132. -
  133.     public function __construct(Doctrine_Record $record$options)
  134. -
  135.     {
  136. -
  137.         $this->record = $record;
  138. -
  139.         $this->options = $options;
  140. -
  141.         $this->_tree = $this->record->getTable()->getTree();
  142. -
  143.     }
  144. -
  145.  
  146. -
  147.     /**
  148. -
  149.      * factory method to return node instance based upon chosen implementation
  150. -
  151.      *
  152. -
  153.      * @param object $record                    instance of Doctrine_Record
  154. -
  155.      * @param string $impName                   implementation (NestedSet, AdjacencyList, MaterializedPath)
  156. -
  157.      * @param array $options                    options
  158. -
  159.      * @return object $options                  instance of Doctrine_Node
  160. -
  161.      */
  162. -
  163.     public static function factory(Doctrine_Record $record$implName$options array())
  164. -
  165.     {
  166. -
  167.         $class 'Doctrine_Node_' $implName;
  168. -
  169.  
  170. -
  171.         if (!class_exists($class)) {
  172. -
  173.             throw new Doctrine_Node_Exception("The class $class must exist and extend Doctrine_Node");
  174. -
  175.         }
  176. -
  177.  
  178. -
  179.         return new $class($record$options);
  180. -
  181.     }
  182. -
  183.  
  184. -
  185.     /**
  186. -
  187.      * setter for record attribute
  188. -
  189.      *
  190. -
  191.      * @param object $record                    instance of Doctrine_Record
  192. -
  193.      */
  194. -
  195.     public function setRecord(Doctrine_Record $record)
  196. -
  197.     {
  198. -
  199.         $this->record = $record;
  200. -
  201.     }
  202. -
  203.  
  204. -
  205.     /**
  206. -
  207.      * getter for record attribute
  208. -
  209.      *
  210. -
  211.      * @return object                           instance of Doctrine_Record
  212. -
  213.      */
  214. -
  215.     public function getRecord()
  216. -
  217.     {
  218. -
  219.         return $this->record;
  220. -
  221.     }
  222. -
  223.  
  224. -
  225.     /**
  226. -
  227.      * convenience function for getIterator
  228. -
  229.      *
  230. -
  231.      * @param string $type                      type of iterator (Pre | Post | Level)
  232. -
  233.      * @param array $options                    options
  234. -
  235.      */
  236. -
  237.     public function traverse($type 'Pre'$options array())
  238. -
  239.     {
  240. -
  241.         return $this->getIterator($type$options);
  242. -
  243.     }
  244. -
  245.  
  246. -
  247.     /**
  248. -
  249.      * get iterator
  250. -
  251.      *
  252. -
  253.      * @param string $type                      type of iterator (Pre | Post | Level)
  254. -
  255.      * @param array $options                    options
  256. -
  257.      */
  258. -
  259.     public function getIterator($type null$options null)
  260. -
  261.     {
  262. -
  263.         if ($type === null{
  264. -
  265.             $type (isset($this->iteratorType$this->iteratorType : 'Pre');
  266. -
  267.         }
  268. -
  269.  
  270. -
  271.         if ($options === null{
  272. -
  273.             $options (isset($this->iteratorOptions$this->iteratorOptions : array());
  274. -
  275.         }
  276. -
  277.  
  278. -
  279.         $implName $this->record->getTable()->getOption('treeImpl');
  280. -
  281.         $iteratorClass 'Doctrine_Node_' $implName '_' ucfirst(strtolower($type)) 'OrderIterator';
  282. -
  283.  
  284. -
  285.         return new $iteratorClass($this->record$options);
  286. -
  287.     }
  288. -
  289.  
  290. -
  291.     /**
  292. -
  293.      * sets node's iterator type
  294. -
  295.      *
  296. -
  297.      * @param int 
  298. -
  299.      */
  300. -
  301.     public function setIteratorType($type)
  302. -
  303.     {
  304. -
  305.         $this->iteratorType = $type;
  306. -
  307.     }
  308. -
  309.  
  310. -
  311.     /**
  312. -
  313.      * sets node's iterator options
  314. -
  315.      *
  316. -
  317.      * @param int 
  318. -
  319.      */
  320. -
  321.     public function setIteratorOptions($options)
  322. -
  323.     {
  324. -
  325.         $this->iteratorOptions = $options;
  326. -
  327.     }
  328. -
  329. }
  330. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyList.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyList.php.html deleted file mode 100644 index dcea675e5..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyList.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file AdjacencyList.php

-

Documentation is available at AdjacencyList.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: AdjacencyList.php 1716 2007-06-15 10:33:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_AdjacencyList
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1716 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. abstract class Doctrine_Node_AdjacencyList extends Doctrine_Node implements Doctrine_Node_Interface
  64. -
  65. {}
  66. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListLevelOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListLevelOrderIterator.php.html deleted file mode 100644 index 56545897f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListLevelOrderIterator.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file LevelOrderIterator.php

-

Documentation is available at LevelOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: LevelOrderIterator.php 1716 2007-06-15 10:33:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_AdjacencyList_LevelOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1716 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. abstract class Doctrine_Node_AdjacencyList_LevelOrderIterator implements Iterator
  64. -
  65. {}
  66. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPostOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPostOrderIterator.php.html deleted file mode 100644 index 77f830d5e..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPostOrderIterator.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file PostOrderIterator.php

-

Documentation is available at PostOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: PostOrderIterator.php 1716 2007-06-15 10:33:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_AdjacencyList_PostOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1716 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. abstract class Doctrine_Node_AdjacencyList_PostOrderIterator implements Iterator
  64. -
  65. {}
  66. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPreOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPreOrderIterator.php.html deleted file mode 100644 index abb786aac..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeAdjacencyListPreOrderIterator.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file PreOrderIterator.php

-

Documentation is available at PreOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: PreOrderIterator.php 1716 2007-06-15 10:33:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_AdjacencyList_PreOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1716 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. abstract class Doctrine_Node_AdjacencyList_PreOrderIterator implements Iterator
  64. -
  65. {}
  66. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeException.php.html deleted file mode 100644 index 4b09d7fae..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeException.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_Exception
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {}
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeInterface.php.html deleted file mode 100644 index e56a600ac..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeInterface.php.html +++ /dev/null @@ -1,275 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Interface.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_Interface
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64.  
  65. -
  66.     /**
  67. -
  68.      * test if node has previous sibling
  69. -
  70.      *
  71. -
  72.      * @return bool 
  73. -
  74.      */
  75. -
  76.     public function hasPrevSibling();
  77. -
  78.  
  79. -
  80.     /**
  81. -
  82.      * test if node has next sibling
  83. -
  84.      *
  85. -
  86.      * @return bool 
  87. -
  88.      */
  89. -
  90.     public function hasNextSibling();
  91. -
  92.  
  93. -
  94.     /**
  95. -
  96.      * test if node has children
  97. -
  98.      *
  99. -
  100.      * @return bool 
  101. -
  102.      */
  103. -
  104.     public function hasChildren();
  105. -
  106.  
  107. -
  108.     /**
  109. -
  110.      * test if node has parent
  111. -
  112.      *
  113. -
  114.      * @return bool 
  115. -
  116.      */
  117. -
  118.     public function hasParent();
  119. -
  120.  
  121. -
  122.     /**
  123. -
  124.      * gets record of prev sibling or empty record
  125. -
  126.      *
  127. -
  128.      * @return object Doctrine_Record 
  129. -
  130.      */
  131. -
  132.     public function getPrevSibling();
  133. -
  134.  
  135. -
  136.     /**
  137. -
  138.      * gets record of next sibling or empty record
  139. -
  140.      *
  141. -
  142.      * @return object Doctrine_Record 
  143. -
  144.      */
  145. -
  146.     public function getNextSibling();
  147. -
  148.  
  149. -
  150.     /**
  151. -
  152.      * gets siblings for node
  153. -
  154.      *
  155. -
  156.      * @return array                            array of sibling Doctrine_Record objects
  157. -
  158.      */
  159. -
  160.     public function getSiblings($includeNode false);
  161. -
  162.  
  163. -
  164.     /**
  165. -
  166.      * gets record of first child or empty record
  167. -
  168.      *
  169. -
  170.      * @return object Doctrine_Record 
  171. -
  172.      */
  173. -
  174.     public function getFirstChild();
  175. -
  176.  
  177. -
  178.     /**
  179. -
  180.      * gets record of last child or empty record
  181. -
  182.      *
  183. -
  184.      * @return object Doctrine_Record 
  185. -
  186.      */
  187. -
  188.     public function getLastChild();
  189. -
  190.  
  191. -
  192.     /**
  193. -
  194.      * gets children for node (direct descendants only)
  195. -
  196.      *
  197. -
  198.      * @return array                            array of sibling Doctrine_Record objects
  199. -
  200.      */
  201. -
  202.     public function getChildren();
  203. -
  204.  
  205. -
  206.     /**
  207. -
  208.      * gets descendants for node (direct descendants only)
  209. -
  210.      *
  211. -
  212.      * @return iterator                         iterator to traverse descendants from node
  213. -
  214.      */
  215. -
  216.     public function getDescendants();
  217. -
  218.  
  219. -
  220.     /**
  221. -
  222.      * gets record of parent or empty record
  223. -
  224.      *
  225. -
  226.      * @return object Doctrine_Record 
  227. -
  228.      */
  229. -
  230.     public function getParent();
  231. -
  232.  
  233. -
  234.     /**
  235. -
  236.      * gets ancestors for node
  237. -
  238.      *
  239. -
  240.      * @return object Doctrine_Collection 
  241. -
  242.      */
  243. -
  244.     public function getAncestors();
  245. -
  246.  
  247. -
  248.     /**
  249. -
  250.      * gets path to node from root, uses record::toString() method to get node names
  251. -
  252.      *
  253. -
  254.      * @param string $seperator                 path seperator
  255. -
  256.      * @param bool $includeNode                 whether or not to include node at end of path
  257. -
  258.      * @return string                           string representation of path
  259. -
  260.      */
  261. -
  262.     public function getPath($seperator ' > '$includeNode false);
  263. -
  264.  
  265. -
  266.     /**
  267. -
  268.      * gets level (depth) of node in the tree
  269. -
  270.      *
  271. -
  272.      * @return int 
  273. -
  274.      */
  275. -
  276.     public function getLevel();
  277. -
  278.  
  279. -
  280.     /**
  281. -
  282.      * gets number of children (direct descendants)
  283. -
  284.      *
  285. -
  286.      * @return int 
  287. -
  288.      */
  289. -
  290.     public function getNumberChildren();
  291. -
  292.  
  293. -
  294.     /**
  295. -
  296.      * gets number of descendants (children and their children)
  297. -
  298.      *
  299. -
  300.      * @return int 
  301. -
  302.      */
  303. -
  304.     public function getNumberDescendants();
  305. -
  306.  
  307. -
  308.     /**
  309. -
  310.      * inserts node as parent of dest record
  311. -
  312.      *
  313. -
  314.      * @return bool 
  315. -
  316.      */
  317. -
  318.     public function insertAsParentOf(Doctrine_Record $dest);
  319. -
  320.  
  321. -
  322.     /**
  323. -
  324.      * inserts node as previous sibling of dest record
  325. -
  326.      *
  327. -
  328.      * @return bool 
  329. -
  330.      */
  331. -
  332.     public function insertAsPrevSiblingOf(Doctrine_Record $dest);
  333. -
  334.  
  335. -
  336.     /**
  337. -
  338.      * inserts node as next sibling of dest record
  339. -
  340.      *
  341. -
  342.      * @return bool 
  343. -
  344.      */
  345. -
  346.     public function insertAsNextSiblingOf(Doctrine_Record $dest);
  347. -
  348.  
  349. -
  350.     /**
  351. -
  352.      * inserts node as first child of dest record
  353. -
  354.      *
  355. -
  356.      * @return bool 
  357. -
  358.      */
  359. -
  360.     public function insertAsFirstChildOf(Doctrine_Record $dest);
  361. -
  362.  
  363. -
  364.     /**
  365. -
  366.      * inserts node as first child of dest record
  367. -
  368.      *
  369. -
  370.      * @return bool 
  371. -
  372.      */
  373. -
  374.     public function insertAsLastChildOf(Doctrine_Record $dest);
  375. -
  376.  
  377. -
  378.     /**
  379. -
  380.      * moves node as prev sibling of dest record
  381. -
  382.      *
  383. -
  384.      */  
  385. -
  386.     public function moveAsPrevSiblingOf(Doctrine_Record $dest);
  387. -
  388.  
  389. -
  390.     /**
  391. -
  392.      * moves node as next sibling of dest record
  393. -
  394.      *
  395. -
  396.      */
  397. -
  398.     public function moveAsNextSiblingOf(Doctrine_Record $dest);
  399. -
  400.  
  401. -
  402.     /**
  403. -
  404.      * moves node as first child of dest record
  405. -
  406.      *
  407. -
  408.      */
  409. -
  410.     public function moveAsFirstChildOf(Doctrine_Record $dest);
  411. -
  412.  
  413. -
  414.     /**
  415. -
  416.      * moves node as last child of dest record
  417. -
  418.      *
  419. -
  420.      */
  421. -
  422.     public function moveAsLastChildOf(Doctrine_Record $dest);
  423. -
  424.  
  425. -
  426.     /**
  427. -
  428.      * adds node as last child of record
  429. -
  430.      *
  431. -
  432.      */
  433. -
  434.     public function addChild(Doctrine_Record $record);
  435. -
  436.  
  437. -
  438.     /**
  439. -
  440.      * determines if node is leaf
  441. -
  442.      *
  443. -
  444.      * @return bool 
  445. -
  446.      */
  447. -
  448.     public function isLeaf();
  449. -
  450.  
  451. -
  452.     /**
  453. -
  454.      * determines if node is root
  455. -
  456.      *
  457. -
  458.      * @return bool 
  459. -
  460.      */
  461. -
  462.     public function isRoot();
  463. -
  464.  
  465. -
  466.     /**
  467. -
  468.      * determines if node is equal to subject node
  469. -
  470.      *
  471. -
  472.      * @return bool 
  473. -
  474.      */
  475. -
  476.     public function isEqualTo(Doctrine_Record $subj);
  477. -
  478.  
  479. -
  480.     /**
  481. -
  482.      * determines if node is child of subject node
  483. -
  484.      *
  485. -
  486.      * @return bool 
  487. -
  488.      */
  489. -
  490.     public function isDescendantOf(Doctrine_Record $subj);
  491. -
  492.  
  493. -
  494.     /**
  495. -
  496.      * determines if node is child of or sibling to subject node
  497. -
  498.      *
  499. -
  500.      * @return bool 
  501. -
  502.      */
  503. -
  504.     public function isDescendantOfOrEqualTo(Doctrine_Record $subj);
  505. -
  506.  
  507. -
  508.     /**
  509. -
  510.      * determines if node is valid
  511. -
  512.      *
  513. -
  514.      * @return bool 
  515. -
  516.      */
  517. -
  518.     public function isValidNode();
  519. -
  520.  
  521. -
  522.     /**
  523. -
  524.      * deletes node and it's descendants
  525. -
  526.      *
  527. -
  528.      */
  529. -
  530.     public function delete();
  531. -
  532. }
  533. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPath.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPath.php.html deleted file mode 100644 index 111b231ea..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPath.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file MaterializedPath.php

-

Documentation is available at MaterializedPath.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: MaterializedPath.php 1716 2007-06-15 10:33:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_MaterializedPath
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1716 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {}
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathLevelOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathLevelOrderIterator.php.html deleted file mode 100644 index 5bdc80715..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathLevelOrderIterator.php.html +++ /dev/null @@ -1,75 +0,0 @@ - -
-

Source for file LevelOrderIterator.php

-

Documentation is available at LevelOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: LevelOrderIterator.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_MaterializedPath_LevelOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     private $topNode = null;
  67. -
  68.  
  69. -
  70.     private $curNode = null;
  71. -
  72.  
  73. -
  74.     public function __construct($node$opts)
  75. -
  76.     {
  77. -
  78.         throw new Doctrine_Exception('Not yet implemented');
  79. -
  80.     }
  81. -
  82.  
  83. -
  84.     public function rewind()
  85. -
  86.     {
  87. -
  88.         throw new Doctrine_Exception('Not yet implemented');
  89. -
  90.     }
  91. -
  92.  
  93. -
  94.     public function valid()
  95. -
  96.     {
  97. -
  98.         throw new Doctrine_Exception('Not yet implemented');
  99. -
  100.     }
  101. -
  102.  
  103. -
  104.     public function current()
  105. -
  106.     {
  107. -
  108.         throw new Doctrine_Exception('Not yet implemented');
  109. -
  110.     }
  111. -
  112.  
  113. -
  114.     public function key()
  115. -
  116.     {
  117. -
  118.         throw new Doctrine_Exception('Not yet implemented');
  119. -
  120.     }
  121. -
  122.  
  123. -
  124.     public function next()
  125. -
  126.     {
  127. -
  128.         throw new Doctrine_Exception('Not yet implemented');
  129. -
  130.     }
  131. -
  132. }
  133. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPostOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPostOrderIterator.php.html deleted file mode 100644 index 5ab96a6e4..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPostOrderIterator.php.html +++ /dev/null @@ -1,75 +0,0 @@ - -
-

Source for file PostOrderIterator.php

-

Documentation is available at PostOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: PostOrderIterator.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_MaterializedPath_PostOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     private $topNode = null;
  67. -
  68.  
  69. -
  70.     private $curNode = null;
  71. -
  72.  
  73. -
  74.     public function __construct($node$opts)
  75. -
  76.     {
  77. -
  78.         throw new Doctrine_Exception('Not yet implemented');
  79. -
  80.     }
  81. -
  82.  
  83. -
  84.     public function rewind()
  85. -
  86.     {
  87. -
  88.         throw new Doctrine_Exception('Not yet implemented');
  89. -
  90.     }
  91. -
  92.  
  93. -
  94.     public function valid()
  95. -
  96.     {
  97. -
  98.         throw new Doctrine_Exception('Not yet implemented');
  99. -
  100.     }
  101. -
  102.  
  103. -
  104.     public function current()
  105. -
  106.     {
  107. -
  108.         throw new Doctrine_Exception('Not yet implemented');
  109. -
  110.     }
  111. -
  112.  
  113. -
  114.     public function key()
  115. -
  116.     {
  117. -
  118.         throw new Doctrine_Exception('Not yet implemented');
  119. -
  120.     }
  121. -
  122.  
  123. -
  124.     public function next()
  125. -
  126.     {
  127. -
  128.         throw new Doctrine_Exception('Not yet implemented');
  129. -
  130.     }
  131. -
  132. }
  133. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPreOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPreOrderIterator.php.html deleted file mode 100644 index 056d9ba91..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeMaterializedPathPreOrderIterator.php.html +++ /dev/null @@ -1,75 +0,0 @@ - -
-

Source for file PreOrderIterator.php

-

Documentation is available at PreOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: PreOrderIterator.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_MaterializedPath_PreOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     private $topNode = null;
  67. -
  68.  
  69. -
  70.     private $curNode = null;
  71. -
  72.  
  73. -
  74.     public function __construct($node$opts)
  75. -
  76.     {
  77. -
  78.         throw new Doctrine_Exception('Not yet implemented');
  79. -
  80.     }
  81. -
  82.  
  83. -
  84.     public function rewind()
  85. -
  86.     {
  87. -
  88.         throw new Doctrine_Exception('Not yet implemented');
  89. -
  90.     }
  91. -
  92.  
  93. -
  94.     public function valid()
  95. -
  96.     {
  97. -
  98.         throw new Doctrine_Exception('Not yet implemented');
  99. -
  100.     }
  101. -
  102.  
  103. -
  104.     public function current()
  105. -
  106.     {
  107. -
  108.         throw new Doctrine_Exception('Not yet implemented');
  109. -
  110.     }
  111. -
  112.  
  113. -
  114.     public function key()
  115. -
  116.     {
  117. -
  118.         throw new Doctrine_Exception('Not yet implemented');
  119. -
  120.     }
  121. -
  122.  
  123. -
  124.     public function next()
  125. -
  126.     {
  127. -
  128.         throw new Doctrine_Exception('Not yet implemented');
  129. -
  130.     }
  131. -
  132. }
  133. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSet.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSet.php.html deleted file mode 100644 index dae1d5418..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSet.php.html +++ /dev/null @@ -1,1001 +0,0 @@ - -
-

Source for file NestedSet.php

-

Documentation is available at NestedSet.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *    $Id: NestedSet.php 2263 2007-08-20 07:45:29Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_NestedSet
  44. -
  45.  *
  46. -
  47.  * @package    Doctrine
  48. -
  49.  * @license    http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category   Object Relational Mapping
  52. -
  53.  * @link       www.phpdoctrine.com
  54. -
  55.  * @since      1.0
  56. -
  57.  * @version    $Revision: 2263 $
  58. -
  59.  * @author     Joe Simms <joe.simms@websites4.com>
  60. -
  61.  * @author     Roman Borschel <roman@code-factory.org>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * test if node has previous sibling
  71. -
  72.      *
  73. -
  74.      * @return bool 
  75. -
  76.      */
  77. -
  78.     public function hasPrevSibling()
  79. -
  80.     {
  81. -
  82.         return $this->isValidNode($this->getPrevSibling());        
  83. -
  84.     }
  85. -
  86.  
  87. -
  88.     /**
  89. -
  90.      * test if node has next sibling
  91. -
  92.      *
  93. -
  94.      * @return bool 
  95. -
  96.      */ 
  97. -
  98.     public function hasNextSibling()
  99. -
  100.     {
  101. -
  102.         return $this->isValidNode($this->getNextSibling());        
  103. -
  104.     }
  105. -
  106.  
  107. -
  108.     /**
  109. -
  110.      * test if node has children
  111. -
  112.      *
  113. -
  114.      * @return bool 
  115. -
  116.      */
  117. -
  118.     public function hasChildren()
  119. -
  120.     {
  121. -
  122.         return (($this->getRightValue($this->getLeftValue() ) >);        
  123. -
  124.     }
  125. -
  126.  
  127. -
  128.     /**
  129. -
  130.      * test if node has parent
  131. -
  132.      *
  133. -
  134.      * @return bool 
  135. -
  136.      */
  137. -
  138.     public function hasParent()
  139. -
  140.     {
  141. -
  142.         return !$this->isRoot();
  143. -
  144.     }
  145. -
  146.  
  147. -
  148.     /**
  149. -
  150.      * gets record of prev sibling or empty record
  151. -
  152.      *
  153. -
  154.      * @return object     Doctrine_Record 
  155. -
  156.      */
  157. -
  158.     public function getPrevSibling()
  159. -
  160.     {
  161. -
  162.         $baseAlias $this->_tree->getBaseAlias();
  163. -
  164.         $q $this->_tree->getBaseQuery();
  165. -
  166.         $q $q->addWhere("$baseAlias.rgt = ?"$this->getLeftValue(1);
  167. -
  168.         $q $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  169. -
  170.         $result $q->execute();
  171. -
  172.  
  173. -
  174.         if (count($result<= 0{
  175. -
  176.             return false;
  177. -
  178.         }
  179. -
  180.         
  181. -
  182.         if ($result instanceof Doctrine_Collection{
  183. -
  184.             $sibling $result->getFirst();
  185. -
  186.         else if (is_array($result)) {
  187. -
  188.             $sibling array_shift($result);
  189. -
  190.         }
  191. -
  192.         
  193. -
  194.         return $sibling;
  195. -
  196.     }
  197. -
  198.  
  199. -
  200.     /**
  201. -
  202.      * gets record of next sibling or empty record
  203. -
  204.      *
  205. -
  206.      * @return object     Doctrine_Record 
  207. -
  208.      */
  209. -
  210.     public function getNextSibling()
  211. -
  212.     {
  213. -
  214.         $baseAlias $this->_tree->getBaseAlias();
  215. -
  216.         $q $this->_tree->getBaseQuery();
  217. -
  218.         $q $q->addWhere("$baseAlias.lft = ?"$this->getRightValue(1);
  219. -
  220.         $q $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  221. -
  222.         $result $q->execute();
  223. -
  224.  
  225. -
  226.         if (count($result<= 0{
  227. -
  228.             return false;
  229. -
  230.         }
  231. -
  232.         
  233. -
  234.         if ($result instanceof Doctrine_Collection{
  235. -
  236.             $sibling $result->getFirst();
  237. -
  238.         else if (is_array($result)) {
  239. -
  240.             $sibling array_shift($result);
  241. -
  242.         }
  243. -
  244.         
  245. -
  246.         return $sibling;
  247. -
  248.     }
  249. -
  250.  
  251. -
  252.     /**
  253. -
  254.      * gets siblings for node
  255. -
  256.      *
  257. -
  258.      * @return array     array of sibling Doctrine_Record objects
  259. -
  260.      */
  261. -
  262.     public function getSiblings($includeNode false)
  263. -
  264.     {
  265. -
  266.         $parent $this->getParent();
  267. -
  268.         $siblings array();
  269. -
  270.         if ($parent->exists()) {
  271. -
  272.             foreach ($parent->getNode()->getChildren(as $child{
  273. -
  274.                 if ($this->isEqualTo($child&& !$includeNode{
  275. -
  276.                     continue;
  277. -
  278.                 }
  279. -
  280.                 $siblings[$child;
  281. -
  282.             }        
  283. -
  284.         }
  285. -
  286.         return $siblings;
  287. -
  288.     }
  289. -
  290.  
  291. -
  292.     /**
  293. -
  294.      * gets record of first child or empty record
  295. -
  296.      *
  297. -
  298.      * @return object     Doctrine_Record 
  299. -
  300.      */
  301. -
  302.     public function getFirstChild()
  303. -
  304.     {
  305. -
  306.         $baseAlias $this->_tree->getBaseAlias();
  307. -
  308.         $q $this->_tree->getBaseQuery();
  309. -
  310.         $q->addWhere("$baseAlias.lft = ?"$this->getLeftValue(1);
  311. -
  312.         $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  313. -
  314.         $result $q->execute();
  315. -
  316.  
  317. -
  318.         if (count($result<= 0{
  319. -
  320.             return false;
  321. -
  322.         }
  323. -
  324.         
  325. -
  326.         if ($result instanceof Doctrine_Collection{
  327. -
  328.             $child $result->getFirst();
  329. -
  330.         else if (is_array($result)) {
  331. -
  332.             $child array_shift($result);
  333. -
  334.         }
  335. -
  336.         
  337. -
  338.         return $child;       
  339. -
  340.     }
  341. -
  342.  
  343. -
  344.     /**
  345. -
  346.      * gets record of last child or empty record
  347. -
  348.      *
  349. -
  350.      * @return object     Doctrine_Record 
  351. -
  352.      */
  353. -
  354.     public function getLastChild()
  355. -
  356.     {
  357. -
  358.         $baseAlias $this->_tree->getBaseAlias();
  359. -
  360.         $q $this->_tree->getBaseQuery();
  361. -
  362.         $q->addWhere("$baseAlias.rgt = ?"$this->getRightValue(1);
  363. -
  364.         $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  365. -
  366.         $result $q->execute();
  367. -
  368.  
  369. -
  370.         if (count($result<= 0{
  371. -
  372.             return false;
  373. -
  374.         }
  375. -
  376.         
  377. -
  378.         if ($result instanceof Doctrine_Collection{
  379. -
  380.             $child $result->getFirst();
  381. -
  382.         else if (is_array($result)) {
  383. -
  384.             $child array_shift($result);
  385. -
  386.         }
  387. -
  388.         
  389. -
  390.         return $child;      
  391. -
  392.     }
  393. -
  394.  
  395. -
  396.     /**
  397. -
  398.      * gets children for node (direct descendants only)
  399. -
  400.      *
  401. -
  402.      * @return mixed The children of the node or FALSE if the node has no children.
  403. -
  404.      */
  405. -
  406.     public function getChildren()
  407. -
  408.     
  409. -
  410.         return $this->getDescendants(1);
  411. -
  412.     }
  413. -
  414.  
  415. -
  416.     /**
  417. -
  418.      * gets descendants for node (direct descendants only)
  419. -
  420.      *
  421. -
  422.      * @return mixed  The descendants of the node or FALSE if the node has no descendants.
  423. -
  424.      * @todo Currently all descendants are fetched, no matter the depth. Maybe there is a better
  425. -
  426.      *        solution with less overhead.
  427. -
  428.      */
  429. -
  430.     public function getDescendants($depth null$includeNode false)
  431. -
  432.     {
  433. -
  434.         $baseAlias $this->_tree->getBaseAlias();
  435. -
  436.         $q $this->_tree->getBaseQuery();
  437. -
  438.         $params array($this->record->get('lft')$this->record->get('rgt'));
  439. -
  440.         
  441. -
  442.         if ($includeNode{
  443. -
  444.             $q->addWhere("$baseAlias.lft >= ? AND $baseAlias.rgt <= ?"$params)->addOrderBy("$baseAlias.lft asc");
  445. -
  446.         else {
  447. -
  448.             $q->addWhere("$baseAlias.lft > ? AND $baseAlias.rgt < ?"$params)->addOrderBy("$baseAlias.lft asc");
  449. -
  450.         }
  451. -
  452.         
  453. -
  454.         if ($depth !== null{
  455. -
  456.             $q->addWhere("$baseAlias.level <= ?"$this->record['level'$depth);
  457. -
  458.         }
  459. -
  460.         
  461. -
  462.         $q $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  463. -
  464.         $result $q->execute();
  465. -
  466.  
  467. -
  468.         if (count($result<= 0{
  469. -
  470.             return false;
  471. -
  472.         }
  473. -
  474.  
  475. -
  476.         return $result;
  477. -
  478.     }
  479. -
  480.  
  481. -
  482.     /**
  483. -
  484.      * gets record of parent or empty record
  485. -
  486.      *
  487. -
  488.      * @return object     Doctrine_Record 
  489. -
  490.      */
  491. -
  492.     public function getParent()
  493. -
  494.     {
  495. -
  496.         $baseAlias $this->_tree->getBaseAlias();
  497. -
  498.         $q $this->_tree->getBaseQuery();
  499. -
  500.         $q->addWhere("$baseAlias.lft < ? AND $baseAlias.rgt > ?"array($this->getLeftValue()$this->getRightValue()))
  501. -
  502.                 ->addOrderBy("$baseAlias.rgt asc");
  503. -
  504.         $q $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  505. -
  506.         $result $q->execute();
  507. -
  508.         
  509. -
  510.         if (count($result<= 0{
  511. -
  512.             return false;
  513. -
  514.         }
  515. -
  516.                
  517. -
  518.         if ($result instanceof Doctrine_Collection{
  519. -
  520.             $parent $result->getFirst();
  521. -
  522.         else if (is_array($result)) {
  523. -
  524.             $parent array_shift($result);
  525. -
  526.         }
  527. -
  528.         
  529. -
  530.         return $parent;
  531. -
  532.     }
  533. -
  534.  
  535. -
  536.     /**
  537. -
  538.      * gets ancestors for node
  539. -
  540.      *
  541. -
  542.      * @param integer $deth  The depth 'upstairs'.
  543. -
  544.      * @return mixed  The ancestors of the node or FALSE if the node has no ancestors (this
  545. -
  546.      *                 basically means it's a root node).
  547. -
  548.      */
  549. -
  550.     public function getAncestors($depth null)
  551. -
  552.     {
  553. -
  554.         $baseAlias $this->_tree->getBaseAlias();
  555. -
  556.         $q $this->_tree->getBaseQuery();
  557. -
  558.         $q->addWhere("$baseAlias.lft < ? AND $baseAlias.rgt > ?"array($this->getLeftValue()$this->getRightValue()))
  559. -
  560.                 ->addOrderBy("$baseAlias.lft asc");
  561. -
  562.         if ($depth !== null{
  563. -
  564.             $q->addWhere("$baseAlias.level >= ?"$this->record['level'$depth);
  565. -
  566.         }
  567. -
  568.         $q $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  569. -
  570.         $ancestors $q->execute();
  571. -
  572.         if (count($ancestors<= 0{
  573. -
  574.             return false;
  575. -
  576.         }
  577. -
  578.         return $ancestors;
  579. -
  580.     }
  581. -
  582.  
  583. -
  584.     /**
  585. -
  586.      * gets path to node from root, uses record::toString() method to get node names
  587. -
  588.      *
  589. -
  590.      * @param string     $seperator     path seperator
  591. -
  592.      * @param bool     $includeNode     whether or not to include node at end of path
  593. -
  594.      * @return string     string representation of path
  595. -
  596.      */     
  597. -
  598.     public function getPath($seperator ' > '$includeRecord false)
  599. -
  600.     {
  601. -
  602.         $path array();
  603. -
  604.         $ancestors $this->getAncestors();
  605. -
  606.         foreach ($ancestors as $ancestor{
  607. -
  608.             $path[$ancestor->__toString();
  609. -
  610.         }
  611. -
  612.         if ($includeRecord{
  613. -
  614.             $path[$this->getRecord()->__toString();
  615. -
  616.         }
  617. -
  618.             
  619. -
  620.         return implode($seperator$path);
  621. -
  622.     }
  623. -
  624.  
  625. -
  626.     /**
  627. -
  628.      * gets number of children (direct descendants)
  629. -
  630.      *
  631. -
  632.      * @return int 
  633. -
  634.      */     
  635. -
  636.     public function getNumberChildren()
  637. -
  638.     {
  639. -
  640.         return count($this->getChildren());
  641. -
  642.     }
  643. -
  644.  
  645. -
  646.     /**
  647. -
  648.      * gets number of descendants (children and their children)
  649. -
  650.      *
  651. -
  652.      * @return int 
  653. -
  654.      */
  655. -
  656.     public function getNumberDescendants()
  657. -
  658.     {
  659. -
  660.         return ($this->getRightValue($this->getLeftValue(12;
  661. -
  662.     }
  663. -
  664.  
  665. -
  666.     /**
  667. -
  668.      * inserts node as parent of dest record
  669. -
  670.      *
  671. -
  672.      * @return bool 
  673. -
  674.      * @todo Wrap in transaction
  675. -
  676.      */
  677. -
  678.     public function insertAsParentOf(Doctrine_Record $dest)
  679. -
  680.     {
  681. -
  682.         // cannot insert a node that has already has a place within the tree
  683. -
  684.         if ($this->isValidNode()) {
  685. -
  686.             return false;
  687. -
  688.         }
  689. -
  690.         // cannot insert as parent of root
  691. -
  692.         if ($dest->getNode()->isRoot()) {
  693. -
  694.             return false;
  695. -
  696.         }
  697. -
  698.         $newRoot $dest->getNode()->getRootValue();
  699. -
  700.         $this->shiftRLValues($dest->getNode()->getLeftValue()1$newRoot);
  701. -
  702.         $this->shiftRLValues($dest->getNode()->getRightValue(21$newRoot);
  703. -
  704.         
  705. -
  706.         $newLeft $dest->getNode()->getLeftValue();
  707. -
  708.         $newRight $dest->getNode()->getRightValue(2;
  709. -
  710.  
  711. -
  712.         $this->record['level'$dest['level'1;
  713. -
  714.         $this->insertNode($newLeft$newRight$newRoot);
  715. -
  716.         
  717. -
  718.         return true;
  719. -
  720.     }
  721. -
  722.  
  723. -
  724.     /**
  725. -
  726.      * inserts node as previous sibling of dest record
  727. -
  728.      *
  729. -
  730.      * @return bool 
  731. -
  732.      * @todo Wrap in transaction
  733. -
  734.      */
  735. -
  736.     public function insertAsPrevSiblingOf(Doctrine_Record $dest)
  737. -
  738.     {
  739. -
  740.         // cannot insert a node that has already has a place within the tree
  741. -
  742.         if ($this->isValidNode())
  743. -
  744.             return false;
  745. -
  746.  
  747. -
  748.         $newLeft $dest->getNode()->getLeftValue();
  749. -
  750.         $newRight $dest->getNode()->getLeftValue(1;
  751. -
  752.         $newRoot $dest->getNode()->getRootValue();
  753. -
  754.         
  755. -
  756.         $this->shiftRLValues($newLeft2$newRoot);
  757. -
  758.         $this->record['level'$dest['level'];
  759. -
  760.         $this->insertNode($newLeft$newRight$newRoot);
  761. -
  762.         // update destination left/right values to prevent a refresh
  763. -
  764.         // $dest->getNode()->setLeftValue($dest->getNode()->getLeftValue() + 2);
  765. -
  766.         // $dest->getNode()->setRightValue($dest->getNode()->getRightValue() + 2);
  767. -
  768.                         
  769. -
  770.         return true;
  771. -
  772.     }
  773. -
  774.  
  775. -
  776.     /**
  777. -
  778.      * inserts node as next sibling of dest record
  779. -
  780.      *
  781. -
  782.      * @return bool 
  783. -
  784.      * @todo Wrap in transaction
  785. -
  786.      */    
  787. -
  788.     public function insertAsNextSiblingOf(Doctrine_Record $dest)
  789. -
  790.     {
  791. -
  792.         // cannot insert a node that has already has a place within the tree
  793. -
  794.         if ($this->isValidNode())
  795. -
  796.             return false;
  797. -
  798.  
  799. -
  800.         $newLeft $dest->getNode()->getRightValue(1;
  801. -
  802.         $newRight $dest->getNode()->getRightValue(2;
  803. -
  804.         $newRoot $dest->getNode()->getRootValue();
  805. -
  806.  
  807. -
  808.         $this->shiftRLValues($newLeft2$newRoot);
  809. -
  810.         $this->record['level'$dest['level'];
  811. -
  812.         $this->insertNode($newLeft$newRight$newRoot);
  813. -
  814.  
  815. -
  816.         // update destination left/right values to prevent a refresh
  817. -
  818.         // no need, node not affected
  819. -
  820.  
  821. -
  822.         return true;
  823. -
  824.     }
  825. -
  826.  
  827. -
  828.     /**
  829. -
  830.      * inserts node as first child of dest record
  831. -
  832.      *
  833. -
  834.      * @return bool 
  835. -
  836.      * @todo Wrap in transaction
  837. -
  838.      */
  839. -
  840.     public function insertAsFirstChildOf(Doctrine_Record $dest)
  841. -
  842.     {
  843. -
  844.         // cannot insert a node that has already has a place within the tree
  845. -
  846.         if ($this->isValidNode())
  847. -
  848.             return false;
  849. -
  850.  
  851. -
  852.         $newLeft $dest->getNode()->getLeftValue(1;
  853. -
  854.         $newRight $dest->getNode()->getLeftValue(2;
  855. -
  856.         $newRoot $dest->getNode()->getRootValue();
  857. -
  858.  
  859. -
  860.         $this->shiftRLValues($newLeft2$newRoot);
  861. -
  862.         $this->record['level'$dest['level'1;
  863. -
  864.         $this->insertNode($newLeft$newRight$newRoot);
  865. -
  866.         
  867. -
  868.         // update destination left/right values to prevent a refresh
  869. -
  870.         // $dest->getNode()->setRightValue($dest->getNode()->getRightValue() + 2);
  871. -
  872.  
  873. -
  874.         return true;
  875. -
  876.     }
  877. -
  878.  
  879. -
  880.     /**
  881. -
  882.      * inserts node as last child of dest record
  883. -
  884.      *
  885. -
  886.      * @return bool 
  887. -
  888.      * @todo Wrap in transaction
  889. -
  890.      */
  891. -
  892.     public function insertAsLastChildOf(Doctrine_Record $dest)
  893. -
  894.     {
  895. -
  896.         // cannot insert a node that has already has a place within the tree
  897. -
  898.         if ($this->isValidNode())
  899. -
  900.             return false;
  901. -
  902.  
  903. -
  904.         $newLeft $dest->getNode()->getRightValue();
  905. -
  906.         $newRight $dest->getNode()->getRightValue(1;
  907. -
  908.         $newRoot $dest->getNode()->getRootValue();
  909. -
  910.  
  911. -
  912.         $this->shiftRLValues($newLeft2$newRoot);
  913. -
  914.         $this->record['level'$dest['level'1;
  915. -
  916.         $this->insertNode($newLeft$newRight$newRoot);
  917. -
  918.  
  919. -
  920.         // update destination left/right values to prevent a refresh
  921. -
  922.         // $dest->getNode()->setRightValue($dest->getNode()->getRightValue() + 2);
  923. -
  924.         
  925. -
  926.         return true;
  927. -
  928.     }
  929. -
  930.     
  931. -
  932.     /**
  933. -
  934.      * Accomplishes moving of nodes between different trees.
  935. -
  936.      * Used by the move* methods if the root values of the two nodes are different.
  937. -
  938.      *
  939. -
  940.      * @param Doctrine_Record $dest 
  941. -
  942.      * @param unknown_type $newLeftValue 
  943. -
  944.      * @param unknown_type $moveType 
  945. -
  946.      * @todo Better exception handling/wrapping
  947. -
  948.      */
  949. -
  950.     private function _moveBetweenTrees(Doctrine_Record $dest$newLeftValue$moveType)
  951. -
  952.     {
  953. -
  954.         $conn $this->record->getTable()->getConnection();
  955. -
  956.             
  957. -
  958.             try {
  959. -
  960.                 $conn->beginTransaction();
  961. -
  962.                 
  963. -
  964.                 // Move between trees: Detach from old tree & insert into new tree
  965. -
  966.                 $newRoot $dest->getNode()->getRootValue();
  967. -
  968.                 $oldRoot $this->getRootValue();
  969. -
  970.                 $oldLft $this->getLeftValue();
  971. -
  972.                 $oldRgt $this->getRightValue();
  973. -
  974.                 $oldLevel $this->record['level'];
  975. -
  976.                 
  977. -
  978.                 // Prepare target tree for insertion, make room
  979. -
  980.                 $this->shiftRlValues($newLeftValue$oldRgt $oldLft 1$newRoot);
  981. -
  982.                 
  983. -
  984.                 // Set new root id for this node
  985. -
  986.                 $this->setRootValue($newRoot);
  987. -
  988.                 $this->record->save();
  989. -
  990.                 
  991. -
  992.                 // Close gap in old tree
  993. -
  994.                 $first $oldRgt 1;
  995. -
  996.                 $delta $oldLft $oldRgt 1;
  997. -
  998.                 $this->shiftRLValues($first$delta$oldRoot);
  999. -
  1000.                 
  1001. -
  1002.                 // Insert this node as a new node
  1003. -
  1004.                 $this->setRightValue(0);
  1005. -
  1006.                 $this->setLeftValue(0);
  1007. -
  1008.                 
  1009. -
  1010.                 switch ($moveType{
  1011. -
  1012.                     case 'moveAsPrevSiblingOf':
  1013. -
  1014.                         $this->insertAsPrevSiblingOf($dest);
  1015. -
  1016.                     break;
  1017. -
  1018.                     case 'moveAsFirstChildOf':
  1019. -
  1020.                         $this->insertAsFirstChildOf($dest);
  1021. -
  1022.                     break;
  1023. -
  1024.                     case 'moveAsNextSiblingOf':
  1025. -
  1026.                         $this->insertAsNextSiblingOf($dest);
  1027. -
  1028.                     break;
  1029. -
  1030.                     case 'moveAsLastChildOf':
  1031. -
  1032.                         $this->insertAsLastChildOf($dest);
  1033. -
  1034.                     break;
  1035. -
  1036.                     default:
  1037. -
  1038.                         throw new Exception("Unknown move operation$moveType.");
  1039. -
  1040.                 }
  1041. -
  1042.                 
  1043. -
  1044.                 $diff $oldRgt $oldLft;
  1045. -
  1046.                 $this->setRightValue($this->getLeftValue(($oldRgt $oldLft));
  1047. -
  1048.                 $this->record->save();
  1049. -
  1050.                 
  1051. -
  1052.                 $newLevel $this->record['level'];
  1053. -
  1054.                 $levelDiff $newLevel $oldLevel;
  1055. -
  1056.                 
  1057. -
  1058.                 // Relocate descendants of the node
  1059. -
  1060.                 $diff $this->getLeftValue($oldLft;
  1061. -
  1062.                 $componentName $this->_tree->getBaseComponent();
  1063. -
  1064.                 $rootColName $this->record->getTable()->getTree()->getAttribute('rootColumnName');
  1065. -
  1066.  
  1067. -
  1068.                 // Update lft/rgt/root/level for all descendants
  1069. -
  1070.                 $q new Doctrine_Query($conn);
  1071. -
  1072.                 $q $q->update($componentName)
  1073. -
  1074.                         ->set($componentName '.lft''lft + ?'$diff)
  1075. -
  1076.                         ->set($componentName '.rgt''rgt + ?'$diff)
  1077. -
  1078.                         ->set($componentName '.level''level + ?'$levelDiff)
  1079. -
  1080.                         ->set($componentName '.' $rootColName'?'$newRoot)
  1081. -
  1082.                         ->where($componentName '.lft > ? AND ' $componentName '.rgt < ?',
  1083. -
  1084.                         array($oldLft$oldRgt));
  1085. -
  1086.                 $q $this->_tree->returnQueryWithRootId($q$oldRoot);
  1087. -
  1088.                 $q->execute();
  1089. -
  1090.                 
  1091. -
  1092.                 $conn->commit();
  1093. -
  1094.             catch (Exception $e{
  1095. -
  1096.                 $conn->rollback();
  1097. -
  1098.                 throw $e;
  1099. -
  1100.             }
  1101. -
  1102.     }
  1103. -
  1104.     
  1105. -
  1106.     /**
  1107. -
  1108.      * moves node as prev sibling of dest record
  1109. -
  1110.      * 
  1111. -
  1112.      */     
  1113. -
  1114.     public function moveAsPrevSiblingOf(Doctrine_Record $dest)
  1115. -
  1116.     {
  1117. -
  1118.         if ($dest->getNode()->getRootValue(!= $this->getRootValue()) {
  1119. -
  1120.             // Move between trees
  1121. -
  1122.             $this->_moveBetweenTrees($dest$dest->getNode()->getLeftValue()__FUNCTION__);
  1123. -
  1124.         else {
  1125. -
  1126.             // Move within the tree
  1127. -
  1128.             $oldLevel $this->record['level'];
  1129. -
  1130.             $this->record['level'$dest['level'];
  1131. -
  1132.             $this->updateNode($dest->getNode()->getLeftValue()$this->record['level'$oldLevel);
  1133. -
  1134.         }
  1135. -
  1136.     }
  1137. -
  1138.  
  1139. -
  1140.     /**
  1141. -
  1142.      * moves node as next sibling of dest record
  1143. -
  1144.      *        
  1145. -
  1146.      */
  1147. -
  1148.     public function moveAsNextSiblingOf(Doctrine_Record $dest)
  1149. -
  1150.     {
  1151. -
  1152.         if ($dest->getNode()->getRootValue(!= $this->getRootValue()) {
  1153. -
  1154.             // Move between trees
  1155. -
  1156.             $this->_moveBetweenTrees($dest$dest->getNode()->getRightValue(1__FUNCTION__);
  1157. -
  1158.         else {
  1159. -
  1160.             // Move within tree
  1161. -
  1162.             $oldLevel $this->record['level'];
  1163. -
  1164.             $this->record['level'$dest['level'];
  1165. -
  1166.             $this->updateNode($dest->getNode()->getRightValue(1$this->record['level'$oldLevel);
  1167. -
  1168.         }
  1169. -
  1170.     }
  1171. -
  1172.  
  1173. -
  1174.     /**
  1175. -
  1176.      * moves node as first child of dest record
  1177. -
  1178.      *            
  1179. -
  1180.      */
  1181. -
  1182.     public function moveAsFirstChildOf(Doctrine_Record $dest)
  1183. -
  1184.     {
  1185. -
  1186.         if ($dest->getNode()->getRootValue(!= $this->getRootValue()) {
  1187. -
  1188.             // Move between trees
  1189. -
  1190.             $this->_moveBetweenTrees($dest$dest->getNode()->getLeftValue(1__FUNCTION__);
  1191. -
  1192.         else {
  1193. -
  1194.             // Move within tree
  1195. -
  1196.             $oldLevel $this->record['level'];
  1197. -
  1198.             $this->record['level'$dest['level'1;
  1199. -
  1200.             $this->updateNode($dest->getNode()->getLeftValue(1$this->record['level'$oldLevel);
  1201. -
  1202.         }
  1203. -
  1204.     }
  1205. -
  1206.  
  1207. -
  1208.     /**
  1209. -
  1210.      * moves node as last child of dest record
  1211. -
  1212.      *        
  1213. -
  1214.      */
  1215. -
  1216.     public function moveAsLastChildOf(Doctrine_Record $dest)
  1217. -
  1218.     {
  1219. -
  1220.         if ($dest->getNode()->getRootValue(!= $this->getRootValue()) {
  1221. -
  1222.             // Move between trees
  1223. -
  1224.             $this->_moveBetweenTrees($dest$dest->getNode()->getRightValue()__FUNCTION__);
  1225. -
  1226.         else {
  1227. -
  1228.             // Move within tree
  1229. -
  1230.             $oldLevel $this->record['level'];
  1231. -
  1232.             $this->record['level'$dest['level'1;
  1233. -
  1234.             $this->updateNode($dest->getNode()->getRightValue()$this->record['level'$oldLevel);
  1235. -
  1236.         }
  1237. -
  1238.     }
  1239. -
  1240.     
  1241. -
  1242.     /**
  1243. -
  1244.      * Makes this node a root node. Only used in multiple-root trees.
  1245. -
  1246.      *
  1247. -
  1248.      * @todo Exception handling/wrapping
  1249. -
  1250.      */
  1251. -
  1252.     public function makeRoot($newRootId)
  1253. -
  1254.     {
  1255. -
  1256.         // TODO: throw exception instead?
  1257. -
  1258.         if ($this->getLeftValue(== || !$this->record->getTable()->getTree()->getAttribute('hasManyRoots')) {
  1259. -
  1260.             return false;
  1261. -
  1262.         }
  1263. -
  1264.         
  1265. -
  1266.         $oldRgt $this->getRightValue();
  1267. -
  1268.         $oldLft $this->getLeftValue();
  1269. -
  1270.         $oldRoot $this->getRootValue();
  1271. -
  1272.         $oldLevel $this->record['level'];
  1273. -
  1274.         
  1275. -
  1276.         try {
  1277. -
  1278.             $conn $this->record->getTable()->getConnection();
  1279. -
  1280.             $conn->beginTransaction();
  1281. -
  1282.             
  1283. -
  1284.             // Detach from old tree (close gap in old tree)
  1285. -
  1286.             $first $oldRgt 1;
  1287. -
  1288.             $delta $oldLft $oldRgt 1;
  1289. -
  1290.             $this->shiftRLValues($first$delta$this->getRootValue());
  1291. -
  1292.             
  1293. -
  1294.             // Set new lft/rgt/root/level values for root node
  1295. -
  1296.             $this->setLeftValue(1);
  1297. -
  1298.             $this->setRightValue($oldRgt $oldLft 1);
  1299. -
  1300.             $this->setRootValue($newRootId);
  1301. -
  1302.             $this->record['level'0;
  1303. -
  1304.             
  1305. -
  1306.             // Update descendants lft/rgt/root/level values
  1307. -
  1308.             $diff $oldLft;
  1309. -
  1310.             $newRoot $newRootId;
  1311. -
  1312.             $componentName $this->_tree->getBaseComponent();
  1313. -
  1314.             $rootColName $this->record->getTable()->getTree()->getAttribute('rootColumnName');
  1315. -
  1316.             $q new Doctrine_Query($conn);
  1317. -
  1318.             $q $q->update($componentName)
  1319. -
  1320.                     ->set($componentName '.lft''lft + ?'$diff)
  1321. -
  1322.                     ->set($componentName '.rgt''rgt + ?'$diff)
  1323. -
  1324.                     ->set($componentName '.level''level - ?'$oldLevel)
  1325. -
  1326.                     ->set($componentName '.' $rootColName'?'$newRoot)
  1327. -
  1328.                     ->where($componentName '.lft > ? AND ' $componentName '.rgt < ?',
  1329. -
  1330.                     array($oldLft$oldRgt));
  1331. -
  1332.             $q $this->_tree->returnQueryWithRootId($q$oldRoot);
  1333. -
  1334.             $q->execute();
  1335. -
  1336.             
  1337. -
  1338.             $conn->commit();
  1339. -
  1340.             
  1341. -
  1342.         catch (Exception $e{
  1343. -
  1344.             $conn->rollback();
  1345. -
  1346.             throw $e;
  1347. -
  1348.         }
  1349. -
  1350.     }
  1351. -
  1352.  
  1353. -
  1354.     /**
  1355. -
  1356.      * adds node as last child of record
  1357. -
  1358.      *        
  1359. -
  1360.      */
  1361. -
  1362.     public function addChild(Doctrine_Record $record)
  1363. -
  1364.     {
  1365. -
  1366.         $record->getNode()->insertAsLastChildOf($this->getRecord());
  1367. -
  1368.     }
  1369. -
  1370.  
  1371. -
  1372.     /**
  1373. -
  1374.      * determines if node is leaf
  1375. -
  1376.      *
  1377. -
  1378.      * @return bool 
  1379. -
  1380.      */
  1381. -
  1382.     public function isLeaf()
  1383. -
  1384.     {
  1385. -
  1386.         return (($this->getRightValue($this->getLeftValue()) == 1);
  1387. -
  1388.     }
  1389. -
  1390.  
  1391. -
  1392.     /**
  1393. -
  1394.      * determines if node is root
  1395. -
  1396.      *
  1397. -
  1398.      * @return bool 
  1399. -
  1400.      */
  1401. -
  1402.     public function isRoot()
  1403. -
  1404.     {
  1405. -
  1406.         return ($this->getLeftValue(== 1);
  1407. -
  1408.     }
  1409. -
  1410.  
  1411. -
  1412.     /**
  1413. -
  1414.      * determines if node is equal to subject node
  1415. -
  1416.      *
  1417. -
  1418.      * @return bool 
  1419. -
  1420.      */    
  1421. -
  1422.     public function isEqualTo(Doctrine_Record $subj)
  1423. -
  1424.     {
  1425. -
  1426.         return (($this->getLeftValue(== $subj->getNode()->getLeftValue()) &&
  1427. -
  1428.                 ($this->getRightValue(== $subj->getNode()->getRightValue()) && 
  1429. -
  1430.                 ($this->getRootValue(== $subj->getNode()->getRootValue())
  1431. -
  1432.                 );
  1433. -
  1434.     }
  1435. -
  1436.  
  1437. -
  1438.     /**
  1439. -
  1440.      * determines if node is child of subject node
  1441. -
  1442.      *
  1443. -
  1444.      * @return bool 
  1445. -
  1446.      */
  1447. -
  1448.     public function isDescendantOf(Doctrine_Record $subj)
  1449. -
  1450.     {
  1451. -
  1452.         return (($this->getLeftValue($subj->getNode()->getLeftValue()) &&
  1453. -
  1454.                 ($this->getRightValue($subj->getNode()->getRightValue()) &&
  1455. -
  1456.                 ($this->getRootValue(== $subj->getNode()->getRootValue()));
  1457. -
  1458.     }
  1459. -
  1460.  
  1461. -
  1462.     /**
  1463. -
  1464.      * determines if node is child of or sibling to subject node
  1465. -
  1466.      *
  1467. -
  1468.      * @return bool 
  1469. -
  1470.      */
  1471. -
  1472.     public function isDescendantOfOrEqualTo(Doctrine_Record $subj)
  1473. -
  1474.     {
  1475. -
  1476.         return (($this->getLeftValue(>= $subj->getNode()->getLeftValue()) &&
  1477. -
  1478.                 ($this->getRightValue(<= $subj->getNode()->getRightValue()) &&
  1479. -
  1480.                 ($this->getRootValue(== $subj->getNode()->getRootValue()));
  1481. -
  1482.     }
  1483. -
  1484.  
  1485. -
  1486.     /**
  1487. -
  1488.      * determines if node is valid
  1489. -
  1490.      *
  1491. -
  1492.      * @return bool 
  1493. -
  1494.      */
  1495. -
  1496.     public function isValidNode($record null)
  1497. -
  1498.     {
  1499. -
  1500.         if ($record === null{
  1501. -
  1502.           return ($this->getRightValue($this->getLeftValue());
  1503. -
  1504.         else if$record instanceof Doctrine_Record {
  1505. -
  1506.           return ($record->getNode()->getRightValue($record->getNode()->getLeftValue());
  1507. -
  1508.         else {
  1509. -
  1510.           return false;
  1511. -
  1512.         }
  1513. -
  1514.     }
  1515. -
  1516.  
  1517. -
  1518.     /**
  1519. -
  1520.      * deletes node and it's descendants
  1521. -
  1522.      * @todo Delete more efficiently. Wrap in transaction if needed.
  1523. -
  1524.      */
  1525. -
  1526.     public function delete()
  1527. -
  1528.     {
  1529. -
  1530.         // TODO: add the setting whether or not to delete descendants or relocate children
  1531. -
  1532.         $oldRoot $this->getRootValue();
  1533. -
  1534.         $q $this->_tree->getBaseQuery();
  1535. -
  1536.         
  1537. -
  1538.         $baseAlias $this->_tree->getBaseAlias();
  1539. -
  1540.         $componentName $this->_tree->getBaseComponent();
  1541. -
  1542.  
  1543. -
  1544.         $q $q->addWhere("$baseAlias.lft >= ? AND $baseAlias.rgt <= ?"array($this->getLeftValue()$this->getRightValue()));
  1545. -
  1546.  
  1547. -
  1548.         $q $this->record->getTable()->getTree()->returnQueryWithRootId($q$oldRoot);
  1549. -
  1550.         
  1551. -
  1552.         $coll $q->execute();
  1553. -
  1554.  
  1555. -
  1556.         $coll->delete();
  1557. -
  1558.  
  1559. -
  1560.         $first $this->getRightValue(1;
  1561. -
  1562.         $delta $this->getLeftValue($this->getRightValue(1;
  1563. -
  1564.         $this->shiftRLValues($first$delta$oldRoot);
  1565. -
  1566.         
  1567. -
  1568.         return true
  1569. -
  1570.     }
  1571. -
  1572.  
  1573. -
  1574.     /**
  1575. -
  1576.      * sets node's left and right values and save's it
  1577. -
  1578.      *
  1579. -
  1580.      * @param int     $destLeft     node left value
  1581. -
  1582.      * @param int        $destRight    node right value
  1583. -
  1584.      */    
  1585. -
  1586.     private function insertNode($destLeft 0$destRight 0$destRoot 1)
  1587. -
  1588.     {
  1589. -
  1590.         $this->setLeftValue($destLeft);
  1591. -
  1592.         $this->setRightValue($destRight);
  1593. -
  1594.         $this->setRootValue($destRoot);
  1595. -
  1596.         $this->record->save();    
  1597. -
  1598.     }
  1599. -
  1600.  
  1601. -
  1602.     /**
  1603. -
  1604.      * move node's and its children to location $destLeft and updates rest of tree
  1605. -
  1606.      *
  1607. -
  1608.      * @param int     $destLeft    destination left value
  1609. -
  1610.      * @todo Wrap in transaction
  1611. -
  1612.      */
  1613. -
  1614.     private function updateNode($destLeft$levelDiff)
  1615. -
  1616.     
  1617. -
  1618.         $componentName $this->_tree->getBaseComponent();
  1619. -
  1620.         $left $this->getLeftValue();
  1621. -
  1622.         $right $this->getRightValue();
  1623. -
  1624.         $rootId $this->getRootValue();
  1625. -
  1626.  
  1627. -
  1628.         $treeSize $right $left 1;
  1629. -
  1630.  
  1631. -
  1632.         // Make room in the new branch
  1633. -
  1634.         $this->shiftRLValues($destLeft$treeSize$rootId);
  1635. -
  1636.  
  1637. -
  1638.         if ($left >= $destLeft)// src was shifted too?
  1639. -
  1640.             $left += $treeSize;
  1641. -
  1642.             $right += $treeSize;
  1643. -
  1644.         }
  1645. -
  1646.  
  1647. -
  1648.         // update level for descendants
  1649. -
  1650.         $q new Doctrine_Query();
  1651. -
  1652.         $q $q->update($componentName)
  1653. -
  1654.                 ->set($componentName '.level''level + ?')
  1655. -
  1656.                 ->where($componentName '.lft > ? AND ' $componentName '.rgt < ?',
  1657. -
  1658.                         array($levelDiff$left$right));
  1659. -
  1660.         $q $this->_tree->returnQueryWithRootId($q$rootId);
  1661. -
  1662.         $q->execute();
  1663. -
  1664.         
  1665. -
  1666.         // now there's enough room next to target to move the subtree
  1667. -
  1668.         $this->shiftRLRange($left$right$destLeft $left$rootId);
  1669. -
  1670.  
  1671. -
  1672.         // correct values after source (close gap in old tree)
  1673. -
  1674.         $this->shiftRLValues($right 1-$treeSize$rootId);
  1675. -
  1676.  
  1677. -
  1678.         $this->record->save();
  1679. -
  1680.         $this->record->refresh();
  1681. -
  1682.     }
  1683. -
  1684.  
  1685. -
  1686.     /**
  1687. -
  1688.      * adds '$delta' to all Left and Right values that are >= '$first'. '$delta' can also be negative.
  1689. -
  1690.      *
  1691. -
  1692.      * @param int $first         First node to be shifted
  1693. -
  1694.      * @param int $delta         Value to be shifted by, can be negative
  1695. -
  1696.      */    
  1697. -
  1698.     private function shiftRlValues($first$delta$rootId 1)
  1699. -
  1700.     {
  1701. -
  1702.         $qLeft  new Doctrine_Query();
  1703. -
  1704.         $qRight new Doctrine_Query();
  1705. -
  1706.  
  1707. -
  1708.         // shift left columns
  1709. -
  1710.         $componentName $this->_tree->getBaseComponent();
  1711. -
  1712.         $qLeft $qLeft->update($componentName)
  1713. -
  1714.                                 ->set($componentName '.lft''lft + ?')
  1715. -
  1716.                                 ->where($componentName '.lft >= ?'array($delta$first));
  1717. -
  1718.         
  1719. -
  1720.         $qLeft $this->record->getTable()->getTree()->returnQueryWithRootId($qLeft$rootId);
  1721. -
  1722.         
  1723. -
  1724.         $resultLeft $qLeft->execute();
  1725. -
  1726.         
  1727. -
  1728.         // shift right columns
  1729. -
  1730.         $resultRight $qRight->update($componentName)
  1731. -
  1732.                                 ->set($componentName '.rgt''rgt + ?')
  1733. -
  1734.                                 ->where($componentName '.rgt >= ?'array($delta$first));
  1735. -
  1736.  
  1737. -
  1738.         $qRight $this->record->getTable()->getTree()->returnQueryWithRootId($qRight$rootId);
  1739. -
  1740.  
  1741. -
  1742.         $resultRight $qRight->execute();
  1743. -
  1744.     }
  1745. -
  1746.  
  1747. -
  1748.     /**
  1749. -
  1750.      * adds '$delta' to all Left and Right values that are >= '$first' and <= '$last'.
  1751. -
  1752.      * '$delta' can also be negative.
  1753. -
  1754.      *
  1755. -
  1756.      * @param int $first     First node to be shifted (L value)
  1757. -
  1758.      * @param int $last     Last node to be shifted (L value)
  1759. -
  1760.      * @param int $delta         Value to be shifted by, can be negative
  1761. -
  1762.      */ 
  1763. -
  1764.     private function shiftRlRange($first$last$delta$rootId 1)
  1765. -
  1766.     {
  1767. -
  1768.         $qLeft  new Doctrine_Query();
  1769. -
  1770.         $qRight new Doctrine_Query();
  1771. -
  1772.  
  1773. -
  1774.         // shift left column values
  1775. -
  1776.         $componentName $this->_tree->getBaseComponent();
  1777. -
  1778.         $qLeft $qLeft->update($componentName)
  1779. -
  1780.                                 ->set($componentName '.lft''lft + ?')
  1781. -
  1782.                                 ->where($componentName '.lft >= ? AND ' $componentName '.lft <= ?'array($delta$first$last));
  1783. -
  1784.         
  1785. -
  1786.         $qLeft $this->record->getTable()->getTree()->returnQueryWithRootId($qLeft$rootId);
  1787. -
  1788.  
  1789. -
  1790.         $resultLeft $qLeft->execute();
  1791. -
  1792.         
  1793. -
  1794.         // shift right column values
  1795. -
  1796.         $qRight $qRight->update($componentName)
  1797. -
  1798.                                 ->set($componentName '.rgt''rgt + ?')
  1799. -
  1800.                                 ->where($componentName '.rgt >= ? AND ' $componentName '.rgt <= ?'array($delta$first$last));
  1801. -
  1802.  
  1803. -
  1804.         $qRight $this->record->getTable()->getTree()->returnQueryWithRootId($qRight$rootId);
  1805. -
  1806.  
  1807. -
  1808.         $resultRight $qRight->execute();
  1809. -
  1810.     }
  1811. -
  1812.     
  1813. -
  1814.     /**
  1815. -
  1816.      * gets record's left value
  1817. -
  1818.      *
  1819. -
  1820.      * @return int 
  1821. -
  1822.      */     
  1823. -
  1824.     public function getLeftValue()
  1825. -
  1826.     {
  1827. -
  1828.         return $this->record->get('lft');
  1829. -
  1830.     }
  1831. -
  1832.  
  1833. -
  1834.     /**
  1835. -
  1836.      * sets record's left value
  1837. -
  1838.      *
  1839. -
  1840.      * @param int 
  1841. -
  1842.      */     
  1843. -
  1844.     public function setLeftValue($lft)
  1845. -
  1846.     {
  1847. -
  1848.         $this->record->set('lft'$lft);        
  1849. -
  1850.     }
  1851. -
  1852.  
  1853. -
  1854.     /**
  1855. -
  1856.      * gets record's right value
  1857. -
  1858.      *
  1859. -
  1860.      * @return int 
  1861. -
  1862.      */     
  1863. -
  1864.     public function getRightValue()
  1865. -
  1866.     {
  1867. -
  1868.         return $this->record->get('rgt');        
  1869. -
  1870.     }
  1871. -
  1872.  
  1873. -
  1874.     /**
  1875. -
  1876.      * sets record's right value
  1877. -
  1878.      *
  1879. -
  1880.      * @param int 
  1881. -
  1882.      */    
  1883. -
  1884.     public function setRightValue($rgt)
  1885. -
  1886.     {
  1887. -
  1888.         $this->record->set('rgt'$rgt);         
  1889. -
  1890.     }
  1891. -
  1892.  
  1893. -
  1894.     /**
  1895. -
  1896.      * gets level (depth) of node in the tree
  1897. -
  1898.      *
  1899. -
  1900.      * @return int 
  1901. -
  1902.      */    
  1903. -
  1904.     public function getLevel()
  1905. -
  1906.     {
  1907. -
  1908.         if (!isset($this->record['level'])) {
  1909. -
  1910.             $baseAlias $this->_tree->getBaseAlias();
  1911. -
  1912.             $componentName $this->_tree->getBaseComponent();
  1913. -
  1914.             $q $this->_tree->getBaseQuery();
  1915. -
  1916.             $q $q->addWhere("$baseAlias.lft < ? AND $baseAlias.rgt > ?"array($this->getLeftValue()$this->getRightValue()));
  1917. -
  1918.  
  1919. -
  1920.             $q $this->_tree->returnQueryWithRootId($q$this->getRootValue());
  1921. -
  1922.             
  1923. -
  1924.             $coll $q->execute();
  1925. -
  1926.  
  1927. -
  1928.             $this->record['level'count($collcount($coll0;
  1929. -
  1930.         }
  1931. -
  1932.         return $this->record['level'];
  1933. -
  1934.     }
  1935. -
  1936.  
  1937. -
  1938.     /**
  1939. -
  1940.      * get records root id value
  1941. -
  1942.      *            
  1943. -
  1944.      */     
  1945. -
  1946.     public function getRootValue()
  1947. -
  1948.     {
  1949. -
  1950.         if ($this->_tree->getAttribute('hasManyRoots')) {
  1951. -
  1952.             return $this->record->get($this->_tree->getAttribute('rootColumnName'));
  1953. -
  1954.         }
  1955. -
  1956.         return 1;
  1957. -
  1958.     }
  1959. -
  1960.  
  1961. -
  1962.     /**
  1963. -
  1964.      * sets records root id value
  1965. -
  1966.      *
  1967. -
  1968.      * @param int 
  1969. -
  1970.      */
  1971. -
  1972.     public function setRootValue($value)
  1973. -
  1974.     {
  1975. -
  1976.         if ($this->_tree->getAttribute('hasManyRoots')) {
  1977. -
  1978.             $this->record->set($this->_tree->getAttribute('rootColumnName')$value);   
  1979. -
  1980.         }    
  1981. -
  1982.     }
  1983. -
  1984. }
  1985. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetLevelOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetLevelOrderIterator.php.html deleted file mode 100644 index 19fa6391c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetLevelOrderIterator.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file LevelOrderIterator.php

-

Documentation is available at LevelOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: LevelOrderIterator.php 1659 2007-06-13 20:22:46Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_NestedSet_LevelOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1659 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {}
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPostOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPostOrderIterator.php.html deleted file mode 100644 index 53b4d0c24..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPostOrderIterator.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file PostOrderIterator.php

-

Documentation is available at PostOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: PostOrderIterator.php 1659 2007-06-13 20:22:46Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_NestedSet_PostOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1659 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {}
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPreOrderIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPreOrderIterator.php.html deleted file mode 100644 index 619448620..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNodeNestedSetPreOrderIterator.php.html +++ /dev/null @@ -1,184 +0,0 @@ - -
-

Source for file PreOrderIterator.php

-

Documentation is available at PreOrderIterator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: PreOrderIterator.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Node_NestedSet_PreOrderIterator
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. class Doctrine_Node_NestedSet_PreOrderIterator implements Iterator
  64. -
  65. {
  66. -
  67.     /**
  68. -
  69.      * @var Doctrine_Collection $collection 
  70. -
  71.      */
  72. -
  73.     protected $collection;
  74. -
  75.     /**
  76. -
  77.      * @var array $keys 
  78. -
  79.      */
  80. -
  81.     protected $keys;
  82. -
  83.     /**
  84. -
  85.      * @var mixed $key 
  86. -
  87.      */
  88. -
  89.     protected $key;
  90. -
  91.     /**
  92. -
  93.      * @var integer $index 
  94. -
  95.      */
  96. -
  97.     protected $index;
  98. -
  99.     /**
  100. -
  101.      * @var integer $index 
  102. -
  103.      */
  104. -
  105.     protected $prevIndex;
  106. -
  107.     /**
  108. -
  109.      * @var integer $index 
  110. -
  111.      */
  112. -
  113.     protected $traverseLevel;
  114. -
  115.     /**
  116. -
  117.      * @var integer $count 
  118. -
  119.      */
  120. -
  121.     protected $count;
  122. -
  123.  
  124. -
  125.     public function __construct($record$opts)
  126. -
  127.     {
  128. -
  129.         $componentName $record->getTable()->getComponentName();
  130. -
  131.  
  132. -
  133.         $q $record->getTable()->createQuery();
  134. -
  135.  
  136. -
  137.         $params array($record->get('lft')$record->get('rgt'));
  138. -
  139.         if (isset($opts['include_record']&& $opts['include_record']{
  140. -
  141.             $query $q->where("$componentName.lft >= ? AND $componentName.rgt <= ?"$params)->orderBy("$componentName.lft asc");
  142. -
  143.         else {
  144. -
  145.             $query $q->where("$componentName.lft > ? AND $componentName.rgt < ?"$params)->orderBy("$componentName.lft asc");
  146. -
  147.         }
  148. -
  149.         
  150. -
  151.         $query $record->getTable()->getTree()->returnQueryWithRootId($query$record->getNode()->getRootValue());
  152. -
  153.  
  154. -
  155.         $this->maxLevel   = isset($opts['depth']($opts['depth'$record->getNode()->getLevel()) 0;
  156. -
  157.         $this->options    $opts;
  158. -
  159.         $this->collection = isset($opts['collection']$opts['collection'$query->execute();
  160. -
  161.         $this->keys       = $this->collection->getKeys();
  162. -
  163.         $this->count      = $this->collection->count();
  164. -
  165.         $this->index      = -1;
  166. -
  167.         $this->level      $record->getNode()->getLevel();
  168. -
  169.         $this->prevLeft   $record->getNode()->getLeftValue();
  170. -
  171.  
  172. -
  173.         // clear the table identity cache
  174. -
  175.         $record->getTable()->clear();
  176. -
  177.     }
  178. -
  179.  
  180. -
  181.     /**
  182. -
  183.      * rewinds the iterator
  184. -
  185.      *
  186. -
  187.      * @return void 
  188. -
  189.      */
  190. -
  191.     public function rewind()
  192. -
  193.     {
  194. -
  195.         $this->index = -1;
  196. -
  197.         $this->key = null;
  198. -
  199.     }
  200. -
  201.  
  202. -
  203.     /**
  204. -
  205.      * returns the current key
  206. -
  207.      *
  208. -
  209.      * @return integer 
  210. -
  211.      */
  212. -
  213.     public function key()
  214. -
  215.     {
  216. -
  217.         return $this->key;
  218. -
  219.     }
  220. -
  221.  
  222. -
  223.     /**
  224. -
  225.      * returns the current record
  226. -
  227.      *
  228. -
  229.      * @return Doctrine_Record 
  230. -
  231.      */
  232. -
  233.     public function current()
  234. -
  235.     {
  236. -
  237.         $record $this->collection->get($this->key);
  238. -
  239.         $record->getNode()->setLevel($this->level);
  240. -
  241.         return $record;
  242. -
  243.     }
  244. -
  245.  
  246. -
  247.     /**
  248. -
  249.      * advances the internal pointer
  250. -
  251.      *
  252. -
  253.      * @return void 
  254. -
  255.      */
  256. -
  257.     public function next()
  258. -
  259.     {
  260. -
  261.         while ($current $this->advanceIndex()) {
  262. -
  263.             if ($this->maxLevel && ($this->level $this->maxLevel)) {
  264. -
  265.                 continue;
  266. -
  267.             }
  268. -
  269.  
  270. -
  271.             return $current;
  272. -
  273.         }
  274. -
  275.  
  276. -
  277.         return false;
  278. -
  279.     }
  280. -
  281.  
  282. -
  283.     /**
  284. -
  285.      * @return boolean                          whether or not the iteration will continue
  286. -
  287.      */
  288. -
  289.     public function valid()
  290. -
  291.     {
  292. -
  293.         return ($this->index < $this->count);
  294. -
  295.     }
  296. -
  297.  
  298. -
  299.     public function count()
  300. -
  301.     {
  302. -
  303.         return $this->count;
  304. -
  305.     }
  306. -
  307.  
  308. -
  309.     private function updateLevel()
  310. -
  311.     {
  312. -
  313.         if (!(isset($this->options['include_record']&& $this->options['include_record'&& $this->index == 0)) {
  314. -
  315.             $left $this->collection->get($this->key)->getNode()->getLeftValue();
  316. -
  317.             $this->level += $this->prevLeft $left 2;
  318. -
  319.             $this->prevLeft $left;
  320. -
  321.         }
  322. -
  323.     }
  324. -
  325.  
  326. -
  327.     private function advanceIndex()
  328. -
  329.     {
  330. -
  331.         $this->index++;
  332. -
  333.         $i $this->index;
  334. -
  335.         if (isset($this->keys[$i])) {
  336. -
  337.             $this->key   = $this->keys[$i];
  338. -
  339.             $this->updateLevel();
  340. -
  341.             return $this->current();
  342. -
  343.         }
  344. -
  345.  
  346. -
  347.         return false;
  348. -
  349.     }
  350. -
  351. }
  352. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNull.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNull.php.html deleted file mode 100644 index 87b18332c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineNull.php.html +++ /dev/null @@ -1,53 +0,0 @@ - -
-

Source for file Null.php

-

Documentation is available at Null.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Null.php 2182 2007-08-09 17:27:13Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Null
  44. -
  45.  *
  46. -
  47.  * Simple empty class representing a null value
  48. -
  49.  * used for extra fast null value testing with isset() rather than array_key_exists()
  50. -
  51.  *
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2182 $
  64. -
  65.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  66. -
  67.  */
  68. -
  69. final class Doctrine_Null
  70. -
  71. -
  72.     public function exists()
  73. -
  74.     {
  75. -
  76.         return false;    
  77. -
  78.     }
  79. -
  80.     public function __toString()
  81. -
  82.     {
  83. -
  84.         return '';
  85. -
  86.     }
  87. -
  88. }
  89. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineObject.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineObject.php.html deleted file mode 100644 index d5cd453c7..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineObject.php.html +++ /dev/null @@ -1,68 +0,0 @@ - -
-

Source for file Object.php

-

Documentation is available at Object.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Object
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var Doctrine_Null $null     Doctrine_Null object, used for extremely fast null value checking
  71. -
  72.      */
  73. -
  74.     protected static $_null;
  75. -
  76.     /**
  77. -
  78.      * initNullObject
  79. -
  80.      * initializes the null object
  81. -
  82.      *
  83. -
  84.      * @param Doctrine_Null $null 
  85. -
  86.      * @return void 
  87. -
  88.      */
  89. -
  90.     public static function initNullObject(Doctrine_Null $null)
  91. -
  92.     {
  93. -
  94.         self::$_null $null;
  95. -
  96.     }
  97. -
  98.     /**
  99. -
  100.      * getNullObject
  101. -
  102.      * returns the null object associated with this object
  103. -
  104.      *
  105. -
  106.      * @return Doctrine_Null 
  107. -
  108.      */
  109. -
  110.     public static function getNullObject()
  111. -
  112.     {
  113. -
  114.         return self::$_null;
  115. -
  116.     }
  117. -
  118. }
  119. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineOverloadable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineOverloadable.php.html deleted file mode 100644 index ccf089db3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineOverloadable.php.html +++ /dev/null @@ -1,52 +0,0 @@ - -
-

Source for file Overloadable.php

-

Documentation is available at Overloadable.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Overloadable.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Overloadable
  46. -
  47.  * a very generic overloading interface
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. interface Doctrine_Overloadable {
  68. -
  69.     /**
  70. -
  71.      * __call
  72. -
  73.      * method overloader
  74. -
  75.      *
  76. -
  77.      * @param string $m     the name of the method
  78. -
  79.      * @param array $a      method arguments
  80. -
  81.      * @return mixed        anything
  82. -
  83.      */
  84. -
  85.     public function __call($m$a);
  86. -
  87. }
  88. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrinePlugin.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrinePlugin.php.html deleted file mode 100644 index d7bb7eab9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrinePlugin.php.html +++ /dev/null @@ -1,87 +0,0 @@ - -
-

Source for file Plugin.php

-

Documentation is available at Plugin.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Plugin
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var array $_options     an array of plugin specific options
  71. -
  72.      */
  73. -
  74.     protected $_options = array();
  75. -
  76.     /**
  77. -
  78.      * returns the value of an option
  79. -
  80.      *
  81. -
  82.      * @param $option       the name of the option to retrieve
  83. -
  84.      * @return mixed        the value of the option
  85. -
  86.      */
  87. -
  88.     public function getOption($name)
  89. -
  90.     {
  91. -
  92.         if isset($this->_options[$name])) {
  93. -
  94.             throw new Doctrine_Plugin_Exception('Unknown option ' $name);
  95. -
  96.         }
  97. -
  98.         
  99. -
  100.         return $this->_options[$name];
  101. -
  102.     }
  103. -
  104.     /**
  105. -
  106.      * sets given value to an option
  107. -
  108.      *
  109. -
  110.      * @param $option       the name of the option to be changed
  111. -
  112.      * @param $value        the value of the option
  113. -
  114.      * @return Doctrine_Plugin  this object
  115. -
  116.      */
  117. -
  118.     public function setOption($name$value)
  119. -
  120.     {
  121. -
  122.         if isset($this->_options[$name])) {
  123. -
  124.             throw new Doctrine_Plugin_Exception('Unknown option ' $name);
  125. -
  126.         }
  127. -
  128.  
  129. -
  130.         $this->_options[$name$value;
  131. -
  132.         
  133. -
  134.         return $this;
  135. -
  136.     }
  137. -
  138.     /**
  139. -
  140.      * returns all options and their associated values
  141. -
  142.      *
  143. -
  144.      * @return array    all options as an associative array
  145. -
  146.      */
  147. -
  148.     public function getOptions()
  149. -
  150.     {
  151. -
  152.         return $this->_options;    
  153. -
  154.     }
  155. -
  156. }
  157. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuery.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuery.php.html deleted file mode 100644 index 9275dd2fa..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuery.php.html +++ /dev/null @@ -1,1572 +0,0 @@ - -
-

Source for file Query.php

-

Documentation is available at Query.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Query.php 2287 2007-08-29 21:36:36Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Abstract');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2287 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. class Doctrine_Query extends Doctrine_Query_Abstract implements Countable
  66. -
  67. {
  68. -
  69.     const STATE_CLEAN  = 1;
  70. -
  71.  
  72. -
  73.     const STATE_DIRTY  = 2;
  74. -
  75.  
  76. -
  77.     const STATE_DIRECT = 3;
  78. -
  79.  
  80. -
  81.     const STATE_LOCKED = 4;
  82. -
  83.  
  84. -
  85.  
  86. -
  87.     protected $subqueryAliases   = array();
  88. -
  89.     /**
  90. -
  91.      * @param boolean $needsSubquery 
  92. -
  93.      */
  94. -
  95.     protected $needsSubquery     = false;
  96. -
  97.     /**
  98. -
  99.      * @param boolean $isSubquery           whether or not this query object is a subquery of another
  100. -
  101.      *                                       query object
  102. -
  103.      */
  104. -
  105.     protected $isSubquery;
  106. -
  107.     
  108. -
  109.     protected $isLimitSubqueryUsed = false;
  110. -
  111.     /**
  112. -
  113.      * @var array $_neededTableAliases      an array containing the needed table aliases
  114. -
  115.      */
  116. -
  117.     protected $_neededTables     = array();
  118. -
  119.     /**
  120. -
  121.      * @var array $pendingFields 
  122. -
  123.      */
  124. -
  125.     protected $pendingFields     = array();
  126. -
  127.     /**
  128. -
  129.      * @var array $pendingSubqueries        SELECT part subqueries, these are called pending subqueries since
  130. -
  131.      *                                       they cannot be parsed directly (some queries might be correlated)
  132. -
  133.      */
  134. -
  135.     protected $pendingSubqueries = array();
  136. -
  137.     /**
  138. -
  139.      * @var array $_parsers                 an array of parser objects, each DQL query part has its own parser
  140. -
  141.      */
  142. -
  143.     protected $_parsers    = array();
  144. -
  145.     /**
  146. -
  147.      * @var array $_enumParams              an array containing the keys of the parameters that should be enumerated
  148. -
  149.      */
  150. -
  151.     protected $_enumParams = array();
  152. -
  153.  
  154. -
  155.     /**
  156. -
  157.      * @var array $_dqlParts                an array containing all DQL query parts
  158. -
  159.      */
  160. -
  161.     protected $_dqlParts   = array(
  162. -
  163.                             'select'    => array(),
  164. -
  165.                             'forUpdate' => false,
  166. -
  167.                             'from'      => array(),
  168. -
  169.                             'set'       => array(),
  170. -
  171.                             'join'      => array(),
  172. -
  173.                             'where'     => array(),
  174. -
  175.                             'groupby'   => array(),
  176. -
  177.                             'having'    => array(),
  178. -
  179.                             'orderby'   => array(),
  180. -
  181.                             'limit'     => array(),
  182. -
  183.                             'offset'    => array(),
  184. -
  185.                             );
  186. -
  187.     /**
  188. -
  189.      * @var array $_pendingJoinConditions    an array containing pending joins
  190. -
  191.      */
  192. -
  193.     protected $_pendingJoinConditions = array();
  194. -
  195.     
  196. -
  197.     protected $_expressionMap = array();
  198. -
  199.     
  200. -
  201.     protected $_state = Doctrine_Query::STATE_CLEAN;
  202. -
  203.  
  204. -
  205.     /**
  206. -
  207.      * create
  208. -
  209.      * returns a new Doctrine_Query object
  210. -
  211.      *
  212. -
  213.      * @param Doctrine_Connection $conn     optional connection parameter
  214. -
  215.      * @return Doctrine_Query 
  216. -
  217.      */
  218. -
  219.     public static function create($conn null)
  220. -
  221.     {
  222. -
  223.         return new Doctrine_Query($conn);
  224. -
  225.     }
  226. -
  227.     public function reset(
  228. -
  229.     {
  230. -
  231.         $this->_pendingJoinConditions = array();
  232. -
  233.         $this->pendingSubqueries = array();
  234. -
  235.         $this->pendingFields = array();
  236. -
  237.         $this->_neededTables = array();
  238. -
  239.         $this->_expressionMap = array();
  240. -
  241.         $this->subqueryAliases = array();
  242. -
  243.         $this->needsSubquery = false;
  244. -
  245.         $this->isLimitSubqueryUsed = false;
  246. -
  247.     }
  248. -
  249.     /**
  250. -
  251.      * setOption
  252. -
  253.      *
  254. -
  255.      * @param string $name      option name
  256. -
  257.      * @param string $value     option value
  258. -
  259.      * @return Doctrine_Query   this object
  260. -
  261.      */
  262. -
  263.     public function setOption($name$value)
  264. -
  265.     {
  266. -
  267.         if isset($this->_options[$name])) {
  268. -
  269.             throw new Doctrine_Query_Exception('Unknown option ' $name);
  270. -
  271.         }
  272. -
  273.         $this->_options[$name$value;
  274. -
  275.     }
  276. -
  277.     /**
  278. -
  279.      * addPendingJoinCondition
  280. -
  281.      *
  282. -
  283.      * @param string $componentAlias    component alias
  284. -
  285.      * @param string $joinCondition     dql join condition
  286. -
  287.      * @return Doctrine_Query           this object
  288. -
  289.      */
  290. -
  291.     public function addPendingJoinCondition($componentAlias$joinCondition)
  292. -
  293.     {
  294. -
  295.         $this->_pendingJoins[$componentAlias$joinCondition;
  296. -
  297.     }
  298. -
  299.     /** 
  300. -
  301.      * addEnumParam
  302. -
  303.      * sets input parameter as an enumerated parameter
  304. -
  305.      *
  306. -
  307.      * @param string $key   the key of the input parameter
  308. -
  309.      * @return Doctrine_Query 
  310. -
  311.      */
  312. -
  313.     public function addEnumParam($key$table null$column null)
  314. -
  315.     {
  316. -
  317.         $array (isset($table|| isset($column)) array($table$columnarray();
  318. -
  319.  
  320. -
  321.         if ($key === '?'{
  322. -
  323.             $this->_enumParams[$array;
  324. -
  325.         else {
  326. -
  327.             $this->_enumParams[$key$array;
  328. -
  329.         }
  330. -
  331.     }
  332. -
  333.     /**
  334. -
  335.      * getEnumParams
  336. -
  337.      * get all enumerated parameters
  338. -
  339.      *
  340. -
  341.      * @return array    all enumerated parameters
  342. -
  343.      */
  344. -
  345.     public function getEnumParams()
  346. -
  347.     {
  348. -
  349.         return $this->_enumParams;
  350. -
  351.     }
  352. -
  353.     /**
  354. -
  355.      * limitSubqueryUsed
  356. -
  357.      *
  358. -
  359.      * @return boolean 
  360. -
  361.      */
  362. -
  363.     public function isLimitSubqueryUsed()
  364. -
  365.     {
  366. -
  367.         return $this->isLimitSubqueryUsed;
  368. -
  369.     }
  370. -
  371.     /**
  372. -
  373.      * convertEnums
  374. -
  375.      * convert enum parameters to their integer equivalents
  376. -
  377.      *
  378. -
  379.      * @return array    converted parameter array
  380. -
  381.      */
  382. -
  383.     public function convertEnums($params
  384. -
  385.     {
  386. -
  387.         foreach ($this->_enumParams as $key => $values{
  388. -
  389.             if (isset($params[$key])) {
  390. -
  391.                 if empty($values)) {
  392. -
  393.                     $params[$key$values[0]->enumIndex($values[1]$params[$key]);
  394. -
  395.                 }
  396. -
  397.             }
  398. -
  399.         }
  400. -
  401.         return $params;
  402. -
  403.     }
  404. -
  405.     /**
  406. -
  407.      * isSubquery
  408. -
  409.      * if $bool parameter is set this method sets the value of
  410. -
  411.      * Doctrine_Query::$isSubquery. If this value is set to true
  412. -
  413.      * the query object will not load the primary key fields of the selected
  414. -
  415.      * components.
  416. -
  417.      *
  418. -
  419.      * If null is given as the first parameter this method retrieves the current
  420. -
  421.      * value of Doctrine_Query::$isSubquery.
  422. -
  423.      *
  424. -
  425.      * @param boolean $bool     whether or not this query acts as a subquery
  426. -
  427.      * @return Doctrine_Query|bool
  428. -
  429.      */
  430. -
  431.     public function isSubquery($bool null)
  432. -
  433.     {
  434. -
  435.         if ($bool === null{
  436. -
  437.             return $this->isSubquery;
  438. -
  439.         }
  440. -
  441.  
  442. -
  443.         $this->isSubquery = (bool) $bool;
  444. -
  445.         return $this;
  446. -
  447.     }
  448. -
  449.     /**
  450. -
  451.      * getAggregateAlias
  452. -
  453.      * 
  454. -
  455.      * @param string $dqlAlias      the dql alias of an aggregate value
  456. -
  457.      * @return string 
  458. -
  459.      */
  460. -
  461.     public function getAggregateAlias($dqlAlias)
  462. -
  463.     {
  464. -
  465.         if (isset($this->aggregateMap[$dqlAlias])) {
  466. -
  467.             // mark the expression as used
  468. -
  469.             $this->_expressionMap[$dqlAlias][1true;
  470. -
  471.  
  472. -
  473.             return $this->aggregateMap[$dqlAlias];
  474. -
  475.         }
  476. -
  477.         if empty($this->pendingAggregates)) {
  478. -
  479.             $this->processPendingAggregates();
  480. -
  481.             
  482. -
  483.             return $this->getAggregateAlias($dqlAlias);
  484. -
  485.         }
  486. -
  487.         throw new Doctrine_Query_Exception('Unknown aggregate alias ' $dqlAlias);
  488. -
  489.     }
  490. -
  491.     /**
  492. -
  493.      * getParser
  494. -
  495.      * parser lazy-loader
  496. -
  497.      *
  498. -
  499.      * @throws Doctrine_Query_Exception     if unknown parser name given
  500. -
  501.      * @return Doctrine_Query_Part 
  502. -
  503.      */
  504. -
  505.     public function getParser($name)
  506. -
  507.     {
  508. -
  509.         if isset($this->_parsers[$name])) {
  510. -
  511.             $class 'Doctrine_Query_' ucwords(strtolower($name));
  512. -
  513.  
  514. -
  515.             Doctrine::autoload($class);
  516. -
  517.             
  518. -
  519.             if class_exists($class)) {
  520. -
  521.                 throw new Doctrine_Query_Exception('Unknown parser ' $name);
  522. -
  523.             }
  524. -
  525.  
  526. -
  527.             $this->_parsers[$namenew $class($this);
  528. -
  529.         }
  530. -
  531.  
  532. -
  533.         return $this->_parsers[$name];
  534. -
  535.     }
  536. -
  537.     /**
  538. -
  539.      * parseQueryPart
  540. -
  541.      * parses given DQL query part
  542. -
  543.      *
  544. -
  545.      * @param string $queryPartName     the name of the query part
  546. -
  547.      * @param string $queryPart         query part to be parsed
  548. -
  549.      * @param boolean $append           whether or not to append the query part to its stack
  550. -
  551.      *                                   if false is given, this method will overwrite
  552. -
  553.      *                                   the given query part stack with $queryPart
  554. -
  555.      * @return Doctrine_Query           this object
  556. -
  557.      */
  558. -
  559.     public function parseQueryPart($queryPartName$queryPart$append false
  560. -
  561.     {
  562. -
  563.         if ($this->_state === self::STATE_LOCKED{
  564. -
  565.             throw new Doctrine_Query_Exception('This query object is locked. No query parts can be manipulated.');
  566. -
  567.         }
  568. -
  569.  
  570. -
  571.         // sanity check
  572. -
  573.         if ($queryPart === '' || $queryPart === null{
  574. -
  575.             throw new Doctrine_Query_Exception('Empty ' $queryPartName ' part given.');
  576. -
  577.         }
  578. -
  579.  
  580. -
  581.         // add query part to the dql part array
  582. -
  583.         if ($append{
  584. -
  585.             $this->_dqlParts[$queryPartName][$queryPart;
  586. -
  587.         else {
  588. -
  589.             $this->_dqlParts[$queryPartNamearray($queryPart);
  590. -
  591.         }
  592. -
  593.  
  594. -
  595.         if ($this->_state === self::STATE_DIRECT{
  596. -
  597.             $parser $this->getParser($queryPartName);
  598. -
  599.  
  600. -
  601.             $sql $parser->parse($queryPart);
  602. -
  603.  
  604. -
  605.             if (isset($sql)) {
  606. -
  607.                 if ($append{
  608. -
  609.                     $this->addQueryPart($queryPartName$sql);
  610. -
  611.                 else {
  612. -
  613.                     $this->setQueryPart($queryPartName$sql);
  614. -
  615.                 }
  616. -
  617.             }                                       
  618. -
  619.         }
  620. -
  621.         
  622. -
  623.         $this->_state = Doctrine_Query::STATE_DIRTY;
  624. -
  625.  
  626. -
  627.         return $this;
  628. -
  629.     }
  630. -
  631.     /**
  632. -
  633.      * getDqlPart
  634. -
  635.      * returns the given DQL query part
  636. -
  637.      *
  638. -
  639.      * @param string $queryPart     the name of the query part
  640. -
  641.      * @return string   the DQL query part
  642. -
  643.      */
  644. -
  645.     public function getDqlPart($queryPart)
  646. -
  647.     {
  648. -
  649.         if isset($this->_dqlParts[$queryPart])) {
  650. -
  651.            throw new Doctrine_Query_Exception('Unknown query part ' $queryPart);
  652. -
  653.         }
  654. -
  655.  
  656. -
  657.         return $this->_dqlParts[$queryPart];
  658. -
  659.     }
  660. -
  661.     /**
  662. -
  663.      * getDql
  664. -
  665.      * returns the DQL query associated with this object
  666. -
  667.      *
  668. -
  669.      * the query is built from $_dqlParts
  670. -
  671.      *
  672. -
  673.      * @return string   the DQL query
  674. -
  675.      */
  676. -
  677.     public function getDql()
  678. -
  679.     {
  680. -
  681.         $q '';
  682. -
  683.         $q .= empty($this->_dqlParts['select']))?  'SELECT '    implode(', '$this->_dqlParts['select']'';
  684. -
  685.         $q .= empty($this->_dqlParts['from']))?    ' FROM '     implode(' '$this->_dqlParts['from']'';
  686. -
  687.         $q .= empty($this->_dqlParts['where']))?   ' WHERE '    implode(' AND '$this->_dqlParts['where']'';
  688. -
  689.         $q .= empty($this->_dqlParts['groupby']))' GROUP BY ' implode(', '$this->_dqlParts['groupby']'';
  690. -
  691.         $q .= empty($this->_dqlParts['having']))?  ' HAVING '   implode(' AND '$this->_dqlParts['having']'';
  692. -
  693.         $q .= empty($this->_dqlParts['orderby']))' ORDER BY ' implode(', '$this->_dqlParts['orderby']'';
  694. -
  695.         $q .= empty($this->_dqlParts['limit']))?   ' LIMIT '    implode(' '$this->_dqlParts['limit']'';
  696. -
  697.         $q .= empty($this->_dqlParts['offset']))?  ' OFFSET '   implode(' '$this->_dqlParts['offset']'';
  698. -
  699.         
  700. -
  701.         return $q;
  702. -
  703.     }
  704. -
  705.     /**
  706. -
  707.      * processPendingFields
  708. -
  709.      * the fields in SELECT clause cannot be parsed until the components
  710. -
  711.      * in FROM clause are parsed, hence this method is called everytime a
  712. -
  713.      * specific component is being parsed.
  714. -
  715.      *
  716. -
  717.      * @throws Doctrine_Query_Exception     if unknown component alias has been given
  718. -
  719.      * @param string $componentAlias        the alias of the component
  720. -
  721.      * @return void 
  722. -
  723.      */
  724. -
  725.     public function processPendingFields($componentAlias)
  726. -
  727.     {
  728. -
  729.         $tableAlias $this->getTableAlias($componentAlias);
  730. -
  731.         $table      $this->_aliasMap[$componentAlias]['table'];
  732. -
  733.  
  734. -
  735.         if (isset($this->pendingFields[$componentAlias])) {
  736. -
  737.             $fields $this->pendingFields[$componentAlias];
  738. -
  739.  
  740. -
  741.             // check for wildcards
  742. -
  743.             if (in_array('*'$fields)) {
  744. -
  745.                 $fields $table->getColumnNames();
  746. -
  747.             else {
  748. -
  749.                 // only auto-add the primary key fields if this query object is not 
  750. -
  751.                 // a subquery of another query object
  752. -
  753.                 if $this->isSubquery{
  754. -
  755.                     $fields array_unique(array_merge($table->getPrimaryKeys()$fields));
  756. -
  757.                 }
  758. -
  759.             }
  760. -
  761.         }
  762. -
  763.         foreach ($fields as $name{
  764. -
  765.             $name $table->getColumnName($name);
  766. -
  767.  
  768. -
  769.             $this->parts['select'][$this->_conn->quoteIdentifier($tableAlias '.' $name
  770. -
  771.                                      . ' AS ' 
  772. -
  773.                                      . $this->_conn->quoteIdentifier($tableAlias '__' $name);
  774. -
  775.         }
  776. -
  777.         
  778. -
  779.         $this->neededTables[$tableAlias;
  780. -
  781.  
  782. -
  783.     }
  784. -
  785.     /**
  786. -
  787.      * parseSelect
  788. -
  789.      * parses the query select part and
  790. -
  791.      * adds selected fields to pendingFields array
  792. -
  793.      *
  794. -
  795.      * @param string $dql 
  796. -
  797.      */
  798. -
  799.     public function parseSelect($dql)
  800. -
  801.     {
  802. -
  803.         $refs Doctrine_Tokenizer::bracketExplode($dql',');
  804. -
  805.  
  806. -
  807.         $pos   strpos(trim($refs[0])' ');
  808. -
  809.         $first substr($refs[0]0$pos);
  810. -
  811.         
  812. -
  813.         if ($first === 'DISTINCT'{
  814. -
  815.             $this->parts['distinct'true;
  816. -
  817.             
  818. -
  819.             $refs[0substr($refs[0]++$pos);
  820. -
  821.         }
  822. -
  823.  
  824. -
  825.         foreach ($refs as $reference{
  826. -
  827.             $reference trim($reference);
  828. -
  829.             if (strpos($reference'('!== false{
  830. -
  831.                 if (substr($reference01=== '('{
  832. -
  833.                     // subselect found in SELECT part
  834. -
  835.                     $this->parseSubselect($reference);
  836. -
  837.                 else {
  838. -
  839.                     $this->parseAggregateFunction($reference);
  840. -
  841.                 }
  842. -
  843.             else {
  844. -
  845.  
  846. -
  847.  
  848. -
  849.                 $e explode('.'$reference);
  850. -
  851.                 if (count($e2{
  852. -
  853.                     $this->pendingFields[$reference;
  854. -
  855.                 else {
  856. -
  857.                     $this->pendingFields[$e[0]][$e[1];
  858. -
  859.                 }
  860. -
  861.             }
  862. -
  863.         }
  864. -
  865.     }
  866. -
  867.     /** 
  868. -
  869.      * parseSubselect
  870. -
  871.      *
  872. -
  873.      * parses the subquery found in DQL SELECT part and adds the
  874. -
  875.      * parsed form into $pendingSubqueries stack
  876. -
  877.      *
  878. -
  879.      * @param string $reference 
  880. -
  881.      * @return void 
  882. -
  883.      */
  884. -
  885.     public function parseSubselect($reference
  886. -
  887.     {
  888. -
  889.         $e     Doctrine_Tokenizer::bracketExplode($reference' ');
  890. -
  891.         $alias $e[1];
  892. -
  893.  
  894. -
  895.         if (count($e2{
  896. -
  897.             if (strtoupper($e[1]!== 'AS'{
  898. -
  899.                 throw new Doctrine_Query_Exception('Syntax error near: ' $reference);
  900. -
  901.             }
  902. -
  903.             $alias $e[2];
  904. -
  905.         }
  906. -
  907.         
  908. -
  909.         $subquery substr($e[0]1-1);
  910. -
  911.         
  912. -
  913.         $this->pendingSubqueries[array($subquery$alias);
  914. -
  915.     }
  916. -
  917.     /**
  918. -
  919.      * parseClause
  920. -
  921.      * parses given DQL clause
  922. -
  923.      *
  924. -
  925.      * this method handles five tasks:
  926. -
  927.      *
  928. -
  929.      * 1. Converts all DQL functions to their native SQL equivalents
  930. -
  931.      * 2. Converts all component references to their table alias equivalents
  932. -
  933.      * 3. Converts all column aliases to actual column names
  934. -
  935.      * 4. Quotes all identifiers
  936. -
  937.      * 5. Parses nested clauses and subqueries recursively
  938. -
  939.      *
  940. -
  941.      * @return string   SQL string
  942. -
  943.      */
  944. -
  945.     public function parseClause($clause
  946. -
  947.     {
  948. -
  949.         $terms Doctrine_Tokenizer::clauseExplode($clausearray(' ''+''-''*''/'));
  950. -
  951.  
  952. -
  953.         $str '';
  954. -
  955.         foreach ($terms as $term{
  956. -
  957.             $pos strpos($term[0]'(');
  958. -
  959.  
  960. -
  961.             if ($pos !== false{
  962. -
  963.                 $name substr($term[0]0$pos);
  964. -
  965.                 if ($name !== ''{
  966. -
  967.                     $argStr substr($term[0]($pos 1)-1);
  968. -
  969.     
  970. -
  971.                     $args   array();
  972. -
  973.                     // parse args
  974. -
  975.     
  976. -
  977.                     foreach (Doctrine_Tokenizer::sqlExplode($argStr','as $expr{
  978. -
  979.                        $args[$this->parseClause($expr);
  980. -
  981.                     }
  982. -
  983.     
  984. -
  985.                     // convert DQL function to its RDBMS specific equivalent
  986. -
  987.                     try {
  988. -
  989.                         $expr call_user_func_array(array($this->_conn->expression$name)$args);
  990. -
  991.                     catch(Doctrine_Expression_Exception $e{
  992. -
  993.                         throw new Doctrine_Query_Exception('Unknown function ' $func '.');
  994. -
  995.                     }
  996. -
  997.                     $term[0$expr;
  998. -
  999.                 else {
  1000. -
  1001.                     $trimmed trim(Doctrine_Tokenizer::bracketTrim($term[0]));
  1002. -
  1003.                     
  1004. -
  1005.                     // check for possible subqueries
  1006. -
  1007.                     if (substr($trimmed04== 'FROM' || substr($trimmed06== 'SELECT'{
  1008. -
  1009.                         // parse subquery
  1010. -
  1011.                         $trimmed $this->createSubquery()->parseQuery($trimmed)->getQuery();
  1012. -
  1013.                     else {
  1014. -
  1015.                         // parse normal clause
  1016. -
  1017.                         $trimmed $this->parseClause($trimmed);
  1018. -
  1019.                     }
  1020. -
  1021.  
  1022. -
  1023.                     $term[0'(' $trimmed ')';
  1024. -
  1025.                 }
  1026. -
  1027.             else {
  1028. -
  1029.                 if (substr($term[0]01!== "'" && substr($term[0]-1!== "'"{
  1030. -
  1031.                     if (strpos($term[0]'.'!== false{
  1032. -
  1033.                         if is_numeric($term[0])) {
  1034. -
  1035.                             $e explode('.'$term[0]);
  1036. -
  1037.  
  1038. -
  1039.                             $field array_pop($e);
  1040. -
  1041.                             $componentAlias implode('.'$e);
  1042. -
  1043.             
  1044. -
  1045.                             // check the existence of the component alias
  1046. -
  1047.                             if isset($this->_aliasMap[$componentAlias])) {
  1048. -
  1049.                                 throw new Doctrine_Query_Exception('Unknown component alias ' $componentAlias);
  1050. -
  1051.                             }
  1052. -
  1053.             
  1054. -
  1055.                             $table $this->_aliasMap[$componentAlias]['table'];
  1056. -
  1057.  
  1058. -
  1059.                             // get the actual field name from alias
  1060. -
  1061.                             $field $table->getColumnName($field);
  1062. -
  1063.             
  1064. -
  1065.                             // check column existence
  1066. -
  1067.                             if $table->hasColumn($field)) {
  1068. -
  1069.                                 throw new Doctrine_Query_Exception('Unknown column ' $field);
  1070. -
  1071.                             }
  1072. -
  1073.             
  1074. -
  1075.                             $tableAlias $this->getTableAlias($componentAlias);
  1076. -
  1077.  
  1078. -
  1079.                             // build sql expression
  1080. -
  1081.                             $term[0$this->_conn->quoteIdentifier($tableAlias
  1082. -
  1083.                                      . '.' 
  1084. -
  1085.                                      . $this->_conn->quoteIdentifier($field);
  1086. -
  1087.                         }
  1088. -
  1089.                     }
  1090. -
  1091.                 }
  1092. -
  1093.             }
  1094. -
  1095.  
  1096. -
  1097.             $str .= $term[0$term[1];
  1098. -
  1099.         }
  1100. -
  1101.         return $str;
  1102. -
  1103.     }
  1104. -
  1105.     /**
  1106. -
  1107.      * parseAggregateFunction
  1108. -
  1109.      * parses an aggregate function and returns the parsed form
  1110. -
  1111.      *
  1112. -
  1113.      * @see Doctrine_Expression
  1114. -
  1115.      * @param string $expr                  DQL aggregate function
  1116. -
  1117.      * @throws Doctrine_Query_Exception     if unknown aggregate function given
  1118. -
  1119.      * @return array                        parsed form of given function
  1120. -
  1121.      */
  1122. -
  1123.     public function parseAggregateFunction($expr$nestedCall false)
  1124. -
  1125.     {
  1126. -
  1127.         $e    Doctrine_Tokenizer::bracketExplode($expr' ');
  1128. -
  1129.         $func $e[0];
  1130. -
  1131.  
  1132. -
  1133.         $pos  strpos($func'(');
  1134. -
  1135.         if ($pos === false{
  1136. -
  1137.             return $expr;
  1138. -
  1139.         }
  1140. -
  1141.  
  1142. -
  1143.         // get the name of the function
  1144. -
  1145.         $name   substr($func0$pos);
  1146. -
  1147.         $argStr substr($func($pos 1)-1);
  1148. -
  1149.  
  1150. -
  1151.         $args   array();
  1152. -
  1153.         // parse args
  1154. -
  1155.         foreach (Doctrine_Tokenizer::bracketExplode($argStr','as $expr{
  1156. -
  1157.            $args[$this->parseAggregateFunction($exprtrue);
  1158. -
  1159.         }
  1160. -
  1161.  
  1162. -
  1163.         // convert DQL function to its RDBMS specific equivalent
  1164. -
  1165.         try {
  1166. -
  1167.             $expr call_user_func_array(array($this->_conn->expression$name)$args);
  1168. -
  1169.         catch(Doctrine_Expression_Exception $e{
  1170. -
  1171.             throw new Doctrine_Query_Exception('Unknown function ' $func '.');
  1172. -
  1173.         }
  1174. -
  1175.  
  1176. -
  1177.         if $nestedCall{
  1178. -
  1179.             // try to find all component references
  1180. -
  1181.             preg_match_all("/[a-z0-9_]+\.[a-z0-9_]+[\.[a-z0-9]+]*/i"$argStr$m);
  1182. -
  1183.  
  1184. -
  1185.             if (isset($e[1])) {
  1186. -
  1187.                 if (strtoupper($e[1]=== 'AS'{
  1188. -
  1189.                     if isset($e[2])) {
  1190. -
  1191.                         throw new Doctrine_Query_Exception('Missing aggregate function alias.');
  1192. -
  1193.                     }
  1194. -
  1195.                     $alias $e[2];
  1196. -
  1197.                 else {
  1198. -
  1199.                     $alias $e[1];
  1200. -
  1201.                 }
  1202. -
  1203.             else {
  1204. -
  1205.                 $alias substr($expr0strpos($expr'('));
  1206. -
  1207.             }
  1208. -
  1209.  
  1210. -
  1211.             $this->pendingAggregates[array($expr$m[0]$alias);
  1212. -
  1213.         }
  1214. -
  1215.  
  1216. -
  1217.         return $expr;
  1218. -
  1219.     }
  1220. -
  1221.     /**
  1222. -
  1223.      * processPendingSubqueries
  1224. -
  1225.      * processes pending subqueries
  1226. -
  1227.      *
  1228. -
  1229.      * subqueries can only be processed when the query is fully constructed
  1230. -
  1231.      * since some subqueries may be correlated
  1232. -
  1233.      *
  1234. -
  1235.      * @return void 
  1236. -
  1237.      */
  1238. -
  1239.     public function processPendingSubqueries()
  1240. -
  1241.     {
  1242. -
  1243.         foreach ($this->pendingSubqueries as $value{
  1244. -
  1245.             list($dql$alias$value;
  1246. -
  1247.  
  1248. -
  1249.             $subquery $this->createSubquery();
  1250. -
  1251.  
  1252. -
  1253.             $sql $subquery->parseQuery($dqlfalse)->getQuery();
  1254. -
  1255.  
  1256. -
  1257.             reset($this->_aliasMap);
  1258. -
  1259.             $componentAlias key($this->_aliasMap);
  1260. -
  1261.             $tableAlias $this->getTableAlias($componentAlias);
  1262. -
  1263.  
  1264. -
  1265.             $sqlAlias $tableAlias '__' count($this->aggregateMap);
  1266. -
  1267.  
  1268. -
  1269.             $this->parts['select']['(' $sql ') AS ' $this->_conn->quoteIdentifier($sqlAlias);
  1270. -
  1271.  
  1272. -
  1273.             $this->aggregateMap[$alias$sqlAlias;
  1274. -
  1275.             $this->_aliasMap[$componentAlias]['agg'][$alias;
  1276. -
  1277.         }
  1278. -
  1279.         $this->pendingSubqueries = array();
  1280. -
  1281.     }
  1282. -
  1283.     /** 
  1284. -
  1285.      * processPendingAggregates
  1286. -
  1287.      * processes pending aggregate values for given component alias
  1288. -
  1289.      *
  1290. -
  1291.      * @return void 
  1292. -
  1293.      */
  1294. -
  1295.     public function processPendingAggregates()
  1296. -
  1297.     {
  1298. -
  1299.         // iterate trhough all aggregates
  1300. -
  1301.         foreach ($this->pendingAggregates as $aggregate{
  1302. -
  1303.             list ($expression$components$alias$aggregate;
  1304. -
  1305.  
  1306. -
  1307.             $tableAliases array();
  1308. -
  1309.  
  1310. -
  1311.             // iterate through the component references within the aggregate function
  1312. -
  1313.             if empty ($components)) {
  1314. -
  1315.                 foreach ($components as $component{
  1316. -
  1317.                     
  1318. -
  1319.                     if (is_numeric($component)) {
  1320. -
  1321.                         continue;
  1322. -
  1323.                     }
  1324. -
  1325.  
  1326. -
  1327.                     $e explode('.'$component);
  1328. -
  1329.     
  1330. -
  1331.                     $field array_pop($e);
  1332. -
  1333.                     $componentAlias implode('.'$e);
  1334. -
  1335.     
  1336. -
  1337.                     // check the existence of the component alias
  1338. -
  1339.                     if isset($this->_aliasMap[$componentAlias])) {
  1340. -
  1341.                         throw new Doctrine_Query_Exception('Unknown component alias ' $componentAlias);
  1342. -
  1343.                     }
  1344. -
  1345.     
  1346. -
  1347.                     $table $this->_aliasMap[$componentAlias]['table'];
  1348. -
  1349.     
  1350. -
  1351.                     $field $table->getColumnName($field);
  1352. -
  1353.     
  1354. -
  1355.                     // check column existence
  1356. -
  1357.                     if $table->hasColumn($field)) {
  1358. -
  1359.                         throw new Doctrine_Query_Exception('Unknown column ' $field);
  1360. -
  1361.                     }
  1362. -
  1363.     
  1364. -
  1365.                     $tableAlias $this->getTableAlias($componentAlias);
  1366. -
  1367.     
  1368. -
  1369.                     $tableAliases[$tableAliastrue;
  1370. -
  1371.     
  1372. -
  1373.                     // build sql expression
  1374. -
  1375.                     
  1376. -
  1377.                     $identifier $this->_conn->quoteIdentifier($tableAlias '.' $field);
  1378. -
  1379.                     $expression str_replace($component$identifier$expression);
  1380. -
  1381.                 }
  1382. -
  1383.             }
  1384. -
  1385.  
  1386. -
  1387.             if (count($tableAliases!== 1{
  1388. -
  1389.                 $componentAlias reset($this->tableAliases);
  1390. -
  1391.                 $tableAlias key($this->tableAliases);
  1392. -
  1393.             }
  1394. -
  1395.  
  1396. -
  1397.             $index    count($this->aggregateMap);
  1398. -
  1399.             $sqlAlias $this->_conn->quoteIdentifier($tableAlias '__' $index);
  1400. -
  1401.  
  1402. -
  1403.             $this->parts['select'][$expression ' AS ' $sqlAlias;
  1404. -
  1405.  
  1406. -
  1407.             $this->aggregateMap[$alias$sqlAlias;
  1408. -
  1409.             $this->_expressionMap[$alias][0$expression;
  1410. -
  1411.  
  1412. -
  1413.             $this->_aliasMap[$componentAlias]['agg'][$index$alias;
  1414. -
  1415.  
  1416. -
  1417.             $this->neededTables[$tableAlias;
  1418. -
  1419.         }
  1420. -
  1421.         // reset the state
  1422. -
  1423.         $this->pendingAggregates = array();
  1424. -
  1425.     }
  1426. -
  1427.     /**
  1428. -
  1429.      * getQueryBase
  1430. -
  1431.      * returns the base of the generated sql query
  1432. -
  1433.      * On mysql driver special strategy has to be used for DELETE statements
  1434. -
  1435.      *
  1436. -
  1437.      * @return string       the base of the generated sql query
  1438. -
  1439.      */
  1440. -
  1441.     public function getQueryBase()
  1442. -
  1443.     {
  1444. -
  1445.         switch ($this->type{
  1446. -
  1447.             case self::DELETE:
  1448. -
  1449.                 $q 'DELETE FROM ';
  1450. -
  1451.             break;
  1452. -
  1453.             case self::UPDATE:
  1454. -
  1455.                 $q 'UPDATE ';
  1456. -
  1457.             break;
  1458. -
  1459.             case self::SELECT:
  1460. -
  1461.                 $distinct ($this->parts['distinct']'DISTINCT ' '';
  1462. -
  1463.  
  1464. -
  1465.                 $q 'SELECT ' $distinct implode(', '$this->parts['select']' FROM ';
  1466. -
  1467.             break;
  1468. -
  1469.         }
  1470. -
  1471.         return $q;
  1472. -
  1473.     }
  1474. -
  1475.     /**
  1476. -
  1477.      * buildFromPart
  1478. -
  1479.      * builds the from part of the query and returns it
  1480. -
  1481.      *
  1482. -
  1483.      * @return string   the query sql from part
  1484. -
  1485.      */
  1486. -
  1487.     public function buildFromPart()
  1488. -
  1489.     {
  1490. -
  1491.         $q '';
  1492. -
  1493.         foreach ($this->parts['from'as $k => $part{
  1494. -
  1495.             if ($k === 0{
  1496. -
  1497.                 $q .= $part;
  1498. -
  1499.                 continue;
  1500. -
  1501.             }
  1502. -
  1503.             // preserve LEFT JOINs only if needed
  1504. -
  1505.  
  1506. -
  1507.             if (substr($part09=== 'LEFT JOIN'{
  1508. -
  1509.                 $e explode(' '$part);
  1510. -
  1511.  
  1512. -
  1513.                 $aliases array_merge($this->subqueryAliases,
  1514. -
  1515.                             array_keys($this->neededTables));
  1516. -
  1517.  
  1518. -
  1519.                 ifin_array($e[3]$aliases&&
  1520. -
  1521.                     in_array($e[2]$aliases&&
  1522. -
  1523.  
  1524. -
  1525.                     empty($this->pendingFields)) {
  1526. -
  1527.                     continue;
  1528. -
  1529.                 }
  1530. -
  1531.  
  1532. -
  1533.             }
  1534. -
  1535.  
  1536. -
  1537.             if (isset($this->_pendingJoinConditions[$k])) {
  1538. -
  1539.                 $parser new Doctrine_Query_JoinCondition($this);
  1540. -
  1541.                 
  1542. -
  1543.                 if (strpos($part' ON '!== false{
  1544. -
  1545.                     $part .= ' AND ';
  1546. -
  1547.                 else {
  1548. -
  1549.                     $part .= ' ON ';
  1550. -
  1551.                 }
  1552. -
  1553.                 $part .= $parser->parse($this->_pendingJoinConditions[$k]);
  1554. -
  1555.  
  1556. -
  1557.                 unset($this->_pendingJoinConditions[$k]);
  1558. -
  1559.             }
  1560. -
  1561.  
  1562. -
  1563.             $q .= ' ' $part;
  1564. -
  1565.  
  1566. -
  1567.             $this->parts['from'][$k$part;
  1568. -
  1569.         }
  1570. -
  1571.         return $q;
  1572. -
  1573.     }
  1574. -
  1575.     /**
  1576. -
  1577.      * preQuery
  1578. -
  1579.      *
  1580. -
  1581.      * Empty template method to provide Query subclasses with the possibility
  1582. -
  1583.      * to hook into the query building procedure, doing any custom / specialized
  1584. -
  1585.      * query building procedures that are neccessary.
  1586. -
  1587.      *
  1588. -
  1589.      * @return void 
  1590. -
  1591.      */
  1592. -
  1593.     public function preQuery()
  1594. -
  1595.     {
  1596. -
  1597.  
  1598. -
  1599.     }
  1600. -
  1601.     /**
  1602. -
  1603.      * postQuery
  1604. -
  1605.      *
  1606. -
  1607.      * Empty template method to provide Query subclasses with the possibility
  1608. -
  1609.      * to hook into the query building procedure, doing any custom / specialized
  1610. -
  1611.      * post query procedures (for example logging) that are neccessary.
  1612. -
  1613.      *
  1614. -
  1615.      * @return void 
  1616. -
  1617.      */
  1618. -
  1619.     public function postQuery()
  1620. -
  1621.     {
  1622. -
  1623.  
  1624. -
  1625.     }
  1626. -
  1627.     /**
  1628. -
  1629.      * builds the sql query from the given parameters and applies things such as
  1630. -
  1631.      * column aggregation inheritance and limit subqueries if needed
  1632. -
  1633.      *
  1634. -
  1635.      * @param array $params             an array of prepared statement params (needed only in mysql driver
  1636. -
  1637.      *                                   when limit subquery algorithm is used)
  1638. -
  1639.      * @return string                   the built sql query
  1640. -
  1641.      */
  1642. -
  1643.     public function getQuery($params array())
  1644. -
  1645.     {
  1646. -
  1647.         if ($this->_state !== self::STATE_DIRTY{
  1648. -
  1649.            return $this->_sql;
  1650. -
  1651.         }
  1652. -
  1653.  
  1654. -
  1655.         $parts $this->_dqlParts;
  1656. -
  1657.  
  1658. -
  1659.         // reset the state
  1660. -
  1661.         if $this->isSubquery()) {
  1662. -
  1663.             $this->_aliasMap = array();
  1664. -
  1665.             $this->pendingAggregates = array();
  1666. -
  1667.             $this->aggregateMap = array();
  1668. -
  1669.         }
  1670. -
  1671.         $this->reset();   
  1672. -
  1673.  
  1674. -
  1675.         // parse the DQL parts
  1676. -
  1677.         foreach ($this->_dqlParts as $queryPartName => $queryParts{
  1678. -
  1679.             
  1680. -
  1681.             $this->removeQueryPart($queryPartName);
  1682. -
  1683.  
  1684. -
  1685.             if (is_array($queryParts&& empty($queryParts)) {
  1686. -
  1687.  
  1688. -
  1689.                 foreach ($queryParts as $queryPart{
  1690. -
  1691.                     $parser $this->getParser($queryPartName);
  1692. -
  1693.                                       
  1694. -
  1695.  
  1696. -
  1697.                     $sql $parser->parse($queryPart);
  1698. -
  1699.  
  1700. -
  1701.                     if (isset($sql)) {
  1702. -
  1703.                         if ($queryPartName == 'limit' ||
  1704. -
  1705.                             $queryPartName == 'offset'{
  1706. -
  1707.  
  1708. -
  1709.                             $this->setQueryPart($queryPartName$sql);
  1710. -
  1711.                         else {
  1712. -
  1713.                             $this->addQueryPart($queryPartName$sql);
  1714. -
  1715.                         }
  1716. -
  1717.                     }
  1718. -
  1719.                 }
  1720. -
  1721.             }
  1722. -
  1723.         }
  1724. -
  1725.         $params $this->convertEnums($params);
  1726. -
  1727.  
  1728. -
  1729.         $this->_state = self::STATE_DIRECT;
  1730. -
  1731.  
  1732. -
  1733.         // invoke the preQuery hook
  1734. -
  1735.         $this->preQuery();        
  1736. -
  1737.         $this->_state = self::STATE_CLEAN;
  1738. -
  1739.         
  1740. -
  1741.         $this->_dqlParts = $parts;
  1742. -
  1743.  
  1744. -
  1745.         if (empty($this->parts['from'])) {
  1746. -
  1747.             return false;
  1748. -
  1749.         }
  1750. -
  1751.  
  1752. -
  1753.         $needsSubQuery false;
  1754. -
  1755.         $subquery '';
  1756. -
  1757.         $map   reset($this->_aliasMap);
  1758. -
  1759.         $table $map['table'];
  1760. -
  1761.         $rootAlias key($this->_aliasMap);
  1762. -
  1763.  
  1764. -
  1765.         if empty($this->parts['limit']&& $this->needsSubquery && $table->getAttribute(Doctrine::ATTR_QUERY_LIMIT== Doctrine::LIMIT_RECORDS{
  1766. -
  1767.             $this->isLimitSubqueryUsed = true;
  1768. -
  1769.             $needsSubQuery true;
  1770. -
  1771.         }
  1772. -
  1773.  
  1774. -
  1775.         // process all pending SELECT part subqueries
  1776. -
  1777.         $this->processPendingSubqueries();
  1778. -
  1779.         $this->processPendingAggregates();
  1780. -
  1781.  
  1782. -
  1783.         // build the basic query
  1784. -
  1785.  
  1786. -
  1787.         $q  $this->getQueryBase();
  1788. -
  1789.         $q .= $this->buildFromPart();
  1790. -
  1791.  
  1792. -
  1793.         if empty($this->parts['set'])) {
  1794. -
  1795.             $q .= ' SET ' implode(', '$this->parts['set']);
  1796. -
  1797.         }
  1798. -
  1799.  
  1800. -
  1801.  
  1802. -
  1803.         $string $this->applyInheritance();
  1804. -
  1805.         
  1806. -
  1807.         // apply inheritance to WHERE part
  1808. -
  1809.         if empty($string)) {
  1810. -
  1811.             $this->parts['where']['(' $string ')';
  1812. -
  1813.         }
  1814. -
  1815.  
  1816. -
  1817.  
  1818. -
  1819.         $modifyLimit true;
  1820. -
  1821.         if empty($this->parts['limit']|| empty($this->parts['offset'])) {
  1822. -
  1823.  
  1824. -
  1825.             if ($needsSubQuery{
  1826. -
  1827.                 $subquery $this->getLimitSubquery();
  1828. -
  1829.  
  1830. -
  1831.  
  1832. -
  1833.                 switch (strtolower($this->_conn->getName())) {
  1834. -
  1835.                     case 'mysql':
  1836. -
  1837.                         // mysql doesn't support LIMIT in subqueries
  1838. -
  1839.                         $list     $this->_conn->execute($subquery$params)->fetchAll(Doctrine::FETCH_COLUMN);
  1840. -
  1841.                         $subquery implode(', 'array_map(array($this->_conn'quote')$list));
  1842. -
  1843.                         break;
  1844. -
  1845.                     case 'pgsql':
  1846. -
  1847.                         // pgsql needs special nested LIMIT subquery
  1848. -
  1849.                         $subquery 'SELECT doctrine_subquery_alias.' $table->getIdentifier()' FROM (' $subquery ') AS doctrine_subquery_alias';
  1850. -
  1851.                         break;
  1852. -
  1853.                 }
  1854. -
  1855.  
  1856. -
  1857.                 $field $this->getTableAlias($rootAlias'.' $table->getIdentifier();
  1858. -
  1859.  
  1860. -
  1861.                 // only append the subquery if it actually contains something
  1862. -
  1863.                 if ($subquery !== ''{
  1864. -
  1865.                     array_unshift($this->parts['where']$this->_conn->quoteIdentifier($field' IN (' $subquery ')');
  1866. -
  1867.                 }
  1868. -
  1869.  
  1870. -
  1871.                 $modifyLimit false;
  1872. -
  1873.             }
  1874. -
  1875.         }
  1876. -
  1877.  
  1878. -
  1879.         $q .= empty($this->parts['where']))?   ' WHERE '    implode(' AND '$this->parts['where']'';
  1880. -
  1881.         $q .= empty($this->parts['groupby']))' GROUP BY ' implode(', '$this->parts['groupby'])  '';
  1882. -
  1883.         $q .= empty($this->parts['having']))?  ' HAVING '   implode(' AND '$this->parts['having'])'';
  1884. -
  1885.         $q .= empty($this->parts['orderby']))' ORDER BY ' implode(', '$this->parts['orderby'])  '';
  1886. -
  1887.  
  1888. -
  1889.         if ($modifyLimit{    
  1890. -
  1891.  
  1892. -
  1893.             $q $this->_conn->modifyLimitQuery($q$this->parts['limit']$this->parts['offset']);
  1894. -
  1895.         }
  1896. -
  1897.  
  1898. -
  1899.         // return to the previous state
  1900. -
  1901.         if empty($string)) {
  1902. -
  1903.             array_pop($this->parts['where']);
  1904. -
  1905.         }
  1906. -
  1907.         if ($needsSubQuery{
  1908. -
  1909.             array_shift($this->parts['where']);
  1910. -
  1911.         }
  1912. -
  1913.         $this->_sql = $q;
  1914. -
  1915.  
  1916. -
  1917.         return $q;
  1918. -
  1919.     }
  1920. -
  1921.     /**
  1922. -
  1923.      * getLimitSubquery
  1924. -
  1925.      * this is method is used by the record limit algorithm
  1926. -
  1927.      *
  1928. -
  1929.      * when fetching one-to-many, many-to-many associated data with LIMIT clause
  1930. -
  1931.      * an additional subquery is needed for limiting the number of returned records instead
  1932. -
  1933.      * of limiting the number of sql result set rows
  1934. -
  1935.      *
  1936. -
  1937.      * @return string       the limit subquery
  1938. -
  1939.      */
  1940. -
  1941.     public function getLimitSubquery()
  1942. -
  1943.     {
  1944. -
  1945.         $map    reset($this->_aliasMap);
  1946. -
  1947.         $table  $map['table'];
  1948. -
  1949.         $componentAlias key($this->_aliasMap);
  1950. -
  1951.  
  1952. -
  1953.         // get short alias
  1954. -
  1955.         $alias      $this->getTableAlias($componentAlias);
  1956. -
  1957.         $primaryKey $alias '.' $table->getIdentifier();
  1958. -
  1959.  
  1960. -
  1961.         // initialize the base of the subquery
  1962. -
  1963.         $subquery   'SELECT DISTINCT ' $this->_conn->quoteIdentifier($primaryKey);
  1964. -
  1965.  
  1966. -
  1967.         $driverName $this->_conn->getAttribute(Doctrine::ATTR_DRIVER_NAME);
  1968. -
  1969.  
  1970. -
  1971.  
  1972. -
  1973.         // pgsql needs the order by fields to be preserved in select clause
  1974. -
  1975.         if ($driverName == 'pgsql'{
  1976. -
  1977.             foreach ($this->parts['orderby'as $part{
  1978. -
  1979.                 $part trim($part);
  1980. -
  1981.                 $e Doctrine_Tokenizer::bracketExplode($part' ');
  1982. -
  1983.                 $part trim($e[0]);
  1984. -
  1985.     
  1986. -
  1987.                 if (strpos($part'.'=== false{
  1988. -
  1989.                     continue;
  1990. -
  1991.                 }
  1992. -
  1993.                 
  1994. -
  1995.                 // don't add functions
  1996. -
  1997.                 if (strpos($part'('!== false{
  1998. -
  1999.                     continue;
  2000. -
  2001.                 }
  2002. -
  2003.     
  2004. -
  2005.                 // don't add primarykey column (its already in the select clause)
  2006. -
  2007.                 if ($part !== $primaryKey{
  2008. -
  2009.                     $subquery .= ', ' $part;
  2010. -
  2011.                 }
  2012. -
  2013.             }
  2014. -
  2015.         }
  2016. -
  2017.  
  2018. -
  2019.         if ($driverName == 'mysql' || $driverName == 'pgsql'{
  2020. -
  2021.             foreach ($this->_expressionMap as $dqlAlias => $expr{
  2022. -
  2023.                 if (isset($expr[1])) {
  2024. -
  2025.                     $subquery .= ', ' $expr[0' AS ' $this->aggregateMap[$dqlAlias];
  2026. -
  2027.                 }
  2028. -
  2029.             }
  2030. -
  2031.         }
  2032. -
  2033.  
  2034. -
  2035.  
  2036. -
  2037.         $subquery .= ' FROM';
  2038. -
  2039.  
  2040. -
  2041.  
  2042. -
  2043.         foreach ($this->parts['from'as $part{
  2044. -
  2045.             // preserve LEFT JOINs only if needed
  2046. -
  2047.             if (substr($part09=== 'LEFT JOIN'{
  2048. -
  2049.                 $e explode(' '$part);
  2050. -
  2051.                 
  2052. -
  2053.                 if (empty($this->parts['orderby']&& empty($this->parts['where'])) {
  2054. -
  2055.                     continue;
  2056. -
  2057.                 }
  2058. -
  2059.             }
  2060. -
  2061.  
  2062. -
  2063.             $subquery .= ' ' $part;
  2064. -
  2065.         }
  2066. -
  2067.  
  2068. -
  2069.         // all conditions must be preserved in subquery
  2070. -
  2071.         $subquery .= empty($this->parts['where']))?   ' WHERE '    implode(' AND '$this->parts['where'])  '';
  2072. -
  2073.         $subquery .= empty($this->parts['groupby']))' GROUP BY ' implode(', '$this->parts['groupby'])   '';
  2074. -
  2075.         $subquery .= empty($this->parts['having']))?  ' HAVING '   implode(' AND '$this->parts['having']'';
  2076. -
  2077.  
  2078. -
  2079.         $subquery .= empty($this->parts['orderby']))' ORDER BY ' implode(', '$this->parts['orderby'])   '';
  2080. -
  2081.  
  2082. -
  2083.         // add driver specific limit clause
  2084. -
  2085.         $subquery $this->_conn->modifyLimitQuery($subquery$this->parts['limit']$this->parts['offset']);
  2086. -
  2087.  
  2088. -
  2089.         $parts Doctrine_Tokenizer::quoteExplode($subquery' '"'""'");
  2090. -
  2091.  
  2092. -
  2093.         foreach ($parts as $k => $part{
  2094. -
  2095.             if (strpos($part' '!== false{
  2096. -
  2097.                 continue;
  2098. -
  2099.             }
  2100. -
  2101.             
  2102. -
  2103.             $part trim($part"\"'`");
  2104. -
  2105.  
  2106. -
  2107.             if ($this->hasTableAlias($part)) {
  2108. -
  2109.                 $parts[$k$this->_conn->quoteIdentifier($this->generateNewTableAlias($part));
  2110. -
  2111.                 continue;
  2112. -
  2113.             }
  2114. -
  2115.  
  2116. -
  2117.             if (strpos($part'.'=== false{
  2118. -
  2119.                 continue;
  2120. -
  2121.             }
  2122. -
  2123.             preg_match_all("/[a-zA-Z0-9_]+\.[a-z0-9_]+/i"$part$m);
  2124. -
  2125.  
  2126. -
  2127.             foreach ($m[0as $match{
  2128. -
  2129.                 $e explode('.'$match);
  2130. -
  2131.                 $e[0$this->generateNewTableAlias($e[0]);
  2132. -
  2133.  
  2134. -
  2135.                 $parts[$kstr_replace($matchimplode('.'$e)$parts[$k]);
  2136. -
  2137.             }
  2138. -
  2139.         }
  2140. -
  2141.         
  2142. -
  2143.         if ($driverName == 'mysql' || $driverName == 'pgsql'{
  2144. -
  2145.             foreach ($parts as $k => $part{
  2146. -
  2147.                 if (strpos($part"'"!== false{
  2148. -
  2149.                     continue;
  2150. -
  2151.                 }
  2152. -
  2153.                 if (strpos($part'__'== false{
  2154. -
  2155.                     continue;
  2156. -
  2157.                 }
  2158. -
  2159.  
  2160. -
  2161.                 preg_match_all("/[a-zA-Z0-9_]+\_\_[a-z0-9_]+/i"$part$m);
  2162. -
  2163.     
  2164. -
  2165.                 foreach ($m[0as $match{
  2166. -
  2167.                     $e explode('__'$match);
  2168. -
  2169.                     $e[0$this->generateNewTableAlias($e[0]);
  2170. -
  2171.     
  2172. -
  2173.                     $parts[$kstr_replace($matchimplode('__'$e)$parts[$k]);
  2174. -
  2175.                 }
  2176. -
  2177.             }
  2178. -
  2179.         }
  2180. -
  2181.  
  2182. -
  2183.         $subquery implode(' '$parts);
  2184. -
  2185.         return $subquery;
  2186. -
  2187.     }
  2188. -
  2189.     /**
  2190. -
  2191.      * tokenizeQuery
  2192. -
  2193.      * splits the given dql query into an array where keys
  2194. -
  2195.      * represent different query part names and values are
  2196. -
  2197.      * arrays splitted using sqlExplode method
  2198. -
  2199.      *
  2200. -
  2201.      * example:
  2202. -
  2203.      *
  2204. -
  2205.      * parameter:
  2206. -
  2207.      *      $query = "SELECT u.* FROM User u WHERE u.name LIKE ?"
  2208. -
  2209.      * returns:
  2210. -
  2211.      *      array('select' => array('u.*'),
  2212. -
  2213.      *            'from'   => array('User', 'u'),
  2214. -
  2215.      *            'where'  => array('u.name', 'LIKE', '?'))
  2216. -
  2217.      *
  2218. -
  2219.      * @param string $query                 DQL query
  2220. -
  2221.      * @throws Doctrine_Query_Exception     if some generic parsing error occurs
  2222. -
  2223.      * @return array                        an array containing the query string parts
  2224. -
  2225.      */
  2226. -
  2227.     public function tokenizeQuery($query)
  2228. -
  2229.     {
  2230. -
  2231.         $e Doctrine_Tokenizer::sqlExplode($query' ');
  2232. -
  2233.  
  2234. -
  2235.         foreach ($e as $k=>$part{
  2236. -
  2237.             $part trim($part);
  2238. -
  2239.             switch (strtolower($part)) {
  2240. -
  2241.                 case 'delete':
  2242. -
  2243.                 case 'update':
  2244. -
  2245.                 case 'select':
  2246. -
  2247.                 case 'set':
  2248. -
  2249.                 case 'from':
  2250. -
  2251.                 case 'where':
  2252. -
  2253.                 case 'limit':
  2254. -
  2255.                 case 'offset':
  2256. -
  2257.                 case 'having':
  2258. -
  2259.                     $p $part;
  2260. -
  2261.                     $parts[$partarray();
  2262. -
  2263.                 break;
  2264. -
  2265.                 case 'order':
  2266. -
  2267.                 case 'group':
  2268. -
  2269.                     $i ($k 1);
  2270. -
  2271.                     if (isset($e[$i]&& strtolower($e[$i]=== 'by'{
  2272. -
  2273.                         $p $part;
  2274. -
  2275.                         $parts[$partarray();
  2276. -
  2277.                     else {
  2278. -
  2279.                         $parts[$p][$part;
  2280. -
  2281.                     }
  2282. -
  2283.                 break;
  2284. -
  2285.                 case 'by':
  2286. -
  2287.                     continue;
  2288. -
  2289.                 default:
  2290. -
  2291.                     if isset($p))
  2292. -
  2293.                         throw new Doctrine_Query_Exception("Couldn't parse query.");
  2294. -
  2295.  
  2296. -
  2297.                     $parts[$p][$part;
  2298. -
  2299.             }
  2300. -
  2301.         }
  2302. -
  2303.         return $parts;
  2304. -
  2305.     }
  2306. -
  2307.     /**
  2308. -
  2309.      * DQL PARSER
  2310. -
  2311.      * parses a DQL query
  2312. -
  2313.      * first splits the query in parts and then uses individual
  2314. -
  2315.      * parsers for each part
  2316. -
  2317.      *
  2318. -
  2319.      * @param string $query                 DQL query
  2320. -
  2321.      * @param boolean $clear                whether or not to clear the aliases
  2322. -
  2323.      * @throws Doctrine_Query_Exception     if some generic parsing error occurs
  2324. -
  2325.      * @return Doctrine_Query 
  2326. -
  2327.      */
  2328. -
  2329.     public function parseQuery($query$clear true)
  2330. -
  2331.     {
  2332. -
  2333.         if ($clear{
  2334. -
  2335.             $this->clear();
  2336. -
  2337.         }
  2338. -
  2339.  
  2340. -
  2341.         $query trim($query);
  2342. -
  2343.         $query str_replace("\n"' '$query);
  2344. -
  2345.         $query str_replace("\r"' '$query);
  2346. -
  2347.  
  2348. -
  2349.         $parts $this->tokenizeQuery($query);
  2350. -
  2351.  
  2352. -
  2353.         foreach($parts as $k => $part{
  2354. -
  2355.             $part implode(' '$part);
  2356. -
  2357.             $k strtolower($k);
  2358. -
  2359.             switch ($k{
  2360. -
  2361.                 case 'create':
  2362. -
  2363.                     $this->type = self::CREATE;
  2364. -
  2365.                 break;
  2366. -
  2367.                 case 'insert':
  2368. -
  2369.                     $this->type = self::INSERT;
  2370. -
  2371.                 break;
  2372. -
  2373.                 case 'delete':
  2374. -
  2375.                     $this->type = self::DELETE;
  2376. -
  2377.                 break;
  2378. -
  2379.                 case 'select':
  2380. -
  2381.                     $this->type = self::SELECT;
  2382. -
  2383.                     $this->parseQueryPart($k$part);
  2384. -
  2385.                 break;
  2386. -
  2387.                 case 'update':
  2388. -
  2389.                     $this->type = self::UPDATE;
  2390. -
  2391.                     $k 'from';
  2392. -
  2393.                 case 'from':
  2394. -
  2395.                     $this->parseQueryPart($k$part);
  2396. -
  2397.                 break;
  2398. -
  2399.                 case 'set':
  2400. -
  2401.                     $this->parseQueryPart($k$parttrue);
  2402. -
  2403.                 break;
  2404. -
  2405.                 case 'group':
  2406. -
  2407.                 case 'order':
  2408. -
  2409.                     $k .= 'by';
  2410. -
  2411.                 case 'where':
  2412. -
  2413.                 case 'having':
  2414. -
  2415.                 case 'limit':
  2416. -
  2417.                 case 'offset':
  2418. -
  2419.                     $this->parseQueryPart($k$part);
  2420. -
  2421.                 break;
  2422. -
  2423.             }
  2424. -
  2425.         }
  2426. -
  2427.  
  2428. -
  2429.         return $this;
  2430. -
  2431.     }
  2432. -
  2433.  
  2434. -
  2435.     public function load($path$loadFields true
  2436. -
  2437.     {
  2438. -
  2439.         // parse custom join conditions
  2440. -
  2441.         $e explode(' ON '$path);
  2442. -
  2443.  
  2444. -
  2445.         $joinCondition '';
  2446. -
  2447.  
  2448. -
  2449.         if (count($e1{
  2450. -
  2451.             $joinCondition $e[1];
  2452. -
  2453.             $overrideJoin true;
  2454. -
  2455.             $path $e[0];
  2456. -
  2457.         else {
  2458. -
  2459.             $e explode(' WITH '$path);
  2460. -
  2461.  
  2462. -
  2463.             if (count($e1{
  2464. -
  2465.                 $joinCondition $e[1];
  2466. -
  2467.                 $path $e[0];
  2468. -
  2469.             }
  2470. -
  2471.             $overrideJoin false;
  2472. -
  2473.         }
  2474. -
  2475.  
  2476. -
  2477.         $tmp            explode(' '$path);
  2478. -
  2479.         $componentAlias $originalAlias (count($tmp1end($tmpnull;
  2480. -
  2481.  
  2482. -
  2483.         $e preg_split("/[.:]/"$tmp[0]-1);
  2484. -
  2485.  
  2486. -
  2487.         $fullPath $tmp[0];
  2488. -
  2489.         $prevPath '';
  2490. -
  2491.         $fullLength strlen($fullPath);
  2492. -
  2493.  
  2494. -
  2495.         if (isset($this->_aliasMap[$e[0]])) {
  2496. -
  2497.             $table $this->_aliasMap[$e[0]]['table'];
  2498. -
  2499.             $componentAlias $e[0];
  2500. -
  2501.  
  2502. -
  2503.             $prevPath $parent array_shift($e);
  2504. -
  2505.         }
  2506. -
  2507.  
  2508. -
  2509.         foreach ($e as $key => $name{
  2510. -
  2511.             // get length of the previous path
  2512. -
  2513.             $length strlen($prevPath);
  2514. -
  2515.  
  2516. -
  2517.             // build the current component path
  2518. -
  2519.             $prevPath ($prevPath$prevPath '.' $name $name;
  2520. -
  2521.  
  2522. -
  2523.             $delimeter substr($fullPath$length1);
  2524. -
  2525.  
  2526. -
  2527.             // if an alias is not given use the current path as an alias identifier
  2528. -
  2529.             if (strlen($prevPath=== $fullLength && isset($originalAlias)) {
  2530. -
  2531.                 $componentAlias $originalAlias;
  2532. -
  2533.             else {
  2534. -
  2535.                 $componentAlias $prevPath;
  2536. -
  2537.             }
  2538. -
  2539.             
  2540. -
  2541.             // if the current alias already exists, skip it
  2542. -
  2543.             if (isset($this->_aliasMap[$componentAlias])) {
  2544. -
  2545.                 continue;
  2546. -
  2547.             }
  2548. -
  2549.  
  2550. -
  2551.             if isset($table)) {
  2552. -
  2553.                 // process the root of the path
  2554. -
  2555.  
  2556. -
  2557.                 $table $this->loadRoot($name$componentAlias);
  2558. -
  2559.             else {
  2560. -
  2561.                 $join ($delimeter == ':''INNER JOIN ' 'LEFT JOIN ';
  2562. -
  2563.  
  2564. -
  2565.                 $relation $table->getRelation($name);
  2566. -
  2567.                 $localTable $table;
  2568. -
  2569.  
  2570. -
  2571.                 $table    $relation->getTable();
  2572. -
  2573.                 $this->_aliasMap[$componentAliasarray('table'    => $table,
  2574. -
  2575.                                                           'parent'   => $parent,
  2576. -
  2577.                                                           'relation' => $relation);
  2578. -
  2579.                 if $relation->isOneToOne()) {
  2580. -
  2581.                    $this->needsSubquery = true;
  2582. -
  2583.                 }
  2584. -
  2585.  
  2586. -
  2587.                 $localAlias   $this->getTableAlias($parent$table->getTableName());
  2588. -
  2589.                 $foreignAlias $this->getTableAlias($componentAlias$relation->getTable()->getTableName());
  2590. -
  2591.                 $localSql     $this->_conn->quoteIdentifier($table->getTableName()) 
  2592. -
  2593.                               . ' ' 
  2594. -
  2595.                               . $this->_conn->quoteIdentifier($localAlias);
  2596. -
  2597.  
  2598. -
  2599.                 $foreignSql   $this->_conn->quoteIdentifier($relation->getTable()->getTableName()) 
  2600. -
  2601.                               . ' ' 
  2602. -
  2603.                               . $this->_conn->quoteIdentifier($foreignAlias);
  2604. -
  2605.  
  2606. -
  2607.                 $map $relation->getTable()->inheritanceMap;
  2608. -
  2609.   
  2610. -
  2611.                 if $loadFields || empty($map|| $joinCondition{
  2612. -
  2613.                     $this->subqueryAliases[$foreignAlias;
  2614. -
  2615.                 }
  2616. -
  2617.  
  2618. -
  2619.                 if ($relation instanceof Doctrine_Relation_Association{
  2620. -
  2621.                     $asf $relation->getAssociationTable();
  2622. -
  2623.   
  2624. -
  2625.                     $assocTableName $asf->getTableName();
  2626. -
  2627.   
  2628. -
  2629.                     if$loadFields || empty($map|| $joinCondition{
  2630. -
  2631.                         $this->subqueryAliases[$assocTableName;
  2632. -
  2633.                     }
  2634. -
  2635.  
  2636. -
  2637.                     $assocPath $prevPath '.' $asf->getComponentName();
  2638. -
  2639.   
  2640. -
  2641.                     $assocAlias $this->getTableAlias($assocPath$asf->getTableName());
  2642. -
  2643.  
  2644. -
  2645.                     $queryPart $join $assocTableName ' ' $assocAlias;
  2646. -
  2647.  
  2648. -
  2649.                     $queryPart .= ' ON ' $localAlias
  2650. -
  2651.                                 . '.'
  2652. -
  2653.                                 . $localTable->getIdentifier()
  2654. -
  2655.                                 . ' = '
  2656. -
  2657.                                 . $assocAlias '.' $relation->getLocal();
  2658. -
  2659.  
  2660. -
  2661.                     if ($relation->isEqual()) {
  2662. -
  2663.                         // equal nest relation needs additional condition
  2664. -
  2665.                         $queryPart .= ' OR ' $localAlias
  2666. -
  2667.                                     . '.'
  2668. -
  2669.                                     . $table->getColumnName($table->getIdentifier())
  2670. -
  2671.                                     . ' = '
  2672. -
  2673.                                     . $assocAlias '.' $relation->getForeign();
  2674. -
  2675.   
  2676. -
  2677.                     }
  2678. -
  2679.  
  2680. -
  2681.                     $this->parts['from'][$queryPart;
  2682. -
  2683.  
  2684. -
  2685.                     $queryPart $join $foreignSql;
  2686. -
  2687.  
  2688. -
  2689.                     if $overrideJoin{
  2690. -
  2691.                         $queryPart .= ' ON ';
  2692. -
  2693.  
  2694. -
  2695.                         if ($relation->isEqual()) {
  2696. -
  2697.                             $queryPart .= '(';
  2698. -
  2699.                         
  2700. -
  2701.  
  2702. -
  2703.                         $queryPart .= $this->_conn->quoteIdentifier($foreignAlias '.' $relation->getTable()->getIdentifier())
  2704. -
  2705.                                     . ' = '
  2706. -
  2707.                                     . $this->_conn->quoteIdentifier($assocAlias '.' $relation->getForeign());
  2708. -
  2709.     
  2710. -
  2711.                         if ($relation->isEqual()) {
  2712. -
  2713.                             $queryPart .= ' OR '
  2714. -
  2715.                                         . $this->_conn->quoteIdentifier($foreignAlias '.' $table->getColumnName($table->getIdentifier()))
  2716. -
  2717.                                         . ' = ' 
  2718. -
  2719.                                         . $this->_conn->quoteIdentifier($assocAlias '.' $relation->getLocal())
  2720. -
  2721.                                         . ') AND ' 
  2722. -
  2723.                                         . $this->_conn->quoteIdentifier($foreignAlias '.' $table->getIdentifier())
  2724. -
  2725.                                         . ' != '  
  2726. -
  2727.                                         . $this->_conn->quoteIdentifier($localAlias '.' $table->getIdentifier());
  2728. -
  2729.                         }
  2730. -
  2731.                     }
  2732. -
  2733.                 else {
  2734. -
  2735.  
  2736. -
  2737.                     $queryPart $join $foreignSql;
  2738. -
  2739.                     
  2740. -
  2741.                     if $overrideJoin{
  2742. -
  2743.                         $queryPart .= ' ON '
  2744. -
  2745.                                    . $this->_conn->quoteIdentifier($localAlias '.' $relation->getLocal())
  2746. -
  2747.                                    . ' = ' 
  2748. -
  2749.                                    . $this->_conn->quoteIdentifier($foreignAlias '.' $relation->getForeign());
  2750. -
  2751.                     }
  2752. -
  2753.  
  2754. -
  2755.                 }
  2756. -
  2757.                 $this->parts['from'][$componentAlias$queryPart;
  2758. -
  2759.                 if empty($joinCondition)) {
  2760. -
  2761.                     $this->_pendingJoinConditions[$componentAlias$joinCondition;
  2762. -
  2763.                 }
  2764. -
  2765.             }
  2766. -
  2767.             if ($loadFields{
  2768. -
  2769.                                  
  2770. -
  2771.                 $restoreState false;
  2772. -
  2773.                 // load fields if necessary
  2774. -
  2775.                 if ($loadFields && empty($this->pendingFields
  2776. -
  2777.                     && empty($this->pendingAggregates)
  2778. -
  2779.                     && empty($this->pendingSubqueries)) {
  2780. -
  2781.  
  2782. -
  2783.                     $this->pendingFields[$componentAliasarray('*');
  2784. -
  2785.  
  2786. -
  2787.                     $restoreState true;
  2788. -
  2789.                 }
  2790. -
  2791.  
  2792. -
  2793.                 if(isset($this->pendingFields[$componentAlias])) {
  2794. -
  2795.                     $this->processPendingFields($componentAlias);
  2796. -
  2797.                 }
  2798. -
  2799.  
  2800. -
  2801.                 if ($restoreState{
  2802. -
  2803.                     $this->pendingFields = array();
  2804. -
  2805.                     $this->pendingAggregates = array();
  2806. -
  2807.                 }
  2808. -
  2809.             }
  2810. -
  2811.             $parent $prevPath;
  2812. -
  2813.         }
  2814. -
  2815.  
  2816. -
  2817.         return $this->_aliasMap[$componentAlias];
  2818. -
  2819.     }
  2820. -
  2821.  
  2822. -
  2823.     /**
  2824. -
  2825.      * loadRoot
  2826. -
  2827.      *
  2828. -
  2829.      * @param string $name 
  2830. -
  2831.      * @param string $componentAlias 
  2832. -
  2833.      */
  2834. -
  2835.     public function loadRoot($name$componentAlias)
  2836. -
  2837.     {
  2838. -
  2839.         // get the connection for the component
  2840. -
  2841.         $this->_conn = Doctrine_Manager::getInstance()
  2842. -
  2843.                       ->getConnectionForComponent($name);
  2844. -
  2845.  
  2846. -
  2847.         $table $this->_conn->getTable($name);
  2848. -
  2849.         $tableName $table->getTableName();
  2850. -
  2851.  
  2852. -
  2853.         // get the short alias for this table
  2854. -
  2855.         $tableAlias $this->getTableAlias($componentAlias$tableName);
  2856. -
  2857.         // quote table name
  2858. -
  2859.         $queryPart $this->_conn->quoteIdentifier($tableName);
  2860. -
  2861.  
  2862. -
  2863.         if ($this->type === self::SELECT{
  2864. -
  2865.             $queryPart .= ' ' $this->_conn->quoteIdentifier($tableAlias);
  2866. -
  2867.         }
  2868. -
  2869.  
  2870. -
  2871.         $this->parts['from'][$queryPart;
  2872. -
  2873.         $this->tableAliases[$tableAlias]  $componentAlias;
  2874. -
  2875.         $this->_aliasMap[$componentAliasarray('table' => $table);
  2876. -
  2877.         
  2878. -
  2879.         return $table;
  2880. -
  2881.     }
  2882. -
  2883.     /**
  2884. -
  2885.       * count
  2886. -
  2887.       * fetches the count of the query
  2888. -
  2889.       *
  2890. -
  2891.       * This method executes the main query without all the
  2892. -
  2893.      * selected fields, ORDER BY part, LIMIT part and OFFSET part.
  2894. -
  2895.      *
  2896. -
  2897.      * Example:
  2898. -
  2899.      * Main query:
  2900. -
  2901.      *      SELECT u.*, p.phonenumber FROM User u
  2902. -
  2903.      *          LEFT JOIN u.Phonenumber p
  2904. -
  2905.      *          WHERE p.phonenumber = '123 123' LIMIT 10
  2906. -
  2907.      *
  2908. -
  2909.      * The modified DQL query:
  2910. -
  2911.      *      SELECT COUNT(DISTINCT u.id) FROM User u
  2912. -
  2913.      *          LEFT JOIN u.Phonenumber p
  2914. -
  2915.      *          WHERE p.phonenumber = '123 123'
  2916. -
  2917.      *
  2918. -
  2919.      * @param array $params        an array of prepared statement parameters
  2920. -
  2921.      * @return integer             the count of this query
  2922. -
  2923.      */
  2924. -
  2925.      public function count($params array())
  2926. -
  2927.      {
  2928. -
  2929.          $this->getQuery();
  2930. -
  2931.  
  2932. -
  2933.          // initialize temporary variables
  2934. -
  2935.          $where  $this->parts['where'];
  2936. -
  2937.          $having $this->parts['having'];
  2938. -
  2939.          $groupby $this->parts['groupby'];
  2940. -
  2941.          $map    reset($this->_aliasMap);
  2942. -
  2943.          $componentAlias key($this->_aliasMap);
  2944. -
  2945.          $table $map['table'];
  2946. -
  2947.  
  2948. -
  2949.          // build the query base
  2950. -
  2951.          $q  'SELECT COUNT(DISTINCT ' $this->getTableAlias($componentAlias)
  2952. -
  2953.              . '.' implode(','(array) $table->getIdentifier())
  2954. -
  2955.              . ') AS num_results';
  2956. -
  2957.  
  2958. -
  2959.          foreach ($this->parts['select'as $field{
  2960. -
  2961.              if (strpos($field'('!== false{
  2962. -
  2963.                  $q .= ', ' $field;
  2964. -
  2965.              }
  2966. -
  2967.          }
  2968. -
  2969.  
  2970. -
  2971.          $q .= ' FROM ' $this->buildFromPart();
  2972. -
  2973.  
  2974. -
  2975.          // append column aggregation inheritance (if needed)
  2976. -
  2977.          $string $this->applyInheritance();
  2978. -
  2979.  
  2980. -
  2981.          if empty($string)) {
  2982. -
  2983.              $where[$string;
  2984. -
  2985.          }
  2986. -
  2987.          // append conditions
  2988. -
  2989.          $q .= empty($where)) ?  ' WHERE '  implode(' AND '$where'';
  2990. -
  2991.          $q .= empty($groupby)) ?  ' GROUP BY '  implode(', '$groupby'';
  2992. -
  2993.          $q .= empty($having)) ' HAVING ' implode(' AND '$having)'';
  2994. -
  2995.  
  2996. -
  2997.          if is_array($params)) {
  2998. -
  2999.              $params array($params);
  3000. -
  3001.          }
  3002. -
  3003.          // append parameters
  3004. -
  3005.          $params array_merge($this->_params$params);
  3006. -
  3007.  
  3008. -
  3009.          $results $this->getConnection()->fetchAll($q$params);
  3010. -
  3011.  
  3012. -
  3013.          if (count($results1{
  3014. -
  3015.            $count 0;
  3016. -
  3017.            foreach ($results as $result{
  3018. -
  3019.              $count += $result['num_results'];
  3020. -
  3021.            }
  3022. -
  3023.          else {
  3024. -
  3025.            $count = isset($results[0]$results[0]['num_results']:0;
  3026. -
  3027.          }
  3028. -
  3029.  
  3030. -
  3031.          return (int) $count;
  3032. -
  3033.      }
  3034. -
  3035.  
  3036. -
  3037.     /**
  3038. -
  3039.      * query
  3040. -
  3041.      * query the database with DQL (Doctrine Query Language)
  3042. -
  3043.      *
  3044. -
  3045.      * @param string $query     DQL query
  3046. -
  3047.      * @param array $params     prepared statement parameters
  3048. -
  3049.      * @see Doctrine::FETCH_* constants
  3050. -
  3051.      * @return mixed 
  3052. -
  3053.      */
  3054. -
  3055.     public function query($query$params array())
  3056. -
  3057.     {
  3058. -
  3059.         $this->parseQuery($query);
  3060. -
  3061.  
  3062. -
  3063.         return $this->execute($params);
  3064. -
  3065.     }
  3066. -
  3067.     
  3068. -
  3069.     public function copy(Doctrine_Query $query null)
  3070. -
  3071.     {
  3072. -
  3073.         if $query{
  3074. -
  3075.             $query $this;
  3076. -
  3077.         }
  3078. -
  3079.         
  3080. -
  3081.         $new new Doctrine_Query();
  3082. -
  3083.         $new->_dqlParts $query->_dqlParts;
  3084. -
  3085.         $new->_hydrationMode $query->_hydrationMode;
  3086. -
  3087.       
  3088. -
  3089.         return $new;
  3090. -
  3091.     }
  3092. -
  3093.     
  3094. -
  3095.     /**
  3096. -
  3097.      * Frees the resources used by the query object. It especially breaks a
  3098. -
  3099.      * cyclic reference between the query object and it's parsers. This enables
  3100. -
  3101.      * PHP's current GC to reclaim the memory.
  3102. -
  3103.      * This method can therefore be used to reduce memory usage when creating a lot
  3104. -
  3105.      * of query objects during a request.
  3106. -
  3107.      *
  3108. -
  3109.      * @return Doctrine_Query   this object
  3110. -
  3111.      */
  3112. -
  3113.     public function free(
  3114. -
  3115.     {
  3116. -
  3117.         $this->reset();
  3118. -
  3119.         $this->_parsers = array();
  3120. -
  3121.         $this->_dqlParts = array();
  3122. -
  3123.         $this->_enumParams = array();
  3124. -
  3125.     }
  3126. -
  3127. }
  3128. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryAbstract.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryAbstract.php.html deleted file mode 100644 index 885f4d89f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryAbstract.php.html +++ /dev/null @@ -1,364 +0,0 @@ - -
-

Source for file Abstract.php

-

Documentation is available at Abstract.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Query.php 1393 2007-05-19 17:49:16Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Hydrate');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Abstract
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1393 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. abstract class Doctrine_Query_Abstract extends Doctrine_Hydrate
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * addSelect
  72. -
  73.      * adds fields to the SELECT part of the query
  74. -
  75.      *
  76. -
  77.      * @param string $select        Query SELECT part
  78. -
  79.      * @return Doctrine_Query 
  80. -
  81.      */
  82. -
  83.     public function addSelect($select)
  84. -
  85.     {
  86. -
  87.         return $this->parseQueryPart('select'$selecttrue);
  88. -
  89.     }
  90. -
  91.     /**
  92. -
  93.      * addFrom
  94. -
  95.      * adds fields to the FROM part of the query
  96. -
  97.      *
  98. -
  99.      * @param string $from        Query FROM part
  100. -
  101.      * @return Doctrine_Query 
  102. -
  103.      */
  104. -
  105.     public function addFrom($from)
  106. -
  107.     {
  108. -
  109.         return $this->parseQueryPart('from'$fromtrue);
  110. -
  111.     }
  112. -
  113.     /**
  114. -
  115.      * addWhere
  116. -
  117.      * adds conditions to the WHERE part of the query
  118. -
  119.      *
  120. -
  121.      * @param string $where         Query WHERE part
  122. -
  123.      * @param mixed $params         an array of parameters or a simple scalar
  124. -
  125.      * @return Doctrine_Query 
  126. -
  127.      */
  128. -
  129.     public function addWhere($where$params array())
  130. -
  131.     {
  132. -
  133.         if (is_array($params)) {
  134. -
  135.             $this->_params = array_merge($this->_params$params);
  136. -
  137.         else {
  138. -
  139.             $this->_params[$params;
  140. -
  141.         }
  142. -
  143.         return $this->parseQueryPart('where'$wheretrue);
  144. -
  145.     }
  146. -
  147.     /**
  148. -
  149.      * whereIn
  150. -
  151.      * adds IN condition to the query WHERE part
  152. -
  153.      *
  154. -
  155.      * @param string $expr 
  156. -
  157.      * @param mixed $params         an array of parameters or a simple scalar
  158. -
  159.      * @return Doctrine_Query 
  160. -
  161.      */
  162. -
  163.     public function whereIn($expr$params array())
  164. -
  165.     {
  166. -
  167.         $params = (array) $params;
  168. -
  169.         $a array();
  170. -
  171.         foreach ($params as $k => $value{
  172. -
  173.             if ($value instanceof Doctrine_Expression{
  174. -
  175.                 $value $value->getSql();
  176. -
  177.                 unset($values[$k]);
  178. -
  179.             else {
  180. -
  181.                 $value '?';          
  182. -
  183.             }
  184. -
  185.             $a[$value;
  186. -
  187.         }
  188. -
  189.  
  190. -
  191.         $this->_params = array_merge($this->_params$params);
  192. -
  193.  
  194. -
  195.         $where $expr ' IN (' implode(', '$a')';
  196. -
  197.  
  198. -
  199.         return $this->parseQueryPart('where'$wheretrue);
  200. -
  201.     }
  202. -
  203.     /**
  204. -
  205.      * addGroupBy
  206. -
  207.      * adds fields to the GROUP BY part of the query
  208. -
  209.      *
  210. -
  211.      * @param string $groupby       Query GROUP BY part
  212. -
  213.      * @return Doctrine_Query 
  214. -
  215.      */
  216. -
  217.     public function addGroupBy($groupby)
  218. -
  219.     {
  220. -
  221.         return $this->parseQueryPart('groupby'$groupbytrue);
  222. -
  223.     }
  224. -
  225.     /**
  226. -
  227.      * addHaving
  228. -
  229.      * adds conditions to the HAVING part of the query
  230. -
  231.      *
  232. -
  233.      * @param string $having        Query HAVING part
  234. -
  235.      * @param mixed $params         an array of parameters or a simple scalar
  236. -
  237.      * @return Doctrine_Query 
  238. -
  239.      */
  240. -
  241.     public function addHaving($having$params array())
  242. -
  243.     {
  244. -
  245.         if (is_array($params)) {
  246. -
  247.             $this->_params = array_merge($this->_params$params);
  248. -
  249.         else {
  250. -
  251.             $this->_params[$params;
  252. -
  253.         }
  254. -
  255.         return $this->parseQueryPart('having'$havingtrue);
  256. -
  257.     }
  258. -
  259.     /**
  260. -
  261.      * addOrderBy
  262. -
  263.      * adds fields to the ORDER BY part of the query
  264. -
  265.      *
  266. -
  267.      * @param string $orderby       Query ORDER BY part
  268. -
  269.      * @return Doctrine_Query 
  270. -
  271.      */
  272. -
  273.     public function addOrderBy($orderby)
  274. -
  275.     {
  276. -
  277.         return $this->parseQueryPart('orderby'$orderbytrue);
  278. -
  279.     }
  280. -
  281.     /**
  282. -
  283.      * select
  284. -
  285.      * sets the SELECT part of the query
  286. -
  287.      *
  288. -
  289.      * @param string $select        Query SELECT part
  290. -
  291.      * @return Doctrine_Query 
  292. -
  293.      */
  294. -
  295.     public function select($select)
  296. -
  297.     {
  298. -
  299.         return $this->parseQueryPart('select'$select);
  300. -
  301.     }
  302. -
  303.     /**
  304. -
  305.      * distinct
  306. -
  307.      * Makes the query SELECT DISTINCT.
  308. -
  309.      *
  310. -
  311.      * @param bool $flag            Whether or not the SELECT is DISTINCT (default true).
  312. -
  313.      * @return Doctrine_Query 
  314. -
  315.      */
  316. -
  317.     public function distinct($flag true)
  318. -
  319.     {   
  320. -
  321.         $this->parts['distinct'= (bool) $flag;
  322. -
  323.  
  324. -
  325.         return $this;
  326. -
  327.     }
  328. -
  329.  
  330. -
  331.     /**
  332. -
  333.      * forUpdate
  334. -
  335.      * Makes the query SELECT FOR UPDATE.
  336. -
  337.      *
  338. -
  339.      * @param bool $flag            Whether or not the SELECT is FOR UPDATE (default true).
  340. -
  341.      * @return Doctrine_Query 
  342. -
  343.      */
  344. -
  345.     public function forUpdate($flag true)
  346. -
  347.     {
  348. -
  349.         $this->parts[self::FOR_UPDATE= (bool) $flag;
  350. -
  351.  
  352. -
  353.         return $this;
  354. -
  355.     }
  356. -
  357.     /**
  358. -
  359.      * delete
  360. -
  361.      * sets the query type to DELETE
  362. -
  363.      *
  364. -
  365.      * @return Doctrine_Query 
  366. -
  367.      */
  368. -
  369.     public function delete()
  370. -
  371.     {
  372. -
  373.         $this->type = self::DELETE;
  374. -
  375.  
  376. -
  377.         return $this;
  378. -
  379.     }
  380. -
  381.     /**
  382. -
  383.      * update
  384. -
  385.      * sets the UPDATE part of the query
  386. -
  387.      *
  388. -
  389.      * @param string $update        Query UPDATE part
  390. -
  391.      * @return Doctrine_Query 
  392. -
  393.      */
  394. -
  395.     public function update($update)
  396. -
  397.     {
  398. -
  399.         $this->type = self::UPDATE;
  400. -
  401.  
  402. -
  403.         return $this->parseQueryPart('from'$update);
  404. -
  405.     }
  406. -
  407.     /**
  408. -
  409.      * set
  410. -
  411.      * sets the SET part of the query
  412. -
  413.      *
  414. -
  415.      * @param string $update        Query UPDATE part
  416. -
  417.      * @return Doctrine_Query 
  418. -
  419.      */
  420. -
  421.     public function set($key$value$params null)
  422. -
  423.     {
  424. -
  425.         if (is_array($key)) {
  426. -
  427.             foreach ($key as $k => $v{
  428. -
  429.                 $this->set($k'?'array($v));                               
  430. -
  431.             }
  432. -
  433.         else {
  434. -
  435.             if ($params !== null{
  436. -
  437.                 if (is_array($params)) {
  438. -
  439.                     $this->_params = array_merge($this->_params$params);
  440. -
  441.                 else {
  442. -
  443.                     $this->_params[$params;
  444. -
  445.                 }
  446. -
  447.             }
  448. -
  449.             return $this->parseQueryPart('set'$key ' = ' $valuetrue);
  450. -
  451.         }
  452. -
  453.     }
  454. -
  455.     /**
  456. -
  457.      * from
  458. -
  459.      * sets the FROM part of the query
  460. -
  461.      *
  462. -
  463.      * @param string $from          Query FROM part
  464. -
  465.      * @return Doctrine_Query 
  466. -
  467.      */
  468. -
  469.     public function from($from)
  470. -
  471.     {
  472. -
  473.         return $this->parseQueryPart('from'$from);
  474. -
  475.     }
  476. -
  477.     /**
  478. -
  479.      * innerJoin
  480. -
  481.      * appends an INNER JOIN to the FROM part of the query
  482. -
  483.      *
  484. -
  485.      * @param string $join         Query INNER JOIN
  486. -
  487.      * @return Doctrine_Query 
  488. -
  489.      */
  490. -
  491.     public function innerJoin($join)
  492. -
  493.     {
  494. -
  495.         return $this->parseQueryPart('from''INNER JOIN ' $jointrue);
  496. -
  497.     }
  498. -
  499.     /**
  500. -
  501.      * leftJoin
  502. -
  503.      * appends a LEFT JOIN to the FROM part of the query
  504. -
  505.      *
  506. -
  507.      * @param string $join         Query LEFT JOIN
  508. -
  509.      * @return Doctrine_Query 
  510. -
  511.      */
  512. -
  513.     public function leftJoin($join)
  514. -
  515.     {
  516. -
  517.         return $this->parseQueryPart('from''LEFT JOIN ' $jointrue);
  518. -
  519.     }
  520. -
  521.     /**
  522. -
  523.      * groupBy
  524. -
  525.      * sets the GROUP BY part of the query
  526. -
  527.      *
  528. -
  529.      * @param string $groupby      Query GROUP BY part
  530. -
  531.      * @return Doctrine_Query 
  532. -
  533.      */
  534. -
  535.     public function groupBy($groupby)
  536. -
  537.     {
  538. -
  539.         return $this->parseQueryPart('groupby'$groupby);
  540. -
  541.     }
  542. -
  543.     /**
  544. -
  545.      * where
  546. -
  547.      * sets the WHERE part of the query
  548. -
  549.      *
  550. -
  551.      * @param string $join         Query WHERE part
  552. -
  553.      * @param mixed $params        an array of parameters or a simple scalar
  554. -
  555.      * @return Doctrine_Query 
  556. -
  557.      */
  558. -
  559.     public function where($where$params array())
  560. -
  561.     {
  562. -
  563.         //$this->_params = array();
  564. -
  565.         if (is_array($params)) {
  566. -
  567.             $this->_params = $params;
  568. -
  569.         else {
  570. -
  571.             $this->_params[$params;
  572. -
  573.         }
  574. -
  575.  
  576. -
  577.         return $this->parseQueryPart('where'$where);
  578. -
  579.     }
  580. -
  581.     /**
  582. -
  583.      * having
  584. -
  585.      * sets the HAVING part of the query
  586. -
  587.      *
  588. -
  589.      * @param string $having       Query HAVING part
  590. -
  591.      * @param mixed $params        an array of parameters or a simple scalar
  592. -
  593.      * @return Doctrine_Query 
  594. -
  595.      */
  596. -
  597.     public function having($having$params array())
  598. -
  599.     {
  600. -
  601.         $this->_params = array();
  602. -
  603.         if (is_array($params)) {
  604. -
  605.             $this->_params = $params;
  606. -
  607.         else {
  608. -
  609.             $this->_params[$params;
  610. -
  611.         }
  612. -
  613.         
  614. -
  615.         return $this->parseQueryPart('having'$having);
  616. -
  617.     }
  618. -
  619.     /**
  620. -
  621.      * orderBy
  622. -
  623.      * sets the ORDER BY part of the query
  624. -
  625.      *
  626. -
  627.      * @param string $orderby      Query ORDER BY part
  628. -
  629.      * @return Doctrine_Query 
  630. -
  631.      */
  632. -
  633.     public function orderBy($orderby)
  634. -
  635.     {
  636. -
  637.         return $this->parseQueryPart('orderby'$orderby);
  638. -
  639.     }
  640. -
  641.     /**
  642. -
  643.      * limit
  644. -
  645.      * sets the Query query limit
  646. -
  647.      *
  648. -
  649.      * @param integer $limit        limit to be used for limiting the query results
  650. -
  651.      * @return Doctrine_Query 
  652. -
  653.      */
  654. -
  655.     public function limit($limit)
  656. -
  657.     {
  658. -
  659.         return $this->parseQueryPart('limit'$limit);
  660. -
  661.     }
  662. -
  663.     /**
  664. -
  665.      * offset
  666. -
  667.      * sets the Query query offset
  668. -
  669.      *
  670. -
  671.      * @param integer $offset       offset to be used for paginating the query
  672. -
  673.      * @return Doctrine_Query 
  674. -
  675.      */
  676. -
  677.     public function offset($offset)
  678. -
  679.     {
  680. -
  681.         return $this->parseQueryPart('offset'$offset);
  682. -
  683.     }
  684. -
  685.     
  686. -
  687.     /**
  688. -
  689.      * parseQueryPart
  690. -
  691.      * parses given DQL query part
  692. -
  693.      *
  694. -
  695.      * @param string $queryPartName     the name of the query part
  696. -
  697.      * @param string $queryPart         query part to be parsed
  698. -
  699.      * @param boolean $append           whether or not to append the query part to its stack
  700. -
  701.      *                                   if false is given, this method will overwrite
  702. -
  703.      *                                   the given query part stack with $queryPart
  704. -
  705.      * @return Doctrine_Query           this object
  706. -
  707.      */
  708. -
  709.     abstract public function parseQueryPart($queryPartName$queryPart$append false);
  710. -
  711. }
  712. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCheck.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCheck.php.html deleted file mode 100644 index 328183639..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCheck.php.html +++ /dev/null @@ -1,167 +0,0 @@ - -
-

Source for file Check.php

-

Documentation is available at Check.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: From.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Check
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var Doctrine_Table $table           Doctrine_Table object
  71. -
  72.      */
  73. -
  74.     protected $table;
  75. -
  76.     /**
  77. -
  78.      * @var string $sql                     database specific sql CHECK constraint definition
  79. -
  80.      *                                       parsed from the given dql CHECK definition
  81. -
  82.      */
  83. -
  84.     protected $sql;
  85. -
  86.     /**
  87. -
  88.      * @param Doctrine_Table|string$table  Doctrine_Table object
  89. -
  90.      */
  91. -
  92.     public function __construct($table)
  93. -
  94.     {
  95. -
  96.         if ($table instanceof Doctrine_Table)) {
  97. -
  98.             $table Doctrine_Manager::getInstance()
  99. -
  100.                         ->getCurrentConnection()
  101. -
  102.                         ->getTable($table);
  103. -
  104.         }
  105. -
  106.         $this->table = $table;
  107. -
  108.     }
  109. -
  110.     /**
  111. -
  112.      * getTable
  113. -
  114.      * returns the table object associated with this object
  115. -
  116.      *
  117. -
  118.      * @return Doctrine_Connection 
  119. -
  120.      */
  121. -
  122.     public function getTable()
  123. -
  124.     {
  125. -
  126.         return $this->table;
  127. -
  128.     }
  129. -
  130.     /**
  131. -
  132.      * parse
  133. -
  134.      *
  135. -
  136.      * @param string $dql       DQL CHECK constraint definition
  137. -
  138.      * @return string 
  139. -
  140.      */
  141. -
  142.     public function parse($dql)
  143. -
  144.     {
  145. -
  146.         $this->sql = $this->parseClause($dql);
  147. -
  148.     }
  149. -
  150.     /**
  151. -
  152.      * parseClause
  153. -
  154.      *
  155. -
  156.      * @param string $alias     component alias
  157. -
  158.      * @param string $field     the field name
  159. -
  160.      * @param mixed $value      the value of the field
  161. -
  162.      * @return void 
  163. -
  164.      */
  165. -
  166.     public function parseClause($dql)
  167. -
  168.     {
  169. -
  170.         $parts Doctrine_Tokenizer::sqlExplode($dql' AND ');
  171. -
  172.  
  173. -
  174.         if (count($parts1{
  175. -
  176.             $ret array();
  177. -
  178.             foreach ($parts as $part{
  179. -
  180.                 $ret[$this->parseSingle($part);
  181. -
  182.             }
  183. -
  184.  
  185. -
  186.             $r implode(' AND '$ret);
  187. -
  188.         else {
  189. -
  190.             $parts Doctrine_Tokenizer::quoteExplode($dql' OR ');
  191. -
  192.             if (count($parts1{
  193. -
  194.                 $ret array();
  195. -
  196.                 foreach ($parts as $part{
  197. -
  198.                     $ret[$this->parseClause($part);
  199. -
  200.                 }
  201. -
  202.  
  203. -
  204.                 $r implode(' OR '$ret);
  205. -
  206.             else {
  207. -
  208.                 $ret $this->parseSingle($dql);
  209. -
  210.                 return $ret;
  211. -
  212.             }
  213. -
  214.         }
  215. -
  216.         return '(' $r ')';
  217. -
  218.     }
  219. -
  220.     public function parseSingle($part)
  221. -
  222.     {
  223. -
  224.         $e explode(' '$part);
  225. -
  226.         
  227. -
  228.         $e[0$this->parseFunction($e[0]);
  229. -
  230.  
  231. -
  232.         switch ($e[1]{
  233. -
  234.             case '>':
  235. -
  236.             case '<':
  237. -
  238.             case '=':
  239. -
  240.             case '!=':
  241. -
  242.             case '<>':
  243. -
  244.  
  245. -
  246.             break;
  247. -
  248.             default:
  249. -
  250.                 throw new Doctrine_Query_Exception('Unknown operator ' $e[1]);
  251. -
  252.         }
  253. -
  254.  
  255. -
  256.         return implode(' '$e);
  257. -
  258.     }
  259. -
  260.     public function parseFunction($dql
  261. -
  262.     {
  263. -
  264.         if (($pos strpos($dql'(')) !== false{
  265. -
  266.             $func  substr($dql0$pos);
  267. -
  268.             $value substr($dql($pos 1)-1);
  269. -
  270.             
  271. -
  272.             $expr  $this->table->getConnection()->expression;
  273. -
  274.  
  275. -
  276.             if method_exists($expr$func)) {
  277. -
  278.                 throw new Doctrine_Query_Exception('Unknown function ' $func);
  279. -
  280.             }
  281. -
  282.             
  283. -
  284.             $func  $expr->$func($value);
  285. -
  286.         }
  287. -
  288.         return $func;
  289. -
  290.     }
  291. -
  292.     /**
  293. -
  294.      * getSql
  295. -
  296.      *
  297. -
  298.      * returns database specific sql CHECK constraint definition
  299. -
  300.      * parsed from the given dql CHECK definition
  301. -
  302.      *
  303. -
  304.      * @return string 
  305. -
  306.      */
  307. -
  308.     public function getSql()
  309. -
  310.     {
  311. -
  312.         return $this->sql;
  313. -
  314.     }
  315. -
  316. }
  317. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCondition.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCondition.php.html deleted file mode 100644 index 2422bf1d1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryCondition.php.html +++ /dev/null @@ -1,120 +0,0 @@ - -
-

Source for file Condition.php

-

Documentation is available at Condition.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Condition.php 1479 2007-05-24 19:47:28Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Part');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Condition
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1479 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * DQL CONDITION PARSER
  71. -
  72.      * parses the join condition/where/having part of the query string
  73. -
  74.      *
  75. -
  76.      * @param string $str 
  77. -
  78.      * @return string 
  79. -
  80.      */
  81. -
  82.     public function parse($str)
  83. -
  84.     {
  85. -
  86.         $tmp trim($str);
  87. -
  88.  
  89. -
  90.         $parts Doctrine_Tokenizer::bracketExplode($strarray(' \&\& '' AND ')'('')');
  91. -
  92.  
  93. -
  94.         if (count($parts1{
  95. -
  96.             $ret array();
  97. -
  98.             foreach ($parts as $part{
  99. -
  100.                 $part Doctrine_Tokenizer::bracketTrim($part'('')');
  101. -
  102.                 $ret[$this->parse($part);
  103. -
  104.             }
  105. -
  106.             $r implode(' AND '$ret);
  107. -
  108.         else {
  109. -
  110.  
  111. -
  112.             $parts Doctrine_Tokenizer::bracketExplode($strarray(' \|\| '' OR ')'('')');
  113. -
  114.             if (count($parts1{
  115. -
  116.                 $ret array();
  117. -
  118.                 foreach ($parts as $part{
  119. -
  120.                     $part Doctrine_Tokenizer::bracketTrim($part'('')');
  121. -
  122.                     $ret[$this->parse($part);
  123. -
  124.                 }
  125. -
  126.                 $r implode(' OR '$ret);
  127. -
  128.             else {
  129. -
  130.                 if (substr($parts[0],0,1== '(' && substr($parts[0]-1== ')'{
  131. -
  132.                     return $this->parse(substr($parts[0]1-1));
  133. -
  134.                 else {
  135. -
  136.                     return $this->load($parts[0]);
  137. -
  138.                 }
  139. -
  140.             }
  141. -
  142.         }
  143. -
  144.  
  145. -
  146.         return '(' $r ')';
  147. -
  148.     }
  149. -
  150.  
  151. -
  152.  
  153. -
  154.  
  155. -
  156.     /**
  157. -
  158.      * parses a literal value and returns the parsed value
  159. -
  160.      *
  161. -
  162.      * boolean literals are parsed to integers
  163. -
  164.      * components are parsed to associated table aliases
  165. -
  166.      *
  167. -
  168.      * @param string $value         literal value to be parsed
  169. -
  170.      * @return string 
  171. -
  172.      */
  173. -
  174.     public function parseLiteralValue($value)
  175. -
  176.     {
  177. -
  178.         // check that value isn't a string
  179. -
  180.         if (strpos($value'\''=== false{
  181. -
  182.             // parse booleans
  183. -
  184.             $value $this->query->getConnection()
  185. -
  186.                      ->dataDict->parseBoolean($value);
  187. -
  188.  
  189. -
  190.             $a explode('.'$value);
  191. -
  192.  
  193. -
  194.             if (count($a1{
  195. -
  196.             // either a float or a component..
  197. -
  198.  
  199. -
  200.                 if is_numeric($a[0])) {
  201. -
  202.                     // a component found
  203. -
  204.                     $value $this->query->getTableAlias($a[0])'.' $a[1];
  205. -
  206.                 }
  207. -
  208.             }
  209. -
  210.         else {
  211. -
  212.             // string literal found
  213. -
  214.         }
  215. -
  216.  
  217. -
  218.         return $value;
  219. -
  220.     }
  221. -
  222. }
  223. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryException.php.html deleted file mode 100644 index 3c63d8f56..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilter.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilter.php.html deleted file mode 100644 index 621ace67a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilter.php.html +++ /dev/null @@ -1,70 +0,0 @@ - -
-

Source for file Filter.php

-

Documentation is available at Filter.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Filter
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. class Doctrine_Query_Filter implements Doctrine_Query_Filter_Interface
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * preQuery
  72. -
  73.      *
  74. -
  75.      * Method for listening the preQuery method of Doctrine_Query and
  76. -
  77.      * hooking into the query building procedure, doing any custom / specialized
  78. -
  79.      * query building procedures that are neccessary.
  80. -
  81.      *
  82. -
  83.      * @return void 
  84. -
  85.      */
  86. -
  87.     public function preQuery(Doctrine_Query $query)
  88. -
  89.     {
  90. -
  91.     
  92. -
  93.     }
  94. -
  95.     /**
  96. -
  97.      * postQuery
  98. -
  99.      *
  100. -
  101.      * Method for listening the postQuery method of Doctrine_Query and
  102. -
  103.      * to hook into the query building procedure, doing any custom / specialized
  104. -
  105.      * post query procedures (for example logging) that are neccessary.
  106. -
  107.      *
  108. -
  109.      * @param Doctrine_Query $query 
  110. -
  111.      * @return void 
  112. -
  113.      */
  114. -
  115.     public function postQuery(Doctrine_Query $query)
  116. -
  117.     {
  118. -
  119.     
  120. -
  121.     }
  122. -
  123. }
  124. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterChain.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterChain.php.html deleted file mode 100644 index d9c763e88..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterChain.php.html +++ /dev/null @@ -1,112 +0,0 @@ - -
-

Source for file Chain.php

-

Documentation is available at Chain.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Filter_Chain
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var array $_filters         an array of Doctrine_Query_Filter objects
  71. -
  72.      */
  73. -
  74.     protected $_filters = array();
  75. -
  76.     /**
  77. -
  78.      * add
  79. -
  80.      *
  81. -
  82.      * @param Doctrine_Query_Filter $filter 
  83. -
  84.      * @return void 
  85. -
  86.      */
  87. -
  88.     public function add(Doctrine_Query_Filter $filter)
  89. -
  90.     {
  91. -
  92.         $this->_filters[$filter;
  93. -
  94.     }
  95. -
  96.     /**
  97. -
  98.      * returns a Doctrine_Query_Filter on success
  99. -
  100.      * and null on failure
  101. -
  102.      *
  103. -
  104.      * @param mixed $key 
  105. -
  106.      * @return mixed 
  107. -
  108.      */
  109. -
  110.     public function get($key)
  111. -
  112.     {
  113. -
  114.         if isset($this->_filters[$key])) {
  115. -
  116.             throw new Doctrine_Query_Exception('Unknown filter ' $key);
  117. -
  118.         }
  119. -
  120.         return $this->_filters[$key];
  121. -
  122.     }
  123. -
  124.     /**
  125. -
  126.      * set
  127. -
  128.      *
  129. -
  130.      * @param mixed $key 
  131. -
  132.      * @param Doctrine_Query_Filter $listener 
  133. -
  134.      * @return void 
  135. -
  136.      */
  137. -
  138.     public function set($keyDoctrine_Query_Filter $listener)
  139. -
  140.     {
  141. -
  142.         $this->_filters[$key$listener;
  143. -
  144.     }
  145. -
  146.     /**
  147. -
  148.      * preQuery
  149. -
  150.      *
  151. -
  152.      * Method for listening the preQuery method of Doctrine_Query and
  153. -
  154.      * hooking into the query building procedure, doing any custom / specialized
  155. -
  156.      * query building procedures that are neccessary.
  157. -
  158.      *
  159. -
  160.      * @return void 
  161. -
  162.      */
  163. -
  164.     public function preQuery(Doctrine_Query $query)
  165. -
  166.     {
  167. -
  168.         foreach ($this->_filters as $filter{
  169. -
  170.             $filter->preQuery($query);
  171. -
  172.         }
  173. -
  174.     }
  175. -
  176.     /**
  177. -
  178.      * postQuery
  179. -
  180.      *
  181. -
  182.      * Method for listening the postQuery method of Doctrine_Query and
  183. -
  184.      * to hook into the query building procedure, doing any custom / specialized
  185. -
  186.      * post query procedures (for example logging) that are neccessary.
  187. -
  188.      *
  189. -
  190.      * @return void 
  191. -
  192.      */
  193. -
  194.     public function postQuery(Doctrine_Query $query)
  195. -
  196.     {
  197. -
  198.         foreach ($this->_filters as $filter{
  199. -
  200.             $filter->postQuery($query);
  201. -
  202.         }
  203. -
  204.     }
  205. -
  206. }
  207. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterInterface.php.html deleted file mode 100644 index dc773a7e9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFilterInterface.php.html +++ /dev/null @@ -1,65 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Filter_Interface
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70.     /**
  71. -
  72.      * preQuery
  73. -
  74.      *
  75. -
  76.      * Method for listening the preQuery method of Doctrine_Query and
  77. -
  78.      * hooking into the query building procedure, doing any custom / specialized
  79. -
  80.      * query building procedures that are neccessary.
  81. -
  82.      *
  83. -
  84.      * @return void 
  85. -
  86.      */
  87. -
  88.     public function preQuery(Doctrine_Query $query);
  89. -
  90.  
  91. -
  92.     /**
  93. -
  94.      * postQuery
  95. -
  96.      *
  97. -
  98.      * Method for listening the postQuery method of Doctrine_Query and
  99. -
  100.      * to hook into the query building procedure, doing any custom / specialized
  101. -
  102.      * post query procedures (for example logging) that are neccessary.
  103. -
  104.      *
  105. -
  106.      * @return void 
  107. -
  108.      */
  109. -
  110.     public function postQuery(Doctrine_Query $query);
  111. -
  112. }
  113. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFrom.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFrom.php.html deleted file mode 100644 index 160480c6c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryFrom.php.html +++ /dev/null @@ -1,99 +0,0 @@ - -
-

Source for file From.php

-

Documentation is available at From.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: From.php 2217 2007-08-11 21:53:02Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload("Doctrine_Query_Part");
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_From
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2217 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * DQL FROM PARSER
  71. -
  72.      * parses the from part of the query string
  73. -
  74.  
  75. -
  76.      * @param string $str 
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     public function parse($str)
  83. -
  84.     {
  85. -
  86.         $str trim($str);
  87. -
  88.         $parts Doctrine_Tokenizer::bracketExplode($str'JOIN');
  89. -
  90.  
  91. -
  92.         $operator false;
  93. -
  94.  
  95. -
  96.         switch (trim($parts[0])) {
  97. -
  98.             case 'INNER':
  99. -
  100.                 $operator ':';
  101. -
  102.             case 'LEFT':
  103. -
  104.                 array_shift($parts);
  105. -
  106.             break;
  107. -
  108.         }
  109. -
  110.  
  111. -
  112.  
  113. -
  114.         $last '';
  115. -
  116.  
  117. -
  118.         foreach ($parts as $k => $part{
  119. -
  120.             $part trim($part);
  121. -
  122.  
  123. -
  124.             if (empty($part)) {
  125. -
  126.                 continue;
  127. -
  128.             }
  129. -
  130.  
  131. -
  132.             $e    explode(' '$part);
  133. -
  134.  
  135. -
  136.             if (end($e== 'INNER' || end($e== 'LEFT'{
  137. -
  138.                 $last array_pop($e);
  139. -
  140.             }
  141. -
  142.             $part implode(' '$e);
  143. -
  144.  
  145. -
  146.             foreach (Doctrine_Tokenizer::bracketExplode($part','as $reference{
  147. -
  148.                 $reference trim($reference);
  149. -
  150.                 $e explode(' '$reference);
  151. -
  152.                 $e2 explode('.'$e[0]);
  153. -
  154.  
  155. -
  156.                 if ($operator{
  157. -
  158.                     $e[0array_shift($e2$operator implode('.'$e2);
  159. -
  160.                 }
  161. -
  162.  
  163. -
  164.                 $table $this->query->load(implode(' '$e));
  165. -
  166.             }
  167. -
  168.  
  169. -
  170.             $operator ($last == 'INNER'':' '.';
  171. -
  172.         }
  173. -
  174.         return null;
  175. -
  176.     }
  177. -
  178.  
  179. -
  180. }
  181. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryGroupby.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryGroupby.php.html deleted file mode 100644 index 4d5b3fa1f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryGroupby.php.html +++ /dev/null @@ -1,70 +0,0 @@ - -
-

Source for file Groupby.php

-

Documentation is available at Groupby.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Groupby.php 2238 2007-08-14 20:16:31Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Part');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Groupby
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2238 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * DQL GROUP BY PARSER
  71. -
  72.      * parses the group by part of the query string
  73. -
  74.      *
  75. -
  76.      * @param string $str 
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     public function parse($str$append false)
  83. -
  84.     {
  85. -
  86.         $r array();
  87. -
  88.         foreach (explode(','$stras $reference{
  89. -
  90.             $reference trim($reference);
  91. -
  92.             $e     explode('.'$reference);
  93. -
  94.             
  95. -
  96.             if (count($e1{
  97. -
  98.                 $field array_pop($e);
  99. -
  100.                 $ref   implode('.'$e);
  101. -
  102.                 $this->query->load($ref);
  103. -
  104.     
  105. -
  106.                 $r[$this->query->getTableAlias($ref'.' $field;
  107. -
  108.             else {
  109. -
  110.                 $alias end($e);
  111. -
  112.                 $r[$this->query->getAggregateAlias($alias);
  113. -
  114.             }
  115. -
  116.         }
  117. -
  118.         return implode(', '$r);
  119. -
  120.     }
  121. -
  122. }
  123. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryHaving.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryHaving.php.html deleted file mode 100644 index 591b5ce7d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryHaving.php.html +++ /dev/null @@ -1,110 +0,0 @@ - -
-

Source for file Having.php

-

Documentation is available at Having.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Having.php 1881 2007-06-27 18:42:47Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Condition');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Having
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1881 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * DQL Aggregate Function parser
  71. -
  72.      *
  73. -
  74.      * @param string $func 
  75. -
  76.      * @return mixed 
  77. -
  78.      */
  79. -
  80.     private function parseAggregateFunction($func)
  81. -
  82.     {
  83. -
  84.         $pos strpos($func'(');
  85. -
  86.  
  87. -
  88.         if ($pos !== false{
  89. -
  90.             $funcs  array();
  91. -
  92.  
  93. -
  94.             $name   substr($func0$pos);
  95. -
  96.             $func   substr($func($pos 1)-1);
  97. -
  98.             $params Doctrine_Tokenizer::bracketExplode($func',''('')');
  99. -
  100.  
  101. -
  102.             foreach ($params as $k => $param{
  103. -
  104.                 $params[$k$this->parseAggregateFunction($param);
  105. -
  106.             }
  107. -
  108.  
  109. -
  110.             $funcs $name '(' implode(', '$params')';
  111. -
  112.  
  113. -
  114.             return $funcs;
  115. -
  116.  
  117. -
  118.         else {
  119. -
  120.             if is_numeric($func)) {
  121. -
  122.                 $a explode('.'$func);
  123. -
  124.  
  125. -
  126.                 if (count($a1{
  127. -
  128.                     $field     array_pop($a);
  129. -
  130.                     $reference implode('.'$a);
  131. -
  132.                     $map       $this->query->load($referencefalse);
  133. -
  134.                     $field     $map['table']->getColumnName($field);
  135. -
  136.                     $func      $this->query->getTableAlias($reference'.' $field;
  137. -
  138.                 else {
  139. -
  140.                     $field end($a);
  141. -
  142.                     $func  $this->query->getAggregateAlias($field);
  143. -
  144.                 }
  145. -
  146.                 return $func;
  147. -
  148.             else {
  149. -
  150.                 return $func;
  151. -
  152.             }
  153. -
  154.         }
  155. -
  156.     }
  157. -
  158.     /**
  159. -
  160.      * load
  161. -
  162.      * returns the parsed query part
  163. -
  164.      *
  165. -
  166.      * @param string $having 
  167. -
  168.      * @return string 
  169. -
  170.      */
  171. -
  172.     final public function load($having)
  173. -
  174.     {
  175. -
  176.         $e Doctrine_Tokenizer::bracketExplode($having' ''('')');
  177. -
  178.  
  179. -
  180.         $r array_shift($e);
  181. -
  182.         $t explode('('$r);
  183. -
  184.  
  185. -
  186.         $count count($t);
  187. -
  188.         $r $this->parseAggregateFunction($r);
  189. -
  190.         $operator  array_shift($e);
  191. -
  192.         $value     implode(' '$e);
  193. -
  194.         $r .= ' ' $operator ' ' $value;
  195. -
  196.  
  197. -
  198.         return $r;
  199. -
  200.     }
  201. -
  202. }
  203. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryJoinCondition.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryJoinCondition.php.html deleted file mode 100644 index f9163ce4f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryJoinCondition.php.html +++ /dev/null @@ -1,112 +0,0 @@ - -
-

Source for file JoinCondition.php

-

Documentation is available at JoinCondition.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: JoinCondition.php 2217 2007-08-11 21:53:02Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Part');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_JoinCondition
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2217 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function load($condition
  69. -
  70.     {
  71. -
  72.         $condition trim($condition);
  73. -
  74.  
  75. -
  76.         $e         Doctrine_Tokenizer::sqlExplode($condition);
  77. -
  78.  
  79. -
  80.         if(count($e2{
  81. -
  82.             $a         explode('.'$e[0]);
  83. -
  84.             $field     array_pop($a);
  85. -
  86.             $reference implode('.'$a);
  87. -
  88.             $operator  $e[1];
  89. -
  90.             $value     $e[2];
  91. -
  92.  
  93. -
  94.             $alias     $this->query->getTableAlias($reference);
  95. -
  96.             $map       $this->query->getAliasDeclaration($reference);
  97. -
  98.             $table     $map['table'];
  99. -
  100.             // check if value is enumerated value
  101. -
  102.             $enumIndex $table->enumIndex($fieldtrim($value"'"));
  103. -
  104.  
  105. -
  106.  
  107. -
  108.             if (substr($value01== '('{
  109. -
  110.                 // trim brackets
  111. -
  112.                 $trimmed   Doctrine_Tokenizer::bracketTrim($value);
  113. -
  114.  
  115. -
  116.                 if (substr($trimmed04== 'FROM' || substr($trimmed06== 'SELECT'{
  117. -
  118.                     // subquery found
  119. -
  120.                     $q $this->query->createSubquery();
  121. -
  122.                     $value '(' $q->parseQuery($trimmed)->getQuery(')';
  123. -
  124.                 elseif (substr($trimmed04== 'SQL:'{
  125. -
  126.                     $value '(' substr($trimmed4')';
  127. -
  128.                 else {
  129. -
  130.                     // simple in expression found
  131. -
  132.                     $e     Doctrine_Tokenizer::sqlExplode($trimmed',');
  133. -
  134.  
  135. -
  136.                     $value array();
  137. -
  138.                     foreach ($e as $part{
  139. -
  140.                         $index   $table->enumIndex($fieldtrim($part"'"));
  141. -
  142.                         if ($index !== false{
  143. -
  144.                             $value[$index;
  145. -
  146.                         else {
  147. -
  148.                             $value[$this->parseLiteralValue($part);
  149. -
  150.                         }
  151. -
  152.                     }
  153. -
  154.                     $value '(' implode(', '$value')';
  155. -
  156.                 }
  157. -
  158.             else {
  159. -
  160.                 if ($enumIndex !== false{
  161. -
  162.                     $value $enumIndex;
  163. -
  164.                 else {
  165. -
  166.                     $value $this->parseLiteralValue($value);
  167. -
  168.                 }
  169. -
  170.             }
  171. -
  172.  
  173. -
  174.             switch ($operator{
  175. -
  176.                 case '<':
  177. -
  178.                 case '>':
  179. -
  180.                 case '=':
  181. -
  182.                 case '!=':
  183. -
  184.                     if ($enumIndex !== false{
  185. -
  186.                         $value  $enumIndex;
  187. -
  188.                     }
  189. -
  190.                 default:
  191. -
  192.                     $condition  $alias '.' $field ' '
  193. -
  194.                                 . $operator ' ' $value;
  195. -
  196.             }
  197. -
  198.  
  199. -
  200.         }
  201. -
  202.         return $condition;
  203. -
  204.     }
  205. -
  206. }
  207. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryLimit.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryLimit.php.html deleted file mode 100644 index f9ef54559..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryLimit.php.html +++ /dev/null @@ -1,47 +0,0 @@ - -
-

Source for file Limit.php

-

Documentation is available at Limit.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Where.php 1352 2007-05-15 10:07:05Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Limit
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1352 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function parse($limit
  69. -
  70.     {
  71. -
  72.         return (int) $limit;
  73. -
  74.     }
  75. -
  76. }
  77. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOffset.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOffset.php.html deleted file mode 100644 index 229f7c4ac..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOffset.php.html +++ /dev/null @@ -1,47 +0,0 @@ - -
-

Source for file Offset.php

-

Documentation is available at Offset.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Where.php 1352 2007-05-15 10:07:05Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Offset
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1352 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function parse($offset)
  69. -
  70.     {
  71. -
  72.         return (int) $offset;
  73. -
  74.     }
  75. -
  76. }
  77. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOrderby.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOrderby.php.html deleted file mode 100644 index 552f8e332..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryOrderby.php.html +++ /dev/null @@ -1,82 +0,0 @@ - -
-

Source for file Orderby.php

-

Documentation is available at Orderby.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Orderby.php 1871 2007-06-27 17:41:02Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Part');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Orderby
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1871 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * DQL ORDER BY PARSER
  71. -
  72.      * parses the order by part of the query string
  73. -
  74.      *
  75. -
  76.      * @param string $str 
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     public function parse($str$append false)
  83. -
  84.     {
  85. -
  86.         $ret array();
  87. -
  88.  
  89. -
  90.         foreach (explode(','trim($str)) as $r{
  91. -
  92.             $r trim($r);
  93. -
  94.             $e explode(' '$r);
  95. -
  96.             $a explode('.'$e[0]);
  97. -
  98.  
  99. -
  100.             if (count($a1{
  101. -
  102.                 $field     array_pop($a);
  103. -
  104.                 $reference implode('.'$a);
  105. -
  106.                 $name      end($a);
  107. -
  108.  
  109. -
  110.                 $map $this->query->load($referencefalse);
  111. -
  112.                 $tableAlias $this->query->getTableAlias($reference);
  113. -
  114.  
  115. -
  116.                 $r $tableAlias '.' $field;
  117. -
  118.  
  119. -
  120.  
  121. -
  122.             else {
  123. -
  124.                 $field $this->query->getAggregateAlias($e[0]);
  125. -
  126.  
  127. -
  128.                 $r $field;
  129. -
  130.             }
  131. -
  132.             if (isset($e[1])) {
  133. -
  134.                 $r .= ' ' $e[1];
  135. -
  136.             }
  137. -
  138.             $ret[$r;
  139. -
  140.         }
  141. -
  142.         return $ret;
  143. -
  144.     }
  145. -
  146. }
  147. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryParser.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryParser.php.html deleted file mode 100644 index 4d670efda..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryParser.php.html +++ /dev/null @@ -1,44 +0,0 @@ - -
-

Source for file Parser.php

-

Documentation is available at Parser.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Query.php 1296 2007-04-26 17:42:03Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Parser
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1296 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70. }
  71. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryPart.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryPart.php.html deleted file mode 100644 index 34726e0c1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryPart.php.html +++ /dev/null @@ -1,61 +0,0 @@ - -
-

Source for file Part.php

-

Documentation is available at Part.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Part.php 1479 2007-05-24 19:47:28Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Part
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1479 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. abstract class Doctrine_Query_Part
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * @var Doctrine_Query $query           the query object associated with this parser
  72. -
  73.      */
  74. -
  75.     protected $query;
  76. -
  77.     /**
  78. -
  79.      * @param Doctrine_Query $query         the query object associated with this parser
  80. -
  81.      */
  82. -
  83.     public function __construct($query)
  84. -
  85.     {
  86. -
  87.         $this->query = $query;
  88. -
  89.     }
  90. -
  91.     /**
  92. -
  93.      * @return Doctrine_Query $query        the query object associated with this parser
  94. -
  95.      */
  96. -
  97.     public function getQuery()
  98. -
  99.     {
  100. -
  101.         return $this->query;
  102. -
  103.     }
  104. -
  105. }
  106. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySelect.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySelect.php.html deleted file mode 100644 index c0761fbb6..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySelect.php.html +++ /dev/null @@ -1,49 +0,0 @@ - -
-

Source for file Select.php

-

Documentation is available at Select.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: From.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload("Doctrine_Query_Part");
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Select
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function parse($dql
  69. -
  70.     {
  71. -
  72.         $this->query->parseSelect($dql);
  73. -
  74.         
  75. -
  76.         return null;
  77. -
  78.     }
  79. -
  80. }
  81. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySet.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySet.php.html deleted file mode 100644 index 079af3833..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQuerySet.php.html +++ /dev/null @@ -1,63 +0,0 @@ - -
-

Source for file Set.php

-

Documentation is available at Set.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Set.php 2119 2007-07-31 20:22:10Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Part');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2119 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function parse($dql)
  69. -
  70.     {
  71. -
  72.         preg_match_all("/[a-z0-9_]+\.[a-z0-9_]+[\.[a-z0-9]+]*/i"$dql$m);
  73. -
  74.  
  75. -
  76.         if (isset($m[0])) {
  77. -
  78.             foreach ($m[0as $part{
  79. -
  80.                 $e   explode('.'trim($part));
  81. -
  82.                 $field array_pop($e);
  83. -
  84.     
  85. -
  86.                 $reference implode('.'$e);
  87. -
  88.     
  89. -
  90.                 $alias $this->query->getTableAlias($reference);
  91. -
  92.                 $map   $this->query->getAliasDeclaration($reference);
  93. -
  94.     
  95. -
  96.                 $dql str_replace($part$map['table']->getColumnName($field)$dql);
  97. -
  98.             }
  99. -
  100.         }
  101. -
  102.  
  103. -
  104.         return $dql;
  105. -
  106.     }
  107. -
  108. }
  109. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryWhere.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryWhere.php.html deleted file mode 100644 index ec5e0bd1a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineQueryWhere.php.html +++ /dev/null @@ -1,183 +0,0 @@ - -
-

Source for file Where.php

-

Documentation is available at Where.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Where.php 2224 2007-08-13 21:23:56Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Condition');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Query_Where
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2224 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function load($where
  69. -
  70.     {
  71. -
  72.         $where Doctrine_Tokenizer::bracketTrim(trim($where));
  73. -
  74.         $conn  $this->query->getConnection();
  75. -
  76.         $terms Doctrine_Tokenizer::sqlExplode($where);  
  77. -
  78.  
  79. -
  80.         if (count($terms1{
  81. -
  82.             if (substr($where06== 'EXISTS'{
  83. -
  84.                 return $this->parseExists($wheretrue);
  85. -
  86.             elseif (substr($where010== 'NOT EXISTS'{
  87. -
  88.                 return $this->parseExists($wherefalse);
  89. -
  90.             }
  91. -
  92.         }
  93. -
  94.  
  95. -
  96.         if (count($terms3{
  97. -
  98.             $terms Doctrine_Tokenizer::sqlExplode($wherearray('=''<''<>''>''!='));
  99. -
  100.         }
  101. -
  102.  
  103. -
  104.         if (count($terms1{
  105. -
  106.             $first array_shift($terms);
  107. -
  108.             $value array_pop($terms);
  109. -
  110.             $operator trim(substr($wherestrlen($first)-strlen($value)));
  111. -
  112.             $table null;
  113. -
  114.             $field null;
  115. -
  116.  
  117. -
  118.             if (strpos($first"'"=== false && strpos($first'('=== false{
  119. -
  120.                 // normal field reference found
  121. -
  122.                 $a explode('.'$first);
  123. -
  124.         
  125. -
  126.                 $field array_pop($a);
  127. -
  128.                 $reference implode('.'$a);
  129. -
  130.                 
  131. -
  132.                 if (empty($reference)) {
  133. -
  134.                     $map $this->query->getRootDeclaration();  
  135. -
  136.                     
  137. -
  138.                     $alias $this->query->getTableAlias($this->query->getRootAlias());
  139. -
  140.                     $table $map['table'];                         
  141. -
  142.                 else {
  143. -
  144.                     $map $this->query->load($referencefalse);
  145. -
  146.     
  147. -
  148.                     $alias $this->query->getTableAlias($reference);
  149. -
  150.                     $table $map['table'];
  151. -
  152.                 }
  153. -
  154.                 if ($this->query->getType(=== Doctrine_Query::SELECT{
  155. -
  156.                     $first $conn->quoteIdentifier($alias)
  157. -
  158.                            . '.'
  159. -
  160.                            . $conn->quoteIdentifier($table->getColumnName($field));
  161. -
  162.                 else {
  163. -
  164.                     $first $conn->quoteIdentifier($table->getColumnName($field));
  165. -
  166.                 }
  167. -
  168.             else {
  169. -
  170.                 $first $this->query->parseClause($first);
  171. -
  172.             }
  173. -
  174.             $sql $first ' ' $operator ' ' $this->parseValue($value$table$field);
  175. -
  176.         
  177. -
  178.             return $sql;  
  179. -
  180.         else {
  181. -
  182.  
  183. -
  184.         }
  185. -
  186.     }
  187. -
  188.  
  189. -
  190.     public function parseValue($valueDoctrine_Table $table null$field null)
  191. -
  192.     {
  193. -
  194.         if (substr($value01== '('{
  195. -
  196.             // trim brackets
  197. -
  198.             $trimmed   Doctrine_Tokenizer::bracketTrim($value);
  199. -
  200.  
  201. -
  202.             if (substr($trimmed04== 'FROM' ||
  203. -
  204.                 substr($trimmed06== 'SELECT'{
  205. -
  206.  
  207. -
  208.                 // subquery found
  209. -
  210.                 $q     new Doctrine_Query();
  211. -
  212.                 $value '(' $q->isSubquery(true)->parseQuery($trimmed)->getQuery(')';
  213. -
  214.  
  215. -
  216.             elseif (substr($trimmed04== 'SQL:'{
  217. -
  218.                 $value '(' substr($trimmed4')';
  219. -
  220.             else {
  221. -
  222.                 // simple in expression found
  223. -
  224.                 $e Doctrine_Tokenizer::sqlExplode($trimmed',');
  225. -
  226.  
  227. -
  228.                 $value array();
  229. -
  230.  
  231. -
  232.                 $index false;
  233. -
  234.  
  235. -
  236.                 foreach ($e as $part{
  237. -
  238.                     if (isset($table&& isset($field)) {
  239. -
  240.                         $index $table->enumIndex($fieldtrim($part"'"));
  241. -
  242.                     }
  243. -
  244.  
  245. -
  246.                     if ($index !== false{
  247. -
  248.                         $value[$index;
  249. -
  250.                     else {
  251. -
  252.                         $value[$this->parseLiteralValue($part);
  253. -
  254.                     }
  255. -
  256.                 }
  257. -
  258.                 $value '(' implode(', '$value')';
  259. -
  260.             }
  261. -
  262.         elseif(substr($value01== ':' || $value === '?'{
  263. -
  264.             // placeholder found
  265. -
  266.             if (isset($table&& isset($field&& $table->getTypeOf($field== 'enum'{
  267. -
  268.                 $this->query->addEnumParam($value$table$field);
  269. -
  270.             else {
  271. -
  272.                 $this->query->addEnumParam($valuenullnull);
  273. -
  274.             }
  275. -
  276.         else {
  277. -
  278.             $enumIndex false;
  279. -
  280.             if (isset($table&& isset($field)) {
  281. -
  282.                 // check if value is enumerated value
  283. -
  284.                 $enumIndex $table->enumIndex($fieldtrim($value"'"));
  285. -
  286.             }
  287. -
  288.  
  289. -
  290.             if ($enumIndex !== false{
  291. -
  292.                 $value $enumIndex;
  293. -
  294.             else {
  295. -
  296.                 $value $this->parseLiteralValue($value);
  297. -
  298.             }
  299. -
  300.         }
  301. -
  302.         return $value;
  303. -
  304.     }
  305. -
  306.     /**
  307. -
  308.      * parses an EXISTS expression
  309. -
  310.      *
  311. -
  312.      * @param string $where         query where part to be parsed
  313. -
  314.      * @param boolean $negation     whether or not to use the NOT keyword
  315. -
  316.      * @return string 
  317. -
  318.      */
  319. -
  320.     public function parseExists($where$negation)
  321. -
  322.     {
  323. -
  324.         $operator ($negation'EXISTS' 'NOT EXISTS';
  325. -
  326.  
  327. -
  328.         $pos strpos($where'(');
  329. -
  330.  
  331. -
  332.         if ($pos == false{
  333. -
  334.             throw new Doctrine_Query_Exception('Unknown expression, expected a subquery with () -marks');
  335. -
  336.         }
  337. -
  338.  
  339. -
  340.         $sub Doctrine_Tokenizer::bracketTrim(substr($where$pos));
  341. -
  342.  
  343. -
  344.         return $operator ' (' $this->query->createSubquery()->parseQuery($subfalse)->getQuery(')';
  345. -
  346.     }
  347. -
  348. }
  349. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSql.php.html deleted file mode 100644 index 58452ac1a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSql.php.html +++ /dev/null @@ -1,290 +0,0 @@ - -
-

Source for file RawSql.php

-

Documentation is available at RawSql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: RawSql.php 1847 2007-06-26 10:05:26Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Query_Abstract');
  42. -
  43. /**
  44. -
  45.  * Doctrine_RawSql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1847 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var array $fields 
  71. -
  72.      */
  73. -
  74.     private $fields = array();
  75. -
  76.     /**
  77. -
  78.      * parseQueryPart
  79. -
  80.      * parses given query part
  81. -
  82.      *
  83. -
  84.      * @param string $queryPartName     the name of the query part
  85. -
  86.      * @param string $queryPart         query part to be parsed
  87. -
  88.      * @param boolean $append           whether or not to append the query part to its stack
  89. -
  90.      *                                   if false is given, this method will overwrite
  91. -
  92.      *                                   the given query part stack with $queryPart
  93. -
  94.      * @return Doctrine_Query           this object
  95. -
  96.      */
  97. -
  98.     public function parseQueryPart($queryPartName$queryPart$append false
  99. -
  100.     {
  101. -
  102.         if ($queryPartName == 'select'{
  103. -
  104.             preg_match_all('/{([^}{]*)}/U'$queryPart$m);
  105. -
  106.  
  107. -
  108.             $this->fields = $m[1];
  109. -
  110.             $this->parts['select'array();
  111. -
  112.         else {
  113. -
  114.             if $append{
  115. -
  116.                 $this->parts[$queryPartNamearray($queryPart);
  117. -
  118.             else {
  119. -
  120.                 $this->parts[$queryPartName][$queryPart;
  121. -
  122.             }
  123. -
  124.         }
  125. -
  126.         return $this;
  127. -
  128.     }
  129. -
  130.     /**
  131. -
  132.      * parseQuery
  133. -
  134.      * parses an sql query and adds the parts to internal array
  135. -
  136.      *
  137. -
  138.      * @param string $query         query to be parsed
  139. -
  140.      * @return Doctrine_RawSql      this object
  141. -
  142.      */
  143. -
  144.     public function parseQuery($query)
  145. -
  146.     {
  147. -
  148.         preg_match_all('/{([^}{]*)}/U'$query$m);
  149. -
  150.  
  151. -
  152.         $this->fields = $m[1];
  153. -
  154.         $this->clear();
  155. -
  156.  
  157. -
  158.         $e Doctrine_Tokenizer::sqlExplode($query,' ');
  159. -
  160.  
  161. -
  162.         foreach ($e as $k => $part{
  163. -
  164.             $low strtolower($part);
  165. -
  166.             switch (strtolower($part)) {
  167. -
  168.                 case 'select':
  169. -
  170.                 case 'from':
  171. -
  172.                 case 'where':
  173. -
  174.                 case 'limit':
  175. -
  176.                 case 'offset':
  177. -
  178.                 case 'having':
  179. -
  180.                     $p $low;
  181. -
  182.                     if isset($parts[$low])) {
  183. -
  184.                         $parts[$lowarray();
  185. -
  186.                     }
  187. -
  188.                     break;
  189. -
  190.                 case 'order':
  191. -
  192.                 case 'group':
  193. -
  194.                     $i ($k 1);
  195. -
  196.                     if (isset($e[$i]&& strtolower($e[$i]=== 'by'{
  197. -
  198.                         $p $low;
  199. -
  200.                         $p .= 'by';
  201. -
  202.                         $parts[$low 'by'array();
  203. -
  204.  
  205. -
  206.                     else {
  207. -
  208.                         $parts[$p][$part;
  209. -
  210.                     }
  211. -
  212.                     break;
  213. -
  214.                 case 'by':
  215. -
  216.                     continue;
  217. -
  218.                 default:
  219. -
  220.                     if isset($parts[$p][0])) {
  221. -
  222.                         $parts[$p][0$part;
  223. -
  224.                     else {
  225. -
  226.                         $parts[$p][0.= ' '.$part;
  227. -
  228.                     }
  229. -
  230.             }
  231. -
  232.         }
  233. -
  234.  
  235. -
  236.         $this->parts = $parts;
  237. -
  238.         $this->parts['select'array();
  239. -
  240.  
  241. -
  242.         return $this;
  243. -
  244.     }
  245. -
  246.     /**
  247. -
  248.      * getQuery
  249. -
  250.      * builds the sql query from the given query parts
  251. -
  252.      *
  253. -
  254.      * @return string       the built sql query
  255. -
  256.      */
  257. -
  258.     public function getQuery()
  259. -
  260.     {
  261. -
  262.         $select array();
  263. -
  264.  
  265. -
  266.         foreach ($this->fields as $field{
  267. -
  268.             $e explode('.'$field);
  269. -
  270.             if isset($e[1])) {
  271. -
  272.                 throw new Doctrine_RawSql_Exception('All selected fields in Sql query must be in format tableAlias.fieldName');
  273. -
  274.             }
  275. -
  276.             // try to auto-add component
  277. -
  278.             if $this->hasTableAlias($e[0])) {
  279. -
  280.                 try {
  281. -
  282.                     $this->addComponent($e[0]ucwords($e[0]));
  283. -
  284.                 catch(Doctrine_Exception $exception{
  285. -
  286.                     throw new Doctrine_RawSql_Exception('The associated component for table alias ' $e[0' couldn\'t be found.');
  287. -
  288.                 }
  289. -
  290.             }
  291. -
  292.  
  293. -
  294.             $componentAlias $this->getComponentAlias($e[0]);
  295. -
  296.             
  297. -
  298.             if ($e[1== '*'{
  299. -
  300.                 foreach ($this->_aliasMap[$componentAlias]['table']->getColumnNames(as $name{
  301. -
  302.                     $field $e[0'.' $name;
  303. -
  304.  
  305. -
  306.                     $select[$componentAlias][$field$field ' AS ' $e[0'__' $name;
  307. -
  308.                 }
  309. -
  310.             else {
  311. -
  312.                 $field $e[0'.' $e[1];
  313. -
  314.                 $select[$componentAlias][$field$field ' AS ' $e[0'__' $e[1];
  315. -
  316.             }
  317. -
  318.         }
  319. -
  320.  
  321. -
  322.         // force-add all primary key fields
  323. -
  324.  
  325. -
  326.         foreach ($this->getTableAliases(as $tableAlias => $componentAlias{
  327. -
  328.             $map $this->_aliasMap[$componentAlias];
  329. -
  330.  
  331. -
  332.             foreach ($map['table']->getPrimaryKeys(as $key{
  333. -
  334.                 $field $tableAlias '.' $key;
  335. -
  336.  
  337. -
  338.                 if isset($this->parts['select'][$field])) {
  339. -
  340.                     $select[$componentAlias][$field$field ' AS ' $tableAlias '__' $key;
  341. -
  342.                 }
  343. -
  344.             }
  345. -
  346.         }
  347. -
  348.         
  349. -
  350.         // first add the fields of the root component
  351. -
  352.         reset($this->_aliasMap);
  353. -
  354.         $componentAlias key($this->_aliasMap);
  355. -
  356.  
  357. -
  358.         $q 'SELECT ' implode(', '$select[$componentAlias]);
  359. -
  360.         unset($select[$componentAlias]);
  361. -
  362.  
  363. -
  364.         foreach ($select as $component => $fields{
  365. -
  366.             if empty($fields)) {
  367. -
  368.                 $q .= ', ' implode(', '$fields);
  369. -
  370.             }
  371. -
  372.         }
  373. -
  374.  
  375. -
  376.         $string $this->applyInheritance();
  377. -
  378.         if empty($string)) {
  379. -
  380.             $this->parts['where'][$string;
  381. -
  382.         }
  383. -
  384.         $copy $this->parts;
  385. -
  386.         unset($copy['select']);
  387. -
  388.  
  389. -
  390.         $q .= empty($this->parts['from']))?    ' FROM '     implode(' '$this->parts['from']'';
  391. -
  392.         $q .= empty($this->parts['where']))?   ' WHERE '    implode(' AND '$this->parts['where']'';
  393. -
  394.         $q .= empty($this->parts['groupby']))' GROUP BY ' implode(', '$this->parts['groupby']'';
  395. -
  396.         $q .= empty($this->parts['having']))?  ' HAVING '   implode(' AND '$this->parts['having']'';
  397. -
  398.         $q .= empty($this->parts['orderby']))' ORDER BY ' implode(', '$this->parts['orderby']'';
  399. -
  400.         $q .= empty($this->parts['limit']))?   ' LIMIT ' implode(' '$this->parts['limit']'';
  401. -
  402.         $q .= empty($this->parts['offset']))?  ' OFFSET ' implode(' '$this->parts['offset']'';
  403. -
  404.  
  405. -
  406.         if empty($string)) {
  407. -
  408.             array_pop($this->parts['where']);
  409. -
  410.         }
  411. -
  412.         return $q;
  413. -
  414.     }
  415. -
  416.     /**
  417. -
  418.      * getFields
  419. -
  420.      * returns the fields associated with this parser
  421. -
  422.      *
  423. -
  424.      * @return array    all the fields associated with this parser
  425. -
  426.      */
  427. -
  428.     public function getFields()
  429. -
  430.     {
  431. -
  432.         return $this->fields;
  433. -
  434.     }
  435. -
  436.     /**
  437. -
  438.      * addComponent
  439. -
  440.      *
  441. -
  442.      * @param string $tableAlias 
  443. -
  444.      * @param string $componentName 
  445. -
  446.      * @return Doctrine_RawSql 
  447. -
  448.      */
  449. -
  450.     public function addComponent($tableAlias$path)
  451. -
  452.     {
  453. -
  454.         $tmp           explode(' '$path);
  455. -
  456.         $originalAlias (count($tmp1end($tmpnull;
  457. -
  458.  
  459. -
  460.         $e explode('.'$tmp[0]);
  461. -
  462.  
  463. -
  464.         $fullPath $tmp[0];
  465. -
  466.         $fullLength strlen($fullPath);
  467. -
  468.  
  469. -
  470.         $table null;
  471. -
  472.  
  473. -
  474.         $currPath '';
  475. -
  476.  
  477. -
  478.         if (isset($this->_aliasMap[$e[0]])) {
  479. -
  480.             $table $this->_aliasMap[$e[0]]['table'];
  481. -
  482.  
  483. -
  484.             $currPath $parent array_shift($e);
  485. -
  486.         }
  487. -
  488.  
  489. -
  490.         foreach ($e as $k => $component{
  491. -
  492.             // get length of the previous path
  493. -
  494.             $length strlen($currPath);
  495. -
  496.  
  497. -
  498.             // build the current component path
  499. -
  500.             $currPath ($currPath$currPath '.' $component $component;
  501. -
  502.  
  503. -
  504.             $delimeter substr($fullPath$length1);
  505. -
  506.  
  507. -
  508.             // if an alias is not given use the current path as an alias identifier
  509. -
  510.             if (strlen($currPath=== $fullLength && isset($originalAlias)) {
  511. -
  512.                 $componentAlias $originalAlias;
  513. -
  514.             else {
  515. -
  516.                 $componentAlias $currPath;
  517. -
  518.             }
  519. -
  520.             if isset($table)) {
  521. -
  522.                 $conn Doctrine_Manager::getInstance()
  523. -
  524.                         ->getConnectionForComponent($component);
  525. -
  526.                         
  527. -
  528.                 $table $conn->getTable($component);
  529. -
  530.                 $this->_aliasMap[$componentAliasarray('table' => $table);
  531. -
  532.             else {
  533. -
  534.                 $relation $table->getRelation($component);
  535. -
  536.  
  537. -
  538.                 $this->_aliasMap[$componentAliasarray('table'    => $relation->getTable(),
  539. -
  540.                                                           'parent'   => $parent,
  541. -
  542.                                                           'relation' => $relation);
  543. -
  544.             }
  545. -
  546.             $this->addTableAlias($tableAlias$componentAlias);
  547. -
  548.  
  549. -
  550.             $parent $currPath;
  551. -
  552.         }
  553. -
  554.  
  555. -
  556.         return $this;
  557. -
  558.     }
  559. -
  560.  
  561. -
  562. }
  563. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSqlException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSqlException.php.html deleted file mode 100644 index d23f2b3cd..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRawSqlException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_RawSql_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecord.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecord.php.html deleted file mode 100644 index c5436c936..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecord.php.html +++ /dev/null @@ -1,1538 +0,0 @@ - -
-

Source for file Record.php

-

Documentation is available at Record.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Record.php 2294 2007-08-29 22:20:30Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Record_Abstract');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Record
  46. -
  47.  * All record classes should inherit this super class
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2294 $
  64. -
  65.  */
  66. -
  67. abstract class Doctrine_Record extends Doctrine_Record_Abstract implements CountableIteratorAggregateSerializable
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * STATE CONSTANTS
  74. -
  75.      */
  76. -
  77.  
  78. -
  79.     /**
  80. -
  81.      * DIRTY STATE
  82. -
  83.      * a Doctrine_Record is in dirty state when its properties are changed
  84. -
  85.      */
  86. -
  87.     const STATE_DIRTY       = 1;
  88. -
  89.     /**
  90. -
  91.      * TDIRTY STATE
  92. -
  93.      * a Doctrine_Record is in transient dirty state when it is created
  94. -
  95.      * and some of its fields are modified but it is NOT yet persisted into database
  96. -
  97.      */
  98. -
  99.     const STATE_TDIRTY      = 2;
  100. -
  101.     /**
  102. -
  103.      * CLEAN STATE
  104. -
  105.      * a Doctrine_Record is in clean state when all of its properties are loaded from the database
  106. -
  107.      * and none of its properties are changed
  108. -
  109.      */
  110. -
  111.     const STATE_CLEAN       = 3;
  112. -
  113.     /**
  114. -
  115.      * PROXY STATE
  116. -
  117.      * a Doctrine_Record is in proxy state when its properties are not fully loaded
  118. -
  119.      */
  120. -
  121.     const STATE_PROXY       = 4;
  122. -
  123.     /**
  124. -
  125.      * NEW TCLEAN
  126. -
  127.      * a Doctrine_Record is in transient clean state when it is created and none of its fields are modified
  128. -
  129.      */
  130. -
  131.     const STATE_TCLEAN      = 5;
  132. -
  133.     /**
  134. -
  135.      * LOCKED STATE
  136. -
  137.      * a Doctrine_Record is temporarily locked during deletes and saves
  138. -
  139.      *
  140. -
  141.      * This state is used internally to ensure that circular deletes
  142. -
  143.      * and saves will not cause infinite loops
  144. -
  145.      */
  146. -
  147.     const STATE_LOCKED     = 6;
  148. -
  149.  
  150. -
  151.     /**
  152. -
  153.      * @var Doctrine_Node_<TreeImpl>        node object
  154. -
  155.      */
  156. -
  157.     protected $_node;
  158. -
  159.     /**
  160. -
  161.      * @var integer $_id                    the primary keys of this object
  162. -
  163.      */
  164. -
  165.     protected $_id           = array();
  166. -
  167.     /**
  168. -
  169.      * @var array $_data                    the record data
  170. -
  171.      */
  172. -
  173.     protected $_data         = array();
  174. -
  175.     /**
  176. -
  177.      * @var array $_values                  the values array, aggregate values and such are mapped into this array
  178. -
  179.      */
  180. -
  181.     protected $_values       = array();
  182. -
  183.     /**
  184. -
  185.      * @var integer $_state                 the state of this record
  186. -
  187.      * @see STATE_* constants
  188. -
  189.      */
  190. -
  191.     protected $_state;
  192. -
  193.     /**
  194. -
  195.      * @var array $_modified                an array containing properties that have been modified
  196. -
  197.      */
  198. -
  199.     protected $_modified     = array();
  200. -
  201.     /**
  202. -
  203.      * @var Doctrine_Validator_ErrorStack   error stack object
  204. -
  205.      */
  206. -
  207.     protected $_errorStack;
  208. -
  209.     /**
  210. -
  211.      * @var Doctrine_Record_Filter          the filter object
  212. -
  213.      */
  214. -
  215.     protected $_filter;
  216. -
  217.     /**
  218. -
  219.      * @var array $_references              an array containing all the references
  220. -
  221.      */
  222. -
  223.     protected $_references     = array();
  224. -
  225.     /**
  226. -
  227.      * @var integer $index                  this index is used for creating object identifiers
  228. -
  229.      */
  230. -
  231.     private static $_index 1;
  232. -
  233.     /**
  234. -
  235.      * @var integer $oid                    object identifier, each Record object has a unique object identifier
  236. -
  237.      */
  238. -
  239.     private $_oid;
  240. -
  241.  
  242. -
  243.     /**
  244. -
  245.      * constructor
  246. -
  247.      * @param Doctrine_Table|null$table       a Doctrine_Table object or null,
  248. -
  249.      *                                          if null the table object is retrieved from current connection
  250. -
  251.      *
  252. -
  253.      * @param boolean $isNewEntry              whether or not this record is transient
  254. -
  255.      *
  256. -
  257.      * @throws Doctrine_Connection_Exception   if object is created using the new operator and there are no
  258. -
  259.      *                                          open connections
  260. -
  261.      * @throws Doctrine_Record_Exception       if the cleanData operation fails somehow
  262. -
  263.      */
  264. -
  265.     public function __construct($table null$isNewEntry false)
  266. -
  267.     {
  268. -
  269.         if (isset($table&& $table instanceof Doctrine_Table{
  270. -
  271.             $this->_table = $table;
  272. -
  273.             $exists $isNewEntry);
  274. -
  275.         else {
  276. -
  277.             $class  get_class($this);
  278. -
  279.             // get the table of this class
  280. -
  281.             $this->_table = Doctrine_Manager::getInstance()
  282. -
  283.                             ->getTable(get_class($this));
  284. -
  285.             $exists false;
  286. -
  287.         }
  288. -
  289.  
  290. -
  291.         // initialize the filter object
  292. -
  293.         $this->_filter = new Doctrine_Record_Filter($this);
  294. -
  295.  
  296. -
  297.         // Check if the current connection has the records table in its registry
  298. -
  299.         // If not this record is only used for creating table definition and setting up
  300. -
  301.         // relations.
  302. -
  303.  
  304. -
  305.         if ($this->_table->getConnection()->hasTable($this->_table->getComponentName())) {
  306. -
  307.             $this->_oid = self::$_index;
  308. -
  309.  
  310. -
  311.             self::$_index++;
  312. -
  313.  
  314. -
  315.             $keys $this->_table->getPrimaryKeys();
  316. -
  317.  
  318. -
  319.             // get the data array
  320. -
  321.             $this->_data = $this->_table->getData();
  322. -
  323.  
  324. -
  325.             // get the column count
  326. -
  327.             $count count($this->_data);
  328. -
  329.  
  330. -
  331.             $this->_values = $this->cleanData($this->_data);
  332. -
  333.  
  334. -
  335.             $this->prepareIdentifiers($exists);
  336. -
  337.  
  338. -
  339.             if $exists{
  340. -
  341.                 if ($count 0{
  342. -
  343.                     $this->_state = Doctrine_Record::STATE_TDIRTY;
  344. -
  345.                 else {
  346. -
  347.                     $this->_state = Doctrine_Record::STATE_TCLEAN;
  348. -
  349.                 }
  350. -
  351.  
  352. -
  353.                 // set the default values for this record
  354. -
  355.                 $this->assignDefaultValues();
  356. -
  357.             else {
  358. -
  359.                 $this->_state      = Doctrine_Record::STATE_CLEAN;
  360. -
  361.  
  362. -
  363.                 if ($count $this->_table->getColumnCount()) {
  364. -
  365.                     $this->_state  = Doctrine_Record::STATE_PROXY;
  366. -
  367.                 }
  368. -
  369.             }
  370. -
  371.  
  372. -
  373.             $this->_errorStack = new Doctrine_Validator_ErrorStack();
  374. -
  375.  
  376. -
  377.             $repository $this->_table->getRepository();
  378. -
  379.             $repository->add($this);
  380. -
  381.             
  382. -
  383.             $this->construct();
  384. -
  385.         }
  386. -
  387.         
  388. -
  389.     }
  390. -
  391.     /**
  392. -
  393.      * _index
  394. -
  395.      *
  396. -
  397.      * @return integer 
  398. -
  399.      */
  400. -
  401.     public static function _index()
  402. -
  403.     {
  404. -
  405.         return self::$_index;
  406. -
  407.     }
  408. -
  409.     /**
  410. -
  411.      * setUp
  412. -
  413.      * this method is used for setting up relations and attributes
  414. -
  415.      * it should be implemented by child classes
  416. -
  417.      *
  418. -
  419.      * @return void 
  420. -
  421.      */
  422. -
  423.     public function setUp()
  424. -
  425.     }
  426. -
  427.     /**
  428. -
  429.      * construct
  430. -
  431.      * Empty tempalte method to provide concrete Record classes with the possibility
  432. -
  433.      * to hook into the constructor procedure
  434. -
  435.      *
  436. -
  437.      * @return void 
  438. -
  439.      */
  440. -
  441.     public function construct()
  442. -
  443.     }
  444. -
  445.     /**
  446. -
  447.      * getOid
  448. -
  449.      * returns the object identifier
  450. -
  451.      *
  452. -
  453.      * @return integer 
  454. -
  455.      */
  456. -
  457.     public function getOid()
  458. -
  459.     {
  460. -
  461.         return $this->_oid;
  462. -
  463.     }
  464. -
  465.     /**
  466. -
  467.      * isValid
  468. -
  469.      *
  470. -
  471.      * @return boolean                          whether or not this record passes all column validations
  472. -
  473.      */
  474. -
  475.     public function isValid()
  476. -
  477.     {
  478. -
  479.         if $this->_table->getAttribute(Doctrine::ATTR_VLD)) {
  480. -
  481.             return true;
  482. -
  483.         }
  484. -
  485.         // Clear the stack from any previous errors.
  486. -
  487.         $this->_errorStack->clear();
  488. -
  489.  
  490. -
  491.         // Run validation process
  492. -
  493.         $validator new Doctrine_Validator();
  494. -
  495.         $validator->validateRecord($this);
  496. -
  497.         $this->validate();
  498. -
  499.         if ($this->_state == self::STATE_TDIRTY || $this->_state == self::STATE_TCLEAN{
  500. -
  501.             $this->validateOnInsert();
  502. -
  503.         else {
  504. -
  505.             $this->validateOnUpdate();
  506. -
  507.         }
  508. -
  509.  
  510. -
  511.         return $this->_errorStack->count(== true false;
  512. -
  513.     }
  514. -
  515.     /**
  516. -
  517.      * Empty template method to provide concrete Record classes with the possibility
  518. -
  519.      * to hook into the validation procedure, doing any custom / specialized
  520. -
  521.      * validations that are neccessary.
  522. -
  523.      */
  524. -
  525.     protected function validate()
  526. -
  527.     }
  528. -
  529.     /**
  530. -
  531.      * Empty template method to provide concrete Record classes with the possibility
  532. -
  533.      * to hook into the validation procedure only when the record is going to be
  534. -
  535.      * updated.
  536. -
  537.      */
  538. -
  539.     protected function validateOnUpdate()
  540. -
  541.     }
  542. -
  543.     /**
  544. -
  545.      * Empty template method to provide concrete Record classes with the possibility
  546. -
  547.      * to hook into the validation procedure only when the record is going to be
  548. -
  549.      * inserted into the data store the first time.
  550. -
  551.      */
  552. -
  553.     protected function validateOnInsert()
  554. -
  555.     }
  556. -
  557.     /**
  558. -
  559.      * Empty template method to provide concrete Record classes with the possibility
  560. -
  561.      * to hook into the serializing procedure.
  562. -
  563.      */
  564. -
  565.     public function preSerialize($event)
  566. -
  567.     }
  568. -
  569.     /**
  570. -
  571.      * Empty template method to provide concrete Record classes with the possibility
  572. -
  573.      * to hook into the serializing procedure.
  574. -
  575.      */
  576. -
  577.     public function postSerialize($event)
  578. -
  579.     }
  580. -
  581.     /**
  582. -
  583.      * Empty template method to provide concrete Record classes with the possibility
  584. -
  585.      * to hook into the serializing procedure.
  586. -
  587.      */
  588. -
  589.     public function preUnserialize($event)
  590. -
  591.     }
  592. -
  593.     /**
  594. -
  595.      * Empty template method to provide concrete Record classes with the possibility
  596. -
  597.      * to hook into the serializing procedure.
  598. -
  599.      */
  600. -
  601.     public function postUnserialize($event)
  602. -
  603.     }
  604. -
  605.     /**
  606. -
  607.      * Empty template method to provide concrete Record classes with the possibility
  608. -
  609.      * to hook into the saving procedure.
  610. -
  611.      */
  612. -
  613.     public function preSave($event)
  614. -
  615.     }
  616. -
  617.     /**
  618. -
  619.      * Empty template method to provide concrete Record classes with the possibility
  620. -
  621.      * to hook into the saving procedure.
  622. -
  623.      */
  624. -
  625.     public function postSave($event)
  626. -
  627.     }
  628. -
  629.     /**
  630. -
  631.      * Empty template method to provide concrete Record classes with the possibility
  632. -
  633.      * to hook into the deletion procedure.
  634. -
  635.      */
  636. -
  637.     public function preDelete($event)
  638. -
  639.     }
  640. -
  641.     /**
  642. -
  643.      * Empty template method to provide concrete Record classes with the possibility
  644. -
  645.      * to hook into the deletion procedure.
  646. -
  647.      */
  648. -
  649.     public function postDelete($event)
  650. -
  651.     }
  652. -
  653.     /**
  654. -
  655.      * Empty template method to provide concrete Record classes with the possibility
  656. -
  657.      * to hook into the saving procedure only when the record is going to be
  658. -
  659.      * updated.
  660. -
  661.      */
  662. -
  663.     public function preUpdate($event)
  664. -
  665.     }
  666. -
  667.     /**
  668. -
  669.      * Empty template method to provide concrete Record classes with the possibility
  670. -
  671.      * to hook into the saving procedure only when the record is going to be
  672. -
  673.      * updated.
  674. -
  675.      */
  676. -
  677.     public function postUpdate($event)
  678. -
  679.     }
  680. -
  681.     /**
  682. -
  683.      * Empty template method to provide concrete Record classes with the possibility
  684. -
  685.      * to hook into the saving procedure only when the record is going to be
  686. -
  687.      * inserted into the data store the first time.
  688. -
  689.      */
  690. -
  691.     public function preInsert($event)
  692. -
  693.     }
  694. -
  695.     /**
  696. -
  697.      * Empty template method to provide concrete Record classes with the possibility
  698. -
  699.      * to hook into the saving procedure only when the record is going to be
  700. -
  701.      * inserted into the data store the first time.
  702. -
  703.      */
  704. -
  705.     public function postInsert($event)
  706. -
  707.     }
  708. -
  709.     /**
  710. -
  711.      * getErrorStack
  712. -
  713.      *
  714. -
  715.      * @return Doctrine_Validator_ErrorStack    returns the errorStack associated with this record
  716. -
  717.      */
  718. -
  719.     public function getErrorStack()
  720. -
  721.     {
  722. -
  723.         return $this->_errorStack;
  724. -
  725.     }
  726. -
  727.     /**
  728. -
  729.      * errorStack
  730. -
  731.      * assigns / returns record errorStack
  732. -
  733.      *
  734. -
  735.      * @param Doctrine_Validator_ErrorStack          errorStack to be assigned for this record
  736. -
  737.      * @return void|Doctrine_Validator_ErrorStack   returns the errorStack associated with this record
  738. -
  739.      */
  740. -
  741.     public function errorStack($stack null)
  742. -
  743.     {
  744. -
  745.         if($stack !== null{
  746. -
  747.             if($stack instanceof Doctrine_Validator_ErrorStack)) {
  748. -
  749.                throw new Doctrine_Record_Exception('Argument should be an instance of Doctrine_Validator_ErrorStack.');
  750. -
  751.             }
  752. -
  753.             $this->_errorStack = $stack;
  754. -
  755.         else {
  756. -
  757.             return $this->_errorStack;
  758. -
  759.         }
  760. -
  761.     }
  762. -
  763.     /**
  764. -
  765.      * setDefaultValues
  766. -
  767.      * sets the default values for records internal data
  768. -
  769.      *
  770. -
  771.      * @param boolean $overwrite                whether or not to overwrite the already set values
  772. -
  773.      * @return boolean 
  774. -
  775.      */
  776. -
  777.     public function assignDefaultValues($overwrite false)
  778. -
  779.     {
  780. -
  781.         if $this->_table->hasDefaultValues()) {
  782. -
  783.             return false;
  784. -
  785.         }
  786. -
  787.         foreach ($this->_data as $column => $value{
  788. -
  789.             $default $this->_table->getDefaultValueOf($column);
  790. -
  791.  
  792. -
  793.             if ($default === null{
  794. -
  795.                 $default self::$_null;
  796. -
  797.             }
  798. -
  799.  
  800. -
  801.             if ($value === self::$_null || $overwrite{
  802. -
  803.                 $this->_data[$column$default;
  804. -
  805.                 $this->_modified[]    $column;
  806. -
  807.                 $this->_state = Doctrine_Record::STATE_TDIRTY;
  808. -
  809.             }
  810. -
  811.         }
  812. -
  813.     }
  814. -
  815.     /**
  816. -
  817.      * cleanData
  818. -
  819.      *
  820. -
  821.      * @param array $data       data array to be cleaned
  822. -
  823.      * @return integer 
  824. -
  825.      */
  826. -
  827.     public function cleanData(&$data)
  828. -
  829.     {
  830. -
  831.         $tmp $data;
  832. -
  833.         $data array();
  834. -
  835.  
  836. -
  837.         foreach ($this->getTable()->getColumnNames(as $name{
  838. -
  839.             if isset($tmp[$name])) {
  840. -
  841.                 $data[$nameself::$_null;
  842. -
  843.             else {
  844. -
  845.                 $data[$name$tmp[$name];
  846. -
  847.             }
  848. -
  849.             unset($tmp[$name]);
  850. -
  851.         }
  852. -
  853.  
  854. -
  855.         return $tmp;
  856. -
  857.     }
  858. -
  859.     /**
  860. -
  861.      * hydrate
  862. -
  863.      * hydrates this object from given array
  864. -
  865.      *
  866. -
  867.      * @param array $data 
  868. -
  869.      * @return boolean 
  870. -
  871.      */
  872. -
  873.     public function hydrate(array $data)
  874. -
  875.     {
  876. -
  877.         $this->_values $this->cleanData($data);
  878. -
  879.         $this->_data   = array_merge($this->_data$data);
  880. -
  881.  
  882. -
  883.         $this->prepareIdentifiers(true);
  884. -
  885.     }
  886. -
  887.     /**
  888. -
  889.      * prepareIdentifiers
  890. -
  891.      * prepares identifiers for later use
  892. -
  893.      *
  894. -
  895.      * @param boolean $exists               whether or not this record exists in persistent data store
  896. -
  897.      * @return void 
  898. -
  899.      */
  900. -
  901.     private function prepareIdentifiers($exists true)
  902. -
  903.     {
  904. -
  905.         switch ($this->_table->getIdentifierType()) {
  906. -
  907.             case Doctrine::IDENTIFIER_AUTOINC:
  908. -
  909.             case Doctrine::IDENTIFIER_SEQUENCE:
  910. -
  911.             case Doctrine::IDENTIFIER_NATURAL:
  912. -
  913.                 $name $this->_table->getIdentifier();
  914. -
  915.  
  916. -
  917.                 if ($exists{
  918. -
  919.                     if (isset($this->_data[$name]&& $this->_data[$name!== self::$_null{
  920. -
  921.                         $this->_id[$name$this->_data[$name];
  922. -
  923.                     }
  924. -
  925.                 }
  926. -
  927.                 break;
  928. -
  929.             case Doctrine::IDENTIFIER_COMPOSITE:
  930. -
  931.                 $names $this->_table->getIdentifier();
  932. -
  933.  
  934. -
  935.                 foreach ($names as $name{
  936. -
  937.                     if ($this->_data[$name=== self::$_null{
  938. -
  939.                         $this->_id[$namenull;
  940. -
  941.                     else {
  942. -
  943.                         $this->_id[$name$this->_data[$name];
  944. -
  945.                     }
  946. -
  947.                 }
  948. -
  949.                 break;
  950. -
  951.         }
  952. -
  953.     }
  954. -
  955.     /**
  956. -
  957.      * serialize
  958. -
  959.      * this method is automatically called when this Doctrine_Record is serialized
  960. -
  961.      *
  962. -
  963.      * @return array 
  964. -
  965.      */
  966. -
  967.     public function serialize()
  968. -
  969.     {
  970. -
  971.         $event new Doctrine_Event($thisDoctrine_Event::RECORD_SERIALIZE);
  972. -
  973.  
  974. -
  975.         $this->preSerialize($event);
  976. -
  977.  
  978. -
  979.         $vars get_object_vars($this);
  980. -
  981.  
  982. -
  983.         unset($vars['_references']);
  984. -
  985.         unset($vars['_table']);
  986. -
  987.         unset($vars['_errorStack']);
  988. -
  989.         unset($vars['_filter']);
  990. -
  991.         unset($vars['_modified']);
  992. -
  993.         unset($vars['_node']);
  994. -
  995.  
  996. -
  997.         $name $this->_table->getIdentifier();
  998. -
  999.         $this->_data array_merge($this->_data$this->_id);
  1000. -
  1001.  
  1002. -
  1003.         foreach ($this->_data as $k => $v{
  1004. -
  1005.             if ($v instanceof Doctrine_Record && $this->_table->getTypeOf($k!= 'object'{
  1006. -
  1007.                 unset($vars['_data'][$k]);
  1008. -
  1009.             elseif ($v === self::$_null{
  1010. -
  1011.                 unset($vars['_data'][$k]);
  1012. -
  1013.             else {
  1014. -
  1015.                 switch ($this->_table->getTypeOf($k)) {
  1016. -
  1017.                     case 'array':
  1018. -
  1019.                     case 'object':
  1020. -
  1021.                         $vars['_data'][$kserialize($vars['_data'][$k]);
  1022. -
  1023.                         break;
  1024. -
  1025.                     case 'gzip':
  1026. -
  1027.                         $vars['_data'][$kgzcompress($vars['_data'][$k]);
  1028. -
  1029.                         break;
  1030. -
  1031.                     case 'enum':
  1032. -
  1033.                         $vars['_data'][$k$this->_table->enumIndex($k$vars['_data'][$k]);
  1034. -
  1035.                         break;
  1036. -
  1037.                 }
  1038. -
  1039.             }
  1040. -
  1041.         }
  1042. -
  1043.  
  1044. -
  1045.         $str serialize($vars);
  1046. -
  1047.         
  1048. -
  1049.         $this->postSerialize($event);
  1050. -
  1051.  
  1052. -
  1053.         return $str;
  1054. -
  1055.     }
  1056. -
  1057.     /**
  1058. -
  1059.      * unseralize
  1060. -
  1061.      * this method is automatically called everytime a Doctrine_Record object is unserialized
  1062. -
  1063.      *
  1064. -
  1065.      * @param string $serialized                Doctrine_Record as serialized string
  1066. -
  1067.      * @throws Doctrine_Record_Exception        if the cleanData operation fails somehow
  1068. -
  1069.      * @return void 
  1070. -
  1071.      */
  1072. -
  1073.     public function unserialize($serialized)
  1074. -
  1075.     {
  1076. -
  1077.         $event new Doctrine_Event($thisDoctrine_Event::RECORD_UNSERIALIZE);
  1078. -
  1079.  
  1080. -
  1081.         $this->preUnserialize($event);
  1082. -
  1083.  
  1084. -
  1085.         $manager    Doctrine_Manager::getInstance();
  1086. -
  1087.         $connection $manager->getConnectionForComponent(get_class($this));
  1088. -
  1089.  
  1090. -
  1091.         $this->_oid self::$_index;
  1092. -
  1093.         self::$_index++;
  1094. -
  1095.  
  1096. -
  1097.         $this->_table $connection->getTable(get_class($this));
  1098. -
  1099.  
  1100. -
  1101.         $array unserialize($serialized);
  1102. -
  1103.  
  1104. -
  1105.         foreach($array as $k => $v{
  1106. -
  1107.             $this->$k $v;
  1108. -
  1109.         }
  1110. -
  1111.  
  1112. -
  1113.         foreach ($this->_data as $k => $v{
  1114. -
  1115.  
  1116. -
  1117.             switch ($this->_table->getTypeOf($k)) {
  1118. -
  1119.                 case 'array':
  1120. -
  1121.                 case 'object':
  1122. -
  1123.                     $this->_data[$kunserialize($this->_data[$k]);
  1124. -
  1125.                     break;
  1126. -
  1127.                 case 'gzip':
  1128. -
  1129.                    $this->_data[$kgzuncompress($this->_data[$k]);
  1130. -
  1131.                     break;
  1132. -
  1133.                 case 'enum':
  1134. -
  1135.                     $this->_data[$k$this->_table->enumValue($k$this->_data[$k]);
  1136. -
  1137.                     break;
  1138. -
  1139.                 
  1140. -
  1141.             }
  1142. -
  1143.         }
  1144. -
  1145.         
  1146. -
  1147.         $this->_table->getRepository()->add($this);
  1148. -
  1149.         $this->_filter new Doctrine_Record_Filter($this);
  1150. -
  1151.  
  1152. -
  1153.         $this->cleanData($this->_data);
  1154. -
  1155.  
  1156. -
  1157.         $this->prepareIdentifiers($this->exists());
  1158. -
  1159.         
  1160. -
  1161.         $this->postUnserialize($event);
  1162. -
  1163.     }
  1164. -
  1165.     /**
  1166. -
  1167.      * state
  1168. -
  1169.      * returns / assigns the state of this record
  1170. -
  1171.      *
  1172. -
  1173.      * @param integer|string$state                 if set, this method tries to set the record state to $state
  1174. -
  1175.      * @see Doctrine_Record::STATE_* constants
  1176. -
  1177.      *
  1178. -
  1179.      * @throws Doctrine_Record_State_Exception      if trying to set an unknown state
  1180. -
  1181.      * @return null|integer
  1182. -
  1183.      */
  1184. -
  1185.     public function state($state null)
  1186. -
  1187.     {
  1188. -
  1189.         if ($state == null{
  1190. -
  1191.             return $this->_state;
  1192. -
  1193.         }
  1194. -
  1195.         $err false;
  1196. -
  1197.         if (is_integer($state)) {
  1198. -
  1199.             if ($state >= && $state <= 6{
  1200. -
  1201.                 $this->_state $state;
  1202. -
  1203.             else {
  1204. -
  1205.                 $err true;
  1206. -
  1207.             }
  1208. -
  1209.         elseif (is_string($state)) {
  1210. -
  1211.             $upper strtoupper($state);
  1212. -
  1213.             
  1214. -
  1215.             $const 'Doctrine_Record::STATE_' $upper;
  1216. -
  1217.             if (defined($const)) {
  1218. -
  1219.                 $this->_state constant($const);  
  1220. -
  1221.             else {
  1222. -
  1223.                 $err true;
  1224. -
  1225.             }
  1226. -
  1227.         }
  1228. -
  1229.  
  1230. -
  1231.         if ($this->_state === Doctrine_Record::STATE_TCLEAN ||
  1232. -
  1233.             $this->_state === Doctrine_Record::STATE_CLEAN{
  1234. -
  1235.  
  1236. -
  1237.             $this->_modified array();
  1238. -
  1239.         }
  1240. -
  1241.  
  1242. -
  1243.         if ($err{
  1244. -
  1245.             throw new Doctrine_Record_State_Exception('Unknown record state ' $state);
  1246. -
  1247.         }
  1248. -
  1249.     }
  1250. -
  1251.     /**
  1252. -
  1253.      * refresh
  1254. -
  1255.      * refresh internal data from the database
  1256. -
  1257.      *
  1258. -
  1259.      * @throws Doctrine_Record_Exception        When the refresh operation fails (when the database row
  1260. -
  1261.      *                                           this record represents does not exist anymore)
  1262. -
  1263.      * @return boolean 
  1264. -
  1265.      */
  1266. -
  1267.     public function refresh()
  1268. -
  1269.     {
  1270. -
  1271.         $id $this->identifier();
  1272. -
  1273.         if is_array($id)) {
  1274. -
  1275.             $id array($id);
  1276. -
  1277.         }
  1278. -
  1279.         if (empty($id)) {
  1280. -
  1281.             return false;
  1282. -
  1283.         }
  1284. -
  1285.         $id array_values($id);
  1286. -
  1287.  
  1288. -
  1289.         $records Doctrine_Query::create()
  1290. -
  1291.                    ->from($this->_table->getComponentName())
  1292. -
  1293.                    ->where(implode(' = ? AND '$this->_table->getPrimaryKeys()) ' = ?')
  1294. -
  1295.                    ->execute($id);
  1296. -
  1297.  
  1298. -
  1299.  
  1300. -
  1301.         if (count($records=== 0{
  1302. -
  1303.             throw new Doctrine_Record_Exception('Failed to refresh. Record does not exist.');
  1304. -
  1305.         }
  1306. -
  1307.  
  1308. -
  1309.         $this->_modified array();
  1310. -
  1311.  
  1312. -
  1313.         $this->prepareIdentifiers();
  1314. -
  1315.  
  1316. -
  1317.         $this->_state    Doctrine_Record::STATE_CLEAN;
  1318. -
  1319.  
  1320. -
  1321.         return $this;
  1322. -
  1323.     }
  1324. -
  1325.     
  1326. -
  1327.     /**
  1328. -
  1329.      * refresh
  1330. -
  1331.      * refres data of related objects from the database
  1332. -
  1333.      *
  1334. -
  1335.      * @param string $name              name of a related component.
  1336. -
  1337.      *                                   if set, this method only refreshes the specified related component
  1338. -
  1339.      *
  1340. -
  1341.      * @return Doctrine_Record          this object
  1342. -
  1343.      */
  1344. -
  1345.     public function refreshRelated($name null)
  1346. -
  1347.     {
  1348. -
  1349.         if (is_null($name)) {
  1350. -
  1351.             foreach ($this->_table->getRelations(as $rel{
  1352. -
  1353.                 $this->_references[$rel->getAlias()$rel->fetchRelatedFor($this);
  1354. -
  1355.             }
  1356. -
  1357.         else {
  1358. -
  1359.             $rel $this->_table->getRelation($name);
  1360. -
  1361.             $this->_references[$name$rel->fetchRelatedFor($this);
  1362. -
  1363.         }
  1364. -
  1365.     }
  1366. -
  1367.     
  1368. -
  1369.     /**
  1370. -
  1371.      * getTable
  1372. -
  1373.      * returns the table object for this record
  1374. -
  1375.      *
  1376. -
  1377.      * @return object Doctrine_Table        a Doctrine_Table object
  1378. -
  1379.      */
  1380. -
  1381.     public function getTable()
  1382. -
  1383.     {
  1384. -
  1385.         return $this->_table;
  1386. -
  1387.     }
  1388. -
  1389.     /**
  1390. -
  1391.      * getData
  1392. -
  1393.      * return all the internal data
  1394. -
  1395.      *
  1396. -
  1397.      * @return array                        an array containing all the properties
  1398. -
  1399.      */
  1400. -
  1401.     public function getData()
  1402. -
  1403.     {
  1404. -
  1405.         return $this->_data;
  1406. -
  1407.     }
  1408. -
  1409.     /**
  1410. -
  1411.      * rawGet
  1412. -
  1413.      * returns the value of a property, if the property is not yet loaded
  1414. -
  1415.      * this method does NOT load it
  1416. -
  1417.      *
  1418. -
  1419.      * @param $name                         name of the property
  1420. -
  1421.      * @throws Doctrine_Record_Exception    if trying to get an unknown property
  1422. -
  1423.      * @return mixed 
  1424. -
  1425.      */
  1426. -
  1427.  
  1428. -
  1429.     public function rawGet($name)
  1430. -
  1431.     {
  1432. -
  1433.         if isset($this->_data[$name])) {
  1434. -
  1435.             throw new Doctrine_Record_Exception('Unknown property '$name);
  1436. -
  1437.         }
  1438. -
  1439.         if ($this->_data[$name=== self::$_null)
  1440. -
  1441.             return null;
  1442. -
  1443.  
  1444. -
  1445.         return $this->_data[$name];
  1446. -
  1447.     }
  1448. -
  1449.  
  1450. -
  1451.     /**
  1452. -
  1453.      * load
  1454. -
  1455.      * loads all the unitialized properties from the database
  1456. -
  1457.      *
  1458. -
  1459.      * @return boolean 
  1460. -
  1461.      */
  1462. -
  1463.     public function load()
  1464. -
  1465.     {
  1466. -
  1467.         // only load the data from database if the Doctrine_Record is in proxy state
  1468. -
  1469.         if ($this->_state == Doctrine_Record::STATE_PROXY{
  1470. -
  1471.             $this->refresh();
  1472. -
  1473.  
  1474. -
  1475.             $this->_state Doctrine_Record::STATE_CLEAN;
  1476. -
  1477.  
  1478. -
  1479.             return true;
  1480. -
  1481.         }
  1482. -
  1483.         return false;
  1484. -
  1485.     }
  1486. -
  1487.     /**
  1488. -
  1489.      * get
  1490. -
  1491.      * returns a value of a property or a related component
  1492. -
  1493.      *
  1494. -
  1495.      * @param mixed $name                       name of the property or related component
  1496. -
  1497.      * @param boolean $load                     whether or not to invoke the loading procedure
  1498. -
  1499.      * @throws Doctrine_Record_Exception        if trying to get a value of unknown property / related component
  1500. -
  1501.      * @return mixed 
  1502. -
  1503.      */
  1504. -
  1505.     public function get($name$load true)
  1506. -
  1507.     {
  1508. -
  1509.         $value self::$_null;
  1510. -
  1511.         $lower strtolower($name);
  1512. -
  1513.  
  1514. -
  1515.         $lower $this->_table->getColumnName($lower);
  1516. -
  1517.  
  1518. -
  1519.         if (isset($this->_data[$lower])) {
  1520. -
  1521.             // check if the property is null (= it is the Doctrine_Null object located in self::$_null)
  1522. -
  1523.             if ($this->_data[$lower=== self::$_null && $load{
  1524. -
  1525.                 $this->load();
  1526. -
  1527.             }
  1528. -
  1529.  
  1530. -
  1531.             if ($this->_data[$lower=== self::$_null{
  1532. -
  1533.                 $value null;
  1534. -
  1535.             else {
  1536. -
  1537.                 $value $this->_data[$lower];
  1538. -
  1539.             }
  1540. -
  1541.             return $value;
  1542. -
  1543.         }
  1544. -
  1545.  
  1546. -
  1547.         if (isset($this->_id[$lower])) {
  1548. -
  1549.             return $this->_id[$lower];
  1550. -
  1551.         }
  1552. -
  1553.         if ($name === $this->_table->getIdentifier()) {
  1554. -
  1555.             return null;
  1556. -
  1557.         }
  1558. -
  1559.         if (isset($this->_values[$lower])) {
  1560. -
  1561.             return $this->_values[$lower];
  1562. -
  1563.         }
  1564. -
  1565.  
  1566. -
  1567.         try {
  1568. -
  1569.  
  1570. -
  1571.             if isset($this->_references[$name]&& $load{
  1572. -
  1573.  
  1574. -
  1575.                 $rel $this->_table->getRelation($name);
  1576. -
  1577.  
  1578. -
  1579.                 $this->_references[$name$rel->fetchRelatedFor($this);
  1580. -
  1581.             }
  1582. -
  1583.  
  1584. -
  1585.         catch(Doctrine_Table_Exception $e
  1586. -
  1587.             throw new Doctrine_Record_Exception("Unknown property / related component '$name'.");
  1588. -
  1589.         }
  1590. -
  1591.  
  1592. -
  1593.         return $this->_references[$name];
  1594. -
  1595.     }
  1596. -
  1597.     /**
  1598. -
  1599.      * mapValue
  1600. -
  1601.      * This simple method is used for mapping values to $values property.
  1602. -
  1603.      * Usually this method is used internally by Doctrine for the mapping of
  1604. -
  1605.      * aggregate values.
  1606. -
  1607.      *
  1608. -
  1609.      * @param string $name                  the name of the mapped value
  1610. -
  1611.      * @param mixed $value                  mixed value to be mapped
  1612. -
  1613.      * @return void 
  1614. -
  1615.      */
  1616. -
  1617.     public function mapValue($name$value)
  1618. -
  1619.     {
  1620. -
  1621.         $name strtolower($name);
  1622. -
  1623.         $this->_values[$name$value;
  1624. -
  1625.     }
  1626. -
  1627.     /**
  1628. -
  1629.      * set
  1630. -
  1631.      * method for altering properties and Doctrine_Record references
  1632. -
  1633.      * if the load parameter is set to false this method will not try to load uninitialized record data
  1634. -
  1635.      *
  1636. -
  1637.      * @param mixed $name                   name of the property or reference
  1638. -
  1639.      * @param mixed $value                  value of the property or reference
  1640. -
  1641.      * @param boolean $load                 whether or not to refresh / load the uninitialized record data
  1642. -
  1643.      *
  1644. -
  1645.      * @throws Doctrine_Record_Exception    if trying to set a value for unknown property / related component
  1646. -
  1647.      * @throws Doctrine_Record_Exception    if trying to set a value of wrong type for related component
  1648. -
  1649.      *
  1650. -
  1651.      * @return Doctrine_Record 
  1652. -
  1653.      */
  1654. -
  1655.     public function set($name$value$load true)
  1656. -
  1657.     {
  1658. -
  1659.         $lower strtolower($name);
  1660. -
  1661.  
  1662. -
  1663.         $lower $this->_table->getColumnName($lower);
  1664. -
  1665.  
  1666. -
  1667.         if (isset($this->_data[$lower])) {
  1668. -
  1669.             if ($value instanceof Doctrine_Record{
  1670. -
  1671.                 $type $this->_table->getTypeOf($name);
  1672. -
  1673.  
  1674. -
  1675.                 $id $value->getIncremented();
  1676. -
  1677.  
  1678. -
  1679.                 if ($id !== null && $type !== 'object'{
  1680. -
  1681.                     $value $id;
  1682. -
  1683.                 }
  1684. -
  1685.             }
  1686. -
  1687.  
  1688. -
  1689.             if ($load{
  1690. -
  1691.                 $old $this->get($lower$load);
  1692. -
  1693.             else {
  1694. -
  1695.                 $old $this->_data[$lower];
  1696. -
  1697.             }
  1698. -
  1699.  
  1700. -
  1701.             if ($old !== $value{
  1702. -
  1703.                 if ($value === null{
  1704. -
  1705.                     $value self::$_null;
  1706. -
  1707.                 }
  1708. -
  1709.  
  1710. -
  1711.                 $this->_data[$lower$value;
  1712. -
  1713.                 $this->_modified[]   $lower;
  1714. -
  1715.                 switch ($this->_state{
  1716. -
  1717.                     case Doctrine_Record::STATE_CLEAN:
  1718. -
  1719.                         $this->_state Doctrine_Record::STATE_DIRTY;
  1720. -
  1721.                         break;
  1722. -
  1723.                     case Doctrine_Record::STATE_TCLEAN:
  1724. -
  1725.                         $this->_state Doctrine_Record::STATE_TDIRTY;
  1726. -
  1727.                         break;
  1728. -
  1729.                 }
  1730. -
  1731.             }
  1732. -
  1733.         else {
  1734. -
  1735.             try {
  1736. -
  1737.                 $this->coreSetRelated($name$value);
  1738. -
  1739.             catch(Doctrine_Table_Exception $e{
  1740. -
  1741.                 throw new Doctrine_Record_Exception("Unknown property / related component '$name'.");
  1742. -
  1743.             }
  1744. -
  1745.         }
  1746. -
  1747.     }
  1748. -
  1749.  
  1750. -
  1751.     public function coreSetRelated($name$value)
  1752. -
  1753.     {
  1754. -
  1755.         $rel $this->_table->getRelation($name);
  1756. -
  1757.  
  1758. -
  1759.         // one-to-many or one-to-one relation
  1760. -
  1761.         if ($rel instanceof Doctrine_Relation_ForeignKey ||
  1762. -
  1763.             $rel instanceof Doctrine_Relation_LocalKey{
  1764. -
  1765.             if $rel->isOneToOne()) {
  1766. -
  1767.                 // one-to-many relation found
  1768. -
  1769.                 if ($value instanceof Doctrine_Collection)) {
  1770. -
  1771.                     throw new Doctrine_Record_Exception("Couldn't call Doctrine::set(), second argument should be an instance of Doctrine_Collection when setting one-to-many references.");
  1772. -
  1773.                 }
  1774. -
  1775.                 if (isset($this->_references[$name])) {
  1776. -
  1777.                     $this->_references[$name]->setData($value->getData());
  1778. -
  1779.                     return $this;
  1780. -
  1781.                 }
  1782. -
  1783.             else {
  1784. -
  1785.                 if ($value !== self::$_null{
  1786. -
  1787.                     // one-to-one relation found
  1788. -
  1789.                     if ($value instanceof Doctrine_Record)) {
  1790. -
  1791.                         throw new Doctrine_Record_Exception("Couldn't call Doctrine::set(), second argument should be an instance of Doctrine_Record or Doctrine_Null when setting one-to-one references.");
  1792. -
  1793.                     }
  1794. -
  1795.                     if ($rel instanceof Doctrine_Relation_LocalKey{
  1796. -
  1797.                         $foreign $rel->getForeign();
  1798. -
  1799.                         if (!empty($foreign&& $foreign != $value->getTable()->getIdentifier())
  1800. -
  1801.                           $this->set($rel->getLocal()$value->rawGet($foreign)false);
  1802. -
  1803.                         else
  1804. -
  1805.                           $this->set($rel->getLocal()$valuefalse);                          
  1806. -
  1807.                     else {
  1808. -
  1809.                         $value->set($rel->getForeign()$thisfalse);
  1810. -
  1811.                     }                            
  1812. -
  1813.                 }
  1814. -
  1815.             }
  1816. -
  1817.  
  1818. -
  1819.         elseif ($rel instanceof Doctrine_Relation_Association{
  1820. -
  1821.             // join table relation found
  1822. -
  1823.             if ($value instanceof Doctrine_Collection)) {
  1824. -
  1825.                 throw new Doctrine_Record_Exception("Couldn't call Doctrine::set(), second argument should be an instance of Doctrine_Collection when setting many-to-many references.");
  1826. -
  1827.             }
  1828. -
  1829.         }
  1830. -
  1831.  
  1832. -
  1833.         $this->_references[$name$value;
  1834. -
  1835.     }
  1836. -
  1837.     /**
  1838. -
  1839.      * contains
  1840. -
  1841.      *
  1842. -
  1843.      * @param string $name 
  1844. -
  1845.      * @return boolean 
  1846. -
  1847.      */
  1848. -
  1849.     public function contains($name)
  1850. -
  1851.     {
  1852. -
  1853.         $lower strtolower($name);
  1854. -
  1855.  
  1856. -
  1857.         if (isset($this->_data[$lower])) {
  1858. -
  1859.             return true;
  1860. -
  1861.         }
  1862. -
  1863.         if (isset($this->_id[$lower])) {
  1864. -
  1865.             return true;
  1866. -
  1867.         }
  1868. -
  1869.         if (isset($this->_values[$lower])) {
  1870. -
  1871.             return true;                                      
  1872. -
  1873.         }
  1874. -
  1875.         if (isset($this->_references[$name]&& 
  1876. -
  1877.             $this->_references[$name!== self::$_null{
  1878. -
  1879.  
  1880. -
  1881.             return true;
  1882. -
  1883.         }
  1884. -
  1885.         return false;
  1886. -
  1887.     }
  1888. -
  1889.     /**
  1890. -
  1891.      * @param string $name 
  1892. -
  1893.      * @return void 
  1894. -
  1895.      */
  1896. -
  1897.     public function __unset($name)
  1898. -
  1899.     {
  1900. -
  1901.         if (isset($this->_data[$name])) {
  1902. -
  1903.             $this->_data[$namearray();
  1904. -
  1905.         }
  1906. -
  1907.         // todo: what to do with references ?
  1908. -
  1909.     }
  1910. -
  1911.     /**
  1912. -
  1913.      * applies the changes made to this object into database
  1914. -
  1915.      * this method is smart enough to know if any changes are made
  1916. -
  1917.      * and whether to use INSERT or UPDATE statement
  1918. -
  1919.      *
  1920. -
  1921.      * this method also saves the related components
  1922. -
  1923.      *
  1924. -
  1925.      * @param Doctrine_Connection $conn                 optional connection parameter
  1926. -
  1927.      * @return void 
  1928. -
  1929.      */
  1930. -
  1931.     public function save(Doctrine_Connection $conn null)
  1932. -
  1933.     {
  1934. -
  1935.         if ($conn === null{
  1936. -
  1937.             $conn $this->_table->getConnection();
  1938. -
  1939.         }
  1940. -
  1941.         $conn->unitOfWork->saveGraph($this);
  1942. -
  1943.     }
  1944. -
  1945.     /**
  1946. -
  1947.      * Tries to save the object and all its related components.
  1948. -
  1949.      * In contrast to Doctrine_Record::save(), this method does not
  1950. -
  1951.      * throw an exception when validation fails but returns TRUE on
  1952. -
  1953.      * success or FALSE on failure.
  1954. -
  1955.      * 
  1956. -
  1957.      * @param Doctrine_Connection $conn                 optional connection parameter
  1958. -
  1959.      * @return TRUE if the record was saved sucessfully without errors, FALSE otherwise.
  1960. -
  1961.      */
  1962. -
  1963.     public function trySave(Doctrine_Connection $conn null{
  1964. -
  1965.         try {
  1966. -
  1967.             $this->save($conn);
  1968. -
  1969.             return true;
  1970. -
  1971.         catch (Doctrine_Validator_Exception $ignored{
  1972. -
  1973.             return false;
  1974. -
  1975.         }
  1976. -
  1977.     }
  1978. -
  1979.     /**
  1980. -
  1981.      * replace
  1982. -
  1983.      * Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT
  1984. -
  1985.      * query, except that if there is already a row in the table with the same
  1986. -
  1987.      * key field values, the REPLACE query just updates its values instead of
  1988. -
  1989.      * inserting a new row.
  1990. -
  1991.      *
  1992. -
  1993.      * The REPLACE type of query does not make part of the SQL standards. Since
  1994. -
  1995.      * practically only MySQL and SQLIte implement it natively, this type of
  1996. -
  1997.      * query isemulated through this method for other DBMS using standard types
  1998. -
  1999.      * of queries inside a transaction to assure the atomicity of the operation.
  2000. -
  2001.      *
  2002. -
  2003.      * @param Doctrine_Connection $conn             optional connection parameter
  2004. -
  2005.      * @throws Doctrine_Connection_Exception        if some of the key values was null
  2006. -
  2007.      * @throws Doctrine_Connection_Exception        if there were no key fields
  2008. -
  2009.      * @throws PDOException                         if something fails at PDO level
  2010. -
  2011.      * @return integer                              number of rows affected
  2012. -
  2013.      */
  2014. -
  2015.     public function replace(Doctrine_Connection $conn null)
  2016. -
  2017.     {
  2018. -
  2019.         if ($conn === null{
  2020. -
  2021.             $conn $this->_table->getConnection();
  2022. -
  2023.         }
  2024. -
  2025.  
  2026. -
  2027.         return $conn->replace($this->_table->getTableName()$this->getPrepared()$this->id);
  2028. -
  2029.     }
  2030. -
  2031.     /**
  2032. -
  2033.      * returns an array of modified fields and associated values
  2034. -
  2035.      * @return array 
  2036. -
  2037.      */
  2038. -
  2039.     public function getModified()
  2040. -
  2041.     {
  2042. -
  2043.         $a array();
  2044. -
  2045.  
  2046. -
  2047.         foreach ($this->_modified as $k => $v{
  2048. -
  2049.             $a[$v$this->_data[$v];
  2050. -
  2051.         }
  2052. -
  2053.         return $a;
  2054. -
  2055.     }
  2056. -
  2057.     /**
  2058. -
  2059.      * getPrepared
  2060. -
  2061.      *
  2062. -
  2063.      * returns an array of modified fields and values with data preparation
  2064. -
  2065.      * adds column aggregation inheritance and converts Records into primary key values
  2066. -
  2067.      *
  2068. -
  2069.      * @param array $array 
  2070. -
  2071.      * @return array 
  2072. -
  2073.      */
  2074. -
  2075.     public function getPrepared(array $array array()) 
  2076. -
  2077.     {
  2078. -
  2079.         $a array();
  2080. -
  2081.  
  2082. -
  2083.         if (empty($array)) {
  2084. -
  2085.             $array $this->_modified;
  2086. -
  2087.         }
  2088. -
  2089.  
  2090. -
  2091.         foreach ($array as $k => $v{
  2092. -
  2093.             $type $this->_table->getTypeOf($v);
  2094. -
  2095.  
  2096. -
  2097.             if ($this->_data[$v=== self::$_null{
  2098. -
  2099.                 $a[$vnull;
  2100. -
  2101.                 continue;
  2102. -
  2103.             }
  2104. -
  2105.  
  2106. -
  2107.             switch ($type{
  2108. -
  2109.                 case 'array':
  2110. -
  2111.                 case 'object':
  2112. -
  2113.                     $a[$vserialize($this->_data[$v]);
  2114. -
  2115.                     break;
  2116. -
  2117.                 case 'gzip':
  2118. -
  2119.                     $a[$vgzcompress($this->_data[$v],5);
  2120. -
  2121.                     break;
  2122. -
  2123.                 case 'boolean':
  2124. -
  2125.                     $a[$v$this->getTable()->getConnection()->convertBooleans($this->_data[$v]);
  2126. -
  2127.                 break;
  2128. -
  2129.                 case 'enum':
  2130. -
  2131.                     $a[$v$this->_table->enumIndex($v$this->_data[$v]);
  2132. -
  2133.                     break;
  2134. -
  2135.                 default:
  2136. -
  2137.                     if ($this->_data[$vinstanceof Doctrine_Record{
  2138. -
  2139.                         $this->_data[$v$this->_data[$v]->getIncremented();
  2140. -
  2141.                     }
  2142. -
  2143.                     /** TODO:
  2144. -
  2145.                     if ($this->_data[$v] === null) {
  2146. -
  2147.                         throw new Doctrine_Record_Exception('Unexpected null value.');
  2148. -
  2149.                     }
  2150. -
  2151.                     */
  2152. -
  2153.  
  2154. -
  2155.                     $a[$v$this->_data[$v];
  2156. -
  2157.             }
  2158. -
  2159.         }
  2160. -
  2161.         $map $this->_table->inheritanceMap;
  2162. -
  2163.         foreach ($map as $k => $v{
  2164. -
  2165.             $old $this->get($kfalse);
  2166. -
  2167.  
  2168. -
  2169.             if ((string) $old !== (string) $v || $old === null{
  2170. -
  2171.                 $a[$k$v;
  2172. -
  2173.                 $this->_data[$k$v;
  2174. -
  2175.             }
  2176. -
  2177.         }
  2178. -
  2179.  
  2180. -
  2181.         return $a;
  2182. -
  2183.     }
  2184. -
  2185.     /**
  2186. -
  2187.      * count
  2188. -
  2189.      * this class implements countable interface
  2190. -
  2191.      *
  2192. -
  2193.      * @return integer          the number of columns in this record
  2194. -
  2195.      */
  2196. -
  2197.     public function count()
  2198. -
  2199.     {
  2200. -
  2201.         return count($this->_data);
  2202. -
  2203.     }
  2204. -
  2205.     /**
  2206. -
  2207.      * alias for count()
  2208. -
  2209.      *
  2210. -
  2211.      * @return integer          the number of columns in this record
  2212. -
  2213.      */
  2214. -
  2215.     public function columnCount()
  2216. -
  2217.     {
  2218. -
  2219.         return $this->count();
  2220. -
  2221.     }
  2222. -
  2223.     /**
  2224. -
  2225.      * toArray
  2226. -
  2227.      * returns the record as an array
  2228. -
  2229.      *
  2230. -
  2231.      * @param boolean $deep - Return also the relations
  2232. -
  2233.      * @return array 
  2234. -
  2235.      */
  2236. -
  2237.     public function toArray($deep false)
  2238. -
  2239.     {
  2240. -
  2241.         $a array();
  2242. -
  2243.  
  2244. -
  2245.         foreach ($this as $column => $value{
  2246. -
  2247.             if ($value === self::$_null{
  2248. -
  2249.                 $value null;
  2250. -
  2251.             }
  2252. -
  2253.             $a[$column$value;
  2254. -
  2255.         }
  2256. -
  2257.         if ($this->_table->getIdentifierType(==  Doctrine::IDENTIFIER_AUTOINC{
  2258. -
  2259.             $i      $this->_table->getIdentifier();
  2260. -
  2261.             $a[$i]  $this->getIncremented();
  2262. -
  2263.         }
  2264. -
  2265.         if ($deep{
  2266. -
  2267.             foreach ($this->_references as $key => $relation{
  2268. -
  2269.                 $a[$key$relation->toArray($deep);
  2270. -
  2271.             }
  2272. -
  2273.         }
  2274. -
  2275.         return array_merge($a$this->_values);
  2276. -
  2277.     }
  2278. -
  2279.     /**
  2280. -
  2281.      * exists
  2282. -
  2283.      * returns true if this record is persistent, otherwise false
  2284. -
  2285.      *
  2286. -
  2287.      * @return boolean 
  2288. -
  2289.      */
  2290. -
  2291.     public function exists()
  2292. -
  2293.     {
  2294. -
  2295.         return ($this->_state !== Doctrine_Record::STATE_TCLEAN &&
  2296. -
  2297.                 $this->_state !== Doctrine_Record::STATE_TDIRTY);
  2298. -
  2299.     }
  2300. -
  2301.     /**
  2302. -
  2303.      * isModified
  2304. -
  2305.      * returns true if this record was modified, otherwise false
  2306. -
  2307.      *
  2308. -
  2309.      * @return boolean 
  2310. -
  2311.      */
  2312. -
  2313.     public function isModified()
  2314. -
  2315.     {
  2316. -
  2317.         return ($this->_state === Doctrine_Record::STATE_DIRTY ||
  2318. -
  2319.                 $this->_state === Doctrine_Record::STATE_TDIRTY);
  2320. -
  2321.     }
  2322. -
  2323.     /**
  2324. -
  2325.      * method for checking existence of properties and Doctrine_Record references
  2326. -
  2327.      * @param mixed $name               name of the property or reference
  2328. -
  2329.      * @return boolean 
  2330. -
  2331.      */
  2332. -
  2333.     public function hasRelation($name)
  2334. -
  2335.     {
  2336. -
  2337.         if (isset($this->_data[$name]|| isset($this->_id[$name])) {
  2338. -
  2339.             return true;
  2340. -
  2341.         }
  2342. -
  2343.         return $this->_table->hasRelation($name);
  2344. -
  2345.     }
  2346. -
  2347.     /**
  2348. -
  2349.      * getIterator
  2350. -
  2351.      * @return Doctrine_Record_Iterator     a Doctrine_Record_Iterator that iterates through the data
  2352. -
  2353.      */
  2354. -
  2355.     public function getIterator()
  2356. -
  2357.     {
  2358. -
  2359.         return new Doctrine_Record_Iterator($this);
  2360. -
  2361.     }
  2362. -
  2363.     /**
  2364. -
  2365.      * deletes this data access object and all the related composites
  2366. -
  2367.      * this operation is isolated by a transaction
  2368. -
  2369.      *
  2370. -
  2371.      * this event can be listened by the onPreDelete and onDelete listeners
  2372. -
  2373.      *
  2374. -
  2375.      * @return boolean      true on success, false on failure
  2376. -
  2377.      */
  2378. -
  2379.     public function delete(Doctrine_Connection $conn null)
  2380. -
  2381.     {
  2382. -
  2383.         if ($conn == null{
  2384. -
  2385.             $conn $this->_table->getConnection();
  2386. -
  2387.         }
  2388. -
  2389.         return $conn->unitOfWork->delete($this);
  2390. -
  2391.     }
  2392. -
  2393.     /**
  2394. -
  2395.      * copy
  2396. -
  2397.      * returns a copy of this object
  2398. -
  2399.      *
  2400. -
  2401.      * @return Doctrine_Record 
  2402. -
  2403.      */
  2404. -
  2405.     public function copy()
  2406. -
  2407.     {
  2408. -
  2409.         $data $this->_data;
  2410. -
  2411.  
  2412. -
  2413.         if ($this->_table->getIdentifierType(=== Doctrine::IDENTIFIER_AUTOINC{
  2414. -
  2415.             $id $this->_table->getIdentifier();
  2416. -
  2417.  
  2418. -
  2419.             unset($data[$id]);
  2420. -
  2421.         }
  2422. -
  2423.  
  2424. -
  2425.         $ret $this->_table->create($data);
  2426. -
  2427.         $modified array();
  2428. -
  2429.  
  2430. -
  2431.         foreach ($data as $key => $val{
  2432. -
  2433.             if ($val instanceof Doctrine_Null)) {
  2434. -
  2435.                 $ret->_modified[$key;
  2436. -
  2437.             }
  2438. -
  2439.         }
  2440. -
  2441.         
  2442. -
  2443.  
  2444. -
  2445.         return $ret;
  2446. -
  2447.     }
  2448. -
  2449.     /**
  2450. -
  2451.      * copyDeep
  2452. -
  2453.      * returns a copy of this object and all its related objects
  2454. -
  2455.      *
  2456. -
  2457.      * @return Doctrine_Record 
  2458. -
  2459.      */
  2460. -
  2461.     public function copyDeep(){
  2462. -
  2463.         $copy $this->copy();
  2464. -
  2465.  
  2466. -
  2467.         foreach ($this->_references as $key => $value{
  2468. -
  2469.             if ($value instanceof Doctrine_Collection{
  2470. -
  2471.                 foreach ($value as $record{
  2472. -
  2473.                     $copy->{$key}[$record->copyDeep();
  2474. -
  2475.                 }
  2476. -
  2477.             else {
  2478. -
  2479.                 $copy->set($key$value->copyDeep());
  2480. -
  2481.             }
  2482. -
  2483.         }
  2484. -
  2485.         return $copy;
  2486. -
  2487.     }
  2488. -
  2489.     
  2490. -
  2491.     /**
  2492. -
  2493.      * assignIdentifier
  2494. -
  2495.      *
  2496. -
  2497.      * @param integer $id 
  2498. -
  2499.      * @return void 
  2500. -
  2501.      */
  2502. -
  2503.     public function assignIdentifier($id false)
  2504. -
  2505.     {
  2506. -
  2507.         if ($id === false{
  2508. -
  2509.             $this->_id       array();
  2510. -
  2511.             $this->_data     $this->_filter->cleanData($this->_data);
  2512. -
  2513.             $this->_state    Doctrine_Record::STATE_TCLEAN;
  2514. -
  2515.             $this->_modified array();
  2516. -
  2517.         elseif ($id === true{
  2518. -
  2519.             $this->prepareIdentifiers(true);
  2520. -
  2521.             $this->_state    Doctrine_Record::STATE_CLEAN;
  2522. -
  2523.             $this->_modified array();
  2524. -
  2525.         else {
  2526. -
  2527.             $name             $this->_table->getIdentifier();   
  2528. -
  2529.             $this->_id[$name$id;
  2530. -
  2531.             $this->_data[$name$id;
  2532. -
  2533.             $this->_state     Doctrine_Record::STATE_CLEAN;
  2534. -
  2535.             $this->_modified  array();
  2536. -
  2537.         }
  2538. -
  2539.     }
  2540. -
  2541.     /**
  2542. -
  2543.      * returns the primary keys of this object
  2544. -
  2545.      *
  2546. -
  2547.      * @return array 
  2548. -
  2549.      */
  2550. -
  2551.     public function identifier()
  2552. -
  2553.     {
  2554. -
  2555.         return $this->_id;
  2556. -
  2557.     }
  2558. -
  2559.     /**
  2560. -
  2561.      * returns the value of autoincremented primary key of this object (if any)
  2562. -
  2563.      *
  2564. -
  2565.      * @return integer 
  2566. -
  2567.      */
  2568. -
  2569.     final public function getIncremented()
  2570. -
  2571.     {
  2572. -
  2573.         $id current($this->_id);
  2574. -
  2575.         if ($id === false{
  2576. -
  2577.             return null;
  2578. -
  2579.         }
  2580. -
  2581.  
  2582. -
  2583.         return $id;
  2584. -
  2585.     }
  2586. -
  2587.     /**
  2588. -
  2589.      * getLast
  2590. -
  2591.      * this method is used internally be Doctrine_Query
  2592. -
  2593.      * it is needed to provide compatibility between
  2594. -
  2595.      * records and collections
  2596. -
  2597.      *
  2598. -
  2599.      * @return Doctrine_Record 
  2600. -
  2601.      */
  2602. -
  2603.     public function getLast()
  2604. -
  2605.     {
  2606. -
  2607.         return $this;
  2608. -
  2609.     }
  2610. -
  2611.     /**
  2612. -
  2613.      * hasRefence
  2614. -
  2615.      * @param string $name 
  2616. -
  2617.      * @return boolean 
  2618. -
  2619.      */
  2620. -
  2621.     public function hasReference($name)
  2622. -
  2623.     {
  2624. -
  2625.         return isset($this->_references[$name]);
  2626. -
  2627.     }
  2628. -
  2629.     /**
  2630. -
  2631.      * obtainReference
  2632. -
  2633.      *
  2634. -
  2635.      * @param string $name 
  2636. -
  2637.      * @throws Doctrine_Record_Exception        if trying to get an unknown related component
  2638. -
  2639.      */
  2640. -
  2641.     public function obtainReference($name)
  2642. -
  2643.     {
  2644. -
  2645.         if (isset($this->_references[$name])) {
  2646. -
  2647.             return $this->_references[$name];
  2648. -
  2649.         }
  2650. -
  2651.         throw new Doctrine_Record_Exception("Unknown reference $name");
  2652. -
  2653.     }
  2654. -
  2655.     /**
  2656. -
  2657.      * getReferences
  2658. -
  2659.      * @return array    all references
  2660. -
  2661.      */
  2662. -
  2663.     public function getReferences()
  2664. -
  2665.     {
  2666. -
  2667.         return $this->_references;
  2668. -
  2669.     }
  2670. -
  2671.     /**
  2672. -
  2673.      * setRelated
  2674. -
  2675.      *
  2676. -
  2677.      * @param string $alias 
  2678. -
  2679.      * @param Doctrine_Access $coll 
  2680. -
  2681.      */
  2682. -
  2683.     final public function setRelated($aliasDoctrine_Access $coll)
  2684. -
  2685.     {
  2686. -
  2687.         $this->_references[$alias$coll;
  2688. -
  2689.     }
  2690. -
  2691.     /**
  2692. -
  2693.      * loadReference
  2694. -
  2695.      * loads a related component
  2696. -
  2697.      *
  2698. -
  2699.      * @throws Doctrine_Table_Exception             if trying to load an unknown related component
  2700. -
  2701.      * @param string $name 
  2702. -
  2703.      * @return void 
  2704. -
  2705.      */
  2706. -
  2707.     public function loadReference($name)
  2708. -
  2709.     {
  2710. -
  2711.         $rel $this->_table->getRelation($name);
  2712. -
  2713.         $this->_references[$name$rel->fetchRelatedFor($this);
  2714. -
  2715.     }
  2716. -
  2717.  
  2718. -
  2719.     /**
  2720. -
  2721.      * merge
  2722. -
  2723.      * merges this record with an array of values
  2724. -
  2725.      *
  2726. -
  2727.      * @param array $values 
  2728. -
  2729.      * @return void 
  2730. -
  2731.      */
  2732. -
  2733.     public function merge(array $values)
  2734. -
  2735.     {
  2736. -
  2737.         foreach ($this->_table->getColumnNames(as $value{
  2738. -
  2739.             try {
  2740. -
  2741.                 if (isset($values[$value])) {
  2742. -
  2743.                     $this->set($value$values[$value]);
  2744. -
  2745.                 }
  2746. -
  2747.             catch(Exception $e{
  2748. -
  2749.                 // silence all exceptions
  2750. -
  2751.             }
  2752. -
  2753.         }
  2754. -
  2755.     }
  2756. -
  2757.     /**
  2758. -
  2759.      * call
  2760. -
  2761.      *
  2762. -
  2763.      * @param string|array$callback    valid callback
  2764. -
  2765.      * @param string $column            column name
  2766. -
  2767.      * @param mixed arg1 ... argN       optional callback arguments
  2768. -
  2769.      * @return Doctrine_Record 
  2770. -
  2771.      */
  2772. -
  2773.     public function call($callback$column)
  2774. -
  2775.     {
  2776. -
  2777.         $args func_get_args();
  2778. -
  2779.         array_shift($args);
  2780. -
  2781.  
  2782. -
  2783.         if (isset($args[0])) {
  2784. -
  2785.             $column $args[0];
  2786. -
  2787.             $args[0$this->get($column);
  2788. -
  2789.  
  2790. -
  2791.             $newvalue call_user_func_array($callback$args);
  2792. -
  2793.  
  2794. -
  2795.             $this->_data[$column$newvalue;
  2796. -
  2797.         }
  2798. -
  2799.         return $this;
  2800. -
  2801.     }
  2802. -
  2803.     /**
  2804. -
  2805.      * getter for node assciated with this record
  2806. -
  2807.      *
  2808. -
  2809.      * @return mixed if tree returns Doctrine_Node otherwise returns false
  2810. -
  2811.      */    
  2812. -
  2813.     public function getNode(
  2814. -
  2815.     {
  2816. -
  2817.         if $this->_table->isTree()) {
  2818. -
  2819.             return false;
  2820. -
  2821.         }
  2822. -
  2823.  
  2824. -
  2825.         if isset($this->_node)) {
  2826. -
  2827.             $this->_node Doctrine_Node::factory($this,
  2828. -
  2829.                                               $this->getTable()->getOption('treeImpl'),
  2830. -
  2831.                                               $this->getTable()->getOption('treeOptions')
  2832. -
  2833.                                               );
  2834. -
  2835.         }
  2836. -
  2837.         
  2838. -
  2839.         return $this->_node;
  2840. -
  2841.     }
  2842. -
  2843.     /**
  2844. -
  2845.      * revert
  2846. -
  2847.      * reverts this record to given version, this method only works if versioning plugin
  2848. -
  2849.      * is enabled
  2850. -
  2851.      *
  2852. -
  2853.      * @throws Doctrine_Record_Exception    if given version does not exist
  2854. -
  2855.      * @param integer $version      an integer > 1
  2856. -
  2857.      * @return Doctrine_Record      this object
  2858. -
  2859.      */
  2860. -
  2861.     public function revert($version)
  2862. -
  2863.     {
  2864. -
  2865.         $data $this->_table
  2866. -
  2867.                 ->getTemplate('Doctrine_Template_Versionable')
  2868. -
  2869.                 ->getAuditLog()
  2870. -
  2871.                 ->getVersion($this$version);
  2872. -
  2873.  
  2874. -
  2875.         if isset($data[0])) {
  2876. -
  2877.             throw new Doctrine_Record_Exception('Version ' $version ' does not exist!');
  2878. -
  2879.         }
  2880. -
  2881.  
  2882. -
  2883.         $this->_data $data[0];
  2884. -
  2885.  
  2886. -
  2887.         return $this;
  2888. -
  2889.     }
  2890. -
  2891.     /**
  2892. -
  2893.      * removeLinks
  2894. -
  2895.      * removes links from this record to given records
  2896. -
  2897.      *
  2898. -
  2899.      * @param string $alias     related component alias
  2900. -
  2901.      * @param array $ids        the identifiers of the related records
  2902. -
  2903.      * @return Doctrine_Record  this object
  2904. -
  2905.      */
  2906. -
  2907.     public function unlink($alias$ids)
  2908. -
  2909.     {
  2910. -
  2911.         $ids = (array) $ids;
  2912. -
  2913.         
  2914. -
  2915.         $q new Doctrine_Query();
  2916. -
  2917.  
  2918. -
  2919.         $rel $this->getTable()->getRelation($alias);
  2920. -
  2921.  
  2922. -
  2923.         if ($rel instanceof Doctrine_Relation_Association{
  2924. -
  2925.             $q->delete()
  2926. -
  2927.               ->from($rel->getAssociationTable()->getComponentName())
  2928. -
  2929.               ->where($rel->getLocal(' = ?'array_values($this->identifier()))
  2930. -
  2931.               ->whereIn($rel->getForeign()$ids);
  2932. -
  2933.  
  2934. -
  2935.             $q->execute();
  2936. -
  2937.  
  2938. -
  2939.  
  2940. -
  2941.         elseif ($rel instanceof Doctrine_Relation_ForeignKey{
  2942. -
  2943.             $q->update($rel->getTable()->getComponentName())
  2944. -
  2945.               ->set($rel->getForeign()'?'array(null))
  2946. -
  2947.               ->addWhere($rel->getForeign(' = ?'array_values($this->identifier()))
  2948. -
  2949.               ->whereIn($rel->getTable()->getIdentifier()$ids);
  2950. -
  2951.  
  2952. -
  2953.             $q->execute();
  2954. -
  2955.         }
  2956. -
  2957.         if (isset($this->_references[$alias])) {
  2958. -
  2959.             foreach ($this->_references[$aliasas $k => $record{
  2960. -
  2961.                 if (in_array(current($record->identifier())$ids)) {
  2962. -
  2963.                     $this->_references[$alias]->remove($k);
  2964. -
  2965.                 }
  2966. -
  2967.             }
  2968. -
  2969.             $this->_references[$alias]->takeSnapshot();
  2970. -
  2971.         }
  2972. -
  2973.         return $this;
  2974. -
  2975.     }
  2976. -
  2977.     /**
  2978. -
  2979.      * __call
  2980. -
  2981.      * this method is a magic method that is being used for method overloading
  2982. -
  2983.      *
  2984. -
  2985.      * the function of this method is to try to find given method from the templates
  2986. -
  2987.      * this record is using and if it finds given method it will execute it
  2988. -
  2989.      *
  2990. -
  2991.      * So, in sense, this method replicates the usage of mixins (as seen in some programming languages)
  2992. -
  2993.      *
  2994. -
  2995.      * @param string $method        name of the method
  2996. -
  2997.      * @param array $args           method arguments
  2998. -
  2999.      * @return mixed                the return value of the given method
  3000. -
  3001.      */
  3002. -
  3003.     public function __call($method$args
  3004. -
  3005.     {
  3006. -
  3007.         foreach ($this->_table->getTemplates(as $template{
  3008. -
  3009.             if (method_exists($template$method)) {
  3010. -
  3011.                 return call_user_func_array(array($template$method)$args);
  3012. -
  3013.             }
  3014. -
  3015.         }
  3016. -
  3017.         
  3018. -
  3019.         throw new Doctrine_Record_Exception('Unknown method ' $method);
  3020. -
  3021.     }
  3022. -
  3023.     /**
  3024. -
  3025.      * used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS AS TREE
  3026. -
  3027.      *
  3028. -
  3029.      */    
  3030. -
  3031.     public function deleteNode({
  3032. -
  3033.         $this->getNode()->delete();
  3034. -
  3035.     }
  3036. -
  3037.     public function toString()
  3038. -
  3039.     {
  3040. -
  3041.         return Doctrine::dump(get_object_vars($this));
  3042. -
  3043.     }
  3044. -
  3045.     /**
  3046. -
  3047.      * returns a string representation of this object
  3048. -
  3049.      */
  3050. -
  3051.     public function __toString()
  3052. -
  3053.     {
  3054. -
  3055.         return (string) $this->_oid;
  3056. -
  3057.     }
  3058. -
  3059. }
  3060. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordAbstract.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordAbstract.php.html deleted file mode 100644 index a27420306..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordAbstract.php.html +++ /dev/null @@ -1,322 +0,0 @@ - -
-

Source for file Abstract.php

-

Documentation is available at Abstract.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Access');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Record_Abstract
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision$
  62. -
  63.  */
  64. -
  65. abstract class Doctrine_Record_Abstract extends Doctrine_Access
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * @param Doctrine_Table $_table     reference to associated Doctrine_Table instance
  72. -
  73.      */
  74. -
  75.     protected $_table;
  76. -
  77.     /**
  78. -
  79.      * addListener
  80. -
  81.      *
  82. -
  83.      * @param Doctrine_EventListener_Interface|Doctrine_Overloadable$listener 
  84. -
  85.      * @return Doctrine_Record 
  86. -
  87.      */
  88. -
  89.     public function addListener($listener$name null)
  90. -
  91.     {
  92. -
  93.         $this->_table->addRecordListener($listener$name null);
  94. -
  95.  
  96. -
  97.         return $this;
  98. -
  99.     }
  100. -
  101.     /**
  102. -
  103.      * getListener
  104. -
  105.      *
  106. -
  107.      * @return Doctrine_EventListener_Interface|Doctrine_Overloadable
  108. -
  109.      */
  110. -
  111.     public function getListener()
  112. -
  113.     {
  114. -
  115.         return $this->_table->getRecordListener();
  116. -
  117.     }
  118. -
  119.     /**
  120. -
  121.      * setListener
  122. -
  123.      *
  124. -
  125.      * @param Doctrine_EventListener_Interface|Doctrine_Overloadable$listener 
  126. -
  127.      * @return Doctrine_Record 
  128. -
  129.      */
  130. -
  131.     public function setListener($listener)
  132. -
  133.     {
  134. -
  135.         $this->_table->setRecordListener($listener);
  136. -
  137.  
  138. -
  139.         return $this;
  140. -
  141.     }
  142. -
  143.     /**
  144. -
  145.      * index
  146. -
  147.      * defines or retrieves an index
  148. -
  149.      * if the second parameter is set this method defines an index
  150. -
  151.      * if not this method retrieves index named $name
  152. -
  153.      *
  154. -
  155.      * @param string $name              the name of the index
  156. -
  157.      * @param array $definition         the definition array
  158. -
  159.      * @return mixed 
  160. -
  161.      */
  162. -
  163.     public function index($namearray $definition array())
  164. -
  165.     {
  166. -
  167.         if $definition{
  168. -
  169.             return $this->_table->getIndex($name);
  170. -
  171.         else {
  172. -
  173.             return $this->_table->addIndex($name$definition);
  174. -
  175.         }
  176. -
  177.     }
  178. -
  179.     public function setAttribute($attr$value)
  180. -
  181.     {
  182. -
  183.         $this->_table->setAttribute($attr$value);
  184. -
  185.     }
  186. -
  187.     public function setTableName($tableName)
  188. -
  189.     {
  190. -
  191.         $this->_table->setOption('tableName'$tableName);
  192. -
  193.     }
  194. -
  195.     public function setInheritanceMap($map)
  196. -
  197.     {
  198. -
  199.         $this->_table->setOption('inheritanceMap'$map);
  200. -
  201.     }
  202. -
  203.  
  204. -
  205.     public function setSubclasses($map)
  206. -
  207.     {
  208. -
  209.         if (isset($map[get_class($this)])){
  210. -
  211.             $this->_table->setOption('inheritanceMap'$map[get_class($this)]);
  212. -
  213.             return;
  214. -
  215.         }
  216. -
  217.         $this->_table->setOption('subclasses'array_keys($map));
  218. -
  219.         $conn $this->_table->getConnection()
  220. -
  221.         foreach ($map as $key => $value{
  222. -
  223.             $table $conn->getTable($key);
  224. -
  225. //            $table->setOption('inheritanceMap', $value);
  226. -
  227.         }
  228. -
  229.     }
  230. -
  231.  
  232. -
  233.     /**
  234. -
  235.      * attribute
  236. -
  237.      * sets or retrieves an option
  238. -
  239.      *
  240. -
  241.      * @see Doctrine::ATTR_* constants   availible attributes
  242. -
  243.      * @param mixed $attr 
  244. -
  245.      * @param mixed $value 
  246. -
  247.      * @return mixed 
  248. -
  249.      */
  250. -
  251.     public function attribute($attr$value)
  252. -
  253.     {
  254. -
  255.         if ($value == null{
  256. -
  257.             if (is_array($attr)) {
  258. -
  259.                 foreach ($attr as $k => $v{
  260. -
  261.                     $this->_table->setAttribute($k$v);
  262. -
  263.                 }
  264. -
  265.             else {
  266. -
  267.                 return $this->_table->getAttribute($attr);
  268. -
  269.             }
  270. -
  271.         else {
  272. -
  273.             $this->_table->setAttribute($attr$value);
  274. -
  275.         }    
  276. -
  277.     }
  278. -
  279.     /**
  280. -
  281.      * option
  282. -
  283.      * sets or retrieves an option
  284. -
  285.      *
  286. -
  287.      * @see Doctrine_Table::$options    availible options
  288. -
  289.      * @param mixed $name               the name of the option
  290. -
  291.      * @param mixed $value              options value
  292. -
  293.      * @return mixed 
  294. -
  295.      */
  296. -
  297.     public function option($name$value null)
  298. -
  299.     {
  300. -
  301.         if ($value === null{
  302. -
  303.             if (is_array($name)) {
  304. -
  305.                 foreach ($name as $k => $v{
  306. -
  307.                     $this->_table->setOption($k$v);
  308. -
  309.                 }
  310. -
  311.             else {
  312. -
  313.                 return $this->_table->getOption($name);
  314. -
  315.             }
  316. -
  317.         else {
  318. -
  319.             $this->_table->setOption($name$value);
  320. -
  321.         }
  322. -
  323.     }
  324. -
  325.     /**
  326. -
  327.      * ownsOne
  328. -
  329.      * binds One-to-One composite relation
  330. -
  331.      *
  332. -
  333.      * @param string $componentName     the name of the related component
  334. -
  335.      * @param string $options           relation options
  336. -
  337.      * @see Doctrine_Relation::_$definition
  338. -
  339.      * @return Doctrine_Record          this object
  340. -
  341.      */
  342. -
  343.     public function ownsOne()
  344. -
  345.     {
  346. -
  347.         $this->_table->bind(func_get_args()Doctrine_Relation::ONE_COMPOSITE);
  348. -
  349.         
  350. -
  351.         return $this;
  352. -
  353.     }
  354. -
  355.     /**
  356. -
  357.      * ownsMany
  358. -
  359.      * binds One-to-Many / Many-to-Many composite relation
  360. -
  361.      *
  362. -
  363.      * @param string $componentName     the name of the related component
  364. -
  365.      * @param string $options           relation options
  366. -
  367.      * @see Doctrine_Relation::_$definition
  368. -
  369.      * @return Doctrine_Record          this object
  370. -
  371.      */
  372. -
  373.     public function ownsMany()
  374. -
  375.     {
  376. -
  377.         $this->_table->bind(func_get_args()Doctrine_Relation::MANY_COMPOSITE);
  378. -
  379.         return $this;
  380. -
  381.     }
  382. -
  383.     /**
  384. -
  385.      * hasOne
  386. -
  387.      * binds One-to-One aggregate relation
  388. -
  389.      *
  390. -
  391.      * @param string $componentName     the name of the related component
  392. -
  393.      * @param string $options           relation options
  394. -
  395.      * @see Doctrine_Relation::_$definition
  396. -
  397.      * @return Doctrine_Record          this object
  398. -
  399.      */
  400. -
  401.     public function hasOne()
  402. -
  403.     {
  404. -
  405.         $this->_table->bind(func_get_args()Doctrine_Relation::ONE_AGGREGATE);
  406. -
  407.  
  408. -
  409.         return $this;
  410. -
  411.     }
  412. -
  413.     /**
  414. -
  415.      * hasMany
  416. -
  417.      * binds One-to-Many / Many-to-Many aggregate relation
  418. -
  419.      *
  420. -
  421.      * @param string $componentName     the name of the related component
  422. -
  423.      * @param string $options           relation options
  424. -
  425.      * @see Doctrine_Relation::_$definition
  426. -
  427.      * @return Doctrine_Record          this object
  428. -
  429.      */
  430. -
  431.     public function hasMany()
  432. -
  433.     {
  434. -
  435.         $this->_table->bind(func_get_args()Doctrine_Relation::MANY_AGGREGATE);
  436. -
  437.  
  438. -
  439.         return $this;
  440. -
  441.     }
  442. -
  443.     /**
  444. -
  445.      * hasColumn
  446. -
  447.      * sets a column definition
  448. -
  449.      *
  450. -
  451.      * @param string $name 
  452. -
  453.      * @param string $type 
  454. -
  455.      * @param integer $length 
  456. -
  457.      * @param mixed $options 
  458. -
  459.      * @return void 
  460. -
  461.      */
  462. -
  463.     public function hasColumn($name$type$length 2147483647$options "")
  464. -
  465.     {
  466. -
  467.         $this->_table->setColumn($name$type$length$options);
  468. -
  469.     }
  470. -
  471.     public function hasColumns(array $definitions)
  472. -
  473.     {
  474. -
  475.         foreach ($definitions as $name => $options{
  476. -
  477.             $this->hasColumn($name$options['type']$options['length']$options);
  478. -
  479.         }
  480. -
  481.     
  482. -
  483.     /**
  484. -
  485.      * loadTemplate
  486. -
  487.      *
  488. -
  489.      * @param string $template 
  490. -
  491.      */
  492. -
  493.     public function loadTemplate($templatearray $options array())
  494. -
  495.     {
  496. -
  497.         $tpl new $template($options);
  498. -
  499.         $tpl->setTable($this->_table);
  500. -
  501.  
  502. -
  503.         $tpl->setUp();
  504. -
  505.  
  506. -
  507.         $tpl->setTableDefinition();
  508. -
  509.         return $this;
  510. -
  511.     }
  512. -
  513.     /**
  514. -
  515.      * actAs
  516. -
  517.      * loads a given plugin
  518. -
  519.      *
  520. -
  521.      * @param mixed $tpl 
  522. -
  523.      * @param array $options 
  524. -
  525.      */
  526. -
  527.     public function actAs($tplarray $options array())
  528. -
  529.     {
  530. -
  531.  
  532. -
  533.         if is_object($tpl)) {
  534. -
  535.             if (class_exists($tpltrue)) {
  536. -
  537.                 $tpl new $tpl($options);
  538. -
  539.             else {
  540. -
  541.                 $className 'Doctrine_Template_' $tpl;
  542. -
  543.  
  544. -
  545.                 if class_exists($classNametrue)) {
  546. -
  547.                     throw new Doctrine_Record_Exception("Couldn't load plugin.");
  548. -
  549.                 }
  550. -
  551.  
  552. -
  553.  
  554. -
  555.                 $tpl new $className($options);
  556. -
  557.             }
  558. -
  559.         }
  560. -
  561.  
  562. -
  563.         if ($tpl instanceof Doctrine_Template)) {
  564. -
  565.             throw new Doctrine_Record_Exception('Loaded plugin class is not an istance of Doctrine_Template.');
  566. -
  567.         }
  568. -
  569.         $className get_class($tpl);
  570. -
  571.         
  572. -
  573.         $this->_table->addTemplate($className$tpl);
  574. -
  575.  
  576. -
  577.         $tpl->setTable($this->_table);
  578. -
  579.         $tpl->setUp();
  580. -
  581.         $tpl->setTableDefinition();
  582. -
  583.  
  584. -
  585.         return $this;
  586. -
  587.     }
  588. -
  589.     /**
  590. -
  591.      * check
  592. -
  593.      * adds a check constraint
  594. -
  595.      *
  596. -
  597.      * @param mixed $constraint     either a SQL constraint portion or an array of CHECK constraints
  598. -
  599.      * @param string $name          optional constraint name
  600. -
  601.      * @return Doctrine_Record      this object
  602. -
  603.      */
  604. -
  605.     public function check($constraint$name null)
  606. -
  607.     {
  608. -
  609.         if (is_array($constraint)) {
  610. -
  611.             foreach ($constraint as $name => $def{
  612. -
  613.                 $this->_table->addCheckConstraint($def$name);
  614. -
  615.             }
  616. -
  617.         else {
  618. -
  619.             $this->_table->addCheckConstraint($constraint$name);
  620. -
  621.         }
  622. -
  623.         return $this;
  624. -
  625.     }
  626. -
  627. }
  628. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordException.php.html deleted file mode 100644 index 4a88eb8ce..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordFilter.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordFilter.php.html deleted file mode 100644 index 8cfabf629..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordFilter.php.html +++ /dev/null @@ -1,178 +0,0 @@ - -
-

Source for file Filter.php

-

Documentation is available at Filter.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Record.php 1298 2007-05-01 19:26:03Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Record_Filter
  46. -
  47.  * Filters and prepares the record data
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1298 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * @var Doctrine_Record $_record        the record object this filter belongs to
  73. -
  74.      */
  75. -
  76.     protected $_record;
  77. -
  78.     /**
  79. -
  80.      * constructor
  81. -
  82.      *
  83. -
  84.      * @param Doctrine_Record $_record      the record object this filter belongs to
  85. -
  86.      */
  87. -
  88.     public function __construct(Doctrine_Record $record)
  89. -
  90.     {
  91. -
  92.         $this->_record = $record;
  93. -
  94.     }
  95. -
  96.     /**
  97. -
  98.      * getRecord
  99. -
  100.      *
  101. -
  102.      * @return Doctrine_Record $_record     the record object this filter belongs to
  103. -
  104.      */
  105. -
  106.     public function getRecord()
  107. -
  108.     {
  109. -
  110.         return $this->_record;
  111. -
  112.     }
  113. -
  114.     /**
  115. -
  116.      * setDefaultValues
  117. -
  118.      * sets the default values for records internal data
  119. -
  120.      *
  121. -
  122.      * @param boolean $overwrite                whether or not to overwrite the already set values
  123. -
  124.      * @return boolean 
  125. -
  126.      */
  127. -
  128.     public function assignDefaultValues($data$overwrite false)
  129. -
  130.     {
  131. -
  132.         $table $this->_record->getTable();
  133. -
  134.  
  135. -
  136.         if $table->hasDefaultValues()) {
  137. -
  138.             return false;
  139. -
  140.         }
  141. -
  142.         $modified array();
  143. -
  144.         foreach ($data as $column => $value{
  145. -
  146.             $default $table->getDefaultValueOf($column);
  147. -
  148.  
  149. -
  150.             if ($default === null{
  151. -
  152.                 $default self::$_null;
  153. -
  154.             }
  155. -
  156.  
  157. -
  158.             if ($value === self::$_null || $overwrite{
  159. -
  160.                 $this->_record->rawSet($column$default);
  161. -
  162.                 $modified[]    $column;
  163. -
  164.                 $this->_record->state(Doctrine_Record::STATE_TDIRTY);
  165. -
  166.             }
  167. -
  168.         }
  169. -
  170.         $this->_record->setModified($modified);
  171. -
  172.     }
  173. -
  174.     /**
  175. -
  176.      * prepareIdentifiers
  177. -
  178.      * prepares identifiers for later use
  179. -
  180.      *
  181. -
  182.      * @param boolean $exists               whether or not this record exists in persistent data store
  183. -
  184.      * @return void 
  185. -
  186.      */
  187. -
  188.     private function prepareIdentifiers($exists true)
  189. -
  190.     {
  191. -
  192.         $id $this->_table->getIdentifier();
  193. -
  194.         $this->_id   array();
  195. -
  196.         if (count($id1{
  197. -
  198.             foreach ($id as $name{
  199. -
  200.                 if ($this->_data[$name=== self::$_null{
  201. -
  202.                     $this->_id[$namenull;
  203. -
  204.                 else {
  205. -
  206.                     $this->_id[$name$this->_data[$name];
  207. -
  208.                 }
  209. -
  210.             }
  211. -
  212.         else {
  213. -
  214.             if (isset($this->_data[$id]&& $this->_data[$id!== self::$_null{
  215. -
  216.                 $this->_id[$id$this->_data[$id];
  217. -
  218.             }
  219. -
  220.         }
  221. -
  222.     }
  223. -
  224.     /**
  225. -
  226.      * getPrepared
  227. -
  228.      *
  229. -
  230.      * returns an array of modified fields and values with data preparation
  231. -
  232.      * adds column aggregation inheritance and converts Records into primary key values
  233. -
  234.      *
  235. -
  236.      * @param array $array 
  237. -
  238.      * @return array 
  239. -
  240.      */
  241. -
  242.     public function getPrepared(array $array array()) {
  243. -
  244.         $a array();
  245. -
  246.  
  247. -
  248.         if (empty($array)) {
  249. -
  250.             $array $this->_modified;
  251. -
  252.         }
  253. -
  254.         foreach ($array as $k => $v{
  255. -
  256.             $type $this->_table->getTypeOf($v);
  257. -
  258.  
  259. -
  260.             if ($this->_data[$v=== self::$_null{
  261. -
  262.                 $a[$vnull;
  263. -
  264.                 continue;
  265. -
  266.             }
  267. -
  268.  
  269. -
  270.             switch ($type{
  271. -
  272.                 case 'array':
  273. -
  274.                 case 'object':
  275. -
  276.                     $a[$vserialize($this->_data[$v]);
  277. -
  278.                     break;
  279. -
  280.                 case 'gzip':
  281. -
  282.                     $a[$vgzcompress($this->_data[$v],5);
  283. -
  284.                     break;
  285. -
  286.                 case 'boolean':
  287. -
  288.                     $a[$v$this->getTable()->getConnection()->convertBooleans($this->_data[$v]);
  289. -
  290.                 break;
  291. -
  292.                 case 'enum':
  293. -
  294.                     $a[$v$this->_table->enumIndex($v,$this->_data[$v]);
  295. -
  296.                     break;
  297. -
  298.                 default:
  299. -
  300.                     if ($this->_data[$vinstanceof Doctrine_Record{
  301. -
  302.                         $this->_data[$v$this->_data[$v]->getIncremented();
  303. -
  304.                     }
  305. -
  306.  
  307. -
  308.                     $a[$v$this->_data[$v];
  309. -
  310.             }
  311. -
  312.         }
  313. -
  314.         $map $this->_table->inheritanceMap;
  315. -
  316.         foreach ($map as $k => $v{
  317. -
  318.             $old $this->get($kfalse);
  319. -
  320.  
  321. -
  322.             if ((string) $old !== (string) $v || $old === null{
  323. -
  324.                 $a[$k$v;
  325. -
  326.                 $this->_data[$k$v;
  327. -
  328.             }
  329. -
  330.         }
  331. -
  332.  
  333. -
  334.         return $a;
  335. -
  336.     }
  337. -
  338. }
  339. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordIterator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordIterator.php.html deleted file mode 100644 index 576712e20..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordIterator.php.html +++ /dev/null @@ -1,54 +0,0 @@ - -
-

Source for file Iterator.php

-

Documentation is available at Iterator.php

-
-
  1. <?php
  2. -
  3. class Doctrine_Record_Iterator extends ArrayIterator
  4. -
  5. {
  6. -
  7.     /**
  8. -
  9.      * @var Doctrine_Record $record 
  10. -
  11.      */
  12. -
  13.     private $record;
  14. -
  15.     /**
  16. -
  17.      * @var Doctrine_Null $null 
  18. -
  19.      */
  20. -
  21.     private static $null;
  22. -
  23.     /**
  24. -
  25.      * constructor
  26. -
  27.      *
  28. -
  29.      * @param Doctrine_Record $record 
  30. -
  31.      */
  32. -
  33.     public function __construct(Doctrine_Record $record)
  34. -
  35.     {
  36. -
  37.         $this->record = $record;
  38. -
  39.         parent::__construct($record->getData());
  40. -
  41.     }
  42. -
  43.     /**
  44. -
  45.      * initNullObject
  46. -
  47.      *
  48. -
  49.      * @param Doctrine_Null $null 
  50. -
  51.      */
  52. -
  53.     public static function initNullObject(Doctrine_Null $null)
  54. -
  55.     {
  56. -
  57.         self::$null $null;
  58. -
  59.     }
  60. -
  61.     /**
  62. -
  63.      * current
  64. -
  65.      *
  66. -
  67.      * @return mixed 
  68. -
  69.      */
  70. -
  71.     public function current()
  72. -
  73.     {
  74. -
  75.         $value parent::current();
  76. -
  77.  
  78. -
  79.         if ($value === self::$null{
  80. -
  81.             return null;
  82. -
  83.         else {
  84. -
  85.             return $value;
  86. -
  87.         }
  88. -
  89.     }
  90. -
  91. }
  92. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListener.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListener.php.html deleted file mode 100644 index 17cd5000c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListener.php.html +++ /dev/null @@ -1,79 +0,0 @@ - -
-

Source for file Listener.php

-

Documentation is available at Listener.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Record_Listener
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision$
  62. -
  63.  */
  64. -
  65. class Doctrine_Record_Listener implements Doctrine_Record_Listener_Interface
  66. -
  67. {
  68. -
  69.  
  70. -
  71.     public function preSerialize(Doctrine_Event $event)
  72. -
  73.     }
  74. -
  75.  
  76. -
  77.     public function postSerialize(Doctrine_Event $event)
  78. -
  79.     }
  80. -
  81.  
  82. -
  83.     public function preUnserialize(Doctrine_Event $event)
  84. -
  85.     }
  86. -
  87.  
  88. -
  89.     public function postUnserialize(Doctrine_Event $event)
  90. -
  91.     }
  92. -
  93.  
  94. -
  95.     public function preSave(Doctrine_Event $event)
  96. -
  97.     }
  98. -
  99.  
  100. -
  101.     public function postSave(Doctrine_Event $event)
  102. -
  103.     }
  104. -
  105.  
  106. -
  107.     public function preDelete(Doctrine_Event $event)
  108. -
  109.     }
  110. -
  111.  
  112. -
  113.     public function postDelete(Doctrine_Event $event)
  114. -
  115.     }
  116. -
  117.  
  118. -
  119.     public function preUpdate(Doctrine_Event $event)
  120. -
  121.     }
  122. -
  123.  
  124. -
  125.     public function postUpdate(Doctrine_Event $event)
  126. -
  127.     }
  128. -
  129.  
  130. -
  131.     public function preInsert(Doctrine_Event $event)
  132. -
  133.     }
  134. -
  135.  
  136. -
  137.     public function postInsert(Doctrine_Event $event)
  138. -
  139.     }
  140. -
  141. }
  142. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerChain.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerChain.php.html deleted file mode 100644 index ba71f7eac..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerChain.php.html +++ /dev/null @@ -1,180 +0,0 @@ - -
-

Source for file Chain.php

-

Documentation is available at Chain.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Access');
  42. -
  43.  
  44. -
  45. /**
  46. -
  47.  * Doctrine_Record_Listener_Chain
  48. -
  49.  * this class represents a chain of different listeners,
  50. -
  51.  * useful for having multiple listeners listening the events at the same time
  52. -
  53.  *
  54. -
  55.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  56. -
  57.  * @package     Doctrine
  58. -
  59.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  60. -
  61.  * @category    Object Relational Mapping
  62. -
  63.  * @link        www.phpdoctrine.com
  64. -
  65.  * @since       1.0
  66. -
  67.  * @version     $Revision$
  68. -
  69.  */
  70. -
  71. -
  72. {
  73. -
  74.     /**
  75. -
  76.      * @var array $listeners        an array containing all listeners
  77. -
  78.      */
  79. -
  80.     protected $_listeners = array();
  81. -
  82.     /**
  83. -
  84.      * add
  85. -
  86.      * adds a listener to the chain of listeners
  87. -
  88.      *
  89. -
  90.      * @param object $listener 
  91. -
  92.      * @param string $name 
  93. -
  94.      * @return void 
  95. -
  96.      */
  97. -
  98.     public function add($listener$name null)
  99. -
  100.     {
  101. -
  102.         if ($listener instanceof Doctrine_Record_Listener_Interface&&
  103. -
  104.              ($listener instanceof Doctrine_Overloadable)) {
  105. -
  106.             
  107. -
  108.             throw new Doctrine_EventListener_Exception("Couldn't add eventlistener. Record listeners should implement either Doctrine_EventListener_Interface or Doctrine_Overloadable");
  109. -
  110.         }
  111. -
  112.         if ($name === null{
  113. -
  114.             $this->_listeners[$listener;
  115. -
  116.         else {
  117. -
  118.             $this->_listeners[$name$listener;
  119. -
  120.         }
  121. -
  122.     }
  123. -
  124.     /**
  125. -
  126.      * returns a Doctrine_Record_Listener on success
  127. -
  128.      * and null on failure
  129. -
  130.      *
  131. -
  132.      * @param mixed $key 
  133. -
  134.      * @return mixed 
  135. -
  136.      */
  137. -
  138.     public function get($key)
  139. -
  140.     {
  141. -
  142.         if isset($this->_listeners[$key])) {
  143. -
  144.             return null;
  145. -
  146.         }
  147. -
  148.         return $this->_listeners[$key];
  149. -
  150.     }
  151. -
  152.     /**
  153. -
  154.      * set
  155. -
  156.      *
  157. -
  158.      * @param mixed $key 
  159. -
  160.      * @param Doctrine_Record_Listener $listener    listener to be added
  161. -
  162.      * @return Doctrine_Record_Listener_Chain       this object
  163. -
  164.      */
  165. -
  166.     public function set($keyDoctrine_EventListener $listener)
  167. -
  168.     {
  169. -
  170.         $this->_listeners[$key$listener;
  171. -
  172.     }
  173. -
  174.  
  175. -
  176.     public function preSerialize(Doctrine_Event $event)
  177. -
  178.     
  179. -
  180.         foreach ($this->_listeners as $listener{
  181. -
  182.             $listener->preSerialize($event);
  183. -
  184.         }
  185. -
  186.     }
  187. -
  188.  
  189. -
  190.     public function postSerialize(Doctrine_Event $event)
  191. -
  192.     
  193. -
  194.         foreach ($this->_listeners as $listener{
  195. -
  196.             $listener->preSerialize($event);
  197. -
  198.         }
  199. -
  200.     }
  201. -
  202.  
  203. -
  204.     public function preUnserialize(Doctrine_Event $event)
  205. -
  206.     
  207. -
  208.         foreach ($this->_listeners as $listener{
  209. -
  210.             $listener->preUnserialize($event);
  211. -
  212.         }
  213. -
  214.     }
  215. -
  216.  
  217. -
  218.     public function postUnserialize(Doctrine_Event $event)
  219. -
  220.     
  221. -
  222.         foreach ($this->_listeners as $listener{
  223. -
  224.             $listener->postUnserialize($event);
  225. -
  226.         }
  227. -
  228.     }
  229. -
  230.  
  231. -
  232.     public function preSave(Doctrine_Event $event)
  233. -
  234.     
  235. -
  236.         foreach ($this->_listeners as $listener{
  237. -
  238.             $listener->preSave($event);
  239. -
  240.         }
  241. -
  242.     }
  243. -
  244.  
  245. -
  246.     public function postSave(Doctrine_Event $event)
  247. -
  248.     
  249. -
  250.         foreach ($this->_listeners as $listener{
  251. -
  252.             $listener->postSave($event);
  253. -
  254.         }
  255. -
  256.     }
  257. -
  258.  
  259. -
  260.     public function preDelete(Doctrine_Event $event)
  261. -
  262.     
  263. -
  264.         foreach ($this->_listeners as $listener{
  265. -
  266.             $listener->preDelete($event);
  267. -
  268.         }
  269. -
  270.     }
  271. -
  272.  
  273. -
  274.     public function postDelete(Doctrine_Event $event)
  275. -
  276.     {
  277. -
  278.         foreach ($this->_listeners as $listener{
  279. -
  280.             $listener->postDelete($event);
  281. -
  282.         }
  283. -
  284.     }
  285. -
  286.  
  287. -
  288.     public function preUpdate(Doctrine_Event $event)
  289. -
  290.     
  291. -
  292.         foreach ($this->_listeners as $listener{
  293. -
  294.             $listener->preUpdate($event);
  295. -
  296.         }
  297. -
  298.     }
  299. -
  300.  
  301. -
  302.     public function postUpdate(Doctrine_Event $event)
  303. -
  304.     
  305. -
  306.         foreach ($this->_listeners as $listener{
  307. -
  308.             $listener->postUpdate($event);
  309. -
  310.         }
  311. -
  312.     }
  313. -
  314.  
  315. -
  316.     public function preInsert(Doctrine_Event $event)
  317. -
  318.     
  319. -
  320.         foreach ($this->_listeners as $listener{
  321. -
  322.             $listener->preInsert($event);
  323. -
  324.         }
  325. -
  326.     }
  327. -
  328.  
  329. -
  330.     public function postInsert(Doctrine_Event $event)
  331. -
  332.     
  333. -
  334.         foreach ($this->_listeners as $listener{
  335. -
  336.             $listener->postInsert($event);
  337. -
  338.         }
  339. -
  340.     }
  341. -
  342. }
  343. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerInterface.php.html deleted file mode 100644 index 374749b24..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordListenerInterface.php.html +++ /dev/null @@ -1,67 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Record_Listener
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision$
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70.     public function preSerialize(Doctrine_Event $event);
  71. -
  72.  
  73. -
  74.     public function postSerialize(Doctrine_Event $event);
  75. -
  76.  
  77. -
  78.     public function preUnserialize(Doctrine_Event $event);
  79. -
  80.  
  81. -
  82.     public function postUnserialize(Doctrine_Event $event);
  83. -
  84.  
  85. -
  86.     public function preSave(Doctrine_Event $event);
  87. -
  88.  
  89. -
  90.     public function postSave(Doctrine_Event $event);
  91. -
  92.  
  93. -
  94.     public function preDelete(Doctrine_Event $event);
  95. -
  96.  
  97. -
  98.     public function postDelete(Doctrine_Event $event);
  99. -
  100.  
  101. -
  102.     public function preUpdate(Doctrine_Event $event);
  103. -
  104.  
  105. -
  106.     public function postUpdate(Doctrine_Event $event);
  107. -
  108.  
  109. -
  110.     public function preInsert(Doctrine_Event $event);
  111. -
  112.  
  113. -
  114.     public function postInsert(Doctrine_Event $event);
  115. -
  116. }
  117. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordStateException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordStateException.php.html deleted file mode 100644 index 34348e421..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRecordStateException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Record_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelation.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelation.php.html deleted file mode 100644 index cbfc0a7d0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelation.php.html +++ /dev/null @@ -1,322 +0,0 @@ - -
-

Source for file Relation.php

-

Documentation is available at Relation.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Relation.php 1973 2007-07-11 14:39:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Relation
  44. -
  45.  * This class represents a relation between components
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1973 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. abstract class Doctrine_Relation implements ArrayAccess
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * RELATION CONSTANTS
  72. -
  73.      */
  74. -
  75.  
  76. -
  77.     /**
  78. -
  79.      * constant for ONE_TO_ONE and MANY_TO_ONE aggregate relationships
  80. -
  81.      */
  82. -
  83.     const ONE_AGGREGATE         0;
  84. -
  85.     /**
  86. -
  87.      * constant for ONE_TO_ONE and MANY_TO_ONE composite relationships
  88. -
  89.      */
  90. -
  91.     const ONE_COMPOSITE         1;
  92. -
  93.     /**
  94. -
  95.      * constant for MANY_TO_MANY and ONE_TO_MANY aggregate relationships
  96. -
  97.      */
  98. -
  99.     const MANY_AGGREGATE        2;
  100. -
  101.     /**
  102. -
  103.      * constant for MANY_TO_MANY and ONE_TO_MANY composite relationships
  104. -
  105.      */
  106. -
  107.     const MANY_COMPOSITE        3;
  108. -
  109.  
  110. -
  111.     const ONE   0;
  112. -
  113.     const MANY  2;
  114. -
  115.     
  116. -
  117.     protected $definition = array('alias'       => true,
  118. -
  119.                                   'foreign'     => true,
  120. -
  121.                                   'local'       => true,
  122. -
  123.                                   'class'       => true,
  124. -
  125.                                   'type'        => true,
  126. -
  127.                                   'table'       => true,
  128. -
  129.                                   'name'        => false,
  130. -
  131.                                   'refTable'    => false,
  132. -
  133.                                   'onDelete'    => false,
  134. -
  135.                                   'onUpdate'    => false,
  136. -
  137.                                   'deferred'    => false,
  138. -
  139.                                   'deferrable'  => false,
  140. -
  141.                                   'constraint'  => false,
  142. -
  143.                                   'equal'       => false,
  144. -
  145.                                   );
  146. -
  147.     /**
  148. -
  149.      * constructor
  150. -
  151.      *
  152. -
  153.      * @param array $definition         an associative array with the following structure:
  154. -
  155.      *           name                    foreign key constraint name
  156. -
  157.      *
  158. -
  159.      *           local                   the local field(s)
  160. -
  161.      *
  162. -
  163.      *           foreign                 the foreign reference field(s)
  164. -
  165.      *
  166. -
  167.      *           table                   the foreign table object
  168. -
  169.      *
  170. -
  171.      *           refTable                the reference table object (if any)
  172. -
  173.      *
  174. -
  175.      *           onDelete                referential delete action
  176. -
  177.      *  
  178. -
  179.      *           onUpdate                referential update action
  180. -
  181.      *
  182. -
  183.      *           deferred                deferred constraint checking
  184. -
  185.      *
  186. -
  187.      *           alias                   relation alias
  188. -
  189.      *
  190. -
  191.      *           type                    the relation type, either Doctrine_Relation::ONE or Doctrine_Relation::MANY
  192. -
  193.      *
  194. -
  195.      *           constraint              boolean value, true if the relation has an explicit referential integrity constraint
  196. -
  197.      *
  198. -
  199.      *  The onDelete and onUpdate keys accept the following values:
  200. -
  201.      *
  202. -
  203.      *  CASCADE: Delete or update the row from the parent table and automatically delete or
  204. -
  205.      *           update the matching rows in the child table. Both ON DELETE CASCADE and ON UPDATE CASCADE are supported.
  206. -
  207.      *           Between two tables, you should not define several ON UPDATE CASCADE clauses that act on the same column
  208. -
  209.      *           in the parent table or in the child table.
  210. -
  211.      *
  212. -
  213.      *  SET NULL: Delete or update the row from the parent table and set the foreign key column or columns in the
  214. -
  215.      *           child table to NULL. This is valid only if the foreign key columns do not have the NOT NULL qualifier
  216. -
  217.      *           specified. Both ON DELETE SET NULL and ON UPDATE SET NULL clauses are supported.
  218. -
  219.      *
  220. -
  221.      *  NO ACTION: In standard SQL, NO ACTION means no action in the sense that an attempt to delete or update a primary
  222. -
  223.      *            key value is not allowed to proceed if there is a related foreign key value in the referenced table.
  224. -
  225.      *
  226. -
  227.      *  RESTRICT: Rejects the delete or update operation for the parent table. NO ACTION and RESTRICT are the same as
  228. -
  229.      *            omitting the ON DELETE or ON UPDATE clause.
  230. -
  231.      *
  232. -
  233.      *  SET DEFAULT
  234. -
  235.      */
  236. -
  237.     public function __construct(array $definition)
  238. -
  239.     {
  240. -
  241.         $def array();
  242. -
  243.         foreach ($this->definition as $key => $val{
  244. -
  245.             if isset($definition[$key]&& $val{
  246. -
  247.                 throw new Doctrine_Exception($key ' is required!');
  248. -
  249.             }
  250. -
  251.             if (isset($definition[$key])) {
  252. -
  253.                 $def[$key$definition[$key];
  254. -
  255.             else {
  256. -
  257.                 $def[$keynull;          
  258. -
  259.             }
  260. -
  261.         }
  262. -
  263.  
  264. -
  265.         $this->definition $def;
  266. -
  267.     }
  268. -
  269.     /**
  270. -
  271.      * hasConstraint
  272. -
  273.      * whether or not this relation has an explicit constraint
  274. -
  275.      *
  276. -
  277.      * @return boolean 
  278. -
  279.      */
  280. -
  281.     public function hasConstraint()
  282. -
  283.     {
  284. -
  285.         return ($this->definition['constraint'||
  286. -
  287.                 ($this->definition['onUpdate']||
  288. -
  289.                 ($this->definition['onDelete']));
  290. -
  291.     }
  292. -
  293.     public function isDeferred()
  294. -
  295.     {
  296. -
  297.         return $this->definition['deferred'];
  298. -
  299.     }
  300. -
  301.  
  302. -
  303.     public function isDeferrable()
  304. -
  305.     {
  306. -
  307.         return $this->definition['deferrable'];
  308. -
  309.     }
  310. -
  311.     public function isEqual()
  312. -
  313.     {
  314. -
  315.         return $this->definition['equal'];
  316. -
  317.     }
  318. -
  319.  
  320. -
  321.     public function offsetExists($offset)
  322. -
  323.     {
  324. -
  325.         return isset($this->definition[$offset]);
  326. -
  327.     }
  328. -
  329.  
  330. -
  331.     public function offsetGet($offset)
  332. -
  333.     {
  334. -
  335.         if (isset($this->definition[$offset])) {
  336. -
  337.             return $this->definition[$offset];
  338. -
  339.         }
  340. -
  341.         
  342. -
  343.         return null;
  344. -
  345.     }
  346. -
  347.  
  348. -
  349.     public function offsetSet($offset$value)
  350. -
  351.     {
  352. -
  353.         if (isset($this->definition[$offset])) {
  354. -
  355.             $this->definition[$offset$value;
  356. -
  357.         }
  358. -
  359.     }
  360. -
  361.  
  362. -
  363.     public function offsetUnset($offset)
  364. -
  365.     {
  366. -
  367.         $this->definition[$offsetfalse;
  368. -
  369.     }
  370. -
  371.     /**
  372. -
  373.      * toArray
  374. -
  375.      *
  376. -
  377.      * @return array 
  378. -
  379.      */
  380. -
  381.     public function toArray(
  382. -
  383.     {
  384. -
  385.         return $this->definition;
  386. -
  387.     }
  388. -
  389.     /**
  390. -
  391.      * getAlias
  392. -
  393.      * returns the relation alias
  394. -
  395.      *
  396. -
  397.      * @return string 
  398. -
  399.      */
  400. -
  401.     final public function getAlias()
  402. -
  403.     {
  404. -
  405.         return $this->definition['alias'];
  406. -
  407.     }
  408. -
  409.     /**
  410. -
  411.      * getType
  412. -
  413.      * returns the relation type, either 0 or 1
  414. -
  415.      *
  416. -
  417.      * @see Doctrine_Relation MANY_* and ONE_* constants
  418. -
  419.      * @return integer 
  420. -
  421.      */
  422. -
  423.     final public function getType()
  424. -
  425.     {
  426. -
  427.         return $this->definition['type'];
  428. -
  429.     }
  430. -
  431.     /**
  432. -
  433.      * getTable
  434. -
  435.      * returns the foreign table object
  436. -
  437.      *
  438. -
  439.      * @return object Doctrine_Table 
  440. -
  441.      */
  442. -
  443.     final public function getTable()
  444. -
  445.     {
  446. -
  447.         return Doctrine_Manager::getInstance()
  448. -
  449.                ->getConnectionForComponent($this->definition['class'])
  450. -
  451.                ->getTable($this->definition['class']);
  452. -
  453.     }
  454. -
  455.     /**
  456. -
  457.      * getLocal
  458. -
  459.      * returns the name of the local column
  460. -
  461.      *
  462. -
  463.      * @return string 
  464. -
  465.      */
  466. -
  467.     final public function getLocal()
  468. -
  469.     {
  470. -
  471.         return $this->definition['local'];
  472. -
  473.     }
  474. -
  475.     /**
  476. -
  477.      * getForeign
  478. -
  479.      * returns the name of the foreignkey column where
  480. -
  481.      * the localkey column is pointing at
  482. -
  483.      *
  484. -
  485.      * @return string 
  486. -
  487.      */
  488. -
  489.     final public function getForeign()
  490. -
  491.     {
  492. -
  493.         return $this->definition['foreign'];
  494. -
  495.     }
  496. -
  497.     /**
  498. -
  499.      * isComposite
  500. -
  501.      * returns whether or not this relation is a composite relation
  502. -
  503.      *
  504. -
  505.      * @return boolean 
  506. -
  507.      */
  508. -
  509.     final public function isComposite()
  510. -
  511.     {
  512. -
  513.         return ($this->definition['type'== Doctrine_Relation::ONE_COMPOSITE ||
  514. -
  515.                 $this->definition['type'== Doctrine_Relation::MANY_COMPOSITE);
  516. -
  517.     }
  518. -
  519.     /**
  520. -
  521.      * isOneToOne
  522. -
  523.      * returns whether or not this relation is a one-to-one relation
  524. -
  525.      *
  526. -
  527.      * @return boolean 
  528. -
  529.      */
  530. -
  531.     final public function isOneToOne()
  532. -
  533.     {
  534. -
  535.         return ($this->definition['type'== Doctrine_Relation::ONE_AGGREGATE ||
  536. -
  537.                 $this->definition['type'== Doctrine_Relation::ONE_COMPOSITE);
  538. -
  539.     }
  540. -
  541.     /**
  542. -
  543.      * getRelationDql
  544. -
  545.      *
  546. -
  547.      * @param integer $count 
  548. -
  549.      * @return string 
  550. -
  551.      */
  552. -
  553.     public function getRelationDql($count)
  554. -
  555.     {
  556. -
  557.         $component $this->getTable()->getComponentName();
  558. -
  559.  
  560. -
  561.         $dql  'FROM ' $component
  562. -
  563.               . ' WHERE ' $component '.' $this->definition['foreign']
  564. -
  565.               . ' IN (' substr(str_repeat('?, '$count)0-2')';
  566. -
  567.  
  568. -
  569.         return $dql;
  570. -
  571.     }
  572. -
  573.     /**
  574. -
  575.      * fetchRelatedFor
  576. -
  577.      *
  578. -
  579.      * fetches a component related to given record
  580. -
  581.      *
  582. -
  583.      * @param Doctrine_Record $record 
  584. -
  585.      * @return Doctrine_Record|Doctrine_Collection
  586. -
  587.      */
  588. -
  589.     abstract public function fetchRelatedFor(Doctrine_Record $record);
  590. -
  591.     /**
  592. -
  593. /**
  594. -
  595.      * __toString
  596. -
  597.      *
  598. -
  599.      * @return string 
  600. -
  601.      */
  602. -
  603.     public function __toString()
  604. -
  605.     {
  606. -
  607.         $r["<pre>";
  608. -
  609.         foreach ($this->definition as $k => $v{
  610. -
  611.             if(is_object($v)) {
  612. -
  613.                 $v 'Object(' get_class($v')';
  614. -
  615.             }
  616. -
  617.             $r[$k ' : ' $v;
  618. -
  619.         }
  620. -
  621.         $r["</pre>";
  622. -
  623.         return implode("\n"$r);
  624. -
  625.     }
  626. -
  627. }
  628. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociation.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociation.php.html deleted file mode 100644 index 90deac09c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociation.php.html +++ /dev/null @@ -1,102 +0,0 @@ - -
-

Source for file Association.php

-

Documentation is available at Association.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Association.php 2212 2007-08-11 18:24:19Z nightfreak $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Relation');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Relation_Association    this class takes care of association mapping
  46. -
  47.  *                         (= many-to-many relationships, where the relationship is handled with an additional relational table
  48. -
  49.  *                         which holds 2 foreign keys)
  50. -
  51.  *
  52. -
  53.  *
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 2212 $
  66. -
  67.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  68. -
  69.  */
  70. -
  71. -
  72. {
  73. -
  74.     /**
  75. -
  76.      * @return Doctrine_Table 
  77. -
  78.      */
  79. -
  80.     public function getAssociationFactory()
  81. -
  82.     {
  83. -
  84.         return $this->definition['refTable'];
  85. -
  86.     }
  87. -
  88.     public function getAssociationTable()
  89. -
  90.     {
  91. -
  92.         return $this->definition['refTable'];
  93. -
  94.     }
  95. -
  96.     /**
  97. -
  98.      * getRelationDql
  99. -
  100.      *
  101. -
  102.      * @param integer $count 
  103. -
  104.      * @return string 
  105. -
  106.      */
  107. -
  108.     public function getRelationDql($count$context 'record')
  109. -
  110.     {
  111. -
  112.         $component $this->definition['refTable']->getComponentName();
  113. -
  114.         switch ($context{
  115. -
  116.             case "record":
  117. -
  118.                 $sub  substr(str_repeat("?, "$count),0,-2);
  119. -
  120.                 $dql  'FROM ' $this->getTable()->getComponentName();
  121. -
  122.                 $dql .= '.' $component;
  123. -
  124.                 $dql .= ' WHERE ' $this->getTable()->getComponentName()
  125. -
  126.                 . '.' $component '.' $this->definition['local'' IN (' $sub ')';
  127. -
  128.                 break;
  129. -
  130.             case "collection":
  131. -
  132.                 $sub  substr(str_repeat("?, "$count),0,-2);
  133. -
  134.                 $dql  'FROM ' $component '.' $this->getTable()->getComponentName();
  135. -
  136.                 $dql .= ' WHERE ' $component '.' $this->definition['local'' IN (' $sub ')';
  137. -
  138.                 break;
  139. -
  140.         }
  141. -
  142.  
  143. -
  144.         return $dql;
  145. -
  146.     }
  147. -
  148.     /**
  149. -
  150.      * fetchRelatedFor
  151. -
  152.      *
  153. -
  154.      * fetches a component related to given record
  155. -
  156.      *
  157. -
  158.      * @param Doctrine_Record $record 
  159. -
  160.      * @return Doctrine_Record|Doctrine_Collection
  161. -
  162.      */
  163. -
  164.     public function fetchRelatedFor(Doctrine_Record $record)
  165. -
  166.     {
  167. -
  168.         $id $record->getIncremented();
  169. -
  170.         if (empty($id|| $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) {
  171. -
  172.             $coll new Doctrine_Collection($this->getTable());
  173. -
  174.         else {
  175. -
  176.             $coll Doctrine_Query::create()->parseQuery($this->getRelationDql(1))->execute(array($id));
  177. -
  178.         }
  179. -
  180.         $coll->setReference($record$this);
  181. -
  182.         return $coll;
  183. -
  184.     }
  185. -
  186. }
  187. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociationSelf.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociationSelf.php.html deleted file mode 100644 index 4f15a8669..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationAssociationSelf.php.html +++ /dev/null @@ -1,116 +0,0 @@ - -
-

Source for file Self.php

-

Documentation is available at Self.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Self.php 1434 2007-05-22 15:57:17Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Relation_Association');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Relation_Association_Self
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1434 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * getRelationDql
  71. -
  72.      *
  73. -
  74.      * @param integer $count 
  75. -
  76.      * @return string 
  77. -
  78.      */
  79. -
  80.     public function getRelationDql($count$context 'record')
  81. -
  82.     {
  83. -
  84.         switch ($context{
  85. -
  86.             case 'record':
  87. -
  88.                 $sub    'SELECT '.$this->definition['foreign'
  89. -
  90.                         . ' FROM '.$this->definition['refTable']->getTableName()
  91. -
  92.                         . ' WHERE '.$this->definition['local']
  93. -
  94.                         . ' = ?';
  95. -
  96.  
  97. -
  98.                 $sub2   'SELECT '.$this->definition['local']
  99. -
  100.                         . ' FROM '.$this->definition['refTable']->getTableName()
  101. -
  102.                         . ' WHERE '.$this->definition['foreign']
  103. -
  104.                         . ' = ?';
  105. -
  106.  
  107. -
  108.                 $dql  'FROM ' $this->definition['table']->getComponentName()
  109. -
  110.                       . '.' $this->definition['refTable']->getComponentName()
  111. -
  112.                       . ' WHERE ' $this->definition['table']->getComponentName()
  113. -
  114.                       . '.' $this->definition['table']->getIdentifier(
  115. -
  116.                       . ' IN (' $sub ')'
  117. -
  118.                       . ' || ' $this->definition['table']->getComponentName(
  119. -
  120.                       . '.' $this->definition['table']->getIdentifier(
  121. -
  122.                       . ' IN (' $sub2 ')';
  123. -
  124.                 break;
  125. -
  126.             case 'collection':
  127. -
  128.                 $sub  substr(str_repeat('?, '$count),0,-2);
  129. -
  130.                 $dql  'FROM '.$this->definition['refTable']->getComponentName()
  131. -
  132.                       . '.' $this->definition['table']->getComponentName()
  133. -
  134.                       . ' WHERE '.$this->definition['refTable']->getComponentName()
  135. -
  136.                       . '.' $this->definition['local'' IN (' $sub ')';
  137. -
  138.         };
  139. -
  140.  
  141. -
  142.         return $dql;
  143. -
  144.     }
  145. -
  146.  
  147. -
  148.     public function fetchRelatedFor(Doctrine_Record $record)
  149. -
  150.     {
  151. -
  152.         $id      $record->getIncremented();
  153. -
  154.  
  155. -
  156.         $q new Doctrine_RawSql();
  157. -
  158.  
  159. -
  160.         $assocTable $this->getAssociationFactory()->getTableName();
  161. -
  162.         $tableName  $record->getTable()->getTableName();
  163. -
  164.         $identifier $record->getTable()->getIdentifier();
  165. -
  166.  
  167. -
  168.         $sub     'SELECT '.$this->getForeign().
  169. -
  170.                    ' FROM '.$assocTable.
  171. -
  172.                    ' WHERE '.$this->getLocal().
  173. -
  174.                    ' = ?';
  175. -
  176.  
  177. -
  178.         $sub2   'SELECT '.$this->getLocal().
  179. -
  180.                   ' FROM '.$assocTable.
  181. -
  182.                   ' WHERE '.$this->getForeign().
  183. -
  184.                   ' = ?';
  185. -
  186.  
  187. -
  188.         $q->select('{'.$tableName.'.*}, {'.$assocTable.'.*}')
  189. -
  190.           ->from($tableName ' INNER JOIN '.$assocTable.' ON '.
  191. -
  192.                  $tableName '.' $identifier ' = ' $assocTable '.' $this->getLocal(' OR ' .
  193. -
  194.                  $tableName '.' $identifier ' = ' $assocTable '.' $this->getForeign()
  195. -
  196.                  )
  197. -
  198.           ->where($tableName.'.'.$identifier.' IN ('.$sub.') OR '.
  199. -
  200.                   $tableName.'.'.$identifier.' IN ('.$sub2.')'
  201. -
  202.                 );
  203. -
  204.         $q->addComponent($tableName,  $record->getTable()->getComponentName());
  205. -
  206.         $q->addComponent($assocTable$record->getTable()->getComponentName()'.' $this->getAssociationFactory()->getComponentName());
  207. -
  208.  
  209. -
  210.         return $q->execute(array($id$id));
  211. -
  212.     }
  213. -
  214. }
  215. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationException.php.html deleted file mode 100644 index fb9f6ec15..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1344 2007-05-12 23:27:16Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */        
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Relation_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1344 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationForeignKey.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationForeignKey.php.html deleted file mode 100644 index 8dcd356f6..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationForeignKey.php.html +++ /dev/null @@ -1,106 +0,0 @@ - -
-

Source for file ForeignKey.php

-

Documentation is available at ForeignKey.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: ForeignKey.php 1517 2007-05-30 10:20:21Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Relation');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Relation_ForeignKey
  46. -
  47.  * This class represents a foreign key relation
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1517 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * fetchRelatedFor
  73. -
  74.      *
  75. -
  76.      * fetches a component related to given record
  77. -
  78.      *
  79. -
  80.      * @param Doctrine_Record $record 
  81. -
  82.      * @return Doctrine_Record|Doctrine_Collection
  83. -
  84.      */
  85. -
  86.     public function fetchRelatedFor(Doctrine_Record $record)
  87. -
  88.     {
  89. -
  90.         $id array();
  91. -
  92.         foreach ((array) $this->definition['local'as $local{
  93. -
  94.            $value $record->get($local);
  95. -
  96.            if (isset($value)) {
  97. -
  98.                $id[$value;
  99. -
  100.            }
  101. -
  102.         }
  103. -
  104.         if ($this->isOneToOne()) {
  105. -
  106.             if $record->exists(|| empty($id|| 
  107. -
  108.                  $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) {
  109. -
  110.                 
  111. -
  112.                 $related $this->getTable()->create();
  113. -
  114.             else {
  115. -
  116.                 $dql  'FROM ' $this->getTable()->getComponentName()
  117. -
  118.                       . ' WHERE ' $this->getCondition();
  119. -
  120.  
  121. -
  122.                 $coll $this->getTable()->getConnection()->query($dql$id);
  123. -
  124.                 $related $coll[0];
  125. -
  126.             }
  127. -
  128.  
  129. -
  130.             $related->set($this->definition['foreign']$recordfalse);
  131. -
  132.  
  133. -
  134.         else {
  135. -
  136.  
  137. -
  138.             if $record->exists(|| empty($id|| 
  139. -
  140.                  $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) {
  141. -
  142.                 
  143. -
  144.                 $related new Doctrine_Collection($this->getTable());
  145. -
  146.             else {
  147. -
  148.                 $query      $this->getRelationDql(1);
  149. -
  150.                 $related    $this->getTable()->getConnection()->query($query$id);
  151. -
  152.             }
  153. -
  154.             $related->setReference($record$this);
  155. -
  156.         }
  157. -
  158.         return $related;
  159. -
  160.     }
  161. -
  162.     /**
  163. -
  164.      * getCondition
  165. -
  166.      *
  167. -
  168.      * @param string $alias 
  169. -
  170.      */
  171. -
  172.     public function getCondition($alias null)
  173. -
  174.     {
  175. -
  176.         if $alias{
  177. -
  178.            $alias $this->getTable()->getComponentName();
  179. -
  180.         }
  181. -
  182.         $conditions array();
  183. -
  184.         foreach ((array) $this->definition['foreign'as $foreign{
  185. -
  186.             $conditions[$alias '.' $foreign ' = ?';
  187. -
  188.         }
  189. -
  190.         return implode(' AND '$conditions);
  191. -
  192.     }
  193. -
  194. }
  195. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationLocalKey.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationLocalKey.php.html deleted file mode 100644 index c371e7113..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationLocalKey.php.html +++ /dev/null @@ -1,90 +0,0 @@ - -
-

Source for file LocalKey.php

-

Documentation is available at LocalKey.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: LocalKey.php 2195 2007-08-10 07:07:53Z njero $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Relation');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Relation_LocalKey
  46. -
  47.  * This class represents a local key relation
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 2195 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * fetchRelatedFor
  73. -
  74.      *
  75. -
  76.      * fetches a component related to given record
  77. -
  78.      *
  79. -
  80.      * @param Doctrine_Record $record 
  81. -
  82.      * @return Doctrine_Record|Doctrine_Collection
  83. -
  84.      */
  85. -
  86.     public function fetchRelatedFor(Doctrine_Record $record)
  87. -
  88.     {
  89. -
  90.         $id $record->get($this->definition['local']);
  91. -
  92.  
  93. -
  94.         if (empty($id|| $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) {
  95. -
  96.             $related $this->getTable()->create();
  97. -
  98.         else {
  99. -
  100.             $dql  'FROM ' $this->getTable()->getComponentName()
  101. -
  102.                  . ' WHERE ' $this->getCondition();
  103. -
  104.  
  105. -
  106.             $related $this->getTable()
  107. -
  108.                             ->getConnection()
  109. -
  110.                             ->query($dqlarray($id))
  111. -
  112.                             ->getFirst();
  113. -
  114.             
  115. -
  116.             if $related || empty($related)) {
  117. -
  118.                 $related $this->getTable()->create();
  119. -
  120.             }
  121. -
  122.         }
  123. -
  124.  
  125. -
  126.         $record->set($this->definition['local']$relatedfalse);
  127. -
  128.  
  129. -
  130.         return $related;
  131. -
  132.     }
  133. -
  134.     
  135. -
  136.     /**
  137. -
  138.      * getCondition
  139. -
  140.      *
  141. -
  142.      * @param string $alias 
  143. -
  144.      */
  145. -
  146.     public function getCondition($alias null)
  147. -
  148.     {
  149. -
  150.         if $alias{
  151. -
  152.            $alias $this->getTable()->getComponentName();
  153. -
  154.         }
  155. -
  156.         return $alias '.' $this->definition['foreign'' = ?';
  157. -
  158.     }
  159. -
  160.  
  161. -
  162. }
  163. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationNest.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationNest.php.html deleted file mode 100644 index f11241b5f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationNest.php.html +++ /dev/null @@ -1,150 +0,0 @@ - -
-

Source for file Nest.php

-

Documentation is available at Nest.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Self.php 1434 2007-05-22 15:57:17Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Relation_Association');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Relation_Association_Self
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1434 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * getRelationDql
  71. -
  72.      *
  73. -
  74.      * @param integer $count 
  75. -
  76.      * @return string 
  77. -
  78.      */
  79. -
  80.     public function getRelationDql($count$context 'record')
  81. -
  82.     {
  83. -
  84.         switch ($context{
  85. -
  86.             case 'record':
  87. -
  88.                 $sub    'SELECT '.$this->definition['foreign'
  89. -
  90.                         . ' FROM '.$this->definition['refTable']->getTableName()
  91. -
  92.                         . ' WHERE '.$this->definition['local']
  93. -
  94.                         . ' = ?';
  95. -
  96.  
  97. -
  98.                 $sub2   'SELECT '.$this->definition['local']
  99. -
  100.                         . ' FROM '.$this->definition['refTable']->getTableName()
  101. -
  102.                         . ' WHERE '.$this->definition['foreign']
  103. -
  104.                         . ' = ?';
  105. -
  106.  
  107. -
  108.                 $dql  'FROM ' $this->definition['table']->getComponentName()
  109. -
  110.                       . '.' $this->definition['refTable']->getComponentName()
  111. -
  112.                       . ' WHERE ' $this->definition['table']->getComponentName()
  113. -
  114.                       . '.' $this->definition['table']->getIdentifier(
  115. -
  116.                       . ' IN (' $sub ')'
  117. -
  118.                       . ' || ' $this->definition['table']->getComponentName(
  119. -
  120.                       . '.' $this->definition['table']->getIdentifier(
  121. -
  122.                       . ' IN (' $sub2 ')';
  123. -
  124.                 break;
  125. -
  126.             case 'collection':
  127. -
  128.                 $sub  substr(str_repeat('?, '$count),0,-2);
  129. -
  130.                 $dql  'FROM '.$this->definition['refTable']->getComponentName()
  131. -
  132.                       . '.' $this->definition['table']->getComponentName()
  133. -
  134.                       . ' WHERE '.$this->definition['refTable']->getComponentName()
  135. -
  136.                       . '.' $this->definition['local'' IN (' $sub ')';
  137. -
  138.         };
  139. -
  140.  
  141. -
  142.         return $dql;
  143. -
  144.     }
  145. -
  146.     /**
  147. -
  148.     public function fetchRelatedFor(Doctrine_Record $record)
  149. -
  150.     {
  151. -
  152.         $id = $record->getIncremented();
  153. -
  154.  
  155. -
  156.         if (empty($id) || ! $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) {
  157. -
  158.             return new Doctrine_Collection($this->getTable());
  159. -
  160.         } else {
  161. -
  162.             $q = new Doctrine_Query();
  163. -
  164.             
  165. -
  166.             $c  = $this->getTable()->getComponentName();
  167. -
  168.             $a  = substr($c, 0, 1);
  169. -
  170.             $c2 = $this->getAssociationTable()->getComponentName();
  171. -
  172.             $a2 = substr($c2, 0, 1);
  173. -
  174.  
  175. -
  176.             $q->from($c)
  177. -
  178.               ->innerJoin($c . '.' . $c2)
  179. -
  180.  
  181. -
  182.             $sub = 'SELECT ' . $this->getForeign() 
  183. -
  184.                  . ' FROM '  . $c2
  185. -
  186.                  . ' WHERE ' . $this->getLocal() 
  187. -
  188.                  . ' = ?';
  189. -
  190.         }
  191. -
  192.     }
  193. -
  194.     */
  195. -
  196.  
  197. -
  198.     public function fetchRelatedFor(Doctrine_Record $record)
  199. -
  200.     {
  201. -
  202.         $id $record->getIncremented();
  203. -
  204.  
  205. -
  206.  
  207. -
  208.         if (empty($id|| $this->definition['table']->getAttribute(Doctrine::ATTR_LOAD_REFERENCES)) {
  209. -
  210.             return new Doctrine_Collection($this->getTable());
  211. -
  212.         else {
  213. -
  214.             $q new Doctrine_RawSql();
  215. -
  216.  
  217. -
  218.             $assocTable $this->getAssociationFactory()->getTableName();
  219. -
  220.             $tableName  $record->getTable()->getTableName();
  221. -
  222.             $identifier $record->getTable()->getIdentifier();
  223. -
  224.     
  225. -
  226.             $sub 'SELECT ' $this->getForeign()
  227. -
  228.                  . ' FROM ' $assocTable 
  229. -
  230.                  . ' WHERE ' $this->getLocal(
  231. -
  232.                  . ' = ?';
  233. -
  234.  
  235. -
  236.             $condition[$tableName '.' $identifier ' IN (' $sub ')';
  237. -
  238.             $joinCondition[$tableName '.' $identifier ' = ' $assocTable '.' $this->getForeign();
  239. -
  240.  
  241. -
  242.             if ($this->definition['equal']{
  243. -
  244.                 $sub2   'SELECT ' $this->getLocal()
  245. -
  246.                         . ' FROM '  $assocTable
  247. -
  248.                         . ' WHERE ' $this->getForeign()
  249. -
  250.                         . ' = ?';
  251. -
  252.  
  253. -
  254.                 $condition[$tableName '.' $identifier ' IN (' $sub2 ')';
  255. -
  256.                 $joinCondition[$tableName '.' $identifier ' = ' $assocTable '.' $this->getLocal();
  257. -
  258.             }
  259. -
  260.             $q->select('{'.$tableName.'.*}, {'.$assocTable.'.*}')
  261. -
  262.               ->from($tableName ' INNER JOIN ' $assocTable ' ON ' implode(' OR '$joinCondition))
  263. -
  264.               ->where(implode(' OR '$condition));
  265. -
  266.             $q->addComponent($tableName,  $record->getTable()->getComponentName());
  267. -
  268.             $q->addComponent($assocTable$record->getTable()->getComponentName()'.' $this->getAssociationFactory()->getComponentName());
  269. -
  270.  
  271. -
  272.             $params ($this->definition['equal']array($id$idarray($id);
  273. -
  274.  
  275. -
  276.             return $q->execute($params);
  277. -
  278.         }
  279. -
  280.     }
  281. -
  282. }
  283. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParser.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParser.php.html deleted file mode 100644 index 98d573baf..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParser.php.html +++ /dev/null @@ -1,469 +0,0 @@ - -
-

Source for file Parser.php

-

Documentation is available at Parser.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Table.php 1397 2007-05-19 19:54:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Relation_Parser
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @version     $Revision: 1397 $
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * @var Doctrine_Table $_table          the table object this parser belongs to
  69. -
  70.      */
  71. -
  72.     protected $_table;
  73. -
  74.     /**
  75. -
  76.      * @var array $_relations               an array containing all the Doctrine_Relation objects for this table
  77. -
  78.      */
  79. -
  80.     protected $_relations = array();
  81. -
  82.     /**
  83. -
  84.      * @var array $_pending                 relations waiting for parsing
  85. -
  86.      */
  87. -
  88.     protected $_pending   = array();
  89. -
  90.     /**
  91. -
  92.      * constructor
  93. -
  94.      *
  95. -
  96.      * @param Doctrine_Table $table         the table object this parser belongs to
  97. -
  98.      */
  99. -
  100.     public function __construct(Doctrine_Table $table
  101. -
  102.     {
  103. -
  104.         $this->_table = $table;
  105. -
  106.     }
  107. -
  108.     /**
  109. -
  110.      * getTable
  111. -
  112.      *
  113. -
  114.      * @return Doctrine_Table   the table object this parser belongs to
  115. -
  116.      */
  117. -
  118.     public function getTable()
  119. -
  120.     {
  121. -
  122.         return $this->_table;
  123. -
  124.     }
  125. -
  126.     /**
  127. -
  128.      * getPendingRelation
  129. -
  130.      *
  131. -
  132.      * @return array            an array defining a pending relation
  133. -
  134.      */
  135. -
  136.     public function getPendingRelation($name
  137. -
  138.     {
  139. -
  140.         if isset($this->_pending[$name])) {
  141. -
  142.             throw new Doctrine_Relation_Exception('Unknown pending relation ' $name);
  143. -
  144.         }
  145. -
  146.         
  147. -
  148.         return $this->_pending[$name];
  149. -
  150.     }
  151. -
  152.     
  153. -
  154.     public function hasRelation($name)
  155. -
  156.     {
  157. -
  158.         if isset($this->_pending[$name]&& isset($this->_relations[$name])) {
  159. -
  160.             return false;
  161. -
  162.         }
  163. -
  164.         
  165. -
  166.         return true;
  167. -
  168.     }
  169. -
  170.     /**
  171. -
  172.      * binds a relation
  173. -
  174.      *
  175. -
  176.      * @param string $name 
  177. -
  178.      * @param string $field 
  179. -
  180.      * @return void 
  181. -
  182.      */
  183. -
  184.     public function bind($name$options array())
  185. -
  186.     {
  187. -
  188.         if (isset($this->relations[$name])) {
  189. -
  190.             unset($this->relations[$name]);
  191. -
  192.         }
  193. -
  194.  
  195. -
  196.         $lower strtolower($name);
  197. -
  198.  
  199. -
  200.         if ($this->_table->hasColumn($lower)) {
  201. -
  202.             throw new Doctrine_Relation_Exception("Couldn't bind relation. Column with name " $lower ' already exists!');
  203. -
  204.         }
  205. -
  206.  
  207. -
  208.         $e    explode(' as '$name);
  209. -
  210.         $name $e[0];
  211. -
  212.         $alias = isset($e[1]$e[1$name;
  213. -
  214.  
  215. -
  216.         if isset($options['type'])) {
  217. -
  218.             throw new Doctrine_Relation_Exception('Relation type not set.');
  219. -
  220.         }
  221. -
  222.  
  223. -
  224.         $this->_pending[$aliasarray_merge($optionsarray('class' => $name'alias' => $alias));
  225. -
  226.  
  227. -
  228.         $m Doctrine_Manager::getInstance();
  229. -
  230.         
  231. -
  232.         if (isset($options['onDelete'])) {
  233. -
  234.             $m->addDeleteAction($name$this->_table->getComponentName()$options['onDelete']);
  235. -
  236.         }
  237. -
  238.         if (isset($options['onUpdate'])) {
  239. -
  240.             $m->addUpdateAction($name$this->_table->getComponentName()$options['onUpdate']);
  241. -
  242.         }
  243. -
  244.  
  245. -
  246.         return $this->_pending[$alias];
  247. -
  248.     }
  249. -
  250.     /**
  251. -
  252.      * getRelation
  253. -
  254.      *
  255. -
  256.      * @param string $alias      relation alias
  257. -
  258.      */
  259. -
  260.     public function getRelation($alias$recursive true)
  261. -
  262.     {
  263. -
  264.         if (isset($this->_relations[$alias])) {
  265. -
  266.             return $this->_relations[$alias];
  267. -
  268.         }
  269. -
  270.  
  271. -
  272.         if (isset($this->_pending[$alias])) {
  273. -
  274.             $def $this->_pending[$alias];
  275. -
  276.         
  277. -
  278.             // check if reference class name exists
  279. -
  280.             // if it does we are dealing with association relation
  281. -
  282.             if (isset($def['refClass'])) {
  283. -
  284.                 $def $this->completeAssocDefinition($def);
  285. -
  286.                 $localClasses array_merge($this->_table->getOption('parents')array($this->_table->getComponentName()));
  287. -
  288.  
  289. -
  290.                 if isset($this->_pending[$def['refClass']]&& 
  291. -
  292.                      isset($this->_relations[$def['refClass']])) {
  293. -
  294.  
  295. -
  296.                     $parser $def['refTable']->getRelationParser();
  297. -
  298.                     if $parser->hasRelation($this->_table->getComponentName())) {
  299. -
  300.                         $parser->bind($this->_table->getComponentName(),
  301. -
  302.                                       array('type'    => Doctrine_Relation::ONE,
  303. -
  304.                                             'local'   => $def['local'],
  305. -
  306.                                             'foreign' => $this->_table->getIdentifier(),
  307. -
  308.                                             'localKey' => true,
  309. -
  310.                                             ));
  311. -
  312.                     }
  313. -
  314.  
  315. -
  316.                     if $this->hasRelation($def['refClass'])) {
  317. -
  318.                         $this->bind($def['refClass']array('type' => Doctrine_Relation::MANY,
  319. -
  320.                                                             'foreign' => $def['local'],
  321. -
  322.                                                             'local'   => $this->_table->getIdentifier()));
  323. -
  324.                     }
  325. -
  326.                 }
  327. -
  328.                 if (in_array($def['class']$localClasses)) {
  329. -
  330.                     $rel new Doctrine_Relation_Nest($def);
  331. -
  332.                 else {
  333. -
  334.                     $rel new Doctrine_Relation_Association($def);
  335. -
  336.                 }
  337. -
  338.             else {
  339. -
  340.                 // simple foreign key relation
  341. -
  342.                 $def $this->completeDefinition($def);
  343. -
  344.  
  345. -
  346.                 if (isset($def['localKey'])) {
  347. -
  348.  
  349. -
  350.                     $rel new Doctrine_Relation_LocalKey($def);
  351. -
  352.                 else {
  353. -
  354.                     $rel new Doctrine_Relation_ForeignKey($def);
  355. -
  356.                 }
  357. -
  358.             }
  359. -
  360.             if (isset($rel)) {
  361. -
  362.                 // unset pending relation
  363. -
  364.                 unset($this->_pending[$alias]);
  365. -
  366.  
  367. -
  368.                 $this->_relations[$alias$rel;
  369. -
  370.                 return $rel;
  371. -
  372.             }
  373. -
  374.         }
  375. -
  376.         if ($recursive{
  377. -
  378.             $this->getRelations();
  379. -
  380.  
  381. -
  382.             return $this->getRelation($aliasfalse);
  383. -
  384.         else {
  385. -
  386.             throw new Doctrine_Table_Exception('Unknown relation alias ' $alias);
  387. -
  388.         }
  389. -
  390.     }
  391. -
  392.     /**
  393. -
  394.      * getRelations
  395. -
  396.      * returns an array containing all relation objects
  397. -
  398.      *
  399. -
  400.      * @return array        an array of Doctrine_Relation objects
  401. -
  402.      */
  403. -
  404.     public function getRelations()
  405. -
  406.     {
  407. -
  408.         foreach ($this->_pending as $k => $v{
  409. -
  410.             $this->getRelation($k);
  411. -
  412.         }
  413. -
  414.  
  415. -
  416.         return $this->_relations;
  417. -
  418.     }
  419. -
  420.     /**
  421. -
  422.      * getImpl
  423. -
  424.      * returns the table class of the concrete implementation for given template
  425. -
  426.      * if the given template is not a template then this method just returns the
  427. -
  428.      * table class for the given record
  429. -
  430.      *
  431. -
  432.      * @param string $template 
  433. -
  434.      */
  435. -
  436.     public function getImpl($template)
  437. -
  438.     {
  439. -
  440.         $conn $this->_table->getConnection();
  441. -
  442.  
  443. -
  444.         if (in_array('Doctrine_Template'class_parents($template))) {
  445. -
  446.             $impl $this->_table->getImpl($template);
  447. -
  448.             
  449. -
  450.             if ($impl === null{
  451. -
  452.                 throw new Doctrine_Relation_Parser_Exception("Couldn't find concrete implementation for template " $template);
  453. -
  454.             }
  455. -
  456.         else {
  457. -
  458.             $impl $template;
  459. -
  460.         }
  461. -
  462.  
  463. -
  464.         return $conn->getTable($impl);
  465. -
  466.     }
  467. -
  468.     /**
  469. -
  470.      * Completes the given association definition
  471. -
  472.      *
  473. -
  474.      * @param array $def    definition array to be completed
  475. -
  476.      * @return array        completed definition array
  477. -
  478.      */
  479. -
  480.     public function completeAssocDefinition($def
  481. -
  482.     {
  483. -
  484.         $conn $this->_table->getConnection();
  485. -
  486.         $def['table'$this->getImpl($def['class']);
  487. -
  488.         $def['class'$def['table']->getComponentName();
  489. -
  490.         $def['refTable'$this->getImpl($def['refClass']);
  491. -
  492.  
  493. -
  494.         $id $def['refTable']->getIdentifier();
  495. -
  496.  
  497. -
  498.         if (count($id1{
  499. -
  500.             if isset($def['foreign'])) {
  501. -
  502.                 // foreign key not set
  503. -
  504.                 // try to guess the foreign key
  505. -
  506.     
  507. -
  508.                 $def['foreign'($def['local'=== $id[0]$id[1$id[0];
  509. -
  510.             }
  511. -
  512.             if isset($def['local'])) {
  513. -
  514.                 // foreign key not set
  515. -
  516.                 // try to guess the foreign key
  517. -
  518.  
  519. -
  520.                 $def['local'($def['foreign'=== $id[0]$id[1$id[0];
  521. -
  522.             }
  523. -
  524.         else {
  525. -
  526.  
  527. -
  528.             if isset($def['foreign'])) {
  529. -
  530.                 // foreign key not set
  531. -
  532.                 // try to guess the foreign key
  533. -
  534.     
  535. -
  536.                 $columns $this->getIdentifiers($def['table']);
  537. -
  538.     
  539. -
  540.                 $def['foreign'$columns;
  541. -
  542.             }
  543. -
  544.             if isset($def['local'])) {
  545. -
  546.                 // local key not set
  547. -
  548.                 // try to guess the local key
  549. -
  550.                 $columns $this->getIdentifiers($this->_table);
  551. -
  552.     
  553. -
  554.                 $def['local'$columns;
  555. -
  556.             }
  557. -
  558.         }
  559. -
  560.         return $def;
  561. -
  562.     }
  563. -
  564.     /** 
  565. -
  566.      * getIdentifiers
  567. -
  568.      * gives a list of identifiers from given table
  569. -
  570.      *
  571. -
  572.      * the identifiers are in format:
  573. -
  574.      * [componentName].[identifier]
  575. -
  576.      *
  577. -
  578.      * @param Doctrine_Table $table     table object to retrieve identifiers from
  579. -
  580.      */
  581. -
  582.     public function getIdentifiers(Doctrine_Table $table)
  583. -
  584.     {
  585. -
  586.         if (is_array($table->getIdentifier())) {
  587. -
  588.             $columns array();
  589. -
  590.             foreach((array) $table->getIdentifier(as $identifier{
  591. -
  592.                 $columns[strtolower($table->getComponentName())
  593. -
  594.                            . '_' $table->getIdentifier();
  595. -
  596.             }
  597. -
  598.         else {
  599. -
  600.             $columns strtolower($table->getComponentName())
  601. -
  602.                            . '_' $table->getIdentifier();
  603. -
  604.         }
  605. -
  606.  
  607. -
  608.         return $columns;
  609. -
  610.     }
  611. -
  612.     /**
  613. -
  614.      * guessColumns
  615. -
  616.      *
  617. -
  618.      * @param array $classes                    an array of class names
  619. -
  620.      * @param Doctrine_Table $foreignTable      foreign table object
  621. -
  622.      * @return array                            an array of column names
  623. -
  624.      */
  625. -
  626.     public function guessColumns(array $classesDoctrine_Table $foreignTable)
  627. -
  628.     {
  629. -
  630.         $conn $this->_table->getConnection();
  631. -
  632.  
  633. -
  634.         foreach ($classes as $class{
  635. -
  636.             try {
  637. -
  638.                 $table   $conn->getTable($class);
  639. -
  640.             catch (Doctrine_Table_Exception $e{
  641. -
  642.                 continue;
  643. -
  644.             }
  645. -
  646.             $columns $this->getIdentifiers($table);
  647. -
  648.             $found   true;
  649. -
  650.  
  651. -
  652.             foreach ((array) $columns as $column{
  653. -
  654.                 if $foreignTable->hasColumn($column)) {
  655. -
  656.                     $found false;
  657. -
  658.                     break;
  659. -
  660.                 }
  661. -
  662.             }
  663. -
  664.             if ($found{
  665. -
  666.                 break;
  667. -
  668.             }
  669. -
  670.         }
  671. -
  672.         
  673. -
  674.         if $found{
  675. -
  676.             throw new Doctrine_Relation_Exception("Couldn't find columns.");
  677. -
  678.         }
  679. -
  680.  
  681. -
  682.         return $columns;
  683. -
  684.     }
  685. -
  686.     /**
  687. -
  688.      * Completes the given definition
  689. -
  690.      *
  691. -
  692.      * @param array $def    definition array to be completed
  693. -
  694.      * @return array        completed definition array
  695. -
  696.      */
  697. -
  698.     public function completeDefinition($def)
  699. -
  700.     {
  701. -
  702.         $conn $this->_table->getConnection();
  703. -
  704.         $def['table'$this->getImpl($def['class']);
  705. -
  706.         $def['class'$def['table']->getComponentName();
  707. -
  708.  
  709. -
  710.         $foreignClasses array_merge($def['table']->getOption('parents')array($def['class']));
  711. -
  712.         $localClasses   array_merge($this->_table->getOption('parents')array($this->_table->getComponentName()));
  713. -
  714.  
  715. -
  716.         if (isset($def['local'])) {
  717. -
  718.             if isset($def['foreign'])) {
  719. -
  720.                 // local key is set, but foreign key is not
  721. -
  722.                 // try to guess the foreign key
  723. -
  724.  
  725. -
  726.                 if ($def['local'=== $this->_table->getIdentifier()) {
  727. -
  728.                     $def['foreign'$this->guessColumns($localClasses$def['table']);
  729. -
  730.                 else {
  731. -
  732.                     // the foreign field is likely to be the
  733. -
  734.                     // identifier of the foreign class
  735. -
  736.                     $def['foreign'$def['table']->getIdentifier();
  737. -
  738.                     $def['localKey'true;
  739. -
  740.                 }
  741. -
  742.             else {
  743. -
  744.                 if ($def['local'!== $this->_table->getIdentifier(&& 
  745. -
  746.                     $def['type'== Doctrine_Relation::ONE{
  747. -
  748.                     $def['localKey'true;
  749. -
  750.                 }
  751. -
  752.             }
  753. -
  754.         else {
  755. -
  756.             if (isset($def['foreign'])) {
  757. -
  758.                 // local key not set, but foreign key is set
  759. -
  760.                 // try to guess the local key
  761. -
  762.                 if ($def['foreign'=== $def['table']->getIdentifier()) {
  763. -
  764.                     $def['localKey'true;
  765. -
  766.                     try {
  767. -
  768.                         $def['local'$this->guessColumns($foreignClasses$this->_table);
  769. -
  770.                     catch (Doctrine_Relation_Exception $e{
  771. -
  772.                         $def['local'$this->_table->getIdentifier();
  773. -
  774.                     }
  775. -
  776.                 else {
  777. -
  778.                     $def['local'$this->_table->getIdentifier();
  779. -
  780.                 }
  781. -
  782.             else {
  783. -
  784.                 // neither local or foreign key is being set
  785. -
  786.                 // try to guess both keys
  787. -
  788.  
  789. -
  790.                 $conn $this->_table->getConnection();
  791. -
  792.  
  793. -
  794.                 // the following loops are needed for covering inheritance
  795. -
  796.                 foreach ($localClasses as $class{
  797. -
  798.                     $table  $conn->getTable($class);
  799. -
  800.                     $column strtolower($table->getComponentName())
  801. -
  802.                             . '_' $table->getIdentifier();
  803. -
  804.  
  805. -
  806.                     foreach ($foreignClasses as $class2{
  807. -
  808.                         $table2 $conn->getTable($class2);
  809. -
  810.                         if ($table2->hasColumn($column)) {
  811. -
  812.                             $def['foreign'$column;
  813. -
  814.                             $def['local']   $table->getIdentifier();
  815. -
  816.  
  817. -
  818.                             return $def;
  819. -
  820.                         }
  821. -
  822.                     }
  823. -
  824.                 }
  825. -
  826.  
  827. -
  828.                 foreach ($foreignClasses as $class{
  829. -
  830.                     $table  $conn->getTable($class);
  831. -
  832.                     $column strtolower($table->getComponentName())
  833. -
  834.                             . '_' $table->getIdentifier();
  835. -
  836.                 
  837. -
  838.                     foreach ($localClasses as $class2{
  839. -
  840.                         $table2 $conn->getTable($class2);
  841. -
  842.                         if ($table2->hasColumn($column)) {
  843. -
  844.                             $def['foreign']  $table->getIdentifier();
  845. -
  846.                             $def['local']    $column;
  847. -
  848.                             $def['localKey'true;
  849. -
  850.                             return $def;
  851. -
  852.                         }
  853. -
  854.                     }
  855. -
  856.                 }
  857. -
  858.  
  859. -
  860.                 // auto-add columns and auto-build relation
  861. -
  862.                 $columns array();
  863. -
  864.                 foreach ((array) $this->_table->getIdentifier(as $id{
  865. -
  866.                     $column strtolower($table->getComponentName())
  867. -
  868.                             . '_' $id;
  869. -
  870.  
  871. -
  872.                     $col $this->_table->getDefinitionOf($id);
  873. -
  874.                     $type $col['type'];
  875. -
  876.                     $length $col['length'];
  877. -
  878.  
  879. -
  880.                     unset($col['type']);
  881. -
  882.                     unset($col['length']);
  883. -
  884.                     unset($col['autoincrement']);
  885. -
  886.                     unset($col['sequence']);
  887. -
  888.                     unset($col['primary']);
  889. -
  890.  
  891. -
  892.                     $def['table']->setColumn($column$type$length$col);
  893. -
  894.                     
  895. -
  896.                     $columns[$column;
  897. -
  898.                 }
  899. -
  900.                 if (count($columns1{
  901. -
  902.                     $def['foreign'$columns;
  903. -
  904.                 else {
  905. -
  906.                     $def['foreign'$columns[0];
  907. -
  908.                 }
  909. -
  910.                 $def['local'$this->_table->getIdentifier();
  911. -
  912.             }
  913. -
  914.         }
  915. -
  916.         return $def;
  917. -
  918.     }
  919. -
  920. }
  921. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParserException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParserException.php.html deleted file mode 100644 index b3ecd940f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineRelationParserException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */        
  40. -
  41. Doctrine::autoload('Doctrine_Relation_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Relation_Parser_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchema.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchema.php.html deleted file mode 100644 index da6dbd283..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchema.php.html +++ /dev/null @@ -1,92 +0,0 @@ - -
-

Source for file Schema.php

-

Documentation is available at Schema.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Schema.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Schema.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55. /**
  56. -
  57.  *  class Doctrine_Schema
  58. -
  59.  *  Holds information on one to many databases
  60. -
  61.  * @package     Doctrine
  62. -
  63.  * @category    Object Relational Mapping
  64. -
  65.  * @link        www.phpdoctrine.com
  66. -
  67.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  68. -
  69.  * @since       1.0
  70. -
  71.  * @version     $Revision: 1080 $
  72. -
  73.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  74. -
  75.  */
  76. -
  77. class Doctrine_Schema extends Doctrine_Schema_Object implements CountableIteratorAggregate
  78. -
  79. {
  80. -
  81.     /**
  82. -
  83.      * Holds any number of databases contained in the schema
  84. -
  85.      * @access private
  86. -
  87.      */
  88. -
  89.     private $childs;
  90. -
  91.  
  92. -
  93.     /**
  94. -
  95.      *
  96. -
  97.      * @param Doctrine_Schema_Database database      * @return
  98. -
  99.      * @access public
  100. -
  101.      */
  102. -
  103.     public function addDatabaseDoctrine_Schema_Database $database )
  104. -
  105.     {
  106. -
  107.          $this->childs[$database;
  108. -
  109.     }
  110. -
  111.  
  112. -
  113.     /**
  114. -
  115.      * Return the childs for this schema
  116. -
  117.      *
  118. -
  119.      * @return array of Doctrine_Schema_Database
  120. -
  121.      *
  122. -
  123.      */
  124. -
  125.     public function getDatabases(){
  126. -
  127.          return $this->childs;
  128. -
  129.     }
  130. -
  131.     /**
  132. -
  133.      *
  134. -
  135.      * @return 
  136. -
  137.      * @access public
  138. -
  139.      */
  140. -
  141.     public function __toString)
  142. -
  143.     {
  144. -
  145.  
  146. -
  147.     }
  148. -
  149.     /**
  150. -
  151.      *
  152. -
  153.      * @return bool 
  154. -
  155.      * @access public
  156. -
  157.      */
  158. -
  159.     public function isValid)
  160. -
  161.     {
  162. -
  163.  
  164. -
  165.     }
  166. -
  167. }
  168. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaColumn.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaColumn.php.html deleted file mode 100644 index 588a52ea3..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaColumn.php.html +++ /dev/null @@ -1,88 +0,0 @@ - -
-

Source for file Column.php

-

Documentation is available at Column.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Column.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Schema_Object');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Column.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Schema_Column
  60. -
  61.  * Holds information on a database table field
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @since       1.0
  72. -
  73.  * @version     $Revision: 1080 $
  74. -
  75.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  76. -
  77.  */
  78. -
  79. class Doctrine_Schema_Column extends Doctrine_Schema_Object implements IteratorAggregate
  80. -
  81. {
  82. -
  83.     /**
  84. -
  85.      * column definitions
  86. -
  87.      * @var array $definition 
  88. -
  89.      */
  90. -
  91.     protected $definition = array('name'    => '',
  92. -
  93.                                   'type'    => '',
  94. -
  95.                                   'length'  => null,
  96. -
  97.                                   'unique'  => false,
  98. -
  99.                                   'primary' => false,
  100. -
  101.                                   'notnull' => false,
  102. -
  103.                                   'default' => false,
  104. -
  105.                                   'autoinc' => false
  106. -
  107.                                   );
  108. -
  109.  
  110. -
  111.     public function getName()
  112. -
  113.     {
  114. -
  115.         return $this->definition['name'];
  116. -
  117.     }
  118. -
  119.     public function getType()
  120. -
  121.     {
  122. -
  123.         return $this->definition['type'];
  124. -
  125.     }
  126. -
  127.     public function isUnique()
  128. -
  129.     {
  130. -
  131.         return $this->definition['unique'];
  132. -
  133.     }
  134. -
  135.     public function isPrimaryKey()
  136. -
  137.     {
  138. -
  139.         return $this->definition['primary'];
  140. -
  141.     }
  142. -
  143.     public function defaultValue()
  144. -
  145.     {
  146. -
  147.         return $this->definition['default'];
  148. -
  149.     }
  150. -
  151.     public function isNotNull()
  152. -
  153.     {
  154. -
  155.         return $this->definition['notnull'];
  156. -
  157.     }
  158. -
  159. }
  160. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaDatabase.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaDatabase.php.html deleted file mode 100644 index c97bac144..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaDatabase.php.html +++ /dev/null @@ -1,106 +0,0 @@ - -
-

Source for file Database.php

-

Documentation is available at Database.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Database.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Schema_Object');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Database.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Schema_Database
  60. -
  61.  * Holds information on a database
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @since       1.0
  72. -
  73.  * @version     $Revision: 1080 $
  74. -
  75.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  76. -
  77.  */
  78. -
  79. -
  80. {
  81. -
  82.  
  83. -
  84.     protected $definition = array('name'        => null,
  85. -
  86.                                   'type'        => null,
  87. -
  88.                                   'charset'     => null,
  89. -
  90.                                   'description' => null,
  91. -
  92.                                   'version'     => null,
  93. -
  94.                                   'engine'      => null);
  95. -
  96.  
  97. -
  98.     private $childs = array();
  99. -
  100.  
  101. -
  102.     /**
  103. -
  104.      *
  105. -
  106.      * @return 
  107. -
  108.      * @access public
  109. -
  110.      */
  111. -
  112.     public function __clone)
  113. -
  114.     {
  115. -
  116.  
  117. -
  118.     }
  119. -
  120.     /**
  121. -
  122.      *
  123. -
  124.      * @return 
  125. -
  126.      * @access public
  127. -
  128.      */
  129. -
  130.     public function __toString)
  131. -
  132.     {
  133. -
  134.  
  135. -
  136.     }
  137. -
  138.     /**
  139. -
  140.      *
  141. -
  142.      * @return bool 
  143. -
  144.      * @access public
  145. -
  146.      */
  147. -
  148.     public function isValid)
  149. -
  150.     {
  151. -
  152.  
  153. -
  154.     }
  155. -
  156.     /**
  157. -
  158.      *
  159. -
  160.      * @param Doctrine_Schema_Table table      * @return Doctrine_Schema_Table
  161. -
  162.      * @access public
  163. -
  164.      */
  165. -
  166.     public function addTable$table null )
  167. -
  168.     {
  169. -
  170.         $this->childs[$table;
  171. -
  172.     }
  173. -
  174.  
  175. -
  176.     /**
  177. -
  178.      *
  179. -
  180.      * @return array of Doctrine_Schema_Table
  181. -
  182.      *
  183. -
  184.      */
  185. -
  186.     public function getTables()
  187. -
  188.     {
  189. -
  190.         return $this->childs;
  191. -
  192.     }
  193. -
  194. }
  195. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaException.php.html deleted file mode 100644 index 6b8645196..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaException.php.html +++ /dev/null @@ -1,48 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Schema_Exception
  60. -
  61.  * @package     Doctrine
  62. -
  63.  * @category    Object Relational Mapping
  64. -
  65.  * @link        www.phpdoctrine.com
  66. -
  67.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  68. -
  69.  * @since       1.0
  70. -
  71.  * @version     $Revision: 1080 $
  72. -
  73.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  74. -
  75.  */
  76. -
  77. class Doctrine_Schema_Exception extends Exception
  78. -
  79. }
  80. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaObject.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaObject.php.html deleted file mode 100644 index 7fa3d2b9e..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaObject.php.html +++ /dev/null @@ -1,110 +0,0 @@ - -
-

Source for file Object.php

-

Documentation is available at Object.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Object.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Access');
  42. -
  43. /**
  44. -
  45.  * class Doctrine_Schema_Object
  46. -
  47.  * Catches any non-property call from child classes and throws an exception.
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  66. -
  67.  */
  68. -
  69. abstract class Doctrine_Schema_Object extends Doctrine_Access implements IteratorAggregateCountable
  70. -
  71. {
  72. -
  73.  
  74. -
  75.     protected $children   = array();
  76. -
  77.  
  78. -
  79.     protected $definition = array('name' => '');
  80. -
  81.  
  82. -
  83.     public function __construct(array $definition array()) {
  84. -
  85.         foreach ($this->definition as $key => $val{
  86. -
  87.             if (isset($definition[$key])) {
  88. -
  89.                 $this->definition[$key$definition[$key];
  90. -
  91.             }
  92. -
  93.         }
  94. -
  95.     }
  96. -
  97.  
  98. -
  99.     public function get($name)
  100. -
  101.     {
  102. -
  103.         if array_key_exists($name$this->definition)) {
  104. -
  105.             throw new Doctrine_Schema_Exception('Unknown definition '$name);
  106. -
  107.         }
  108. -
  109.         return $this->definition[$name];
  110. -
  111.  
  112. -
  113.     }
  114. -
  115.  
  116. -
  117.     public function set($name$value)
  118. -
  119.     {
  120. -
  121.         if array_key_exists($name$this->definition)) {
  122. -
  123.             throw new Doctrine_Schema_Exception('Unknown definition '$name);
  124. -
  125.         }
  126. -
  127.         $this->definition[$name$value;
  128. -
  129.     }
  130. -
  131.  
  132. -
  133.     public function contains($name)
  134. -
  135.     {
  136. -
  137.         return array_key_exists($name$this->definition);
  138. -
  139.     }
  140. -
  141.  
  142. -
  143.     public function toArray()
  144. -
  145.     {
  146. -
  147.         return $this->definition;
  148. -
  149.     }
  150. -
  151.     /**
  152. -
  153.      *
  154. -
  155.      * @return int 
  156. -
  157.      * @access public
  158. -
  159.      */
  160. -
  161.     public function count()
  162. -
  163.     {
  164. -
  165.         if empty($this->children)) {
  166. -
  167.             return count($this->children);
  168. -
  169.         }
  170. -
  171.         return count($this->definition);
  172. -
  173.     }
  174. -
  175.  
  176. -
  177.     /**
  178. -
  179.      * getIterator
  180. -
  181.      *
  182. -
  183.      * @return ArrayIterator 
  184. -
  185.      * @access public
  186. -
  187.      */
  188. -
  189.     public function getIterator()
  190. -
  191.     {
  192. -
  193.         if empty($this->children)) {
  194. -
  195.             return new ArrayIterator($this->children);
  196. -
  197.         }
  198. -
  199.         return new ArrayIterator($this->definition);
  200. -
  201.     }
  202. -
  203. }
  204. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaRelation.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaRelation.php.html deleted file mode 100644 index 6f1900b66..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaRelation.php.html +++ /dev/null @@ -1,134 +0,0 @@ - -
-

Source for file Relation.php

-

Documentation is available at Relation.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Relation.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Schema_Object');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Relation.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Schema_Relation
  60. -
  61.  * Holds information on a foreign key relation.
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @since       1.0
  72. -
  73.  * @version     $Revision: 1080 $
  74. -
  75.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  76. -
  77.  */
  78. -
  79. -
  80. {
  81. -
  82.  
  83. -
  84.     /**
  85. -
  86.      * Column that refers to another table
  87. -
  88.      * @access public
  89. -
  90.      */
  91. -
  92.     public $referencingColumn;
  93. -
  94.  
  95. -
  96.     /**
  97. -
  98.      * Column that is referred from another table
  99. -
  100.      * @access public
  101. -
  102.      */
  103. -
  104.     public $referencedColumn;
  105. -
  106.  
  107. -
  108.     /**
  109. -
  110.      * Table where the referred column lives
  111. -
  112.      * @access public
  113. -
  114.      *
  115. -
  116.     */
  117. -
  118.     public $referencedTable;
  119. -
  120.  
  121. -
  122.     /**
  123. -
  124.      * ON UPDATE or ON DELETE action
  125. -
  126.      * @static
  127. -
  128.      * @access public
  129. -
  130.      */
  131. -
  132.     public static $ACTION_RESTRICT 1;
  133. -
  134.  
  135. -
  136.     /**
  137. -
  138.      * ON UPDATE or ON DELETE action
  139. -
  140.      * @static
  141. -
  142.      * @access public
  143. -
  144.      */
  145. -
  146.     public static $ACTION_SET_NULL 2;
  147. -
  148.  
  149. -
  150.     /**
  151. -
  152.      * ON UPDATE or ON DELETE action
  153. -
  154.      * @static
  155. -
  156.      * @access public
  157. -
  158.      */
  159. -
  160.     public static $ACTION_CASCADE 3;
  161. -
  162.  
  163. -
  164.     /**
  165. -
  166.      * ON UPDATE or ON DELETE action
  167. -
  168.      * @static
  169. -
  170.      * @access public
  171. -
  172.      */
  173. -
  174.     public static $ACTION_NO_ACTION 4;
  175. -
  176.  
  177. -
  178.     /**
  179. -
  180.      * ON UPDATE or ON DELETE action
  181. -
  182.      * @static
  183. -
  184.      * @access public
  185. -
  186.      */
  187. -
  188.     public static $ACTION_SET_DEFAULT 5;
  189. -
  190.  
  191. -
  192.     /**
  193. -
  194.      *
  195. -
  196.      * @param Doctrine_Schema_Column referencing
  197. -
  198.      * @param Doctrine_Schema_Table referencedtable
  199. -
  200.      * @param Doctrine_Schema_Column referencedColumn
  201. -
  202.      * @return 
  203. -
  204.      * @access public
  205. -
  206.      */
  207. -
  208.     public function setRelationBetween$referencingColumn$referencedTable$referencedColumn )
  209. -
  210.     {
  211. -
  212.         $this->referencingColumn = $referencingColumn;
  213. -
  214.         $this->referencedTable = $referencedTable;
  215. -
  216.         $this->referencedColumn = $referencedColumn;
  217. -
  218.     }
  219. -
  220.     /**
  221. -
  222.      * @return string 
  223. -
  224.      */
  225. -
  226.     public function __toString)
  227. -
  228.     {
  229. -
  230.         return "Relation between '".$this->referencingColumn."' and '".$this->referencedTable."'.'".$this->referencingColumn."'";
  231. -
  232.     }
  233. -
  234.     /**
  235. -
  236.      *
  237. -
  238.      * @return bool 
  239. -
  240.      */
  241. -
  242.     public function isValid)
  243. -
  244.     {
  245. -
  246.  
  247. -
  248.     }
  249. -
  250. }
  251. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaTable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaTable.php.html deleted file mode 100644 index 1d9bc0d70..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSchemaTable.php.html +++ /dev/null @@ -1,119 +0,0 @@ - -
-

Source for file Table.php

-

Documentation is available at Table.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Table.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Schema_Object');
  42. -
  43. /**
  44. -
  45.  * @package     Doctrine
  46. -
  47.  * @url         http://www.phpdoctrine.com
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @author      Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
  52. -
  53.  * @version     $Id: Table.php 1080 2007-02-10 18:17:08Z romanb $
  54. -
  55.  */
  56. -
  57. /**
  58. -
  59.  * class Doctrine_Schema_Table
  60. -
  61.  * Holds information on a database table
  62. -
  63.  * @package     Doctrine
  64. -
  65.  * @category    Object Relational Mapping
  66. -
  67.  * @link        www.phpdoctrine.com
  68. -
  69.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  70. -
  71.  * @since       1.0
  72. -
  73.  * @version     $Revision: 1080 $
  74. -
  75.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  76. -
  77.  */
  78. -
  79. class Doctrine_Schema_Table extends Doctrine_Schema_Object implements CountableIteratorAggregate
  80. -
  81. {
  82. -
  83.  
  84. -
  85.     protected $definition = array('name'        => '',
  86. -
  87.                                   'check'       => '',
  88. -
  89.                                   'charset'     => '',
  90. -
  91.                                   'description' => '');
  92. -
  93.     /**
  94. -
  95.      * Relations this table has with others. An array of Doctrine_Schema_Relation
  96. -
  97.      */
  98. -
  99.     private $relations = array();
  100. -
  101.     /**
  102. -
  103.      *
  104. -
  105.      * @return bool 
  106. -
  107.      * @access public
  108. -
  109.      */
  110. -
  111.     public function isValid)
  112. -
  113.     {
  114. -
  115.  
  116. -
  117.     }
  118. -
  119.     /**
  120. -
  121.      * returns an array of Doctrine_Schema_Column objects
  122. -
  123.      *
  124. -
  125.      * @return array 
  126. -
  127.      */
  128. -
  129.     public function getColumns()
  130. -
  131.     {
  132. -
  133.         return $this->children;
  134. -
  135.     }
  136. -
  137.     /**
  138. -
  139.      * @return Doctrine_Schema_Column|false
  140. -
  141.      */
  142. -
  143.     public function getColumn($name)
  144. -
  145.     {
  146. -
  147.         if isset($this->children[$name])) {
  148. -
  149.             return false;
  150. -
  151.         }
  152. -
  153.         return $this->children[$name];
  154. -
  155.     }
  156. -
  157.     /**
  158. -
  159.      *
  160. -
  161.      * @param Doctrine_Schema_Column column
  162. -
  163.      * @return Doctrine_Schema_Table 
  164. -
  165.      * @access public
  166. -
  167.      */
  168. -
  169.     public function addColumn(Doctrine_Schema_Column $column)
  170. -
  171.     {
  172. -
  173.         $name $column->get('name');
  174. -
  175.         $this->children[$name$column;
  176. -
  177.  
  178. -
  179.         return $this;
  180. -
  181.     }
  182. -
  183.  
  184. -
  185.     /**
  186. -
  187.      * Adds a relation between a local column and a 2nd table / column
  188. -
  189.      *
  190. -
  191.      * @param Doctrine_Schema_Relation Relation
  192. -
  193.      *
  194. -
  195.     */
  196. -
  197.     public function setRelation(Doctrine_Schema_Relation $relation){
  198. -
  199.          $this->relations[$relation;
  200. -
  201.     }
  202. -
  203.     /**
  204. -
  205.      * Return all the relations this table has with others
  206. -
  207.      *
  208. -
  209.      * @return array Array of Doctrine_Schema_Relation
  210. -
  211.     */
  212. -
  213.     public function getRelations(){
  214. -
  215.         return $this->relations;
  216. -
  217.     }
  218. -
  219.  
  220. -
  221. }
  222. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearch.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearch.php.html deleted file mode 100644 index 4b1c53496..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearch.php.html +++ /dev/null @@ -1,168 +0,0 @@ - -
-

Source for file Search.php

-

Documentation is available at Search.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     protected $_options = array('generateFiles' => true,
  69. -
  70.                                 'className'     => '%CLASS%Index');
  71. -
  72.  
  73. -
  74.     
  75. -
  76.     public function __construct(array $options)
  77. -
  78.     {
  79. -
  80.         $this->_options array_merge($this->_options$options);
  81. -
  82.         
  83. -
  84.         if isset($this->_options['analyzer'])) {
  85. -
  86.             $this->_options['analyzer'new Doctrine_Search_Analyzer_Standard();
  87. -
  88.         }
  89. -
  90.     }
  91. -
  92.  
  93. -
  94.     public function getOption($option)
  95. -
  96.     {
  97. -
  98.         if (isset($this->_options[$option])) {
  99. -
  100.             return $this->_options[$option];
  101. -
  102.         }
  103. -
  104.         
  105. -
  106.         throw new Doctrine_Search_Exception('Unknown option ' $option);
  107. -
  108.     }
  109. -
  110.     
  111. -
  112.     public function analyze($text)
  113. -
  114.     {
  115. -
  116.         return $this->_options['analyzer']->analyze($text);
  117. -
  118.     }
  119. -
  120.  
  121. -
  122.     public function setOption($option$value)
  123. -
  124.     {
  125. -
  126.         $this->_options[$option$value;
  127. -
  128.  
  129. -
  130.         return $this;
  131. -
  132.     }
  133. -
  134.     /**
  135. -
  136.      * updateIndex
  137. -
  138.      * updates the index
  139. -
  140.      *
  141. -
  142.      * @param Doctrine_Record $record 
  143. -
  144.      * @return integer 
  145. -
  146.      */
  147. -
  148.     public function updateIndex(Doctrine_Record $record
  149. -
  150.     {
  151. -
  152.         $fields $this->getOption('fields');
  153. -
  154.         $class  $this->getOption('className');
  155. -
  156.         $name   $record->getTable()->getComponentName();
  157. -
  158.  
  159. -
  160.         foreach ($fields as $field{
  161. -
  162.             $data  $record->get($field);
  163. -
  164.  
  165. -
  166.             $terms $this->analyze($data);
  167. -
  168.  
  169. -
  170.             foreach ($terms as $pos => $term{
  171. -
  172.                 $index new $class();
  173. -
  174.  
  175. -
  176.                 $index->keyword $term;
  177. -
  178.                 $index->position $pos;
  179. -
  180.                 $index->field $field;
  181. -
  182.                 $index->$name $record;
  183. -
  184.                 
  185. -
  186.                 $index->save();
  187. -
  188.             }
  189. -
  190.         }
  191. -
  192.     }
  193. -
  194.     public function buildDefinition(Doctrine_Table $table)
  195. -
  196.     {
  197. -
  198.         $name $table->getComponentName();
  199. -
  200.  
  201. -
  202.         $className $this->getOption('className');
  203. -
  204.         
  205. -
  206.         if (class_exists($className)) {
  207. -
  208.             return false;
  209. -
  210.         }
  211. -
  212.  
  213. -
  214.         $columns array('keyword'  => array('type'    => 'string',
  215. -
  216.                                              'length'  => 200,
  217. -
  218.                                              'notnull' => true,
  219. -
  220.                                              'primary' => true,
  221. -
  222.                                              ),
  223. -
  224.                          'field'    => array('type'    => 'string',
  225. -
  226.                                              'length'  => 50,
  227. -
  228.                                              'notnull' => true,
  229. -
  230.                                              'primary' => true),
  231. -
  232.                          'position' => array('type'    => 'integer',
  233. -
  234.                                              'length'  => 8,
  235. -
  236.                                              'primary' => true,
  237. -
  238.                                              ));
  239. -
  240.  
  241. -
  242.         $id $table->getIdentifier();
  243. -
  244.  
  245. -
  246.         $options array('className' => $className);
  247. -
  248.  
  249. -
  250.  
  251. -
  252.         $fk array();
  253. -
  254.         foreach ((array) $id as $column{
  255. -
  256.             $def $table->getDefinitionOf($column);
  257. -
  258.  
  259. -
  260.             unset($def['autoincrement']);
  261. -
  262.             unset($def['sequence']);
  263. -
  264.             unset($def['primary']);
  265. -
  266.  
  267. -
  268.             $col strtolower(Doctrine::tableize($name'_' $column);
  269. -
  270.  
  271. -
  272.             $def['primary'true;
  273. -
  274.             $fk[$col$def;
  275. -
  276.         }
  277. -
  278.         
  279. -
  280.         $local (count($fk1array_keys($fkkey($fk);
  281. -
  282.         
  283. -
  284.         $relations array($name => array('local' => $local,
  285. -
  286.                                           'foreign' => $id
  287. -
  288.                                           'onDelete' => 'CASCADE',
  289. -
  290.                                           'onUpdate' => 'CASCADE'));
  291. -
  292.  
  293. -
  294.  
  295. -
  296.         $columns += $fk;
  297. -
  298.  
  299. -
  300.         $builder new Doctrine_Import_Builder();
  301. -
  302.  
  303. -
  304.         $def $builder->buildDefinition($options$columns$relations);
  305. -
  306.     
  307. -
  308.         if $this->_options['generateFiles']{
  309. -
  310.             eval($def);
  311. -
  312.         }
  313. -
  314.         return true;
  315. -
  316.     }
  317. -
  318. }
  319. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzer.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzer.php.html deleted file mode 100644 index 62da4e3ba..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzer.php.html +++ /dev/null @@ -1,47 +0,0 @@ - -
-

Source for file Analyzer.php

-

Documentation is available at Analyzer.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Analyzer
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. class Doctrine_Search_Analyzer implements Doctrine_Search_Analyzer_Interface
  66. -
  67. {
  68. -
  69.     public function analyze($text)
  70. -
  71.     {
  72. -
  73.     
  74. -
  75.     }
  76. -
  77. }
  78. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerException.php.html deleted file mode 100644 index e0b0624ab..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Search_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Analyzer_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerInterface.php.html deleted file mode 100644 index 2127a022b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerInterface.php.html +++ /dev/null @@ -1,44 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Analyzer_Interface
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function analyze($text);
  69. -
  70. }
  71. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerStandard.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerStandard.php.html deleted file mode 100644 index 76994b185..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchAnalyzerStandard.php.html +++ /dev/null @@ -1,299 +0,0 @@ - -
-

Source for file Standard.php

-

Documentation is available at Standard.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Analyzer_Standard
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Interface
  66. -
  67. {
  68. -
  69.     protected static $_stopwords array(
  70. -
  71.                             '0',
  72. -
  73.                             '1',
  74. -
  75.                             '2',
  76. -
  77.                             '3',
  78. -
  79.                             '4',
  80. -
  81.                             '5',
  82. -
  83.                             '6',
  84. -
  85.                             '7',
  86. -
  87.                             '8',
  88. -
  89.                             '9',
  90. -
  91.                             '10',
  92. -
  93.                             'a',
  94. -
  95.                             'about',
  96. -
  97.                             'after',
  98. -
  99.                             'all',
  100. -
  101.                             'almost',
  102. -
  103.                             'along',
  104. -
  105.                             'also',
  106. -
  107.                             'amp',
  108. -
  109.                             'an',
  110. -
  111.                             'and',
  112. -
  113.                             'another',
  114. -
  115.                             'any',
  116. -
  117.                             'are',
  118. -
  119.                             'area',
  120. -
  121.                             'around',
  122. -
  123.                             'as',
  124. -
  125.                             'at',
  126. -
  127.                             'available',
  128. -
  129.                             'back',
  130. -
  131.                             'be',
  132. -
  133.                             'because',
  134. -
  135.                             'been',
  136. -
  137.                             'being',
  138. -
  139.                             'best',
  140. -
  141.                             'better',
  142. -
  143.                             'big',
  144. -
  145.                             'bit',
  146. -
  147.                             'both',
  148. -
  149.                             'but',
  150. -
  151.                             'by',
  152. -
  153.                             'c',
  154. -
  155.                             'came',
  156. -
  157.                             'can',
  158. -
  159.                             'capable',
  160. -
  161.                             'control',
  162. -
  163.                             'could',
  164. -
  165.                             'course',
  166. -
  167.                             'd',
  168. -
  169.                             'dan',
  170. -
  171.                             'day',
  172. -
  173.                             'decided',
  174. -
  175.                             'did',
  176. -
  177.                             'didn',
  178. -
  179.                             'different',
  180. -
  181.                             'div',
  182. -
  183.                             'do',
  184. -
  185.                             'doesn',
  186. -
  187.                             'don',
  188. -
  189.                             'down',
  190. -
  191.                             'drive',
  192. -
  193.                             'e',
  194. -
  195.                             'each',
  196. -
  197.                             'easily',
  198. -
  199.                             'easy',
  200. -
  201.                             'edition',
  202. -
  203.                             'end',
  204. -
  205.                             'enough',
  206. -
  207.                             'even',
  208. -
  209.                             'every',
  210. -
  211.                             'example',
  212. -
  213.                             'few',
  214. -
  215.                             'find',
  216. -
  217.                             'first',
  218. -
  219.                             'for',
  220. -
  221.                             'found',
  222. -
  223.                             'from',
  224. -
  225.                             'get',
  226. -
  227.                             'go',
  228. -
  229.                             'going',
  230. -
  231.                             'good',
  232. -
  233.                             'got',
  234. -
  235.                             'gt',
  236. -
  237.                             'had',
  238. -
  239.                             'hard',
  240. -
  241.                             'has',
  242. -
  243.                             'have',
  244. -
  245.                             'he',
  246. -
  247.                             'her',
  248. -
  249.                             'here',
  250. -
  251.                             'how',
  252. -
  253.                             'i',
  254. -
  255.                             'if',
  256. -
  257.                             'in',
  258. -
  259.                             'into',
  260. -
  261.                             'is',
  262. -
  263.                             'isn',
  264. -
  265.                             'it',
  266. -
  267.                             'just',
  268. -
  269.                             'know',
  270. -
  271.                             'last',
  272. -
  273.                             'left',
  274. -
  275.                             'li',
  276. -
  277.                             'like',
  278. -
  279.                             'little',
  280. -
  281.                             'll',
  282. -
  283.                             'long',
  284. -
  285.                             'look',
  286. -
  287.                             'lot',
  288. -
  289.                             'lt',
  290. -
  291.                             'm',
  292. -
  293.                             'made',
  294. -
  295.                             'make',
  296. -
  297.                             'many',
  298. -
  299.                             'mb',
  300. -
  301.                             'me',
  302. -
  303.                             'menu',
  304. -
  305.                             'might',
  306. -
  307.                             'mm',
  308. -
  309.                             'more',
  310. -
  311.                             'most',
  312. -
  313.                             'much',
  314. -
  315.                             'my',
  316. -
  317.                             'name',
  318. -
  319.                             'nbsp',
  320. -
  321.                             'need',
  322. -
  323.                             'new',
  324. -
  325.                             'no',
  326. -
  327.                             'not',
  328. -
  329.                             'now',
  330. -
  331.                             'number',
  332. -
  333.                             'of',
  334. -
  335.                             'off',
  336. -
  337.                             'old',
  338. -
  339.                             'on',
  340. -
  341.                             'one',
  342. -
  343.                             'only',
  344. -
  345.                             'or',
  346. -
  347.                             'original',
  348. -
  349.                             'other',
  350. -
  351.                             'our',
  352. -
  353.                             'out',
  354. -
  355.                             'over',
  356. -
  357.                             'part',
  358. -
  359.                             'place',
  360. -
  361.                             'point',
  362. -
  363.                             'pretty',
  364. -
  365.                             'probably',
  366. -
  367.                             'problem',
  368. -
  369.                             'put',
  370. -
  371.                             'quite',
  372. -
  373.                             'quot',
  374. -
  375.                             'r',
  376. -
  377.                             're',
  378. -
  379.                             'really',
  380. -
  381.                             'results',
  382. -
  383.                             'right',
  384. -
  385.                             's',
  386. -
  387.                             'same',
  388. -
  389.                             'saw',
  390. -
  391.                             'see',
  392. -
  393.                             'set',
  394. -
  395.                             'several',
  396. -
  397.                             'she',
  398. -
  399.                             'sherree',
  400. -
  401.                             'should',
  402. -
  403.                             'since',
  404. -
  405.                             'size',
  406. -
  407.                             'small',
  408. -
  409.                             'so',
  410. -
  411.                             'some',
  412. -
  413.                             'something',
  414. -
  415.                             'special',
  416. -
  417.                             'still',
  418. -
  419.                             'stuff',
  420. -
  421.                             'such',
  422. -
  423.                             'sure',
  424. -
  425.                             'system',
  426. -
  427.                             't',
  428. -
  429.                             'take',
  430. -
  431.                             'than',
  432. -
  433.                             'that',
  434. -
  435.                             'the',
  436. -
  437.                             'their',
  438. -
  439.                             'them',
  440. -
  441.                             'then',
  442. -
  443.                             'there',
  444. -
  445.                             'these',
  446. -
  447.                             'they',
  448. -
  449.                             'thing',
  450. -
  451.                             'things',
  452. -
  453.                             'think',
  454. -
  455.                             'this',
  456. -
  457.                             'those',
  458. -
  459.                             'though',
  460. -
  461.                             'through',
  462. -
  463.                             'time',
  464. -
  465.                             'to',
  466. -
  467.                             'today',
  468. -
  469.                             'together',
  470. -
  471.                             'too',
  472. -
  473.                             'took',
  474. -
  475.                             'two',
  476. -
  477.                             'up',
  478. -
  479.                             'us',
  480. -
  481.                             'use',
  482. -
  483.                             'used',
  484. -
  485.                             'using',
  486. -
  487.                             've',
  488. -
  489.                             'very',
  490. -
  491.                             'want',
  492. -
  493.                             'was',
  494. -
  495.                             'way',
  496. -
  497.                             'we',
  498. -
  499.                             'well',
  500. -
  501.                             'went',
  502. -
  503.                             'were',
  504. -
  505.                             'what',
  506. -
  507.                             'when',
  508. -
  509.                             'where',
  510. -
  511.                             'which',
  512. -
  513.                             'while',
  514. -
  515.                             'white',
  516. -
  517.                             'who',
  518. -
  519.                             'will',
  520. -
  521.                             'with',
  522. -
  523.                             'would',
  524. -
  525.                             'you',
  526. -
  527.                             'your',
  528. -
  529.                             );
  530. -
  531.  
  532. -
  533.     public function analyze($text)
  534. -
  535.     {
  536. -
  537.         $text preg_replace('/[.()&#!,?^£@%&{}+]/'' '$text);
  538. -
  539.         $text str_replace('  '' '$text);
  540. -
  541.  
  542. -
  543.         $terms explode(' '$text);
  544. -
  545.         
  546. -
  547.         $ret array();
  548. -
  549.         if empty($terms)) {
  550. -
  551.             foreach ($terms as $i => $term{
  552. -
  553.                 if (empty($term)) {
  554. -
  555.                     continue;
  556. -
  557.                 }
  558. -
  559.                 $lower strtolower(trim($term));
  560. -
  561.  
  562. -
  563.                 if (in_array($lowerself::$_stopwords)) {
  564. -
  565.                     continue;
  566. -
  567.                 }
  568. -
  569.  
  570. -
  571.                 $ret[$i$lower;
  572. -
  573.             }
  574. -
  575.         }
  576. -
  577.         return $ret;
  578. -
  579.     }
  580. -
  581. }
  582. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchException.php.html deleted file mode 100644 index 93ca25305..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexer.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexer.php.html deleted file mode 100644 index 693d5520f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexer.php.html +++ /dev/null @@ -1,83 +0,0 @@ - -
-

Source for file Indexer.php

-

Documentation is available at Indexer.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Indexer
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function indexDirectory($dir)
  69. -
  70.     {
  71. -
  72.         if file_exists($dir)) {
  73. -
  74.            throw new Doctrine_Search_Indexer_Exception('Unknown directory ' $dir);
  75. -
  76.         }
  77. -
  78.  
  79. -
  80.         $it new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)RecursiveIteratorIterator::LEAVES_ONLY);
  81. -
  82.  
  83. -
  84.         $files array();
  85. -
  86.         foreach ($it as $file{
  87. -
  88.             $name $file->getPathName();
  89. -
  90.             if (strpos($name'.svn'=== false{
  91. -
  92.                 $files[$name;
  93. -
  94.             }
  95. -
  96.         }
  97. -
  98.  
  99. -
  100.         $q new Doctrine_Query();
  101. -
  102.         $q->delete()
  103. -
  104.           ->from('Doctrine_File f')
  105. -
  106.           ->where('f.url LIKE ?'array($dir '%'))
  107. -
  108.           ->execute();
  109. -
  110.  
  111. -
  112.         // clear the index
  113. -
  114.         $q new Doctrine_Query();
  115. -
  116.         $q->delete()
  117. -
  118.           ->from('Doctrine_File_Index i')
  119. -
  120.           ->where('i.file_id = ?')
  121. -
  122.           ->execute();
  123. -
  124.  
  125. -
  126.  
  127. -
  128.         $conn Doctrine_Manager::connection();
  129. -
  130.  
  131. -
  132.         $coll new Doctrine_Collection('Doctrine_File');
  133. -
  134.  
  135. -
  136.         foreach ($files as $file{
  137. -
  138.             $coll[]->url $file;
  139. -
  140.         }
  141. -
  142.         
  143. -
  144.         $coll->save();
  145. -
  146.     }
  147. -
  148. }
  149. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerDir.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerDir.php.html deleted file mode 100644 index 233f4a218..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerDir.php.html +++ /dev/null @@ -1,55 +0,0 @@ - -
-

Source for file Dir.php

-

Documentation is available at Dir.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Indexer_Dir
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function add($dir)
  69. -
  70.     {
  71. -
  72.         if file_exists($dir)) {
  73. -
  74.            throw new Doctrine_Search_Indexer_Exception('Unknown directory ' $dir);
  75. -
  76.         }
  77. -
  78.  
  79. -
  80.         $it new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)RecursiveIteratorIterator::LEAVES_ONLY);
  81. -
  82.         
  83. -
  84.         foreach ($it as $file{
  85. -
  86.             $this->indexFile($file);
  87. -
  88.         }
  89. -
  90.     }
  91. -
  92. }
  93. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerException.php.html deleted file mode 100644 index 9a2d2bd30..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchIndexerException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Indexer
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchListener.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchListener.php.html deleted file mode 100644 index 3d82c99ae..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchListener.php.html +++ /dev/null @@ -1,64 +0,0 @@ - -
-

Source for file Listener.php

-

Documentation is available at Listener.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Listener
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     protected $_search;
  69. -
  70.  
  71. -
  72.     public function __construct(Doctrine_Search $search)
  73. -
  74.     {
  75. -
  76.         $this->_search = $search;
  77. -
  78.     }
  79. -
  80.  
  81. -
  82.     public function preUpdate(Doctrine_Event $event)
  83. -
  84.     {
  85. -
  86.     }
  87. -
  88.  
  89. -
  90.     public function postUpdate(Doctrine_Event $event)
  91. -
  92.     {
  93. -
  94.  
  95. -
  96.     }
  97. -
  98.     public function postInsert(Doctrine_Event $event)
  99. -
  100.     {
  101. -
  102.         $record $event->getInvoker();
  103. -
  104.         
  105. -
  106.         $this->_search->updateIndex($record);
  107. -
  108.     }
  109. -
  110. }
  111. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchParser.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchParser.php.html deleted file mode 100644 index 136323fd2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchParser.php.html +++ /dev/null @@ -1,49 +0,0 @@ - -
-

Source for file Parser.php

-

Documentation is available at Parser.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Parser_Standard
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function parse($file)
  69. -
  70.     {
  71. -
  72.         $contents file_get_contents($file);
  73. -
  74.         
  75. -
  76.         return array('url' => $file'contents' => $contents);
  77. -
  78.     }
  79. -
  80. }
  81. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchQuery.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchQuery.php.html deleted file mode 100644 index f3b19c6b0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchQuery.php.html +++ /dev/null @@ -1,245 +0,0 @@ - -
-

Source for file Query.php

-

Documentation is available at Query.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Hook.php 1939 2007-07-05 23:47:48Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Query
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1939 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var Doctrine_Query $query           the base query
  71. -
  72.      */
  73. -
  74.     protected $_query;
  75. -
  76.     /**
  77. -
  78.      * @var Doctrine_Table $_table          the index table
  79. -
  80.      */
  81. -
  82.     protected $_table = array();
  83. -
  84.     
  85. -
  86.     protected $_sql = '';
  87. -
  88.     
  89. -
  90.     protected $_params = array();
  91. -
  92.     
  93. -
  94.  
  95. -
  96.     protected $_condition;
  97. -
  98.     /**
  99. -
  100.      * @param octrine_Table $_table         the index table
  101. -
  102.      */
  103. -
  104.     public function __construct($table)
  105. -
  106.     {
  107. -
  108.         if (is_string($table)) {
  109. -
  110.            $table Doctrine_Manager::table($table);
  111. -
  112.         }
  113. -
  114.  
  115. -
  116.         $this->_table = $table;
  117. -
  118.  
  119. -
  120.         $this->_query = new Doctrine_Query();
  121. -
  122.         $foreignId current(array_diff($this->_table->getColumnNames()array('keyword''field''position')));
  123. -
  124.  
  125. -
  126.         $this->_condition = $foreignId ' %s (SELECT ' $foreignId ' FROM ' $this->_table->getTableName(' WHERE ';
  127. -
  128.     }
  129. -
  130.     /**
  131. -
  132.      * getQuery
  133. -
  134.      *
  135. -
  136.      * @return Doctrine_Query       returns the query object associated with this object
  137. -
  138.      */
  139. -
  140.     public function getQuery()
  141. -
  142.     {
  143. -
  144.         return $this->_query;
  145. -
  146.     }
  147. -
  148.  
  149. -
  150.     public function search($text)
  151. -
  152.     {
  153. -
  154.         $text trim($text);
  155. -
  156.         
  157. -
  158.         $foreignId current(array_diff($this->_table->getColumnNames()array('keyword''field''position')));
  159. -
  160.  
  161. -
  162.         $weighted false;
  163. -
  164.         if (strpos($text'^'=== false{
  165. -
  166.             $select 'SELECT COUNT(keyword) AS relevance, ' $foreignId;
  167. -
  168.             $from 'FROM ' $this->_table->getTableName();
  169. -
  170.         else {
  171. -
  172.             // organize terms according weights
  173. -
  174.             $weighted true;
  175. -
  176.  
  177. -
  178.             $select 'SELECT SUM(sub_relevance) AS relevance, ' $foreignId;
  179. -
  180.             $from 'FROM ' ;
  181. -
  182.         }
  183. -
  184.         
  185. -
  186.         $where 'WHERE ';
  187. -
  188.         $where .= $this->parseClause($text);
  189. -
  190.  
  191. -
  192.         $groupby 'GROUP BY ' $foreignId;
  193. -
  194.         $orderby 'ORDER BY relevance';
  195. -
  196.  
  197. -
  198.         $this->_sql = $select ' ' $from ' ' $where ' ' $groupby ' ' $orderby;
  199. -
  200.     }
  201. -
  202.  
  203. -
  204.     public function parseClause($originalClause$recursive false)
  205. -
  206.     {
  207. -
  208.         $clause Doctrine_Tokenizer::bracketTrim($originalClause);
  209. -
  210.         
  211. -
  212.         $brackets false;
  213. -
  214.  
  215. -
  216.         if ($clause !== $originalClause{
  217. -
  218.             $brackets true;
  219. -
  220.         }
  221. -
  222.  
  223. -
  224.         $foreignId current(array_diff($this->_table->getColumnNames()array('keyword''field''position')));
  225. -
  226.         
  227. -
  228.         $terms Doctrine_Tokenizer::sqlExplode($clause' OR ''('')');
  229. -
  230.  
  231. -
  232.         $ret array();
  233. -
  234.  
  235. -
  236.         if (count($terms1{
  237. -
  238.             $leavesOnly true;
  239. -
  240.  
  241. -
  242.             foreach ($terms as $k => $term{
  243. -
  244.                 if ($this->isExpression($term)) {
  245. -
  246.                     $ret[$k$this->parseClause($termtrue);
  247. -
  248.                     $leavesOnly false;
  249. -
  250.                 else {
  251. -
  252.                     $ret[$k$this->parseTerm($term);
  253. -
  254.                 }
  255. -
  256.             }
  257. -
  258.  
  259. -
  260.             $return implode(' OR '$ret);
  261. -
  262.  
  263. -
  264.             if ($leavesOnly && $recursive{
  265. -
  266.                 $return sprintf($this->_condition'IN'$return ')';
  267. -
  268.                 $brackets false;
  269. -
  270.             }
  271. -
  272.         else {
  273. -
  274.             $terms Doctrine_Tokenizer::sqlExplode($clause' ''('')');
  275. -
  276.             
  277. -
  278.             if (count($terms=== && $recursive{
  279. -
  280.                 $return $this->parseTerm($clause);
  281. -
  282.             else {
  283. -
  284.                 foreach ($terms as $k => $term{
  285. -
  286.                     $term trim($term);
  287. -
  288.     
  289. -
  290.                     if ($term === 'AND'{
  291. -
  292.                         continue;
  293. -
  294.                     }
  295. -
  296.     
  297. -
  298.                     if (substr($term01=== '-'{
  299. -
  300.                         $operator 'NOT IN';
  301. -
  302.                         $term substr($term1);
  303. -
  304.                     else {
  305. -
  306.                         $operator 'IN';
  307. -
  308.                     }
  309. -
  310.     
  311. -
  312.                     if ($this->isExpression($term)) {
  313. -
  314.                         $ret[$k$this->parseClause($termtrue);
  315. -
  316.                     else {
  317. -
  318.                         $ret[$ksprintf($this->_condition$operator$this->parseTerm($term')';
  319. -
  320.                     }
  321. -
  322.                 }
  323. -
  324.                 $return implode(' AND '$ret);
  325. -
  326.             }
  327. -
  328.         }
  329. -
  330.  
  331. -
  332.         if ($brackets{
  333. -
  334.             return '(' $return ')';
  335. -
  336.         else {
  337. -
  338.             return $return;
  339. -
  340.         }
  341. -
  342.     }
  343. -
  344.     public function isExpression($term)
  345. -
  346.     {
  347. -
  348.         if (strpos($term'('!== false{
  349. -
  350.             return true;
  351. -
  352.         else {
  353. -
  354.             $terms Doctrine_Tokenizer::quoteExplode($term);
  355. -
  356.             
  357. -
  358.             return (count($terms1);
  359. -
  360.         }
  361. -
  362.     }
  363. -
  364.  
  365. -
  366.     public function parseTerm($term)
  367. -
  368.     {
  369. -
  370.         $negation false;
  371. -
  372.  
  373. -
  374.         if (strpos($term"'"=== false{
  375. -
  376.             $where $this->parseWord($term);
  377. -
  378.         else {
  379. -
  380.             $term trim($term"' ");
  381. -
  382.  
  383. -
  384.             $terms Doctrine_Tokenizer::quoteExplode($term);
  385. -
  386.             $where $this->parseWord($terms[0]);
  387. -
  388.  
  389. -
  390.             foreach ($terms as $k => $word{
  391. -
  392.                 if ($k === 0{
  393. -
  394.                     continue;
  395. -
  396.                 }
  397. -
  398.                 $where .= ' AND (position + ' $k ') = (SELECT position FROM ' $this->_table->getTableName(' WHERE ' $this->parseWord($word')';
  399. -
  400.             }
  401. -
  402.         }
  403. -
  404.         return $where;
  405. -
  406.     }
  407. -
  408.     public function parseWord($word
  409. -
  410.     {
  411. -
  412.         if (strpos($word'?'!== false ||
  413. -
  414.             strpos($word'*'!== false{
  415. -
  416.             
  417. -
  418.             $word str_replace('*''%'$word);
  419. -
  420.  
  421. -
  422.             $where 'keyword LIKE ?';
  423. -
  424.             
  425. -
  426.             $params array($word);
  427. -
  428.         else {
  429. -
  430.             $where 'keyword = ?';
  431. -
  432.         }
  433. -
  434.         
  435. -
  436.         $this->_params[$word;
  437. -
  438.  
  439. -
  440.         return $where;
  441. -
  442.     }
  443. -
  444.     public function getParams()
  445. -
  446.     {
  447. -
  448.         return $this->_params;
  449. -
  450.     }
  451. -
  452.     public function getSql()
  453. -
  454.     {
  455. -
  456.         return $this->_sql;
  457. -
  458.     }
  459. -
  460.     public function execute()
  461. -
  462.     {
  463. -
  464.         $resultSet $this->_query->execute()
  465. -
  466.         
  467. -
  468.         return $resultSet;
  469. -
  470.     }
  471. -
  472. }
  473. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchRecord.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchRecord.php.html deleted file mode 100644 index 4779f590c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchRecord.php.html +++ /dev/null @@ -1,55 +0,0 @@ - -
-

Source for file Record.php

-

Documentation is available at Record.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Record
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function setTableDefinition()
  69. -
  70.     {
  71. -
  72.         $this->hasColumn('keyword''string'250array('notnull' => true));
  73. -
  74.         $this->hasColumn('field''string'50array('notnull' => true));
  75. -
  76.         $this->hasColumn('position''integer'8);
  77. -
  78.         // depending on the identifiers of the owner record this record 
  79. -
  80.         // has also one to many foreign key columns
  81. -
  82.     }
  83. -
  84.     public function setUp()
  85. -
  86.     {
  87. -
  88.         $this->hasOne('[Component]'array('onDelete' => 'CASCADE'));
  89. -
  90.     }
  91. -
  92. }
  93. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchScorer.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchScorer.php.html deleted file mode 100644 index 5baa53eb0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchScorer.php.html +++ /dev/null @@ -1,74 +0,0 @@ - -
-

Source for file Scorer.php

-

Documentation is available at Scorer.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Scorer
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70.     protected $_resultSet;
  71. -
  72.     
  73. -
  74.     protected $_components = array();
  75. -
  76.  
  77. -
  78.     public function __construct($resultSet)
  79. -
  80.     {
  81. -
  82.         $this->_resultSet = $resultSet;
  83. -
  84.     }
  85. -
  86.  
  87. -
  88.     public function addComponent($component)
  89. -
  90.     {
  91. -
  92.         $this->_components[$component;
  93. -
  94.     }
  95. -
  96.  
  97. -
  98.     public function process()
  99. -
  100.     {
  101. -
  102.         foreach ($this->_resultSet as $mainRow{
  103. -
  104.             if (isset($mainRow[$component])) {
  105. -
  106.                 if is_array($mainRow[$component])) {
  107. -
  108.                     throw new Doctrine_Search_Exception('Wrong data type in result set.');
  109. -
  110.                 }
  111. -
  112.                 
  113. -
  114.                 foreach ($mainRow[$componentas $indexRow{
  115. -
  116.  
  117. -
  118.                 }
  119. -
  120.             }
  121. -
  122.         }
  123. -
  124.     }
  125. -
  126.     
  127. -
  128.  
  129. -
  130. }
  131. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchTemplate.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchTemplate.php.html deleted file mode 100644 index 978d248ff..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSearchTemplate.php.html +++ /dev/null @@ -1,68 +0,0 @@ - -
-

Source for file Template.php

-

Documentation is available at Template.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Search_Template
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {     
  67. -
  68.     protected $_search;
  69. -
  70.  
  71. -
  72.     public function __construct(array $options)
  73. -
  74.     {
  75. -
  76.         $this->_search new Doctrine_Search($options);
  77. -
  78.     }
  79. -
  80.     public function setUp()
  81. -
  82.     {
  83. -
  84.         $this->_search->buildDefinition($this->_table);
  85. -
  86.  
  87. -
  88.         $id $this->_table->getIdentifier();
  89. -
  90.         $name $this->_table->getComponentName('Index';
  91. -
  92.  
  93. -
  94.         $this->_search->setOption('className'$name);
  95. -
  96.  
  97. -
  98.         foreach ((array) $id as $column{
  99. -
  100.             $foreign[strtolower($this->_table->getComponentName('_' $column);
  101. -
  102.         }
  103. -
  104.  
  105. -
  106.         $foreign (count($foreign1$foreign current($foreign);
  107. -
  108.  
  109. -
  110.         $this->hasMany($namearray('local' => $id'foreign' => $foreign));
  111. -
  112.  
  113. -
  114.         $this->addListener(new Doctrine_Search_Listener($this->_search));
  115. -
  116.     }
  117. -
  118. }
  119. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequence.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequence.php.html deleted file mode 100644 index bffc79766..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequence.php.html +++ /dev/null @@ -1,80 +0,0 @@ - -
-

Source for file Sequence.php

-

Documentation is available at Sequence.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sequence.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence
  46. -
  47.  * The base class for sequence handling drivers.
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1080 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * Returns the next free id of a sequence
  73. -
  74.      *
  75. -
  76.      * @param string $seqName   name of the sequence
  77. -
  78.      * @param bool              when true missing sequences are automatic created
  79. -
  80.      *
  81. -
  82.      * @return integer          next id in the given sequence
  83. -
  84.      */
  85. -
  86.     public function nextId($seqName$ondemand true)
  87. -
  88.     {
  89. -
  90.         throw new Doctrine_Sequence_Exception('method not implemented');
  91. -
  92.     }
  93. -
  94.     /**
  95. -
  96.      * Returns the autoincrement ID if supported or $id or fetches the current
  97. -
  98.      * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
  99. -
  100.      *
  101. -
  102.      * @param   string  name of the table into which a new row was inserted
  103. -
  104.      * @param   string  name of the field into which a new row was inserted
  105. -
  106.      */
  107. -
  108.     public function lastInsertId($table null$field null)
  109. -
  110.     {
  111. -
  112.         throw new Doctrine_Sequence_Exception('method not implemented');
  113. -
  114.     }
  115. -
  116.     /**
  117. -
  118.      * Returns the current id of a sequence
  119. -
  120.      *
  121. -
  122.      * @param string $seqName   name of the sequence
  123. -
  124.      *
  125. -
  126.      * @return integer          current id in the given sequence
  127. -
  128.      */
  129. -
  130.     public function currId($seqName)
  131. -
  132.     {
  133. -
  134.         $this->warnings['database does not support getting current
  135. -
  136.             sequence value, the sequence value was incremented';
  137. -
  138.         return $this->nextId($seqName);
  139. -
  140.     }
  141. -
  142. }
  143. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceDb2.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceDb2.php.html deleted file mode 100644 index 52751a291..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceDb2.php.html +++ /dev/null @@ -1,131 +0,0 @@ - -
-

Source for file Db2.php

-

Documentation is available at Db2.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Db2.php 1722 2007-06-17 17:50:05Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Sequence');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Db2
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1722 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Return the most recent value from the specified sequence in the database.
  71. -
  72.      * This is supported only on RDBMS brands that support sequences
  73. -
  74.      * (e.g. Oracle, PostgreSQL, DB2).  Other RDBMS brands return null.
  75. -
  76.      *
  77. -
  78.      * @param string $sequenceName 
  79. -
  80.      * @return integer 
  81. -
  82.      * @throws Doctrine_Adapter_Db2_Exception
  83. -
  84.      */
  85. -
  86.     public function lastSequenceId($sequenceName)
  87. -
  88.     {
  89. -
  90.         $sql 'SELECT PREVVAL FOR '
  91. -
  92.              . $this->quoteIdentifier($this->conn->formatter->getSequenceName($sequenceName))
  93. -
  94.              . ' AS VAL FROM SYSIBM.SYSDUMMY1';
  95. -
  96.  
  97. -
  98.         $stmt   $this->query($sql);
  99. -
  100.         $result $stmt->fetchAll(Doctrine::FETCH_ASSOC);
  101. -
  102.         if ($result{
  103. -
  104.             return $result[0]['VAL'];
  105. -
  106.         else {
  107. -
  108.             return null;
  109. -
  110.         }
  111. -
  112.     }
  113. -
  114.  
  115. -
  116.     /**
  117. -
  118.      * Generate a new value from the specified sequence in the database, and return it.
  119. -
  120.      * This is supported only on RDBMS brands that support sequences
  121. -
  122.      * (e.g. Oracle, PostgreSQL, DB2).  Other RDBMS brands return null.
  123. -
  124.      *
  125. -
  126.      * @param string $sequenceName 
  127. -
  128.      * @return integer 
  129. -
  130.      * @throws Doctrine_Adapter_Db2_Exception
  131. -
  132.      */
  133. -
  134.     public function nextSequenceId($sequenceName)
  135. -
  136.     {
  137. -
  138.         $this->_connect();
  139. -
  140.         $sql 'SELECT NEXTVAL FOR '
  141. -
  142.              . $this->quoteIdentifier($this->conn->formatter->getSequenceName($sequenceName))
  143. -
  144.              . ' AS VAL FROM SYSIBM.SYSDUMMY1';
  145. -
  146.         $stmt $this->query($sql);
  147. -
  148.         $result $stmt->fetchAll(Doctrine::FETCH_ASSOC);
  149. -
  150.         if ($result{
  151. -
  152.             return $result[0]['VAL'];
  153. -
  154.         else {
  155. -
  156.             return null;
  157. -
  158.         }
  159. -
  160.     }
  161. -
  162.  
  163. -
  164.     /**
  165. -
  166.      * Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
  167. -
  168.      *
  169. -
  170.      * As a convention, on RDBMS brands that support sequences
  171. -
  172.      * (e.g. Oracle, PostgreSQL, DB2), this method forms the name of a sequence
  173. -
  174.      * from the arguments and returns the last id generated by that sequence.
  175. -
  176.      * On RDBMS brands that support IDENTITY/AUTOINCREMENT columns, this method
  177. -
  178.      * returns the last value generated for such a column, and the table name
  179. -
  180.      * argument is disregarded.
  181. -
  182.      *
  183. -
  184.      * The IDENTITY_VAL_LOCAL() function gives the last generated identity value
  185. -
  186.      * in the current process, even if it was for a GENERATED column.
  187. -
  188.      *
  189. -
  190.      * @param string $tableName OPTIONAL
  191. -
  192.      * @param string $primaryKey OPTIONAL
  193. -
  194.      * @return integer 
  195. -
  196.      * @throws Doctrine_Adapter_Db2_Exception
  197. -
  198.      */
  199. -
  200.     public function lastInsertId($tableName null$primaryKey null)
  201. -
  202.     {
  203. -
  204.         $this->_connect();
  205. -
  206.  
  207. -
  208.         if ($tableName !== null{
  209. -
  210.             $sequenceName $tableName;
  211. -
  212.             if ($primaryKey{
  213. -
  214.                 $sequenceName .= "_$primaryKey";
  215. -
  216.             }
  217. -
  218.             $sequenceName .= '_seq';
  219. -
  220.             return $this->lastSequenceId($sequenceName);
  221. -
  222.         }
  223. -
  224.  
  225. -
  226.         $sql 'SELECT IDENTITY_VAL_LOCAL() AS VAL FROM SYSIBM.SYSDUMMY1';
  227. -
  228.         $stmt $this->query($sql);
  229. -
  230.         $result $stmt->fetchAll(Doctrine::FETCH_ASSOC);
  231. -
  232.         if ($result{
  233. -
  234.             return $result[0]['VAL'];
  235. -
  236.         else {
  237. -
  238.             return null;
  239. -
  240.         }
  241. -
  242.     }
  243. -
  244. }
  245. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceException.php.html deleted file mode 100644 index a4638a9e1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceFirebird.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceFirebird.php.html deleted file mode 100644 index 27b3090ac..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceFirebird.php.html +++ /dev/null @@ -1,113 +0,0 @@ - -
-

Source for file Firebird.php

-

Documentation is available at Firebird.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Firebird.php 1619 2007-06-10 19:28:47Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Sequence');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Firebird
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1619 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the next free id of a sequence
  71. -
  72.      *
  73. -
  74.      * @param string $seqName   name of the sequence
  75. -
  76.      * @param bool              when true missing sequences are automatic created
  77. -
  78.      *
  79. -
  80.      * @return integer          next id in the given sequence
  81. -
  82.      */
  83. -
  84.     public function nextID($seqName$onDemand true)
  85. -
  86.     {
  87. -
  88.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  89. -
  90.  
  91. -
  92.         $query 'SELECT GEN_ID(' $sequenceName ', 1) as the_value FROM RDB$DATABASE';
  93. -
  94.         try {
  95. -
  96.         
  97. -
  98.             $result $this->conn->fetchOne($query);
  99. -
  100.  
  101. -
  102.         catch(Doctrine_Connection_Exception $e{
  103. -
  104.             if ($onDemand && $e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  105. -
  106.                 // Since we are creating the sequence on demand
  107. -
  108.                 // we know the first id = 1 so initialize the
  109. -
  110.                 // sequence at 2
  111. -
  112.                 try {
  113. -
  114.                     $result $this->conn->export->createSequence($seqName2);
  115. -
  116.                 catch(Doctrine_Exception $e{
  117. -
  118.                     throw new Doctrine_Sequence_Exception('on demand sequence ' $seqName ' could not be created');
  119. -
  120.                 }
  121. -
  122.                 // First ID of a newly created sequence is 1
  123. -
  124.                 // return 1;
  125. -
  126.                 // BUT generators are not always reset, so return the actual value
  127. -
  128.                 return $this->currID($seqName);
  129. -
  130.             }
  131. -
  132.             throw $e;
  133. -
  134.         }
  135. -
  136.         return $result;
  137. -
  138.     }
  139. -
  140.     /**
  141. -
  142.      * Returns the autoincrement ID if supported or $id or fetches the current
  143. -
  144.      * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
  145. -
  146.      *
  147. -
  148.      * @param   string  name of the table into which a new row was inserted
  149. -
  150.      * @param   string  name of the field into which a new row was inserted
  151. -
  152.      */
  153. -
  154.     public function lastInsertId($table null$field null)
  155. -
  156.     {
  157. -
  158.         return $this->conn->getDbh()->lastInsertId();
  159. -
  160.     }
  161. -
  162.     /**
  163. -
  164.      * Returns the current id of a sequence
  165. -
  166.      *
  167. -
  168.      * @param string $seqName   name of the sequence
  169. -
  170.      *
  171. -
  172.      * @return integer          current id in the given sequence
  173. -
  174.      */
  175. -
  176.     public function currId($seqName)
  177. -
  178.     {
  179. -
  180.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  181. -
  182.         
  183. -
  184.  
  185. -
  186.         $query 'SELECT GEN_ID(' $sequenceName ', 0) as the_value FROM RDB$DATABASE';
  187. -
  188.         try {
  189. -
  190.             $value $this->conn->fetchOne($query);
  191. -
  192.         catch(Doctrine_Connection_Exception $e{
  193. -
  194.             throw new Doctrine_Sequence_Exception('Unable to select from ' $seqName);
  195. -
  196.         }
  197. -
  198.         if is_numeric($value)) {
  199. -
  200.             throw new Doctrine_Sequence_Exception('could not find value in sequence table');
  201. -
  202.         }
  203. -
  204.         return $value;
  205. -
  206.     }
  207. -
  208. }
  209. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceInformix.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceInformix.php.html deleted file mode 100644 index 8e64c2dd0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceInformix.php.html +++ /dev/null @@ -1,44 +0,0 @@ - -
-

Source for file Informix.php

-

Documentation is available at Informix.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Informix.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Informix
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70. }
  71. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMssql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMssql.php.html deleted file mode 100644 index cf06ed6f0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMssql.php.html +++ /dev/null @@ -1,163 +0,0 @@ - -
-

Source for file Mssql.php

-

Documentation is available at Mssql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mssql.php 1934 2007-07-05 22:42:32Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Sequence');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Mssql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1934 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the next free id of a sequence
  71. -
  72.      *
  73. -
  74.      * @param string $seqName   name of the sequence
  75. -
  76.      * @param bool              when true missing sequences are automatic created
  77. -
  78.      *
  79. -
  80.      * @return integer          next id in the given sequence
  81. -
  82.      */
  83. -
  84.     public function nextId($seqName$onDemand true)
  85. -
  86.     {
  87. -
  88.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  89. -
  90.         $seqcolName   $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  91. -
  92.  
  93. -
  94.  
  95. -
  96.         if ($this->checkSequence($sequenceName)) {
  97. -
  98.             $query 'SET IDENTITY_INSERT ' $sequenceName ' OFF '
  99. -
  100.                    . 'INSERT INTO ' $sequenceName ' DEFAULT VALUES';
  101. -
  102.         else {
  103. -
  104.             $query 'INSERT INTO ' $sequenceName ' (' $seqcolName ') VALUES (0)';
  105. -
  106.         }
  107. -
  108.         
  109. -
  110.         try {
  111. -
  112.  
  113. -
  114.             $this->conn->exec($query);
  115. -
  116.  
  117. -
  118.         catch(Doctrine_Connection_Exception $e{
  119. -
  120.             if ($onDemand && $e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  121. -
  122.                 // Since we are creating the sequence on demand
  123. -
  124.                 // we know the first id = 1 so initialize the
  125. -
  126.                 // sequence at 2
  127. -
  128.                 try {
  129. -
  130.                     $result $this->conn->export->createSequence($seqName2);
  131. -
  132.                 catch(Doctrine_Exception $e{
  133. -
  134.                     throw new Doctrine_Sequence_Exception('on demand sequence ' $seqName ' could not be created');
  135. -
  136.                 }
  137. -
  138.                 
  139. -
  140.                 /**
  141. -
  142.                  * This could actually be a table that starts at 18.. oh well..
  143. -
  144.                  * we will keep the fallback to return 1 in case we skip this.. which
  145. -
  146.                  * should really not happen.. otherwise the returned values is biased.
  147. -
  148.                  */
  149. -
  150.                 if ($this->checkSequence($seqName)) {
  151. -
  152.                     return $this->lastInsertId($seqName);
  153. -
  154.                 }
  155. -
  156.                 
  157. -
  158.                 return 1;
  159. -
  160.             }
  161. -
  162.             throw $e;
  163. -
  164.         }
  165. -
  166.         
  167. -
  168.         $value $this->lastInsertId($sequenceName);
  169. -
  170.  
  171. -
  172.         if (is_numeric($value)) {
  173. -
  174.             $query 'DELETE FROM ' $sequenceName ' WHERE ' $seqcolName ' < ' $value;
  175. -
  176.             
  177. -
  178.             try {
  179. -
  180.                 $this->conn->exec($query);
  181. -
  182.             catch (Doctrine_Connection_Exception $e{
  183. -
  184.                 throw new Doctrine_Sequence_Exception('Could not delete previous sequence from ' $sequenceName 
  185. -
  186.                                                       ' at ' . __FILE__ . ' in ' . __FUNCTION__ . ' with the message: ' .
  187. -
  188.                                                       $e->getMessage());
  189. -
  190.             }
  191. -
  192.         }
  193. -
  194.         return $value;
  195. -
  196.     }
  197. -
  198.     /**
  199. -
  200.      * Checks if there's a sequence that exists.
  201. -
  202.      *
  203. -
  204.      * @param  string $seqName     The sequence name to verify.
  205. -
  206.      * @return bool   $tableExists The value if the table exists or not
  207. -
  208.      * @access private
  209. -
  210.      */
  211. -
  212.     public function checkSequence($seqName)
  213. -
  214.     {
  215. -
  216.         $query 'SELECT COUNT(1) FROM ' $seqName;
  217. -
  218.         try {
  219. -
  220.             $this->conn->execute($query);
  221. -
  222.         catch (Doctrine_Connection_Exception $e{
  223. -
  224.             if ($e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  225. -
  226.                 return false;
  227. -
  228.             }
  229. -
  230.         }
  231. -
  232.         return true;
  233. -
  234.     }
  235. -
  236.  
  237. -
  238.     /**
  239. -
  240.      * Returns the autoincrement ID if supported or $id or fetches the current
  241. -
  242.      * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
  243. -
  244.      *
  245. -
  246.      * @param   string  name of the table into which a new row was inserted
  247. -
  248.      * @param   string  name of the field into which a new row was inserted
  249. -
  250.      */
  251. -
  252.     public function lastInsertId($table null$field null)
  253. -
  254.     {
  255. -
  256.         $serverInfo $this->conn->getServerVersion();
  257. -
  258.         if (is_array($serverInfo)
  259. -
  260.             && is_null($serverInfo['major'])
  261. -
  262.             && $serverInfo['major'>= 8{
  263. -
  264.  
  265. -
  266.             $query 'SELECT SCOPE_IDENTITY()';
  267. -
  268.  
  269. -
  270.         else {
  271. -
  272.             $query 'SELECT @@IDENTITY';
  273. -
  274.         }
  275. -
  276.  
  277. -
  278.         return $this->conn->fetchOne($query);
  279. -
  280.     }
  281. -
  282.     /**
  283. -
  284.      * Returns the current id of a sequence
  285. -
  286.      *
  287. -
  288.      * @param string $seqName   name of the sequence
  289. -
  290.      *
  291. -
  292.      * @return integer          current id in the given sequence
  293. -
  294.      */
  295. -
  296.     public function currId($seqName)
  297. -
  298.     {
  299. -
  300.         $this->warnings['database does not support getting current
  301. -
  302.             sequence value, the sequence value was incremented';
  303. -
  304.         return $this->nextId($seqName);
  305. -
  306.     }
  307. -
  308. }
  309. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMysql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMysql.php.html deleted file mode 100644 index dd8be210a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceMysql.php.html +++ /dev/null @@ -1,118 +0,0 @@ - -
-

Source for file Mysql.php

-

Documentation is available at Mysql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mysql.php 1721 2007-06-17 17:49:13Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Sequence');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Mysql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1721 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the next free id of a sequence
  71. -
  72.      *
  73. -
  74.      * @param string $seqName   name of the sequence
  75. -
  76.      * @param bool              when true missing sequences are automatic created
  77. -
  78.      *
  79. -
  80.      * @return integer          next id in the given sequence
  81. -
  82.      */
  83. -
  84.     public function nextId($seqName$onDemand true)
  85. -
  86.     {
  87. -
  88.         $sequenceName  $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  89. -
  90.         $seqcolName    $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  91. -
  92.         $query         'INSERT INTO ' $sequenceName ' (' $seqcolName ') VALUES (NULL)';
  93. -
  94.         
  95. -
  96.         try {
  97. -
  98.  
  99. -
  100.             $this->conn->exec($query);
  101. -
  102.  
  103. -
  104.         catch(Doctrine_Connection_Exception $e{
  105. -
  106.             if ($onDemand && $e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  107. -
  108.                 // Since we are creating the sequence on demand
  109. -
  110.                 // we know the first id = 1 so initialize the
  111. -
  112.                 // sequence at 2
  113. -
  114.                 try {
  115. -
  116.                     $result $this->conn->export->createSequence($seqName2);
  117. -
  118.                 catch(Doctrine_Exception $e{
  119. -
  120.                     throw new Doctrine_Sequence_Exception('on demand sequence ' $seqName ' could not be created');
  121. -
  122.                 }
  123. -
  124.                 // First ID of a newly created sequence is 1
  125. -
  126.                 return 1;
  127. -
  128.             }
  129. -
  130.             throw $e;
  131. -
  132.         }
  133. -
  134.  
  135. -
  136.         $value $this->lastInsertId();
  137. -
  138.  
  139. -
  140.         if (is_numeric($value)) {
  141. -
  142.             $query 'DELETE FROM ' $sequenceName ' WHERE ' $seqcolName ' < ' $value;
  143. -
  144.             $this->conn->exec($query);
  145. -
  146.             /**
  147. -
  148.             TODO: is the following needed ?
  149. -
  150.             if (PEAR::isError($result)) {
  151. -
  152.                 $this->warnings[] = 'nextID: could not delete previous sequence table values from '.$seq_name;
  153. -
  154.             }
  155. -
  156.             */
  157. -
  158.         }
  159. -
  160.         return $value;
  161. -
  162.     }
  163. -
  164.     /**
  165. -
  166.      * Returns the autoincrement ID if supported or $id or fetches the current
  167. -
  168.      * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
  169. -
  170.      *
  171. -
  172.      * @param string  name of the table into which a new row was inserted
  173. -
  174.      * @param string  name of the field into which a new row was inserted
  175. -
  176.      * @return integer|boolean
  177. -
  178.      */
  179. -
  180.     public function lastInsertId($table null$field null)
  181. -
  182.     {
  183. -
  184.         return $this->conn->getDbh()->lastInsertId();
  185. -
  186.     }
  187. -
  188.     /**
  189. -
  190.      * Returns the current id of a sequence
  191. -
  192.      *
  193. -
  194.      * @param string $seqName   name of the sequence
  195. -
  196.      *
  197. -
  198.      * @return integer          current id in the given sequence
  199. -
  200.      */
  201. -
  202.     public function currId($seqName)
  203. -
  204.     {
  205. -
  206.         $sequenceName   $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  207. -
  208.         $seqcolName     $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  209. -
  210.         $query          'SELECT MAX(' $seqcolName ') FROM ' $sequenceName;
  211. -
  212.  
  213. -
  214.         return (int) $this->conn->fetchOne($query);
  215. -
  216.     }
  217. -
  218. }
  219. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceOracle.php.html deleted file mode 100644 index 861b33e68..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceOracle.php.html +++ /dev/null @@ -1,102 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Oracle.php 1619 2007-06-10 19:28:47Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Sequence');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Oracle
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1619 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the next free id of a sequence
  71. -
  72.      *
  73. -
  74.      * @param string $seqName   name of the sequence
  75. -
  76.      * @param bool onDemand     when true missing sequences are automatic created
  77. -
  78.      *
  79. -
  80.      * @return integer          next id in the given sequence
  81. -
  82.      */
  83. -
  84.     public function nextID($seqName$onDemand true)
  85. -
  86.     {
  87. -
  88.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  89. -
  90.         $query        'SELECT ' $sequenceName '.nextval FROM DUAL';
  91. -
  92.  
  93. -
  94.         try {
  95. -
  96.             $result $this->conn->fetchOne($query);
  97. -
  98.         catch(Doctrine_Connection_Exception $e{
  99. -
  100.             if ($onDemand && $e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  101. -
  102.  
  103. -
  104.                 try {
  105. -
  106.                     $result $this->conn->export->createSequence($seqName);
  107. -
  108.                 catch(Doctrine_Exception $e{
  109. -
  110.                     throw new Doctrine_Sequence_Exception('on demand sequence ' $seqName ' could not be created');
  111. -
  112.                 }
  113. -
  114.                 return $this->nextId($seqNamefalse);
  115. -
  116.             }
  117. -
  118.             throw $e;
  119. -
  120.         }
  121. -
  122.         return $result;
  123. -
  124.     }
  125. -
  126.     /**
  127. -
  128.      * Returns the autoincrement ID if supported or $id or fetches the current
  129. -
  130.      * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
  131. -
  132.      *
  133. -
  134.      * @param   string  name of the table into which a new row was inserted
  135. -
  136.      * @param   string  name of the field into which a new row was inserted
  137. -
  138.      */
  139. -
  140.     public function lastInsertID($table null$field null)
  141. -
  142.     {
  143. -
  144.         $seqName $table (empty($field'' '_'.$field);
  145. -
  146.         $sequenceName =  $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  147. -
  148.  
  149. -
  150.         return $this->conn->fetchOne('SELECT ' $sequenceName '.currval');
  151. -
  152.     }
  153. -
  154.     /**
  155. -
  156.      * Returns the current id of a sequence
  157. -
  158.      *
  159. -
  160.      * @param string $seqName   name of the sequence
  161. -
  162.      *
  163. -
  164.      * @return integer          current id in the given sequence
  165. -
  166.      */
  167. -
  168.     public function currID($seqName)
  169. -
  170.     {
  171. -
  172.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  173. -
  174.         $query   'SELECT (last_number-1) FROM user_sequences';
  175. -
  176.         $query  .= ' WHERE sequence_name=' $this->conn->quote($sequenceName'text');
  177. -
  178.         $query  .= ' OR sequence_name=' $this->conn->quote(strtoupper($sequenceName)'text');
  179. -
  180.  
  181. -
  182.         return $this->conn->fetchOne($query);
  183. -
  184.     }
  185. -
  186. }
  187. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequencePgsql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequencePgsql.php.html deleted file mode 100644 index ae91ebb95..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequencePgsql.php.html +++ /dev/null @@ -1,100 +0,0 @@ - -
-

Source for file Pgsql.php

-

Documentation is available at Pgsql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pgsql.php 1632 2007-06-11 23:37:24Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Sequence');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Pgsql
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1632 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the next free id of a sequence
  71. -
  72.      *
  73. -
  74.      * @param string $seqName   name of the sequence
  75. -
  76.      * @param bool onDemand     when true missing sequences are automatic created
  77. -
  78.      *
  79. -
  80.      * @return integer          next id in the given sequence
  81. -
  82.      */
  83. -
  84.     public function nextId($seqName$onDemand true)
  85. -
  86.     {
  87. -
  88.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  89. -
  90.  
  91. -
  92.         $query "SELECT NEXTVAL('" $sequenceName "')";
  93. -
  94.         try {
  95. -
  96.             $result = (int) $this->conn->fetchOne($query);
  97. -
  98.         catch(Doctrine_Connection_Exception $e{
  99. -
  100.             if ($onDemand && $e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  101. -
  102.  
  103. -
  104.                 try {
  105. -
  106.                     $result $this->conn->export->createSequence($seqName);
  107. -
  108.                 catch(Doctrine_Exception $e{
  109. -
  110.                     throw new Doctrine_Sequence_Exception('on demand sequence ' $seqName ' could not be created');
  111. -
  112.                 }
  113. -
  114.                 return $this->nextId($seqNamefalse);
  115. -
  116.             }
  117. -
  118.         }
  119. -
  120.         return $result;
  121. -
  122.     }
  123. -
  124.     /**
  125. -
  126.      * lastInsertId
  127. -
  128.      *
  129. -
  130.      * Returns the autoincrement ID if supported or $id or fetches the current
  131. -
  132.      * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
  133. -
  134.      *
  135. -
  136.      * @param   string  name of the table into which a new row was inserted
  137. -
  138.      * @param   string  name of the field into which a new row was inserted
  139. -
  140.      * @return integer      the autoincremented id
  141. -
  142.      */
  143. -
  144.     public function lastInsertId($table null$field null)
  145. -
  146.     {
  147. -
  148.         $seqName $table (empty($field'' '_' $field);
  149. -
  150.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  151. -
  152.  
  153. -
  154.         return (int) $this->conn->fetchOne("SELECT CURRVAL('" $sequenceName "')");
  155. -
  156.     }
  157. -
  158.     /**
  159. -
  160.      * Returns the current id of a sequence
  161. -
  162.      *
  163. -
  164.      * @param string $seqName   name of the sequence
  165. -
  166.      *
  167. -
  168.      * @return integer          current id in the given sequence
  169. -
  170.      */
  171. -
  172.     public function currId($seqName)
  173. -
  174.     {
  175. -
  176.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  177. -
  178.         return (int) $this->conn->fetchOne('SELECT last_value FROM ' $sequenceName);
  179. -
  180.     }
  181. -
  182. }
  183. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceSqlite.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceSqlite.php.html deleted file mode 100644 index 972e92d6d..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineSequenceSqlite.php.html +++ /dev/null @@ -1,120 +0,0 @@ - -
-

Source for file Sqlite.php

-

Documentation is available at Sqlite.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sqlite.php 1722 2007-06-17 17:50:05Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Sequence');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Sequence_Sqlite
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1722 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Returns the next free id of a sequence
  71. -
  72.      *
  73. -
  74.      * @param string $seqName   name of the sequence
  75. -
  76.      * @param bool $onDemand    when true missing sequences are automatic created
  77. -
  78.      *
  79. -
  80.      * @return integer          next id in the given sequence
  81. -
  82.      */
  83. -
  84.     public function nextId($seqName$onDemand true)
  85. -
  86.     {
  87. -
  88.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  89. -
  90.         $seqcolName   $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  91. -
  92.  
  93. -
  94.         $query        'INSERT INTO ' $sequenceName ' (' $seqcolName ') VALUES (NULL)';
  95. -
  96.  
  97. -
  98.         try {
  99. -
  100.  
  101. -
  102.             $this->conn->exec($query);
  103. -
  104.  
  105. -
  106.         catch(Doctrine_Connection_Exception $e{
  107. -
  108.             if ($onDemand && $e->getPortableCode(== Doctrine::ERR_NOSUCHTABLE{
  109. -
  110.                 // Since we are creating the sequence on demand
  111. -
  112.                 // we know the first id = 1 so initialize the
  113. -
  114.                 // sequence at 2
  115. -
  116.  
  117. -
  118.                 try {
  119. -
  120.                     $result $this->conn->export->createSequence($seqName2);
  121. -
  122.                 catch(Doctrine_Exception $e{
  123. -
  124.                     throw new Doctrine_Sequence_Exception('on demand sequence ' $seqName ' could not be created');
  125. -
  126.                 }
  127. -
  128.                 // First ID of a newly created sequence is 1
  129. -
  130.                 return 1;
  131. -
  132.             }
  133. -
  134.             throw $e;
  135. -
  136.         }
  137. -
  138.  
  139. -
  140.         $value $this->conn->getDbh()->lastInsertId();
  141. -
  142.  
  143. -
  144.         if (is_numeric($value)) {
  145. -
  146.             $query 'DELETE FROM ' $sequenceName ' WHERE ' $seqcolName ' < ' $value;
  147. -
  148.             
  149. -
  150.             $this->conn->exec($query);
  151. -
  152.             /**
  153. -
  154.             TODO: is the following needed ?
  155. -
  156.             $this->warnings[] = 'nextID: could not delete previous sequence table values from '.$seq_name;
  157. -
  158.             */
  159. -
  160.         }
  161. -
  162.         return $value;
  163. -
  164.     }
  165. -
  166.     /**
  167. -
  168.      * Returns the autoincrement ID if supported or $id or fetches the current
  169. -
  170.      * ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
  171. -
  172.      *
  173. -
  174.      * @param   string  name of the table into which a new row was inserted
  175. -
  176.      * @param   string  name of the field into which a new row was inserted
  177. -
  178.      * @return integer|boolean
  179. -
  180.      */
  181. -
  182.     public function lastInsertId($table null$field null)
  183. -
  184.     {
  185. -
  186.         return $this->conn->getDbh()->lastInsertId();
  187. -
  188.     }
  189. -
  190.     /**
  191. -
  192.      * Returns the current id of a sequence
  193. -
  194.      *
  195. -
  196.      * @param string $seqName   name of the sequence
  197. -
  198.      *
  199. -
  200.      * @return integer          current id in the given sequence
  201. -
  202.      */
  203. -
  204.     public function currId($seqName)
  205. -
  206.     {
  207. -
  208.         $sequenceName $this->conn->quoteIdentifier($this->conn->formatter->getSequenceName($seqName)true);
  209. -
  210.         $seqcolName   $this->conn->quoteIdentifier($this->conn->getAttribute(Doctrine::ATTR_SEQCOL_NAME)true);
  211. -
  212.  
  213. -
  214.         $query        'SELECT MAX(' $seqcolName ') FROM ' $sequenceName;
  215. -
  216.  
  217. -
  218.         return (int) $this->conn->fetchOne($query);
  219. -
  220.     }
  221. -
  222. }
  223. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTable.php.html deleted file mode 100644 index 2127f11a4..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTable.php.html +++ /dev/null @@ -1,1339 +0,0 @@ - -
-

Source for file Table.php

-

Documentation is available at Table.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Table.php 2279 2007-08-27 15:04:32Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Table   represents a database table
  44. -
  45.  *                  each Doctrine_Table holds the information of foreignKeys and associations
  46. -
  47.  *
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @version     $Revision: 2279 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  */
  66. -
  67. class Doctrine_Table extends Doctrine_Configurable implements Countable
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var array $data                                 temporary data which is then loaded into Doctrine_Record::$data
  74. -
  75.      */
  76. -
  77.     private $data             = array();
  78. -
  79.     /**
  80. -
  81.      * @var array $primaryKeys                          an array containing all primary key column names
  82. -
  83.      */
  84. -
  85.     private $primaryKeys      = array();
  86. -
  87.     /**
  88. -
  89.      * @var mixed $identifier 
  90. -
  91.      */
  92. -
  93.     private $identifier;
  94. -
  95.     /**
  96. -
  97.      * @see Doctrine_Identifier constants
  98. -
  99.      * @var integer $identifierType                     the type of identifier this table uses
  100. -
  101.      */
  102. -
  103.     private $identifierType;
  104. -
  105.     /**
  106. -
  107.      * @var Doctrine_Connection $conn                   Doctrine_Connection object that created this table
  108. -
  109.      */
  110. -
  111.     private $conn;
  112. -
  113.     /**
  114. -
  115.      * @var array $identityMap                          first level cache
  116. -
  117.      */
  118. -
  119.     private $identityMap        = array();
  120. -
  121.     /**
  122. -
  123.      * @var Doctrine_Table_Repository $repository       record repository
  124. -
  125.      */
  126. -
  127.     private $repository;
  128. -
  129.     /**
  130. -
  131.      * @var array $columns                  an array of column definitions,
  132. -
  133.      *                                       keys as column names and values as column definitions
  134. -
  135.      *
  136. -
  137.      *                                       the definition array has atleast the following values:
  138. -
  139.      *
  140. -
  141.      *                                       -- type         the column type, eg. 'integer'
  142. -
  143.      *                                       -- length       the column length, eg. 11
  144. -
  145.      *
  146. -
  147.      *                                       additional keys:
  148. -
  149.      *                                       -- notnull      whether or not the column is marked as notnull
  150. -
  151.      *                                       -- values       enum values
  152. -
  153.      *                                       -- notblank     notblank validator + notnull constraint
  154. -
  155.      *                                       ... many more
  156. -
  157.      */
  158. -
  159.     protected $columns          = array();
  160. -
  161.     /**
  162. -
  163.      * @var array $columnAliases            an array of column aliases
  164. -
  165.      *                                       keys as column aliases and values as column names
  166. -
  167.      */
  168. -
  169.     protected $columnAliases    = array();
  170. -
  171.     /**
  172. -
  173.      * @var integer $columnCount            cached column count, Doctrine_Record uses this column count in when
  174. -
  175.      *                                       determining its state
  176. -
  177.      */
  178. -
  179.     private $columnCount;
  180. -
  181.     /**
  182. -
  183.      * @var boolean $hasDefaultValues       whether or not this table has default values
  184. -
  185.      */
  186. -
  187.     private $hasDefaultValues;
  188. -
  189.     /**
  190. -
  191.      * @var array $options                  an array containing all options
  192. -
  193.      *
  194. -
  195.      *       -- name                         name of the component, for example component name of the GroupTable is 'Group'
  196. -
  197.      *
  198. -
  199.      *       -- parents                      the parent classes of this component
  200. -
  201.      *
  202. -
  203.      *       -- declaringClass               name of the table definition declaring class (when using inheritance the class
  204. -
  205.      *                                       that defines the table structure can be any class in the inheritance hierarchy,
  206. -
  207.      *                                       hence we need reflection to check out which class actually calls setTableDefinition)
  208. -
  209.      *
  210. -
  211.      *       -- tableName                    database table name, in most cases this is the same as component name but in some cases
  212. -
  213.      *                                       where one-table-multi-class inheritance is used this will be the name of the inherited table
  214. -
  215.      *
  216. -
  217.      *       -- sequenceName                 Some databases need sequences instead of auto incrementation primary keys,
  218. -
  219.      *                                       you can set specific sequence for your table by calling setOption('sequenceName', $seqName)
  220. -
  221.      *                                       where $seqName is the name of the desired sequence
  222. -
  223.      *
  224. -
  225.      *       -- enumMap                      enum value arrays
  226. -
  227.      *
  228. -
  229.      *       -- inheritanceMap               inheritanceMap is used for inheritance mapping, keys representing columns and values
  230. -
  231.      *                                       the column values that should correspond to child classes
  232. -
  233.      *
  234. -
  235.      *       -- type                         table type (mysql example: INNODB)
  236. -
  237.      *
  238. -
  239.      *       -- charset                      character set
  240. -
  241.      *
  242. -
  243.      *       -- foreignKeys                  the foreign keys of this table
  244. -
  245.      *
  246. -
  247.      *       -- checks                       the check constraints of this table, eg. 'price > dicounted_price'
  248. -
  249.      *
  250. -
  251.      *       -- collation                    collation attribute
  252. -
  253.      *
  254. -
  255.      *       -- indexes                      the index definitions of this table
  256. -
  257.      *
  258. -
  259.      *       -- treeImpl                     the tree implementation of this table (if any)
  260. -
  261.      *
  262. -
  263.      *       -- treeOptions                  the tree options
  264. -
  265.      *
  266. -
  267.      *       -- versioning
  268. -
  269.      */
  270. -
  271.     protected $options          = array('name'           => null,
  272. -
  273.                                         'tableName'      => null,
  274. -
  275.                                         'sequenceName'   => null,
  276. -
  277.                                         'inheritanceMap' => array(),
  278. -
  279.                                         'enumMap'        => array(),
  280. -
  281.                                         'engine'         => null,
  282. -
  283.                                         'charset'        => null,
  284. -
  285.                                         'collation'      => null,
  286. -
  287.                                         'treeImpl'       => null,
  288. -
  289.                                         'treeOptions'    => null,
  290. -
  291.                                         'indexes'        => array(),
  292. -
  293.                                         'parents'        => array(),
  294. -
  295.                                         'versioning'     => null,
  296. -
  297.                                         );
  298. -
  299.     /**
  300. -
  301.      * @var Doctrine_Tree $tree                 tree object associated with this table
  302. -
  303.      */
  304. -
  305.     protected $tree;
  306. -
  307.     /**
  308. -
  309.      * @var Doctrine_Relation_Parser $_parser   relation parser object
  310. -
  311.      */
  312. -
  313.     protected $_parser;
  314. -
  315.     /**
  316. -
  317.      * @var array $_templates                   an array containing all templates attached to this table
  318. -
  319.      */
  320. -
  321.     protected $_templates;
  322. -
  323.  
  324. -
  325.  
  326. -
  327.     /**
  328. -
  329.      * the constructor
  330. -
  331.      * @throws Doctrine_Connection_Exception    if there are no opened connections
  332. -
  333.      * @throws Doctrine_Table_Exception         if there is already an instance of this table
  334. -
  335.      * @return void 
  336. -
  337.      */
  338. -
  339.     public function __construct($nameDoctrine_Connection $conn)
  340. -
  341.     {
  342. -
  343.         $this->conn = $conn;
  344. -
  345.  
  346. -
  347.         $this->setParent($this->conn);
  348. -
  349.  
  350. -
  351.         $this->options['name'$name;
  352. -
  353.         $this->_parser = new Doctrine_Relation_Parser($this);
  354. -
  355.  
  356. -
  357.         if class_exists($name|| empty($name)) {
  358. -
  359.             throw new Doctrine_Exception("Couldn't find class " $name);
  360. -
  361.         }
  362. -
  363.         $record new $name($this);
  364. -
  365.  
  366. -
  367.         $names array();
  368. -
  369.  
  370. -
  371.         $class $name;
  372. -
  373.  
  374. -
  375.         // get parent classes
  376. -
  377.  
  378. -
  379.         do {
  380. -
  381.             if ($class == "Doctrine_Record"{
  382. -
  383.                 break;                        
  384. -
  385.             }
  386. -
  387.  
  388. -
  389.             $name  $class;
  390. -
  391.             $names[$name;
  392. -
  393.         while ($class get_parent_class($class));
  394. -
  395.  
  396. -
  397.         // reverse names
  398. -
  399.         $names array_reverse($names);
  400. -
  401.         // save parents
  402. -
  403.         array_pop($names);
  404. -
  405.         $this->options['parents'$names;
  406. -
  407.  
  408. -
  409.         // create database table
  410. -
  411.         if (method_exists($record'setTableDefinition')) {
  412. -
  413.             $record->setTableDefinition();
  414. -
  415.             // get the declaring class of setTableDefinition method
  416. -
  417.             $method new ReflectionMethod($this->options['name']'setTableDefinition');
  418. -
  419.             $class  $method->getDeclaringClass();
  420. -
  421.         else {
  422. -
  423.             $class new ReflectionClass($class);
  424. -
  425.         }
  426. -
  427.         $this->options['declaringClass'$class;
  428. -
  429.  
  430. -
  431.         // set the table definition for the given tree implementation
  432. -
  433.         if ($this->isTree()) {
  434. -
  435.             $this->getTree()->setTableDefinition();
  436. -
  437.         }
  438. -
  439.         
  440. -
  441.         $this->columnCount = count($this->columns);
  442. -
  443.  
  444. -
  445.         if isset($this->options['tableName'])) {
  446. -
  447.             $this->options['tableName'Doctrine::tableize($class->getName());
  448. -
  449.         }
  450. -
  451.  
  452. -
  453.         switch (count($this->primaryKeys)) {
  454. -
  455.             case 0:
  456. -
  457.                 $this->columns = array_merge(array('id' =>
  458. -
  459.                                               array('type'          => 'integer',
  460. -
  461.                                                     'length'        => 20,
  462. -
  463.                                                     'autoincrement' => true,
  464. -
  465.                                                     'primary'       => true))$this->columns);
  466. -
  467.     
  468. -
  469.                 $this->primaryKeys['id';
  470. -
  471.                 $this->identifier = 'id';
  472. -
  473.                 $this->identifierType = Doctrine::IDENTIFIER_AUTOINC;
  474. -
  475.                 $this->columnCount++;
  476. -
  477.                 break;
  478. -
  479.             default:
  480. -
  481.                 if (count($this->primaryKeys1{
  482. -
  483.                     $this->identifier = $this->primaryKeys;
  484. -
  485.                     $this->identifierType = Doctrine::IDENTIFIER_COMPOSITE;
  486. -
  487.     
  488. -
  489.                 else {
  490. -
  491.                     foreach ($this->primaryKeys as $pk{
  492. -
  493.                         $e $this->columns[$pk];
  494. -
  495.     
  496. -
  497.                         $found false;
  498. -
  499.     
  500. -
  501.                         foreach ($e as $option => $value{
  502. -
  503.                             if ($found)
  504. -
  505.                                 break;
  506. -
  507.     
  508. -
  509.                             $e2 explode(':'$option);
  510. -
  511.     
  512. -
  513.                             switch (strtolower($e2[0])) {
  514. -
  515.                                 case 'autoincrement':
  516. -
  517.                                 case 'autoinc':
  518. -
  519.                                     $this->identifierType = Doctrine::IDENTIFIER_AUTOINC;
  520. -
  521.                                     $found true;
  522. -
  523.                                     break;
  524. -
  525.                                 case 'seq':
  526. -
  527.                                 case 'sequence':
  528. -
  529.                                     $this->identifierType = Doctrine::IDENTIFIER_SEQUENCE;
  530. -
  531.                                     $found true;
  532. -
  533.     
  534. -
  535.                                     if ($value{
  536. -
  537.                                         $this->options['sequenceName'$value;
  538. -
  539.                                     else {
  540. -
  541.                                         if (($sequence $this->getAttribute(Doctrine::ATTR_DEFAULT_SEQUENCE)) !== null{
  542. -
  543.                                             $this->options['sequenceName'$sequence;
  544. -
  545.                                         else {
  546. -
  547.                                             $this->options['sequenceName'$this->conn->getSequenceName($this->options['tableName']);
  548. -
  549.                                         }
  550. -
  551.                                     }
  552. -
  553.                                     break;
  554. -
  555.                             }
  556. -
  557.                         }
  558. -
  559.                         if isset($this->identifierType)) {
  560. -
  561.                             $this->identifierType = Doctrine::IDENTIFIER_NATURAL;
  562. -
  563.                         }
  564. -
  565.                         $this->identifier = $pk;
  566. -
  567.                     }
  568. -
  569.             }
  570. -
  571.         }
  572. -
  573.  
  574. -
  575.  
  576. -
  577.         $record->setUp();
  578. -
  579.  
  580. -
  581.         // if tree, set up tree
  582. -
  583.         if ($this->isTree()) {
  584. -
  585.             $this->getTree()->setUp();
  586. -
  587.         }
  588. -
  589.         $this->repository = new Doctrine_Table_Repository($this);
  590. -
  591.     }
  592. -
  593.     /**
  594. -
  595.      * getTemplates
  596. -
  597.      * returns all templates attached to this table
  598. -
  599.      *
  600. -
  601.      * @return array     an array containing all templates
  602. -
  603.      */
  604. -
  605.     public function getTemplates()
  606. -
  607.     {
  608. -
  609.         return $this->_templates;
  610. -
  611.     }
  612. -
  613.     /**
  614. -
  615.      * export
  616. -
  617.      * exports this table to database based on column and option definitions
  618. -
  619.      *
  620. -
  621.      * @throws Doctrine_Connection_Exception    if some error other than Doctrine::ERR_ALREADY_EXISTS
  622. -
  623.      *                                           occurred during the create table operation
  624. -
  625.      * @return boolean                          whether or not the export operation was successful
  626. -
  627.      *                                           false if table already existed in the database
  628. -
  629.      */
  630. -
  631.     public function export(
  632. -
  633.     {
  634. -
  635.         $this->conn->export->exportTable($this);
  636. -
  637.     }
  638. -
  639.     /**
  640. -
  641.      * getExportableFormat
  642. -
  643.      * returns exportable presentation of this object
  644. -
  645.      *
  646. -
  647.      * @return array 
  648. -
  649.      */
  650. -
  651.     public function getExportableFormat($parseForeignKeys true)
  652. -
  653.     {
  654. -
  655.         $columns array();
  656. -
  657.         $primary array();
  658. -
  659.  
  660. -
  661.         foreach ($this->getColumns(as $name => $column{
  662. -
  663.             $definition $column;
  664. -
  665.  
  666. -
  667.             switch ($definition['type']{
  668. -
  669.                 case 'enum':
  670. -
  671.                     if (isset($definition['default'])) {
  672. -
  673.                         $definition['default'$this->enumIndex($name$definition['default']);
  674. -
  675.                     }
  676. -
  677.                     break;
  678. -
  679.                 case 'boolean':
  680. -
  681.                     if (isset($definition['default'])) {
  682. -
  683.                         $definition['default'$this->getConnection()->convertBooleans($definition['default']);
  684. -
  685.                     }
  686. -
  687.                     break;
  688. -
  689.             }
  690. -
  691.             $columns[$name$definition;
  692. -
  693.  
  694. -
  695.             if(isset($definition['primary']&& $definition['primary']{
  696. -
  697.                 $primary[$name;
  698. -
  699.             }
  700. -
  701.         }
  702. -
  703.         $options['foreignKeys'array();
  704. -
  705.  
  706. -
  707.         if ($parseForeignKeys{
  708. -
  709.             if ($this->getAttribute(Doctrine::ATTR_EXPORTDoctrine::EXPORT_CONSTRAINTS{
  710. -
  711.     
  712. -
  713.                 $constraints array();
  714. -
  715.  
  716. -
  717.                 $emptyIntegrity array('onUpdate' => null,
  718. -
  719.                                         'onDelete' => null);
  720. -
  721.  
  722. -
  723.                 foreach ($this->getRelations(as $name => $relation{
  724. -
  725.                     $fk $relation->toArray();
  726. -
  727.                     $fk['foreignTable'$relation->getTable()->getTableName();
  728. -
  729.  
  730. -
  731.                     if ($relation->getTable(=== $this && in_array($relation->getLocal()$primary)) {
  732. -
  733.                         if ($relation->hasConstraint()) {
  734. -
  735.                             throw new Doctrine_Table_Exception("Badly constructed integrity constraints.");
  736. -
  737.                         }
  738. -
  739.                         
  740. -
  741.                         continue;
  742. -
  743.                     }
  744. -
  745.  
  746. -
  747.                     $integrity array('onUpdate' => $fk['onUpdate'],
  748. -
  749.                                        'onDelete' => $fk['onDelete']);
  750. -
  751.                     
  752. -
  753.                     if ($relation instanceof Doctrine_Relation_LocalKey{
  754. -
  755.                         $def array('local'        => $relation->getLocal(),
  756. -
  757.                                      'foreign'      => $relation->getForeign(),
  758. -
  759.                                      'foreignTable' => $relation->getTable()->getTableName());
  760. -
  761.  
  762. -
  763.                         if (($key array_search($def$options['foreignKeys'])) === false{
  764. -
  765.                             $options['foreignKeys'][$def;
  766. -
  767.  
  768. -
  769.                             $constraints[$integrity;
  770. -
  771.                         else {
  772. -
  773.                             if ($integrity !== $emptyIntegrity{
  774. -
  775.                                 $constraints[$key$integrity;
  776. -
  777.                             }
  778. -
  779.                         }
  780. -
  781.                     }
  782. -
  783.                 }
  784. -
  785.  
  786. -
  787.                 foreach ($constraints as $k => $def{
  788. -
  789.                     $options['foreignKeys'][$karray_merge($options['foreignKeys'][$k]$def);
  790. -
  791.                 }
  792. -
  793.  
  794. -
  795.             }
  796. -
  797.         }
  798. -
  799.         $options['primary'$primary;
  800. -
  801.         
  802. -
  803.         return array('tableName' => $this->getOption('tableName')
  804. -
  805.                      'columns'   => $columns
  806. -
  807.                      'options'   => array_merge($this->getOptions()$options));
  808. -
  809.     }
  810. -
  811.     /**
  812. -
  813.      * exportConstraints
  814. -
  815.      * exports the constraints of this table into database based on option definitions
  816. -
  817.      *
  818. -
  819.      * @throws Doctrine_Connection_Exception    if something went wrong on db level
  820. -
  821.      * @return void 
  822. -
  823.      */
  824. -
  825.     public function exportConstraints()
  826. -
  827.     {
  828. -
  829.         try {
  830. -
  831.             $this->conn->beginTransaction();
  832. -
  833.  
  834. -
  835.             foreach ($this->options['index'as $index => $definition{
  836. -
  837.                 $this->conn->export->createIndex($this->options['tableName']$index$definition);
  838. -
  839.             }
  840. -
  841.             $this->conn->commit();
  842. -
  843.         catch(Doctrine_Connection_Exception $e{
  844. -
  845.             $this->conn->rollback();
  846. -
  847.  
  848. -
  849.             throw $e;
  850. -
  851.         }
  852. -
  853.     }
  854. -
  855.     /**
  856. -
  857.      * getRelationParser
  858. -
  859.      * return the relation parser associated with this table
  860. -
  861.      *
  862. -
  863.      * @return Doctrine_Relation_Parser     relation parser object
  864. -
  865.      */
  866. -
  867.     public function getRelationParser()
  868. -
  869.     {
  870. -
  871.         return $this->_parser;
  872. -
  873.     }
  874. -
  875.     /**
  876. -
  877.      * __get
  878. -
  879.      * an alias for getOption
  880. -
  881.      *
  882. -
  883.      * @param string $option 
  884. -
  885.      */
  886. -
  887.     public function __get($option)
  888. -
  889.     {
  890. -
  891.         if (isset($this->options[$option])) {
  892. -
  893.             return $this->options[$option];
  894. -
  895.         }
  896. -
  897.         return null;
  898. -
  899.     }
  900. -
  901.     /**
  902. -
  903.      * __isset
  904. -
  905.      *
  906. -
  907.      * @param string $option 
  908. -
  909.      */
  910. -
  911.     public function __isset($option
  912. -
  913.     {
  914. -
  915.         return isset($this->options[$option]);
  916. -
  917.     }
  918. -
  919.     /**
  920. -
  921.      * getOptions
  922. -
  923.      * returns all options of this table and the associated values
  924. -
  925.      *
  926. -
  927.      * @return array    all options and their values
  928. -
  929.      */
  930. -
  931.     public function getOptions()
  932. -
  933.     {
  934. -
  935.         return $this->options;
  936. -
  937.     }
  938. -
  939.     /**
  940. -
  941.      * addForeignKey
  942. -
  943.      *
  944. -
  945.      * adds a foreignKey to this table
  946. -
  947.      *
  948. -
  949.      * @return void 
  950. -
  951.      */
  952. -
  953.     public function addForeignKey(array $definition)
  954. -
  955.     {
  956. -
  957.         $this->options['foreignKeys'][$definition;
  958. -
  959.     }
  960. -
  961.     /**
  962. -
  963. /**
  964. -
  965.      * addCheckConstraint
  966. -
  967.      * 
  968. -
  969.      * adds a check constraint to this table
  970. -
  971.      *
  972. -
  973.      * @return void 
  974. -
  975.      */
  976. -
  977.     public function addCheckConstraint($definition$name)
  978. -
  979.     {
  980. -
  981.         if (is_string($name)) {
  982. -
  983.             $this->options['checks'][$name$definition;
  984. -
  985.         else {
  986. -
  987.             $this->options['checks'][$definition;
  988. -
  989.         }
  990. -
  991.         
  992. -
  993.         return $this;
  994. -
  995.     }
  996. -
  997.     /**
  998. -
  999.      * addIndex
  1000. -
  1001.      * 
  1002. -
  1003.      * adds an index to this table
  1004. -
  1005.      *
  1006. -
  1007.      * @return void 
  1008. -
  1009.      */
  1010. -
  1011.     public function addIndex($indexarray $definition)
  1012. -
  1013.     {
  1014. -
  1015.         $this->options['indexes'][$index$definition;
  1016. -
  1017.     }
  1018. -
  1019.     /**
  1020. -
  1021. /**
  1022. -
  1023.      * getIndex
  1024. -
  1025.      *
  1026. -
  1027.      * @return array|boolean       array on success, FALSE on failure
  1028. -
  1029.      */
  1030. -
  1031.     public function getIndex($index
  1032. -
  1033.     {
  1034. -
  1035.         if (isset($this->options['indexes'][$index])) {
  1036. -
  1037.             return $this->options['indexes'][$index];
  1038. -
  1039.         }
  1040. -
  1041.  
  1042. -
  1043.         return false;
  1044. -
  1045.     }
  1046. -
  1047.     public function bind($args$type)
  1048. -
  1049.     {
  1050. -
  1051.         $options array();
  1052. -
  1053.         $options['type'$type;
  1054. -
  1055.         
  1056. -
  1057.         if isset($args[1])) {
  1058. -
  1059.             $args[1array();
  1060. -
  1061.         }
  1062. -
  1063.         
  1064. -
  1065.         // the following is needed for backwards compatibility
  1066. -
  1067.         if (is_string($args[1])) {
  1068. -
  1069.             if isset($args[2])) {
  1070. -
  1071.                 $args[2array();
  1072. -
  1073.             elseif (is_string($args[2])) {
  1074. -
  1075.                 $args[2= (array) $args[2];
  1076. -
  1077.             }
  1078. -
  1079.  
  1080. -
  1081.             $classes array_merge($this->options['parents']array($this->getComponentName()));
  1082. -
  1083.  
  1084. -
  1085.  
  1086. -
  1087.             $e explode('.'$args[1]);
  1088. -
  1089.             if (in_array($e[0]$classes)) {
  1090. -
  1091.                 if ($options['type'>= Doctrine_Relation::MANY{
  1092. -
  1093.                     $options['foreign'$e[1];                                                 
  1094. -
  1095.                 else {
  1096. -
  1097.                     $options['local'$e[1];
  1098. -
  1099.                 }
  1100. -
  1101.             else {
  1102. -
  1103.                 $e2 explode(' as '$args[0]);
  1104. -
  1105.                 if ($e[0!== $e2[0&& isset($e2[1]|| $e[0!== $e2[1])) {
  1106. -
  1107.                     $options['refClass'$e[0];
  1108. -
  1109.                 }
  1110. -
  1111.  
  1112. -
  1113.                 $options['foreign'$e[1];
  1114. -
  1115.             }
  1116. -
  1117.  
  1118. -
  1119.             $options array_merge($args[2]$options);
  1120. -
  1121.  
  1122. -
  1123.             $this->_parser->bind($args[0]$options);
  1124. -
  1125.         else 
  1126. -
  1127.             $options array_merge($args[1]$options);
  1128. -
  1129.             $this->_parser->bind($args[0]$options);
  1130. -
  1131.         }
  1132. -
  1133.     }
  1134. -
  1135.  
  1136. -
  1137.     /** 
  1138. -
  1139.      * hasRelation
  1140. -
  1141.      *
  1142. -
  1143.      * @param string $alias      the relation to check if exists
  1144. -
  1145.      * @return boolean           true if the relation exists otherwise false
  1146. -
  1147.      */
  1148. -
  1149.     public function hasRelation($alias)
  1150. -
  1151.     {
  1152. -
  1153.         return $this->_parser->hasRelation($alias);
  1154. -
  1155.     }    
  1156. -
  1157.  
  1158. -
  1159.     /**
  1160. -
  1161.      * getRelation
  1162. -
  1163.      *
  1164. -
  1165.      * @param string $alias      relation alias
  1166. -
  1167.      */
  1168. -
  1169.     public function getRelation($alias$recursive true)
  1170. -
  1171.     {
  1172. -
  1173.         return $this->_parser->getRelation($alias$recursive);
  1174. -
  1175.     }
  1176. -
  1177.     /**
  1178. -
  1179.      * getRelations
  1180. -
  1181.      * returns an array containing all relation objects
  1182. -
  1183.      *
  1184. -
  1185.      * @return array        an array of Doctrine_Relation objects
  1186. -
  1187.      */
  1188. -
  1189.     public function getRelations()
  1190. -
  1191.     {
  1192. -
  1193.         return $this->_parser->getRelations();
  1194. -
  1195.     }
  1196. -
  1197.     /**
  1198. -
  1199.      * createQuery
  1200. -
  1201.      * creates a new Doctrine_Query object and adds the component name
  1202. -
  1203.      * of this table as the query 'from' part
  1204. -
  1205.      *
  1206. -
  1207.      * @return Doctrine_Query 
  1208. -
  1209.      */
  1210. -
  1211.     public function createQuery()
  1212. -
  1213.     {
  1214. -
  1215.         return Doctrine_Query::create()->from($this->getComponentName());
  1216. -
  1217.     }
  1218. -
  1219.     /**
  1220. -
  1221.      * getRepository
  1222. -
  1223.      *
  1224. -
  1225.      * @return Doctrine_Table_Repository 
  1226. -
  1227.      */
  1228. -
  1229.     public function getRepository()
  1230. -
  1231.     {
  1232. -
  1233.         return $this->repository;
  1234. -
  1235.     }
  1236. -
  1237.     /**
  1238. -
  1239.      * setOption
  1240. -
  1241.      * sets an option and returns this object in order to
  1242. -
  1243.      * allow flexible method chaining
  1244. -
  1245.      *
  1246. -
  1247.      * @see Doctrine_Table::$_options   for available options
  1248. -
  1249.      * @param string $name              the name of the option to set
  1250. -
  1251.      * @param mixed $value              the value of the option
  1252. -
  1253.      * @return Doctrine_Table           this object
  1254. -
  1255.      */
  1256. -
  1257.     public function setOption($name$value)
  1258. -
  1259.     {
  1260. -
  1261.         switch ($name{
  1262. -
  1263.         case 'name':
  1264. -
  1265.         case 'tableName':
  1266. -
  1267.             break;
  1268. -
  1269.         case 'enumMap':
  1270. -
  1271.         case 'inheritanceMap':
  1272. -
  1273.         case 'index':
  1274. -
  1275.         case 'treeOptions':
  1276. -
  1277.             if is_array($value)) {
  1278. -
  1279.                 throw new Doctrine_Table_Exception($name ' should be an array.');
  1280. -
  1281.             }
  1282. -
  1283.             break;
  1284. -
  1285.         }
  1286. -
  1287.         $this->options[$name$value;
  1288. -
  1289.     }
  1290. -
  1291.     /**
  1292. -
  1293.      * getOption
  1294. -
  1295.      * returns the value of given option
  1296. -
  1297.      *
  1298. -
  1299.      * @param string $name  the name of the option
  1300. -
  1301.      * @return mixed        the value of given option
  1302. -
  1303.      */
  1304. -
  1305.     public function getOption($name)
  1306. -
  1307.     {
  1308. -
  1309.         if (isset($this->options[$name])) {
  1310. -
  1311.             return $this->options[$name];
  1312. -
  1313.         }
  1314. -
  1315.         return null;
  1316. -
  1317.     }
  1318. -
  1319.     /**
  1320. -
  1321.      * getColumnName
  1322. -
  1323.      *
  1324. -
  1325.      * returns a column name for column alias
  1326. -
  1327.      * if the actual name for the alias cannot be found
  1328. -
  1329.      * this method returns the given alias
  1330. -
  1331.      *
  1332. -
  1333.      * @param string $alias         column alias
  1334. -
  1335.      * @return string               column name
  1336. -
  1337.      */
  1338. -
  1339.     public function getColumnName($alias)
  1340. -
  1341.     {
  1342. -
  1343.         $alias strtolower($alias);
  1344. -
  1345.         if(isset($this->columnAliases[$alias])) {
  1346. -
  1347.             return $this->columnAliases[$alias];
  1348. -
  1349.         }
  1350. -
  1351.  
  1352. -
  1353.         return $alias;
  1354. -
  1355.     }
  1356. -
  1357.     /**
  1358. -
  1359.      * setColumn
  1360. -
  1361.      *
  1362. -
  1363.      * @param string $name 
  1364. -
  1365.      * @param string $type 
  1366. -
  1367.      * @param integer $length 
  1368. -
  1369.      * @param mixed $options 
  1370. -
  1371.      * @throws Doctrine_Table_Exception     if trying use wrongly typed parameter
  1372. -
  1373.      * @return void 
  1374. -
  1375.      */
  1376. -
  1377.     public function setColumn($name$type$length null$options array())
  1378. -
  1379.     {
  1380. -
  1381.         if (is_string($options)) {
  1382. -
  1383.             $options explode('|'$options);
  1384. -
  1385.         }
  1386. -
  1387.  
  1388. -
  1389.         foreach ($options as $k => $option{
  1390. -
  1391.             if (is_numeric($k)) {
  1392. -
  1393.                 if empty($option)) {
  1394. -
  1395.                     $options[$optiontrue;
  1396. -
  1397.                 }
  1398. -
  1399.                 unset($options[$k]);
  1400. -
  1401.             }
  1402. -
  1403.         }
  1404. -
  1405.  
  1406. -
  1407.         $name  strtolower($name);
  1408. -
  1409.         $parts explode(' as '$name);
  1410. -
  1411.  
  1412. -
  1413.         if (count($parts1{
  1414. -
  1415.             $this->columnAliases[$parts[1]] $parts[0];
  1416. -
  1417.             $name $parts[0];
  1418. -
  1419.         }
  1420. -
  1421.  
  1422. -
  1423.  
  1424. -
  1425.  
  1426. -
  1427.         if ($length == null{
  1428. -
  1429.             switch ($type{
  1430. -
  1431.                 case 'string':
  1432. -
  1433.                 case 'clob':
  1434. -
  1435.                 case 'float':
  1436. -
  1437.                 case 'integer':
  1438. -
  1439.                 case 'array':
  1440. -
  1441.                 case 'object':
  1442. -
  1443.                 case 'blob':
  1444. -
  1445.                 case 'gzip':
  1446. -
  1447.                     // use php int max
  1448. -
  1449.                     $length 2147483647;
  1450. -
  1451.                 break;
  1452. -
  1453.                 case 'boolean':
  1454. -
  1455.                     $length 1;
  1456. -
  1457.                 case 'date':
  1458. -
  1459.                     // YYYY-MM-DD ISO 8601
  1460. -
  1461.                     $length 10;
  1462. -
  1463.                 case 'time':
  1464. -
  1465.                     // HH:NN:SS+00:00 ISO 8601
  1466. -
  1467.                     $length 14;
  1468. -
  1469.                 case 'timestamp':
  1470. -
  1471.                     // YYYY-MM-DDTHH:MM:SS+00:00 ISO 8601
  1472. -
  1473.                     $length 25;
  1474. -
  1475.                 break;
  1476. -
  1477.             }
  1478. -
  1479.         }
  1480. -
  1481.  
  1482. -
  1483.         $this->columns[$name$options;
  1484. -
  1485.         $this->columns[$name]['type'$type;
  1486. -
  1487.         $this->columns[$name]['length'$length;
  1488. -
  1489.  
  1490. -
  1491.         if (isset($options['primary'])) {
  1492. -
  1493.             $this->primaryKeys[$name;
  1494. -
  1495.         }
  1496. -
  1497.         if (isset($options['default'])) {
  1498. -
  1499.             $this->hasDefaultValues = true;
  1500. -
  1501.         }
  1502. -
  1503.     }
  1504. -
  1505.     /**
  1506. -
  1507.      * hasDefaultValues
  1508. -
  1509.      * returns true if this table has default values, otherwise false
  1510. -
  1511.      *
  1512. -
  1513.      * @return boolean 
  1514. -
  1515.      */
  1516. -
  1517.     public function hasDefaultValues()
  1518. -
  1519.     {
  1520. -
  1521.         return $this->hasDefaultValues;
  1522. -
  1523.     }
  1524. -
  1525.     /**
  1526. -
  1527.      * getDefaultValueOf
  1528. -
  1529.      * returns the default value(if any) for given column
  1530. -
  1531.      *
  1532. -
  1533.      * @param string $column 
  1534. -
  1535.      * @return mixed 
  1536. -
  1537.      */
  1538. -
  1539.     public function getDefaultValueOf($column)
  1540. -
  1541.     {
  1542. -
  1543.         $column strtolower($column);
  1544. -
  1545.         if isset($this->columns[$column])) {
  1546. -
  1547.             throw new Doctrine_Table_Exception("Couldn't get default value. Column ".$column." doesn't exist.");
  1548. -
  1549.         }
  1550. -
  1551.         if (isset($this->columns[$column]['default'])) {
  1552. -
  1553.             return $this->columns[$column]['default'];
  1554. -
  1555.         else {
  1556. -
  1557.             return null;
  1558. -
  1559.         }
  1560. -
  1561.     }
  1562. -
  1563.     /**
  1564. -
  1565.      * @return mixed 
  1566. -
  1567.      */
  1568. -
  1569.     public function getIdentifier()
  1570. -
  1571.     {
  1572. -
  1573.         return $this->identifier;
  1574. -
  1575.     }
  1576. -
  1577.     /**
  1578. -
  1579.      * @return integer 
  1580. -
  1581.      */
  1582. -
  1583.     public function getIdentifierType()
  1584. -
  1585.     {
  1586. -
  1587.         return $this->identifierType;
  1588. -
  1589.     }
  1590. -
  1591.     /**
  1592. -
  1593.      * hasColumn
  1594. -
  1595.      * @return boolean 
  1596. -
  1597.      */
  1598. -
  1599.     public function hasColumn($name)
  1600. -
  1601.     {
  1602. -
  1603.         return isset($this->columns[$name]);
  1604. -
  1605.     }
  1606. -
  1607.     /**
  1608. -
  1609.      * @param mixed $key 
  1610. -
  1611.      * @return void 
  1612. -
  1613.      */
  1614. -
  1615.     public function setPrimaryKey($key)
  1616. -
  1617.     {
  1618. -
  1619.         switch (gettype($key)) {
  1620. -
  1621.         case "array":
  1622. -
  1623.             $this->primaryKeys = array_values($key);
  1624. -
  1625.             break;
  1626. -
  1627.         case "string":
  1628. -
  1629.             $this->primaryKeys[$key;
  1630. -
  1631.             break;
  1632. -
  1633.         };
  1634. -
  1635.     }
  1636. -
  1637.     /**
  1638. -
  1639.      * returns all primary keys
  1640. -
  1641.      * @return array 
  1642. -
  1643.      */
  1644. -
  1645.     public function getPrimaryKeys()
  1646. -
  1647.     {
  1648. -
  1649.         return $this->primaryKeys;
  1650. -
  1651.     }
  1652. -
  1653.     /**
  1654. -
  1655.      * @return boolean 
  1656. -
  1657.      */
  1658. -
  1659.     public function hasPrimaryKey($key)
  1660. -
  1661.     {
  1662. -
  1663.         return in_array($key,$this->primaryKeys);
  1664. -
  1665.     }
  1666. -
  1667.     /**
  1668. -
  1669.      * @return Doctrine_Connection 
  1670. -
  1671.      */
  1672. -
  1673.     public function getConnection()
  1674. -
  1675.     {
  1676. -
  1677.         return $this->conn;
  1678. -
  1679.     }
  1680. -
  1681.     /**
  1682. -
  1683.      * create
  1684. -
  1685.      * creates a new record
  1686. -
  1687.      *
  1688. -
  1689.      * @param $array                    an array where keys are field names and values representing field values
  1690. -
  1691.      * @return Doctrine_Record 
  1692. -
  1693.      */
  1694. -
  1695.     public function create(array $array array()) {
  1696. -
  1697.         $this->data         = $array;
  1698. -
  1699.         $record new $this->options['name']($thistrue);
  1700. -
  1701.         $this->data         = array();
  1702. -
  1703.         return $record;
  1704. -
  1705.     }
  1706. -
  1707.     /**
  1708. -
  1709.      * finds a record by its identifier
  1710. -
  1711.      *
  1712. -
  1713.      * @param $id                       database row id
  1714. -
  1715.      * @return Doctrine_Record|false   a record for given database identifier
  1716. -
  1717.      */
  1718. -
  1719.     public function find($id)
  1720. -
  1721.     {
  1722. -
  1723.         if ($id !== null{
  1724. -
  1725.             if is_array($id)) {
  1726. -
  1727.                 $id array($id);
  1728. -
  1729.             else {
  1730. -
  1731.                 $id array_values($id);
  1732. -
  1733.             }
  1734. -
  1735.  
  1736. -
  1737.             $records Doctrine_Query::create()
  1738. -
  1739.                        ->from($this->getComponentName())
  1740. -
  1741.                        ->where(implode(' = ? AND '$this->primaryKeys' = ?')
  1742. -
  1743.                        ->execute($id);
  1744. -
  1745.  
  1746. -
  1747.             if (count($records=== 0{
  1748. -
  1749.                 return false;
  1750. -
  1751.             }
  1752. -
  1753.  
  1754. -
  1755.             return $records->getFirst();
  1756. -
  1757.         }
  1758. -
  1759.         return false;
  1760. -
  1761.     }
  1762. -
  1763.     /**
  1764. -
  1765.      * applyInheritance
  1766. -
  1767.      * @param $where                    query where part to be modified
  1768. -
  1769.      * @return string                   query where part with column aggregation inheritance added
  1770. -
  1771.      */
  1772. -
  1773.     final public function applyInheritance($where)
  1774. -
  1775.     {
  1776. -
  1777.         if empty($this->options['inheritanceMap'])) {
  1778. -
  1779.             $a array();
  1780. -
  1781.             foreach ($this->options['inheritanceMap'as $field => $value{
  1782. -
  1783.                 $a[$field ' = ?';
  1784. -
  1785.             }
  1786. -
  1787.             $i implode(' AND '$a);
  1788. -
  1789.             $where .= ' AND ' $i;
  1790. -
  1791.         }
  1792. -
  1793.         return $where;
  1794. -
  1795.     }
  1796. -
  1797.     /**
  1798. -
  1799.      * findAll
  1800. -
  1801.      * returns a collection of records
  1802. -
  1803.      *
  1804. -
  1805.      * @return Doctrine_Collection 
  1806. -
  1807.      */
  1808. -
  1809.     public function findAll()
  1810. -
  1811.     {
  1812. -
  1813.         $graph new Doctrine_Query($this->conn);
  1814. -
  1815.         $users $graph->query('FROM ' $this->options['name']);
  1816. -
  1817.         return $users;
  1818. -
  1819.     }
  1820. -
  1821.     /**
  1822. -
  1823.      * findByDql
  1824. -
  1825.      * finds records with given DQL where clause
  1826. -
  1827.      * returns a collection of records
  1828. -
  1829.      *
  1830. -
  1831.      * @param string $dql               DQL after WHERE clause
  1832. -
  1833.      * @param array $params             query parameters
  1834. -
  1835.      * @return Doctrine_Collection 
  1836. -
  1837.      */
  1838. -
  1839.     public function findBySql($dqlarray $params array()) {
  1840. -
  1841.         $q new Doctrine_Query($this->conn);
  1842. -
  1843.         $users $q->query('FROM ' $this->options['name'' WHERE ' $dql$params);
  1844. -
  1845.         return $users;
  1846. -
  1847.     }
  1848. -
  1849.  
  1850. -
  1851.     public function findByDql($dqlarray $params array()) {
  1852. -
  1853.         return $this->findBySql($dql$params);
  1854. -
  1855.     }
  1856. -
  1857.     /**
  1858. -
  1859.      * clear
  1860. -
  1861.      * clears the first level cache (identityMap)
  1862. -
  1863.      *
  1864. -
  1865.      * @return void 
  1866. -
  1867.      */
  1868. -
  1869.     public function clear()
  1870. -
  1871.     {
  1872. -
  1873.         $this->identityMap = array();
  1874. -
  1875.     }
  1876. -
  1877.     /**
  1878. -
  1879.      * addRecord
  1880. -
  1881.      * adds a record to identity map
  1882. -
  1883.      *
  1884. -
  1885.      * @param Doctrine_Record $record       record to be added
  1886. -
  1887.      * @return boolean 
  1888. -
  1889.      */
  1890. -
  1891.     public function addRecord(Doctrine_Record $record)
  1892. -
  1893.     {
  1894. -
  1895.         $id implode(' '$record->identifier());
  1896. -
  1897.         
  1898. -
  1899.         if (isset($this->identityMap[$id])) {
  1900. -
  1901.             return false;
  1902. -
  1903.         }
  1904. -
  1905.         
  1906. -
  1907.         $this->identityMap[$id$record;
  1908. -
  1909.         
  1910. -
  1911.         return true;
  1912. -
  1913.     }
  1914. -
  1915.     /**
  1916. -
  1917.      * getRecord
  1918. -
  1919.      * first checks if record exists in identityMap, if not
  1920. -
  1921.      * returns a new record
  1922. -
  1923.      *
  1924. -
  1925.      * @return Doctrine_Record 
  1926. -
  1927.      */
  1928. -
  1929.     public function getRecord()
  1930. -
  1931.     {
  1932. -
  1933.         if empty($this->data)) {
  1934. -
  1935.             $this->data = array_change_key_case($this->dataCASE_LOWER);
  1936. -
  1937.     
  1938. -
  1939.             $key $this->getIdentifier();
  1940. -
  1941.     
  1942. -
  1943.             if is_array($key)) {
  1944. -
  1945.                 $key array($key);
  1946. -
  1947.             }
  1948. -
  1949.     
  1950. -
  1951.             $found false;
  1952. -
  1953.             foreach ($key as $k{
  1954. -
  1955.                 if isset($this->data[$k])) {
  1956. -
  1957.                     // primary key column not found return new record
  1958. -
  1959.                     $found true;
  1960. -
  1961.                     break;
  1962. -
  1963.                 }
  1964. -
  1965.                 $id[$this->data[$k];
  1966. -
  1967.             }
  1968. -
  1969.             
  1970. -
  1971.             if ($found{
  1972. -
  1973.                 $recordName $this->getClassnameToReturn();
  1974. -
  1975.                 $record new $recordName($thistrue);
  1976. -
  1977.                 $this->data = array();
  1978. -
  1979.  
  1980. -
  1981.                 return $record;
  1982. -
  1983.             }
  1984. -
  1985.  
  1986. -
  1987.  
  1988. -
  1989.             $id implode(' '$id);
  1990. -
  1991.     
  1992. -
  1993.             if (isset($this->identityMap[$id])) {
  1994. -
  1995.                 $record $this->identityMap[$id];
  1996. -
  1997.                 $record->hydrate($this->data);
  1998. -
  1999.             else {
  2000. -
  2001.                 $recordName $this->getClassnameToReturn();
  2002. -
  2003.                 $record new $recordName($this);
  2004. -
  2005.                 $this->identityMap[$id$record;
  2006. -
  2007.             }
  2008. -
  2009.             $this->data = array();
  2010. -
  2011.         else {
  2012. -
  2013.             $recordName $this->getClassnameToReturn();
  2014. -
  2015.             $record new $recordName($thistrue);
  2016. -
  2017.         }
  2018. -
  2019.  
  2020. -
  2021.  
  2022. -
  2023.         return $record;
  2024. -
  2025.     }
  2026. -
  2027.  
  2028. -
  2029.     /**
  2030. -
  2031.      * Get the classname to return. Most often this is just the options['name']
  2032. -
  2033.      *
  2034. -
  2035.      * Check the subclasses option and the inheritanceMap for each subclass to see
  2036. -
  2037.      * if all the maps in a subclass is met. If this is the case return that
  2038. -
  2039.      * subclass name. If no subclasses match or if there are no subclasses defined
  2040. -
  2041.      * return the name of the class for this tables record.
  2042. -
  2043.      *
  2044. -
  2045.      * @todo this function could use reflection to check the first time it runs
  2046. -
  2047.      *  if the subclassing option is not set.
  2048. -
  2049.      *
  2050. -
  2051.      * @return string The name of the class to create
  2052. -
  2053.      *
  2054. -
  2055.      */ 
  2056. -
  2057.     public function getClassnameToReturn()
  2058. -
  2059.     {
  2060. -
  2061.         if (!isset($this->options['subclasses'])) {
  2062. -
  2063.             return $this->options['name'];
  2064. -
  2065.         }
  2066. -
  2067.         foreach ($this->options['subclasses'as $subclass{
  2068. -
  2069.             $table $this->conn->getTable($subclass);
  2070. -
  2071.             $inheritanceMap $table->getOption('inheritanceMap');
  2072. -
  2073.             $nomatch false;
  2074. -
  2075.             foreach ($inheritanceMap as $key => $value{
  2076. -
  2077.                 if isset($this->data[$key]|| $this->data[$key!= $value{
  2078. -
  2079.                     $nomatch true;
  2080. -
  2081.                     break;
  2082. -
  2083.                 }
  2084. -
  2085.             }
  2086. -
  2087.             if $nomatch{
  2088. -
  2089.                 return $table->getComponentName();
  2090. -
  2091.             }
  2092. -
  2093.         }
  2094. -
  2095.         return $this->options['name'];
  2096. -
  2097.     }
  2098. -
  2099.  
  2100. -
  2101.     /**
  2102. -
  2103.      * @param $id                       database row id
  2104. -
  2105.      * @throws Doctrine_Find_Exception
  2106. -
  2107.      */
  2108. -
  2109.     final public function getProxy($id null)
  2110. -
  2111.     {
  2112. -
  2113.         if ($id !== null{
  2114. -
  2115.             $query 'SELECT ' implode(', ',$this->primaryKeys
  2116. -
  2117.                 . ' FROM ' $this->getTableName(
  2118. -
  2119.                 . ' WHERE ' implode(' = ? && ',$this->primaryKeys' = ?';
  2120. -
  2121.             $query $this->applyInheritance($query);
  2122. -
  2123.  
  2124. -
  2125.             $params array_merge(array($id)array_values($this->options['inheritanceMap']));
  2126. -
  2127.  
  2128. -
  2129.             $this->data = $this->conn->execute($query$params)->fetch(PDO::FETCH_ASSOC);
  2130. -
  2131.  
  2132. -
  2133.             if ($this->data === false)
  2134. -
  2135.                 return false;
  2136. -
  2137.         }
  2138. -
  2139.         return $this->getRecord();
  2140. -
  2141.     }
  2142. -
  2143.     /**
  2144. -
  2145.      * count
  2146. -
  2147.      *
  2148. -
  2149.      * @return integer 
  2150. -
  2151.      */
  2152. -
  2153.     public function count()
  2154. -
  2155.     {
  2156. -
  2157.         $a $this->conn->execute('SELECT COUNT(1) FROM ' $this->options['tableName'])->fetch(Doctrine::FETCH_NUM);
  2158. -
  2159.         return current($a);
  2160. -
  2161.     }
  2162. -
  2163.     /**
  2164. -
  2165.      * @return Doctrine_Query                           a Doctrine_Query object
  2166. -
  2167.      */
  2168. -
  2169.     public function getQueryObject()
  2170. -
  2171.     {
  2172. -
  2173.         $graph new Doctrine_Query($this->getConnection());
  2174. -
  2175.         $graph->load($this->getComponentName());
  2176. -
  2177.         return $graph;
  2178. -
  2179.     }
  2180. -
  2181.     /**
  2182. -
  2183.      * @param string $field 
  2184. -
  2185.      * @return array 
  2186. -
  2187.      */
  2188. -
  2189.     public function getEnumValues($field)
  2190. -
  2191.     {
  2192. -
  2193.         if (isset($this->columns[$field]['values'])) {
  2194. -
  2195.             return $this->columns[$field]['values'];
  2196. -
  2197.         else {
  2198. -
  2199.             return array();
  2200. -
  2201.         }
  2202. -
  2203.     }
  2204. -
  2205.     /**
  2206. -
  2207.      * enumValue
  2208. -
  2209.      *
  2210. -
  2211.      * @param string $field 
  2212. -
  2213.      * @param integer $index 
  2214. -
  2215.      * @return mixed 
  2216. -
  2217.      */
  2218. -
  2219.     public function enumValue($field$index)
  2220. -
  2221.     {
  2222. -
  2223.         if ($index instanceof Doctrine_Null)
  2224. -
  2225.             return $index;
  2226. -
  2227.  
  2228. -
  2229.         return isset($this->columns[$field]['values'][$index]$this->columns[$field]['values'][$index$index;
  2230. -
  2231.     }
  2232. -
  2233.     /**
  2234. -
  2235.      * enumIndex
  2236. -
  2237.      *
  2238. -
  2239.      * @param string $field 
  2240. -
  2241.      * @param mixed $value 
  2242. -
  2243.      * @return mixed 
  2244. -
  2245.      */
  2246. -
  2247.     public function enumIndex($field$value)
  2248. -
  2249.     {
  2250. -
  2251.         $values $this->getEnumValues($field);
  2252. -
  2253.  
  2254. -
  2255.         return array_search($value$values);
  2256. -
  2257.     }
  2258. -
  2259.     /**
  2260. -
  2261.      * getColumnCount
  2262. -
  2263.      *
  2264. -
  2265.      * @return integer      the number of columns in this table
  2266. -
  2267.      */
  2268. -
  2269.     public function getColumnCount()
  2270. -
  2271.     {
  2272. -
  2273.         return $this->columnCount;
  2274. -
  2275.     }
  2276. -
  2277.  
  2278. -
  2279.     /**
  2280. -
  2281.      * returns all columns and their definitions
  2282. -
  2283.      *
  2284. -
  2285.      * @return array 
  2286. -
  2287.      */
  2288. -
  2289.     public function getColumns()
  2290. -
  2291.     {
  2292. -
  2293.         return $this->columns;
  2294. -
  2295.     }
  2296. -
  2297.     /**
  2298. -
  2299.      * returns an array containing all the column names
  2300. -
  2301.      *
  2302. -
  2303.      * @return array 
  2304. -
  2305.      */
  2306. -
  2307.     public function getColumnNames()
  2308. -
  2309.     {
  2310. -
  2311.         return array_keys($this->columns);
  2312. -
  2313.     }
  2314. -
  2315.     /**
  2316. -
  2317.      * getDefinitionOf
  2318. -
  2319.      *
  2320. -
  2321.      * @return mixed        array on success, false on failure
  2322. -
  2323.      */
  2324. -
  2325.     public function getDefinitionOf($column)
  2326. -
  2327.     {
  2328. -
  2329.         if (isset($this->columns[$column])) {
  2330. -
  2331.             return $this->columns[$column];
  2332. -
  2333.         }
  2334. -
  2335.         return false;
  2336. -
  2337.     }
  2338. -
  2339.     /**
  2340. -
  2341.      * getTypeOf
  2342. -
  2343.      *
  2344. -
  2345.      * @return mixed        string on success, false on failure
  2346. -
  2347.      */
  2348. -
  2349.     public function getTypeOf($column)
  2350. -
  2351.     {
  2352. -
  2353.         if (isset($this->columns[$column])) {
  2354. -
  2355.             return $this->columns[$column]['type'];
  2356. -
  2357.         }
  2358. -
  2359.         return false;
  2360. -
  2361.     }
  2362. -
  2363.     /**
  2364. -
  2365.      * setData
  2366. -
  2367.      * doctrine uses this function internally
  2368. -
  2369.      * users are strongly discouraged to use this function
  2370. -
  2371.      *
  2372. -
  2373.      * @param array $data               internal data
  2374. -
  2375.      * @return void 
  2376. -
  2377.      */
  2378. -
  2379.     public function setData(array $data)
  2380. -
  2381.     {
  2382. -
  2383.         $this->data $data;
  2384. -
  2385.     }
  2386. -
  2387.     /**
  2388. -
  2389. /**
  2390. -
  2391.      * returns internal data, used by Doctrine_Record instances
  2392. -
  2393.      * when retrieving data from database
  2394. -
  2395.      *
  2396. -
  2397.      * @return array 
  2398. -
  2399.      */
  2400. -
  2401.     public function getData()
  2402. -
  2403.     {
  2404. -
  2405.         return $this->data;
  2406. -
  2407.     }
  2408. -
  2409.     /**
  2410. -
  2411.      * prepareValue
  2412. -
  2413.      * this method performs special data preparation depending on
  2414. -
  2415.      * the type of the given column
  2416. -
  2417.      *
  2418. -
  2419.      * 1. It unserializes array and object typed columns
  2420. -
  2421.      * 2. Uncompresses gzip typed columns
  2422. -
  2423.      * 3. Gets the appropriate enum values for enum typed columns
  2424. -
  2425.      * 4. Initializes special null object pointer for null values (for fast column existence checking purposes)
  2426. -
  2427.      *
  2428. -
  2429.      * example:
  2430. -
  2431.      * <code type='php'>
  2432. -
  2433.      * $field = 'name';
  2434. -
  2435.      * $value = null;
  2436. -
  2437.      * $table->prepareValue($field, $value); // Doctrine_Null
  2438. -
  2439.      * </code>
  2440. -
  2441.      *
  2442. -
  2443.      * @throws Doctrine_Table_Exception     if unserialization of array/object typed column fails or
  2444. -
  2445.      * @throws Doctrine_Table_Exception     if uncompression of gzip typed column fails         *
  2446. -
  2447.      * @param string $field     the name of the field
  2448. -
  2449.      * @param string $value     field value
  2450. -
  2451.      * @return mixed            prepared value
  2452. -
  2453.      */
  2454. -
  2455.     public function prepareValue($field$value)
  2456. -
  2457.     {
  2458. -
  2459.         if ($value === self::$_null{
  2460. -
  2461.             return self::$_null;
  2462. -
  2463.         else if ($value === null{
  2464. -
  2465.             return null;
  2466. -
  2467.         else {
  2468. -
  2469.             $type $this->getTypeOf($field);
  2470. -
  2471.  
  2472. -
  2473.             switch ($type{
  2474. -
  2475.                 case 'array':
  2476. -
  2477.                 case 'object':
  2478. -
  2479.                     if (is_string($value)) {
  2480. -
  2481.                         $value unserialize($value);
  2482. -
  2483.  
  2484. -
  2485.                         if ($value === false{
  2486. -
  2487.                             throw new Doctrine_Table_Exception('Unserialization of ' $field ' failed.');
  2488. -
  2489.                         }
  2490. -
  2491.                         return $value;
  2492. -
  2493.                     }
  2494. -
  2495.                 break;
  2496. -
  2497.                 case 'gzip':
  2498. -
  2499.                     $value gzuncompress($value);
  2500. -
  2501.  
  2502. -
  2503.                     if ($value === false{
  2504. -
  2505.                         throw new Doctrine_Table_Exception('Uncompressing of ' $field ' failed.');
  2506. -
  2507.                     }
  2508. -
  2509.                     return $value;
  2510. -
  2511.                 break;
  2512. -
  2513.                 case 'enum':
  2514. -
  2515.                     return $this->enumValue($field$value);
  2516. -
  2517.                 break;
  2518. -
  2519.                 case 'boolean':
  2520. -
  2521.                     return (boolean) $value;
  2522. -
  2523.                 break;
  2524. -
  2525.                 case 'integer':
  2526. -
  2527.                     // don't do any casting here PHP INT_MAX is smaller than what the databases support
  2528. -
  2529.                 break;
  2530. -
  2531.             }
  2532. -
  2533.         }
  2534. -
  2535.         return $value;
  2536. -
  2537.     }
  2538. -
  2539.     /**
  2540. -
  2541.      * getter for associated tree
  2542. -
  2543.      *
  2544. -
  2545.      * @return mixed  if tree return instance of Doctrine_Tree, otherwise returns false
  2546. -
  2547.      */    
  2548. -
  2549.     public function getTree({
  2550. -
  2551.         if (isset($this->options['treeImpl'])) {
  2552. -
  2553.             if $this->tree{
  2554. -
  2555.                 $options = isset($this->options['treeOptions']$this->options['treeOptions'array();
  2556. -
  2557.                 $this->tree = Doctrine_Tree::factory($this
  2558. -
  2559.                     $this->options['treeImpl']
  2560. -
  2561.                     $options
  2562. -
  2563.                 );
  2564. -
  2565.             }
  2566. -
  2567.             return $this->tree;
  2568. -
  2569.         }
  2570. -
  2571.         return false;
  2572. -
  2573.     }
  2574. -
  2575.     public function getComponentName(
  2576. -
  2577.     {
  2578. -
  2579.         return $this->options['name'];
  2580. -
  2581.     }
  2582. -
  2583.     public function getTableName()
  2584. -
  2585.     {
  2586. -
  2587.         return $this->options['tableName'];
  2588. -
  2589.     }
  2590. -
  2591.     public function setTableName($tableName)
  2592. -
  2593.     {
  2594. -
  2595.         $this->options['tableName'$tableName;    
  2596. -
  2597.     }
  2598. -
  2599.     /**
  2600. -
  2601.      * determine if table acts as tree
  2602. -
  2603.      *
  2604. -
  2605.      * @return mixed  if tree return true, otherwise returns false
  2606. -
  2607.      */    
  2608. -
  2609.     public function isTree({
  2610. -
  2611.         return is_null($this->options['treeImpl'])) true false;
  2612. -
  2613.     }
  2614. -
  2615.  
  2616. -
  2617.     public function getTemplate($template)
  2618. -
  2619.     {
  2620. -
  2621.         if isset($this->_templates[$template])) {
  2622. -
  2623.             throw new Doctrine_Table_Exception('Template ' $template ' not loaded');
  2624. -
  2625.         }
  2626. -
  2627.         
  2628. -
  2629.         return $this->_templates[$template];
  2630. -
  2631.     }
  2632. -
  2633.     
  2634. -
  2635.     public function addTemplate($templateDoctrine_Template $impl)
  2636. -
  2637.     {
  2638. -
  2639.         $this->_templates[$template$impl;
  2640. -
  2641.     }
  2642. -
  2643.     /**
  2644. -
  2645.      * returns a string representation of this object
  2646. -
  2647.      *
  2648. -
  2649.      * @return string 
  2650. -
  2651.      */
  2652. -
  2653.     public function __toString()
  2654. -
  2655.     {
  2656. -
  2657.         return Doctrine_Lib::getTableAsString($this);
  2658. -
  2659.     }
  2660. -
  2661. }
  2662. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableException.php.html deleted file mode 100644 index e90cc79f2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableException.php.html +++ /dev/null @@ -1,49 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * thrown when user tries to initialize a new instance of Doctrine_Table,
  46. -
  47.  * while there already exists an instance of that table
  48. -
  49.  *
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     public function __construct($message "Couldn't initialize table. One instance of this
  71. -
  72.                             table already exists. Always use Doctrine_Session::getTable(\$name)
  73. -
  74.                             to get on instance of a Doctrine_Table."{
  75. -
  76.         parent::__construct($message);
  77. -
  78.     }
  79. -
  80. }
  81. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepository.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepository.php.html deleted file mode 100644 index c36f9a17b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepository.php.html +++ /dev/null @@ -1,159 +0,0 @@ - -
-

Source for file Repository.php

-

Documentation is available at Repository.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Repository.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Repository
  44. -
  45.  * each record is added into Doctrine_Repository at the same time they are created,
  46. -
  47.  * loaded from the database or retrieved from the cache
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1080 $
  64. -
  65.  */
  66. -
  67. class Doctrine_Table_Repository implements CountableIteratorAggregate
  68. -
  69. {
  70. -
  71.     /**
  72. -
  73.      * @var object Doctrine_Table $table 
  74. -
  75.      */
  76. -
  77.     private $table;
  78. -
  79.     /**
  80. -
  81.      * @var array $registry 
  82. -
  83.      *  an array of all records
  84. -
  85.      *  keys representing record object identifiers
  86. -
  87.      */
  88. -
  89.     private $registry = array();
  90. -
  91.     /**
  92. -
  93.      * constructor
  94. -
  95.      *
  96. -
  97.      * @param Doctrine_Table $table 
  98. -
  99.      */
  100. -
  101.     public function __construct(Doctrine_Table $table)
  102. -
  103.     {
  104. -
  105.         $this->table = $table;
  106. -
  107.     }
  108. -
  109.     /**
  110. -
  111.      * getTable
  112. -
  113.      *
  114. -
  115.      * @return object Doctrine_Table 
  116. -
  117.      */
  118. -
  119.     public function getTable()
  120. -
  121.     {
  122. -
  123.         return $this->table;
  124. -
  125.     }
  126. -
  127.     /**
  128. -
  129.      * add
  130. -
  131.      *
  132. -
  133.      * @param Doctrine_Record $record       record to be added into registry
  134. -
  135.      * @return boolean 
  136. -
  137.      */
  138. -
  139.     public function add(Doctrine_Record $record)
  140. -
  141.     {
  142. -
  143.         $oid $record->getOID();
  144. -
  145.  
  146. -
  147.         if (isset($this->registry[$oid])) {
  148. -
  149.             return false;
  150. -
  151.         }
  152. -
  153.         $this->registry[$oid$record;
  154. -
  155.  
  156. -
  157.         return true;
  158. -
  159.     }
  160. -
  161.     /**
  162. -
  163.      * get
  164. -
  165.      * @param integer $oid 
  166. -
  167.      * @throws Doctrine_Table_Repository_Exception
  168. -
  169.      */
  170. -
  171.     public function get($oid)
  172. -
  173.     {
  174. -
  175.         if isset($this->registry[$oid])) {
  176. -
  177.             throw new Doctrine_Table_Repository_Exception("Unknown object identifier");
  178. -
  179.         }
  180. -
  181.         return $this->registry[$oid];
  182. -
  183.     }
  184. -
  185.     /**
  186. -
  187.      * count
  188. -
  189.      * Doctrine_Registry implements interface Countable
  190. -
  191.      * @return integer                      the number of records this registry has
  192. -
  193.      */
  194. -
  195.     public function count()
  196. -
  197.     {
  198. -
  199.         return count($this->registry);
  200. -
  201.     }
  202. -
  203.     /**
  204. -
  205.      * @param integer $oid                  object identifier
  206. -
  207.      * @return boolean                      whether ot not the operation was successful
  208. -
  209.      */
  210. -
  211.     public function evict($oid)
  212. -
  213.     {
  214. -
  215.         if isset($this->registry[$oid])) {
  216. -
  217.             return false;
  218. -
  219.         }
  220. -
  221.         unset($this->registry[$oid]);
  222. -
  223.         return true;
  224. -
  225.     }
  226. -
  227.     /**
  228. -
  229.      * @return integer                      number of records evicted
  230. -
  231.      */
  232. -
  233.     public function evictAll()
  234. -
  235.     {
  236. -
  237.         $evicted 0;
  238. -
  239.         foreach ($this->registry as $oid=>$record{
  240. -
  241.             if ($this->evict($oid)) {
  242. -
  243.                 $evicted++;
  244. -
  245.             }
  246. -
  247.         }
  248. -
  249.         return $evicted;
  250. -
  251.     }
  252. -
  253.     /**
  254. -
  255.      * getIterator
  256. -
  257.      * @return ArrayIterator 
  258. -
  259.      */
  260. -
  261.     public function getIterator()
  262. -
  263.     {
  264. -
  265.         return new ArrayIterator($this->registry);
  266. -
  267.     }
  268. -
  269.     /**
  270. -
  271.      * contains
  272. -
  273.      * @param integer $oid                  object identifier
  274. -
  275.      */
  276. -
  277.     public function contains($oid)
  278. -
  279.     {
  280. -
  281.         return isset($this->registry[$oid]);
  282. -
  283.     }
  284. -
  285.     /**
  286. -
  287.      * loadAll
  288. -
  289.      * @return void 
  290. -
  291.      */
  292. -
  293.     public function loadAll()
  294. -
  295.     {
  296. -
  297.         $this->table->findAll();
  298. -
  299.     }
  300. -
  301. }
  302. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepositoryException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepositoryException.php.html deleted file mode 100644 index 4f003d67b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTableRepositoryException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Table_Repository_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplate.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplate.php.html deleted file mode 100644 index 03625190b..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplate.php.html +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Source for file Template.php

-

Documentation is available at Template.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Record_Abstract');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Template
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70.     /**
  71. -
  72.      * setTable
  73. -
  74.      *
  75. -
  76.      * @param Doctrine_Table $_table     the table object this Template belongs to
  77. -
  78.      */
  79. -
  80.     public function setTable(Doctrine_Table $table)
  81. -
  82.     {
  83. -
  84.         $this->_table = $table;
  85. -
  86.     }
  87. -
  88.     /**
  89. -
  90.      * getTable
  91. -
  92.      * returns the associated table object
  93. -
  94.      *
  95. -
  96.      * @return Doctrine_Table   the associated table object
  97. -
  98.      */
  99. -
  100.     public function getTable()
  101. -
  102.     {
  103. -
  104.         return $this->_table;
  105. -
  106.     }
  107. -
  108.  
  109. -
  110.     public function setUp()
  111. -
  112.     {
  113. -
  114.  
  115. -
  116.     }
  117. -
  118.  
  119. -
  120.     public function setTableDefinition()
  121. -
  122.     {
  123. -
  124.  
  125. -
  126.     }
  127. -
  128. }
  129. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateNestedSet.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateNestedSet.php.html deleted file mode 100644 index 33d2d4857..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateNestedSet.php.html +++ /dev/null @@ -1,54 +0,0 @@ - -
-

Source for file NestedSet.php

-

Documentation is available at NestedSet.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Template_NestedSet
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision$
  58. -
  59.  * @author      Roman Borschel <roman@code-factory.org>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     private $_options;
  67. -
  68.     
  69. -
  70.     public function __construct(array $options)
  71. -
  72.     {
  73. -
  74.         $this->_options $options;
  75. -
  76.     }
  77. -
  78.     
  79. -
  80.     public function setUp()
  81. -
  82.     {
  83. -
  84.         $this->_table->setOption('treeOptions'$this->_options);
  85. -
  86.         $this->_table->setOption('treeImpl''NestedSet');
  87. -
  88.     }
  89. -
  90. }
  91. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateSearchable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateSearchable.php.html deleted file mode 100644 index afc2bdbf6..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateSearchable.php.html +++ /dev/null @@ -1,71 +0,0 @@ - -
-

Source for file Searchable.php

-

Documentation is available at Searchable.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Template_Searchable
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {     
  67. -
  68.     protected $_search;
  69. -
  70.  
  71. -
  72.     public function __construct(array $options)
  73. -
  74.     {
  75. -
  76.         $this->_search new Doctrine_Search($options);
  77. -
  78.     }
  79. -
  80.     public function setUp()
  81. -
  82.     {
  83. -
  84.         $id $this->_table->getIdentifier();
  85. -
  86.         $name $this->_table->getComponentName();
  87. -
  88.         $className $this->_search->getOption('className');
  89. -
  90.  
  91. -
  92.         if (strpos($className'%CLASS%'!== false{
  93. -
  94.             $this->_search->setOption('className'str_replace('%CLASS%'$name$className));
  95. -
  96.             $className $this->_search->getOption('className');
  97. -
  98.         }
  99. -
  100.         $this->_search->buildDefinition($this->_table);
  101. -
  102.  
  103. -
  104.         foreach ((array) $id as $column{
  105. -
  106.             $foreign[strtolower($this->_table->getComponentName('_' $column);
  107. -
  108.         }
  109. -
  110.  
  111. -
  112.         $foreign (count($foreign1$foreign current($foreign);
  113. -
  114.  
  115. -
  116.         $this->hasMany($classNamearray('local' => $id'foreign' => $foreign));
  117. -
  118.  
  119. -
  120.         $this->addListener(new Doctrine_Search_Listener($this->_search));
  121. -
  122.     }
  123. -
  124. }
  125. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateTaggable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateTaggable.php.html deleted file mode 100644 index 62cd17b72..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateTaggable.php.html +++ /dev/null @@ -1,44 +0,0 @@ - -
-

Source for file Taggable.php

-

Documentation is available at Taggable.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Template_Taggable
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @package     Doctrine
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @version     $Revision$
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70. }
  71. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateVersionable.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateVersionable.php.html deleted file mode 100644 index 125361ce8..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTemplateVersionable.php.html +++ /dev/null @@ -1,59 +0,0 @@ - -
-

Source for file Versionable.php

-

Documentation is available at Versionable.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Template_Versionable
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision$
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     protected $_auditLog;
  67. -
  68.  
  69. -
  70.     public function __construct(array $options)
  71. -
  72.     {
  73. -
  74.         $this->_auditLog new Doctrine_AuditLog($options);
  75. -
  76.     }
  77. -
  78.     public function setUp()
  79. -
  80.     {
  81. -
  82.         $this->_auditLog->setOption('table'$this->_table);
  83. -
  84.         $this->_auditLog->buildDefinition($this->_table);
  85. -
  86.  
  87. -
  88.         $this->addListener(new Doctrine_AuditLog_Listener($this->_auditLog));
  89. -
  90.     }
  91. -
  92.     public function getAuditLog()
  93. -
  94.     {
  95. -
  96.         return $this->_auditLog;
  97. -
  98.     }
  99. -
  100. }
  101. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTokenizer.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTokenizer.php.html deleted file mode 100644 index 002120ea0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTokenizer.php.html +++ /dev/null @@ -1,325 +0,0 @@ - -
-

Source for file Tokenizer.php

-

Documentation is available at Tokenizer.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: From.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Tokenizer
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     public function __construct(
  69. -
  70.     {
  71. -
  72.         
  73. -
  74.     }
  75. -
  76.     public function tokenize(
  77. -
  78.     {
  79. -
  80.  
  81. -
  82.     }
  83. -
  84.     /**
  85. -
  86.      * trims brackets
  87. -
  88.      *
  89. -
  90.      * @param string $str 
  91. -
  92.      * @param string $e1        the first bracket, usually '('
  93. -
  94.      * @param string $e2        the second bracket, usually ')'
  95. -
  96.      */
  97. -
  98.     public static function bracketTrim($str$e1 '('$e2 ')')
  99. -
  100.     {
  101. -
  102.         if (substr($str01=== $e1 && substr($str-1=== $e2{
  103. -
  104.             return substr($str1-1);
  105. -
  106.         else {
  107. -
  108.             return $str;
  109. -
  110.         }
  111. -
  112.     }
  113. -
  114.     /**
  115. -
  116.      * bracketExplode
  117. -
  118.      *
  119. -
  120.      * example:
  121. -
  122.      *
  123. -
  124.      * parameters:
  125. -
  126.      *      $str = (age < 20 AND age > 18) AND email LIKE 'John@example.com'
  127. -
  128.      *      $d = ' AND '
  129. -
  130.      *      $e1 = '('
  131. -
  132.      *      $e2 = ')'
  133. -
  134.      *
  135. -
  136.      * would return an array:
  137. -
  138.      *      array("(age < 20 AND age > 18)",
  139. -
  140.      *            "email LIKE 'John@example.com'")
  141. -
  142.      *
  143. -
  144.      * @param string $str 
  145. -
  146.      * @param string $d         the delimeter which explodes the string
  147. -
  148.      * @param string $e1        the first bracket, usually '('
  149. -
  150.      * @param string $e2        the second bracket, usually ')'
  151. -
  152.      *
  153. -
  154.      */
  155. -
  156.     public static function bracketExplode($str$d ' '$e1 '('$e2 ')')
  157. -
  158.     {
  159. -
  160.         if(is_array($d)) {
  161. -
  162.             $a preg_split('/('.implode('|'$d).')/'$str);
  163. -
  164.             $d stripslashes($d[0]);
  165. -
  166.         else {
  167. -
  168.             $a explode($d$str);
  169. -
  170.         }
  171. -
  172.  
  173. -
  174.         $i 0;
  175. -
  176.         $term array();
  177. -
  178.         foreach($a as $key=>$val{
  179. -
  180.             if (empty($term[$i])) {
  181. -
  182.                 $term[$itrim($val);
  183. -
  184.                 $s1 substr_count($term[$i]$e1);
  185. -
  186.                 $s2 substr_count($term[$i]$e2);
  187. -
  188.                 
  189. -
  190.                 if($s1 == $s2{
  191. -
  192.                     $i++;
  193. -
  194.                 }
  195. -
  196.             else {
  197. -
  198.                 $term[$i.= $d trim($val);
  199. -
  200.                 $c1 substr_count($term[$i]$e1);
  201. -
  202.                 $c2 substr_count($term[$i]$e2);
  203. -
  204.                 
  205. -
  206.                 if($c1 == $c2
  207. -
  208.                     $i++;
  209. -
  210.                 }
  211. -
  212.             }
  213. -
  214.         }
  215. -
  216.         return $term;
  217. -
  218.     }
  219. -
  220.     /**
  221. -
  222.      * quoteExplode
  223. -
  224.      *
  225. -
  226.      * example:
  227. -
  228.      *
  229. -
  230.      * parameters:
  231. -
  232.      *      $str = email LIKE 'John@example.com'
  233. -
  234.      *      $d = ' AND '
  235. -
  236.      *
  237. -
  238.      * would return an array:
  239. -
  240.      *      array("email", "LIKE", "'John@example.com'")
  241. -
  242.      *
  243. -
  244.      * @param string $str 
  245. -
  246.      * @param string $d         the delimeter which explodes the string
  247. -
  248.      */
  249. -
  250.     public static function quoteExplode($str$d ' ')
  251. -
  252.     {
  253. -
  254.         if (is_array($d)) {
  255. -
  256.             $a preg_split('/('.implode('|'$d).')/'$str);
  257. -
  258.             $d stripslashes($d[0]);
  259. -
  260.         else {
  261. -
  262.             $a explode($d$str);
  263. -
  264.         }
  265. -
  266.  
  267. -
  268.         $i 0;
  269. -
  270.         $term array();
  271. -
  272.         foreach ($a as $key => $val{
  273. -
  274.             if (empty($term[$i])) {
  275. -
  276.                 $term[$itrim($val);
  277. -
  278.  
  279. -
  280.                 if (substr_count($term[$i]"'"1)) {
  281. -
  282.                     $i++;
  283. -
  284.                 }
  285. -
  286.             else {
  287. -
  288.                 $term[$i.= $d trim($val);
  289. -
  290.  
  291. -
  292.                 if (substr_count($term[$i]"'"1)) {
  293. -
  294.                     $i++;
  295. -
  296.                 }
  297. -
  298.             }
  299. -
  300.         }
  301. -
  302.         return $term;
  303. -
  304.     }
  305. -
  306.     /**
  307. -
  308.      * sqlExplode
  309. -
  310.      *
  311. -
  312.      * explodes a string into array using custom brackets and
  313. -
  314.      * quote delimeters
  315. -
  316.      *
  317. -
  318.      *
  319. -
  320.      * example:
  321. -
  322.      *
  323. -
  324.      * parameters:
  325. -
  326.      *      $str = "(age < 20 AND age > 18) AND name LIKE 'John Doe'"
  327. -
  328.      *      $d   = ' '
  329. -
  330.      *      $e1  = '('
  331. -
  332.      *      $e2  = ')'
  333. -
  334.      *
  335. -
  336.      * would return an array:
  337. -
  338.      *      array('(age < 20 AND age > 18)',
  339. -
  340.      *            'name',
  341. -
  342.      *            'LIKE',
  343. -
  344.      *            'John Doe')
  345. -
  346.      *
  347. -
  348.      * @param string $str 
  349. -
  350.      * @param string $d         the delimeter which explodes the string
  351. -
  352.      * @param string $e1        the first bracket, usually '('
  353. -
  354.      * @param string $e2        the second bracket, usually ')'
  355. -
  356.      *
  357. -
  358.      * @return array 
  359. -
  360.      */
  361. -
  362.     public static function sqlExplode($str$d ' '$e1 '('$e2 ')')
  363. -
  364.     {
  365. -
  366.         if ($d == ' '{
  367. -
  368.             $d array(' ''\s');
  369. -
  370.         }
  371. -
  372.         if (is_array($d)) {
  373. -
  374.             $d array_map('preg_quote'$d);
  375. -
  376.  
  377. -
  378.             if (in_array(' '$d)) {
  379. -
  380.                 $d['\s';
  381. -
  382.             }
  383. -
  384.  
  385. -
  386.             $split '§(' implode('|'$d')§';
  387. -
  388.  
  389. -
  390.             $str preg_split($split$str);
  391. -
  392.             $d stripslashes($d[0]);
  393. -
  394.         else {
  395. -
  396.             $str explode($d$str);
  397. -
  398.         }
  399. -
  400.  
  401. -
  402.         $i 0;
  403. -
  404.         $term array();
  405. -
  406.  
  407. -
  408.         foreach ($str as $key => $val{
  409. -
  410.             if (empty($term[$i])) {
  411. -
  412.                 $term[$itrim($val);
  413. -
  414.  
  415. -
  416.                 $s1 substr_count($term[$i]$e1);
  417. -
  418.                 $s2 substr_count($term[$i]$e2);
  419. -
  420.  
  421. -
  422.                 if (strpos($term[$i]'('!== false{
  423. -
  424.                     if($s1 == $s2{
  425. -
  426.                         $i++;
  427. -
  428.                     }
  429. -
  430.                 else {
  431. -
  432.                     if (substr_count($term[$i]"'"1&&
  433. -
  434.                          (substr_count($term[$i]"\""1)) {
  435. -
  436.                         $i++;
  437. -
  438.                     }
  439. -
  440.                 }
  441. -
  442.             else {
  443. -
  444.                 $term[$i.= $d trim($val);
  445. -
  446.                 $c1 substr_count($term[$i]$e1);
  447. -
  448.                 $c2 substr_count($term[$i]$e2);
  449. -
  450.  
  451. -
  452.                 if (strpos($term[$i]'('!== false{
  453. -
  454.                     if($c1 == $c2{
  455. -
  456.                         $i++;
  457. -
  458.                     }
  459. -
  460.                 else {
  461. -
  462.                     if (substr_count($term[$i]"'"1&&
  463. -
  464.                          (substr_count($term[$i]"\""1)) {
  465. -
  466.                         $i++;
  467. -
  468.                     }
  469. -
  470.                 }
  471. -
  472.             }
  473. -
  474.         }
  475. -
  476.         return $term;
  477. -
  478.     }
  479. -
  480.     /**
  481. -
  482.      * clauseExplode
  483. -
  484.      *
  485. -
  486.      * explodes a string into array using custom brackets and
  487. -
  488.      * quote delimeters
  489. -
  490.      *
  491. -
  492.      *
  493. -
  494.      * example:
  495. -
  496.      *
  497. -
  498.      * parameters:
  499. -
  500.      *      $str = "(age < 20 AND age > 18) AND name LIKE 'John Doe'"
  501. -
  502.      *      $d   = ' '
  503. -
  504.      *      $e1  = '('
  505. -
  506.      *      $e2  = ')'
  507. -
  508.      *
  509. -
  510.      * would return an array:
  511. -
  512.      *      array('(age < 20 AND age > 18)',
  513. -
  514.      *            'name',
  515. -
  516.      *            'LIKE',
  517. -
  518.      *            'John Doe')
  519. -
  520.      *
  521. -
  522.      * @param string $str 
  523. -
  524.      * @param string $d         the delimeter which explodes the string
  525. -
  526.      * @param string $e1        the first bracket, usually '('
  527. -
  528.      * @param string $e2        the second bracket, usually ')'
  529. -
  530.      *
  531. -
  532.      * @return array 
  533. -
  534.      */
  535. -
  536.     public static function clauseExplode($strarray $d$e1 '('$e2 ')')
  537. -
  538.     {
  539. -
  540.         if (is_array($d)) {
  541. -
  542.             $d array_map('preg_quote'$d);
  543. -
  544.  
  545. -
  546.             if (in_array(' '$d)) {
  547. -
  548.                 $d['\s';
  549. -
  550.             }
  551. -
  552.  
  553. -
  554.             $split '§(' implode('|'$d')§';
  555. -
  556.  
  557. -
  558.             $str preg_split($split$str-1PREG_SPLIT_DELIM_CAPTURE);
  559. -
  560.         }
  561. -
  562.  
  563. -
  564.         $i 0;
  565. -
  566.         $term array();
  567. -
  568.  
  569. -
  570.         foreach ($str as $key => $val{
  571. -
  572.             if ($key 1{
  573. -
  574.                 if (isset($term[($i 1)]&& is_array($term[($i 1)])) {
  575. -
  576.                     $term[($i 1)array($term[($i 1)]$val);
  577. -
  578.                 }
  579. -
  580.                 continue;
  581. -
  582.             }
  583. -
  584.             if (empty($term[$i])) {
  585. -
  586.                 $term[$i$val;
  587. -
  588.             else {
  589. -
  590.                 $term[$i.= $str[($key 1)$val;
  591. -
  592.             }
  593. -
  594.  
  595. -
  596.             $c1 substr_count($term[$i]$e1);
  597. -
  598.             $c2 substr_count($term[$i]$e2);
  599. -
  600.  
  601. -
  602.             if (strpos($term[$i]'('!== false{
  603. -
  604.                 if($c1 == $c2{
  605. -
  606.                     $i++;
  607. -
  608.                 }
  609. -
  610.             else {
  611. -
  612.                 if (substr_count($term[$i]"'"1&&
  613. -
  614.                      (substr_count($term[$i]"\""1)) {
  615. -
  616.                     $i++;
  617. -
  618.                 }
  619. -
  620.             }
  621. -
  622.         }
  623. -
  624.         $term[$i 1array($term[$i 1]'');
  625. -
  626.  
  627. -
  628.         return $term;
  629. -
  630.     }
  631. -
  632. }
  633. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransaction.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransaction.php.html deleted file mode 100644 index 21dc4069f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransaction.php.html +++ /dev/null @@ -1,531 +0,0 @@ - -
-

Source for file Transaction.php

-

Documentation is available at Transaction.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Transaction.php 2268 2007-08-24 21:43:50Z jackbravo $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Transaction
  46. -
  47.  * Handles transaction savepoint and isolation abstraction
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @package     Doctrine
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision: 2268 $
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72.     /**
  73. -
  74.      * Doctrine_Transaction is in sleep state when it has no active transactions
  75. -
  76.      */
  77. -
  78.     const STATE_SLEEP       = 0;
  79. -
  80.     /**
  81. -
  82.      * Doctrine_Transaction is in active state when it has one active transaction
  83. -
  84.      */
  85. -
  86.     const STATE_ACTIVE      = 1;
  87. -
  88.     /**
  89. -
  90.      * Doctrine_Transaction is in busy state when it has multiple active transactions
  91. -
  92.      */
  93. -
  94.     const STATE_BUSY        = 2;
  95. -
  96.     /**
  97. -
  98.      * @var integer $transactionLevel      the nesting level of transactions, used by transaction methods
  99. -
  100.      */
  101. -
  102.     protected $transactionLevel  = 0;
  103. -
  104.     /**
  105. -
  106.      * @var array $invalid                  an array containing all invalid records within this transaction
  107. -
  108.      */
  109. -
  110.     protected $invalid          = array();
  111. -
  112.     /**
  113. -
  114.      * @var array $delete                   two dimensional pending delete list, the records in
  115. -
  116.      *                                       this list will be deleted when transaction is committed
  117. -
  118.      */
  119. -
  120.     protected $delete           = array();
  121. -
  122.     /**
  123. -
  124.      * @var array $savepoints               an array containing all savepoints
  125. -
  126.      */
  127. -
  128.     protected $savePoints       = array();
  129. -
  130.     /**
  131. -
  132.      * @var array $_collections             an array of Doctrine_Collection objects that were affected during the Transaction
  133. -
  134.      */
  135. -
  136.     protected $_collections     = array();
  137. -
  138.  
  139. -
  140.     /**
  141. -
  142.      * addCollection
  143. -
  144.      * adds a collection in the internal array of collections
  145. -
  146.      *
  147. -
  148.      * at the end of each commit this array is looped over and
  149. -
  150.      * of every collection Doctrine then takes a snapshot in order
  151. -
  152.      * to keep the collections up to date with the database
  153. -
  154.      *
  155. -
  156.      * @param Doctrine_Collection $coll     a collection to be added
  157. -
  158.      * @return Doctrine_Transaction         this object
  159. -
  160.      */
  161. -
  162.     public function addCollection(Doctrine_Collection $coll)
  163. -
  164.     {
  165. -
  166.         $this->_collections[$coll;
  167. -
  168.  
  169. -
  170.         return $this;
  171. -
  172.     }
  173. -
  174.     /**
  175. -
  176.      * getState
  177. -
  178.      * returns the state of this connection
  179. -
  180.      *
  181. -
  182.      * @see Doctrine_Connection_Transaction::STATE_* constants
  183. -
  184.      * @return integer          the connection state
  185. -
  186.      */
  187. -
  188.     public function getState()
  189. -
  190.     {
  191. -
  192.         switch ($this->transactionLevel{
  193. -
  194.             case 0:
  195. -
  196.                 return Doctrine_Transaction::STATE_SLEEP;
  197. -
  198.                 break;
  199. -
  200.             case 1:
  201. -
  202.                 return Doctrine_Transaction::STATE_ACTIVE;
  203. -
  204.                 break;
  205. -
  206.             default:
  207. -
  208.                 return Doctrine_Transaction::STATE_BUSY;
  209. -
  210.         }
  211. -
  212.     }
  213. -
  214.  
  215. -
  216.     /**
  217. -
  218.      * addDelete
  219. -
  220.      * adds record into pending delete list
  221. -
  222.      *
  223. -
  224.      * @param Doctrine_Record $record       a record to be added
  225. -
  226.      * @return void 
  227. -
  228.      */
  229. -
  230.     public function addDelete(Doctrine_Record $record)
  231. -
  232.     {
  233. -
  234.         $name $record->getTable()->getComponentName();
  235. -
  236.         $this->delete[$name][$record;
  237. -
  238.     }
  239. -
  240.  
  241. -
  242.     /**
  243. -
  244.      * addInvalid
  245. -
  246.      * adds record into invalid records list
  247. -
  248.      *
  249. -
  250.      * @param Doctrine_Record $record 
  251. -
  252.      * @return boolean        false if record already existed in invalid records list,
  253. -
  254.      *                         otherwise true
  255. -
  256.      */
  257. -
  258.     public function addInvalid(Doctrine_Record $record)
  259. -
  260.     {
  261. -
  262.         if (in_array($record$this->invalidtrue)) {
  263. -
  264.             return false;
  265. -
  266.         }
  267. -
  268.         $this->invalid[$record;
  269. -
  270.         return true;
  271. -
  272.     }
  273. -
  274.  
  275. -
  276.     /**
  277. -
  278.      * returns the pending delete list
  279. -
  280.      *
  281. -
  282.      * @return array 
  283. -
  284.      */
  285. -
  286.     public function getDeletes()
  287. -
  288.     {
  289. -
  290.         return $this->delete;
  291. -
  292.     }
  293. -
  294.  
  295. -
  296.     /**
  297. -
  298.      * bulkDelete
  299. -
  300.      * deletes all records from the pending delete list
  301. -
  302.      *
  303. -
  304.      * @return void 
  305. -
  306.      */
  307. -
  308.     public function bulkDelete()
  309. -
  310.     {
  311. -
  312.  
  313. -
  314.         foreach ($this->delete as $name => $deletes{
  315. -
  316.             $record false;
  317. -
  318.             $ids    array();
  319. -
  320.  
  321. -
  322.             if (is_array($deletes[count($deletes)-1]->getTable()->getIdentifier())) {
  323. -
  324.                 if (count($deletes0{
  325. -
  326.                     $query 'DELETE FROM '
  327. -
  328.                            . $this->conn->quoteIdentifier($deletes[0]->getTable()->getTableName())
  329. -
  330.                            . ' WHERE ';
  331. -
  332.     
  333. -
  334.                     $params array();
  335. -
  336.                     $cond array();
  337. -
  338.                     foreach ($deletes as $k => $record{
  339. -
  340.                         $ids $record->identifier();
  341. -
  342.                         $tmp array();
  343. -
  344.                         foreach (array_keys($idsas $id){
  345. -
  346.                             $tmp[$id ' = ? ';
  347. -
  348.                         }
  349. -
  350.                         $params array_merge($paramsarray_values($ids));
  351. -
  352.                         $cond['(' implode(' AND '$tmp')';
  353. -
  354.                     }
  355. -
  356.                     $query .= implode(' OR '$cond);
  357. -
  358.  
  359. -
  360.                     $this->conn->execute($query$params);
  361. -
  362.                 }
  363. -
  364.             else {
  365. -
  366.                 foreach ($deletes as $k => $record{
  367. -
  368.                     $ids[$record->getIncremented();
  369. -
  370.                 }
  371. -
  372.                 if ($record instanceof Doctrine_Record{
  373. -
  374.                     $params substr(str_repeat('?, 'count($ids))0-2);
  375. -
  376.     
  377. -
  378.                     $query 'DELETE FROM '
  379. -
  380.                            . $this->conn->quoteIdentifier($record->getTable()->getTableName())
  381. -
  382.                            . ' WHERE '
  383. -
  384.                            . $record->getTable()->getIdentifier()
  385. -
  386.                            . ' IN(' $params ')';
  387. -
  388.         
  389. -
  390.                     $this->conn->execute($query$ids);
  391. -
  392.                 }
  393. -
  394.             }
  395. -
  396.  
  397. -
  398.         }
  399. -
  400.         $this->delete = array();
  401. -
  402.     }
  403. -
  404.     /**
  405. -
  406.      * getTransactionLevel
  407. -
  408.      * get the current transaction nesting level
  409. -
  410.      *
  411. -
  412.      * @return integer 
  413. -
  414.      */
  415. -
  416.     public function getTransactionLevel()
  417. -
  418.     {
  419. -
  420.         return $this->transactionLevel;
  421. -
  422.     }
  423. -
  424.     /**
  425. -
  426.      * getTransactionLevel
  427. -
  428.      * set the current transaction nesting level
  429. -
  430.      *
  431. -
  432.      * @return Doctrine_Transaction     this object
  433. -
  434.      */
  435. -
  436.     public function setTransactionLevel($level)
  437. -
  438.     {
  439. -
  440.         $this->transactionLevel = $level;
  441. -
  442.  
  443. -
  444.         return $this;
  445. -
  446.     }
  447. -
  448.     /**
  449. -
  450.      * beginTransaction
  451. -
  452.      * Start a transaction or set a savepoint.
  453. -
  454.      *
  455. -
  456.      * if trying to set a savepoint and there is no active transaction
  457. -
  458.      * a new transaction is being started
  459. -
  460.      *
  461. -
  462.      * Listeners: onPreTransactionBegin, onTransactionBegin
  463. -
  464.      *
  465. -
  466.      * @param string $savepoint                 name of a savepoint to set
  467. -
  468.      * @throws Doctrine_Transaction_Exception   if the transaction fails at database level
  469. -
  470.      * @return integer                          current transaction nesting level
  471. -
  472.      */
  473. -
  474.     public function beginTransaction($savepoint null)
  475. -
  476.     {
  477. -
  478.         $this->conn->connect();
  479. -
  480.         
  481. -
  482.         $listener $this->conn->getAttribute(Doctrine::ATTR_LISTENER);
  483. -
  484.  
  485. -
  486.         if is_null($savepoint)) {
  487. -
  488.             $this->savePoints[$savepoint;
  489. -
  490.  
  491. -
  492.             $event new Doctrine_Event($thisDoctrine_Event::SAVEPOINT_CREATE);
  493. -
  494.  
  495. -
  496.             $listener->preSavepointCreate($event);
  497. -
  498.  
  499. -
  500.             if $event->skipOperation{
  501. -
  502.                 $this->createSavePoint($savepoint);
  503. -
  504.             }
  505. -
  506.  
  507. -
  508.             $listener->postSavepointCreate($event);
  509. -
  510.         else {
  511. -
  512.             if ($this->transactionLevel == 0{
  513. -
  514.                 $event new Doctrine_Event($thisDoctrine_Event::TX_BEGIN);
  515. -
  516.  
  517. -
  518.                 $listener->preTransactionBegin($event);
  519. -
  520.  
  521. -
  522.                 if $event->skipOperation{
  523. -
  524.                     try {
  525. -
  526.                         $this->conn->getDbh()->beginTransaction();
  527. -
  528.                     catch(Exception $e{
  529. -
  530.                         throw new Doctrine_Transaction_Exception($e->getMessage());
  531. -
  532.                     }
  533. -
  534.                 }
  535. -
  536.                 $listener->postTransactionBegin($event);
  537. -
  538.             }
  539. -
  540.         }
  541. -
  542.  
  543. -
  544.         $level = ++$this->transactionLevel;
  545. -
  546.  
  547. -
  548.         return $level;
  549. -
  550.     }
  551. -
  552.     /**
  553. -
  554.      * commit
  555. -
  556.      * Commit the database changes done during a transaction that is in
  557. -
  558.      * progress or release a savepoint. This function may only be called when
  559. -
  560.      * auto-committing is disabled, otherwise it will fail.
  561. -
  562.      *
  563. -
  564.      * Listeners: preTransactionCommit, postTransactionCommit
  565. -
  566.      *
  567. -
  568.      * @param string $savepoint                 name of a savepoint to release
  569. -
  570.      * @throws Doctrine_Transaction_Exception   if the transaction fails at database level
  571. -
  572.      * @throws Doctrine_Validator_Exception     if the transaction fails due to record validations
  573. -
  574.      * @return boolean                          false if commit couldn't be performed, true otherwise
  575. -
  576.      */
  577. -
  578.     public function commit($savepoint null)
  579. -
  580.     {
  581. -
  582.         $this->conn->connect();
  583. -
  584.  
  585. -
  586.         if ($this->transactionLevel == 0{
  587. -
  588.             return false;
  589. -
  590.         }
  591. -
  592.  
  593. -
  594.         $listener $this->conn->getAttribute(Doctrine::ATTR_LISTENER);
  595. -
  596.  
  597. -
  598.         if is_null($savepoint)) {
  599. -
  600.             $this->transactionLevel -= $this->removeSavePoints($savepoint);
  601. -
  602.  
  603. -
  604.             $event new Doctrine_Event($thisDoctrine_Event::SAVEPOINT_COMMIT);
  605. -
  606.  
  607. -
  608.             $listener->preSavepointCommit($event);
  609. -
  610.  
  611. -
  612.             if $event->skipOperation{
  613. -
  614.                 $this->releaseSavePoint($savepoint);
  615. -
  616.             }
  617. -
  618.  
  619. -
  620.             $listener->postSavepointCommit($event);
  621. -
  622.         else {
  623. -
  624.  
  625. -
  626.             if ($this->transactionLevel == 1{
  627. -
  628.                 $event new Doctrine_Event($thisDoctrine_Event::TX_COMMIT);
  629. -
  630.                 
  631. -
  632.                 $listener->preTransactionCommit($event);
  633. -
  634.  
  635. -
  636.                 if $event->skipOperation{
  637. -
  638.                     try {
  639. -
  640.                         $this->bulkDelete();
  641. -
  642.  
  643. -
  644.                     catch(Exception $e{
  645. -
  646.                         $this->rollback();
  647. -
  648.     
  649. -
  650.                         throw new Doctrine_Transaction_Exception($e->getMessage());
  651. -
  652.                     }
  653. -
  654.                     if empty($this->invalid)) {
  655. -
  656.                         $this->rollback();
  657. -
  658.     
  659. -
  660.                         $tmp $this->invalid;
  661. -
  662.                         $this->invalid = array();
  663. -
  664.     
  665. -
  666.                         throw new Doctrine_Validator_Exception($tmp);
  667. -
  668.                     }
  669. -
  670.     
  671. -
  672.                     // take snapshots of all collections used within this transaction
  673. -
  674.                     foreach ($this->_collections as $coll{
  675. -
  676.                         $coll->takeSnapshot();
  677. -
  678.                     }
  679. -
  680.                     $this->_collections = array();
  681. -
  682.                     $this->conn->getDbh()->commit();
  683. -
  684.     
  685. -
  686.                     //$this->conn->unitOfWork->reset();
  687. -
  688.                 }
  689. -
  690.  
  691. -
  692.                 $listener->postTransactionCommit($event);
  693. -
  694.             }
  695. -
  696.             
  697. -
  698.             $this->transactionLevel--;
  699. -
  700.         }
  701. -
  702.  
  703. -
  704.         return true;
  705. -
  706.     }
  707. -
  708.  
  709. -
  710.     /**
  711. -
  712.      * rollback
  713. -
  714.      * Cancel any database changes done during a transaction or since a specific
  715. -
  716.      * savepoint that is in progress. This function may only be called when
  717. -
  718.      * auto-committing is disabled, otherwise it will fail. Therefore, a new
  719. -
  720.      * transaction is implicitly started after canceling the pending changes.
  721. -
  722.      *
  723. -
  724.      * this method can be listened with onPreTransactionRollback and onTransactionRollback
  725. -
  726.      * eventlistener methods
  727. -
  728.      *
  729. -
  730.      * @param string $savepoint                 name of a savepoint to rollback to
  731. -
  732.      * @throws Doctrine_Transaction_Exception   if the rollback operation fails at database level
  733. -
  734.      * @return boolean                          false if rollback couldn't be performed, true otherwise
  735. -
  736.      */
  737. -
  738.     public function rollback($savepoint null)
  739. -
  740.     {
  741. -
  742.         $this->conn->connect();
  743. -
  744.  
  745. -
  746.         if ($this->transactionLevel == 0{
  747. -
  748.             return false;
  749. -
  750.         }
  751. -
  752.  
  753. -
  754.         $listener $this->conn->getAttribute(Doctrine::ATTR_LISTENER);
  755. -
  756.  
  757. -
  758.         if is_null($savepoint)) {
  759. -
  760.             $this->transactionLevel -= $this->removeSavePoints($savepoint);
  761. -
  762.  
  763. -
  764.             $event new Doctrine_Event($thisDoctrine_Event::SAVEPOINT_ROLLBACK);
  765. -
  766.  
  767. -
  768.             $listener->preSavepointRollback($event);
  769. -
  770.             
  771. -
  772.             if $event->skipOperation{
  773. -
  774.                 $this->rollbackSavePoint($savepoint);
  775. -
  776.             }
  777. -
  778.  
  779. -
  780.             $listener->postSavepointRollback($event);
  781. -
  782.         else {
  783. -
  784.             $event new Doctrine_Event($thisDoctrine_Event::TX_ROLLBACK);
  785. -
  786.     
  787. -
  788.             $listener->preTransactionRollback($event);
  789. -
  790.             
  791. -
  792.             if $event->skipOperation{
  793. -
  794.                 $this->deteles array();
  795. -
  796.  
  797. -
  798.                 $this->transactionLevel = 0;
  799. -
  800.                 try {
  801. -
  802.                     $this->conn->getDbh()->rollback();
  803. -
  804.                 catch (Exception $e{
  805. -
  806.                     throw new Doctrine_Transaction_Exception($e->getMessage());
  807. -
  808.                 }
  809. -
  810.             }
  811. -
  812.  
  813. -
  814.             $listener->postTransactionRollback($event);
  815. -
  816.         }
  817. -
  818.  
  819. -
  820.         return true;
  821. -
  822.     }
  823. -
  824.  
  825. -
  826.     /**
  827. -
  828.      * releaseSavePoint
  829. -
  830.      * creates a new savepoint
  831. -
  832.      *
  833. -
  834.      * @param string $savepoint     name of a savepoint to create
  835. -
  836.      * @return void 
  837. -
  838.      */
  839. -
  840.     protected function createSavePoint($savepoint)
  841. -
  842.     {
  843. -
  844.         throw new Doctrine_Transaction_Exception('Savepoints not supported by this driver.');
  845. -
  846.     }
  847. -
  848.  
  849. -
  850.     /**
  851. -
  852.      * releaseSavePoint
  853. -
  854.      * releases given savepoint
  855. -
  856.      *
  857. -
  858.      * @param string $savepoint     name of a savepoint to release
  859. -
  860.      * @return void 
  861. -
  862.      */
  863. -
  864.     protected function releaseSavePoint($savepoint)
  865. -
  866.     {
  867. -
  868.         throw new Doctrine_Transaction_Exception('Savepoints not supported by this driver.');
  869. -
  870.     }
  871. -
  872.  
  873. -
  874.     /**
  875. -
  876.      * rollbackSavePoint
  877. -
  878.      * releases given savepoint
  879. -
  880.      *
  881. -
  882.      * @param string $savepoint     name of a savepoint to rollback to
  883. -
  884.      * @return void 
  885. -
  886.      */
  887. -
  888.     protected function rollbackSavePoint($savepoint)
  889. -
  890.     {
  891. -
  892.         throw new Doctrine_Transaction_Exception('Savepoints not supported by this driver.');
  893. -
  894.     }
  895. -
  896.  
  897. -
  898.     /**
  899. -
  900.      * removeSavePoints
  901. -
  902.      * removes a savepoint from the internal savePoints array of this transaction object
  903. -
  904.      * and all its children savepoints
  905. -
  906.      *
  907. -
  908.      * @param sring $savepoint      name of the savepoint to remove
  909. -
  910.      * @return integer              removed savepoints
  911. -
  912.      */
  913. -
  914.     private function removeSavePoints($savepoint)
  915. -
  916.     {
  917. -
  918.         $this->savePoints = array_values($this->savePoints);
  919. -
  920.  
  921. -
  922.         $found false;
  923. -
  924.         $i 0;
  925. -
  926.  
  927. -
  928.         foreach ($this->savePoints as $key => $sp{
  929. -
  930.             if $found{
  931. -
  932.                 if ($sp === $savepoint{
  933. -
  934.                     $found true;
  935. -
  936.                 }
  937. -
  938.             }
  939. -
  940.             if ($found{
  941. -
  942.                 $i++;
  943. -
  944.                 unset($this->savePoints[$key]);
  945. -
  946.             }
  947. -
  948.         }
  949. -
  950.  
  951. -
  952.         return $i;
  953. -
  954.     }
  955. -
  956.  
  957. -
  958.     /**
  959. -
  960.      * setIsolation
  961. -
  962.      *
  963. -
  964.      * Set the transacton isolation level.
  965. -
  966.      * (implemented by the connection drivers)
  967. -
  968.      *
  969. -
  970.      * example:
  971. -
  972.      *
  973. -
  974.      * <code>
  975. -
  976.      * $tx->setIsolation('READ UNCOMMITTED');
  977. -
  978.      * </code>
  979. -
  980.      *
  981. -
  982.      * @param   string  standard isolation level
  983. -
  984.      *                   READ UNCOMMITTED (allows dirty reads)
  985. -
  986.      *                   READ COMMITTED (prevents dirty reads)
  987. -
  988.      *                   REPEATABLE READ (prevents nonrepeatable reads)
  989. -
  990.      *                   SERIALIZABLE (prevents phantom reads)
  991. -
  992.      *
  993. -
  994.      * @throws Doctrine_Transaction_Exception           if the feature is not supported by the driver
  995. -
  996.      * @throws PDOException                             if something fails at the PDO level
  997. -
  998.      * @return void 
  999. -
  1000.      */
  1001. -
  1002.     public function setIsolation($isolation)
  1003. -
  1004.     {
  1005. -
  1006.         throw new Doctrine_Transaction_Exception('Transaction isolation levels not supported by this driver.');
  1007. -
  1008.     }
  1009. -
  1010.  
  1011. -
  1012.     /**
  1013. -
  1014.      * getTransactionIsolation
  1015. -
  1016.      *
  1017. -
  1018.      * fetches the current session transaction isolation level
  1019. -
  1020.      *
  1021. -
  1022.      * note: some drivers may support setting the transaction isolation level
  1023. -
  1024.      * but not fetching it
  1025. -
  1026.      *
  1027. -
  1028.      * @throws Doctrine_Transaction_Exception           if the feature is not supported by the driver
  1029. -
  1030.      * @throws PDOException                             if something fails at the PDO level
  1031. -
  1032.      * @return string                                   returns the current session transaction isolation level
  1033. -
  1034.      */
  1035. -
  1036.     public function getIsolation()
  1037. -
  1038.     {
  1039. -
  1040.         throw new Doctrine_Transaction_Exception('Fetching transaction isolation level not supported by this driver.');
  1041. -
  1042.     }
  1043. -
  1044. }
  1045. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionException.php.html deleted file mode 100644 index 7a4d7135c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Transaction_Exception
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionFirebird.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionFirebird.php.html deleted file mode 100644 index 9dd5bccc2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionFirebird.php.html +++ /dev/null @@ -1,145 +0,0 @@ - -
-

Source for file Firebird.php

-

Documentation is available at Firebird.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Firebird.php 1269 2007-04-18 08:59:10Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1269 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * createSavepoint
  71. -
  72.      * creates a new savepoint
  73. -
  74.      *
  75. -
  76.      * @param string $savepoint     name of a savepoint to set
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     protected function createSavePoint($savepoint)
  83. -
  84.     {
  85. -
  86.         $query 'SAVEPOINT ' $savepoint;
  87. -
  88.  
  89. -
  90.         return $this->conn->execute($query);
  91. -
  92.     }
  93. -
  94.     /**
  95. -
  96.      * releaseSavePoint
  97. -
  98.      * releases given savepoint
  99. -
  100.      *
  101. -
  102.      * @param string $savepoint     name of a savepoint to release
  103. -
  104.      * @return void 
  105. -
  106.      */
  107. -
  108.     protected function releaseSavePoint($savepoint)
  109. -
  110.     {
  111. -
  112.         $query 'RELEASE SAVEPOINT ' $savepoint;
  113. -
  114.  
  115. -
  116.         return $this->conn->execute($query);
  117. -
  118.     }
  119. -
  120.     /**
  121. -
  122.      * rollbackSavePoint
  123. -
  124.      * releases given savepoint
  125. -
  126.      *
  127. -
  128.      * @param string $savepoint     name of a savepoint to rollback to
  129. -
  130.      * @return void 
  131. -
  132.      */
  133. -
  134.     protected function rollbackSavePoint($savepoint)
  135. -
  136.     {
  137. -
  138.         $query 'ROLLBACK TO SAVEPOINT '.$savepoint;
  139. -
  140.  
  141. -
  142.         return $this->conn->execute($query);
  143. -
  144.     }
  145. -
  146.     /**
  147. -
  148.      * Set the transacton isolation level.
  149. -
  150.      *
  151. -
  152.      * @param   string  standard isolation level (SQL-92)
  153. -
  154.      *                   READ UNCOMMITTED (allows dirty reads)
  155. -
  156.      *                   READ COMMITTED (prevents dirty reads)
  157. -
  158.      *                   REPEATABLE READ (prevents nonrepeatable reads)
  159. -
  160.      *                   SERIALIZABLE (prevents phantom reads)
  161. -
  162.      *
  163. -
  164.      * @param   array some transaction options:
  165. -
  166.      *                   'wait' => 'WAIT' | 'NO WAIT'
  167. -
  168.      *                   'rw'   => 'READ WRITE' | 'READ ONLY'
  169. -
  170.      *
  171. -
  172.      * @throws PDOException                         if something fails at the PDO level
  173. -
  174.      * @throws Doctrine_Transaction_Exception       if using unknown isolation level or unknown wait option
  175. -
  176.      * @return void 
  177. -
  178.      */
  179. -
  180.     public function setIsolation($isolation$options array()) {
  181. -
  182.         switch ($isolation{
  183. -
  184.             case 'READ UNCOMMITTED':
  185. -
  186.                 $nativeIsolation 'READ COMMITTED RECORD_VERSION';
  187. -
  188.                 break;
  189. -
  190.             case 'READ COMMITTED':
  191. -
  192.                 $nativeIsolation 'READ COMMITTED NO RECORD_VERSION';
  193. -
  194.                 break;
  195. -
  196.             case 'REPEATABLE READ':
  197. -
  198.                 $nativeIsolation 'SNAPSHOT';
  199. -
  200.                 break;
  201. -
  202.             case 'SERIALIZABLE':
  203. -
  204.                 $nativeIsolation 'SNAPSHOT TABLE STABILITY';
  205. -
  206.                 break;
  207. -
  208.             default:
  209. -
  210.                 throw new Doctrine_Transaction_Exception('isolation level is not supported: ' $isolation);
  211. -
  212.         }
  213. -
  214.  
  215. -
  216.         $rw $wait '';
  217. -
  218.  
  219. -
  220.         if (isset($options['wait'])) {
  221. -
  222.             switch ($options['wait']{
  223. -
  224.                 case 'WAIT':
  225. -
  226.                 case 'NO WAIT':
  227. -
  228.                     $wait ' ' $options['wait'];
  229. -
  230.                 break;
  231. -
  232.                 default:
  233. -
  234.                     throw new Doctrine_Transaction_Exception('wait option is not supported: ' $options['wait']);
  235. -
  236.             }
  237. -
  238.         }
  239. -
  240.  
  241. -
  242.         if (isset($options['rw'])) {
  243. -
  244.             switch ($options['rw']{
  245. -
  246.                 case 'READ ONLY':
  247. -
  248.                 case 'READ WRITE':
  249. -
  250.                     $rw ' ' $options['rw'];
  251. -
  252.                     break;
  253. -
  254.                 default:
  255. -
  256.                     throw new Doctrine_Transaction_Exception('wait option is not supported: ' $options['rw']);
  257. -
  258.             }
  259. -
  260.         }
  261. -
  262.  
  263. -
  264.         $query 'SET TRANSACTION' $rw $wait .' ISOLATION LEVEL ' $nativeIsolation;
  265. -
  266.  
  267. -
  268.         $this->conn->execute($query);
  269. -
  270.     }
  271. -
  272. }
  273. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionInformix.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionInformix.php.html deleted file mode 100644 index c86f70101..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionInformix.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Informix.php

-

Documentation is available at Informix.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Informix.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMock.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMock.php.html deleted file mode 100644 index 196aef9f7..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMock.php.html +++ /dev/null @@ -1,45 +0,0 @@ - -
-

Source for file Mock.php

-

Documentation is available at Mock.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Transaction_Mock
  46. -
  47.  * This class is used for testing purposes
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @package     Doctrine
  58. -
  59.  * @category    Object Relational Mapping
  60. -
  61.  * @link        www.phpdoctrine.com
  62. -
  63.  * @since       1.0
  64. -
  65.  * @version     $Revision$
  66. -
  67.  */
  68. -
  69. -
  70. {
  71. -
  72. }
  73. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMssql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMssql.php.html deleted file mode 100644 index ddeb09a44..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMssql.php.html +++ /dev/null @@ -1,76 +0,0 @@ - -
-

Source for file Mssql.php

-

Documentation is available at Mssql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mssql.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Set the transacton isolation level.
  71. -
  72.      *
  73. -
  74.      * @param   string  standard isolation level (SQL-92)
  75. -
  76.      *       portable modes:
  77. -
  78.      *                   READ UNCOMMITTED (allows dirty reads)
  79. -
  80.      *                   READ COMMITTED (prevents dirty reads)
  81. -
  82.      *                   REPEATABLE READ (prevents nonrepeatable reads)
  83. -
  84.      *                   SERIALIZABLE (prevents phantom reads)
  85. -
  86.      *       mssql specific modes:
  87. -
  88.      *                   SNAPSHOT
  89. -
  90.      *
  91. -
  92.      * @link http://msdn2.microsoft.com/en-us/library/ms173763.aspx
  93. -
  94.      * @throws PDOException                         if something fails at the PDO level
  95. -
  96.      * @throws Doctrine_Transaction_Exception       if using unknown isolation level or unknown wait option
  97. -
  98.      * @return void 
  99. -
  100.      */
  101. -
  102.     public function setIsolation($isolation$options array()) {
  103. -
  104.         switch ($isolation{
  105. -
  106.             case 'READ UNCOMMITTED':
  107. -
  108.             case 'READ COMMITTED':
  109. -
  110.             case 'REPEATABLE READ':
  111. -
  112.             case 'SERIALIZABLE':
  113. -
  114.             case 'SNAPSHOT':
  115. -
  116.                 break;
  117. -
  118.             default:
  119. -
  120.                 throw new Doctrine_Transaction_Exception('isolation level is not supported: ' $isolation);
  121. -
  122.         }
  123. -
  124.  
  125. -
  126.         $query 'SET TRANSACTION ISOLATION LEVEL ' $isolation;
  127. -
  128.  
  129. -
  130.         $this->conn->execute($query);
  131. -
  132.     }
  133. -
  134. }
  135. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMysql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMysql.php.html deleted file mode 100644 index 502490897..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionMysql.php.html +++ /dev/null @@ -1,120 +0,0 @@ - -
-

Source for file Mysql.php

-

Documentation is available at Mysql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Mysql.php 1269 2007-04-18 08:59:10Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1269 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * createSavepoint
  71. -
  72.      * creates a new savepoint
  73. -
  74.      *
  75. -
  76.      * @param string $savepoint     name of a savepoint to set
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     protected function createSavePoint($savepoint)
  83. -
  84.     {
  85. -
  86.         $query 'SAVEPOINT ' $savepoint;
  87. -
  88.  
  89. -
  90.         return $this->conn->execute($query);
  91. -
  92.     }
  93. -
  94.     /**
  95. -
  96.      * releaseSavePoint
  97. -
  98.      * releases given savepoint
  99. -
  100.      *
  101. -
  102.      * @param string $savepoint     name of a savepoint to release
  103. -
  104.      * @return void 
  105. -
  106.      */
  107. -
  108.     protected function releaseSavePoint($savepoint)
  109. -
  110.     {
  111. -
  112.         $query 'RELEASE SAVEPOINT ' $savepoint;
  113. -
  114.  
  115. -
  116.         return $this->conn->execute($query);
  117. -
  118.     }
  119. -
  120.     /**
  121. -
  122.      * rollbackSavePoint
  123. -
  124.      * releases given savepoint
  125. -
  126.      *
  127. -
  128.      * @param string $savepoint     name of a savepoint to rollback to
  129. -
  130.      * @return void 
  131. -
  132.      */
  133. -
  134.     protected function rollbackSavePoint($savepoint)
  135. -
  136.     {
  137. -
  138.         $query 'ROLLBACK TO SAVEPOINT ' $savepoint;
  139. -
  140.  
  141. -
  142.         return $this->conn->execute($query);
  143. -
  144.     }
  145. -
  146.     /**
  147. -
  148.      * Set the transacton isolation level.
  149. -
  150.      *
  151. -
  152.      * @param   string  standard isolation level
  153. -
  154.      *                   READ UNCOMMITTED (allows dirty reads)
  155. -
  156.      *                   READ COMMITTED (prevents dirty reads)
  157. -
  158.      *                   REPEATABLE READ (prevents nonrepeatable reads)
  159. -
  160.      *                   SERIALIZABLE (prevents phantom reads)
  161. -
  162.      *
  163. -
  164.      * @throws Doctrine_Transaction_Exception           if using unknown isolation level
  165. -
  166.      * @throws PDOException                             if something fails at the PDO level
  167. -
  168.      * @return void 
  169. -
  170.      */
  171. -
  172.     public function setIsolation($isolation)
  173. -
  174.     {
  175. -
  176.         switch ($isolation{
  177. -
  178.             case 'READ UNCOMMITTED':
  179. -
  180.             case 'READ COMMITTED':
  181. -
  182.             case 'REPEATABLE READ':
  183. -
  184.             case 'SERIALIZABLE':
  185. -
  186.                 break;
  187. -
  188.             default:
  189. -
  190.                 throw new Doctrine_Transaction_Exception('Isolation level ' $isolation ' is not supported.');
  191. -
  192.         }
  193. -
  194.  
  195. -
  196.         $query 'SET SESSION TRANSACTION ISOLATION LEVEL ' $isolation;
  197. -
  198.  
  199. -
  200.         return $this->conn->execute($query);
  201. -
  202.     }
  203. -
  204.     /**
  205. -
  206.      * getTransactionIsolation
  207. -
  208.      *
  209. -
  210.      * @return string               returns the current session transaction isolation level
  211. -
  212.      */
  213. -
  214.     public function getIsolation()
  215. -
  216.     {
  217. -
  218.         return $this->conn->fetchOne('SELECT @@tx_isolation');
  219. -
  220.     }
  221. -
  222. }
  223. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionOracle.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionOracle.php.html deleted file mode 100644 index 97af14921..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionOracle.php.html +++ /dev/null @@ -1,111 +0,0 @@ - -
-

Source for file Oracle.php

-

Documentation is available at Oracle.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Oracle.php 1119 2007-02-17 18:21:26Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1119 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * createSavepoint
  71. -
  72.      * creates a new savepoint
  73. -
  74.      *
  75. -
  76.      * @param string $savepoint     name of a savepoint to set
  77. -
  78.      * @return void 
  79. -
  80.      */
  81. -
  82.     protected function createSavePoint($savepoint)
  83. -
  84.     {
  85. -
  86.         $query 'SAVEPOINT ' $savepoint;
  87. -
  88.  
  89. -
  90.         return $this->conn->execute($query);
  91. -
  92.     }
  93. -
  94.     /**
  95. -
  96.      * releaseSavePoint
  97. -
  98.      * releases given savepoint
  99. -
  100.      *
  101. -
  102.      * @param string $savepoint     name of a savepoint to release
  103. -
  104.      * @return void 
  105. -
  106.      */
  107. -
  108.     protected function releaseSavePoint($savepoint)
  109. -
  110.     {
  111. -
  112.         // oracle doesn't support manual releasing of savepoints
  113. -
  114.         return true;
  115. -
  116.     }
  117. -
  118.     /**
  119. -
  120.      * rollbackSavePoint
  121. -
  122.      * releases given savepoint
  123. -
  124.      *
  125. -
  126.      * @param string $savepoint     name of a savepoint to rollback to
  127. -
  128.      * @return void 
  129. -
  130.      */
  131. -
  132.     protected function rollbackSavePoint($savepoint)
  133. -
  134.     {
  135. -
  136.         $query 'ROLLBACK TO SAVEPOINT ' $savepoint;
  137. -
  138.  
  139. -
  140.         return $this->conn->execute($query);
  141. -
  142.     }
  143. -
  144.     /**
  145. -
  146.      * Set the transacton isolation level.
  147. -
  148.      *
  149. -
  150.      * @param   string  standard isolation level
  151. -
  152.      *                   READ UNCOMMITTED (allows dirty reads)
  153. -
  154.      *                   READ COMMITTED (prevents dirty reads)
  155. -
  156.      *                   REPEATABLE READ (prevents nonrepeatable reads)
  157. -
  158.      *                   SERIALIZABLE (prevents phantom reads)
  159. -
  160.      * @throws PDOException                         if something fails at the PDO level
  161. -
  162.      * @throws Doctrine_Transaction_Exception       if using unknown isolation level
  163. -
  164.      * @return void 
  165. -
  166.      */
  167. -
  168.     public function setIsolation($isolation)
  169. -
  170.     {
  171. -
  172.         switch ($isolation{
  173. -
  174.             case 'READ UNCOMMITTED':
  175. -
  176.                 $isolation 'READ COMMITTED';
  177. -
  178.                 break;
  179. -
  180.             case 'READ COMMITTED':
  181. -
  182.             case 'REPEATABLE READ':
  183. -
  184.             case 'SERIALIZABLE':
  185. -
  186.                 $isolation 'SERIALIZABLE';
  187. -
  188.                 break;
  189. -
  190.             default:
  191. -
  192.                 throw new Doctrine_Transaction_Exception('Isolation level ' $isolation ' is not supported.');
  193. -
  194.         }
  195. -
  196.  
  197. -
  198.         $query 'ALTER SESSION ISOLATION LEVEL ' $isolation;
  199. -
  200.         return $this->conn->execute($query);
  201. -
  202.     }
  203. -
  204. }
  205. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionPgsql.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionPgsql.php.html deleted file mode 100644 index bdaf4a033..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionPgsql.php.html +++ /dev/null @@ -1,110 +0,0 @@ - -
-

Source for file Pgsql.php

-

Documentation is available at Pgsql.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Pgsql.php 1269 2007-04-18 08:59:10Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Paul Cooper <pgc@ucecom.com> (PEAR MDB2 Pgsql driver)
  50. -
  51.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @package     Doctrine
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1269 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * createSavepoint
  73. -
  74.      * creates a new savepoint
  75. -
  76.      *
  77. -
  78.      * @param string $savepoint     name of a savepoint to set
  79. -
  80.      * @return void 
  81. -
  82.      */
  83. -
  84.     protected function createSavePoint($savepoint)
  85. -
  86.     {
  87. -
  88.         $query 'SAVEPOINT ' $savepoint;
  89. -
  90.  
  91. -
  92.         return $this->conn->execute($query);
  93. -
  94.     }
  95. -
  96.     /**
  97. -
  98.      * releaseSavePoint
  99. -
  100.      * releases given savepoint
  101. -
  102.      *
  103. -
  104.      * @param string $savepoint     name of a savepoint to release
  105. -
  106.      * @return void 
  107. -
  108.      */
  109. -
  110.     protected function releaseSavePoint($savepoint)
  111. -
  112.     {
  113. -
  114.         $query 'RELEASE SAVEPOINT ' $savepoint;
  115. -
  116.  
  117. -
  118.         return $this->conn->execute($query);
  119. -
  120.     }
  121. -
  122.     /**
  123. -
  124.      * rollbackSavePoint
  125. -
  126.      * releases given savepoint
  127. -
  128.      *
  129. -
  130.      * @param string $savepoint     name of a savepoint to rollback to
  131. -
  132.      * @return void 
  133. -
  134.      */
  135. -
  136.     protected function rollbackSavePoint($savepoint)
  137. -
  138.     {
  139. -
  140.         $query 'ROLLBACK TO SAVEPOINT ' $savepoint;
  141. -
  142.  
  143. -
  144.         return $this->conn->execute($query);
  145. -
  146.     }
  147. -
  148.     /**
  149. -
  150.      * Set the transacton isolation level.
  151. -
  152.      *
  153. -
  154.      * @param   string  standard isolation level
  155. -
  156.      *                   READ UNCOMMITTED (allows dirty reads)
  157. -
  158.      *                   READ COMMITTED (prevents dirty reads)
  159. -
  160.      *                   REPEATABLE READ (prevents nonrepeatable reads)
  161. -
  162.      *                   SERIALIZABLE (prevents phantom reads)
  163. -
  164.      * @throws PDOException                         if something fails at the PDO level
  165. -
  166.      * @throws Doctrine_Transaction_Exception       if using unknown isolation level or unknown wait option
  167. -
  168.      * @return void 
  169. -
  170.      */
  171. -
  172.     public function setIsolation($isolation)
  173. -
  174.     {
  175. -
  176.         switch ($isolation{
  177. -
  178.             case 'READ UNCOMMITTED':
  179. -
  180.             case 'READ COMMITTED':
  181. -
  182.             case 'REPEATABLE READ':
  183. -
  184.             case 'SERIALIZABLE':
  185. -
  186.                 break;
  187. -
  188.             default:
  189. -
  190.                 throw new Doctrine_Transaction_Exception('Isolation level '.$isolation.' is not supported.');
  191. -
  192.         }
  193. -
  194.  
  195. -
  196.         $query 'SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL ' $isolation;
  197. -
  198.         return $this->conn->execute($query);
  199. -
  200.     }
  201. -
  202. }
  203. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionSqlite.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionSqlite.php.html deleted file mode 100644 index eb02a0832..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTransactionSqlite.php.html +++ /dev/null @@ -1,74 +0,0 @@ - -
-

Source for file Sqlite.php

-

Documentation is available at Sqlite.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Sqlite.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Transaction');
  42. -
  43. /**
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * Set the transacton isolation level.
  71. -
  72.      *
  73. -
  74.      * @param   string  standard isolation level
  75. -
  76.      *                   READ UNCOMMITTED (allows dirty reads)
  77. -
  78.      *                   READ COMMITTED (prevents dirty reads)
  79. -
  80.      *                   REPEATABLE READ (prevents nonrepeatable reads)
  81. -
  82.      *                   SERIALIZABLE (prevents phantom reads)
  83. -
  84.      * @throws PDOException                         if something fails at the PDO level
  85. -
  86.      * @throws Doctrine_Transaction_Exception       if using unknown isolation level
  87. -
  88.      * @return void 
  89. -
  90.      */
  91. -
  92.     public function setIsolation($isolation)
  93. -
  94.     {
  95. -
  96.         switch ($isolation{
  97. -
  98.             case 'READ UNCOMMITTED':
  99. -
  100.                 $isolation 0;
  101. -
  102.                 break;
  103. -
  104.             case 'READ COMMITTED':
  105. -
  106.             case 'REPEATABLE READ':
  107. -
  108.             case 'SERIALIZABLE':
  109. -
  110.                 $isolation 1;
  111. -
  112.                 break;
  113. -
  114.             default:
  115. -
  116.                 throw new Doctrine_Transaction_Exception('Isolation level ' $isolation 'is not supported.');
  117. -
  118.         }
  119. -
  120.  
  121. -
  122.         $query 'PRAGMA read_uncommitted = ' $isolation;
  123. -
  124.  
  125. -
  126.         return $this->conn->execute($query);
  127. -
  128.     }
  129. -
  130. }
  131. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTree.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTree.php.html deleted file mode 100644 index fe1169291..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTree.php.html +++ /dev/null @@ -1,138 +0,0 @@ - -
-

Source for file Tree.php

-

Documentation is available at Tree.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Tree.php 2097 2007-07-29 19:38:11Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */                   
  40. -
  41. /**
  42. -
  43.  * Doctrine_Tree
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 2097 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     /**
  67. -
  68.      * @param object $table   reference to associated Doctrine_Table instance
  69. -
  70.      */
  71. -
  72.     protected $table;
  73. -
  74.  
  75. -
  76.     /**
  77. -
  78.      * @param array $options 
  79. -
  80.      */
  81. -
  82.     protected $options = array();
  83. -
  84.     
  85. -
  86.     protected $_baseComponent;
  87. -
  88.  
  89. -
  90.     /**
  91. -
  92.      * constructor, creates tree with reference to table and any options
  93. -
  94.      *
  95. -
  96.      * @param object $table                     instance of Doctrine_Table
  97. -
  98.      * @param array $options                    options
  99. -
  100.      */
  101. -
  102.     public function __construct(Doctrine_Table $table$options)
  103. -
  104.     {
  105. -
  106.         $this->table = $table;
  107. -
  108.         $this->options = $options;
  109. -
  110.         $this->_baseComponent = $table->getComponentName();
  111. -
  112.         $class $this->_baseComponent;
  113. -
  114.         if ($table->getOption('inheritanceMap')) {
  115. -
  116.             $subclasses $table->getOption('subclasses');
  117. -
  118.             while (in_array($class$subclasses)) {
  119. -
  120.                 $class get_parent_class($class);
  121. -
  122.             }
  123. -
  124.             $this->_baseComponent = $class;
  125. -
  126.         }
  127. -
  128.         //echo $this->_baseComponent;
  129. -
  130.     }
  131. -
  132.  
  133. -
  134.     /**
  135. -
  136.      * Used to define table attributes required for the given implementation
  137. -
  138.      *
  139. -
  140.      * @throws Doctrine_Tree_Exception          if table attributes have not been defined
  141. -
  142.      */
  143. -
  144.     public function setTableDefinition()
  145. -
  146.     {
  147. -
  148.         throw new Doctrine_Tree_Exception('Table attributes have not been defined for this Tree implementation.');
  149. -
  150.     }
  151. -
  152.  
  153. -
  154.     /**
  155. -
  156.      * this method is used for setting up relations and attributes and should be used by specific implementations
  157. -
  158.      *
  159. -
  160.      */
  161. -
  162.     public function setUp()
  163. -
  164.     {
  165. -
  166.     }
  167. -
  168.  
  169. -
  170.     /**
  171. -
  172.      * factory method to return tree instance based upon chosen implementation
  173. -
  174.      *
  175. -
  176.      * @param object $table                     instance of Doctrine_Table
  177. -
  178.      * @param string $impName                   implementation (NestedSet, AdjacencyList, MaterializedPath)
  179. -
  180.      * @param array $options                    options
  181. -
  182.      * @return object $options                  instance of Doctrine_Node
  183. -
  184.      * @throws Doctrine_Exception               if class does not extend Doctrine_Tree
  185. -
  186.      */
  187. -
  188.     public static function factory(Doctrine_Table $table$implName$options array())
  189. -
  190.     {
  191. -
  192.         $class 'Doctrine_Tree_' $implName;
  193. -
  194.         if (!class_exists($class)) {
  195. -
  196.             throw new Doctrine_Exception('The chosen class must extend Doctrine_Tree');
  197. -
  198.         }
  199. -
  200.         return new $class($table$options);
  201. -
  202.     }
  203. -
  204.  
  205. -
  206.     /**
  207. -
  208.      * gets tree attribute value
  209. -
  210.      *        
  211. -
  212.      */     
  213. -
  214.     public function getAttribute($name)
  215. -
  216.     {
  217. -
  218.       return isset($this->options[$name]$this->options[$namenull;
  219. -
  220.     }
  221. -
  222.  
  223. -
  224.     /**
  225. -
  226.      * sets tree attribute value
  227. -
  228.      *
  229. -
  230.      * @param mixed 
  231. -
  232.      */
  233. -
  234.     public function setAttribute($name$value)
  235. -
  236.     {
  237. -
  238.       $this->options[$name$value;
  239. -
  240.     }
  241. -
  242.     
  243. -
  244.     /**
  245. -
  246.      * Returns the base tree component.
  247. -
  248.      */
  249. -
  250.     public function getBaseComponent()
  251. -
  252.     {
  253. -
  254.         return $this->_baseComponent;
  255. -
  256.     }
  257. -
  258. }
  259. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeAdjacencyList.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeAdjacencyList.php.html deleted file mode 100644 index 94593b017..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeAdjacencyList.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file AdjacencyList.php

-

Documentation is available at AdjacencyList.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: AdjacencyList.php 1716 2007-06-15 10:33:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Tree_AdjacencyList
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1716 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. abstract class Doctrine_Tree_AdjacencyList extends Doctrine_Tree implements Doctrine_Tree_Interface
  64. -
  65. {}
  66. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeException.php.html deleted file mode 100644 index 4c0043e99..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeException.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Tree_Exception
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  60. -
  61.  */
  62. -
  63. -
  64. {}
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeInterface.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeInterface.php.html deleted file mode 100644 index fa25c23f7..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeInterface.php.html +++ /dev/null @@ -1,72 +0,0 @@ - -
-

Source for file Interface.php

-

Documentation is available at Interface.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Interface.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Tree_Interface
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1080 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64.  
  65. -
  66.     /**
  67. -
  68.      * creates root node from given record or from a new record
  69. -
  70.      *
  71. -
  72.      * @param object $record                    instance of Doctrine_Record
  73. -
  74.      */
  75. -
  76.     public function createRoot(Doctrine_Record $record null);
  77. -
  78.  
  79. -
  80.     /**
  81. -
  82.      * returns root node
  83. -
  84.      *
  85. -
  86.      * @return object $record                   instance of Doctrine_Record
  87. -
  88.      */
  89. -
  90.     public function findRoot($root_id 1);
  91. -
  92.  
  93. -
  94.     /**
  95. -
  96.      * optimised method to returns iterator for traversal of the entire tree from root
  97. -
  98.      *
  99. -
  100.      * @param array $options                    options
  101. -
  102.      * @return object $iterator                 instance of Doctrine_Node_<Implementation>_PreOrderIterator
  103. -
  104.      */
  105. -
  106.     public function fetchTree($options array());
  107. -
  108.  
  109. -
  110.     /**
  111. -
  112.      * optimised method that returns iterator for traversal of the tree from the given record primary key
  113. -
  114.      *
  115. -
  116.      * @param mixed $pk                         primary key as used by table::find() to locate node to traverse tree from
  117. -
  118.      * @param array $options                    options
  119. -
  120.      * @return iterator                         instance of Doctrine_Node_<Implementation>_PreOrderIterator
  121. -
  122.      */
  123. -
  124.     public function fetchBranch($pk$options array());
  125. -
  126. }
  127. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeMaterializedPath.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeMaterializedPath.php.html deleted file mode 100644 index 83d41c5e9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeMaterializedPath.php.html +++ /dev/null @@ -1,41 +0,0 @@ - -
-

Source for file MaterializedPath.php

-

Documentation is available at MaterializedPath.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: MaterializedPath.php 1716 2007-06-15 10:33:15Z zYne $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Tree_MaterializedPath
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 1716 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {}
  65. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeNestedSet.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeNestedSet.php.html deleted file mode 100644 index 3173733b0..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineTreeNestedSet.php.html +++ /dev/null @@ -1,363 +0,0 @@ - -
-

Source for file NestedSet.php

-

Documentation is available at NestedSet.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: NestedSet.php 2230 2007-08-14 16:37:48Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Tree_NestedSet
  44. -
  45.  *
  46. -
  47.  * @package     Doctrine
  48. -
  49.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @link        www.phpdoctrine.com
  54. -
  55.  * @since       1.0
  56. -
  57.  * @version     $Revision: 2230 $
  58. -
  59.  * @author      Joe Simms <joe.simms@websites4.com>
  60. -
  61.  */
  62. -
  63. -
  64. {
  65. -
  66.     private $_baseQuery;
  67. -
  68.     private $_baseAlias = "base";
  69. -
  70.     
  71. -
  72.     /**
  73. -
  74.      * constructor, creates tree with reference to table and sets default root options
  75. -
  76.      *
  77. -
  78.      * @param object $table                     instance of Doctrine_Table
  79. -
  80.      * @param array $options                    options
  81. -
  82.      */
  83. -
  84.     public function __construct(Doctrine_Table $table$options)
  85. -
  86.     {
  87. -
  88.         // set default many root attributes
  89. -
  90.         $options['hasManyRoots'= isset($options['hasManyRoots']$options['hasManyRoots'false;
  91. -
  92.         if($options['hasManyRoots'])
  93. -
  94.             $options['rootColumnName'= isset($options['rootColumnName']$options['rootColumnName''root_id';
  95. -
  96.   
  97. -
  98.         parent::__construct($table$options);
  99. -
  100.     }
  101. -
  102.     
  103. -
  104.     /**
  105. -
  106.      * used to define table attributes required for the NestetSet implementation
  107. -
  108.      * adds lft and rgt columns for corresponding left and right values
  109. -
  110.      *
  111. -
  112.      */
  113. -
  114.     public function setTableDefinition()
  115. -
  116.     {
  117. -
  118.         if ($root $this->getAttribute('rootColumnName')) {
  119. -
  120.             $this->table->setColumn($root'integer'4);
  121. -
  122.         }
  123. -
  124.  
  125. -
  126.         $this->table->setColumn('lft''integer'4);
  127. -
  128.         $this->table->setColumn('rgt''integer'4);
  129. -
  130.         $this->table->setColumn('level''integer'2);
  131. -
  132.     }
  133. -
  134.  
  135. -
  136.     /**
  137. -
  138.      * creates root node from given record or from a new record
  139. -
  140.      *
  141. -
  142.      * @param object $record        instance of Doctrine_Record
  143. -
  144.      */
  145. -
  146.     public function createRoot(Doctrine_Record $record null)
  147. -
  148.     {
  149. -
  150.         if $record{
  151. -
  152.             $record $this->table->create();
  153. -
  154.         }
  155. -
  156.  
  157. -
  158.         // if tree is many roots, and no root id has been set, then get next root id
  159. -
  160.         if ($root $this->getAttribute('hasManyRoots'&& $record->getNode()->getRootValue(<= 0{
  161. -
  162.             $record->getNode()->setRootValue($this->getNextRootId());
  163. -
  164.         }
  165. -
  166.  
  167. -
  168.         $record->set('lft''1');
  169. -
  170.         $record->set('rgt''2');
  171. -
  172.         $record->set('level'0);
  173. -
  174.  
  175. -
  176.         $record->save();
  177. -
  178.  
  179. -
  180.         return $record;
  181. -
  182.     }
  183. -
  184.  
  185. -
  186.     /**
  187. -
  188.      * returns root node
  189. -
  190.      *
  191. -
  192.      * @return object $record        instance of Doctrine_Record
  193. -
  194.      * @deprecated Use fetchRoot()
  195. -
  196.      */
  197. -
  198.     public function findRoot($rootId 1)
  199. -
  200.     {
  201. -
  202.         return $this->fetchRoot($rootId);
  203. -
  204.     }
  205. -
  206.     
  207. -
  208.     /**
  209. -
  210.      * Fetches a/the root node.
  211. -
  212.      *
  213. -
  214.      * @param integer $rootId 
  215. -
  216.      */
  217. -
  218.     public function fetchRoot($rootId 1)
  219. -
  220.     {
  221. -
  222.         $q $this->getBaseQuery();
  223. -
  224.         $q $q->addWhere($this->_baseAlias . '.lft = ?'1);
  225. -
  226.         
  227. -
  228.         // if tree has many roots, then specify root id
  229. -
  230.         $q $this->returnQueryWithRootId($q$rootId);
  231. -
  232.         $data $q->execute();
  233. -
  234.  
  235. -
  236.         if (count($data<= 0{
  237. -
  238.             return false;
  239. -
  240.         }
  241. -
  242.  
  243. -
  244.         if ($data instanceof Doctrine_Collection{
  245. -
  246.             $root $data->getFirst();
  247. -
  248.             $root['level'0;
  249. -
  250.         else if (is_array($data)) {
  251. -
  252.             $root array_shift($data);
  253. -
  254.             $root['level'0;
  255. -
  256.         else {
  257. -
  258.             throw new Doctrine_Tree_Exception("Unexpected data structure returned.");
  259. -
  260.         }
  261. -
  262.  
  263. -
  264.         return $root;
  265. -
  266.     }
  267. -
  268.  
  269. -
  270.     /**
  271. -
  272.      * Fetches a tree.
  273. -
  274.      *
  275. -
  276.      * @param array $options  Options
  277. -
  278.      * @return mixed          The tree or FALSE if the tree could not be found.
  279. -
  280.      */
  281. -
  282.     public function fetchTree($options array())
  283. -
  284.     {
  285. -
  286.         // fetch tree
  287. -
  288.         $q $this->getBaseQuery();
  289. -
  290.  
  291. -
  292.         $q $q->addWhere($this->_baseAlias . ".lft >= ?"1);
  293. -
  294.  
  295. -
  296.         // if tree has many roots, then specify root id
  297. -
  298.         $rootId = isset($options['root_id']$options['root_id''1';
  299. -
  300.         if (is_array($rootId)) {
  301. -
  302.             $q->addOrderBy($this->_baseAlias . "." $this->getAttribute('rootColumnName'.
  303. -
  304.                     ", " $this->_baseAlias . ".lft ASC");
  305. -
  306.         else {
  307. -
  308.             $q->addOrderBy($this->_baseAlias . ".lft ASC");
  309. -
  310.         }
  311. -
  312.         
  313. -
  314.         $q $this->returnQueryWithRootId($q$rootId);
  315. -
  316.         $tree $q->execute();
  317. -
  318.         
  319. -
  320.         if (count($tree<= 0{
  321. -
  322.             return false;
  323. -
  324.         }
  325. -
  326.         
  327. -
  328.         return $tree;
  329. -
  330.     }
  331. -
  332.  
  333. -
  334.     /**
  335. -
  336.      * Fetches a branch of a tree.
  337. -
  338.      *
  339. -
  340.      * @param mixed $pk              primary key as used by table::find() to locate node to traverse tree from
  341. -
  342.      * @param array $options         Options.
  343. -
  344.      * @return mixed                 The branch or FALSE if the branch could not be found.
  345. -
  346.      * @todo Only fetch the lft and rgt values of the initial record. more is not needed.
  347. -
  348.      */
  349. -
  350.     public function fetchBranch($pk$options array())
  351. -
  352.     {
  353. -
  354.         $record $this->table->find($pk);
  355. -
  356.         if ($record instanceof Doctrine_Record|| !$record->exists()) {
  357. -
  358.             // TODO: if record doesn't exist, throw exception or similar?
  359. -
  360.             return false;
  361. -
  362.         }
  363. -
  364.         //$depth = isset($options['depth']) ? $options['depth'] : null;
  365. -
  366.         
  367. -
  368.         $q $this->getBaseQuery();
  369. -
  370.         $params array($record->get('lft')$record->get('rgt'));
  371. -
  372.         $q->addWhere($this->_baseAlias . ".lft >= ? AND " $this->_baseAlias . ".rgt <= ?"$params)
  373. -
  374.                 ->addOrderBy($this->_baseAlias . ".lft asc");
  375. -
  376.         $q $this->returnQueryWithRootId($q$record->getNode()->getRootValue());
  377. -
  378.         return $q->execute();
  379. -
  380.     }
  381. -
  382.  
  383. -
  384.     /**
  385. -
  386.      * Fetches all root nodes. If the tree has only one root this is the same as
  387. -
  388.      * fetchRoot().
  389. -
  390.      *
  391. -
  392.      * @return mixed  The root nodes.
  393. -
  394.      */
  395. -
  396.     public function fetchRoots()
  397. -
  398.     {
  399. -
  400.         $q $this->getBaseQuery();
  401. -
  402.         $q $q->addWhere($this->_baseAlias . '.lft = ?'1);
  403. -
  404.         return $q->execute();
  405. -
  406.     }
  407. -
  408.  
  409. -
  410.     /**
  411. -
  412.      * calculates the next available root id
  413. -
  414.      *
  415. -
  416.      * @return integer 
  417. -
  418.      */
  419. -
  420.     public function getNextRootId()
  421. -
  422.     {
  423. -
  424.         return $this->getMaxRootId(1;
  425. -
  426.     }
  427. -
  428.  
  429. -
  430.     /**
  431. -
  432.      * calculates the current max root id
  433. -
  434.      *
  435. -
  436.      * @return integer 
  437. -
  438.      */    
  439. -
  440.     public function getMaxRootId()
  441. -
  442.     {      
  443. -
  444.         $component $this->table->getComponentName();
  445. -
  446.         $column    $this->getAttribute('rootColumnName');
  447. -
  448.  
  449. -
  450.         // cannot get this dql to work, cannot retrieve result using $coll[0]->max
  451. -
  452.         //$dql = "SELECT MAX(c.$column) FROM $component c";
  453. -
  454.         
  455. -
  456.         $dql 'SELECT c.' $column ' FROM ' $component ' c ORDER BY c.' $column ' DESC LIMIT 1';
  457. -
  458.   
  459. -
  460.         $coll $this->table->getConnection()->query($dql);
  461. -
  462.   
  463. -
  464.         $max $coll[0]->get($column);
  465. -
  466.   
  467. -
  468.         $max !is_null($max$max 0;
  469. -
  470.   
  471. -
  472.         return $max;      
  473. -
  474.     }
  475. -
  476.  
  477. -
  478.     /**
  479. -
  480.      * returns parsed query with root id where clause added if applicable
  481. -
  482.      *
  483. -
  484.      * @param object    $query    Doctrine_Query
  485. -
  486.      * @param integer   $root_id  id of destination root
  487. -
  488.      * @return object   Doctrine_Query 
  489. -
  490.      */
  491. -
  492.     public function returnQueryWithRootId($query$rootId 1)
  493. -
  494.     {
  495. -
  496.         if ($root $this->getAttribute('rootColumnName')) {
  497. -
  498.             if (is_array($rootId)) {
  499. -
  500.                $query->addWhere($root ' IN (' implode(','array_fill(0count($rootId)'?')) ')',
  501. -
  502.                        $rootId);
  503. -
  504.             else {
  505. -
  506.                $query->addWhere($root ' = ?'$rootId)
  507. -
  508.             }
  509. -
  510.         }
  511. -
  512.  
  513. -
  514.         return $query;
  515. -
  516.     }
  517. -
  518.     
  519. -
  520.     /**
  521. -
  522.      * Enter description here...
  523. -
  524.      *
  525. -
  526.      * @param array $options 
  527. -
  528.      * @return unknown 
  529. -
  530.      */
  531. -
  532.     public function getBaseQuery()
  533. -
  534.     {
  535. -
  536.         if (!isset($this->_baseQuery)) {
  537. -
  538.             $this->_baseQuery = $this->_createBaseQuery();
  539. -
  540.         }
  541. -
  542.         return $this->_baseQuery->copy();
  543. -
  544.     }
  545. -
  546.     
  547. -
  548.     /**
  549. -
  550.      * Enter description here...
  551. -
  552.      *
  553. -
  554.      */
  555. -
  556.     public function getBaseAlias()
  557. -
  558.     {
  559. -
  560.         return $this->_baseAlias;
  561. -
  562.     }
  563. -
  564.     
  565. -
  566.     /**
  567. -
  568.      * Enter description here...
  569. -
  570.      *
  571. -
  572.      */
  573. -
  574.     private function _createBaseQuery()
  575. -
  576.     {
  577. -
  578.         $this->_baseAlias = "base";
  579. -
  580.         $q new Doctrine_Query();
  581. -
  582.         $q->select($this->_baseAlias . ".*")->from($this->getBaseComponent(" " $this->_baseAlias);
  583. -
  584.         return $q;
  585. -
  586.     }
  587. -
  588.     
  589. -
  590.     /**
  591. -
  592.      * Enter description here...
  593. -
  594.      *
  595. -
  596.      * @param Doctrine_Query $query 
  597. -
  598.      */
  599. -
  600.     public function setBaseQuery(Doctrine_Query $query)
  601. -
  602.     {
  603. -
  604.         $this->_baseAlias = $query->getRootAlias();
  605. -
  606.         $query->addSelect($this->_baseAlias . ".lft, " $this->_baseAlias . ".rgt, "$this->_baseAlias . ".level");
  607. -
  608.         if ($this->getAttribute('rootColumnName')) {
  609. -
  610.             $query->addSelect($this->_baseAlias . "." $this->getAttribute('rootColumnName'));
  611. -
  612.         }
  613. -
  614.         $this->_baseQuery = $query;
  615. -
  616.     }
  617. -
  618.     
  619. -
  620.     /**
  621. -
  622.      * Enter description here...
  623. -
  624.      *
  625. -
  626.      */
  627. -
  628.     public function resetBaseQuery()
  629. -
  630.     {
  631. -
  632.         $this->_baseQuery = null;
  633. -
  634.     }
  635. -
  636.     
  637. -
  638.     /**
  639. -
  640.      * Enter description here...
  641. -
  642.      *
  643. -
  644.      * @param unknown_type $graph 
  645. -
  646.      */
  647. -
  648.     /*
  649. -
  650.     public function computeLevels($tree)
  651. -
  652.     {
  653. -
  654.         $right = array();
  655. -
  656.         $isArray = is_array($tree);
  657. -
  658.         $rootColumnName = $this->getAttribute('rootColumnName');
  659. -
  660.         
  661. -
  662.         for ($i = 0, $count = count($tree); $i < $count; $i++) {
  663. -
  664.             if ($rootColumnName && $i > 0 && $tree[$i][$rootColumnName] != $tree[$i-1][$rootColumnName]) {
  665. -
  666.                 $right = array();
  667. -
  668.             }
  669. -
  670.             
  671. -
  672.             if (count($right) > 0) {
  673. -
  674.                 while (count($right) > 0 && $right[count($right)-1] < $tree[$i]['rgt']) {
  675. -
  676.                     //echo count($right);
  677. -
  678.                     array_pop($right);
  679. -
  680.                 }
  681. -
  682.             }
  683. -
  684.      
  685. -
  686.             if ($isArray) {
  687. -
  688.                 $tree[$i]['level'] = count($right);
  689. -
  690.             } else {
  691. -
  692.                 $tree[$i]->getNode()->setLevel(count($right));
  693. -
  694.             }
  695. -
  696.     
  697. -
  698.             $right[] = $tree[$i]['rgt'];
  699. -
  700.         }
  701. -
  702.         return $tree;
  703. -
  704.     }
  705. -
  706.     */
  707. -
  708. }
  709. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineUtil.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineUtil.php.html deleted file mode 100644 index a5e320aef..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineUtil.php.html +++ /dev/null @@ -1,44 +0,0 @@ - -
-

Source for file Util.php

-

Documentation is available at Util.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id$
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Connection_Module');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Util
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision$
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     
  69. -
  70. }
  71. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidator.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidator.php.html deleted file mode 100644 index c9aaa7bd9..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidator.php.html +++ /dev/null @@ -1,271 +0,0 @@ - -
-

Source for file Validator.php

-

Documentation is available at Validator.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Validator.php 2193 2007-08-10 06:01:54Z nicobn $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Validator
  44. -
  45.  * Doctrine_Validator performs validations in record properties
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @category    Object Relational Mapping
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2193 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @var array $validators           an array of validator objects
  71. -
  72.      */
  73. -
  74.     private static $validators  array();
  75. -
  76.     /**
  77. -
  78.      * returns a validator object
  79. -
  80.      *
  81. -
  82.      * @param string $name 
  83. -
  84.      * @return Doctrine_Validator_Interface 
  85. -
  86.      */
  87. -
  88.     public static function getValidator($name)
  89. -
  90.     {
  91. -
  92.         if isset(self::$validators[$name])) {
  93. -
  94.             $class 'Doctrine_Validator_' ucwords(strtolower($name));
  95. -
  96.             if (class_exists($class)) {
  97. -
  98.                 self::$validators[$namenew $class;
  99. -
  100.             else {
  101. -
  102.                 throw new Doctrine_Exception("Validator named '$namenot available.");
  103. -
  104.             }
  105. -
  106.  
  107. -
  108.         }
  109. -
  110.         return self::$validators[$name];
  111. -
  112.     }
  113. -
  114.     /**
  115. -
  116.      * validates a given record and saves possible errors
  117. -
  118.      * in Doctrine_Validator::$stack
  119. -
  120.      *
  121. -
  122.      * @param Doctrine_Record $record 
  123. -
  124.      * @return void 
  125. -
  126.      */
  127. -
  128.     public function validateRecord(Doctrine_Record $record)
  129. -
  130.     {
  131. -
  132.         $columns   $record->getTable()->getColumns();
  133. -
  134.         $component $record->getTable()->getComponentName();
  135. -
  136.  
  137. -
  138.         $errorStack $record->getErrorStack();
  139. -
  140.  
  141. -
  142.         // if record is transient all fields will be validated
  143. -
  144.         // if record is persistent only the modified fields will be validated
  145. -
  146.         $data ($record->exists()) $record->getModified($record->getData();
  147. -
  148.  
  149. -
  150.         $err      array();
  151. -
  152.         foreach ($data as $key => $value{
  153. -
  154.             if ($value === self::$_null{
  155. -
  156.                 $value null;
  157. -
  158.             elseif ($value instanceof Doctrine_Record{
  159. -
  160.                 $value $value->getIncremented();
  161. -
  162.             }
  163. -
  164.  
  165. -
  166.             $column $columns[$key];
  167. -
  168.  
  169. -
  170.             if ($column['type'== 'enum'{
  171. -
  172.                 $value $record->getTable()->enumIndex($key$value);
  173. -
  174.  
  175. -
  176.                 if ($value === false{
  177. -
  178.                     $errorStack->add($key'enum');
  179. -
  180.                     continue;
  181. -
  182.                 }
  183. -
  184.             }
  185. -
  186.  
  187. -
  188.             if ($record->getTable()->getAttribute(Doctrine::ATTR_AUTO_LENGTH_VLD)) {
  189. -
  190.                 if (!$this->validateLength($column$key$value)) {
  191. -
  192.                     $errorStack->add($key'length');
  193. -
  194.  
  195. -
  196.                     continue;
  197. -
  198.                 }
  199. -
  200.             }
  201. -
  202.  
  203. -
  204.             foreach ($column as $name => $args{
  205. -
  206.                 if (empty($name)
  207. -
  208.                     || $name == 'primary'
  209. -
  210.                     || $name == 'protected'
  211. -
  212.                     || $name == 'autoincrement'
  213. -
  214.                     || $name == 'default'
  215. -
  216.                     || $name == 'values'
  217. -
  218.                     || $name == 'sequence'
  219. -
  220.                     || $name == 'zerofill'{
  221. -
  222.                     continue;
  223. -
  224.                 }
  225. -
  226.  
  227. -
  228.                 if (strtolower($name=== 'notnull' && isset($column['autoincrement'])) {
  229. -
  230.                     continue;
  231. -
  232.                 }
  233. -
  234.  
  235. -
  236.                 if (strtolower($name== 'length'{
  237. -
  238.                     if (!$record->getTable()->getAttribute(Doctrine::ATTR_AUTO_LENGTH_VLD)) {
  239. -
  240.                         if (!$this->validateLength($column$key$value)) {
  241. -
  242.                             $errorStack->add($key'length');
  243. -
  244.                         }
  245. -
  246.                     }
  247. -
  248.                     continue;
  249. -
  250.                 }
  251. -
  252.  
  253. -
  254.                 if (strtolower($name== 'type'{
  255. -
  256.                     if (!$record->getTable()->getAttribute(Doctrine::ATTR_AUTO_TYPE_VLD)) {
  257. -
  258.                         if self::isValidType($value$column['type'])) {
  259. -
  260.                             $errorStack->add($key'type');
  261. -
  262.                         }
  263. -
  264.                     }
  265. -
  266.                     continue;
  267. -
  268.                 }
  269. -
  270.  
  271. -
  272.                 $validator self::getValidator($name);
  273. -
  274.                 if $validator->validate($record$key$value$args)) {
  275. -
  276.                     $errorStack->add($key$name);
  277. -
  278.  
  279. -
  280.                     //$err[$key] = 'not valid';
  281. -
  282.  
  283. -
  284.                     // errors found quit validation looping for this column
  285. -
  286.                     //break;
  287. -
  288.                 }
  289. -
  290.             }
  291. -
  292.  
  293. -
  294.             if ($record->getTable()->getAttribute(Doctrine::ATTR_AUTO_TYPE_VLD)) {
  295. -
  296.                 if self::isValidType($value$column['type'])) {
  297. -
  298.                     $errorStack->add($key'type');
  299. -
  300.                     continue;
  301. -
  302.                 }
  303. -
  304.             }
  305. -
  306.         }
  307. -
  308.     }
  309. -
  310.     /**
  311. -
  312.      * Validates the length of a field.
  313. -
  314.      */
  315. -
  316.     private function validateLength($column$key$value)
  317. -
  318.     {
  319. -
  320.         if ($column['type'== 'timestamp' || $column['type'== 'integer'{
  321. -
  322.             return true;
  323. -
  324.         elseif ($column['type'== 'array' || $column['type'== 'object'{
  325. -
  326.             $length strlen(serialize($value));
  327. -
  328.         else {
  329. -
  330.             $length strlen($value);
  331. -
  332.         }
  333. -
  334.  
  335. -
  336.         if ($length $column['length']{
  337. -
  338.             return false;
  339. -
  340.         }
  341. -
  342.         return true;
  343. -
  344.     }
  345. -
  346.     /**
  347. -
  348.      * whether or not this validator has errors
  349. -
  350.      *
  351. -
  352.      * @return boolean 
  353. -
  354.      */
  355. -
  356.     public function hasErrors()
  357. -
  358.     {
  359. -
  360.         return (count($this->stack0);
  361. -
  362.     }
  363. -
  364.     /**
  365. -
  366.      * converts a doctrine type to native php type
  367. -
  368.      *
  369. -
  370.      * @param $doctrineType 
  371. -
  372.      * @return string 
  373. -
  374.      */
  375. -
  376.     public static function phpType($doctrineType)
  377. -
  378.     {
  379. -
  380.         switch ($doctrineType{
  381. -
  382.             case 'enum':
  383. -
  384.                 return 'integer';
  385. -
  386.             case 'blob':
  387. -
  388.             case 'clob':
  389. -
  390.             case 'mbstring':
  391. -
  392.             case 'timestamp':
  393. -
  394.             case 'date':
  395. -
  396.             case 'gzip':
  397. -
  398.                 return 'string';
  399. -
  400.                 break;
  401. -
  402.             default:
  403. -
  404.                 return $doctrineType;
  405. -
  406.         }
  407. -
  408.     }
  409. -
  410.     /**
  411. -
  412.      * returns whether or not the given variable is
  413. -
  414.      * valid type
  415. -
  416.      *
  417. -
  418.      * @param mixed $var 
  419. -
  420.      * @param string $type 
  421. -
  422.      * @return boolean 
  423. -
  424.      */
  425. -
  426.     public static function isValidType($var$type)
  427. -
  428.     {
  429. -
  430.         if ($type == 'boolean'{
  431. -
  432.             return true;
  433. -
  434.         }
  435. -
  436.  
  437. -
  438.         $looseType self::gettype($var);
  439. -
  440.         $type      self::phpType($type);
  441. -
  442.  
  443. -
  444.         switch ($looseType{
  445. -
  446.             case 'float':
  447. -
  448.             case 'double':
  449. -
  450.             case 'integer':
  451. -
  452.                 if ($type == 'string' || $type == 'float'{
  453. -
  454.                     return true;
  455. -
  456.                 }
  457. -
  458.             case 'string':
  459. -
  460.             case 'array':
  461. -
  462.             case 'object':
  463. -
  464.                 return ($type === $looseType);
  465. -
  466.                 break;
  467. -
  468.             case 'NULL':
  469. -
  470.                 return true;
  471. -
  472.                 break;
  473. -
  474.         };
  475. -
  476.     }
  477. -
  478.     /**
  479. -
  480.      * returns the type of loosely typed variable
  481. -
  482.      *
  483. -
  484.      * @param mixed $var 
  485. -
  486.      * @return string 
  487. -
  488.      */
  489. -
  490.     public static function gettype($var)
  491. -
  492.     {
  493. -
  494.         $type gettype($var);
  495. -
  496.         switch ($type{
  497. -
  498.             case 'string':
  499. -
  500.                 if (preg_match("/^[0-9]+$/",$var)) {
  501. -
  502.                     return 'integer';
  503. -
  504.                 elseif (is_numeric($var)) {
  505. -
  506.                     return 'float';
  507. -
  508.                 else {
  509. -
  510.                     return $type;
  511. -
  512.                 }
  513. -
  514.                 break;
  515. -
  516.             default:
  517. -
  518.                 return $type;
  519. -
  520.         };
  521. -
  522.     }
  523. -
  524. }
  525. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCountry.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCountry.php.html deleted file mode 100644 index ba466d8fe..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCountry.php.html +++ /dev/null @@ -1,307 +0,0 @@ - -
-

Source for file Country.php

-

Documentation is available at Country.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Country.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Country
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     private static $countries array(
  69. -
  70.         'ad' =>    'Andorra',
  71. -
  72.         'ae' =>    'United Arab Emirates',
  73. -
  74.         'af' =>    'Afghanistan',
  75. -
  76.         'ag' =>    'Antigua and Barbuda',
  77. -
  78.         'ai' =>    'Anguilla',
  79. -
  80.         'al' =>    'Albania',
  81. -
  82.         'am' =>    'Armenia',
  83. -
  84.         'an' =>    'Netherlands Antilles',
  85. -
  86.         'ao' =>    'Angola',
  87. -
  88.         'aq' =>    'Antarctica',
  89. -
  90.         'ar' =>    'Argentina',
  91. -
  92.         'as' =>    'American Samoa',
  93. -
  94.         'at' =>    'Austria',
  95. -
  96.         'au' =>    'Australia',
  97. -
  98.         'aw' =>    'Aruba',
  99. -
  100.         'az' =>    'Azerbaijan',
  101. -
  102.         'ba' =>    'Bosnia Hercegovina',
  103. -
  104.         'bb' =>    'Barbados',
  105. -
  106.         'bd' =>    'Bangladesh',
  107. -
  108.         'be' =>    'Belgium',
  109. -
  110.         'bf' =>    'Burkina Faso',
  111. -
  112.         'bg' =>    'Bulgaria',
  113. -
  114.         'bh' =>    'Bahrain',
  115. -
  116.         'bi' =>    'Burundi',
  117. -
  118.         'bj' =>    'Benin',
  119. -
  120.         'bm' =>    'Bermuda',
  121. -
  122.         'bn' =>    'Brunei Darussalam',
  123. -
  124.         'bo' =>    'Bolivia',
  125. -
  126.         'br' =>    'Brazil',
  127. -
  128.         'bs' =>    'Bahamas',
  129. -
  130.         'bt' =>    'Bhutan',
  131. -
  132.         'bv' =>    'Bouvet Island',
  133. -
  134.         'bw' =>    'Botswana',
  135. -
  136.         'by' =>    'Belarus (Byelorussia)',
  137. -
  138.         'bz' =>    'Belize',
  139. -
  140.         'ca' =>    'Canada',
  141. -
  142.         'cc' =>    'Cocos Islands',
  143. -
  144.         'cd' =>    'Congo, The Democratic Republic of the',
  145. -
  146.         'cf' =>    'Central African Republic',
  147. -
  148.         'cg' =>    'Congo',
  149. -
  150.         'ch' =>    'Switzerland',
  151. -
  152.         'ci' =>    'Ivory Coast',
  153. -
  154.         'ck' =>    'Cook Islands',
  155. -
  156.         'cl' =>    'Chile',
  157. -
  158.         'cm' =>    'Cameroon',
  159. -
  160.         'cn' =>    'China',
  161. -
  162.         'co' =>    'Colombia',
  163. -
  164.         'cr' =>    'Costa Rica',
  165. -
  166.         'cs' =>    'Czechoslovakia',
  167. -
  168.         'cu' =>    'Cuba',
  169. -
  170.         'cv' =>    'Cape Verde',
  171. -
  172.         'cx' =>    'Christmas Island',
  173. -
  174.         'cy' =>    'Cyprus',
  175. -
  176.         'cz' =>    'Czech Republic',
  177. -
  178.         'de' =>    'Germany',
  179. -
  180.         'dj' =>    'Djibouti',
  181. -
  182.         'dk' =>    'Denmark',
  183. -
  184.         'dm' =>    'Dominica',
  185. -
  186.         'do' =>    'Dominican Republic',
  187. -
  188.         'dz' =>    'Algeria',
  189. -
  190.         'ec' =>    'Ecuador',
  191. -
  192.         'ee' =>    'Estonia',
  193. -
  194.         'eg' =>    'Egypt',
  195. -
  196.         'eh' =>    'Western Sahara',
  197. -
  198.         'er' =>    'Eritrea',
  199. -
  200.         'es' =>    'Spain',
  201. -
  202.         'et' =>    'Ethiopia',
  203. -
  204.         'fi' =>    'Finland',
  205. -
  206.         'fj' =>    'Fiji',
  207. -
  208.         'fk' =>    'Falkland Islands',
  209. -
  210.         'fm' =>    'Micronesia',
  211. -
  212.         'fo' =>    'Faroe Islands',
  213. -
  214.         'fr' =>    'France',
  215. -
  216.         'fx' =>    'France, Metropolitan FX',
  217. -
  218.         'ga' =>    'Gabon',
  219. -
  220.         'gb' =>    'United Kingdom (Great Britain)',
  221. -
  222.         'gd' =>    'Grenada',
  223. -
  224.         'ge' =>    'Georgia',
  225. -
  226.         'gf' =>    'French Guiana',
  227. -
  228.         'gh' =>    'Ghana',
  229. -
  230.         'gi' =>    'Gibraltar',
  231. -
  232.         'gl' =>    'Greenland',
  233. -
  234.         'gm' =>    'Gambia',
  235. -
  236.         'gn' =>    'Guinea',
  237. -
  238.         'gp' =>    'Guadeloupe',
  239. -
  240.         'gq' =>    'Equatorial Guinea',
  241. -
  242.         'gr' =>    'Greece',
  243. -
  244.         'gs' =>    'South Georgia and the South Sandwich Islands',
  245. -
  246.         'gt' =>    'Guatemala',
  247. -
  248.         'gu' =>    'Guam',
  249. -
  250.         'gw' =>    'Guinea-bissau',
  251. -
  252.         'gy' =>    'Guyana',
  253. -
  254.         'hk' =>    'Hong Kong',
  255. -
  256.         'hm' =>    'Heard and McDonald Islands',
  257. -
  258.         'hn' =>    'Honduras',
  259. -
  260.         'hr' =>    'Croatia',
  261. -
  262.         'ht' =>    'Haiti',
  263. -
  264.         'hu' =>    'Hungary',
  265. -
  266.         'id' =>    'Indonesia',
  267. -
  268.         'ie' =>    'Ireland',
  269. -
  270.         'il' =>    'Israel',
  271. -
  272.         'in' =>    'India',
  273. -
  274.         'io' =>    'British Indian Ocean Territory',
  275. -
  276.         'iq' =>    'Iraq',
  277. -
  278.         'ir' =>    'Iran',
  279. -
  280.         'is' =>    'Iceland',
  281. -
  282.         'it' =>    'Italy',
  283. -
  284.         'jm' =>    'Jamaica',
  285. -
  286.         'jo' =>    'Jordan',
  287. -
  288.         'jp' =>    'Japan',
  289. -
  290.         'ke' =>    'Kenya',
  291. -
  292.         'kg' =>    'Kyrgyzstan',
  293. -
  294.         'kh' =>    'Cambodia',
  295. -
  296.         'ki' =>    'Kiribati',
  297. -
  298.         'km' =>    'Comoros',
  299. -
  300.         'kn' =>    'Saint Kitts and Nevis',
  301. -
  302.         'kp' =>    'North Korea',
  303. -
  304.         'kr' =>    'South Korea',
  305. -
  306.         'kw' =>    'Kuwait',
  307. -
  308.         'ky' =>    'Cayman Islands',
  309. -
  310.         'kz' =>    'Kazakhstan',
  311. -
  312.         'la' =>    'Laos',
  313. -
  314.         'lb' =>    'Lebanon',
  315. -
  316.         'lc' =>    'Saint Lucia',
  317. -
  318.         'li' =>    'Lichtenstein',
  319. -
  320.         'lk' =>    'Sri Lanka',
  321. -
  322.         'lr' =>    'Liberia',
  323. -
  324.         'ls' =>    'Lesotho',
  325. -
  326.         'lt' =>    'Lithuania',
  327. -
  328.         'lu' =>    'Luxembourg',
  329. -
  330.         'lv' =>    'Latvia',
  331. -
  332.         'ly' =>    'Libya',
  333. -
  334.         'ma' =>    'Morocco',
  335. -
  336.         'mc' =>    'Monaco',
  337. -
  338.         'md' =>    'Moldova Republic',
  339. -
  340.         'mg' =>    'Madagascar',
  341. -
  342.         'mh' =>    'Marshall Islands',
  343. -
  344.         'mk' =>    'Macedonia, The Former Yugoslav Republic of',
  345. -
  346.         'ml' =>    'Mali',
  347. -
  348.         'mm' =>    'Myanmar',
  349. -
  350.         'mn' =>    'Mongolia',
  351. -
  352.         'mo' =>    'Macau',
  353. -
  354.         'mp' =>    'Northern Mariana Islands',
  355. -
  356.         'mq' =>    'Martinique',
  357. -
  358.         'mr' =>    'Mauritania',
  359. -
  360.         'ms' =>    'Montserrat',
  361. -
  362.         'mt' =>    'Malta',
  363. -
  364.         'mu' =>    'Mauritius',
  365. -
  366.         'mv' =>    'Maldives',
  367. -
  368.         'mw' =>    'Malawi',
  369. -
  370.         'mx' =>    'Mexico',
  371. -
  372.         'my' =>    'Malaysia',
  373. -
  374.         'mz' =>    'Mozambique',
  375. -
  376.         'na' =>    'Namibia',
  377. -
  378.         'nc' =>    'New Caledonia',
  379. -
  380.         'ne' =>    'Niger',
  381. -
  382.         'nf' =>    'Norfolk Island',
  383. -
  384.         'ng' =>    'Nigeria',
  385. -
  386.         'ni' =>    'Nicaragua',
  387. -
  388.         'nl' =>    'Netherlands',
  389. -
  390.         'no' =>    'Norway',
  391. -
  392.         'np' =>    'Nepal',
  393. -
  394.         'nr' =>    'Nauru',
  395. -
  396.         'nt' =>    'Neutral Zone',
  397. -
  398.         'nu' =>    'Niue',
  399. -
  400.         'nz' =>    'New Zealand',
  401. -
  402.         'om' =>    'Oman',
  403. -
  404.         'pa' =>    'Panama',
  405. -
  406.         'pe' =>    'Peru',
  407. -
  408.         'pf' =>    'French Polynesia',
  409. -
  410.         'pg' =>    'Papua New Guinea',
  411. -
  412.         'ph' =>    'Philippines',
  413. -
  414.         'pk' =>    'Pakistan',
  415. -
  416.         'pl' =>    'Poland',
  417. -
  418.         'pm' =>    'St. Pierre and Miquelon',
  419. -
  420.         'pn' =>    'Pitcairn',
  421. -
  422.         'pr' =>    'Puerto Rico',
  423. -
  424.         'pt' =>    'Portugal',
  425. -
  426.         'pw' =>    'Palau',
  427. -
  428.         'py' =>    'Paraguay',
  429. -
  430.         'qa' =>    'Qatar',
  431. -
  432.         're' =>    'Reunion',
  433. -
  434.         'ro' =>    'Romania',
  435. -
  436.         'ru' =>    'Russia',
  437. -
  438.         'rw' =>    'Rwanda',
  439. -
  440.         'sa' =>    'Saudi Arabia',
  441. -
  442.         'sb' =>    'Solomon Islands',
  443. -
  444.         'sc' =>    'Seychelles',
  445. -
  446.         'sd' =>    'Sudan',
  447. -
  448.         'se' =>    'Sweden',
  449. -
  450.         'sg' =>    'Singapore',
  451. -
  452.         'sh' =>    'St. Helena',
  453. -
  454.         'si' =>    'Slovenia',
  455. -
  456.         'sj' =>    'Svalbard and Jan Mayen Islands',
  457. -
  458.         'sk' =>    'Slovakia (Slovak Republic)',
  459. -
  460.         'sl' =>    'Sierra Leone',
  461. -
  462.         'sm' =>    'San Marino',
  463. -
  464.         'sn' =>    'Senegal',
  465. -
  466.         'so' =>    'Somalia',
  467. -
  468.         'sr' =>    'Suriname',
  469. -
  470.         'st' =>    'Sao Tome and Principe',
  471. -
  472.         'sv' =>    'El Salvador',
  473. -
  474.         'sy' =>    'Syria',
  475. -
  476.         'sz' =>    'Swaziland',
  477. -
  478.         'tc' =>    'Turks and Caicos Islands',
  479. -
  480.         'td' =>    'Chad',
  481. -
  482.         'tf' =>    'French Southern Territories',
  483. -
  484.         'tg' =>    'Togo',
  485. -
  486.         'th' =>    'Thailand',
  487. -
  488.         'tj' =>    'Tajikistan',
  489. -
  490.         'tk' =>    'Tokelau',
  491. -
  492.         'tm' =>    'Turkmenistan',
  493. -
  494.         'tn' =>    'Tunisia',
  495. -
  496.         'to' =>    'Tonga',
  497. -
  498.         'tp' =>    'East Timor',
  499. -
  500.         'tr' =>    'Turkey',
  501. -
  502.         'tt' =>    'Trinidad, Tobago',
  503. -
  504.         'tv' =>    'Tuvalu',
  505. -
  506.         'tw' =>    'Taiwan',
  507. -
  508.         'tz' =>    'Tanzania',
  509. -
  510.         'ua' =>    'Ukraine',
  511. -
  512.         'ug' =>    'Uganda',
  513. -
  514.         'uk' =>    'United Kingdom',
  515. -
  516.         'um' =>    'United States Minor Islands',
  517. -
  518.         'us' =>    'United States of America',
  519. -
  520.         'uy' =>    'Uruguay',
  521. -
  522.         'uz' =>    'Uzbekistan',
  523. -
  524.         'va' =>    'Vatican City',
  525. -
  526.         'vc' =>    'Saint Vincent, Grenadines',
  527. -
  528.         've' =>    'Venezuela',
  529. -
  530.         'vg' =>    'Virgin Islands (British)',
  531. -
  532.         'vi' =>    'Virgin Islands (USA)',
  533. -
  534.         'vn' =>    'Viet Nam',
  535. -
  536.         'vu' =>    'Vanuatu',
  537. -
  538.         'wf' =>    'Wallis and Futuna Islands',
  539. -
  540.         'ws' =>    'Samoa',
  541. -
  542.         'ye' =>    'Yemen',
  543. -
  544.         'yt' =>    'Mayotte',
  545. -
  546.         'yu' =>    'Yugoslavia',
  547. -
  548.         'za' =>    'South Africa',
  549. -
  550.         'zm' =>    'Zambia',
  551. -
  552.         'zr' =>    'Zaire',
  553. -
  554.         'zw' =>    'Zimbabwe');
  555. -
  556.     /**
  557. -
  558.      * @return array 
  559. -
  560.      */
  561. -
  562.     public static function getCountries()
  563. -
  564.     {
  565. -
  566.         return self::$countries;
  567. -
  568.     }
  569. -
  570.     /**
  571. -
  572.      * @param Doctrine_Record $record 
  573. -
  574.      * @param string $key 
  575. -
  576.      * @param mixed $value 
  577. -
  578.      * @param string $args 
  579. -
  580.      * @return boolean 
  581. -
  582.      */
  583. -
  584.     public function validate(Doctrine_Record $record$key$value$args)
  585. -
  586.     {
  587. -
  588.         $value strtolower($value);
  589. -
  590.         return isset(self::$countries[$value]);
  591. -
  592.     }
  593. -
  594.  
  595. -
  596. }
  597. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCreditcard.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCreditcard.php.html deleted file mode 100644 index 62ea0cf0a..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorCreditcard.php.html +++ /dev/null @@ -1,57 +0,0 @@ - -
-

Source for file Creditcard.php

-

Documentation is available at Creditcard.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Creditcard.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Creditcard
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.  
  69. -
  70.     /**
  71. -
  72.      * @link http://www.owasp.org/index.php/OWASP_Validation_Regex_Repository
  73. -
  74.      * @param Doctrine_Record $record 
  75. -
  76.      * @param string $key 
  77. -
  78.      * @param mixed $value 
  79. -
  80.      * @param string $args 
  81. -
  82.      * @return boolean 
  83. -
  84.      */
  85. -
  86.     public function validate(Doctrine_Record $record$key$value$args)
  87. -
  88.     {
  89. -
  90.         return preg_match('#^((4\d{3})|(5[1-5]\d{2})|(6011)|(7\d{3}))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$#'$value);
  91. -
  92.     }
  93. -
  94.  
  95. -
  96. }
  97. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorDate.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorDate.php.html deleted file mode 100644 index 99f83afa1..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorDate.php.html +++ /dev/null @@ -1,61 +0,0 @@ - -
-

Source for file Date.php

-

Documentation is available at Date.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Date.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Date
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         if (empty($value)) {
  87. -
  88.             return true;
  89. -
  90.         }
  91. -
  92.         $e explode("-"$value);
  93. -
  94.         if (count($e!== 3{
  95. -
  96.             return false;
  97. -
  98.         }
  99. -
  100.         return checkdate($e[1]$e[2]$e[0]);
  101. -
  102.     }
  103. -
  104. }
  105. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEmail.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEmail.php.html deleted file mode 100644 index 6f985f81e..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEmail.php.html +++ /dev/null @@ -1,88 +0,0 @@ - -
-

Source for file Email.php

-

Documentation is available at Email.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Email.php 1444 2007-05-23 09:55:32Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Email
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1444 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @link http://iamcal.com/publish/articles/php/parsing_email/pdf/
  71. -
  72.      * @param Doctrine_Record $record 
  73. -
  74.      * @param string $key 
  75. -
  76.      * @param mixed $value 
  77. -
  78.      * @param string $args 
  79. -
  80.      * @return boolean 
  81. -
  82.      */
  83. -
  84.     public function validate(Doctrine_Record $record$key$value$args)
  85. -
  86.     {
  87. -
  88.         if (empty($value)) {
  89. -
  90.             return true;
  91. -
  92.         }
  93. -
  94.         if (isset($args[0])) {
  95. -
  96.             $parts explode("@"$value);
  97. -
  98.             if (isset($parts[1]&& function_exists("checkdnsrr")) {
  99. -
  100.                 if checkdnsrr($parts[1]"MX")) {
  101. -
  102.                     return false;
  103. -
  104.                 }
  105. -
  106.             }
  107. -
  108.         }
  109. -
  110.  
  111. -
  112.         $qtext '[^\\x0d\\x22\\x5c\\x80-\\xff]';
  113. -
  114.         $dtext '[^\\x0d\\x5b-\\x5d\\x80-\\xff]';
  115. -
  116.         $atom '[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c\\x3e\\x40\\x5b-\\x5d\\x7f-\\xff]+';
  117. -
  118.         $quoted_pair '\\x5c[\\x00-\\x7f]';
  119. -
  120.         $domain_literal "\\x5b($dtext|$quoted_pair)*\\x5d";
  121. -
  122.         $quoted_string "\\x22($qtext|$quoted_pair)*\\x22";
  123. -
  124.         $domain_ref $atom;
  125. -
  126.         $sub_domain "($domain_ref|$domain_literal)";
  127. -
  128.         $word "($atom|$quoted_string)";
  129. -
  130.         $domain "$sub_domain(\\x2e$sub_domain)+";
  131. -
  132.         /*
  133. -
  134.           following psudocode to allow strict checking - ask pookey about this if you're puzzled
  135. -
  136.  
  137. -
  138.           if ($this->getValidationOption('strict_checking') == true) {
  139. -
  140.               $domain = "$sub_domain(\\x2e$sub_domain)*";
  141. -
  142.           }
  143. -
  144.         */
  145. -
  146.         $local_part "$word(\\x2e$word)*";
  147. -
  148.         $addr_spec "$local_part\\x40$domain";
  149. -
  150.  
  151. -
  152.         return (bool)preg_match("!^$addr_spec$!D"$value);
  153. -
  154.     }
  155. -
  156.  
  157. -
  158. }
  159. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEnum.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEnum.php.html deleted file mode 100644 index ac2f4b680..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorEnum.php.html +++ /dev/null @@ -1,63 +0,0 @@ - -
-

Source for file Enum.php

-

Documentation is available at Enum.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Enum.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Enum
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         $max substr_count($args'-');
  87. -
  88.         $int = (int) $value;
  89. -
  90.  
  91. -
  92.         if ($int != $value{
  93. -
  94.             return false;
  95. -
  96.         }
  97. -
  98.         if ($int || $int $max{
  99. -
  100.             return false;
  101. -
  102.         }
  103. -
  104.         return true;
  105. -
  106.     }
  107. -
  108. }
  109. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorErrorStack.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorErrorStack.php.html deleted file mode 100644 index 410b32ebc..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorErrorStack.php.html +++ /dev/null @@ -1,143 +0,0 @@ - -
-

Source for file ErrorStack.php

-

Documentation is available at ErrorStack.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: ErrorStack.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_Validator_ErrorStack
  44. -
  45.  *
  46. -
  47.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  48. -
  49.  * @author      Roman Borschel <roman@code-factory.org>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. class Doctrine_Validator_ErrorStack extends Doctrine_Access implements CountableIteratorAggregate
  66. -
  67. {
  68. -
  69.  
  70. -
  71.     /**
  72. -
  73.      * The errors of the error stack.
  74. -
  75.      *
  76. -
  77.      * @var array 
  78. -
  79.      */
  80. -
  81.     protected $errors = array();
  82. -
  83.  
  84. -
  85.     /**
  86. -
  87.      * Constructor
  88. -
  89.      *
  90. -
  91.      */
  92. -
  93.     public function __construct()
  94. -
  95.     {}
  96. -
  97.  
  98. -
  99.     /**
  100. -
  101.      * Adds an error to the stack.
  102. -
  103.      *
  104. -
  105.      * @param string $invalidFieldName 
  106. -
  107.      * @param string $errorType 
  108. -
  109.      */
  110. -
  111.     public function add($invalidFieldName$errorCode 'general')
  112. -
  113.     {
  114. -
  115.         $this->errors[$invalidFieldName][$errorCode;
  116. -
  117.     }
  118. -
  119.  
  120. -
  121.     /**
  122. -
  123.      * Removes all existing errors for the specified field from the stack.
  124. -
  125.      *
  126. -
  127.      * @param string $fieldName 
  128. -
  129.      */
  130. -
  131.     public function remove($fieldName)
  132. -
  133.     {
  134. -
  135.         if (isset($this->errors[$fieldName])) {
  136. -
  137.             unset($this->errors[$fieldName]);
  138. -
  139.         }
  140. -
  141.     }
  142. -
  143.  
  144. -
  145.     /**
  146. -
  147.      * Enter description here...
  148. -
  149.      *
  150. -
  151.      * @param unknown_type $name 
  152. -
  153.      * @return unknown 
  154. -
  155.      */
  156. -
  157.     public function get($fieldName)
  158. -
  159.     {
  160. -
  161.         return isset($this->errors[$fieldName]$this->errors[$fieldNamenull;
  162. -
  163.     }
  164. -
  165.  
  166. -
  167.     /**
  168. -
  169.      * Enter description here...
  170. -
  171.      *
  172. -
  173.      * @param unknown_type $name 
  174. -
  175.      */
  176. -
  177.     public function set($fieldName$errorCode)
  178. -
  179.     {
  180. -
  181.         $this->add($fieldName$errorCode);
  182. -
  183.     }
  184. -
  185.  
  186. -
  187.     /**
  188. -
  189.      * Enter description here...
  190. -
  191.      *
  192. -
  193.      * @return unknown 
  194. -
  195.      */
  196. -
  197.     public function contains($fieldName)
  198. -
  199.     {
  200. -
  201.         return array_key_exists($fieldName$this->errors);
  202. -
  203.     }
  204. -
  205.  
  206. -
  207.     /**
  208. -
  209.      * Removes all errors from the stack.
  210. -
  211.      */
  212. -
  213.     public function clear()
  214. -
  215.     {
  216. -
  217.         $this->errors = array();
  218. -
  219.     }
  220. -
  221.  
  222. -
  223.     /** IteratorAggregate implementation */
  224. -
  225.  
  226. -
  227.     /**
  228. -
  229.      * Enter description here...
  230. -
  231.      *
  232. -
  233.      * @return unknown 
  234. -
  235.      */
  236. -
  237.     public function getIterator()
  238. -
  239.     {
  240. -
  241.         return new ArrayIterator($this->errors);
  242. -
  243.     }
  244. -
  245.  
  246. -
  247.     /** Countable implementation */
  248. -
  249.  
  250. -
  251.     /**
  252. -
  253.      * Enter description here...
  254. -
  255.      *
  256. -
  257.      * @return unknown 
  258. -
  259.      */
  260. -
  261.     public function count()
  262. -
  263.     {
  264. -
  265.         return count($this->errors);
  266. -
  267.     }
  268. -
  269. }
  270. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorException.php.html deleted file mode 100644 index bb57031c8..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorException.php.html +++ /dev/null @@ -1,90 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 2041 2007-07-21 22:15:22Z meus $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Exception
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 2041 $
  62. -
  63.  */
  64. -
  65. class Doctrine_Validator_Exception extends Doctrine_Exception implements CountableIteratorAggregate
  66. -
  67. {
  68. -
  69.     /**
  70. -
  71.      * @var array $invalid 
  72. -
  73.      */
  74. -
  75.     private $invalid = array();
  76. -
  77.     /**
  78. -
  79.      * @param Doctrine_Validator $validator 
  80. -
  81.      */
  82. -
  83.     public function __construct(array $invalid)
  84. -
  85.     {
  86. -
  87.         $this->invalid $invalid;
  88. -
  89.         parent::__construct($this->generateMessage());
  90. -
  91.     }
  92. -
  93.  
  94. -
  95.     public function getInvalidRecords()
  96. -
  97.     {
  98. -
  99.         return $this->invalid;
  100. -
  101.     }
  102. -
  103.  
  104. -
  105.     public function getIterator()
  106. -
  107.     {
  108. -
  109.         return new ArrayIterator($this->invalid);
  110. -
  111.     }
  112. -
  113.  
  114. -
  115.     public function count()
  116. -
  117.     {
  118. -
  119.         return count($this->invalid);
  120. -
  121.     }
  122. -
  123.     /**
  124. -
  125.      * __toString
  126. -
  127.      *
  128. -
  129.      * @return string 
  130. -
  131.      */
  132. -
  133.     public function __toString()
  134. -
  135.     {
  136. -
  137.  
  138. -
  139.         return parent::__toString();
  140. -
  141.     }
  142. -
  143.  
  144. -
  145.     private function generateMessage()
  146. -
  147.     {
  148. -
  149.         $message "";
  150. -
  151.         foreach ($this->invalid as $record){
  152. -
  153.            $message .= "Validaton error in class " get_class($record" ";
  154. -
  155.         }
  156. -
  157.         return $message;
  158. -
  159.     }
  160. -
  161.  
  162. -
  163. }
  164. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorHtmlcolor.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorHtmlcolor.php.html deleted file mode 100644 index 1072c1f16..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorHtmlcolor.php.html +++ /dev/null @@ -1,57 +0,0 @@ - -
-

Source for file Htmlcolor.php

-

Documentation is available at Htmlcolor.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Htmlcolor.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_HtmlColor
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         if preg_match("/^#{0,1}[0-9]{6}$/"$value)) {
  87. -
  88.             return false;
  89. -
  90.         }
  91. -
  92.         return true;
  93. -
  94.     }
  95. -
  96. }
  97. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorInterface.class.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorInterface.class.php.html deleted file mode 100644 index 82b048eb2..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorInterface.class.php.html +++ /dev/null @@ -1,12 +0,0 @@ - -
-

Source for file Interface.class.php

-

Documentation is available at Interface.class.php

-
-
  1. <?php
  2. -
  3. -
  4.     public function validate();
  5. -
  6. }
  7. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorIp.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorIp.php.html deleted file mode 100644 index ba3c8e12f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorIp.php.html +++ /dev/null @@ -1,54 +0,0 @@ - -
-

Source for file Ip.php

-

Documentation is available at Ip.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Ip.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Ip
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         return (bool) ip2long(str_replace("\0"''$value));
  87. -
  88.     }
  89. -
  90. }
  91. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorMinlength.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorMinlength.php.html deleted file mode 100644 index b5f1dfedb..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorMinlength.php.html +++ /dev/null @@ -1,55 +0,0 @@ - -
-

Source for file Minlength.php

-

Documentation is available at Minlength.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Minlength.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Regexp
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Gijs van Dulmen <gijs@vandulmen.net>
  62. -
  63.  */
  64. -
  65. -
  66.     /**
  67. -
  68.      * @param Doctrine_Record $record 
  69. -
  70.      * @param string $key 
  71. -
  72.      * @param mixed $value 
  73. -
  74.      * @param string $args 
  75. -
  76.      * @return boolean 
  77. -
  78.      */
  79. -
  80.     public function validate(Doctrine_Record $record$key$value$args{
  81. -
  82.        if(isset($args&& strlen$value $args)
  83. -
  84.             return false;
  85. -
  86.  
  87. -
  88.         return true;
  89. -
  90.     }
  91. -
  92. }
  93. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNospace.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNospace.php.html deleted file mode 100644 index fd63322af..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNospace.php.html +++ /dev/null @@ -1,54 +0,0 @@ - -
-

Source for file Nospace.php

-

Documentation is available at Nospace.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Nospace.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Nospace
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         return ($value === null || preg_match('/\s\t\r\n/',$value));
  87. -
  88.     }
  89. -
  90. }
  91. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotblank.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotblank.php.html deleted file mode 100644 index 4795068f8..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotblank.php.html +++ /dev/null @@ -1,54 +0,0 @@ - -
-

Source for file Notblank.php

-

Documentation is available at Notblank.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Notblank.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Notblank
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         return (trim($value!= '');
  87. -
  88.     }
  89. -
  90. }
  91. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotnull.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotnull.php.html deleted file mode 100644 index ae6cc19ed..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorNotnull.php.html +++ /dev/null @@ -1,56 +0,0 @@ - -
-

Source for file Notnull.php

-

Documentation is available at Notnull.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Notnull.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Notnull
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @return boolean 
  77. -
  78.      */
  79. -
  80.     public function validate(Doctrine_Record $record$key$value)
  81. -
  82.     {
  83. -
  84.         if ($value === null || $value === ''{
  85. -
  86.             return false;
  87. -
  88.         }
  89. -
  90.         return true;
  91. -
  92.     }
  93. -
  94. }
  95. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorProtected.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorProtected.php.html deleted file mode 100644 index 7530c5a7f..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorProtected.php.html +++ /dev/null @@ -1,9 +0,0 @@ - -
-

Source for file Protected.php

-

Documentation is available at Protected.php

-
-
  1. <?php
  2. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRange.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRange.php.html deleted file mode 100644 index aed153dff..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRange.php.html +++ /dev/null @@ -1,60 +0,0 @@ - -
-

Source for file Range.php

-

Documentation is available at Range.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Range.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Range
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         if (isset($args[0]&& $value $args[0]{
  87. -
  88.             return false;
  89. -
  90.         }
  91. -
  92.         if (isset($args[1]&& $value $args[1]{
  93. -
  94.             return false;
  95. -
  96.         }
  97. -
  98.         return true;
  99. -
  100.     }
  101. -
  102. }
  103. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRegexp.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRegexp.php.html deleted file mode 100644 index 67df31f59..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorRegexp.php.html +++ /dev/null @@ -1,67 +0,0 @@ - -
-

Source for file Regexp.php

-

Documentation is available at Regexp.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Regexp.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Regexp
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         if (is_array($args)) {
  87. -
  88.             foreach ($args as $regexp{
  89. -
  90.                 if preg_match($args$value)) {
  91. -
  92.                     return false;
  93. -
  94.                 }
  95. -
  96.             }
  97. -
  98.             return true;
  99. -
  100.         else {
  101. -
  102.             if (preg_match($args$value)) {
  103. -
  104.                 return true;
  105. -
  106.             }
  107. -
  108.         }
  109. -
  110.  
  111. -
  112.         return false;
  113. -
  114.     }
  115. -
  116. }
  117. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnique.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnique.php.html deleted file mode 100644 index 53de97328..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnique.php.html +++ /dev/null @@ -1,79 +0,0 @@ - -
-

Source for file Unique.php

-

Documentation is available at Unique.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Unique.php 2240 2007-08-14 20:23:54Z Jonathan.Wage $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Unique
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 2240 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         $table $record->getTable();
  87. -
  88.         $pks $table->getIdentifier();
  89. -
  90.         if is_array($pks) ) {
  91. -
  92.             $pks join(',',$pks);
  93. -
  94.         }
  95. -
  96.  
  97. -
  98.         $sql   'SELECT ' $pks ' FROM ' $table->getTableName(' WHERE ' $key ' = ?';
  99. -
  100.         
  101. -
  102.         $values array();
  103. -
  104.         $values[$value;
  105. -
  106.         
  107. -
  108.         // If the record is not new we need to add primary key checks because its ok if the 
  109. -
  110.         // unique value already exists in the database IF the record in the database is the same
  111. -
  112.         // as the one that is validated here.
  113. -
  114.         $state $record->state();
  115. -
  116.         if (($state == Doctrine_Record::STATE_TDIRTY || $state == Doctrine_Record::STATE_TCLEAN)) {
  117. -
  118.             foreach ($table->getPrimaryKeys(as $pk{
  119. -
  120.                 $sql .= " AND {$pk} != ?";
  121. -
  122.                 $values[$record->$pk;
  123. -
  124.             }
  125. -
  126.         }
  127. -
  128.         
  129. -
  130.         $stmt  $table->getConnection()->getDbh()->prepare($sql);
  131. -
  132.         $stmt->execute($values);
  133. -
  134.  
  135. -
  136.         return is_array($stmt->fetch()));
  137. -
  138.     }
  139. -
  140. }
  141. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnsigned.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnsigned.php.html deleted file mode 100644 index 8b5c6e405..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUnsigned.php.html +++ /dev/null @@ -1,62 +0,0 @@ - -
-

Source for file Unsigned.php

-

Documentation is available at Unsigned.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Enum.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Enum
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     /**
  69. -
  70.      * @param Doctrine_Record $record 
  71. -
  72.      * @param string $key 
  73. -
  74.      * @param mixed $value 
  75. -
  76.      * @param string $args 
  77. -
  78.      * @return boolean 
  79. -
  80.      */
  81. -
  82.     public function validate(Doctrine_Record $record$key$value$args)
  83. -
  84.     {
  85. -
  86.         $int = (int) $value;
  87. -
  88.  
  89. -
  90.         if ($int != $value || $int 0{
  91. -
  92.             return false;
  93. -
  94.         }
  95. -
  96.         if ($int 0{
  97. -
  98.             return false;
  99. -
  100.         }
  101. -
  102.         return true;
  103. -
  104.     }
  105. -
  106. }
  107. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUsstate.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUsstate.php.html deleted file mode 100644 index e7c8b973c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineValidatorUsstate.php.html +++ /dev/null @@ -1,113 +0,0 @@ - -
-

Source for file Usstate.php

-

Documentation is available at Usstate.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Usstate.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41.  
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Usstate
  46. -
  47.  *
  48. -
  49.  * @package     Doctrine
  50. -
  51.  * @category    Object Relational Mapping
  52. -
  53.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  54. -
  55.  * @link        www.phpdoctrine.com
  56. -
  57.  * @since       1.0
  58. -
  59.  * @version     $Revision: 1080 $
  60. -
  61.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  62. -
  63.  */
  64. -
  65. -
  66. {
  67. -
  68.     private static $states array (
  69. -
  70.                 "AK" =>    true,
  71. -
  72.                 "AL" => true,
  73. -
  74.                 "AR" => true,
  75. -
  76.                 "AZ" => true,
  77. -
  78.                 "CA" => true,
  79. -
  80.                 "CO" => true,
  81. -
  82.                 "CT" => true,
  83. -
  84.                 "DC" => true,
  85. -
  86.                 "DE" => true,
  87. -
  88.                 "FL" => true,
  89. -
  90.                 "GA" => true,
  91. -
  92.                 "HI" => true,
  93. -
  94.                 "IA" => true,
  95. -
  96.                 "ID" => true,
  97. -
  98.                 "IL" => true,
  99. -
  100.                 "IN" => true,
  101. -
  102.                 "KS" => true,
  103. -
  104.                 "KY" => true,
  105. -
  106.                 "LA" => true,
  107. -
  108.                 "MA" => true,
  109. -
  110.                 "MD" => true,
  111. -
  112.                 "ME" => true,
  113. -
  114.                 "MI" => true,
  115. -
  116.                 "MN" => true,
  117. -
  118.                 "MO" => true,
  119. -
  120.                 "MS" => true,
  121. -
  122.                 "MT" => true,
  123. -
  124.                 "NC" => true,
  125. -
  126.                 "ND" => true,
  127. -
  128.                 "NE" => true,
  129. -
  130.                 "NH" => true,
  131. -
  132.                 "NJ" => true,
  133. -
  134.                 "NM" => true,
  135. -
  136.                 "NV" => true,
  137. -
  138.                 "NY" => true,
  139. -
  140.                 "OH" => true,
  141. -
  142.                 "OK" => true,
  143. -
  144.                 "OR" => true,
  145. -
  146.                 "PA" => true,
  147. -
  148.                 "PR" => true,
  149. -
  150.                 "RI" => true,
  151. -
  152.                 "SC" => true,
  153. -
  154.                 "SD" => true,
  155. -
  156.                 "TN" => true,
  157. -
  158.                 "TX" => true,
  159. -
  160.                 "UT" => true,
  161. -
  162.                 "VA" => true,
  163. -
  164.                 "VI" => true,
  165. -
  166.                 "VT" => true,
  167. -
  168.                 "WA" => true,
  169. -
  170.                 "WI" => true,
  171. -
  172.                 "WV" =>    true,
  173. -
  174.                 "WY" =>    true
  175. -
  176.             );
  177. -
  178.     public function getStates()
  179. -
  180.     {
  181. -
  182.         return self::$states;
  183. -
  184.     }
  185. -
  186.     /**
  187. -
  188.      * @param Doctrine_Record $record 
  189. -
  190.      * @param string $key 
  191. -
  192.      * @param mixed $value 
  193. -
  194.      * @param string $args 
  195. -
  196.      * @return boolean 
  197. -
  198.      */
  199. -
  200.     public function validate(Doctrine_Record $record$key$value$args)
  201. -
  202.     {
  203. -
  204.         return isset(self::$states[$value]);
  205. -
  206.     }
  207. -
  208. }
  209. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineView.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineView.php.html deleted file mode 100644 index 9323ffbef..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineView.php.html +++ /dev/null @@ -1,164 +0,0 @@ - -
-

Source for file View.php

-

Documentation is available at View.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: View.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. /**
  42. -
  43.  * Doctrine_View
  44. -
  45.  *
  46. -
  47.  * this class represents a database view
  48. -
  49.  *
  50. -
  51.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  56. -
  57.  * @category    Object Relational Mapping
  58. -
  59.  * @link        www.phpdoctrine.com
  60. -
  61.  * @since       1.0
  62. -
  63.  * @version     $Revision: 1080 $
  64. -
  65.  */
  66. -
  67. -
  68. {
  69. -
  70.     /**
  71. -
  72.      * SQL DROP constant
  73. -
  74.      */
  75. -
  76.     const DROP   'DROP VIEW %s';
  77. -
  78.     /**
  79. -
  80.      * SQL CREATE constant
  81. -
  82.      */
  83. -
  84.     const CREATE 'CREATE VIEW %s AS %s';
  85. -
  86.     /**
  87. -
  88.      * SQL SELECT constant
  89. -
  90.      */
  91. -
  92.     const SELECT 'SELECT * FROM %s';
  93. -
  94.  
  95. -
  96.     /**
  97. -
  98.      * @var string $name                the name of the view
  99. -
  100.      */
  101. -
  102.     protected $name;
  103. -
  104.     /**
  105. -
  106.      * @var Doctrine_Query $query       the DQL query object this view is hooked into
  107. -
  108.      */
  109. -
  110.     protected $query;
  111. -
  112.     /**
  113. -
  114.      * @var Doctrine_Connection $conn   the connection object
  115. -
  116.      */
  117. -
  118.     protected $conn;
  119. -
  120.  
  121. -
  122.     /**
  123. -
  124.      * constructor
  125. -
  126.      *
  127. -
  128.      * @param Doctrine_Query $query 
  129. -
  130.      */
  131. -
  132.     public function __construct(Doctrine_Query $query$viewName)
  133. -
  134.     {
  135. -
  136.         $this->name  = $viewName;
  137. -
  138.         $this->query = $query;
  139. -
  140.         $this->query->setView($this);
  141. -
  142.         $this->conn   = $query->getConnection();
  143. -
  144.     }
  145. -
  146.     /**
  147. -
  148.      * getQuery
  149. -
  150.      * returns the associated query object
  151. -
  152.      *
  153. -
  154.      * @return Doctrine_Query 
  155. -
  156.      */
  157. -
  158.     public function getQuery()
  159. -
  160.     {
  161. -
  162.         return $this->query;
  163. -
  164.     }
  165. -
  166.     /**
  167. -
  168.      * getName
  169. -
  170.      * returns the name of this view
  171. -
  172.      *
  173. -
  174.      * @return string 
  175. -
  176.      */
  177. -
  178.     public function getName()
  179. -
  180.     {
  181. -
  182.         return $this->name;
  183. -
  184.     }
  185. -
  186.     /**
  187. -
  188.      * getConnection
  189. -
  190.      * returns the connection object
  191. -
  192.      *
  193. -
  194.      * @return Doctrine_Connection 
  195. -
  196.      */
  197. -
  198.     public function getConnection()
  199. -
  200.     {
  201. -
  202.         return $this->conn;
  203. -
  204.     }
  205. -
  206.     /**
  207. -
  208.      * create
  209. -
  210.      * creates this view
  211. -
  212.      *
  213. -
  214.      * @throws Doctrine_View_Exception
  215. -
  216.      * @return void 
  217. -
  218.      */
  219. -
  220.     public function create()
  221. -
  222.     {
  223. -
  224.         $sql sprintf(self::CREATE$this->name$this->query->getQuery());
  225. -
  226.         try {
  227. -
  228.             $this->conn->execute($sql);
  229. -
  230.         catch(Doctrine_Exception $e{
  231. -
  232.             throw new Doctrine_View_Exception($e->__toString());
  233. -
  234.         }
  235. -
  236.     }
  237. -
  238.     /**
  239. -
  240.      * drop
  241. -
  242.      * drops this view from the database
  243. -
  244.      *
  245. -
  246.      * @throws Doctrine_View_Exception
  247. -
  248.      * @return void 
  249. -
  250.      */
  251. -
  252.     public function drop()
  253. -
  254.     {
  255. -
  256.         try {
  257. -
  258.             $this->conn->execute(sprintf(self::DROP$this->name));
  259. -
  260.         catch(Doctrine_Exception $e{
  261. -
  262.             throw new Doctrine_View_Exception($e->__toString());
  263. -
  264.         }
  265. -
  266.     }
  267. -
  268.     /**
  269. -
  270.      * execute
  271. -
  272.      * executes the view
  273. -
  274.      * returns a collection of Doctrine_Record objects
  275. -
  276.      *
  277. -
  278.      * @return Doctrine_Collection 
  279. -
  280.      */
  281. -
  282.     public function execute()
  283. -
  284.     {
  285. -
  286.         return $this->query->execute();
  287. -
  288.     }
  289. -
  290.     /**
  291. -
  292.      * getSelectSql
  293. -
  294.      * returns the select sql for this view
  295. -
  296.      *
  297. -
  298.      * @return string 
  299. -
  300.      */
  301. -
  302.     public function getSelectSql()
  303. -
  304.     {
  305. -
  306.         return sprintf(self::SELECT$this->name);
  307. -
  308.     }
  309. -
  310. }
  311. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineViewException.php.html b/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineViewException.php.html deleted file mode 100644 index 73abad21c..000000000 --- a/api_documentation/trunk/__filesource/fsource_Doctrine__DoctrineViewException.php.html +++ /dev/null @@ -1,42 +0,0 @@ - -
-

Source for file Exception.php

-

Documentation is available at Exception.php

-
-
  1. <?php
  2. -
  3. /*
  4. -
  5.  *  $Id: Exception.php 1080 2007-02-10 18:17:08Z romanb $
  6. -
  7.  *
  8. -
  9.  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  10. -
  11.  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  12. -
  13.  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  14. -
  15.  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  16. -
  17.  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  18. -
  19.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  20. -
  21.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  22. -
  23.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24. -
  25.  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. -
  27.  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28. -
  29.  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. -
  31.  *
  32. -
  33.  * This software consists of voluntary contributions made by many individuals
  34. -
  35.  * and is licensed under the LGPL. For more information, see
  36. -
  37.  * <http://www.phpdoctrine.com>.
  38. -
  39.  */
  40. -
  41. Doctrine::autoload('Doctrine_View_Exception');
  42. -
  43. /**
  44. -
  45.  * Doctrine_Validator_Exception
  46. -
  47.  *
  48. -
  49.  * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
  50. -
  51.  * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
  52. -
  53.  * @package     Doctrine
  54. -
  55.  * @category    Object Relational Mapping
  56. -
  57.  * @link        www.phpdoctrine.com
  58. -
  59.  * @since       1.0
  60. -
  61.  * @version     $Revision: 1080 $
  62. -
  63.  */
  64. -
  65. -
  66. }
  67. -
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/classtrees_Doctrine.html b/api_documentation/trunk/classtrees_Doctrine.html deleted file mode 100644 index 478e53a74..000000000 --- a/api_documentation/trunk/classtrees_Doctrine.html +++ /dev/null @@ -1,552 +0,0 @@ - -
-

Class Trees for Package Doctrine

-
-
Root interface Doctrine_Adapter_Interface

- - -
-
Root interface Doctrine_Adapter_Statement_Interface

- - -
-
Root interface Doctrine_Cache_Interface

- - -
-
Root interface Doctrine_EventListener_Interface

- - -
-
Root interface Doctrine_Node_Interface

- - -
-
Root interface Doctrine_Overloadable

- - -
-
Root interface Doctrine_Query_Filter_Interface

- - -
-
Root interface Doctrine_Record_Listener_Interface

- - -
-
Root interface Doctrine_Search_Analyzer_Interface

- - -
-
Root interface Doctrine_Tree_Interface

- - -
-
Root interface Doctrine_Validator_Interface

- - -
-
Root class Doctrine

- - -
-
Root class Doctrine_Adapter

- - -
-
Root class Doctrine_Adapter_Mock

- - -
-
Root class Doctrine_Adapter_Statement

- - -
-
Root class Doctrine_Adapter_Statement_Mock

- - -
-
Root class Doctrine_AuditLog

- - -
-
Root class Doctrine_Cache_Array

- - -
-
Root class Doctrine_Cache_Driver

- - -
-
Root class Doctrine_Collection_Iterator

- - -
-
Root class Doctrine_Compiler

- - -
-
Root class Doctrine_Connection_Module

- - -
-
Root class Doctrine_Connection_Profiler

- - -
-
Root class Doctrine_Connection_Statement

- - -
-
Root class Doctrine_DataType

- - -
-
Root class Doctrine_Db

- - -
-
Root class Doctrine_Event

- - -
-
Root class Doctrine_EventListener

- - -
-
Root class Doctrine_Export_Reporter

- - -
-
Root class Doctrine_Export_Schema

- - -
-
Root class Doctrine_Expression

- - -
-
Root class Doctrine_Hook

- - -
-
Root class Doctrine_Hook_Parser

- - -
-
Root class Doctrine_Hydrate_Array

- - -
-
Root class Doctrine_Import_Builder

- - -
-
Root class Doctrine_Import_Reader

- - -
-
Root class Doctrine_Import_Reader_Exception

- - -
-
Root class Doctrine_Import_Schema

- - -
-
Root class Doctrine_IntegrityMapper

- - -
-
Root class Doctrine_Lib

- - -
-
Root class Doctrine_Locking_Manager_Pessimistic

- - -
-
Root class Doctrine_Node

- - -
-
Root class Doctrine_Node_AdjacencyList_LevelOrderIterator

- - -
-
Root class Doctrine_Node_AdjacencyList_PostOrderIterator

- - -
-
Root class Doctrine_Node_AdjacencyList_PreOrderIterator

- - -
-
Root class Doctrine_Node_MaterializedPath_LevelOrderIterator

- - -
-
Root class Doctrine_Node_MaterializedPath_PostOrderIterator

- - -
-
Root class Doctrine_Node_MaterializedPath_PreOrderIterator

- - -
-
Root class Doctrine_Node_NestedSet_LevelOrderIterator

- - -
-
Root class Doctrine_Node_NestedSet_PostOrderIterator

- - -
-
Root class Doctrine_Node_NestedSet_PreOrderIterator

- - -
-
Root class Doctrine_Null

- - -
-
Root class Doctrine_Object

- - -
-
Root class Doctrine_Plugin

- - -
-
Root class Doctrine_Query_Check

- - -
-
Root class Doctrine_Query_Filter

- - -
-
Root class Doctrine_Query_Filter_Chain

- - -
-
Root class Doctrine_Query_Parser

- - -
-
Root class Doctrine_Query_Part

- - -
-
Root class Doctrine_Record_Listener

- - -
-
Root class Doctrine_Relation

- - -
-
Root class Doctrine_Relation_Parser

- - -
-
Root class Doctrine_Search

- - -
-
Root class Doctrine_Search_Analyzer

- - -
-
Root class Doctrine_Search_Analyzer_Standard

- - -
-
Root class Doctrine_Search_Indexer

- - -
-
Root class Doctrine_Search_Indexer_Dir

- - -
-
Root class Doctrine_Search_Parser

- - -
-
Root class Doctrine_Search_Query

- - -
-
Root class Doctrine_Search_Scorer

- - -
-
Root class Doctrine_Table_Repository

- - -
-
Root class Doctrine_Tokenizer

- - -
-
Root class Doctrine_Tree

- - -
-
Root class Doctrine_Validator_Country

- - -
-
Root class Doctrine_Validator_Creditcard

- - -
-
Root class Doctrine_Validator_Date

- - -
-
Root class Doctrine_Validator_Email

- - -
-
Root class Doctrine_Validator_Enum

- - -
-
Root class Doctrine_Validator_HtmlColor

- - -
-
Root class Doctrine_Validator_Ip

- - -
-
Root class Doctrine_Validator_Minlength

- - -
-
Root class Doctrine_Validator_Nospace

- - -
-
Root class Doctrine_Validator_Notblank

- - -
-
Root class Doctrine_Validator_Notnull

- - -
-
Root class Doctrine_Validator_Range

- - -
-
Root class Doctrine_Validator_Regexp

- - -
-
Root class Doctrine_Validator_Unique

- - -
-
Root class Doctrine_Validator_Unsigned

- - -
-
Root class Doctrine_Validator_Usstate

- - -
-
Root class Doctrine_View

- - -
-
Root class ArrayIterator

- - -
-
Root class Exception

- - -
\ No newline at end of file diff --git a/api_documentation/trunk/elementindex.html b/api_documentation/trunk/elementindex.html deleted file mode 100644 index 2a6dd2d5d..000000000 --- a/api_documentation/trunk/elementindex.html +++ /dev/null @@ -1,5817 +0,0 @@ - -
- -

Index of All Elements

-

Package Indexes

- -
- [ a ] - [ b ] - [ c ] - [ d ] - [ e ] - [ f ] - [ g ] - [ h ] - [ i ] - [ j ] - [ k ] - [ l ] - [ m ] - [ n ] - [ o ] - [ p ] - [ q ] - [ r ] - [ s ] - [ t ] - [ u ] - [ v ] - [ w ] - [ x ] - [ y ] - [ _ ] -

- -
-
a
-
[Top]
-
-
-
-

a

-
-
$ACTION_CASCADE
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_CASCADE
    ON UPDATE or ON DELETE action
-
$ACTION_NO_ACTION
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_NO_ACTION
    ON UPDATE or ON DELETE action
-
$ACTION_RESTRICT
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_RESTRICT
    ON UPDATE or ON DELETE action
-
$ACTION_SET_DEFAULT
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_SET_DEFAULT
    ON UPDATE or ON DELETE action
-
$ACTION_SET_NULL
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_SET_NULL
    ON UPDATE or ON DELETE action
-
$aggregateMap
-
in file Hydrate.php, variable Doctrine_Hydrate::$aggregateMap
-
$attributes
-
in file Configurable.php, variable Doctrine_Configurable::$attributes
-
$availableDrivers
-
in file Connection.php, variable Doctrine_Connection::$availableDrivers
-
acos
-
in file Driver.php, method Doctrine_Expression_Driver::acos()
    returns arcus cosine SQL string
-
actAs
-
in file Abstract.php, method Doctrine_Record_Abstract::actAs()
    actAs loads a given plugin
-
add
-
in file Reporter.php, method Doctrine_Export_Reporter::add()
-
add
-
in file Chain.php, method Doctrine_Query_Filter_Chain::add()
    add
-
add
-
in file Chain.php, method Doctrine_EventListener_Chain::add()
    add adds a listener to the chain of listeners
-
add
-
in file Repository.php, method Doctrine_Table_Repository::add()
    add
-
add
-
in file Cache.php, method Doctrine_Cache::add()
    add adds a query to internal query stack
-
add
-
in file Chain.php, method Doctrine_Record_Listener_Chain::add()
    add adds a listener to the chain of listeners
-
add
-
in file Collection.php, method Doctrine_Collection::add()
    adds a record to collection
-
add
-
in file Dir.php, method Doctrine_Search_Indexer_Dir::add()
-
add
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::add()
    Adds an error to the stack.
-
add
-
in file Driver.php, method Doctrine_Expression_Driver::add()
    Returns the SQL to add values or expressions together.
-
addCheckConstraint
-
in file Table.php, method Doctrine_Table::addCheckConstraint()
    addCheckConstraint
-
addChild
-
in file Interface.php, method Doctrine_Node_Interface::addChild()
    adds node as last child of record
-
addChild
-
in file NestedSet.php, method Doctrine_Node_NestedSet::addChild()
    adds node as last child of record
-
addCollection
-
in file Transaction.php, method Doctrine_Transaction::addCollection()
    addCollection adds a collection in the internal array of collections
-
addColumn
-
in file Table.php, method Doctrine_Schema_Table::addColumn()
-
addComponent
-
in file RawSql.php, method Doctrine_RawSql::addComponent()
    addComponent
-
addComponent
-
in file Scorer.php, method Doctrine_Search_Scorer::addComponent()
-
addDatabase
-
in file Schema.php, method Doctrine_Schema::addDatabase()
-
addDelete
-
in file Transaction.php, method Doctrine_Transaction::addDelete()
    addDelete adds record into pending delete list
-
addDeleteAction
-
in file Manager.php, method Doctrine_Manager::addDeleteAction()
-
addEnumParam
-
in file Query.php, method Doctrine_Query::addEnumParam()
    addEnumParam sets input parameter as an enumerated parameter
-
addForeignKey
-
in file Table.php, method Doctrine_Table::addForeignKey()
    addForeignKey
-
addFrom
-
in file Abstract.php, method Doctrine_Query_Abstract::addFrom()
    addFrom adds fields to the FROM part of the query
-
addGroupBy
-
in file Abstract.php, method Doctrine_Query_Abstract::addGroupBy()
    addGroupBy adds fields to the GROUP BY part of the query
-
addHaving
-
in file Abstract.php, method Doctrine_Query_Abstract::addHaving()
    addHaving adds conditions to the HAVING part of the query
-
addIndex
-
in file Table.php, method Doctrine_Table::addIndex()
    addIndex
-
addInvalid
-
in file Transaction.php, method Doctrine_Transaction::addInvalid()
    addInvalid adds record into invalid records list
-
addListener
-
in file Configurable.php, method Doctrine_Configurable::addListener()
    addListener
-
addListener
-
in file Abstract.php, method Doctrine_Record_Abstract::addListener()
    addListener
-
addOrderBy
-
in file Abstract.php, method Doctrine_Query_Abstract::addOrderBy()
    addOrderBy adds fields to the ORDER BY part of the query
-
addPendingJoinCondition
-
in file Query.php, method Doctrine_Query::addPendingJoinCondition()
    addPendingJoinCondition
-
addQuery
-
in file Mock.php, method Doctrine_Adapter_Mock::addQuery()
-
addQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::addQueryPart()
    addQueryPart adds a query part in the query part array
-
addRecord
-
in file Table.php, method Doctrine_Table::addRecord()
    addRecord adds a record to identity map
-
addRecordListener
-
in file Configurable.php, method Doctrine_Configurable::addRecordListener()
    addRecordListener
-
addSelect
-
in file Abstract.php, method Doctrine_Query_Abstract::addSelect()
    addSelect adds fields to the SELECT part of the query
-
addTable
-
in file Connection.php, method Doctrine_Connection::addTable()
    addTable adds a Doctrine_Table object into connection registry
-
addTable
-
in file Database.php, method Doctrine_Schema_Database::addTable()
-
addTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::addTableAlias()
    addTableAlias adds an alias for table and associates it with given component alias
-
addTemplate
-
in file Table.php, method Doctrine_Table::addTemplate()
-
addUpdateAction
-
in file Manager.php, method Doctrine_Manager::addUpdateAction()
-
addWhere
-
in file Abstract.php, method Doctrine_Query_Abstract::addWhere()
    addWhere adds conditions to the WHERE part of the query
-
advanceIndex
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::advanceIndex()
-
age
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::age()
    PostgreSQLs AGE(<timestamp1> [, <timestamp2>]) function.
-
alterTable
-
in file Mssql.php, method Doctrine_Export_Mssql::alterTable()
    alter an existing table
-
alterTable
-
in file Firebird.php, method Doctrine_Export_Firebird::alterTable()
    alter an existing table
-
alterTable
-
in file Pgsql.php, method Doctrine_Export_Pgsql::alterTable()
    alter an existing table
-
alterTable
-
in file Frontbase.php, method Doctrine_Export_Frontbase::alterTable()
    alter an existing table
-
alterTable
-
in file Oracle.php, method Doctrine_Export_Oracle::alterTable()
    alter an existing table
-
alterTable
-
in file Export.php, method Doctrine_Export::alterTable()
    alter an existing table (this method is implemented by the drivers)
-
alterTableSql
-
in file Mysql.php, method Doctrine_Export_Mysql::alterTableSql()
    alter an existing table
-
alterTableSql
-
in file Export.php, method Doctrine_Export::alterTableSql()
    generates the sql for altering an existing table (this method is implemented by the drivers)
-
analyze
-
in file Search.php, method Doctrine_Search::analyze()
-
analyze
-
in file Interface.php, method Doctrine_Search_Analyzer_Interface::analyze()
-
analyze
-
in file Standard.php, method Doctrine_Search_Analyzer_Standard::analyze()
-
analyze
-
in file Analyzer.php, method Doctrine_Search_Analyzer::analyze()
-
appendStats
-
in file Cache.php, method Doctrine_Cache::appendStats()
    appendStats
-
applyInheritance
-
in file Table.php, method Doctrine_Table::applyInheritance()
    applyInheritance
-
applyInheritance
-
in file Hydrate.php, method Doctrine_Hydrate::applyInheritance()
    applyInheritance applies column aggregation inheritance to DQL / SQL query
-
assignDefaultValues
-
in file Record.php, method Doctrine_Record::assignDefaultValues()
    setDefaultValues sets the default values for records internal data
-
assignDefaultValues
-
in file Filter.php, method Doctrine_Record_Filter::assignDefaultValues()
    setDefaultValues sets the default values for records internal data
-
assignIdentifier
-
in file Record.php, method Doctrine_Record::assignIdentifier()
    assignIdentifier
-
attribute
-
in file Abstract.php, method Doctrine_Record_Abstract::attribute()
    attribute sets or retrieves an option
-
ATTR_ACCESSORS
-
in file Doctrine.php, class constant Doctrine::ATTR_ACCESSORS
-
ATTR_ACCESSOR_PREFIX_GET
-
in file Doctrine.php, class constant Doctrine::ATTR_ACCESSOR_PREFIX_GET
-
ATTR_ACCESSOR_PREFIX_SET
-
in file Doctrine.php, class constant Doctrine::ATTR_ACCESSOR_PREFIX_SET
-
ATTR_AUTOCOMMIT
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_AUTOCOMMIT
-
ATTR_AUTOCOMMIT
-
in file Doctrine.php, class constant Doctrine::ATTR_AUTOCOMMIT
    PDO derived attributes
-
ATTR_AUTO_LENGTH_VLD
-
in file Doctrine.php, class constant Doctrine::ATTR_AUTO_LENGTH_VLD
-
ATTR_AUTO_TYPE_VLD
-
in file Doctrine.php, class constant Doctrine::ATTR_AUTO_TYPE_VLD
-
ATTR_BATCH_SIZE
-
in file Doctrine.php, class constant Doctrine::ATTR_BATCH_SIZE
-
ATTR_CACHE
-
in file Doctrine.php, class constant Doctrine::ATTR_CACHE
-
ATTR_CACHE_LIFESPAN
-
in file Doctrine.php, class constant Doctrine::ATTR_CACHE_LIFESPAN
-
ATTR_CASE
-
in file Doctrine.php, class constant Doctrine::ATTR_CASE
-
ATTR_CASE
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CASE
-
ATTR_CLIENT_VERSION
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CLIENT_VERSION
-
ATTR_CLIENT_VERSION
-
in file Doctrine.php, class constant Doctrine::ATTR_CLIENT_VERSION
-
ATTR_CMPNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_CMPNAME_FORMAT
-
ATTR_COLL_KEY
-
in file Doctrine.php, class constant Doctrine::ATTR_COLL_KEY
-
ATTR_COLL_LIMIT
-
in file Doctrine.php, class constant Doctrine::ATTR_COLL_LIMIT
-
ATTR_CONNECTION_STATUS
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CONNECTION_STATUS
-
ATTR_CONNECTION_STATUS
-
in file Doctrine.php, class constant Doctrine::ATTR_CONNECTION_STATUS
-
ATTR_CREATE_TABLES
-
in file Doctrine.php, class constant Doctrine::ATTR_CREATE_TABLES
-
ATTR_CURSOR
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CURSOR
-
ATTR_CURSOR
-
in file Doctrine.php, class constant Doctrine::ATTR_CURSOR
-
ATTR_CURSOR_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_CURSOR_NAME
-
ATTR_CURSOR_NAME
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CURSOR_NAME
-
ATTR_DBNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_DBNAME_FORMAT
-
ATTR_DECIMAL_PLACES
-
in file Doctrine.php, class constant Doctrine::ATTR_DECIMAL_PLACES
-
ATTR_DEFAULT_SEQUENCE
-
in file Doctrine.php, class constant Doctrine::ATTR_DEFAULT_SEQUENCE
-
ATTR_DEFAULT_TABLE_TYPE
-
in file Doctrine.php, class constant Doctrine::ATTR_DEFAULT_TABLE_TYPE
-
ATTR_DEF_TABLESPACE
-
in file Doctrine.php, class constant Doctrine::ATTR_DEF_TABLESPACE
-
ATTR_DEF_TEXT_LENGTH
-
in file Doctrine.php, class constant Doctrine::ATTR_DEF_TEXT_LENGTH
-
ATTR_DEF_VARCHAR_LENGTH
-
in file Doctrine.php, class constant Doctrine::ATTR_DEF_VARCHAR_LENGTH
-
ATTR_DRIVER_NAME
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_DRIVER_NAME
-
ATTR_DRIVER_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_DRIVER_NAME
-
ATTR_EMULATE_DATABASE
-
in file Doctrine.php, class constant Doctrine::ATTR_EMULATE_DATABASE
-
ATTR_ERRMODE
-
in file Doctrine.php, class constant Doctrine::ATTR_ERRMODE
-
ATTR_ERRMODE
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_ERRMODE
-
ATTR_EXPORT
-
in file Doctrine.php, class constant Doctrine::ATTR_EXPORT
-
ATTR_FETCHMODE
-
in file Doctrine.php, class constant Doctrine::ATTR_FETCHMODE
    TODO: REMOVE THE FOLLOWING CONSTANTS AND UPDATE THE DOCS !
-
ATTR_FETCH_CATALOG_NAMES
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_FETCH_CATALOG_NAMES
-
ATTR_FETCH_CATALOG_NAMES
-
in file Doctrine.php, class constant Doctrine::ATTR_FETCH_CATALOG_NAMES
-
ATTR_FETCH_TABLE_NAMES
-
in file Doctrine.php, class constant Doctrine::ATTR_FETCH_TABLE_NAMES
-
ATTR_FETCH_TABLE_NAMES
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_FETCH_TABLE_NAMES
-
ATTR_FIELD_CASE
-
in file Doctrine.php, class constant Doctrine::ATTR_FIELD_CASE
-
ATTR_IDXNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_IDXNAME_FORMAT
-
ATTR_LISTENER
-
in file Doctrine.php, class constant Doctrine::ATTR_LISTENER
    Doctrine constants
-
ATTR_LOAD_REFERENCES
-
in file Doctrine.php, class constant Doctrine::ATTR_LOAD_REFERENCES
-
ATTR_LOCKMODE
-
in file Doctrine.php, class constant Doctrine::ATTR_LOCKMODE
-
ATTR_MAX_COLUMN_LEN
-
in file Doctrine.php, class constant Doctrine::ATTR_MAX_COLUMN_LEN
-
ATTR_MAX_COLUMN_LEN
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_MAX_COLUMN_LEN
-
ATTR_NAME_PREFIX
-
in file Doctrine.php, class constant Doctrine::ATTR_NAME_PREFIX
-
ATTR_NS_GAP_DECREASE_EXP
-
in file Doctrine.php, class constant Doctrine::ATTR_NS_GAP_DECREASE_EXP
-
ATTR_NS_GAP_SIZE
-
in file Doctrine.php, class constant Doctrine::ATTR_NS_GAP_SIZE
-
ATTR_NS_ROOT_COLUMN_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_NS_ROOT_COLUMN_NAME
    NESTED SET CONSTANTS
-
ATTR_ORACLE_NULLS
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_ORACLE_NULLS
-
ATTR_ORACLE_NULLS
-
in file Doctrine.php, class constant Doctrine::ATTR_ORACLE_NULLS
-
ATTR_PERSISTENT
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_PERSISTENT
-
ATTR_PERSISTENT
-
in file Doctrine.php, class constant Doctrine::ATTR_PERSISTENT
-
ATTR_PORTABILITY
-
in file Doctrine.php, class constant Doctrine::ATTR_PORTABILITY
-
ATTR_PREFETCH
-
in file Doctrine.php, class constant Doctrine::ATTR_PREFETCH
-
ATTR_PREFETCH
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_PREFETCH
-
ATTR_QUERY_LIMIT
-
in file Doctrine.php, class constant Doctrine::ATTR_QUERY_LIMIT
-
ATTR_QUOTE_IDENTIFIER
-
in file Doctrine.php, class constant Doctrine::ATTR_QUOTE_IDENTIFIER
-
ATTR_RECORD_LISTENER
-
in file Doctrine.php, class constant Doctrine::ATTR_RECORD_LISTENER
-
ATTR_SEQCOL_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_SEQCOL_NAME
-
ATTR_SEQNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_SEQNAME_FORMAT
-
ATTR_SERVER_INFO
-
in file Doctrine.php, class constant Doctrine::ATTR_SERVER_INFO
-
ATTR_SERVER_INFO
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_SERVER_INFO
-
ATTR_SERVER_VERSION
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_SERVER_VERSION
-
ATTR_SERVER_VERSION
-
in file Doctrine.php, class constant Doctrine::ATTR_SERVER_VERSION
-
ATTR_STATEMENT_CLASS
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_STATEMENT_CLASS
-
ATTR_STATEMENT_CLASS
-
in file Doctrine.php, class constant Doctrine::ATTR_STATEMENT_CLASS
-
ATTR_STRINGIFY_FETCHES
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_STRINGIFY_FETCHES
-
ATTR_STRINGIFY_FETCHES
-
in file Doctrine.php, class constant Doctrine::ATTR_STRINGIFY_FETCHES
-
ATTR_TBLCLASS_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_TBLCLASS_FORMAT
-
ATTR_THROW_EXCEPTIONS
-
in file Doctrine.php, class constant Doctrine::ATTR_THROW_EXCEPTIONS
-
ATTR_TIMEOUT
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_TIMEOUT
-
ATTR_TIMEOUT
-
in file Doctrine.php, class constant Doctrine::ATTR_TIMEOUT
-
ATTR_VLD
-
in file Doctrine.php, class constant Doctrine::ATTR_VLD
-
autoload
-
in file Doctrine.php, method Doctrine::autoload()
    simple autoload function returns true if the class was loaded, otherwise false
-
avg
-
in file Driver.php, method Doctrine_Expression_Driver::avg()
    Returns the average value of a column
-
Access.php
-
procedural page Access.php
-
Adapter.php
-
procedural page Adapter.php
-
AuditLog.php
-
procedural page AuditLog.php
-
Apc.php
-
procedural page Apc.php
-
Array.php
-
procedural page Array.php
-
Array.php
-
procedural page Array.php
-
AdjacencyList.php
-
procedural page AdjacencyList.php
-
Abstract.php
-
procedural page Abstract.php
-
Abstract.php
-
procedural page Abstract.php
-
Association.php
-
procedural page Association.php
-
Analyzer.php
-
procedural page Analyzer.php
-
AdjacencyList.php
-
procedural page AdjacencyList.php
-
-
- -
-
b
-
[Top]
-
-
-
-

b

-
-
basicMath
-
in file Driver.php, method Doctrine_Expression_Driver::basicMath()
    Returns the SQL to perform the same mathematical operation over an array of values or expressions.
-
beginTransaction
-
in file Interface.php, method Doctrine_Adapter_Interface::beginTransaction()
-
beginTransaction
-
in file Connection.php, method Doctrine_Connection::beginTransaction()
    beginTransaction Start a transaction or set a savepoint.
-
beginTransaction
-
in file Transaction.php, method Doctrine_Transaction::beginTransaction()
    beginTransaction Start a transaction or set a savepoint.
-
beginTransaction
-
in file Mock.php, method Doctrine_Adapter_Mock::beginTransaction()
-
between
-
in file Driver.php, method Doctrine_Expression_Driver::between()
    Returns SQL that checks if an expression evaluates to a value between two values.
-
bind
-
in file Parser.php, method Doctrine_Relation_Parser::bind()
    binds a relation
-
bind
-
in file Table.php, method Doctrine_Table::bind()
-
bindColumn
-
in file Statement.php, method Doctrine_Connection_Statement::bindColumn()
    bindColumn Bind a column to a PHP variable
-
bindColumn
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::bindColumn()
    bindColumn Bind a column to a PHP variable
-
bindColumn
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::bindColumn()
    bindColumn Bind a column to a PHP variable
-
bindComponent
-
in file Manager.php, method Doctrine_Manager::bindComponent()
    bindComponent
-
bindParam
-
in file Statement.php, method Doctrine_Connection_Statement::bindParam()
    bindParam
-
bindParam
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::bindParam()
    bindParam
-
bindParam
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::bindParam()
    bindParam
-
bindValue
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::bindValue()
    bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
bindValue
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::bindValue()
    bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
bindValue
-
in file Statement.php, method Doctrine_Adapter_Statement::bindValue()
-
bindValue
-
in file Statement.php, method Doctrine_Connection_Statement::bindValue()
    bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
bracketExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::bracketExplode()
    bracketExplode
-
bracketTrim
-
in file Tokenizer.php, method Doctrine_Tokenizer::bracketTrim()
    trims brackets
-
build
-
in file Schema.php, method Doctrine_Export_Schema::build()
    build
-
build
-
in file Xml.php, method Doctrine_Export_Schema_Xml::build()
    build
-
build
-
in file Yml.php, method Doctrine_Export_Schema_Yml::build()
    build
-
buildColumnDefinition
-
in file Builder.php, method Doctrine_Import_Builder::buildColumnDefinition()
-
buildDefinition
-
in file Builder.php, method Doctrine_Import_Builder::buildDefinition()
-
buildDefinition
-
in file Search.php, method Doctrine_Search::buildDefinition()
-
buildDefinition
-
in file AuditLog.php, method Doctrine_AuditLog::buildDefinition()
-
buildFlushTree
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::buildFlushTree()
    buildFlushTree builds a flush tree that is used in transactions
-
buildFromPart
-
in file Query.php, method Doctrine_Query::buildFromPart()
    buildFromPart builds the from part of the query and returns it
-
buildIntegrityRelationQuery
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::buildIntegrityRelationQuery()
-
buildIntegrityRelations
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::buildIntegrityRelations()
-
buildRecord
-
in file Builder.php, method Doctrine_Import_Builder::buildRecord()
-
buildRelationDefinition
-
in file Builder.php, method Doctrine_Import_Builder::buildRelationDefinition()
-
buildSchema
-
in file Schema.php, method Doctrine_Export_Schema::buildSchema()
    buildSchema
-
bulkDelete
-
in file Transaction.php, method Doctrine_Transaction::bulkDelete()
    bulkDelete deletes all records from the pending delete list
-
BaseClass.php
-
procedural page BaseClass.php
-
Builder.php
-
procedural page Builder.php
-
-
- -
-
c
-
[Top]
-
-
-
-

c

-
-
$children
-
in file Object.php, variable Doctrine_Schema_Object::$children
-
$childs
-
in file Schema.php, variable Doctrine_Schema::$childs
    Holds any number of databases contained in the schema
-
$childs
-
in file Database.php, variable Doctrine_Schema_Database::$childs
-
$collection
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$collection
-
$collection
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$collection
-
$columnAliases
-
in file Table.php, variable Doctrine_Table::$columnAliases
-
$columnCount
-
in file Table.php, variable Doctrine_Table::$columnCount
-
$columns
-
in file Table.php, variable Doctrine_Table::$columns
-
$condition
-
in file Parser.php, variable Doctrine_Hook_Parser::$condition
-
$conn
-
in file Module.php, variable Doctrine_Connection_Module::$conn
-
$conn
-
in file Table.php, variable Doctrine_Table::$conn
-
$conn
-
in file Pessimistic.php, variable Doctrine_Locking_Manager_Pessimistic::$conn
    The conn that is used by the locking manager
-
$conn
-
in file View.php, variable Doctrine_View::$conn
-
$count
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$count
-
$count
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$count
-
$countries
-
in file Country.php, variable Doctrine_Validator_Country::$countries
-
$curNode
-
in file LevelOrderIterator.php, variable Doctrine_Node_MaterializedPath_LevelOrderIterator::$curNode
-
$curNode
-
in file PreOrderIterator.php, variable Doctrine_Node_MaterializedPath_PreOrderIterator::$curNode
-
$curNode
-
in file PostOrderIterator.php, variable Doctrine_Node_MaterializedPath_PostOrderIterator::$curNode
-
call
-
in file Record.php, method Doctrine_Record::call()
    call
-
CASE_LOWER
-
in file Adapter.php, class constant Doctrine_Adapter::CASE_LOWER
-
CASE_LOWER
-
in file Doctrine.php, class constant Doctrine::CASE_LOWER
    PDO derived constants
-
CASE_NATURAL
-
in file Adapter.php, class constant Doctrine_Adapter::CASE_NATURAL
-
CASE_NATURAL
-
in file Doctrine.php, class constant Doctrine::CASE_NATURAL
-
CASE_UPPER
-
in file Adapter.php, class constant Doctrine_Adapter::CASE_UPPER
-
CASE_UPPER
-
in file Doctrine.php, class constant Doctrine::CASE_UPPER
-
check
-
in file Abstract.php, method Doctrine_Record_Abstract::check()
    check adds a check constraint
-
checkSequence
-
in file Mssql.php, method Doctrine_Connection_Mssql::checkSequence()
    Checks if there's a sequence that exists.
-
checkSequence
-
in file Mssql.php, method Doctrine_Sequence_Mssql::checkSequence()
    Checks if there's a sequence that exists.
-
checkSupportedChanges
-
in file Firebird.php, method Doctrine_Export_Firebird::checkSupportedChanges()
    Check if planned changes are supported
-
classify
-
in file Doctrine.php, method Doctrine::classify()
    returns class name from table name
-
clauseExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::clauseExplode()
    clauseExplode
-
clean
-
in file Cache.php, method Doctrine_Cache::clean()
    save
-
cleanData
-
in file Record.php, method Doctrine_Record::cleanData()
    cleanData
-
clear
-
in file Table.php, method Doctrine_Table::clear()
    clear clears the first level cache (identityMap)
-
clear
-
in file Hydrate.php, method Doctrine_Hydrate::clear()
    clear resets all the variables
-
clear
-
in file Connection.php, method Doctrine_Connection::clear()
    clear clears all repositories
-
clear
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::clear()
    Removes all errors from the stack.
-
close
-
in file Connection.php, method Doctrine_Connection::close()
    close closes the connection
-
closeConnection
-
in file Oracle.php, method Doctrine_Adapter_Oracle::closeConnection()
    Force the connection to close.
-
closeConnection
-
in file Db2.php, method Doctrine_Adapter_Db2::closeConnection()
    Force the connection to close.
-
closeConnection
-
in file Manager.php, method Doctrine_Manager::closeConnection()
    closes the connection
-
closeConnection
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::closeConnection()
    Force the connection to close.
-
closeCursor
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::closeCursor()
    closeCursor Closes the cursor, enabling the statement to be executed again.
-
closeCursor
-
in file Statement.php, method Doctrine_Connection_Statement::closeCursor()
    closeCursor Closes the cursor, enabling the statement to be executed again.
-
closeCursor
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::closeCursor()
    closeCursor Closes the cursor, enabling the statement to be executed again.
-
columnCount
-
in file Statement.php, method Doctrine_Connection_Statement::columnCount()
    columnCount Returns the number of columns in the result set
-
columnCount
-
in file Record.php, method Doctrine_Record::columnCount()
    alias for count()
-
columnCount
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::columnCount()
    columnCount Returns the number of columns in the result set
-
columnCount
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::columnCount()
    columnCount Returns the number of columns in the result set
-
columnCount
-
in file Statement.php, method Doctrine_Adapter_Statement::columnCount()
-
commit
-
in file Interface.php, method Doctrine_Adapter_Interface::commit()
-
commit
-
in file Mock.php, method Doctrine_Adapter_Mock::commit()
-
commit
-
in file Transaction.php, method Doctrine_Transaction::commit()
    commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail.
-
commit
-
in file Connection.php, method Doctrine_Connection::commit()
    commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail.
-
compareDefinition
-
in file DataDict.php, method Doctrine_DataDict::compareDefinition()
    Obtain an array of changes that may need to applied
-
compile
-
in file Doctrine.php, method Doctrine::compile()
    compile
-
compile
-
in file Compiler.php, method Doctrine_Compiler::compile()
    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
-
completeAssocDefinition
-
in file Parser.php, method Doctrine_Relation_Parser::completeAssocDefinition()
    Completes the given association definition
-
completeDefinition
-
in file Parser.php, method Doctrine_Relation_Parser::completeDefinition()
    Completes the given definition
-
concat
-
in file Mssql.php, method Doctrine_Expression_Mssql::concat()
    Returns string to concatenate two or more string parameters
-
concat
-
in file Oracle.php, method Doctrine_Expression_Oracle::concat()
    Returns a series of strings concatinated
-
concat
-
in file Driver.php, method Doctrine_Expression_Driver::concat()
    Returns a series of strings concatinated
-
concat
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::concat()
-
concatImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::concatImpl()
    Returns a concatenation of the data that SQLite's concat() function receives.
-
connect
-
in file Sqlite.php, method Doctrine_Connection_Sqlite::connect()
    initializes database functions missing in sqlite
-
connect
-
in file Connection.php, method Doctrine_Connection::connect()
    connect connects into database
-
connection
-
in file Manager.php, method Doctrine_Manager::connection()
    connection
-
CONN_CLOSE
-
in file Event.php, class constant Doctrine_Event::CONN_CLOSE
-
CONN_CONNECT
-
in file Event.php, class constant Doctrine_Event::CONN_CONNECT
-
CONN_ERROR
-
in file Event.php, class constant Doctrine_Event::CONN_ERROR
-
CONN_EXEC
-
in file Event.php, class constant Doctrine_Event::CONN_EXEC
-
CONN_PREPARE
-
in file Event.php, class constant Doctrine_Event::CONN_PREPARE
-
CONN_QUERY
-
in file Event.php, class constant Doctrine_Event::CONN_QUERY
    CONNECTION EVENT CODES
-
construct
-
in file Record.php, method Doctrine_Record::construct()
    construct Empty tempalte method to provide concrete Record classes with the possibility to hook into the constructor procedure
-
contains
-
in file Manager.php, method Doctrine_Manager::contains()
    contains whether or not the manager contains specified connection
-
contains
-
in file Db.php, method Doctrine_Cache_Db::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Memcache.php, method Doctrine_Cache_Memcache::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Column.php, method Doctrine_Column::contains()
    contains
-
contains
-
in file Repository.php, method Doctrine_Table_Repository::contains()
    contains
-
contains
-
in file Apc.php, method Doctrine_Cache_Apc::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Array.php, method Doctrine_Cache_Array::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Collection.php, method Doctrine_Collection::contains()
    contains whether or not this collection contains a specified element
-
contains
-
in file Interface.php, method Doctrine_Cache_Interface::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::contains()
    Enter description here...
-
contains
-
in file Object.php, method Doctrine_Schema_Object::contains()
-
contains
-
in file Record.php, method Doctrine_Record::contains()
    contains
-
convertBooleans
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::convertBooleans()
    convertBoolean some drivers need the boolean values to be converted into integers when using DQL API
-
convertBooleans
-
in file Connection.php, method Doctrine_Connection::convertBooleans()
    convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
-
convertBooleans
-
in file Formatter.php, method Doctrine_Formatter::convertBooleans()
    convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
-
convertEnums
-
in file Query.php, method Doctrine_Query::convertEnums()
    convertEnums convert enum parameters to their integer equivalents
-
convertEnums
-
in file Hydrate.php, method Doctrine_Hydrate::convertEnums()
-
copy
-
in file Query.php, method Doctrine_Query::copy()
-
copy
-
in file Record.php, method Doctrine_Record::copy()
    copy returns a copy of this object
-
copyAliases
-
in file Hydrate.php, method Doctrine_Hydrate::copyAliases()
    copyAliases copy aliases from another Hydrate object
-
copyDeep
-
in file Record.php, method Doctrine_Record::copyDeep()
    copyDeep returns a copy of this object and all its related objects
-
coreSetRelated
-
in file Record.php, method Doctrine_Record::coreSetRelated()
-
count
-
in file Column.php, method Doctrine_Column::count()
    count
-
count
-
in file Profiler.php, method Doctrine_Connection_Profiler::count()
    count
-
count
-
in file Mock.php, method Doctrine_Adapter_Mock::count()
-
count
-
in file Repository.php, method Doctrine_Table_Repository::count()
    count
-
count
-
in file Table.php, method Doctrine_Table::count()
    count
-
count
-
in file Cache.php, method Doctrine_Cache::count()
    count
-
count
-
in file Collection.php, method Doctrine_Collection::count()
    count this class implements interface countable returns the number of records in this collection
-
count
-
in file Array.php, method Doctrine_Cache_Array::count()
    count
-
count
-
in file Manager.php, method Doctrine_Manager::count()
    count returns the number of opened connections
-
count
-
in file Connection.php, method Doctrine_Connection::count()
    returns the count of initialized table objects
-
count
-
in file Driver.php, method Doctrine_Expression_Driver::count()
    Returns the number of rows (without a NULL value) of a column
-
count
-
in file Object.php, method Doctrine_Schema_Object::count()
-
count
-
in file Query.php, method Doctrine_Query::count()
    count fetches the count of the query
-
count
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::count()
    Enter description here...
-
count
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::count()
-
count
-
in file Exception.php, method Doctrine_Validator_Exception::count()
-
count
-
in file Record.php, method Doctrine_Record::count()
    count this class implements countable interface
-
count
-
in file Db.php, method Doctrine_Cache_Db::count()
    count returns the number of cached elements
-
CREATE
-
in file Hydrate.php, class constant Doctrine_Hydrate::CREATE
    constant for CREATE queries
-
create
-
in file View.php, method Doctrine_View::create()
    create creates this view
-
CREATE
-
in file View.php, class constant Doctrine_View::CREATE
    SQL CREATE constant
-
create
-
in file Table.php, method Doctrine_Table::create()
    create creates a new record
-
create
-
in file Connection.php, method Doctrine_Connection::create()
    create creates a record
-
create
-
in file Query.php, method Doctrine_Query::create()
    create returns a new Doctrine_Query object
-
createConstraint
-
in file Export.php, method Doctrine_Export::createConstraint()
    create a constraint on a table
-
createConstraint
-
in file Firebird.php, method Doctrine_Export_Firebird::createConstraint()
    create a constraint on a table
-
createConstraintSql
-
in file Export.php, method Doctrine_Export::createConstraintSql()
    create a constraint on a table
-
createDatabase
-
in file Oracle.php, method Doctrine_Export_Oracle::createDatabase()
    create a new database
-
createDatabase
-
in file Export.php, method Doctrine_Export::createDatabase()
    create a new database (this method is implemented by the drivers)
-
createDatabase
-
in file Firebird.php, method Doctrine_Export_Firebird::createDatabase()
    create a new database
-
createDatabase
-
in file Mssql.php, method Doctrine_Export_Mssql::createDatabase()
    create a new database
-
createDatabaseSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::createDatabaseSql()
    create a new database
-
createDatabaseSql
-
in file Export.php, method Doctrine_Export::createDatabaseSql()
    create a new database (this method is implemented by the drivers)
-
createDatabaseSql
-
in file Mysql.php, method Doctrine_Export_Mysql::createDatabaseSql()
    create a new database
-
createDatabaseSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createDatabaseSql()
    create a new database
-
createForeignKeySql
-
in file Export.php, method Doctrine_Export::createForeignKeySql()
    createForeignKeySql
-
createForeignKeySql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createForeignKeySql()
    createForeignKeySql
-
createIndex
-
in file Export.php, method Doctrine_Export::createIndex()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Export.php, method Doctrine_Export::createIndexSql()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Firebird.php, method Doctrine_Export_Firebird::createIndexSql()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Sqlite.php, method Doctrine_Export_Sqlite::createIndexSql()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Mysql.php, method Doctrine_Export_Mysql::createIndexSql()
    Get the stucture of a field into an array
-
createQuery
-
in file Table.php, method Doctrine_Table::createQuery()
    createQuery creates a new Doctrine_Query object and adds the component name of this table as the query 'from' part
-
createRoot
-
in file Interface.php, method Doctrine_Tree_Interface::createRoot()
    creates root node from given record or from a new record
-
createRoot
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::createRoot()
    creates root node from given record or from a new record
-
createSavePoint
-
in file Firebird.php, method Doctrine_Transaction_Firebird::createSavePoint()
    createSavepoint creates a new savepoint
-
createSavePoint
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::createSavePoint()
    createSavepoint creates a new savepoint
-
createSavePoint
-
in file Mysql.php, method Doctrine_Transaction_Mysql::createSavePoint()
    createSavepoint creates a new savepoint
-
createSavePoint
-
in file Transaction.php, method Doctrine_Transaction::createSavePoint()
    releaseSavePoint creates a new savepoint
-
createSavePoint
-
in file Oracle.php, method Doctrine_Transaction_Oracle::createSavePoint()
    createSavepoint creates a new savepoint
-
createSequence
-
in file Mssql.php, method Doctrine_Export_Mssql::createSequence()
    create sequence
-
createSequence
-
in file Frontbase.php, method Doctrine_Export_Frontbase::createSequence()
    create sequence
-
createSequence
-
in file Mysql.php, method Doctrine_Export_Mysql::createSequence()
    create sequence
-
createSequence
-
in file Export.php, method Doctrine_Export::createSequence()
    create sequence
-
createSequence
-
in file Sqlite.php, method Doctrine_Export_Sqlite::createSequence()
    create sequence
-
createSequence
-
in file Firebird.php, method Doctrine_Export_Firebird::createSequence()
    create sequence
-
createSequenceSql
-
in file Oracle.php, method Doctrine_Export_Oracle::createSequenceSql()
    create sequence
-
createSequenceSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createSequenceSql()
    return RDBMS specific create sequence statement
-
createSequenceSql
-
in file Export.php, method Doctrine_Export::createSequenceSql()
    return RDBMS specific create sequence statement (this method is implemented by the drivers)
-
createSubquery
-
in file Hydrate.php, method Doctrine_Hydrate::createSubquery()
    createSubquery creates a subquery
-
createTable
-
in file Firebird.php, method Doctrine_Export_Firebird::createTable()
    create a new table
-
createTable
-
in file Oracle.php, method Doctrine_Export_Oracle::createTable()
    create a new table
-
createTable
-
in file Db.php, method Doctrine_Cache_Db::createTable()
    Creates the cache table.
-
createTable
-
in file Export.php, method Doctrine_Export::createTable()
    create a new table
-
createTableSql
-
in file Oracle.php, method Doctrine_Export_Oracle::createTableSql()
    create a new table
-
createTableSql
-
in file Sqlite.php, method Doctrine_Export_Sqlite::createTableSql()
    create a new table
-
createTableSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createTableSql()
    Creates a table.
-
createTableSql
-
in file Export.php, method Doctrine_Export::createTableSql()
    create a new table
-
createTableSql
-
in file Mysql.php, method Doctrine_Export_Mysql::createTableSql()
    create a new table
-
current
-
in file Iterator.php, method Doctrine_Collection_Iterator::current()
    returns the current record
-
current
-
in file Iterator.php, method Doctrine_Record_Iterator::current()
    current
-
current
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::current()
-
current
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::current()
-
current
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::current()
    returns the current record
-
current
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::current()
-
currId
-
in file Sequence.php, method Doctrine_Sequence::currId()
    Returns the current id of a sequence
-
currId
-
in file Firebird.php, method Doctrine_Sequence_Firebird::currId()
    Returns the current id of a sequence
-
currId
-
in file Sqlite.php, method Doctrine_Sequence_Sqlite::currId()
    Returns the current id of a sequence
-
currId
-
in file Mssql.php, method Doctrine_Sequence_Mssql::currId()
    Returns the current id of a sequence
-
currId
-
in file Pgsql.php, method Doctrine_Sequence_Pgsql::currId()
    Returns the current id of a sequence
-
currID
-
in file Oracle.php, method Doctrine_Sequence_Oracle::currID()
    Returns the current id of a sequence
-
currId
-
in file Mysql.php, method Doctrine_Sequence_Mysql::currId()
    Returns the current id of a sequence
-
CURSOR_FWDONLY
-
in file Adapter.php, class constant Doctrine_Adapter::CURSOR_FWDONLY
-
CURSOR_FWDONLY
-
in file Doctrine.php, class constant Doctrine::CURSOR_FWDONLY
-
CURSOR_SCROLL
-
in file Adapter.php, class constant Doctrine_Adapter::CURSOR_SCROLL
-
CURSOR_SCROLL
-
in file Doctrine.php, class constant Doctrine::CURSOR_SCROLL
-
Cache.php
-
procedural page Cache.php
-
Collection.php
-
procedural page Collection.php
-
Column.php
-
procedural page Column.php
-
Compiler.php
-
procedural page Compiler.php
-
Configurable.php
-
procedural page Configurable.php
-
Common.php
-
procedural page Common.php
-
Connection.php
-
procedural page Connection.php
-
Chain.php
-
procedural page Chain.php
-
Complex.php
-
procedural page Complex.php
-
Check.php
-
procedural page Check.php
-
Condition.php
-
procedural page Condition.php
-
Chain.php
-
procedural page Chain.php
-
Chain.php
-
procedural page Chain.php
-
Column.php
-
procedural page Column.php
-
Country.php
-
procedural page Country.php
-
Creditcard.php
-
procedural page Creditcard.php
-
-
- -
-
d
-
[Top]
-
-
-
-

d

-
-
$data
-
in file Array.php, variable Doctrine_Cache_Array::$data
-
$data
-
in file Collection.php, variable Doctrine_Collection::$data
-
$data
-
in file Table.php, variable Doctrine_Table::$data
-
$dbh
-
in file Connection.php, variable Doctrine_Connection::$dbh
-
$definition
-
in file Column.php, variable Doctrine_Schema_Column::$definition
    column definitions
-
$definition
-
in file Database.php, variable Doctrine_Schema_Database::$definition
-
$definition
-
in file Table.php, variable Doctrine_Schema_Table::$definition
-
$definition
-
in file Relation.php, variable Doctrine_Relation::$definition
-
$definition
-
in file Object.php, variable Doctrine_Schema_Object::$definition
-
$delete
-
in file Transaction.php, variable Doctrine_Transaction::$delete
-
$driverMap
-
in file Manager.php, variable Doctrine_Manager::$driverMap
-
$driverName
-
in file Informix.php, variable Doctrine_Connection_Informix::$driverName
-
$driverName
-
in file Connection.php, variable Doctrine_Connection::$driverName
-
$driverName
-
in file Mock.php, variable Doctrine_Connection_Mock::$driverName
-
$driverName
-
in file Firebird.php, variable Doctrine_Connection_Firebird::$driverName
-
$driverName
-
in file Mysql.php, variable Doctrine_Connection_Mysql::$driverName
-
$driverName
-
in file Pgsql.php, variable Doctrine_Connection_Pgsql::$driverName
-
$driverName
-
in file Sqlite.php, variable Doctrine_Connection_Sqlite::$driverName
-
$driverName
-
in file Mssql.php, variable Doctrine_Connection_Mssql::$driverName
-
$driverName
-
in file Oracle.php, variable Doctrine_Connection_Oracle::$driverName
-
date_part
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::date_part()
    PostgreSQLs DATE_PART( <text>, <time> ) function.
-
debug
-
in file Doctrine.php, method Doctrine::debug()
-
defaultValue
-
in file Column.php, method Doctrine_Schema_Column::defaultValue()
-
delete
-
in file Record.php, method Doctrine_Record::delete()
    deletes this data access object and all the related composites this operation is isolated by a transaction
-
delete
-
in file Memcache.php, method Doctrine_Cache_Memcache::delete()
    Remove a cache record
-
delete
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::delete()
    deletes given record and all the related composites this operation is isolated by a transaction
-
delete
-
in file Db.php, method Doctrine_Cache_Db::delete()
    Remove a cache record
-
DELETE
-
in file Hydrate.php, class constant Doctrine_Hydrate::DELETE
    constant for DELETE queries
-
delete
-
in file Interface.php, method Doctrine_Node_Interface::delete()
    deletes node and it's descendants
-
delete
-
in file NestedSet.php, method Doctrine_Node_NestedSet::delete()
    deletes node and it's descendants
-
delete
-
in file Interface.php, method Doctrine_Cache_Interface::delete()
    Remove a cache record
-
delete
-
in file Array.php, method Doctrine_Cache_Array::delete()
    Remove a cache record
-
delete
-
in file Collection.php, method Doctrine_Collection::delete()
    delete
-
delete
-
in file Abstract.php, method Doctrine_Query_Abstract::delete()
    delete sets the query type to DELETE
-
delete
-
in file Apc.php, method Doctrine_Cache_Apc::delete()
    Remove a cache record
-
deleteAll
-
in file Db.php, method Doctrine_Cache_Db::deleteAll()
    Removes all cache records
-
deleteAll
-
in file Array.php, method Doctrine_Cache_Array::deleteAll()
    Remove all cache record
-
deleteComposites
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::deleteComposites()
    deletes all related composites this method is always called internally when a record is deleted
-
deleteNode
-
in file Record.php, method Doctrine_Record::deleteNode()
    used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS AS TREE
-
distinct
-
in file Abstract.php, method Doctrine_Query_Abstract::distinct()
    distinct Makes the query SELECT DISTINCT.
-
div
-
in file Driver.php, method Doctrine_Expression_Driver::div()
    Returns the SQL to divide values or expressions by eachother.
-
Doctrine
-
in file Doctrine.php, class Doctrine
    Doctrine the base class of Doctrine framework
-
Db2.php
-
procedural page Db2.php
-
Db.php
-
procedural page Db.php
-
Driver.php
-
procedural page Driver.php
-
Db2.php
-
procedural page Db2.php
-
DataDict.php
-
procedural page DataDict.php
-
DataType.php
-
procedural page DataType.php
-
Db.php
-
procedural page Db.php
-
Driver.php
-
procedural page Driver.php
-
Db.php
-
procedural page Db.php
-
Database.php
-
procedural page Database.php
-
Dir.php
-
procedural page Dir.php
-
Db2.php
-
procedural page Db2.php
-
Date.php
-
procedural page Date.php
-
Doctrine.php
-
procedural page Doctrine.php
-
Doctrine_Access
-
in file Access.php, class Doctrine_Access
    Doctrine_Access
-
Doctrine_Adapter
-
in file Adapter.php, class Doctrine_Adapter
    Doctrine_Adapter
-
Doctrine_Adapter_Db2
-
in file Db2.php, class Doctrine_Adapter_Db2
    Doctrine_Adapter_Db2 IBM DB2 Adapter [BORROWED FROM ZEND FRAMEWORK]
-
Doctrine_Adapter_Db2_Exception
-
in file Exception.php, class Doctrine_Adapter_Db2_Exception
    Doctrine_Adapter_Db2_Exception
-
Doctrine_Adapter_Exception
-
in file Exception.php, class Doctrine_Adapter_Exception
    Doctrine_Adapter_Exception
-
Doctrine_Adapter_Interface
-
in file Interface.php, class Doctrine_Adapter_Interface
    Doctrine_Adapter_Interface This adapter interface should be implemented by all custom adapters
-
Doctrine_Adapter_Mock
-
in file Mock.php, class Doctrine_Adapter_Mock
    Doctrine_Adapter_Mock This class is used for special testing purposes.
-
Doctrine_Adapter_Mysqli
-
in file Mysqli.php, class Doctrine_Adapter_Mysqli
    Doctrine_Adapter_Mysqli This class is used for special testing purposes.
-
Doctrine_Adapter_Oracle
-
in file Oracle.php, class Doctrine_Adapter_Oracle
    Doctrine_Adapter_Oracle [BORROWED FROM ZEND FRAMEWORK]
-
Doctrine_Adapter_Statement
-
in file Statement.php, class Doctrine_Adapter_Statement
    Doctrine_Adapter_Statement
-
Doctrine_Adapter_Statement_Interface
-
in file Interface.php, class Doctrine_Adapter_Statement_Interface
    Doctrine_Adapter_Statement
-
Doctrine_Adapter_Statement_Mock
-
in file Mock.php, class Doctrine_Adapter_Statement_Mock
    Doctrine_Adapter_Statement_Mock This class is used for special testing purposes.
-
Doctrine_AuditLog
-
in file AuditLog.php, class Doctrine_AuditLog
    Doctrine_AuditLog
-
Doctrine_AuditLog_Listener
-
in file Listener.php, class Doctrine_AuditLog_Listener
    Doctrine_AuditLog_Listener
-
Doctrine_Cache
-
in file Cache.php, class Doctrine_Cache
    Doctrine_Cache
-
Doctrine_Cache_Apc
-
in file Apc.php, class Doctrine_Cache_Apc
    Doctrine_Cache_Apc
-
Doctrine_Cache_Array
-
in file Array.php, class Doctrine_Cache_Array
    Doctrine_Cache_Interface
-
Doctrine_Cache_Db
-
in file Db.php, class Doctrine_Cache_Db
    Doctrine_Cache_Db
-
Doctrine_Cache_Driver
-
in file Driver.php, class Doctrine_Cache_Driver
    Doctrine_Cache_Driver
-
Doctrine_Cache_Exception
-
in file Exception.php, class Doctrine_Cache_Exception
    Doctrine_Cache_Exception
-
Doctrine_Cache_Interface
-
in file Interface.php, class Doctrine_Cache_Interface
    Doctrine_Cache_Interface
-
Doctrine_Cache_Memcache
-
in file Memcache.php, class Doctrine_Cache_Memcache
    Doctrine_Cache_Memcache
-
Doctrine_Collection
-
in file Collection.php, class Doctrine_Collection
    Doctrine_Collection Collection of Doctrine_Record objects.
-
Doctrine_Collection_Exception
-
in file Exception.php, class Doctrine_Collection_Exception
    Doctrine_Collection_Exception
-
Doctrine_Collection_Iterator
-
in file Iterator.php, class Doctrine_Collection_Iterator
    Doctrine_Collection_Iterator iterates through Doctrine_Collection
-
Doctrine_Collection_Iterator_Expandable
-
in file Expandable.php, class Doctrine_Collection_Iterator_Expandable
    Doctrine_Collection_Iterator_Normal
-
Doctrine_Collection_Iterator_Normal
-
in file Normal.php, class Doctrine_Collection_Iterator_Normal
    Doctrine_Collection_Iterator_Normal
-
Doctrine_Collection_Iterator_Offset
-
in file Offset.php, class Doctrine_Collection_Iterator_Offset
    Doctrine_Collection_Iterator_Normal
-
Doctrine_Collection_Offset
-
in file Offset.php, class Doctrine_Collection_Offset
    Doctrine_Collection_Offset Collection of Doctrine_Record objects.
-
Doctrine_Column
-
in file Column.php, class Doctrine_Column
    Doctrine_Column This class represents a database column
-
Doctrine_Compiler
-
in file Compiler.php, class Doctrine_Compiler
    Doctrine_Compiler This class can be used for compiling the entire Doctrine framework into a single file
-
Doctrine_Compiler_Exception
-
in file Exception.php, class Doctrine_Compiler_Exception
    Doctrine_Compiler_Exception
-
Doctrine_Configurable
-
in file Configurable.php, class Doctrine_Configurable
    Doctrine_Configurable the base for Doctrine_Table, Doctrine_Manager and Doctrine_Connection
-
Doctrine_Connection
-
in file Connection.php, class Doctrine_Connection
    Doctrine_Connection
-
Doctrine_Connection_Common
-
in file Common.php, class Doctrine_Connection_Common
    standard connection, the parent of pgsql, mysql and sqlite
-
Doctrine_Connection_Db2
-
in file Db2.php, class Doctrine_Connection_Db2
    Doctrine_Connection_Db2
-
Doctrine_Connection_Exception
-
in file Exception.php, class Doctrine_Connection_Exception
    Doctrine_Exception
-
Doctrine_Connection_Firebird
-
in file Firebird.php, class Doctrine_Connection_Firebird
    Doctrine_Connection_Firebird
-
Doctrine_Connection_Firebird_Exception
-
in file Exception.php, class Doctrine_Connection_Firebird_Exception
    Doctrine_Connection_Firebird_Exception
-
Doctrine_Connection_Informix
-
in file Informix.php, class Doctrine_Connection_Informix
    Doctrine_Connection_Mysql
-
Doctrine_Connection_Informix_Exception
-
in file Exception.php, class Doctrine_Connection_Informix_Exception
    Doctrine_Connection_Informix_Exception
-
Doctrine_Connection_Mock
-
in file Mock.php, class Doctrine_Connection_Mock
    Doctrine_Connection_Mysql
-
Doctrine_Connection_Module
-
in file Module.php, class Doctrine_Connection_Module
    Doctrine_Connection_Module
-
Doctrine_Connection_Mssql
-
in file Mssql.php, class Doctrine_Connection_Mssql
    Doctrine_Connection_Mssql
-
Doctrine_Connection_Mssql_Exception
-
in file Exception.php, class Doctrine_Connection_Mssql_Exception
    Doctrine_Connection_Mssql_Exception
-
Doctrine_Connection_Mysql
-
in file Mysql.php, class Doctrine_Connection_Mysql
    Doctrine_Connection_Mysql
-
Doctrine_Connection_Mysql_Exception
-
in file Exception.php, class Doctrine_Connection_Mysql_Exception
    Doctrine_Connection_Mysql_Exception
-
Doctrine_Connection_Oracle
-
in file Oracle.php, class Doctrine_Connection_Oracle
    Doctrine_Connection_Oracle
-
Doctrine_Connection_Oracle_Exception
-
in file Exception.php, class Doctrine_Connection_Oracle_Exception
    Doctrine_Connection_Oracle_Exception
-
Doctrine_Connection_Pgsql
-
in file Pgsql.php, class Doctrine_Connection_Pgsql
    Doctrine_Connection_Pgsql
-
Doctrine_Connection_Pgsql_Exception
-
in file Exception.php, class Doctrine_Connection_Pgsql_Exception
    Doctrine_Connection_Pgsql_Exception
-
Doctrine_Connection_Profiler
-
in file Profiler.php, class Doctrine_Connection_Profiler
    Doctrine_Connection_Profiler
-
Doctrine_Connection_Profiler_Exception
-
in file Exception.php, class Doctrine_Connection_Profiler_Exception
    Doctrine_Connection_Profiler_Exception
-
Doctrine_Connection_Sqlite
-
in file Sqlite.php, class Doctrine_Connection_Sqlite
    Doctrine_Connection_Sqlite
-
Doctrine_Connection_Sqlite_Exception
-
in file Exception.php, class Doctrine_Connection_Sqlite_Exception
    Doctrine_Connection_Sqlite_Exception
-
Doctrine_Connection_Statement
-
in file Statement.php, class Doctrine_Connection_Statement
    Doctrine_Connection_Statement
-
Doctrine_Connection_UnitOfWork
-
in file UnitOfWork.php, class Doctrine_Connection_UnitOfWork
    Doctrine_Connection_UnitOfWork
-
Doctrine_DataDict
-
in file DataDict.php, class Doctrine_DataDict
    Doctrine_DataDict
-
Doctrine_DataDict_Exception
-
in file Exception.php, class Doctrine_DataDict_Exception
    Doctrine_DataDict_Exception
-
Doctrine_DataDict_Firebird
-
in file Firebird.php, class Doctrine_DataDict_Firebird
-
Doctrine_DataDict_Informix
-
in file Informix.php, class Doctrine_DataDict_Informix
-
Doctrine_DataDict_Mssql
-
in file Mssql.php, class Doctrine_DataDict_Mssql
-
Doctrine_DataDict_Mysql
-
in file Mysql.php, class Doctrine_DataDict_Mysql
-
Doctrine_DataDict_Oracle
-
in file Oracle.php, class Doctrine_DataDict_Oracle
-
Doctrine_DataDict_Pgsql
-
in file Pgsql.php, class Doctrine_DataDict_Pgsql
-
Doctrine_DataDict_Sqlite
-
in file Sqlite.php, class Doctrine_DataDict_Sqlite
-
Doctrine_DataType
-
in file DataType.php, class Doctrine_DataType
    Doctrine_DataType
-
Doctrine_Db
-
in file Db.php, class Doctrine_Db
    Doctrine_Db
-
Doctrine_Event
-
in file Event.php, class Doctrine_Event
    Doctrine_Event
-
Doctrine_EventListener
-
in file EventListener.php, class Doctrine_EventListener
    Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement
-
Doctrine_EventListener_Chain
-
in file Chain.php, class Doctrine_EventListener_Chain
    Doctrine_EventListener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time
-
Doctrine_EventListener_Exception
-
in file Exception.php, class Doctrine_EventListener_Exception
    Doctrine_EventListener_Exception
-
Doctrine_EventListener_Interface
-
in file Interface.php, class Doctrine_EventListener_Interface
    Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement
-
Doctrine_Exception
-
in file Exception.php, class Doctrine_Exception
    Doctrine_Exception
-
Doctrine_Export
-
in file Export.php, class Doctrine_Export
    Doctrine_Export
-
Doctrine_Export_Exception
-
in file Exception.php, class Doctrine_Export_Exception
    Doctrine_Export_Exception
-
Doctrine_Export_Firebird
-
in file Firebird.php, class Doctrine_Export_Firebird
    Doctrine_Export_Sqlite
-
Doctrine_Export_Frontbase
-
in file Frontbase.php, class Doctrine_Export_Frontbase
    Doctrine_Export_Frontbase
-
Doctrine_Export_Mssql
-
in file Mssql.php, class Doctrine_Export_Mssql
    Doctrine_Export_Mssql
-
Doctrine_Export_Mysql
-
in file Mysql.php, class Doctrine_Export_Mysql
    Doctrine_Export_Mysql
-
Doctrine_Export_Oracle
-
in file Oracle.php, class Doctrine_Export_Oracle
    Doctrine_Export_Oracle
-
Doctrine_Export_Pgsql
-
in file Pgsql.php, class Doctrine_Export_Pgsql
    Doctrine_Export_Pgsql
-
Doctrine_Export_Reporter
-
in file Reporter.php, class Doctrine_Export_Reporter
    Doctrine_Export_Reporter
-
Doctrine_Export_Schema
-
in file Schema.php, class Doctrine_Export_Schema
    class Doctrine_Export_Schema
-
Doctrine_Export_Schema_Xml
-
in file Xml.php, class Doctrine_Export_Schema_Xml
    class Doctrine_Export_Schema_Xml
-
Doctrine_Export_Schema_Yml
-
in file Yml.php, class Doctrine_Export_Schema_Yml
    class Doctrine_Export_Schema_Yml
-
Doctrine_Export_Sqlite
-
in file Sqlite.php, class Doctrine_Export_Sqlite
    Doctrine_Export_Sqlite
-
Doctrine_Expression
-
in file Expression.php, class Doctrine_Expression
    Doctrine_Expression
-
Doctrine_Expression_Driver
-
in file Driver.php, class Doctrine_Expression_Driver
    Doctrine_Expression_Driver
-
Doctrine_Expression_Exception
-
in file Exception.php, class Doctrine_Expression_Exception
    Doctrine_Expression_Exception
-
Doctrine_Expression_Firebird
-
in file Firebird.php, class Doctrine_Expression_Firebird
    Doctrine_Expression_Firebird
-
Doctrine_Expression_Informix
-
in file Informix.php, class Doctrine_Expression_Informix
    Doctrine_Expression_Informix
-
Doctrine_Expression_Mock
-
in file Mock.php, class Doctrine_Expression_Mock
    Doctrine_Expression_Mock Mock driver that is used for testing purposes
-
Doctrine_Expression_Mssql
-
in file Mssql.php, class Doctrine_Expression_Mssql
    Doctrine_Expression_Mssql
-
Doctrine_Expression_Mysql
-
in file Mysql.php, class Doctrine_Expression_Mysql
    Doctrine_Expression_Mysql
-
Doctrine_Expression_Oracle
-
in file Oracle.php, class Doctrine_Expression_Oracle
    Doctrine_Expression_Sqlite
-
Doctrine_Expression_Pgsql
-
in file Pgsql.php, class Doctrine_Expression_Pgsql
    Doctrine_Expression_Pgsql
-
Doctrine_Expression_Sqlite
-
in file Sqlite.php, class Doctrine_Expression_Sqlite
    Doctrine_Expression_Sqlite
-
Doctrine_File
-
in file File.php, class Doctrine_File
    Doctrine_File
-
Doctrine_File_Index
-
in file Index.php, class Doctrine_File_Index
    Doctrine_File_Index
-
Doctrine_Formatter
-
in file Formatter.php, class Doctrine_Formatter
    Doctrine_Formatter
-
Doctrine_Hook
-
in file Hook.php, class Doctrine_Hook
    Doctrine_Hook
-
Doctrine_Hook_Equal
-
in file Equal.php, class Doctrine_Hook_Equal
    Doctrine_Hook_Equal
-
Doctrine_Hook_Integer
-
in file Integer.php, class Doctrine_Hook_Integer
    Doctrine_Hook_Integer
-
Doctrine_Hook_Parser
-
in file Parser.php, class Doctrine_Hook_Parser
    Doctrine_Hook_Parser
-
Doctrine_Hook_Parser_Complex
-
in file Complex.php, class Doctrine_Hook_Parser_Complex
    Doctrine_Hook_Parser_Complex
-
Doctrine_Hook_WordLike
-
in file WordLike.php, class Doctrine_Hook_WordLike
    Doctrine_Hook_WordLike
-
Doctrine_Hydrate
-
in file Hydrate.php, class Doctrine_Hydrate
    Doctrine_Hydrate is a base class for Doctrine_RawSql and Doctrine_Query.
-
Doctrine_Hydrate_Array
-
in file Array.php, class Doctrine_Hydrate_Array
    Doctrine_Hydrate_Array defines an array fetching strategy for Doctrine_Hydrate
-
Doctrine_Hydrate_Exception
-
in file Exception.php, class Doctrine_Hydrate_Exception
    Doctrine_Hydrate_Exception
-
Doctrine_Hydrate_Record
-
in file Record.php, class Doctrine_Hydrate_Record
    Doctrine_Hydrate_Record defines a record fetching strategy for Doctrine_Hydrate
-
Doctrine_Import
-
in file Import.php, class Doctrine_Import
    class Doctrine_Import Main responsible of performing import operation. Delegates database schema reading to a reader object and passes the result to a builder object which builds a Doctrine data model.
-
Doctrine_Import_Builder
-
in file Builder.php, class Doctrine_Import_Builder
    Doctrine_Import_Builder Import builder is responsible of building Doctrine ActiveRecord classes based on a database schema.
-
Doctrine_Import_Builder_BaseClass
-
in file BaseClass.php, class Doctrine_Import_Builder_BaseClass
    class Doctrine_Import_Builder_BaseClass Builds a Doctrine_Record base class definition based on a schema.
-
Doctrine_Import_Builder_Exception
-
in file Exception.php, class Doctrine_Import_Builder_Exception
    class Doctrine_Import_Builder_Exception
-
Doctrine_Import_Exception
-
in file Exception.php, class Doctrine_Import_Exception
    class Doctrine_Import_Exception
-
Doctrine_Import_Firebird
-
in file Firebird.php, class Doctrine_Import_Firebird
-
Doctrine_Import_Informix
-
in file Informix.php, class Doctrine_Import_Informix
-
Doctrine_Import_Mssql
-
in file Mssql.php, class Doctrine_Import_Mssql
-
Doctrine_Import_Mysql
-
in file Mysql.php, class Doctrine_Import_Mysql
-
Doctrine_Import_Oracle
-
in file Oracle.php, class Doctrine_Import_Oracle
-
Doctrine_Import_Pgsql
-
in file Pgsql.php, class Doctrine_Import_Pgsql
-
Doctrine_Import_Reader
-
in file Reader.php, class Doctrine_Import_Reader
-
Doctrine_Import_Reader_Db
-
in file Db.php, class Doctrine_Import_Reader_Db
    class Doctrine_Import_Reader_Db
-
Doctrine_Import_Reader_Exception
-
in file Exception.php, class Doctrine_Import_Reader_Exception
-
Doctrine_Import_Reader_Xml_Propel
-
in file Propel.php, class Doctrine_Import_Reader_Xml_Propel
    class Doctrine_Import_Reader_Xml_Propel
-
Doctrine_Import_Schema
-
in file Schema.php, class Doctrine_Import_Schema
    class Doctrine_Import_Schema
-
Doctrine_Import_Schema_Xml
-
in file Xml.php, class Doctrine_Import_Schema_Xml
    class Doctrine_Import_Xml
-
Doctrine_Import_Schema_Yml
-
in file Yml.php, class Doctrine_Import_Schema_Yml
    class Doctrine_Import_Schema_Yml
-
Doctrine_Import_Sqlite
-
in file Sqlite.php, class Doctrine_Import_Sqlite
-
Doctrine_IntegrityMapper
-
in file IntegrityMapper.php, class Doctrine_IntegrityMapper
    Doctrine_IntegrityMapper
-
Doctrine_Lib
-
in file Lib.php, class Doctrine_Lib
    Doctrine_Lib has not commonly used static functions, mostly for debugging purposes
-
Doctrine_Locking_Exception
-
in file Exception.php, class Doctrine_Locking_Exception
    Locking exception class
-
Doctrine_Locking_Manager_Pessimistic
-
in file Pessimistic.php, class Doctrine_Locking_Manager_Pessimistic
    Offline locking of records comes in handy where you need to make sure that a time-consuming task on a record or many records, which is spread over several page requests can't be interfered by other users.
-
Doctrine_Manager
-
in file Manager.php, class Doctrine_Manager
    Doctrine_Manager is the base component of all doctrine based projects.
-
Doctrine_Manager_Exception
-
in file Exception.php, class Doctrine_Manager_Exception
    Doctrine_Manager_Exception
-
Doctrine_Node
-
in file Node.php, class Doctrine_Node
    Doctrine_Node
-
Doctrine_Node_AdjacencyList
-
in file AdjacencyList.php, class Doctrine_Node_AdjacencyList
    Doctrine_Node_AdjacencyList
-
Doctrine_Node_AdjacencyList_LevelOrderIterator
-
in file LevelOrderIterator.php, class Doctrine_Node_AdjacencyList_LevelOrderIterator
    Doctrine_Node_AdjacencyList_LevelOrderIterator
-
Doctrine_Node_AdjacencyList_PostOrderIterator
-
in file PostOrderIterator.php, class Doctrine_Node_AdjacencyList_PostOrderIterator
    Doctrine_Node_AdjacencyList_PostOrderIterator
-
Doctrine_Node_AdjacencyList_PreOrderIterator
-
in file PreOrderIterator.php, class Doctrine_Node_AdjacencyList_PreOrderIterator
    Doctrine_Node_AdjacencyList_PreOrderIterator
-
Doctrine_Node_Exception
-
in file Exception.php, class Doctrine_Node_Exception
    Doctrine_Node_Exception
-
Doctrine_Node_Interface
-
in file Interface.php, class Doctrine_Node_Interface
    Doctrine_Node_Interface
-
Doctrine_Node_MaterializedPath
-
in file MaterializedPath.php, class Doctrine_Node_MaterializedPath
    Doctrine_Node_MaterializedPath
-
Doctrine_Node_MaterializedPath_LevelOrderIterator
-
in file LevelOrderIterator.php, class Doctrine_Node_MaterializedPath_LevelOrderIterator
    Doctrine_Node_MaterializedPath_LevelOrderIterator
-
Doctrine_Node_MaterializedPath_PostOrderIterator
-
in file PostOrderIterator.php, class Doctrine_Node_MaterializedPath_PostOrderIterator
    Doctrine_Node_MaterializedPath_PostOrderIterator
-
Doctrine_Node_MaterializedPath_PreOrderIterator
-
in file PreOrderIterator.php, class Doctrine_Node_MaterializedPath_PreOrderIterator
    Doctrine_Node_MaterializedPath_PreOrderIterator
-
Doctrine_Node_NestedSet
-
in file NestedSet.php, class Doctrine_Node_NestedSet
    Doctrine_Node_NestedSet
-
Doctrine_Node_NestedSet_LevelOrderIterator
-
in file LevelOrderIterator.php, class Doctrine_Node_NestedSet_LevelOrderIterator
    Doctrine_Node_NestedSet_LevelOrderIterator
-
Doctrine_Node_NestedSet_PostOrderIterator
-
in file PostOrderIterator.php, class Doctrine_Node_NestedSet_PostOrderIterator
    Doctrine_Node_NestedSet_PostOrderIterator
-
Doctrine_Node_NestedSet_PreOrderIterator
-
in file PreOrderIterator.php, class Doctrine_Node_NestedSet_PreOrderIterator
    Doctrine_Node_NestedSet_PreOrderIterator
-
Doctrine_Null
-
in file Null.php, class Doctrine_Null
    Doctrine_Null
-
Doctrine_Object
-
in file Object.php, class Doctrine_Object
    Doctrine_Object
-
Doctrine_Overloadable
-
in file Overloadable.php, class Doctrine_Overloadable
    Doctrine_Overloadable a very generic overloading interface
-
Doctrine_Plugin
-
in file Plugin.php, class Doctrine_Plugin
    Doctrine_Plugin
-
Doctrine_Query
-
in file Query.php, class Doctrine_Query
    Doctrine_Query
-
Doctrine_Query_Abstract
-
in file Abstract.php, class Doctrine_Query_Abstract
    Doctrine_Query_Abstract
-
Doctrine_Query_Check
-
in file Check.php, class Doctrine_Query_Check
    Doctrine_Query_Check
-
Doctrine_Query_Condition
-
in file Condition.php, class Doctrine_Query_Condition
    Doctrine_Query_Condition
-
Doctrine_Query_Exception
-
in file Exception.php, class Doctrine_Query_Exception
    Doctrine_Query_Exception
-
Doctrine_Query_Filter
-
in file Filter.php, class Doctrine_Query_Filter
    Doctrine_Query_Filter
-
Doctrine_Query_Filter_Chain
-
in file Chain.php, class Doctrine_Query_Filter_Chain
    Doctrine_Query_Filter_Chain
-
Doctrine_Query_Filter_Interface
-
in file Interface.php, class Doctrine_Query_Filter_Interface
    Doctrine_Query_Filter_Interface
-
Doctrine_Query_From
-
in file From.php, class Doctrine_Query_From
    Doctrine_Query_From
-
Doctrine_Query_Groupby
-
in file Groupby.php, class Doctrine_Query_Groupby
    Doctrine_Query_Groupby
-
Doctrine_Query_Having
-
in file Having.php, class Doctrine_Query_Having
    Doctrine_Query_Having
-
Doctrine_Query_JoinCondition
-
in file JoinCondition.php, class Doctrine_Query_JoinCondition
    Doctrine_Query_JoinCondition
-
Doctrine_Query_Limit
-
in file Limit.php, class Doctrine_Query_Limit
    Doctrine_Query_Limit
-
Doctrine_Query_Offset
-
in file Offset.php, class Doctrine_Query_Offset
    Doctrine_Query_Offset
-
Doctrine_Query_Orderby
-
in file Orderby.php, class Doctrine_Query_Orderby
    Doctrine_Query_Orderby
-
Doctrine_Query_Parser
-
in file Parser.php, class Doctrine_Query_Parser
    Doctrine_Query_Parser
-
Doctrine_Query_Part
-
in file Part.php, class Doctrine_Query_Part
    Doctrine_Query_Part
-
Doctrine_Query_Select
-
in file Select.php, class Doctrine_Query_Select
    Doctrine_Query_Select
-
Doctrine_Query_Set
-
in file Set.php, class Doctrine_Query_Set
    Doctrine_Query
-
Doctrine_Query_Where
-
in file Where.php, class Doctrine_Query_Where
    Doctrine_Query_Where
-
Doctrine_RawSql
-
in file RawSql.php, class Doctrine_RawSql
    Doctrine_RawSql
-
Doctrine_RawSql_Exception
-
in file Exception.php, class Doctrine_RawSql_Exception
    Doctrine_RawSql_Exception
-
Doctrine_Record
-
in file Record.php, class Doctrine_Record
    Doctrine_Record All record classes should inherit this super class
-
Doctrine_Record_Abstract
-
in file Abstract.php, class Doctrine_Record_Abstract
    Doctrine_Record_Abstract
-
Doctrine_Record_Exception
-
in file Exception.php, class Doctrine_Record_Exception
    Doctrine_Exception
-
Doctrine_Record_Filter
-
in file Filter.php, class Doctrine_Record_Filter
    Doctrine_Record_Filter Filters and prepares the record data
-
Doctrine_Record_Iterator
-
in file Iterator.php, class Doctrine_Record_Iterator
-
Doctrine_Record_Listener
-
in file Listener.php, class Doctrine_Record_Listener
    Doctrine_Record_Listener
-
Doctrine_Record_Listener_Chain
-
in file Chain.php, class Doctrine_Record_Listener_Chain
    Doctrine_Record_Listener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time
-
Doctrine_Record_Listener_Interface
-
in file Interface.php, class Doctrine_Record_Listener_Interface
    Doctrine_Record_Listener
-
Doctrine_Record_State_Exception
-
in file Exception.php, class Doctrine_Record_State_Exception
    Doctrine_Exception
-
Doctrine_Relation
-
in file Relation.php, class Doctrine_Relation
    Doctrine_Relation This class represents a relation between components
-
Doctrine_Relation_Association
-
in file Association.php, class Doctrine_Relation_Association
    Doctrine_Relation_Association this class takes care of association mapping (= many-to-many relationships, where the relationship is handled with an additional relational table which holds 2 foreign keys)
-
Doctrine_Relation_Association_Self
-
in file Self.php, class Doctrine_Relation_Association_Self
    Doctrine_Relation_Association_Self
-
Doctrine_Relation_Exception
-
in file Exception.php, class Doctrine_Relation_Exception
    Doctrine_Relation_Exception
-
Doctrine_Relation_ForeignKey
-
in file ForeignKey.php, class Doctrine_Relation_ForeignKey
    Doctrine_Relation_ForeignKey This class represents a foreign key relation
-
Doctrine_Relation_LocalKey
-
in file LocalKey.php, class Doctrine_Relation_LocalKey
    Doctrine_Relation_LocalKey This class represents a local key relation
-
Doctrine_Relation_Nest
-
in file Nest.php, class Doctrine_Relation_Nest
    Doctrine_Relation_Association_Self
-
Doctrine_Relation_Parser
-
in file Parser.php, class Doctrine_Relation_Parser
    Doctrine_Relation_Parser
-
Doctrine_Relation_Parser_Exception
-
in file Exception.php, class Doctrine_Relation_Parser_Exception
    Doctrine_Relation_Parser_Exception
-
Doctrine_Schema
-
in file Schema.php, class Doctrine_Schema
-
Doctrine_Schema_Column
-
in file Column.php, class Doctrine_Schema_Column
    class Doctrine_Schema_Column
-
Doctrine_Schema_Database
-
in file Database.php, class Doctrine_Schema_Database
    class Doctrine_Schema_Database
-
Doctrine_Schema_Exception
-
in file Exception.php, class Doctrine_Schema_Exception
    class Doctrine_Schema_Exception
-
Doctrine_Schema_Object
-
in file Object.php, class Doctrine_Schema_Object
    class Doctrine_Schema_Object Catches any non-property call from child classes and throws an exception.
-
Doctrine_Schema_Relation
-
in file Relation.php, class Doctrine_Schema_Relation
    class Doctrine_Schema_Relation Holds information on a foreign key relation.
-
Doctrine_Schema_Table
-
in file Table.php, class Doctrine_Schema_Table
    class Doctrine_Schema_Table
-
Doctrine_Search
-
in file Search.php, class Doctrine_Search
    Doctrine_Search
-
Doctrine_Search_Analyzer
-
in file Analyzer.php, class Doctrine_Search_Analyzer
    Doctrine_Search_Analyzer
-
Doctrine_Search_Analyzer_Exception
-
in file Exception.php, class Doctrine_Search_Analyzer_Exception
    Doctrine_Search_Analyzer_Exception
-
Doctrine_Search_Analyzer_Interface
-
in file Interface.php, class Doctrine_Search_Analyzer_Interface
    Doctrine_Search_Analyzer_Interface
-
Doctrine_Search_Analyzer_Standard
-
in file Standard.php, class Doctrine_Search_Analyzer_Standard
    Doctrine_Search_Analyzer_Standard
-
Doctrine_Search_Exception
-
in file Exception.php, class Doctrine_Search_Exception
    Doctrine_Search_Exception
-
Doctrine_Search_Indexer
-
in file Indexer.php, class Doctrine_Search_Indexer
    Doctrine_Search_Indexer
-
Doctrine_Search_Indexer_Dir
-
in file Dir.php, class Doctrine_Search_Indexer_Dir
    Doctrine_Search_Indexer_Dir
-
Doctrine_Search_Indexer_Exception
-
in file Exception.php, class Doctrine_Search_Indexer_Exception
    Doctrine_Search_Indexer
-
Doctrine_Search_Listener
-
in file Listener.php, class Doctrine_Search_Listener
    Doctrine_Search_Listener
-
Doctrine_Search_Parser
-
in file Parser.php, class Doctrine_Search_Parser
    Doctrine_Search_Parser_Standard
-
Doctrine_Search_Query
-
in file Query.php, class Doctrine_Search_Query
    Doctrine_Search_Query
-
Doctrine_Search_Record
-
in file Record.php, class Doctrine_Search_Record
    Doctrine_Search_Record
-
Doctrine_Search_Scorer
-
in file Scorer.php, class Doctrine_Search_Scorer
    Doctrine_Search_Scorer
-
Doctrine_Search_Template
-
in file Template.php, class Doctrine_Search_Template
    Doctrine_Search_Template
-
Doctrine_Sequence
-
in file Sequence.php, class Doctrine_Sequence
    Doctrine_Sequence The base class for sequence handling drivers.
-
Doctrine_Sequence_Db2
-
in file Db2.php, class Doctrine_Sequence_Db2
    Doctrine_Sequence_Db2
-
Doctrine_Sequence_Exception
-
in file Exception.php, class Doctrine_Sequence_Exception
    Doctrine_Sequence_Exception
-
Doctrine_Sequence_Firebird
-
in file Firebird.php, class Doctrine_Sequence_Firebird
    Doctrine_Sequence_Firebird
-
Doctrine_Sequence_Informix
-
in file Informix.php, class Doctrine_Sequence_Informix
    Doctrine_Sequence_Informix
-
Doctrine_Sequence_Mssql
-
in file Mssql.php, class Doctrine_Sequence_Mssql
    Doctrine_Sequence_Mssql
-
Doctrine_Sequence_Mysql
-
in file Mysql.php, class Doctrine_Sequence_Mysql
    Doctrine_Sequence_Mysql
-
Doctrine_Sequence_Oracle
-
in file Oracle.php, class Doctrine_Sequence_Oracle
    Doctrine_Sequence_Oracle
-
Doctrine_Sequence_Pgsql
-
in file Pgsql.php, class Doctrine_Sequence_Pgsql
    Doctrine_Sequence_Pgsql
-
Doctrine_Sequence_Sqlite
-
in file Sqlite.php, class Doctrine_Sequence_Sqlite
    Doctrine_Sequence_Sqlite
-
Doctrine_Table
-
in file Table.php, class Doctrine_Table
    Doctrine_Table represents a database table each Doctrine_Table holds the information of foreignKeys and associations
-
Doctrine_Table_Exception
-
in file Exception.php, class Doctrine_Table_Exception
    thrown when user tries to initialize a new instance of Doctrine_Table, while there already exists an instance of that table
-
Doctrine_Table_Repository
-
in file Repository.php, class Doctrine_Table_Repository
    Doctrine_Repository each record is added into Doctrine_Repository at the same time they are created, loaded from the database or retrieved from the cache
-
Doctrine_Table_Repository_Exception
-
in file Exception.php, class Doctrine_Table_Repository_Exception
    Doctrine_Table_Repository_Exception
-
Doctrine_Template
-
in file Template.php, class Doctrine_Template
    Doctrine_Template
-
Doctrine_Template_NestedSet
-
in file NestedSet.php, class Doctrine_Template_NestedSet
    Doctrine_Template_NestedSet
-
Doctrine_Template_Searchable
-
in file Searchable.php, class Doctrine_Template_Searchable
    Doctrine_Template_Searchable
-
Doctrine_Template_Taggable
-
in file Taggable.php, class Doctrine_Template_Taggable
    Doctrine_Template_Taggable
-
Doctrine_Template_Versionable
-
in file Versionable.php, class Doctrine_Template_Versionable
    Doctrine_Template_Versionable
-
Doctrine_Tokenizer
-
in file Tokenizer.php, class Doctrine_Tokenizer
    Doctrine_Tokenizer
-
Doctrine_Transaction
-
in file Transaction.php, class Doctrine_Transaction
    Doctrine_Transaction Handles transaction savepoint and isolation abstraction
-
Doctrine_Transaction_Exception
-
in file Exception.php, class Doctrine_Transaction_Exception
    Doctrine_Transaction_Exception
-
Doctrine_Transaction_Firebird
-
in file Firebird.php, class Doctrine_Transaction_Firebird
-
Doctrine_Transaction_Informix
-
in file Informix.php, class Doctrine_Transaction_Informix
-
Doctrine_Transaction_Mock
-
in file Mock.php, class Doctrine_Transaction_Mock
    Doctrine_Transaction_Mock This class is used for testing purposes
-
Doctrine_Transaction_Mssql
-
in file Mssql.php, class Doctrine_Transaction_Mssql
-
Doctrine_Transaction_Mysql
-
in file Mysql.php, class Doctrine_Transaction_Mysql
-
Doctrine_Transaction_Oracle
-
in file Oracle.php, class Doctrine_Transaction_Oracle
-
Doctrine_Transaction_Pgsql
-
in file Pgsql.php, class Doctrine_Transaction_Pgsql
-
Doctrine_Transaction_Sqlite
-
in file Sqlite.php, class Doctrine_Transaction_Sqlite
-
Doctrine_Tree
-
in file Tree.php, class Doctrine_Tree
    Doctrine_Tree
-
Doctrine_Tree_AdjacencyList
-
in file AdjacencyList.php, class Doctrine_Tree_AdjacencyList
    Doctrine_Tree_AdjacencyList
-
Doctrine_Tree_Exception
-
in file Exception.php, class Doctrine_Tree_Exception
    Doctrine_Tree_Exception
-
Doctrine_Tree_Interface
-
in file Interface.php, class Doctrine_Tree_Interface
    Doctrine_Tree_Interface
-
Doctrine_Tree_MaterializedPath
-
in file MaterializedPath.php, class Doctrine_Tree_MaterializedPath
    Doctrine_Tree_MaterializedPath
-
Doctrine_Tree_NestedSet
-
in file NestedSet.php, class Doctrine_Tree_NestedSet
    Doctrine_Tree_NestedSet
-
Doctrine_Util
-
in file Util.php, class Doctrine_Util
    Doctrine_Util
-
Doctrine_Validator
-
in file Validator.php, class Doctrine_Validator
    Doctrine_Validator Doctrine_Validator performs validations in record properties
-
Doctrine_Validator_Country
-
in file Country.php, class Doctrine_Validator_Country
    Doctrine_Validator_Country
-
Doctrine_Validator_Creditcard
-
in file Creditcard.php, class Doctrine_Validator_Creditcard
    Doctrine_Validator_Creditcard
-
Doctrine_Validator_Date
-
in file Date.php, class Doctrine_Validator_Date
    Doctrine_Validator_Date
-
Doctrine_Validator_Email
-
in file Email.php, class Doctrine_Validator_Email
    Doctrine_Validator_Email
-
Doctrine_Validator_Enum
-
in file Enum.php, class Doctrine_Validator_Enum
    Doctrine_Validator_Enum
-
Doctrine_Validator_ErrorStack
-
in file ErrorStack.php, class Doctrine_Validator_ErrorStack
    Doctrine_Validator_ErrorStack
-
Doctrine_Validator_Exception
-
in file Exception.php, class Doctrine_Validator_Exception
    Doctrine_Validator_Exception
-
Doctrine_Validator_HtmlColor
-
in file Htmlcolor.php, class Doctrine_Validator_HtmlColor
    Doctrine_Validator_HtmlColor
-
Doctrine_Validator_Interface
-
in file Interface.class.php, class Doctrine_Validator_Interface
-
Doctrine_Validator_Ip
-
in file Ip.php, class Doctrine_Validator_Ip
    Doctrine_Validator_Ip
-
Doctrine_Validator_Minlength
-
in file Minlength.php, class Doctrine_Validator_Minlength
    Doctrine_Validator_Regexp
-
Doctrine_Validator_Nospace
-
in file Nospace.php, class Doctrine_Validator_Nospace
    Doctrine_Validator_Nospace
-
Doctrine_Validator_Notblank
-
in file Notblank.php, class Doctrine_Validator_Notblank
    Doctrine_Validator_Notblank
-
Doctrine_Validator_Notnull
-
in file Notnull.php, class Doctrine_Validator_Notnull
    Doctrine_Validator_Notnull
-
Doctrine_Validator_Range
-
in file Range.php, class Doctrine_Validator_Range
    Doctrine_Validator_Range
-
Doctrine_Validator_Regexp
-
in file Regexp.php, class Doctrine_Validator_Regexp
    Doctrine_Validator_Regexp
-
Doctrine_Validator_Unique
-
in file Unique.php, class Doctrine_Validator_Unique
    Doctrine_Validator_Unique
-
Doctrine_Validator_Unsigned
-
in file Unsigned.php, class Doctrine_Validator_Unsigned
    Doctrine_Validator_Enum
-
Doctrine_Validator_Usstate
-
in file Usstate.php, class Doctrine_Validator_Usstate
    Doctrine_Validator_Usstate
-
Doctrine_View
-
in file View.php, class Doctrine_View
    Doctrine_View
-
Doctrine_View_Exception
-
in file Exception.php, class Doctrine_View_Exception
    Doctrine_Validator_Exception
-
driverName
-
in file Connection.php, method Doctrine_Connection::driverName()
    converts given driver name
-
drop
-
in file View.php, method Doctrine_View::drop()
    drop drops this view from the database
-
DROP
-
in file View.php, class constant Doctrine_View::DROP
    SQL DROP constant
-
dropAutoincrement
-
in file Oracle.php, method Doctrine_Export_Oracle::dropAutoincrement()
    drop an existing autoincrement sequence + trigger
-
dropConstraint
-
in file Export.php, method Doctrine_Export::dropConstraint()
    drop existing constraint
-
dropDatabase
-
in file Export.php, method Doctrine_Export::dropDatabase()
    drop an existing database (this method is implemented by the drivers)
-
dropDatabase
-
in file Oracle.php, method Doctrine_Export_Oracle::dropDatabase()
    drop an existing database
-
dropDatabase
-
in file Firebird.php, method Doctrine_Export_Firebird::dropDatabase()
    drop an existing database
-
dropDatabase
-
in file Mssql.php, method Doctrine_Export_Mssql::dropDatabase()
    drop an existing database
-
dropDatabase
-
in file Sqlite.php, method Doctrine_Export_Sqlite::dropDatabase()
    drop an existing database
-
dropDatabaseSql
-
in file Mysql.php, method Doctrine_Export_Mysql::dropDatabaseSql()
    drop an existing database
-
dropDatabaseSql
-
in file Export.php, method Doctrine_Export::dropDatabaseSql()
    drop an existing database (this method is implemented by the drivers)
-
dropDatabaseSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::dropDatabaseSql()
    drop an existing database
-
dropDatabaseSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropDatabaseSql()
    drop an existing database
-
dropIndex
-
in file Export.php, method Doctrine_Export::dropIndex()
    drop existing index
-
dropIndexSql
-
in file Export.php, method Doctrine_Export::dropIndexSql()
    dropIndexSql
-
dropIndexSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropIndexSql()
    drop existing index
-
dropIndexSql
-
in file Mysql.php, method Doctrine_Export_Mysql::dropIndexSql()
    drop existing index
-
dropSequence
-
in file Export.php, method Doctrine_Export::dropSequence()
    dropSequenceSql drop existing sequence (this method is implemented by the drivers)
-
dropSequenceSql
-
in file Mssql.php, method Doctrine_Export_Mssql::dropSequenceSql()
    This function drops an existing sequence
-
dropSequenceSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Oracle.php, method Doctrine_Export_Oracle::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Firebird.php, method Doctrine_Export_Firebird::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Export.php, method Doctrine_Export::dropSequenceSql()
    dropSequenceSql drop existing sequence
-
dropSequenceSql
-
in file Sqlite.php, method Doctrine_Export_Sqlite::dropSequenceSql()
    drop existing sequence
-
dropTable
-
in file Firebird.php, method Doctrine_Export_Firebird::dropTable()
    drop an existing table
-
dropTable
-
in file Oracle.php, method Doctrine_Export_Oracle::dropTable()
    drop an existing table
-
dropTable
-
in file Export.php, method Doctrine_Export::dropTable()
    dropTable drop an existing table
-
dropTableSql
-
in file Mysql.php, method Doctrine_Export_Mysql::dropTableSql()
    dropTable
-
dropTableSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropTableSql()
    drop an existing table
-
dropTableSql
-
in file Export.php, method Doctrine_Export::dropTableSql()
    dropTableSql drop an existing table
-
dump
-
in file Yml.php, method Doctrine_Export_Schema_Yml::dump()
    dump
-
dump
-
in file Doctrine.php, method Doctrine::dump()
    dump
-
dump
-
in file Schema.php, method Doctrine_Export_Schema::dump()
    dump
-
dump
-
in file Xml.php, method Doctrine_Export_Schema_Xml::dump()
    dump
-
-
- -
-
e
-
[Top]
-
-
-
-

e

-
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Oracle_Exception::$errorCodeMap
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Firebird_Exception::$errorCodeMap
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Mysql_Exception::$errorCodeMap
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Mssql_Exception::$errorCodeMap
-
$errorMessages
-
in file Exception.php, variable Doctrine_Connection_Exception::$errorMessages
-
$errorRegexps
-
in file Exception.php, variable Doctrine_Connection_Firebird_Exception::$errorRegexps
-
$errorRegexps
-
in file Exception.php, variable Doctrine_Connection_Pgsql_Exception::$errorRegexps
-
$errorRegexps
-
in file Exception.php, variable Doctrine_Connection_Sqlite_Exception::$errorRegexps
-
$errors
-
in file ErrorStack.php, variable Doctrine_Validator_ErrorStack::$errors
    The errors of the error stack.
-
$events
-
in file Profiler.php, variable Doctrine_Connection_Profiler::$events
-
$exception
-
in file Mock.php, variable Doctrine_Adapter_Mock::$exception
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Expandable.php
-
procedural page Expandable.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Event.php
-
procedural page Event.php
-
Exception.php
-
procedural page Exception.php
-
EventListener.php
-
procedural page EventListener.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Export.php
-
procedural page Export.php
-
Exception.php
-
procedural page Exception.php
-
Expression.php
-
procedural page Expression.php
-
Equal.php
-
procedural page Equal.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Email.php
-
procedural page Email.php
-
Enum.php
-
procedural page Enum.php
-
ErrorStack.php
-
procedural page ErrorStack.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
end
-
in file Event.php, method Doctrine_Event::end()
    end ends the internal timer of this event
-
enumIndex
-
in file Table.php, method Doctrine_Table::enumIndex()
    enumIndex
-
enumIndex
-
in file Column.php, method Doctrine_Column::enumIndex()
    enumIndex
-
enumValue
-
in file Column.php, method Doctrine_Column::enumValue()
    enumValue
-
enumValue
-
in file Table.php, method Doctrine_Table::enumValue()
    enumValue
-
eq
-
in file Driver.php, method Doctrine_Expression_Driver::eq()
    Returns the SQL to check if two values are equal.
-
ERR
-
in file Doctrine.php, class constant Doctrine::ERR
    ERROR CONSTANTS
-
ERRMODE_EXCEPTION
-
in file Adapter.php, class constant Doctrine_Adapter::ERRMODE_EXCEPTION
-
ERRMODE_EXCEPTION
-
in file Doctrine.php, class constant Doctrine::ERRMODE_EXCEPTION
-
ERRMODE_SILENT
-
in file Adapter.php, class constant Doctrine_Adapter::ERRMODE_SILENT
-
ERRMODE_SILENT
-
in file Doctrine.php, class constant Doctrine::ERRMODE_SILENT
-
ERRMODE_WARNING
-
in file Adapter.php, class constant Doctrine_Adapter::ERRMODE_WARNING
-
ERRMODE_WARNING
-
in file Doctrine.php, class constant Doctrine::ERRMODE_WARNING
-
errorCode
-
in file Mock.php, method Doctrine_Adapter_Mock::errorCode()
-
errorCode
-
in file Statement.php, method Doctrine_Adapter_Statement::errorCode()
-
errorCode
-
in file Connection.php, method Doctrine_Connection::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the database handle
-
errorCode
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
errorCode
-
in file Statement.php, method Doctrine_Connection_Statement::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
errorCode
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
errorCode
-
in file Interface.php, method Doctrine_Adapter_Interface::errorCode()
-
errorInfo
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the statement handle
-
errorInfo
-
in file Statement.php, method Doctrine_Adapter_Statement::errorInfo()
-
errorInfo
-
in file Mock.php, method Doctrine_Adapter_Mock::errorInfo()
-
errorInfo
-
in file Interface.php, method Doctrine_Adapter_Interface::errorInfo()
-
errorInfo
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the statement handle
-
errorInfo
-
in file Connection.php, method Doctrine_Connection::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the database handle
-
errorInfo
-
in file Statement.php, method Doctrine_Connection_Statement::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the statement handle
-
errorMessage
-
in file Exception.php, method Doctrine_Connection_Exception::errorMessage()
    Return a textual error message for a Doctrine error code
-
errorMessage
-
in file Exception.php, method Doctrine_Exception::errorMessage()
    Return a textual error message for a Doctrine error code
-
errorStack
-
in file Record.php, method Doctrine_Record::errorStack()
    errorStack assigns / returns record errorStack
-
ERR_ACCESS_VIOLATION
-
in file Doctrine.php, class constant Doctrine::ERR_ACCESS_VIOLATION
-
ERR_ALREADY_EXISTS
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_ALREADY_EXISTS
-
ERR_ALREADY_EXISTS
-
in file Doctrine.php, class constant Doctrine::ERR_ALREADY_EXISTS
-
ERR_CANNOT_ALTER
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_ALTER
-
ERR_CANNOT_CREATE
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_CREATE
-
ERR_CANNOT_DELETE
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_DELETE
-
ERR_CANNOT_DROP
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_DROP
-
ERR_CANNOT_REPLACE
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_REPLACE
-
ERR_CANT_MAP
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_CANT_MAP
-
ERR_CLASS_NAME
-
in file Doctrine.php, class constant Doctrine::ERR_CLASS_NAME
-
ERR_CONNECT_FAILED
-
in file Doctrine.php, class constant Doctrine::ERR_CONNECT_FAILED
-
ERR_CONSTRAINT
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_CONSTRAINT
-
ERR_CONSTRAINT
-
in file Doctrine.php, class constant Doctrine::ERR_CONSTRAINT
-
ERR_CONSTRAINT_NOT_NULL
-
in file Doctrine.php, class constant Doctrine::ERR_CONSTRAINT_NOT_NULL
-
ERR_DEADLOCK
-
in file Doctrine.php, class constant Doctrine::ERR_DEADLOCK
-
ERR_DISCONNECTED
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_DISCONNECTED
-
ERR_DIVZERO
-
in file Doctrine.php, class constant Doctrine::ERR_DIVZERO
-
ERR_EXTENSION_NOT_FOUND
-
in file Doctrine.php, class constant Doctrine::ERR_EXTENSION_NOT_FOUND
-
ERR_INSUFFICIENT_DATA
-
in file Doctrine.php, class constant Doctrine::ERR_INSUFFICIENT_DATA
-
ERR_INVALID
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID
-
ERR_INVALID_DATE
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID_DATE
-
ERR_INVALID_DSN
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID_DSN
-
ERR_INVALID_NUMBER
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID_NUMBER
-
ERR_LOADMODULE
-
in file Doctrine.php, class constant Doctrine::ERR_LOADMODULE
-
ERR_MANAGER
-
in file Doctrine.php, class constant Doctrine::ERR_MANAGER
-
ERR_MANAGER_PARSE
-
in file Doctrine.php, class constant Doctrine::ERR_MANAGER_PARSE
-
ERR_MISMATCH
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_MISMATCH
-
ERR_MISMATCH
-
in file Doctrine.php, class constant Doctrine::ERR_MISMATCH
-
ERR_NEED_MORE_DATA
-
in file Doctrine.php, class constant Doctrine::ERR_NEED_MORE_DATA
-
ERR_NODBSELECTED
-
in file Doctrine.php, class constant Doctrine::ERR_NODBSELECTED
-
ERR_NONE
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NONE
-
ERR_NOSUCHDB
-
in file Doctrine.php, class constant Doctrine::ERR_NOSUCHDB
-
ERR_NOSUCHFIELD
-
in file Doctrine.php, class constant Doctrine::ERR_NOSUCHFIELD
-
ERR_NOSUCHTABLE
-
in file Doctrine.php, class constant Doctrine::ERR_NOSUCHTABLE
-
ERR_NOT_CAPABLE
-
in file Doctrine.php, class constant Doctrine::ERR_NOT_CAPABLE
-
ERR_NOT_FOUND
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NOT_FOUND
-
ERR_NOT_FOUND
-
in file Doctrine.php, class constant Doctrine::ERR_NOT_FOUND
-
ERR_NOT_IMPLEMENTED
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NOT_IMPLEMENTED
-
ERR_NOT_LOCKED
-
in file Doctrine.php, class constant Doctrine::ERR_NOT_LOCKED
-
ERR_NO_PERM
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NO_PERM
-
ERR_SYNTAX
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_SYNTAX
-
ERR_SYNTAX
-
in file Doctrine.php, class constant Doctrine::ERR_SYNTAX
-
ERR_TRUNCATED
-
in file Doctrine.php, class constant Doctrine::ERR_TRUNCATED
-
ERR_TRUNCATED
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_TRUNCATED
-
ERR_UNSUPPORTED
-
in file Doctrine.php, class constant Doctrine::ERR_UNSUPPORTED
-
ERR_VALUE_COUNT_ON_ROW
-
in file Doctrine.php, class constant Doctrine::ERR_VALUE_COUNT_ON_ROW
-
escapePattern
-
in file Formatter.php, method Doctrine_Formatter::escapePattern()
    Quotes pattern (% and _) characters in a string)
-
evict
-
in file Repository.php, method Doctrine_Table_Repository::evict()
-
evictAll
-
in file Repository.php, method Doctrine_Table_Repository::evictAll()
-
evictTables
-
in file Connection.php, method Doctrine_Connection::evictTables()
    evictTables evicts all tables
-
exec
-
in file Connection.php, method Doctrine_Connection::exec()
    exec
-
exec
-
in file Mock.php, method Doctrine_Adapter_Mock::exec()
-
exec
-
in file Interface.php, method Doctrine_Adapter_Interface::exec()
-
execute
-
in file View.php, method Doctrine_View::execute()
    execute executes the view returns a collection of Doctrine_Record objects
-
execute
-
in file Statement.php, method Doctrine_Connection_Statement::execute()
    execute Executes a prepared statement
-
execute
-
in file Statement.php, method Doctrine_Adapter_Statement::execute()
-
execute
-
in file Query.php, method Doctrine_Search_Query::execute()
-
execute
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::execute()
    execute Executes a prepared statement
-
execute
-
in file Connection.php, method Doctrine_Connection::execute()
    execute
-
execute
-
in file Hydrate.php, method Doctrine_Hydrate::execute()
    execute executes the query and populates the data set
-
execute
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::execute()
    execute Executes a prepared statement
-
exists
-
in file Record.php, method Doctrine_Record::exists()
    exists returns true if this record is persistent, otherwise false
-
exists
-
in file Null.php, method Doctrine_Null::exists()
-
expireCache
-
in file Hydrate.php, method Doctrine_Hydrate::expireCache()
    expireCache
-
export
-
in file Table.php, method Doctrine_Table::export()
    export exports this table to database based on column and option definitions
-
exportClasses
-
in file Export.php, method Doctrine_Export::exportClasses()
    exportClasses method for exporting Doctrine_Record classes to a schema
-
exportClassesSql
-
in file Export.php, method Doctrine_Export::exportClassesSql()
    exportClassesSql method for exporting Doctrine_Record classes to a schema
-
exportConstraints
-
in file Table.php, method Doctrine_Table::exportConstraints()
    exportConstraints exports the constraints of this table into database based on option definitions
-
exportSchema
-
in file Export.php, method Doctrine_Export::exportSchema()
    exportSchema method for exporting Doctrine_Record classes to a schema
-
exportSchema
-
in file Doctrine.php, method Doctrine::exportSchema()
    exportSchema method for exporting Doctrine_Record classes to a schema
-
exportSchema
-
in file Schema.php, method Doctrine_Export_Schema::exportSchema()
    exportSchema
-
exportSql
-
in file Export.php, method Doctrine_Export::exportSql()
    exportSql returns the sql for exporting Doctrine_Record classes to a schema
-
exportSql
-
in file Doctrine.php, method Doctrine::exportSql()
    exportSql method for exporting Doctrine_Record classes to a schema
-
exportTable
-
in file Export.php, method Doctrine_Export::exportTable()
    exportTable exports given table into database based on column and option definitions
-
EXPORT_ALL
-
in file Doctrine.php, class constant Doctrine::EXPORT_ALL
    export all
-
EXPORT_CONSTRAINTS
-
in file Doctrine.php, class constant Doctrine::EXPORT_CONSTRAINTS
    export constraints
-
EXPORT_NONE
-
in file Doctrine.php, class constant Doctrine::EXPORT_NONE
    turns of exporting
-
EXPORT_TABLES
-
in file Doctrine.php, class constant Doctrine::EXPORT_TABLES
    export tables
-
-
- -
-
f
-
[Top]
-
-
-
-

f

-
-
$fieldParsers
-
in file Hook.php, variable Doctrine_Hook::$fieldParsers
-
$fields
-
in file RawSql.php, variable Doctrine_RawSql::$fields
-
Firebird.php
-
procedural page Firebird.php
-
Firebird.php
-
procedural page Firebird.php
-
Firebird.php
-
procedural page Firebird.php
-
Frontbase.php
-
procedural page Frontbase.php
-
Firebird.php
-
procedural page Firebird.php
-
File.php
-
procedural page File.php
-
Formatter.php
-
procedural page Formatter.php
-
Firebird.php
-
procedural page Firebird.php
-
Filter.php
-
procedural page Filter.php
-
From.php
-
procedural page From.php
-
Filter.php
-
procedural page Filter.php
-
ForeignKey.php
-
procedural page ForeignKey.php
-
Firebird.php
-
procedural page Firebird.php
-
Firebird.php
-
procedural page Firebird.php
-
factory
-
in file Node.php, method Doctrine_Node::factory()
    factory method to return node instance based upon chosen implementation
-
factory
-
in file Tree.php, method Doctrine_Tree::factory()
    factory method to return tree instance based upon chosen implementation
-
fetch
-
in file Db.php, method Doctrine_Cache_Db::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Statement.php, method Doctrine_Connection_Statement::fetch()
    fetch
-
fetch
-
in file Statement.php, method Doctrine_Adapter_Statement::fetch()
    fetch
-
fetch
-
in file Interface.php, method Doctrine_Cache_Interface::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Apc.php, method Doctrine_Cache_Apc::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Array.php, method Doctrine_Cache_Array::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Memcache.php, method Doctrine_Cache_Memcache::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetch()
    fetch
-
fetch
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetch()
    fetch
-
fetchAll
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetchAll()
    fetchAll Returns an array containing all of the result set rows
-
fetchAll
-
in file Connection.php, method Doctrine_Connection::fetchAll()
    fetchAll
-
fetchAll
-
in file Statement.php, method Doctrine_Connection_Statement::fetchAll()
    fetchAll Returns an array containing all of the result set rows
-
fetchAll
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetchAll()
    fetchAll Returns an array containing all of the result set rows
-
fetchArray
-
in file Connection.php, method Doctrine_Connection::fetchArray()
    fetchArray
-
fetchArray
-
in file Hydrate.php, method Doctrine_Hydrate::fetchArray()
    fetchArray Convenience method to execute using array fetching as hydration mode.
-
fetchAssoc
-
in file Connection.php, method Doctrine_Connection::fetchAssoc()
    fetchAssoc
-
fetchBoth
-
in file Connection.php, method Doctrine_Connection::fetchBoth()
    fetchBoth
-
fetchBranch
-
in file Interface.php, method Doctrine_Tree_Interface::fetchBranch()
    optimised method that returns iterator for traversal of the tree from the given record primary key
-
fetchBranch
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchBranch()
    Fetches a branch of a tree.
-
fetchColumn
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetchColumn()
    fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
fetchColumn
-
in file Connection.php, method Doctrine_Connection::fetchColumn()
    fetchColumn
-
fetchColumn
-
in file Statement.php, method Doctrine_Connection_Statement::fetchColumn()
    fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
fetchColumn
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetchColumn()
    fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
fetchObject
-
in file Statement.php, method Doctrine_Connection_Statement::fetchObject()
    fetchObject Fetches the next row and returns it as an object.
-
fetchObject
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetchObject()
    fetchObject Fetches the next row and returns it as an object.
-
fetchObject
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetchObject()
    fetchObject Fetches the next row and returns it as an object.
-
fetchOne
-
in file Connection.php, method Doctrine_Connection::fetchOne()
    fetchOne
-
fetchOne
-
in file Hydrate.php, method Doctrine_Hydrate::fetchOne()
    fetchOne Convenience method to execute the query and return the first item of the collection.
-
fetchRelatedFor
-
in file Self.php, method Doctrine_Relation_Association_Self::fetchRelatedFor()
-
fetchRelatedFor
-
in file ForeignKey.php, method Doctrine_Relation_ForeignKey::fetchRelatedFor()
    fetchRelatedFor
-
fetchRelatedFor
-
in file Association.php, method Doctrine_Relation_Association::fetchRelatedFor()
    fetchRelatedFor
-
fetchRelatedFor
-
in file Nest.php, method Doctrine_Relation_Nest::fetchRelatedFor()
-
fetchRelatedFor
-
in file Relation.php, method Doctrine_Relation::fetchRelatedFor()
    fetchRelatedFor
-
fetchRelatedFor
-
in file LocalKey.php, method Doctrine_Relation_LocalKey::fetchRelatedFor()
    fetchRelatedFor
-
fetchRoot
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchRoot()
    Fetches a/the root node.
-
fetchRoots
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchRoots()
    Fetches all root nodes. If the tree has only one root this is the same as fetchRoot().
-
fetchRow
-
in file Connection.php, method Doctrine_Connection::fetchRow()
    fetchRow
-
fetchTree
-
in file Interface.php, method Doctrine_Tree_Interface::fetchTree()
    optimised method to returns iterator for traversal of the entire tree from root
-
fetchTree
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchTree()
    Fetches a tree.
-
FETCH_ARRAY
-
in file Doctrine.php, class constant Doctrine::FETCH_ARRAY
    FETCH ARRAY
-
FETCH_ASSOC
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ASSOC
-
FETCH_ASSOC
-
in file Doctrine.php, class constant Doctrine::FETCH_ASSOC
-
FETCH_BATCH
-
in file Doctrine.php, class constant Doctrine::FETCH_BATCH
    BATCH FETCHING
-
FETCH_BOTH
-
in file Doctrine.php, class constant Doctrine::FETCH_BOTH
-
FETCH_BOTH
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_BOTH
-
FETCH_BOUND
-
in file Doctrine.php, class constant Doctrine::FETCH_BOUND
-
FETCH_BOUND
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_BOUND
-
FETCH_CLASS
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_CLASS
-
FETCH_CLASS
-
in file Doctrine.php, class constant Doctrine::FETCH_CLASS
-
FETCH_CLASSTYPE
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_CLASSTYPE
-
FETCH_CLASSTYPE
-
in file Doctrine.php, class constant Doctrine::FETCH_CLASSTYPE
-
FETCH_COLUMN
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_COLUMN
-
FETCH_COLUMN
-
in file Doctrine.php, class constant Doctrine::FETCH_COLUMN
-
FETCH_FUNC
-
in file Doctrine.php, class constant Doctrine::FETCH_FUNC
-
FETCH_FUNC
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_FUNC
-
FETCH_GROUP
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_GROUP
-
FETCH_GROUP
-
in file Doctrine.php, class constant Doctrine::FETCH_GROUP
-
FETCH_IMMEDIATE
-
in file Doctrine.php, class constant Doctrine::FETCH_IMMEDIATE
    IMMEDIATE FETCHING
-
FETCH_INTO
-
in file Doctrine.php, class constant Doctrine::FETCH_INTO
-
FETCH_INTO
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_INTO
-
FETCH_LAZY
-
in file Doctrine.php, class constant Doctrine::FETCH_LAZY
-
FETCH_LAZY
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_LAZY
-
FETCH_LAZY_OFFSET
-
in file Doctrine.php, class constant Doctrine::FETCH_LAZY_OFFSET
    LAZY OFFSET FETCHING
-
FETCH_NAMED
-
in file Doctrine.php, class constant Doctrine::FETCH_NAMED
-
FETCH_NAMED
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_NAMED
-
FETCH_NUM
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_NUM
-
FETCH_NUM
-
in file Doctrine.php, class constant Doctrine::FETCH_NUM
-
FETCH_OBJ
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_OBJ
-
FETCH_OBJ
-
in file Doctrine.php, class constant Doctrine::FETCH_OBJ
-
FETCH_OFFSET
-
in file Doctrine.php, class constant Doctrine::FETCH_OFFSET
    LAZY FETCHING
-
FETCH_ORI_ABS
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_ABS
-
FETCH_ORI_ABS
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_ABS
-
FETCH_ORI_FIRST
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_FIRST
-
FETCH_ORI_FIRST
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_FIRST
-
FETCH_ORI_LAST
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_LAST
-
FETCH_ORI_LAST
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_LAST
-
FETCH_ORI_NEXT
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_NEXT
-
FETCH_ORI_NEXT
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_NEXT
-
FETCH_ORI_PRIOR
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_PRIOR
-
FETCH_ORI_PRIOR
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_PRIOR
-
FETCH_ORI_REL
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_REL
-
FETCH_ORI_REL
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_REL
-
FETCH_RECORD
-
in file Doctrine.php, class constant Doctrine::FETCH_RECORD
    FETCH RECORD
-
FETCH_SERIALIZE
-
in file Doctrine.php, class constant Doctrine::FETCH_SERIALIZE
-
FETCH_SERIALIZE
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_SERIALIZE
-
FETCH_UNIQUE
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_UNIQUE
-
FETCH_UNIQUE
-
in file Doctrine.php, class constant Doctrine::FETCH_UNIQUE
-
FETCH_VHOLDER
-
in file Doctrine.php, class constant Doctrine::FETCH_VHOLDER
    FETCH VALUEHOLDER
-
find
-
in file Table.php, method Doctrine_Table::find()
    finds a record by its identifier
-
findAll
-
in file Table.php, method Doctrine_Table::findAll()
    findAll returns a collection of records
-
findByDql
-
in file Table.php, method Doctrine_Table::findByDql()
-
findBySql
-
in file Table.php, method Doctrine_Table::findBySql()
    findByDql finds records with given DQL where clause returns a collection of records
-
findRoot
-
in file Interface.php, method Doctrine_Tree_Interface::findRoot()
    returns root node
-
findRoot
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::findRoot()
    returns root node
-
fixIndexName
-
in file Formatter.php, method Doctrine_Formatter::fixIndexName()
    Removes any formatting in an index name using the 'idxname_format' option
-
fixSequenceName
-
in file Formatter.php, method Doctrine_Formatter::fixSequenceName()
    Removes any formatting in an sequence name using the 'seqname_format' option
-
flush
-
in file Array.php, method Doctrine_Hydrate_Array::flush()
-
flush
-
in file Record.php, method Doctrine_Hydrate_Record::flush()
-
flush
-
in file Connection.php, method Doctrine_Connection::flush()
    flush saves all the records from all tables this operation is isolated using a transaction
-
forceException
-
in file Mock.php, method Doctrine_Adapter_Mock::forceException()
-
forceLastInsertIdFail
-
in file Mock.php, method Doctrine_Adapter_Mock::forceLastInsertIdFail()
-
formatSql
-
in file Lib.php, method Doctrine_Lib::formatSql()
-
forUpdate
-
in file Abstract.php, method Doctrine_Query_Abstract::forUpdate()
    forUpdate Makes the query SELECT FOR UPDATE.
-
free
-
in file Query.php, method Doctrine_Query::free()
    Frees the resources used by the query object. It especially breaks a cyclic reference between the query object and it's parsers. This enables PHP's current GC to reclaim the memory.
-
from
-
in file Abstract.php, method Doctrine_Query_Abstract::from()
    from sets the FROM part of the query
-
functionTable
-
in file Firebird.php, method Doctrine_Expression_Firebird::functionTable()
    return string for internal table used when calling only a function
-
-
- -
-
g
-
[Top]
-
-
-
-

g

-
-
Groupby.php
-
procedural page Groupby.php
-
generateMessage
-
in file Exception.php, method Doctrine_Validator_Exception::generateMessage()
-
generateNewTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::generateNewTableAlias()
    generateNewTableAlias generates a new alias from given table alias
-
generateTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::generateTableAlias()
    generateTableAlias generates a table alias from given table name and associates it with given component alias
-
get
-
in file Repository.php, method Doctrine_Table_Repository::get()
    get
-
get
-
in file Collection.php, method Doctrine_Collection::get()
    get returns a record for given key
-
get
-
in file Record.php, method Doctrine_Record::get()
    get returns a value of a property or a related component
-
get
-
in file Profiler.php, method Doctrine_Connection_Profiler::get()
    get
-
get
-
in file Chain.php, method Doctrine_EventListener_Chain::get()
    returns a Doctrine_EventListener on success and null on failure
-
get
-
in file Chain.php, method Doctrine_Query_Filter_Chain::get()
    returns a Doctrine_Query_Filter on success and null on failure
-
get
-
in file Object.php, method Doctrine_Schema_Object::get()
-
get
-
in file Column.php, method Doctrine_Column::get()
    get
-
get
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::get()
    Enter description here...
-
get
-
in file Chain.php, method Doctrine_Record_Listener_Chain::get()
    returns a Doctrine_Record_Listener on success and null on failure
-
get
-
in file File.php, method Doctrine_File::get()
-
getAdvancedForeignKeyOptions
-
in file Mysql.php, method Doctrine_Export_Mysql::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Pgsql.php, method Doctrine_Export_Pgsql::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Oracle.php, method Doctrine_Export_Oracle::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Export.php, method Doctrine_Export::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Sqlite.php, method Doctrine_Export_Sqlite::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAggregateAlias
-
in file Query.php, method Doctrine_Query::getAggregateAlias()
    getAggregateAlias
-
getAlias
-
in file Relation.php, method Doctrine_Relation::getAlias()
    getAlias returns the relation alias
-
getAliasDeclaration
-
in file Hydrate.php, method Doctrine_Hydrate::getAliasDeclaration()
    getAliasDeclaration get the declaration for given component alias
-
getAliasMap
-
in file Hydrate.php, method Doctrine_Hydrate::getAliasMap()
    getAliasMap returns the component alias map
-
getAll
-
in file Mock.php, method Doctrine_Adapter_Mock::getAll()
-
getAll
-
in file Profiler.php, method Doctrine_Connection_Profiler::getAll()
    getAll returns all profiled events as an array
-
getAll
-
in file Cache.php, method Doctrine_Cache::getAll()
    getQueries
-
getAncestors
-
in file Interface.php, method Doctrine_Node_Interface::getAncestors()
    gets ancestors for node
-
getAncestors
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getAncestors()
    gets ancestors for node
-
getAssociationFactory
-
in file Association.php, method Doctrine_Relation_Association::getAssociationFactory()
-
getAssociationTable
-
in file Association.php, method Doctrine_Relation_Association::getAssociationTable()
-
getAttribute
-
in file Tree.php, method Doctrine_Tree::getAttribute()
    gets tree attribute value
-
getAttribute
-
in file Configurable.php, method Doctrine_Configurable::getAttribute()
    returns the value of an attribute
-
getAttribute
-
in file Connection.php, method Doctrine_Connection::getAttribute()
    getAttribute retrieves a database connection attribute
-
getAttribute
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::getAttribute()
    getAttribute Retrieve a statement attribute
-
getAttribute
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::getAttribute()
    getAttribute Retrieve a statement attribute
-
getAttribute
-
in file Statement.php, method Doctrine_Connection_Statement::getAttribute()
    getAttribute Retrieve a statement attribute
-
getAttribute
-
in file Mock.php, method Doctrine_Adapter_Mock::getAttribute()
-
getAttributes
-
in file Configurable.php, method Doctrine_Configurable::getAttributes()
    getAttributes returns all attributes as an array
-
getAuditLog
-
in file Versionable.php, method Doctrine_Template_Versionable::getAuditLog()
-
getAvailableDrivers
-
in file Connection.php, method Doctrine_Connection::getAvailableDrivers()
    returns an array of available PDO drivers
-
getBaseAlias
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getBaseAlias()
    Enter description here...
-
getBaseComponent
-
in file Tree.php, method Doctrine_Tree::getBaseComponent()
    Returns the base tree component.
-
getBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getBaseQuery()
    Enter description here...
-
getCachedForm
-
in file Hydrate.php, method Doctrine_Hydrate::getCachedForm()
    getCachedForm returns the cached form of this query for given resultSet
-
getCacheDriver
-
in file Hydrate.php, method Doctrine_Hydrate::getCacheDriver()
    getCacheDriver returns the cache driver associated with this object
-
getCacheDriver
-
in file Configurable.php, method Doctrine_Configurable::getCacheDriver()
    getCacheDriver
-
getCharsetFieldDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getCharsetFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
-
getCharsetFieldDeclaration
-
in file Export.php, method Doctrine_Export::getCharsetFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
-
getCharsetFieldDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getCharsetFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
-
getCheckDeclaration
-
in file Export.php, method Doctrine_Export::getCheckDeclaration()
    Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE.
-
getChildren
-
in file Interface.php, method Doctrine_Node_Interface::getChildren()
    gets children for node (direct descendants only)
-
getChildren
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getChildren()
    gets children for node (direct descendants only)
-
getClassnameToReturn
-
in file Table.php, method Doctrine_Table::getClassnameToReturn()
    Get the classname to return. Most often this is just the options['name']
-
getCode
-
in file Event.php, method Doctrine_Event::getCode()
    getCode
-
getCollationFieldDeclaration
-
in file Export.php, method Doctrine_Export::getCollationFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
-
getCollationFieldDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getCollationFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
-
getCollationFieldDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getCollationFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
-
getCollectionAsString
-
in file Lib.php, method Doctrine_Lib::getCollectionAsString()
    returns a string representation of Doctrine_Collection object
-
getCollectionAsXml
-
in file Lib.php, method Doctrine_Lib::getCollectionAsXml()
    Return an collection of records as XML.
-
getColumn
-
in file Table.php, method Doctrine_Schema_Table::getColumn()
-
getColumnCount
-
in file Table.php, method Doctrine_Table::getColumnCount()
    getColumnCount
-
getColumnMeta
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::getColumnMeta()
    getColumnMeta Returns metadata for a column in a result set
-
getColumnMeta
-
in file Statement.php, method Doctrine_Connection_Statement::getColumnMeta()
    getColumnMeta Returns metadata for a column in a result set
-
getColumnMeta
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::getColumnMeta()
    getColumnMeta Returns metadata for a column in a result set
-
getColumnName
-
in file Table.php, method Doctrine_Table::getColumnName()
    getColumnName
-
getColumnNames
-
in file Table.php, method Doctrine_Table::getColumnNames()
    returns an array containing all the column names
-
getColumns
-
in file Table.php, method Doctrine_Table::getColumns()
    returns all columns and their definitions
-
getColumns
-
in file Table.php, method Doctrine_Schema_Table::getColumns()
    returns an array of Doctrine_Schema_Column objects
-
getComponentAlias
-
in file Hydrate.php, method Doctrine_Hydrate::getComponentAlias()
    getComponentAlias get component alias associated with given table alias
-
getComponentAlias
-
in file Manager.php, method Doctrine_Manager::getComponentAlias()
    getComponentAlias
-
getComponentName
-
in file Table.php, method Doctrine_Table::getComponentName()
-
getCondition
-
in file Parser.php, method Doctrine_Hook_Parser::getCondition()
-
getCondition
-
in file ForeignKey.php, method Doctrine_Relation_ForeignKey::getCondition()
    getCondition
-
getCondition
-
in file LocalKey.php, method Doctrine_Relation_LocalKey::getCondition()
    getCondition
-
getConnection
-
in file View.php, method Doctrine_View::getConnection()
    getConnection returns the connection object
-
getConnection
-
in file Db.php, method Doctrine_Cache_Db::getConnection()
    getConnection returns the connection object associated with this cache driver
-
getConnection
-
in file Statement.php, method Doctrine_Connection_Statement::getConnection()
    getConnection returns the connection object this statement uses
-
getConnection
-
in file Table.php, method Doctrine_Table::getConnection()
-
getConnection
-
in file Expression.php, method Doctrine_Expression::getConnection()
-
getConnection
-
in file Module.php, method Doctrine_Connection_Module::getConnection()
    getConnection returns the connection object this module uses
-
getConnection
-
in file Hydrate.php, method Doctrine_Hydrate::getConnection()
    getConnection
-
getConnection
-
in file Manager.php, method Doctrine_Manager::getConnection()
    getConnection
-
getConnectionAsString
-
in file Lib.php, method Doctrine_Lib::getConnectionAsString()
    returns a string representation of Doctrine_Connection object
-
getConnectionForComponent
-
in file Manager.php, method Doctrine_Manager::getConnectionForComponent()
    getConnectionForComponent
-
getConnectionName
-
in file Manager.php, method Doctrine_Manager::getConnectionName()
    getConnectionName
-
getConnections
-
in file Manager.php, method Doctrine_Manager::getConnections()
    getConnections returns all opened connections
-
getConnectionStateAsString
-
in file Lib.php, method Doctrine_Lib::getConnectionStateAsString()
    getStateAsString
-
getCountries
-
in file Country.php, method Doctrine_Validator_Country::getCountries()
-
getCurrentConnection
-
in file Manager.php, method Doctrine_Manager::getCurrentConnection()
    getCurrentConnection returns the current connection
-
getData
-
in file Table.php, method Doctrine_Table::getData()
    returns internal data, used by Doctrine_Record instances when retrieving data from database
-
getData
-
in file Record.php, method Doctrine_Record::getData()
    getData return all the internal data
-
getData
-
in file Collection.php, method Doctrine_Collection::getData()
    getData returns all the records as an array
-
getDatabaseFile
-
in file Sqlite.php, method Doctrine_Connection_Sqlite::getDatabaseFile()
    getDatabaseFile
-
getDatabases
-
in file Schema.php, method Doctrine_Schema::getDatabases()
    Return the childs for this schema
-
getDbh
-
in file Connection.php, method Doctrine_Connection::getDbh()
    returns the database handler of which this connection uses
-
getDeclaration
-
in file Export.php, method Doctrine_Export::getDeclaration()
    Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE.
-
getDefaultFieldDeclaration
-
in file Export.php, method Doctrine_Export::getDefaultFieldDeclaration()
    getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
-
getDefaultFieldDeclaration
-
in file Mysql.php, method Doctrine_Export_Mysql::getDefaultFieldDeclaration()
    getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
-
getDefaultLength
-
in file DataType.php, method Doctrine_DataType::getDefaultLength()
-
getDefaultValueOf
-
in file Table.php, method Doctrine_Table::getDefaultValueOf()
    getDefaultValueOf returns the default value(if any) for given column
-
getDefinition
-
in file Column.php, method Doctrine_Column::getDefinition()
-
getDefinitionOf
-
in file Table.php, method Doctrine_Table::getDefinitionOf()
    getDefinitionOf
-
getDeleteActions
-
in file Manager.php, method Doctrine_Manager::getDeleteActions()
-
getDeleteDiff
-
in file Collection.php, method Doctrine_Collection::getDeleteDiff()
-
getDeletes
-
in file Transaction.php, method Doctrine_Transaction::getDeletes()
    returns the pending delete list
-
getDescendants
-
in file Interface.php, method Doctrine_Node_Interface::getDescendants()
    gets descendants for node (direct descendants only)
-
getDescendants
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getDescendants()
    gets descendants for node (direct descendants only)
-
getDql
-
in file Query.php, method Doctrine_Query::getDql()
    getDql returns the DQL query associated with this object
-
getDqlPart
-
in file Query.php, method Doctrine_Query::getDqlPart()
    getDqlPart returns the given DQL query part
-
getDriver
-
in file Cache.php, method Doctrine_Cache::getDriver()
    getDriver returns the current cache driver
-
getElapsedSecs
-
in file Event.php, method Doctrine_Event::getElapsedSecs()
    Get the elapsed time (in microseconds) that the event ran. If the event has not yet ended, return false.
-
getElement
-
in file Record.php, method Doctrine_Hydrate_Record::getElement()
-
getElement
-
in file Array.php, method Doctrine_Hydrate_Array::getElement()
-
getElementCollection
-
in file Array.php, method Doctrine_Hydrate_Array::getElementCollection()
-
getElementCollection
-
in file Record.php, method Doctrine_Hydrate_Record::getElementCollection()
-
getEnumParams
-
in file Query.php, method Doctrine_Query::getEnumParams()
    getEnumParams get all enumerated parameters
-
getEnumValues
-
in file Column.php, method Doctrine_Column::getEnumValues()
-
getEnumValues
-
in file Table.php, method Doctrine_Table::getEnumValues()
-
getErrorStack
-
in file Record.php, method Doctrine_Record::getErrorStack()
    getErrorStack
-
getExportableFormat
-
in file Table.php, method Doctrine_Table::getExportableFormat()
    getExportableFormat returns exportable presentation of this object
-
getFieldDeclarationList
-
in file Export.php, method Doctrine_Export::getFieldDeclarationList()
    Get declaration of a number of field in bulk
-
getFields
-
in file RawSql.php, method Doctrine_RawSql::getFields()
    getFields returns the fields associated with this parser
-
getFirst
-
in file Collection.php, method Doctrine_Collection::getFirst()
    getFirst returns the first record in the collection
-
getFirstChild
-
in file Interface.php, method Doctrine_Node_Interface::getFirstChild()
    gets record of first child or empty record
-
getFirstChild
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getFirstChild()
    gets record of first child or empty record
-
getForeign
-
in file Relation.php, method Doctrine_Relation::getForeign()
    getForeign returns the name of the foreignkey column where the localkey column is pointing at
-
getForeignKeyBaseDeclaration
-
in file Export.php, method Doctrine_Export::getForeignKeyBaseDeclaration()
    getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.
-
getForeignKeyDeclaration
-
in file Export.php, method Doctrine_Export::getForeignKeyDeclaration()
    getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.
-
getForeignKeyReferentialAction
-
in file Export.php, method Doctrine_Export::getForeignKeyReferentialAction()
    getForeignKeyReferentialAction
-
getIdentifier
-
in file Driver.php, method Doctrine_Expression_Driver::getIdentifier()
-
getIdentifier
-
in file Table.php, method Doctrine_Table::getIdentifier()
-
getIdentifiers
-
in file Parser.php, method Doctrine_Relation_Parser::getIdentifiers()
    getIdentifiers gives a list of identifiers from given table
-
getIdentifiers
-
in file Driver.php, method Doctrine_Expression_Driver::getIdentifiers()
-
getIdentifierType
-
in file Table.php, method Doctrine_Table::getIdentifierType()
-
getImpl
-
in file Parser.php, method Doctrine_Relation_Parser::getImpl()
    getImpl
-
getImpl
-
in file Configurable.php, method Doctrine_Configurable::getImpl()
    getImpl returns the implementation for given class
-
getIncremented
-
in file Record.php, method Doctrine_Record::getIncremented()
    returns the value of autoincremented primary key of this object (if any)
-
getIndex
-
in file Table.php, method Doctrine_Table::getIndex()
    getIndex
-
getIndexDeclaration
-
in file Export.php, method Doctrine_Export::getIndexDeclaration()
    Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexDeclaration
-
in file Mysql.php, method Doctrine_Export_Mysql::getIndexDeclaration()
    Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexFieldDeclarationList
-
in file Mysql.php, method Doctrine_Export_Mysql::getIndexFieldDeclarationList()
    getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexFieldDeclarationList
-
in file Sqlite.php, method Doctrine_Export_Sqlite::getIndexFieldDeclarationList()
    getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexFieldDeclarationList
-
in file Export.php, method Doctrine_Export::getIndexFieldDeclarationList()
    getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexName
-
in file Formatter.php, method Doctrine_Formatter::getIndexName()
    adds index name formatting to a index name
-
getInsertDiff
-
in file Collection.php, method Doctrine_Collection::getInsertDiff()
-
getInstance
-
in file Manager.php, method Doctrine_Manager::getInstance()
    getInstance returns an instance of this class (this class uses the singleton pattern)
-
getIntegerDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getIntegerDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
-
getIntegerDeclaration
-
in file Sqlite.php, method Doctrine_DataDict_Sqlite::getIntegerDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
-
getIntegerDeclaration
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::getIntegerDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
-
getInvalidRecords
-
in file Exception.php, method Doctrine_Validator_Exception::getInvalidRecords()
-
getInvoker
-
in file Event.php, method Doctrine_Event::getInvoker()
    getInvoker returns the handler that invoked this event
-
getIsolation
-
in file Transaction.php, method Doctrine_Transaction::getIsolation()
    getTransactionIsolation
-
getIsolation
-
in file Mysql.php, method Doctrine_Transaction_Mysql::getIsolation()
    getTransactionIsolation
-
getIterator
-
in file Manager.php, method Doctrine_Manager::getIterator()
    getIterator returns an ArrayIterator that iterates through all connections
-
getIterator
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::getIterator()
    Enter description here...
-
getIterator
-
in file Reporter.php, method Doctrine_Export_Reporter::getIterator()
-
getIterator
-
in file Profiler.php, method Doctrine_Connection_Profiler::getIterator()
    getIterator returns an iterator that iterates through the logged events
-
getIterator
-
in file Repository.php, method Doctrine_Table_Repository::getIterator()
    getIterator
-
getIterator
-
in file Object.php, method Doctrine_Schema_Object::getIterator()
    getIterator
-
getIterator
-
in file Connection.php, method Doctrine_Connection::getIterator()
    returns an iterator that iterators through all initialized table objects
-
getIterator
-
in file Collection.php, method Doctrine_Collection::getIterator()
    getIterator
-
getIterator
-
in file Cache.php, method Doctrine_Cache::getIterator()
    getIterator
-
getIterator
-
in file Record.php, method Doctrine_Record::getIterator()
    getIterator
-
getIterator
-
in file Exception.php, method Doctrine_Validator_Exception::getIterator()
-
getIterator
-
in file Column.php, method Doctrine_Column::getIterator()
    getIterator
-
getIterator
-
in file Offset.php, method Doctrine_Collection_Offset::getIterator()
-
getIterator
-
in file Node.php, method Doctrine_Node::getIterator()
    get iterator
-
getKeyColumn
-
in file Collection.php, method Doctrine_Collection::getKeyColumn()
    getKeyColumn returns the name of the key column
-
getKeys
-
in file Collection.php, method Doctrine_Collection::getKeys()
    returns all keys
-
getLast
-
in file Record.php, method Doctrine_Record::getLast()
    getLast
-
getLast
-
in file Collection.php, method Doctrine_Collection::getLast()
    getLast returns the last record in the collection
-
getLastChild
-
in file Interface.php, method Doctrine_Node_Interface::getLastChild()
    gets record of last child or empty record
-
getLastChild
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getLastChild()
    gets record of last child or empty record
-
getLeftValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getLeftValue()
    gets record's left value
-
getLevel
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getLevel()
    gets level (depth) of node in the tree
-
getLevel
-
in file Interface.php, method Doctrine_Node_Interface::getLevel()
    gets level (depth) of node in the tree
-
getLimit
-
in file Offset.php, method Doctrine_Collection_Offset::getLimit()
-
getLimitSubquery
-
in file Query.php, method Doctrine_Query::getLimitSubquery()
    getLimitSubquery this is method is used by the record limit algorithm
-
getListener
-
in file Configurable.php, method Doctrine_Configurable::getListener()
    getListener
-
getListener
-
in file Abstract.php, method Doctrine_Record_Abstract::getListener()
    getListener
-
getLocal
-
in file Relation.php, method Doctrine_Relation::getLocal()
    getLocal returns the name of the local column
-
getLock
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::getLock()
    Obtains a lock on a Doctrine_Record
-
getLockOwner
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::getLockOwner()
    Gets the identifier that identifies the owner of the lock on the given record.
-
getManager
-
in file Connection.php, method Doctrine_Connection::getManager()
    returns the manager that created this connection
-
getMaxRootId
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getMaxRootId()
    calculates the current max root id
-
getModified
-
in file Record.php, method Doctrine_Record::getModified()
    returns an array of modified fields and associated values
-
getModuleName
-
in file Module.php, method Doctrine_Connection_Module::getModuleName()
    getModuleName returns the name of this module
-
getName
-
in file Connection.php, method Doctrine_Connection::getName()
    getName returns the name of this driver
-
getName
-
in file DataType.php, method Doctrine_DataType::getName()
-
getName
-
in file View.php, method Doctrine_View::getName()
    getName returns the name of this view
-
getName
-
in file Mock.php, method Doctrine_Adapter_Mock::getName()
-
getName
-
in file Event.php, method Doctrine_Event::getName()
    getName returns the name of this event
-
getName
-
in file Column.php, method Doctrine_Schema_Column::getName()
-
getNativeDeclaration
-
in file Sqlite.php, method Doctrine_DataDict_Sqlite::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Informix.php, method Doctrine_DataDict_Informix::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Mssql.php, method Doctrine_DataDict_Mssql::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Oracle.php, method Doctrine_DataDict_Oracle::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNextRootId
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getNextRootId()
    calculates the next available root id
-
getNextSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getNextSibling()
    gets record of next sibling or empty record
-
getNextSibling
-
in file Interface.php, method Doctrine_Node_Interface::getNextSibling()
    gets record of next sibling or empty record
-
getNode
-
in file Record.php, method Doctrine_Record::getNode()
    getter for node assciated with this record
-
getNormalIterator
-
in file Collection.php, method Doctrine_Collection::getNormalIterator()
    getNormalIterator returns normal iterator - an iterator that will not expand this collection
-
getNullObject
-
in file Object.php, method Doctrine_Object::getNullObject()
    getNullObject returns the null object associated with this object
-
getNullPointer
-
in file Array.php, method Doctrine_Hydrate_Array::getNullPointer()
-
getNullPointer
-
in file Record.php, method Doctrine_Hydrate_Record::getNullPointer()
-
getNumberChildren
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getNumberChildren()
    gets number of children (direct descendants)
-
getNumberChildren
-
in file Interface.php, method Doctrine_Node_Interface::getNumberChildren()
    gets number of children (direct descendants)
-
getNumberDescendants
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getNumberDescendants()
    gets number of descendants (children and their children)
-
getNumberDescendants
-
in file Interface.php, method Doctrine_Node_Interface::getNumberDescendants()
    gets number of descendants (children and their children)
-
getOid
-
in file Record.php, method Doctrine_Record::getOid()
    getOid returns the object identifier
-
getOption
-
in file Table.php, method Doctrine_Table::getOption()
    getOption returns the value of given option
-
getOption
-
in file Search.php, method Doctrine_Search::getOption()
-
getOption
-
in file Driver.php, method Doctrine_Cache_Driver::getOption()
    getOption
-
getOption
-
in file Plugin.php, method Doctrine_Plugin::getOption()
    returns the value of an option
-
getOption
-
in file Cache.php, method Doctrine_Cache::getOption()
    getOption
-
getOption
-
in file AuditLog.php, method Doctrine_AuditLog::getOption()
    getOption returns the value of given option
-
getOptions
-
in file AuditLog.php, method Doctrine_AuditLog::getOptions()
    getOptions returns all options of this table and the associated values
-
getOptions
-
in file Table.php, method Doctrine_Table::getOptions()
    getOptions returns all options of this table and the associated values
-
getOptions
-
in file Plugin.php, method Doctrine_Plugin::getOptions()
    returns all options and their associated values
-
getParams
-
in file Parser.php, method Doctrine_Hook_Parser::getParams()
    getParams returns the parameters associated with this parser
-
getParams
-
in file Query.php, method Doctrine_Search_Query::getParams()
-
getParams
-
in file Event.php, method Doctrine_Event::getParams()
    getParams returns the parameters of the query
-
getParams
-
in file Hydrate.php, method Doctrine_Hydrate::getParams()
    getParams
-
getParent
-
in file Interface.php, method Doctrine_Node_Interface::getParent()
    gets record of parent or empty record
-
getParent
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getParent()
    gets record of parent or empty record
-
getParent
-
in file Configurable.php, method Doctrine_Configurable::getParent()
    getParent returns the parent of this component
-
getParser
-
in file Query.php, method Doctrine_Query::getParser()
    getParser parser lazy-loader
-
getPath
-
in file Doctrine.php, method Doctrine::getPath()
    getPath returns the doctrine root
-
getPath
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getPath()
    gets path to node from root, uses record::toString() method to get node names
-
getPath
-
in file Interface.php, method Doctrine_Node_Interface::getPath()
    gets path to node from root, uses record::toString() method to get node names
-
getPendingRelation
-
in file Parser.php, method Doctrine_Relation_Parser::getPendingRelation()
    getPendingRelation
-
getPortableCode
-
in file Exception.php, method Doctrine_Connection_Exception::getPortableCode()
    getPortableCode returns portable error code
-
getPortableDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getPortableDeclaration()
    Maps a native array description of a field to a Doctrine datatype and length
-
getPortableDeclaration
-
in file Oracle.php, method Doctrine_DataDict_Oracle::getPortableDeclaration()
    Maps a native array description of a field to a doctrine datatype and length
-
getPortableDeclaration
-
in file Sqlite.php, method Doctrine_DataDict_Sqlite::getPortableDeclaration()
    Maps a native array description of a field to Doctrine datatype and length
-
getPortableDeclaration
-
in file Mssql.php, method Doctrine_DataDict_Mssql::getPortableDeclaration()
    Maps a native array description of a field to a MDB2 datatype and length
-
getPortableDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getPortableDeclaration()
    Maps a native array description of a field to a MDB2 datatype and length
-
getPortableDeclaration
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::getPortableDeclaration()
    Maps a native array description of a field to a portable Doctrine datatype and length
-
getPortableMessage
-
in file Exception.php, method Doctrine_Connection_Exception::getPortableMessage()
    getPortableMessage returns portable error message
-
getPrepared
-
in file Record.php, method Doctrine_Record::getPrepared()
    getPrepared
-
getPrepared
-
in file Filter.php, method Doctrine_Record_Filter::getPrepared()
    getPrepared
-
getPrevSibling
-
in file Interface.php, method Doctrine_Node_Interface::getPrevSibling()
    gets record of prev sibling or empty record
-
getPrevSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getPrevSibling()
    gets record of prev sibling or empty record
-
getPrimaryKeys
-
in file Table.php, method Doctrine_Table::getPrimaryKeys()
    returns all primary keys
-
getPrimaryKeys
-
in file Collection.php, method Doctrine_Collection::getPrimaryKeys()
-
getProxy
-
in file Table.php, method Doctrine_Table::getProxy()
-
getQuery
-
in file Query.php, method Doctrine_Search_Query::getQuery()
    getQuery
-
getQuery
-
in file RawSql.php, method Doctrine_RawSql::getQuery()
    getQuery builds the sql query from the given query parts
-
getQuery
-
in file Hook.php, method Doctrine_Hook::getQuery()
    getQuery
-
getQuery
-
in file Part.php, method Doctrine_Query_Part::getQuery()
-
getQuery
-
in file Event.php, method Doctrine_Event::getQuery()
    getQuery
-
getQuery
-
in file View.php, method Doctrine_View::getQuery()
    getQuery returns the associated query object
-
getQuery
-
in file Query.php, method Doctrine_Query::getQuery()
    builds the sql query from the given parameters and applies things such as column aggregation inheritance and limit subqueries if needed
-
getQuery
-
in file Statement.php, method Doctrine_Connection_Statement::getQuery()
-
getQueryBase
-
in file Query.php, method Doctrine_Query::getQueryBase()
    getQueryBase returns the base of the generated sql query On mysql driver special strategy has to be used for DELETE statements
-
getQueryObject
-
in file Table.php, method Doctrine_Table::getQueryObject()
-
getQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::getQueryPart()
    setQueryPart sets a query part in the query part array
-
getQuoteIdentifierSymbol
-
in file Db2.php, method Doctrine_Adapter_Db2::getQuoteIdentifierSymbol()
-
getRecord
-
in file Table.php, method Doctrine_Table::getRecord()
    getRecord first checks if record exists in identityMap, if not returns a new record
-
getRecord
-
in file Node.php, method Doctrine_Node::getRecord()
    getter for record attribute
-
getRecord
-
in file Filter.php, method Doctrine_Record_Filter::getRecord()
    getRecord
-
getRecordAsString
-
in file Lib.php, method Doctrine_Lib::getRecordAsString()
    returns a string representation of Doctrine_Record object
-
getRecordAsXml
-
in file Lib.php, method Doctrine_Lib::getRecordAsXml()
    Return a recrd as XML.
-
getRecordListener
-
in file Configurable.php, method Doctrine_Configurable::getRecordListener()
    getListener
-
getRecordStateAsString
-
in file Lib.php, method Doctrine_Lib::getRecordStateAsString()
-
getReference
-
in file Collection.php, method Doctrine_Collection::getReference()
    getReference
-
getReferences
-
in file Record.php, method Doctrine_Record::getReferences()
    getReferences
-
getRelation
-
in file Table.php, method Doctrine_Table::getRelation()
    getRelation
-
getRelation
-
in file Parser.php, method Doctrine_Relation_Parser::getRelation()
    getRelation
-
getRelationDql
-
in file Self.php, method Doctrine_Relation_Association_Self::getRelationDql()
    getRelationDql
-
getRelationDql
-
in file Nest.php, method Doctrine_Relation_Nest::getRelationDql()
    getRelationDql
-
getRelationDql
-
in file Association.php, method Doctrine_Relation_Association::getRelationDql()
    getRelationDql
-
getRelationDql
-
in file Relation.php, method Doctrine_Relation::getRelationDql()
    getRelationDql
-
getRelationParser
-
in file Table.php, method Doctrine_Table::getRelationParser()
    getRelationParser return the relation parser associated with this table
-
getRelations
-
in file Parser.php, method Doctrine_Relation_Parser::getRelations()
    getRelations returns an array containing all relation objects
-
getRelations
-
in file Table.php, method Doctrine_Table::getRelations()
    getRelations returns an array containing all relation objects
-
getRelations
-
in file Table.php, method Doctrine_Schema_Table::getRelations()
    Return all the relations this table has with others
-
getRepository
-
in file Table.php, method Doctrine_Table::getRepository()
    getRepository
-
getRightValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getRightValue()
    gets record's right value
-
getRoot
-
in file Hydrate.php, method Doctrine_Hydrate::getRoot()
    getRoot returns the root component for this object
-
getRoot
-
in file Manager.php, method Doctrine_Manager::getRoot()
    returns the root directory of Doctrine
-
getRootAlias
-
in file Hydrate.php, method Doctrine_Hydrate::getRootAlias()
    getRootAlias returns the alias of the the root component
-
getRootDeclaration
-
in file Hydrate.php, method Doctrine_Hydrate::getRootDeclaration()
    getRootDeclaration returns the root declaration
-
getRootValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getRootValue()
    get records root id value
-
getSelectSql
-
in file View.php, method Doctrine_View::getSelectSql()
    getSelectSql returns the select sql for this view
-
getSequenceName
-
in file Formatter.php, method Doctrine_Formatter::getSequenceName()
    adds sequence name formatting to a sequence name
-
getServerVersion
-
in file Mssql.php, method Doctrine_Connection_Mssql::getServerVersion()
    return version information about the server
-
getServerVersion
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::getServerVersion()
    return version information about the server
-
getSiblings
-
in file Interface.php, method Doctrine_Node_Interface::getSiblings()
    gets siblings for node
-
getSiblings
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getSiblings()
    gets siblings for node
-
getSnapshot
-
in file Collection.php, method Doctrine_Collection::getSnapshot()
    getSnapshot returns the data of the last snapshot
-
getSql
-
in file Check.php, method Doctrine_Query_Check::getSql()
    getSql
-
getSql
-
in file Query.php, method Doctrine_Search_Query::getSql()
-
getSql
-
in file Expression.php, method Doctrine_Expression::getSql()
-
getSql
-
in file Hydrate.php, method Doctrine_Hydrate::getSql()
    getSql return the sql associated with this object
-
getState
-
in file Transaction.php, method Doctrine_Transaction::getState()
    getState returns the state of this connection
-
getStatement
-
in file Statement.php, method Doctrine_Connection_Statement::getStatement()
-
getStates
-
in file Usstate.php, method Doctrine_Validator_Usstate::getStates()
-
getTable
-
in file Template.php, method Doctrine_Template::getTable()
    getTable returns the associated table object
-
getTable
-
in file Relation.php, method Doctrine_Relation::getTable()
    getTable returns the foreign table object
-
getTable
-
in file Check.php, method Doctrine_Query_Check::getTable()
    getTable returns the table object associated with this object
-
getTable
-
in file Parser.php, method Doctrine_Relation_Parser::getTable()
    getTable
-
getTable
-
in file Record.php, method Doctrine_Record::getTable()
    getTable returns the table object for this record
-
getTable
-
in file Connection.php, method Doctrine_Connection::getTable()
    returns a table object for given component name
-
getTable
-
in file Collection.php, method Doctrine_Collection::getTable()
    getTable returns the table this collection belongs to
-
getTable
-
in file Manager.php, method Doctrine_Manager::getTable()
    getTable this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment
-
getTable
-
in file Repository.php, method Doctrine_Table_Repository::getTable()
    getTable
-
getTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::getTableAlias()
    getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible
-
getTableAliases
-
in file Hydrate.php, method Doctrine_Hydrate::getTableAliases()
    getTableAliases returns all table aliases
-
getTableAliasSeed
-
in file Hydrate.php, method Doctrine_Hydrate::getTableAliasSeed()
    getTableAliasSeed returns the alias seed for given table alias
-
getTableAsString
-
in file Lib.php, method Doctrine_Lib::getTableAsString()
    returns a string representation of Doctrine_Table object
-
getTableName
-
in file Table.php, method Doctrine_Table::getTableName()
-
getTables
-
in file Connection.php, method Doctrine_Connection::getTables()
    returns an array of all initialized tables
-
getTables
-
in file Database.php, method Doctrine_Schema_Database::getTables()
-
getTargetPath
-
in file Builder.php, method Doctrine_Import_Builder::getTargetPath()
    getTargetPath
-
getTemplate
-
in file Table.php, method Doctrine_Table::getTemplate()
-
getTemplates
-
in file Table.php, method Doctrine_Table::getTemplates()
    getTemplates returns all templates attached to this table
-
getTemporaryTableQuery
-
in file Firebird.php, method Doctrine_Export_Firebird::getTemporaryTableQuery()
    A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
getTemporaryTableQuery
-
in file Mssql.php, method Doctrine_Export_Mssql::getTemporaryTableQuery()
    Override the parent method.
-
getTemporaryTableQuery
-
in file Oracle.php, method Doctrine_Export_Oracle::getTemporaryTableQuery()
    A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
getTemporaryTableQuery
-
in file Export.php, method Doctrine_Export::getTemporaryTableQuery()
    A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
getTransactionLevel
-
in file Connection.php, method Doctrine_Connection::getTransactionLevel()
    get the current transaction nesting level
-
getTransactionLevel
-
in file Transaction.php, method Doctrine_Transaction::getTransactionLevel()
    getTransactionLevel get the current transaction nesting level
-
getTree
-
in file Table.php, method Doctrine_Table::getTree()
    getter for associated tree
-
getType
-
in file Hydrate.php, method Doctrine_Hydrate::getType()
    getType
-
getType
-
in file Relation.php, method Doctrine_Relation::getType()
    getType returns the relation type, either 0 or 1
-
getType
-
in file Column.php, method Doctrine_Schema_Column::getType()
-
gettype
-
in file Validator.php, method Doctrine_Validator::gettype()
    returns the type of loosely typed variable
-
getTypeOf
-
in file Table.php, method Doctrine_Table::getTypeOf()
    getTypeOf
-
getUniqueFieldDeclaration
-
in file Export.php, method Doctrine_Export::getUniqueFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE.
-
getUpdateActions
-
in file Manager.php, method Doctrine_Manager::getUpdateActions()
-
getValidator
-
in file Validator.php, method Doctrine_Validator::getValidator()
    returns a validator object
-
getVersion
-
in file AuditLog.php, method Doctrine_AuditLog::getVersion()
-
getView
-
in file Hydrate.php, method Doctrine_Hydrate::getView()
    getView returns the view associated with this query object (if any)
-
groupBy
-
in file Abstract.php, method Doctrine_Query_Abstract::groupBy()
    groupBy sets the GROUP BY part of the query
-
gt
-
in file Driver.php, method Doctrine_Expression_Driver::gt()
    Returns the SQL to check if one value is greater than another value.
-
gte
-
in file Driver.php, method Doctrine_Expression_Driver::gte()
    Returns the SQL to check if one value is greater than or equal to another value.
-
guessColumns
-
in file Parser.php, method Doctrine_Relation_Parser::guessColumns()
    guessColumns
-
guid
-
in file Mysql.php, method Doctrine_Expression_Mysql::guid()
    Returns global unique identifier
-
guid
-
in file Mssql.php, method Doctrine_Expression_Mssql::guid()
    Returns global unique identifier
-
guid
-
in file Oracle.php, method Doctrine_Expression_Oracle::guid()
    Returns global unique identifier
-
guid
-
in file Driver.php, method Doctrine_Expression_Driver::guid()
    Returns global unique identifier
-
-
- -
-
h
-
[Top]
-
-
-
-

h

-
-
$hasDefaultValues
-
in file Table.php, variable Doctrine_Table::$hasDefaultValues
-
$hooks
-
in file Hook.php, variable Doctrine_Hook::$hooks
-
Hook.php
-
procedural page Hook.php
-
Hydrate.php
-
procedural page Hydrate.php
-
Having.php
-
procedural page Having.php
-
Htmlcolor.php
-
procedural page Htmlcolor.php
-
hasAliasDeclaration
-
in file Hydrate.php, method Doctrine_Hydrate::hasAliasDeclaration()
    hasAliasDeclaration whether or not this object has a declaration for given component alias
-
hasChildren
-
in file Interface.php, method Doctrine_Node_Interface::hasChildren()
    test if node has children
-
hasChildren
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasChildren()
    test if node has children
-
hasColumn
-
in file Abstract.php, method Doctrine_Record_Abstract::hasColumn()
    hasColumn sets a column definition
-
hasColumn
-
in file Table.php, method Doctrine_Table::hasColumn()
    hasColumn
-
hasColumns
-
in file Abstract.php, method Doctrine_Record_Abstract::hasColumns()
-
hasConstraint
-
in file Relation.php, method Doctrine_Relation::hasConstraint()
    hasConstraint whether or not this relation has an explicit constraint
-
hasDefaultValues
-
in file Table.php, method Doctrine_Table::hasDefaultValues()
    hasDefaultValues returns true if this table has default values, otherwise false
-
hasEnded
-
in file Event.php, method Doctrine_Event::hasEnded()
    hasEnded whether or not this event has ended
-
hasErrors
-
in file Validator.php, method Doctrine_Validator::hasErrors()
    whether or not this validator has errors
-
hasMany
-
in file Abstract.php, method Doctrine_Record_Abstract::hasMany()
    hasMany binds One-to-Many / Many-to-Many aggregate relation
-
hasNextSibling
-
in file Interface.php, method Doctrine_Node_Interface::hasNextSibling()
    test if node has next sibling
-
hasNextSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasNextSibling()
    test if node has next sibling
-
hasOne
-
in file Abstract.php, method Doctrine_Record_Abstract::hasOne()
    hasOne binds One-to-One aggregate relation
-
hasParent
-
in file Interface.php, method Doctrine_Node_Interface::hasParent()
    test if node has parent
-
hasParent
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasParent()
    test if node has parent
-
hasPrevSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasPrevSibling()
    test if node has previous sibling
-
hasPrevSibling
-
in file Interface.php, method Doctrine_Node_Interface::hasPrevSibling()
    test if node has previous sibling
-
hasPrimaryKey
-
in file Table.php, method Doctrine_Table::hasPrimaryKey()
-
hasReference
-
in file Record.php, method Doctrine_Record::hasReference()
    hasRefence
-
hasRelation
-
in file Table.php, method Doctrine_Table::hasRelation()
    hasRelation
-
hasRelation
-
in file Parser.php, method Doctrine_Relation_Parser::hasRelation()
-
hasRelation
-
in file Record.php, method Doctrine_Record::hasRelation()
    method for checking existence of properties and Doctrine_Record references
-
hasTable
-
in file Connection.php, method Doctrine_Connection::hasTable()
    hasTable whether or not this connection has table $name initialized
-
hasTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::hasTableAlias()
    hasTableAlias whether or not this object has given tableAlias
-
having
-
in file Abstract.php, method Doctrine_Query_Abstract::having()
    having sets the HAVING part of the query
-
hookLimit
-
in file Hook.php, method Doctrine_Hook::hookLimit()
-
hookOffset
-
in file Hook.php, method Doctrine_Hook::hookOffset()
-
hookOrderby
-
in file Hook.php, method Doctrine_Hook::hookOrderby()
    hookOrderBy builds DQL query orderby part from given parameter array
-
hookWhere
-
in file Hook.php, method Doctrine_Hook::hookWhere()
    hookWhere builds DQL query where part from given parameter array
-
hydrate
-
in file Record.php, method Doctrine_Record::hydrate()
    hydrate hydrates this object from given array
-
HYDRATE_ARRAY
-
in file Hydrate.php, class constant Doctrine_Hydrate::HYDRATE_ARRAY
    Constant for the array hydration mode.
-
HYDRATE_RECORD
-
in file Hydrate.php, class constant Doctrine_Hydrate::HYDRATE_RECORD
    Constant for the record (object) hydration mode.
-
-
- -
-
i
-
[Top]
-
-
-
-

i

-
-
$identifier
-
in file Table.php, variable Doctrine_Table::$identifier
-
$identifierType
-
in file Table.php, variable Doctrine_Table::$identifierType
-
$identityMap
-
in file Table.php, variable Doctrine_Table::$identityMap
-
$index
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$index
-
$index
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$index
-
$invalid
-
in file Exception.php, variable Doctrine_Validator_Exception::$invalid
-
$invalid
-
in file Transaction.php, variable Doctrine_Transaction::$invalid
-
$isConnected
-
in file Connection.php, variable Doctrine_Connection::$isConnected
-
$isLimitSubqueryUsed
-
in file Query.php, variable Doctrine_Query::$isLimitSubqueryUsed
-
$isSubquery
-
in file Query.php, variable Doctrine_Query::$isSubquery
-
$iteratorOptions
-
in file Node.php, variable Doctrine_Node::$iteratorOptions
-
$iteratorType
-
in file Node.php, variable Doctrine_Node::$iteratorType
-
Interface.php
-
procedural page Interface.php
-
Interface.php
-
procedural page Interface.php
-
Interface.php
-
procedural page Interface.php
-
Iterator.php
-
procedural page Iterator.php
-
Informix.php
-
procedural page Informix.php
-
Informix.php
-
procedural page Informix.php
-
Interface.php
-
procedural page Interface.php
-
Informix.php
-
procedural page Informix.php
-
Index.php
-
procedural page Index.php
-
Integer.php
-
procedural page Integer.php
-
Informix.php
-
procedural page Informix.php
-
Import.php
-
procedural page Import.php
-
IntegrityMapper.php
-
procedural page IntegrityMapper.php
-
Interface.php
-
procedural page Interface.php
-
Interface.php
-
procedural page Interface.php
-
Iterator.php
-
procedural page Iterator.php
-
Interface.php
-
procedural page Interface.php
-
Interface.php
-
procedural page Interface.php
-
Indexer.php
-
procedural page Indexer.php
-
Informix.php
-
procedural page Informix.php
-
Informix.php
-
procedural page Informix.php
-
Interface.php
-
procedural page Interface.php
-
Interface.class.php
-
procedural page Interface.class.php
-
Ip.php
-
procedural page Ip.php
-
identifier
-
in file Record.php, method Doctrine_Record::identifier()
    returns the primary keys of this object
-
IDENTIFIER_AUTOINC
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_AUTOINC
    constant for auto_increment identifier
-
IDENTIFIER_COMPOSITE
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_COMPOSITE
    constant for composite identifier
-
IDENTIFIER_NATURAL
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_NATURAL
    constant for normal identifier
-
IDENTIFIER_SEQUENCE
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_SEQUENCE
    constant for sequence identifier
-
importSchema
-
in file Import.php, method Doctrine_Import::importSchema()
    importSchema
-
importSchema
-
in file Schema.php, method Doctrine_Import_Schema::importSchema()
    importSchema
-
importSchema
-
in file Doctrine.php, method Doctrine::importSchema()
    importSchema method for importing existing schema to Doctrine_Record classes
-
in
-
in file Driver.php, method Doctrine_Expression_Driver::in()
    Returns the SQL to check if a value is one in a set of given values..
-
incrementQueryCount
-
in file Connection.php, method Doctrine_Connection::incrementQueryCount()
-
index
-
in file Abstract.php, method Doctrine_Record_Abstract::index()
    index
-
indexDirectory
-
in file Indexer.php, method Doctrine_Search_Indexer::indexDirectory()
-
initNullObject
-
in file Object.php, method Doctrine_Object::initNullObject()
    initNullObject initializes the null object
-
initNullObject
-
in file Iterator.php, method Doctrine_Record_Iterator::initNullObject()
    initNullObject
-
initNullObject
-
in file Collection.php, method Doctrine_Collection::initNullObject()
    initNullObject initializes the null object for this collection
-
initRelated
-
in file Record.php, method Doctrine_Hydrate_Record::initRelated()
-
initRelated
-
in file Array.php, method Doctrine_Hydrate_Array::initRelated()
-
innerJoin
-
in file Abstract.php, method Doctrine_Query_Abstract::innerJoin()
    innerJoin appends an INNER JOIN to the FROM part of the query
-
insert
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::insert()
    inserts a record into database
-
INSERT
-
in file Hydrate.php, class constant Doctrine_Hydrate::INSERT
    constant for INSERT queries
-
insert
-
in file Connection.php, method Doctrine_Connection::insert()
    Inserts a table row with specified data.
-
insertAsFirstChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsFirstChildOf()
    inserts node as first child of dest record
-
insertAsFirstChildOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsFirstChildOf()
    inserts node as first child of dest record
-
insertAsLastChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsLastChildOf()
    inserts node as last child of dest record
-
insertAsLastChildOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsLastChildOf()
    inserts node as first child of dest record
-
insertAsNextSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsNextSiblingOf()
    inserts node as next sibling of dest record
-
insertAsNextSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsNextSiblingOf()
    inserts node as next sibling of dest record
-
insertAsParentOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsParentOf()
    inserts node as parent of dest record
-
insertAsParentOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsParentOf()
    inserts node as parent of dest record
-
insertAsPrevSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsPrevSiblingOf()
    inserts node as previous sibling of dest record
-
insertAsPrevSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsPrevSiblingOf()
    inserts node as previous sibling of dest record
-
insertNode
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertNode()
    sets node's left and right values and save's it
-
invokeIntegrityActions
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::invokeIntegrityActions()
-
isComposite
-
in file Relation.php, method Doctrine_Relation::isComposite()
    isComposite returns whether or not this relation is a composite relation
-
isDeferrable
-
in file Relation.php, method Doctrine_Relation::isDeferrable()
-
isDeferred
-
in file Relation.php, method Doctrine_Relation::isDeferred()
-
isDescendantOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isDescendantOf()
    determines if node is child of subject node
-
isDescendantOf
-
in file Interface.php, method Doctrine_Node_Interface::isDescendantOf()
    determines if node is child of subject node
-
isDescendantOfOrEqualTo
-
in file Interface.php, method Doctrine_Node_Interface::isDescendantOfOrEqualTo()
    determines if node is child of or sibling to subject node
-
isDescendantOfOrEqualTo
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isDescendantOfOrEqualTo()
    determines if node is child of or sibling to subject node
-
isEqual
-
in file Relation.php, method Doctrine_Relation::isEqual()
-
isEqualTo
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isEqualTo()
    determines if node is equal to subject node
-
isEqualTo
-
in file Interface.php, method Doctrine_Node_Interface::isEqualTo()
    determines if node is equal to subject node
-
isExpression
-
in file Query.php, method Doctrine_Search_Query::isExpression()
-
isIdentifiable
-
in file Record.php, method Doctrine_Hydrate_Record::isIdentifiable()
    isIdentifiable returns whether or not a given data row is identifiable (it contains all primary key fields specified in the second argument)
-
isIdentifiable
-
in file Array.php, method Doctrine_Hydrate_Array::isIdentifiable()
-
isLeaf
-
in file Interface.php, method Doctrine_Node_Interface::isLeaf()
    determines if node is leaf
-
isLeaf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isLeaf()
    determines if node is leaf
-
isLimitSubqueryUsed
-
in file Query.php, method Doctrine_Query::isLimitSubqueryUsed()
    limitSubqueryUsed
-
isLimitSubqueryUsed
-
in file Hydrate.php, method Doctrine_Hydrate::isLimitSubqueryUsed()
    limitSubqueryUsed whether or not limit subquery was used
-
isModified
-
in file Record.php, method Doctrine_Record::isModified()
    isModified returns true if this record was modified, otherwise false
-
isNotNull
-
in file Driver.php, method Doctrine_Expression_Driver::isNotNull()
    Returns SQL that checks if a expression is not null.
-
isNotNull
-
in file Column.php, method Doctrine_Schema_Column::isNotNull()
-
isNull
-
in file Driver.php, method Doctrine_Expression_Driver::isNull()
    Returns SQL that checks if a expression is null.
-
isOneToOne
-
in file Relation.php, method Doctrine_Relation::isOneToOne()
    isOneToOne returns whether or not this relation is a one-to-one relation
-
isPrimaryKey
-
in file Column.php, method Doctrine_Schema_Column::isPrimaryKey()
-
isRoot
-
in file Interface.php, method Doctrine_Node_Interface::isRoot()
    determines if node is root
-
isRoot
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isRoot()
    determines if node is root
-
isSubquery
-
in file Query.php, method Doctrine_Query::isSubquery()
    isSubquery
-
isSuccessful
-
in file Cache.php, method Doctrine_Cache::isSuccessful()
-
isTree
-
in file Table.php, method Doctrine_Table::isTree()
    determine if table acts as tree
-
isUnique
-
in file Column.php, method Doctrine_Schema_Column::isUnique()
-
isValid
-
in file Table.php, method Doctrine_Schema_Table::isValid()
-
isValid
-
in file Database.php, method Doctrine_Schema_Database::isValid()
-
isValid
-
in file Record.php, method Doctrine_Record::isValid()
    isValid
-
isValid
-
in file Relation.php, method Doctrine_Schema_Relation::isValid()
-
isValid
-
in file Schema.php, method Doctrine_Schema::isValid()
-
isValidClassname
-
in file Doctrine.php, method Doctrine::isValidClassname()
    checks for valid class name (uses camel case and underscores)
-
isValidNode
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isValidNode()
    determines if node is valid
-
isValidNode
-
in file Interface.php, method Doctrine_Node_Interface::isValidNode()
    determines if node is valid
-
isValidType
-
in file Validator.php, method Doctrine_Validator::isValidType()
    returns whether or not the given variable is valid type
-
-
- -
-
j
-
[Top]
-
-
-
-

j

-
-
$joins
-
in file Hook.php, variable Doctrine_Hook::$joins
-
JoinCondition.php
-
procedural page JoinCondition.php
-
-
- -
-
k
-
[Top]
-
-
-
-

k

-
-
$key
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$key
-
$key
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$key
-
$keyColumn
-
in file Collection.php, variable Doctrine_Collection::$keyColumn
-
$keys
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$keys
-
$keys
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$keys
-
$keywords
-
in file Mysql.php, variable Doctrine_DataDict_Mysql::$keywords
-
key
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::key()
-
key
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::key()
    returns the current key
-
key
-
in file Iterator.php, method Doctrine_Collection_Iterator::key()
    returns the current key
-
key
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::key()
-
key
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::key()
-
-
- -
-
l
-
[Top]
-
-
-
-

l

-
-
$lastInsertIdFail
-
in file Mock.php, variable Doctrine_Adapter_Mock::$lastInsertIdFail
-
$limit
-
in file Offset.php, variable Doctrine_Collection_Offset::$limit
-
$listeners
-
in file Chain.php, variable Doctrine_EventListener_Chain::$listeners
-
$listeners
-
in file Profiler.php, variable Doctrine_Connection_Profiler::$listeners
-
Listener.php
-
procedural page Listener.php
-
Lib.php
-
procedural page Lib.php
-
LevelOrderIterator.php
-
procedural page LevelOrderIterator.php
-
LevelOrderIterator.php
-
procedural page LevelOrderIterator.php
-
LevelOrderIterator.php
-
procedural page LevelOrderIterator.php
-
Limit.php
-
procedural page Limit.php
-
Listener.php
-
procedural page Listener.php
-
LocalKey.php
-
procedural page LocalKey.php
-
Listener.php
-
procedural page Listener.php
-
lastEvent
-
in file Profiler.php, method Doctrine_Connection_Profiler::lastEvent()
    Get the Doctrine_Event object for the last query that was run, regardless if it has ended or not. If the event has not ended, it's end time will be Null.
-
lastInsertId
-
in file Mysql.php, method Doctrine_Sequence_Mysql::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Mssql.php, method Doctrine_Sequence_Mssql::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Pgsql.php, method Doctrine_Sequence_Pgsql::lastInsertId()
    lastInsertId
-
lastInsertId
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::lastInsertId()
    Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
-
lastInsertId
-
in file Mock.php, method Doctrine_Adapter_Mock::lastInsertId()
-
lastInsertId
-
in file Sequence.php, method Doctrine_Sequence::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Connection.php, method Doctrine_Connection::lastInsertId()
    lastInsertId
-
lastInsertId
-
in file Db2.php, method Doctrine_Sequence_Db2::lastInsertId()
    Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
-
lastInsertId
-
in file Firebird.php, method Doctrine_Sequence_Firebird::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertID
-
in file Oracle.php, method Doctrine_Sequence_Oracle::lastInsertID()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Sqlite.php, method Doctrine_Sequence_Sqlite::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Interface.php, method Doctrine_Adapter_Interface::lastInsertId()
-
lastSequenceId
-
in file Db2.php, method Doctrine_Sequence_Db2::lastSequenceId()
    Return the most recent value from the specified sequence in the database.
-
leftJoin
-
in file Abstract.php, method Doctrine_Query_Abstract::leftJoin()
    leftJoin appends a LEFT JOIN to the FROM part of the query
-
length
-
in file Driver.php, method Doctrine_Expression_Driver::length()
    Returns the length of a text field.
-
limit
-
in file Abstract.php, method Doctrine_Query_Abstract::limit()
    limit sets the Query query limit
-
LIMIT_RECORDS
-
in file Doctrine.php, class constant Doctrine::LIMIT_RECORDS
    constant for record limiting
-
LIMIT_ROWS
-
in file Doctrine.php, class constant Doctrine::LIMIT_ROWS
    constant for row limiting
-
listDatabases
-
in file Oracle.php, method Doctrine_Import_Oracle::listDatabases()
    lists all databases
-
listDatabases
-
in file Import.php, method Doctrine_Import::listDatabases()
    lists all databases
-
listDatabases
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listDatabases()
    lists all databases
-
listFunctions
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listFunctions()
    lists all availible database functions
-
listFunctions
-
in file Oracle.php, method Doctrine_Import_Oracle::listFunctions()
    lists all availible database functions
-
listFunctions
-
in file Firebird.php, method Doctrine_Import_Firebird::listFunctions()
    list all functions in the current database
-
listFunctions
-
in file Import.php, method Doctrine_Import::listFunctions()
    lists all availible database functions
-
listSequences
-
in file Mysql.php, method Doctrine_Import_Mysql::listSequences()
    lists all database sequences
-
listSequences
-
in file Import.php, method Doctrine_Import::listSequences()
    lists all database sequences
-
listSequences
-
in file Mssql.php, method Doctrine_Import_Mssql::listSequences()
    lists all database sequences
-
listSequences
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listSequences()
    lists all database sequences
-
listSequences
-
in file Oracle.php, method Doctrine_Import_Oracle::listSequences()
    lists all database sequences
-
listTableColumns
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Import.php, method Doctrine_Import::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableColumns()
    lists table constraints
-
listTableConstraints
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Import.php, method Doctrine_Import::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableConstraints()
    lists table constraints
-
listTableFields
-
in file Firebird.php, method Doctrine_Import_Firebird::listTableFields()
    list all fields in a tables in the current database
-
listTableForeignKeys
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableForeignKeys()
    lists table foreign keys
-
listTableIndexes
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableIndexes()
    list all indexes in a table
-
listTableIndexes
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Import.php, method Doctrine_Import::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableIndexes()
    lists table constraints
-
listTables
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTables()
    lists tables
-
listTables
-
in file Oracle.php, method Doctrine_Import_Oracle::listTables()
    lists tables
-
listTables
-
in file Mysql.php, method Doctrine_Import_Mysql::listTables()
    lists tables
-
listTables
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTables()
    lists tables
-
listTables
-
in file Mssql.php, method Doctrine_Import_Mssql::listTables()
    lists tables
-
listTables
-
in file Firebird.php, method Doctrine_Import_Firebird::listTables()
    list all tables in the current database
-
listTables
-
in file Import.php, method Doctrine_Import::listTables()
    lists tables
-
listTableTriggers
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Firebird.php, method Doctrine_Import_Firebird::listTableTriggers()
    This function will be called to get all triggers of the current database ($this->conn->getDatabase())
-
listTableTriggers
-
in file Import.php, method Doctrine_Import::listTableTriggers()
    lists table triggers
-
listTableViews
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableViews()
    lists table views
-
listTableViews
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableViews()
    list the views in the database that reference a given table
-
listTableViews
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableViews()
    lists table views
-
listTableViews
-
in file Import.php, method Doctrine_Import::listTableViews()
    lists table views
-
listTableViews
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableViews()
    lists table views
-
listTableViews
-
in file Firebird.php, method Doctrine_Import_Firebird::listTableViews()
    list the views in the database that reference a given table
-
listTriggers
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTriggers()
    lists all database triggers
-
listTriggers
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTriggers()
    lists all database triggers
-
listTriggers
-
in file Import.php, method Doctrine_Import::listTriggers()
    lists all database triggers
-
listTriggers
-
in file Mssql.php, method Doctrine_Import_Mssql::listTriggers()
    lists all triggers
-
listTriggers
-
in file Oracle.php, method Doctrine_Import_Oracle::listTriggers()
    lists all database triggers
-
listUsers
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listUsers()
    lists database users
-
listUsers
-
in file Import.php, method Doctrine_Import::listUsers()
    lists database users
-
listUsers
-
in file Oracle.php, method Doctrine_Import_Oracle::listUsers()
    lists database users
-
listUsers
-
in file Firebird.php, method Doctrine_Import_Firebird::listUsers()
    list all users
-
listViews
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listViews()
    lists database views
-
listViews
-
in file Mysql.php, method Doctrine_Import_Mysql::listViews()
    lists database views
-
listViews
-
in file Import.php, method Doctrine_Import::listViews()
    lists database views
-
listViews
-
in file Firebird.php, method Doctrine_Import_Firebird::listViews()
    list the views in the database
-
listViews
-
in file Mssql.php, method Doctrine_Import_Mssql::listViews()
    lists database views
-
listViews
-
in file Oracle.php, method Doctrine_Import_Oracle::listViews()
    lists database views
-
load
-
in file JoinCondition.php, method Doctrine_Query_JoinCondition::load()
-
load
-
in file Having.php, method Doctrine_Query_Having::load()
    load returns the parsed query part
-
load
-
in file Record.php, method Doctrine_Record::load()
    load loads all the unitialized properties from the database
-
load
-
in file Where.php, method Doctrine_Query_Where::load()
-
load
-
in file Query.php, method Doctrine_Query::load()
-
loadAll
-
in file Doctrine.php, method Doctrine::loadAll()
    loadAll loads all runtime classes
-
loadAll
-
in file Repository.php, method Doctrine_Table_Repository::loadAll()
    loadAll
-
loadReference
-
in file Record.php, method Doctrine_Record::loadReference()
    loadReference loads a related component
-
loadRelated
-
in file Collection.php, method Doctrine_Collection::loadRelated()
    loadRelated
-
loadRoot
-
in file Query.php, method Doctrine_Query::loadRoot()
    loadRoot
-
loadTemplate
-
in file Abstract.php, method Doctrine_Record_Abstract::loadTemplate()
    loadTemplate
-
loadTemplate
-
in file Builder.php, method Doctrine_Import_Builder::loadTemplate()
    This is a template that was previously in Builder/Record.tpl. Due to the fact that it was not bundled when compiling, it had to be moved here.
-
locate
-
in file Driver.php, method Doctrine_Expression_Driver::locate()
    locate returns the position of the first occurrence of substring $substr in string $str
-
locateImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::locateImpl()
    locate returns the position of the first occurrence of substring $substr in string $str that SQLite's locate() function receives
-
LOCK_OPTIMISTIC
-
in file Doctrine.php, class constant Doctrine::LOCK_OPTIMISTIC
    mode for optimistic locking
-
LOCK_PESSIMISTIC
-
in file Doctrine.php, class constant Doctrine::LOCK_PESSIMISTIC
    mode for pessimistic locking
-
lower
-
in file Driver.php, method Doctrine_Expression_Driver::lower()
    lower Returns the string $str with all characters changed to lowercase according to the current character set mapping.
-
lt
-
in file Driver.php, method Doctrine_Expression_Driver::lt()
    Returns the SQL to check if one value is less than another value.
-
lte
-
in file Driver.php, method Doctrine_Expression_Driver::lte()
    Returns the SQL to check if one value is less than or equal to another value.
-
ltrim
-
in file Driver.php, method Doctrine_Expression_Driver::ltrim()
    ltrim returns the string $str with leading space characters removed
-
ltrimImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::ltrimImpl()
-
-
- -
-
m
-
[Top]
-
-
-
-

m

-
-
$messages
-
in file Reporter.php, variable Doctrine_Export_Reporter::$messages
-
$mock
-
in file Mock.php, variable Doctrine_Adapter_Statement_Mock::$mock
-
$moduleName
-
in file Module.php, variable Doctrine_Connection_Module::$moduleName
-
$modules
-
in file Connection.php, variable Doctrine_Connection::$modules
-
Mock.php
-
procedural page Mock.php
-
Mysqli.php
-
procedural page Mysqli.php
-
Mock.php
-
procedural page Mock.php
-
Memcache.php
-
procedural page Memcache.php
-
Mock.php
-
procedural page Mock.php
-
Module.php
-
procedural page Module.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mock.php
-
procedural page Mock.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Manager.php
-
procedural page Manager.php
-
MaterializedPath.php
-
procedural page MaterializedPath.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mock.php
-
procedural page Mock.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
MaterializedPath.php
-
procedural page MaterializedPath.php
-
Minlength.php
-
procedural page Minlength.php
-
makeRoot
-
in file NestedSet.php, method Doctrine_Node_NestedSet::makeRoot()
    Makes this node a root node. Only used in multiple-root trees.
-
MANY
-
in file Relation.php, class constant Doctrine_Relation::MANY
-
MANY_AGGREGATE
-
in file Relation.php, class constant Doctrine_Relation::MANY_AGGREGATE
    constant for MANY_TO_MANY and ONE_TO_MANY aggregate relationships
-
MANY_COMPOSITE
-
in file Relation.php, class constant Doctrine_Relation::MANY_COMPOSITE
    constant for MANY_TO_MANY and ONE_TO_MANY composite relationships
-
mapValue
-
in file Record.php, method Doctrine_Record::mapValue()
    mapValue This simple method is used for mapping values to $values property.
-
matchPattern
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::matchPattern()
    build a pattern matching string
-
matchPattern
-
in file Mysql.php, method Doctrine_Expression_Mysql::matchPattern()
    build a pattern matching string
-
max
-
in file Driver.php, method Doctrine_Expression_Driver::max()
    Returns the highest value of a column
-
md5
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::md5()
    Returns the md5 sum of a field.
-
md5
-
in file Driver.php, method Doctrine_Expression_Driver::md5()
    Returns the md5 sum of a field.
-
md5Impl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::md5Impl()
    Returns the md5 sum of the data that SQLite's md5() function receives.
-
merge
-
in file Record.php, method Doctrine_Record::merge()
    merge merges this record with an array of values
-
min
-
in file Driver.php, method Doctrine_Expression_Driver::min()
    Returns the lowest value of a column
-
mod
-
in file Driver.php, method Doctrine_Expression_Driver::mod()
    Returns the remainder of the division operation $expression1 / $expression2.
-
modifyLimitQuery
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::modifyLimitQuery()
    Changes a query string for various DBMS specific reasons
-
modifyLimitQuery
-
in file Mssql.php, method Doctrine_Connection_Mssql::modifyLimitQuery()
    Adds an adapter-specific LIMIT clause to the SELECT statement.
-
modifyLimitQuery
-
in file Db2.php, method Doctrine_Connection_Db2::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modifyLimitQuery
-
in file Common.php, method Doctrine_Connection_Common::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modifyLimitQuery
-
in file Oracle.php, method Doctrine_Connection_Oracle::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modifyLimitQuery
-
in file Firebird.php, method Doctrine_Connection_Firebird::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::modImpl()
    Returns the modules of the data that SQLite's mod() function receives.
-
moveAsFirstChildOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsFirstChildOf()
    moves node as first child of dest record
-
moveAsFirstChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsFirstChildOf()
    moves node as first child of dest record
-
moveAsLastChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsLastChildOf()
    moves node as last child of dest record
-
moveAsLastChildOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsLastChildOf()
    moves node as last child of dest record
-
moveAsNextSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsNextSiblingOf()
    moves node as next sibling of dest record
-
moveAsNextSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsNextSiblingOf()
    moves node as next sibling of dest record
-
moveAsPrevSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsPrevSiblingOf()
    moves node as prev sibling of dest record
-
moveAsPrevSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsPrevSiblingOf()
    moves node as prev sibling of dest record
-
mul
-
in file Driver.php, method Doctrine_Expression_Driver::mul()
    Returns the SQL to multiply values or expressions by eachother.
-
-
- -
-
n
-
[Top]
-
-
-
-

n

-
-
$name
-
in file View.php, variable Doctrine_View::$name
-
$name
-
in file Mock.php, variable Doctrine_Adapter_Mock::$name
-
$needsSubquery
-
in file Query.php, variable Doctrine_Query::$needsSubquery
-
$null
-
in file Iterator.php, variable Doctrine_Record_Iterator::$null
-
$null
-
in file Collection.php, variable Doctrine_Collection::$null
-
Normal.php
-
procedural page Normal.php
-
NestedSet.php
-
procedural page NestedSet.php
-
Node.php
-
procedural page Node.php
-
Null.php
-
procedural page Null.php
-
Nest.php
-
procedural page Nest.php
-
NestedSet.php
-
procedural page NestedSet.php
-
NestedSet.php
-
procedural page NestedSet.php
-
Nospace.php
-
procedural page Nospace.php
-
Notblank.php
-
procedural page Notblank.php
-
Notnull.php
-
procedural page Notnull.php
-
neq
-
in file Driver.php, method Doctrine_Expression_Driver::neq()
    Returns the SQL to check if two values are unequal.
-
next
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::next()
-
next
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::next()
-
next
-
in file Iterator.php, method Doctrine_Collection_Iterator::next()
    advances the internal pointer
-
next
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::next()
    advances the internal pointer
-
next
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::next()
-
nextId
-
in file Sqlite.php, method Doctrine_Sequence_Sqlite::nextId()
    Returns the next free id of a sequence
-
nextId
-
in file Sequence.php, method Doctrine_Sequence::nextId()
    Returns the next free id of a sequence
-
nextID
-
in file Oracle.php, method Doctrine_Sequence_Oracle::nextID()
    Returns the next free id of a sequence
-
nextId
-
in file Pgsql.php, method Doctrine_Sequence_Pgsql::nextId()
    Returns the next free id of a sequence
-
nextID
-
in file Firebird.php, method Doctrine_Sequence_Firebird::nextID()
    Returns the next free id of a sequence
-
nextId
-
in file Mssql.php, method Doctrine_Sequence_Mssql::nextId()
    Returns the next free id of a sequence
-
nextId
-
in file Mysql.php, method Doctrine_Sequence_Mysql::nextId()
    Returns the next free id of a sequence
-
nextRowset
-
in file Statement.php, method Doctrine_Connection_Statement::nextRowset()
    nextRowset Advances to the next rowset in a multi-rowset statement handle
-
nextRowset
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::nextRowset()
    nextRowset Advances to the next rowset in a multi-rowset statement handle
-
nextRowset
-
in file Statement.php, method Doctrine_Adapter_Statement::nextRowset()
-
nextRowset
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::nextRowset()
    nextRowset Advances to the next rowset in a multi-rowset statement handle
-
nextSequenceId
-
in file Db2.php, method Doctrine_Sequence_Db2::nextSequenceId()
    Generate a new value from the specified sequence in the database, and return it.
-
not
-
in file Driver.php, method Doctrine_Expression_Driver::not()
    Returns the SQL for a logical not.
-
now
-
in file Driver.php, method Doctrine_Expression_Driver::now()
    Returns the current system date.
-
now
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::now()
    Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time.
-
now
-
in file Mssql.php, method Doctrine_Expression_Mssql::now()
    Return string to call a variable with the current timestamp inside an SQL statement
-
now
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::now()
    Returns the SQL string to return the current system date and time.
-
now
-
in file Oracle.php, method Doctrine_Expression_Oracle::now()
    Return string to call a variable with the current timestamp inside an SQL statement
-
NULL_EMPTY_STRING
-
in file Doctrine.php, class constant Doctrine::NULL_EMPTY_STRING
-
NULL_EMPTY_STRING
-
in file Adapter.php, class constant Doctrine_Adapter::NULL_EMPTY_STRING
-
NULL_NATURAL
-
in file Adapter.php, class constant Doctrine_Adapter::NULL_NATURAL
-
NULL_NATURAL
-
in file Doctrine.php, class constant Doctrine::NULL_NATURAL
-
NULL_TO_STRING
-
in file Doctrine.php, class constant Doctrine::NULL_TO_STRING
-
NULL_TO_STRING
-
in file Adapter.php, class constant Doctrine_Adapter::NULL_TO_STRING
-
-
- -
-
o
-
[Top]
-
-
-
-

o

-
-
$options
-
in file Connection.php, variable Doctrine_Connection::$options
-
$options
-
in file Table.php, variable Doctrine_Table::$options
-
$options
-
in file Node.php, variable Doctrine_Node::$options
-
$options
-
in file Tree.php, variable Doctrine_Tree::$options
-
Oracle.php
-
procedural page Oracle.php
-
Offset.php
-
procedural page Offset.php
-
Offset.php
-
procedural page Offset.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
Object.php
-
procedural page Object.php
-
Overloadable.php
-
procedural page Overloadable.php
-
Offset.php
-
procedural page Offset.php
-
Orderby.php
-
procedural page Orderby.php
-
Object.php
-
procedural page Object.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
obtainReference
-
in file Record.php, method Doctrine_Record::obtainReference()
    obtainReference
-
offset
-
in file Abstract.php, method Doctrine_Query_Abstract::offset()
    offset sets the Query query offset
-
offsetExists
-
in file Access.php, method Doctrine_Access::offsetExists()
-
offsetExists
-
in file Relation.php, method Doctrine_Relation::offsetExists()
-
offsetGet
-
in file Relation.php, method Doctrine_Relation::offsetGet()
-
offsetGet
-
in file Access.php, method Doctrine_Access::offsetGet()
    offsetGet an alias of get()
-
offsetSet
-
in file Access.php, method Doctrine_Access::offsetSet()
    sets $offset to $value
-
offsetSet
-
in file Relation.php, method Doctrine_Relation::offsetSet()
-
offsetUnset
-
in file Access.php, method Doctrine_Access::offsetUnset()
    unset a given offset
-
offsetUnset
-
in file Relation.php, method Doctrine_Relation::offsetUnset()
-
onCollectionDelete
-
in file EventListener.php, method Doctrine_EventListener::onCollectionDelete()
-
onCollectionDelete
-
in file Chain.php, method Doctrine_EventListener_Chain::onCollectionDelete()
    onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
-
ONE
-
in file Relation.php, class constant Doctrine_Relation::ONE
-
ONE_AGGREGATE
-
in file Relation.php, class constant Doctrine_Relation::ONE_AGGREGATE
    constant for ONE_TO_ONE and MANY_TO_ONE aggregate relationships
-
ONE_COMPOSITE
-
in file Relation.php, class constant Doctrine_Relation::ONE_COMPOSITE
    constant for ONE_TO_ONE and MANY_TO_ONE composite relationships
-
onLoad
-
in file Chain.php, method Doctrine_EventListener_Chain::onLoad()
    onLoad an event invoked when Doctrine_Record is being loaded from database
-
onOpen
-
in file EventListener.php, method Doctrine_EventListener::onOpen()
-
onOpen
-
in file Chain.php, method Doctrine_EventListener_Chain::onOpen()
    onOpen an event invoked after Doctrine_Connection is opened
-
onPreCollectionDelete
-
in file EventListener.php, method Doctrine_EventListener::onPreCollectionDelete()
-
onPreCollectionDelete
-
in file Chain.php, method Doctrine_EventListener_Chain::onPreCollectionDelete()
    onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
-
onPreLoad
-
in file Chain.php, method Doctrine_EventListener_Chain::onPreLoad()
    onPreLoad an event invoked when Doctrine_Record is being loaded from database but not yet initialized
-
onSleep
-
in file Chain.php, method Doctrine_EventListener_Chain::onSleep()
    onSleep an event invoked when Doctrine_Record is serialized
-
onWakeUp
-
in file Chain.php, method Doctrine_EventListener_Chain::onWakeUp()
    onWakeUp an event invoked when Doctrine_Record is unserialized
-
openConnection
-
in file Manager.php, method Doctrine_Manager::openConnection()
    openConnection opens a new connection and saves it to Doctrine_Manager->connections
-
option
-
in file Abstract.php, method Doctrine_Record_Abstract::option()
    option sets or retrieves an option
-
orderBy
-
in file Abstract.php, method Doctrine_Query_Abstract::orderBy()
    orderBy sets the ORDER BY part of the query
-
ownsMany
-
in file Abstract.php, method Doctrine_Record_Abstract::ownsMany()
    ownsMany binds One-to-Many / Many-to-Many composite relation
-
ownsOne
-
in file Abstract.php, method Doctrine_Record_Abstract::ownsOne()
    ownsOne binds One-to-One composite relation
-
-
- -
-
p
-
[Top]
-
-
-
-

p

-
-
$params
-
in file Parser.php, variable Doctrine_Hook_Parser::$params
-
$parent
-
in file Configurable.php, variable Doctrine_Configurable::$parent
-
$parts
-
in file Hydrate.php, variable Doctrine_Hydrate::$parts
-
$path
-
in file Doctrine.php, variable Doctrine::$path
-
$path
-
in file Builder.php, variable Doctrine_Import_Builder::$path
-
$pdo
-
in file Db.php, variable Doctrine_Import_Reader_Db::$pdo
-
$pendingAggregates
-
in file Hydrate.php, variable Doctrine_Hydrate::$pendingAggregates
-
$pendingAttributes
-
in file Connection.php, variable Doctrine_Connection::$pendingAttributes
-
$pendingFields
-
in file Query.php, variable Doctrine_Query::$pendingFields
-
$pendingSubqueries
-
in file Query.php, variable Doctrine_Query::$pendingSubqueries
-
$portableCode
-
in file Exception.php, variable Doctrine_Connection_Exception::$portableCode
-
$prevIndex
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$prevIndex
-
$primaryKeys
-
in file Table.php, variable Doctrine_Table::$primaryKeys
-
$properties
-
in file Connection.php, variable Doctrine_Connection::$properties
-
Pgsql.php
-
procedural page Pgsql.php
-
Profiler.php
-
procedural page Profiler.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Parser.php
-
procedural page Parser.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Propel.php
-
procedural page Propel.php
-
Pessimistic.php
-
procedural page Pessimistic.php
-
PostOrderIterator.php
-
procedural page PostOrderIterator.php
-
PreOrderIterator.php
-
procedural page PreOrderIterator.php
-
PostOrderIterator.php
-
procedural page PostOrderIterator.php
-
PreOrderIterator.php
-
procedural page PreOrderIterator.php
-
PostOrderIterator.php
-
procedural page PostOrderIterator.php
-
PreOrderIterator.php
-
procedural page PreOrderIterator.php
-
Plugin.php
-
procedural page Plugin.php
-
Parser.php
-
procedural page Parser.php
-
Part.php
-
procedural page Part.php
-
Parser.php
-
procedural page Parser.php
-
Parser.php
-
procedural page Parser.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Protected.php
-
procedural page Protected.php
-
PARAM_BOOL
-
in file Doctrine.php, class constant Doctrine::PARAM_BOOL
-
PARAM_BOOL
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_BOOL
-
PARAM_INPUT_OUTPUT
-
in file Doctrine.php, class constant Doctrine::PARAM_INPUT_OUTPUT
-
PARAM_INPUT_OUTPUT
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_INPUT_OUTPUT
-
PARAM_INT
-
in file Doctrine.php, class constant Doctrine::PARAM_INT
-
PARAM_INT
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_INT
-
PARAM_LOB
-
in file Doctrine.php, class constant Doctrine::PARAM_LOB
-
PARAM_LOB
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_LOB
-
PARAM_NULL
-
in file Doctrine.php, class constant Doctrine::PARAM_NULL
-
PARAM_NULL
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_NULL
-
PARAM_STMT
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_STMT
-
PARAM_STMT
-
in file Doctrine.php, class constant Doctrine::PARAM_STMT
-
PARAM_STR
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_STR
-
PARAM_STR
-
in file Doctrine.php, class constant Doctrine::PARAM_STR
-
parse
-
in file Equal.php, method Doctrine_Hook_Equal::parse()
    parse
-
parse
-
in file Limit.php, method Doctrine_Query_Limit::parse()
-
parse
-
in file Groupby.php, method Doctrine_Query_Groupby::parse()
    DQL GROUP BY PARSER parses the group by part of the query string
-
parse
-
in file From.php, method Doctrine_Query_From::parse()
    DQL FROM PARSER
-
parse
-
in file Offset.php, method Doctrine_Query_Offset::parse()
-
parse
-
in file Orderby.php, method Doctrine_Query_Orderby::parse()
    DQL ORDER BY PARSER parses the order by part of the query string
-
parse
-
in file Parser.php, method Doctrine_Hook_Parser::parse()
    parse
-
parse
-
in file Parser.php, method Doctrine_Search_Parser::parse()
-
parse
-
in file Condition.php, method Doctrine_Query_Condition::parse()
    DQL CONDITION PARSER parses the join condition/where/having part of the query string
-
parse
-
in file Complex.php, method Doctrine_Hook_Parser_Complex::parse()
    parse
-
parse
-
in file Yml.php, method Doctrine_Import_Schema_Yml::parse()
    parse
-
parse
-
in file Check.php, method Doctrine_Query_Check::parse()
    parse
-
parse
-
in file Xml.php, method Doctrine_Import_Schema_Xml::parse()
    parse
-
parse
-
in file Select.php, method Doctrine_Query_Select::parse()
-
parse
-
in file Set.php, method Doctrine_Query_Set::parse()
-
parse
-
in file Schema.php, method Doctrine_Import_Schema::parse()
    parse
-
parseAggregateFunction
-
in file Query.php, method Doctrine_Query::parseAggregateFunction()
    parseAggregateFunction parses an aggregate function and returns the parsed form
-
parseAggregateFunction
-
in file Having.php, method Doctrine_Query_Having::parseAggregateFunction()
    DQL Aggregate Function parser
-
parseBoolean
-
in file DataDict.php, method Doctrine_DataDict::parseBoolean()
    parseBoolean parses a literal boolean value and returns proper sql equivalent
-
parseBoolean
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::parseBoolean()
    parseBoolean parses a literal boolean value and returns proper sql equivalent
-
parseClause
-
in file Query.php, method Doctrine_Query::parseClause()
    parseClause parses given DQL clause
-
parseClause
-
in file Query.php, method Doctrine_Search_Query::parseClause()
-
parseClause
-
in file Check.php, method Doctrine_Query_Check::parseClause()
    parseClause
-
parseClause
-
in file Complex.php, method Doctrine_Hook_Parser_Complex::parseClause()
    parseClause
-
parseClause
-
in file Expression.php, method Doctrine_Expression::parseClause()
-
parseData2
-
in file Hydrate.php, method Doctrine_Hydrate::parseData2()
    parseData parses the data returned by statement object
-
parseDsn
-
in file Manager.php, method Doctrine_Manager::parseDsn()
    parseDsn
-
parseExists
-
in file Where.php, method Doctrine_Query_Where::parseExists()
    parses an EXISTS expression
-
parseExpression
-
in file Expression.php, method Doctrine_Expression::parseExpression()
-
parseFunction
-
in file Check.php, method Doctrine_Query_Check::parseFunction()
-
parseLiteralValue
-
in file Condition.php, method Doctrine_Query_Condition::parseLiteralValue()
    parses a literal value and returns the parsed value
-
parseQuery
-
in file Query.php, method Doctrine_Query::parseQuery()
    DQL PARSER
-
parseQuery
-
in file RawSql.php, method Doctrine_RawSql::parseQuery()
    parseQuery parses an sql query and adds the parts to internal array
-
parseQueryPart
-
in file Query.php, method Doctrine_Query::parseQueryPart()
    parseQueryPart parses given DQL query part
-
parseQueryPart
-
in file Abstract.php, method Doctrine_Query_Abstract::parseQueryPart()
    parseQueryPart parses given DQL query part
-
parseQueryPart
-
in file RawSql.php, method Doctrine_RawSql::parseQueryPart()
    parseQueryPart parses given query part
-
parseSchema
-
in file Schema.php, method Doctrine_Import_Schema::parseSchema()
    Parse the schema and return it in an array
-
parseSchema
-
in file Yml.php, method Doctrine_Import_Schema_Yml::parseSchema()
    parseSchema
-
parseSchema
-
in file Xml.php, method Doctrine_Import_Schema_Xml::parseSchema()
    parseSchema
-
parseSelect
-
in file Query.php, method Doctrine_Query::parseSelect()
    parseSelect parses the query select part and adds selected fields to pendingFields array
-
parseSingle
-
in file Check.php, method Doctrine_Query_Check::parseSingle()
-
parseSingle
-
in file WordLike.php, method Doctrine_Hook_WordLike::parseSingle()
    parse
-
parseSingle
-
in file Integer.php, method Doctrine_Hook_Integer::parseSingle()
    parse
-
parseSingle
-
in file Complex.php, method Doctrine_Hook_Parser_Complex::parseSingle()
    parseSingle
-
parseSubselect
-
in file Query.php, method Doctrine_Query::parseSubselect()
    parseSubselect
-
parseTerm
-
in file Query.php, method Doctrine_Search_Query::parseTerm()
-
parseValue
-
in file Where.php, method Doctrine_Query_Where::parseValue()
-
parseWord
-
in file Query.php, method Doctrine_Search_Query::parseWord()
-
patternEscapeString
-
in file Firebird.php, method Doctrine_Expression_Firebird::patternEscapeString()
    build string to define escape pattern string
-
phpType
-
in file Validator.php, method Doctrine_Validator::phpType()
    converts a doctrine type to native php type
-
plurelize
-
in file Lib.php, method Doctrine_Lib::plurelize()
-
pop
-
in file Cache.php, method Doctrine_Cache::pop()
    pop
-
pop
-
in file Reporter.php, method Doctrine_Export_Reporter::pop()
-
pop
-
in file Profiler.php, method Doctrine_Connection_Profiler::pop()
    pop the last event from the event stack
-
pop
-
in file Mock.php, method Doctrine_Adapter_Mock::pop()
-
populateRelated
-
in file Collection.php, method Doctrine_Collection::populateRelated()
    populateRelated
-
PORTABILITY_ALL
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_ALL
    Portability: turn on all portability features.
-
PORTABILITY_DELETE_COUNT
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_DELETE_COUNT
    Portability: force reporting the number of rows deleted.
-
PORTABILITY_EMPTY_TO_NULL
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_EMPTY_TO_NULL
    Portability: convert empty values to null strings in data output by query*() and fetch*().
-
PORTABILITY_EXPR
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_EXPR
    Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions
-
PORTABILITY_FIX_ASSOC_FIELD_NAMES
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_FIX_ASSOC_FIELD_NAMES
    Portability: removes database/table qualifiers from associative indexes
-
PORTABILITY_FIX_CASE
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_FIX_CASE
    Portability: convert names of tables and fields to case defined in the "field_case" option when using the query*(), fetch*() methods.
-
PORTABILITY_NONE
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_NONE
    Portability: turn off all portability features.
-
PORTABILITY_RTRIM
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_RTRIM
    Portability: right trim the data output by query*() and fetch*().
-
postClose
-
in file Chain.php, method Doctrine_EventListener_Chain::postClose()
    postClose an event invoked after Doctrine_Connection is closed
-
postClose
-
in file EventListener.php, method Doctrine_EventListener::postClose()
-
postConnect
-
in file Interface.php, method Doctrine_EventListener_Interface::postConnect()
-
postConnect
-
in file Chain.php, method Doctrine_EventListener_Chain::postConnect()
-
postConnect
-
in file EventListener.php, method Doctrine_EventListener::postConnect()
-
postDelete
-
in file Listener.php, method Doctrine_Record_Listener::postDelete()
-
postDelete
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postDelete()
-
postDelete
-
in file Record.php, method Doctrine_Record::postDelete()
    Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure.
-
postDelete
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postDelete()
-
postError
-
in file Interface.php, method Doctrine_EventListener_Interface::postError()
-
postError
-
in file EventListener.php, method Doctrine_EventListener::postError()
-
postError
-
in file Chain.php, method Doctrine_EventListener_Chain::postError()
-
postExec
-
in file EventListener.php, method Doctrine_EventListener::postExec()
-
postExec
-
in file Interface.php, method Doctrine_EventListener_Interface::postExec()
-
postExec
-
in file Chain.php, method Doctrine_EventListener_Chain::postExec()
-
postFetch
-
in file EventListener.php, method Doctrine_EventListener::postFetch()
-
postFetch
-
in file Interface.php, method Doctrine_EventListener_Interface::postFetch()
-
postFetch
-
in file Chain.php, method Doctrine_EventListener_Chain::postFetch()
-
postFetchAll
-
in file Interface.php, method Doctrine_EventListener_Interface::postFetchAll()
-
postFetchAll
-
in file EventListener.php, method Doctrine_EventListener::postFetchAll()
-
postFetchAll
-
in file Chain.php, method Doctrine_EventListener_Chain::postFetchAll()
-
postInsert
-
in file Listener.php, method Doctrine_Record_Listener::postInsert()
-
postInsert
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postInsert()
-
postInsert
-
in file Listener.php, method Doctrine_Search_Listener::postInsert()
-
postInsert
-
in file Record.php, method Doctrine_Record::postInsert()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time.
-
postInsert
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postInsert()
-
postPrepare
-
in file Interface.php, method Doctrine_EventListener_Interface::postPrepare()
-
postPrepare
-
in file Chain.php, method Doctrine_EventListener_Chain::postPrepare()
-
postPrepare
-
in file EventListener.php, method Doctrine_EventListener::postPrepare()
-
postQuery
-
in file Chain.php, method Doctrine_Query_Filter_Chain::postQuery()
    postQuery
-
postQuery
-
in file Query.php, method Doctrine_Query::postQuery()
    postQuery
-
postQuery
-
in file EventListener.php, method Doctrine_EventListener::postQuery()
-
postQuery
-
in file Interface.php, method Doctrine_Query_Filter_Interface::postQuery()
    postQuery
-
postQuery
-
in file Chain.php, method Doctrine_EventListener_Chain::postQuery()
-
postQuery
-
in file Interface.php, method Doctrine_EventListener_Interface::postQuery()
-
postQuery
-
in file Filter.php, method Doctrine_Query_Filter::postQuery()
    postQuery
-
postSave
-
in file Listener.php, method Doctrine_Record_Listener::postSave()
-
postSave
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postSave()
-
postSave
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postSave()
-
postSave
-
in file Record.php, method Doctrine_Record::postSave()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure.
-
postSavepointCommit
-
in file EventListener.php, method Doctrine_EventListener::postSavepointCommit()
-
postSavepointCreate
-
in file EventListener.php, method Doctrine_EventListener::postSavepointCreate()
-
postSavepointRollback
-
in file EventListener.php, method Doctrine_EventListener::postSavepointRollback()
-
postSerialize
-
in file Listener.php, method Doctrine_Record_Listener::postSerialize()
-
postSerialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postSerialize()
-
postSerialize
-
in file Record.php, method Doctrine_Record::postSerialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
postSerialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postSerialize()
-
postStmtExecute
-
in file Interface.php, method Doctrine_EventListener_Interface::postStmtExecute()
-
postStmtExecute
-
in file Chain.php, method Doctrine_EventListener_Chain::postStmtExecute()
-
postStmtExecute
-
in file EventListener.php, method Doctrine_EventListener::postStmtExecute()
-
postTransactionBegin
-
in file Interface.php, method Doctrine_EventListener_Interface::postTransactionBegin()
-
postTransactionBegin
-
in file EventListener.php, method Doctrine_EventListener::postTransactionBegin()
-
postTransactionBegin
-
in file Chain.php, method Doctrine_EventListener_Chain::postTransactionBegin()
    onTransactionBegin an event invoked after a Doctrine_Connection transaction has been started
-
postTransactionCommit
-
in file Interface.php, method Doctrine_EventListener_Interface::postTransactionCommit()
-
postTransactionCommit
-
in file EventListener.php, method Doctrine_EventListener::postTransactionCommit()
-
postTransactionCommit
-
in file Chain.php, method Doctrine_EventListener_Chain::postTransactionCommit()
    onTransactionCommit an event invoked after a Doctrine_Connection transaction is committed
-
postTransactionRollback
-
in file Interface.php, method Doctrine_EventListener_Interface::postTransactionRollback()
-
postTransactionRollback
-
in file EventListener.php, method Doctrine_EventListener::postTransactionRollback()
-
postTransactionRollback
-
in file Chain.php, method Doctrine_EventListener_Chain::postTransactionRollback()
    onTransactionRollback an event invoked after a Doctrine_Connection transaction is being rolled back
-
postUnserialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postUnserialize()
-
postUnserialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postUnserialize()
-
postUnserialize
-
in file Listener.php, method Doctrine_Record_Listener::postUnserialize()
-
postUnserialize
-
in file Record.php, method Doctrine_Record::postUnserialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
postUpdate
-
in file Listener.php, method Doctrine_Search_Listener::postUpdate()
-
postUpdate
-
in file Listener.php, method Doctrine_Record_Listener::postUpdate()
-
postUpdate
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postUpdate()
-
postUpdate
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postUpdate()
-
postUpdate
-
in file Record.php, method Doctrine_Record::postUpdate()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated.
-
preClose
-
in file Chain.php, method Doctrine_EventListener_Chain::preClose()
    preClose an event invoked before Doctrine_Connection is closed
-
preClose
-
in file EventListener.php, method Doctrine_EventListener::preClose()
-
preConnect
-
in file EventListener.php, method Doctrine_EventListener::preConnect()
-
preConnect
-
in file Interface.php, method Doctrine_EventListener_Interface::preConnect()
-
preConnect
-
in file Chain.php, method Doctrine_EventListener_Chain::preConnect()
-
preDelete
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preDelete()
-
preDelete
-
in file Record.php, method Doctrine_Record::preDelete()
    Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure.
-
preDelete
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preDelete()
-
preDelete
-
in file Listener.php, method Doctrine_AuditLog_Listener::preDelete()
-
preDelete
-
in file Listener.php, method Doctrine_Record_Listener::preDelete()
-
preError
-
in file Chain.php, method Doctrine_EventListener_Chain::preError()
-
preError
-
in file Interface.php, method Doctrine_EventListener_Interface::preError()
-
preError
-
in file EventListener.php, method Doctrine_EventListener::preError()
-
preExec
-
in file Interface.php, method Doctrine_EventListener_Interface::preExec()
-
preExec
-
in file Chain.php, method Doctrine_EventListener_Chain::preExec()
-
preExec
-
in file EventListener.php, method Doctrine_EventListener::preExec()
-
preExecute
-
in file Cache.php, method Doctrine_Cache::preExecute()
    preExecute listens the preExecute event of Doctrine_Connection_Statement
-
preFetch
-
in file EventListener.php, method Doctrine_EventListener::preFetch()
-
preFetch
-
in file Cache.php, method Doctrine_Cache::preFetch()
    preFetch listens the preFetch event of Doctrine_Connection_Statement
-
preFetch
-
in file Interface.php, method Doctrine_EventListener_Interface::preFetch()
-
preFetch
-
in file Chain.php, method Doctrine_EventListener_Chain::preFetch()
-
preFetchAll
-
in file Interface.php, method Doctrine_EventListener_Interface::preFetchAll()
-
preFetchAll
-
in file Chain.php, method Doctrine_EventListener_Chain::preFetchAll()
-
preFetchAll
-
in file EventListener.php, method Doctrine_EventListener::preFetchAll()
-
preFetchAll
-
in file Cache.php, method Doctrine_Cache::preFetchAll()
    preFetch listens the preFetchAll event of Doctrine_Connection_Statement
-
preInsert
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preInsert()
-
preInsert
-
in file Record.php, method Doctrine_Record::preInsert()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time.
-
preInsert
-
in file Listener.php, method Doctrine_Record_Listener::preInsert()
-
preInsert
-
in file Listener.php, method Doctrine_AuditLog_Listener::preInsert()
-
preInsert
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preInsert()
-
prepare
-
in file Connection.php, method Doctrine_Connection::prepare()
    prepare
-
prepare
-
in file Mock.php, method Doctrine_Adapter_Mock::prepare()
-
prepare
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::prepare()
    Prepare a statement and return a PDOStatement-like object.
-
prepare
-
in file Oracle.php, method Doctrine_Adapter_Oracle::prepare()
    Returns an SQL statement for preparation.
-
prepare
-
in file Db2.php, method Doctrine_Adapter_Db2::prepare()
    Returns an SQL statement for preparation.
-
prepare
-
in file Interface.php, method Doctrine_Adapter_Interface::prepare()
-
prepareIdentifiers
-
in file Filter.php, method Doctrine_Record_Filter::prepareIdentifiers()
    prepareIdentifiers prepares identifiers for later use
-
prepareIdentifiers
-
in file Record.php, method Doctrine_Record::prepareIdentifiers()
    prepareIdentifiers prepares identifiers for later use
-
prepareValue
-
in file Table.php, method Doctrine_Table::prepareValue()
    prepareValue this method performs special data preparation depending on the type of the given column
-
prePrepare
-
in file Chain.php, method Doctrine_EventListener_Chain::prePrepare()
-
prePrepare
-
in file EventListener.php, method Doctrine_EventListener::prePrepare()
-
prePrepare
-
in file Interface.php, method Doctrine_EventListener_Interface::prePrepare()
-
preQuery
-
in file Query.php, method Doctrine_Query::preQuery()
    preQuery
-
preQuery
-
in file Interface.php, method Doctrine_Query_Filter_Interface::preQuery()
    preQuery
-
preQuery
-
in file Cache.php, method Doctrine_Cache::preQuery()
    preQuery listens on the Doctrine_Event preQuery event
-
preQuery
-
in file EventListener.php, method Doctrine_EventListener::preQuery()
-
preQuery
-
in file Chain.php, method Doctrine_Query_Filter_Chain::preQuery()
    preQuery
-
preQuery
-
in file Chain.php, method Doctrine_EventListener_Chain::preQuery()
-
preQuery
-
in file Filter.php, method Doctrine_Query_Filter::preQuery()
    preQuery
-
preQuery
-
in file Interface.php, method Doctrine_EventListener_Interface::preQuery()
-
preSave
-
in file Record.php, method Doctrine_Record::preSave()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure.
-
preSave
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preSave()
-
preSave
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preSave()
-
preSave
-
in file Listener.php, method Doctrine_Record_Listener::preSave()
-
preSavepointCommit
-
in file EventListener.php, method Doctrine_EventListener::preSavepointCommit()
-
preSavepointCreate
-
in file EventListener.php, method Doctrine_EventListener::preSavepointCreate()
-
preSavepointRollback
-
in file EventListener.php, method Doctrine_EventListener::preSavepointRollback()
-
preSerialize
-
in file Listener.php, method Doctrine_Record_Listener::preSerialize()
-
preSerialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preSerialize()
-
preSerialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preSerialize()
-
preSerialize
-
in file Record.php, method Doctrine_Record::preSerialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
preStmtExecute
-
in file Interface.php, method Doctrine_EventListener_Interface::preStmtExecute()
-
preStmtExecute
-
in file EventListener.php, method Doctrine_EventListener::preStmtExecute()
-
preStmtExecute
-
in file Chain.php, method Doctrine_EventListener_Chain::preStmtExecute()
-
preTransactionBegin
-
in file Chain.php, method Doctrine_EventListener_Chain::preTransactionBegin()
    onTransactionBegin an event invoked before a Doctrine_Connection transaction is being started
-
preTransactionBegin
-
in file EventListener.php, method Doctrine_EventListener::preTransactionBegin()
-
preTransactionBegin
-
in file Interface.php, method Doctrine_EventListener_Interface::preTransactionBegin()
-
preTransactionCommit
-
in file EventListener.php, method Doctrine_EventListener::preTransactionCommit()
-
preTransactionCommit
-
in file Interface.php, method Doctrine_EventListener_Interface::preTransactionCommit()
-
preTransactionCommit
-
in file Chain.php, method Doctrine_EventListener_Chain::preTransactionCommit()
    onPreTransactionCommit an event invoked before a Doctrine_Connection transaction is committed
-
preTransactionRollback
-
in file Interface.php, method Doctrine_EventListener_Interface::preTransactionRollback()
-
preTransactionRollback
-
in file EventListener.php, method Doctrine_EventListener::preTransactionRollback()
-
preTransactionRollback
-
in file Chain.php, method Doctrine_EventListener_Chain::preTransactionRollback()
    onPreTransactionRollback an event invoked before a Doctrine_Connection transaction is being rolled back
-
preUnserialize
-
in file Record.php, method Doctrine_Record::preUnserialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
preUnserialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preUnserialize()
-
preUnserialize
-
in file Listener.php, method Doctrine_Record_Listener::preUnserialize()
-
preUnserialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preUnserialize()
-
preUpdate
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preUpdate()
-
preUpdate
-
in file Listener.php, method Doctrine_Search_Listener::preUpdate()
-
preUpdate
-
in file Listener.php, method Doctrine_AuditLog_Listener::preUpdate()
-
preUpdate
-
in file Listener.php, method Doctrine_Record_Listener::preUpdate()
-
preUpdate
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preUpdate()
-
preUpdate
-
in file Record.php, method Doctrine_Record::preUpdate()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated.
-
process
-
in file Scorer.php, method Doctrine_Search_Scorer::process()
-
processDeleteIntegrity
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::processDeleteIntegrity()
-
processDiff
-
in file Collection.php, method Doctrine_Collection::processDiff()
    processDiff processes the difference of the last snapshot and the current data
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Mssql_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Oracle_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Firebird_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to errorInfo array and returns the modified array
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Pgsql_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Sqlite_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Mysql_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processPendingAggregates
-
in file Query.php, method Doctrine_Query::processPendingAggregates()
    processPendingAggregates processes pending aggregate values for given component alias
-
processPendingFields
-
in file Query.php, method Doctrine_Query::processPendingFields()
    processPendingFields the fields in SELECT clause cannot be parsed until the components in FROM clause are parsed, hence this method is called everytime a specific component is being parsed.
-
processPendingSubqueries
-
in file Query.php, method Doctrine_Query::processPendingSubqueries()
    processPendingSubqueries processes pending subqueries
-
-
- -
-
q
-
[Top]
-
-
-
-

q

-
-
$queries
-
in file Mock.php, variable Doctrine_Adapter_Mock::$queries
-
$query
-
in file Hook.php, variable Doctrine_Hook::$query
-
$query
-
in file View.php, variable Doctrine_View::$query
-
$query
-
in file Part.php, variable Doctrine_Query_Part::$query
-
$queryString
-
in file Mock.php, variable Doctrine_Adapter_Statement_Mock::$queryString
-
Query.php
-
procedural page Query.php
-
Query.php
-
procedural page Query.php
-
query
-
in file Connection.php, method Doctrine_Connection::query()
    query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects
-
query
-
in file Query.php, method Doctrine_Query::query()
    query query the database with DQL (Doctrine Query Language)
-
query
-
in file Mock.php, method Doctrine_Adapter_Mock::query()
-
query
-
in file Interface.php, method Doctrine_Adapter_Interface::query()
-
queryOne
-
in file Connection.php, method Doctrine_Connection::queryOne()
    query queries the database using Doctrine Query Language and returns the first record found
-
quote
-
in file Interface.php, method Doctrine_Adapter_Interface::quote()
-
quote
-
in file Mock.php, method Doctrine_Adapter_Mock::quote()
-
quote
-
in file Connection.php, method Doctrine_Connection::quote()
    quote quotes given input parameter
-
quote
-
in file Formatter.php, method Doctrine_Formatter::quote()
    quote quotes given input parameter
-
quoteExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::quoteExplode()
    quoteExplode
-
quoteIdentifier
-
in file Formatter.php, method Doctrine_Formatter::quoteIdentifier()
    Quote a string so it can be safely used as a table or column name
-
quoteIdentifier
-
in file Connection.php, method Doctrine_Connection::quoteIdentifier()
    Quote a string so it can be safely used as a table or column name
-
quoteIdentifier
-
in file Mssql.php, method Doctrine_Connection_Mssql::quoteIdentifier()
    quoteIdentifier Quote a string so it can be safely used as a table / column name
-
quoteTableAs
-
in file Oracle.php, method Doctrine_Adapter_Oracle::quoteTableAs()
    Quote a table identifier and alias.
-
-
- -
-
r
-
[Top]
-
-
-
-

r

-
-
$record
-
in file Iterator.php, variable Doctrine_Record_Iterator::$record
-
$record
-
in file Node.php, variable Doctrine_Node::$record
-
$reference
-
in file Collection.php, variable Doctrine_Collection::$reference
-
$referencedColumn
-
in file Relation.php, variable Doctrine_Schema_Relation::$referencedColumn
    Column that is referred from another table
-
$referencedTable
-
in file Relation.php, variable Doctrine_Schema_Relation::$referencedTable
    Table where the referred column lives
-
$referenceField
-
in file Collection.php, variable Doctrine_Collection::$referenceField
-
$referencingColumn
-
in file Relation.php, variable Doctrine_Schema_Relation::$referencingColumn
    Column that refers to another table
-
$registry
-
in file Repository.php, variable Doctrine_Table_Repository::$registry
-
$relation
-
in file Collection.php, variable Doctrine_Collection::$relation
-
$relations
-
in file Table.php, variable Doctrine_Schema_Table::$relations
    Relations this table has with others. An array of Doctrine_Schema_Relation
-
$repository
-
in file Table.php, variable Doctrine_Table::$repository
-
$reservedKeyWords
-
in file Pgsql.php, variable Doctrine_DataDict_Pgsql::$reservedKeyWords
-
Reporter.php
-
procedural page Reporter.php
-
Record.php
-
procedural page Record.php
-
Reader.php
-
procedural page Reader.php
-
RawSql.php
-
procedural page RawSql.php
-
Record.php
-
procedural page Record.php
-
Relation.php
-
procedural page Relation.php
-
Relation.php
-
procedural page Relation.php
-
Record.php
-
procedural page Record.php
-
Repository.php
-
procedural page Repository.php
-
Range.php
-
procedural page Range.php
-
Regexp.php
-
procedural page Regexp.php
-
random
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::random()
    return string to call a function to get random value inside an SQL statement
-
random
-
in file Mysql.php, method Doctrine_Expression_Mysql::random()
    return string to call a function to get random value inside an SQL statement
-
random
-
in file Oracle.php, method Doctrine_Expression_Oracle::random()
    random
-
random
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::random()
    return string to call a function to get random value inside an SQL statement
-
rawGet
-
in file Record.php, method Doctrine_Record::rawGet()
    rawGet returns the value of a property, if the property is not yet loaded this method does NOT load it
-
read
-
in file Db.php, method Doctrine_Import_Reader_Db::read()
-
read
-
in file Reader.php, method Doctrine_Import_Reader::read()
-
read
-
in file Propel.php, method Doctrine_Import_Reader_Xml_Propel::read()
-
readStats
-
in file Cache.php, method Doctrine_Cache::readStats()
    readStats
-
RECORD_DELETE
-
in file Event.php, class constant Doctrine_Event::RECORD_DELETE
-
RECORD_INSERT
-
in file Event.php, class constant Doctrine_Event::RECORD_INSERT
-
RECORD_SAVE
-
in file Event.php, class constant Doctrine_Event::RECORD_SAVE
-
RECORD_SERIALIZE
-
in file Event.php, class constant Doctrine_Event::RECORD_SERIALIZE
-
RECORD_UNSERIALIZE
-
in file Event.php, class constant Doctrine_Event::RECORD_UNSERIALIZE
-
RECORD_UPDATE
-
in file Event.php, class constant Doctrine_Event::RECORD_UPDATE
-
refresh
-
in file Record.php, method Doctrine_Record::refresh()
    refresh refresh internal data from the database
-
refreshRelated
-
in file Record.php, method Doctrine_Record::refreshRelated()
    refresh refres data of related objects from the database
-
regexp
-
in file Driver.php, method Doctrine_Expression_Driver::regexp()
    regexp returns the regular expression operator
-
regexp
-
in file Mysql.php, method Doctrine_Expression_Mysql::regexp()
    returns the regular expression operator
-
regexp
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::regexp()
    returns the regular expression operator
-
regexp
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::regexp()
    regexp
-
registerCollection
-
in file Record.php, method Doctrine_Hydrate_Record::registerCollection()
-
registerCollection
-
in file Array.php, method Doctrine_Hydrate_Array::registerCollection()
-
releaseAgedLocks
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::releaseAgedLocks()
    Releases locks older than a defined amount of seconds
-
releaseLock
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::releaseLock()
    Releases a lock on a Doctrine_Record
-
releaseSavePoint
-
in file Mysql.php, method Doctrine_Transaction_Mysql::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Firebird.php, method Doctrine_Transaction_Firebird::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Oracle.php, method Doctrine_Transaction_Oracle::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Transaction.php, method Doctrine_Transaction::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
remove
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::remove()
    Removes all existing errors for the specified field from the stack.
-
remove
-
in file Collection.php, method Doctrine_Collection::remove()
    remove removes a specified collection element
-
removeQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::removeQueryPart()
    removeQueryPart removes a query part from the query part array
-
removeSavePoints
-
in file Transaction.php, method Doctrine_Transaction::removeSavePoints()
    removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints
-
replace
-
in file Connection.php, method Doctrine_Connection::replace()
    Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
-
replace
-
in file Record.php, method Doctrine_Record::replace()
    replace
-
replace
-
in file Mysql.php, method Doctrine_Connection_Mysql::replace()
    Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
-
reset
-
in file Query.php, method Doctrine_Query::reset()
-
reset
-
in file Cache.php, method Doctrine_Cache::reset()
    reset
-
resetBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::resetBaseQuery()
    Enter description here...
-
rethrowException
-
in file Connection.php, method Doctrine_Connection::rethrowException()
    rethrowException
-
returnQueryWithRootId
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::returnQueryWithRootId()
    returns parsed query with root id where clause added if applicable
-
revert
-
in file Record.php, method Doctrine_Record::revert()
    revert reverts this record to given version, this method only works if versioning plugin is enabled
-
rewind
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::rewind()
-
rewind
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::rewind()
-
rewind
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::rewind()
    rewinds the iterator
-
rewind
-
in file Iterator.php, method Doctrine_Collection_Iterator::rewind()
    rewinds the iterator
-
rewind
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::rewind()
-
rollback
-
in file Connection.php, method Doctrine_Connection::rollback()
    rollback
-
rollback
-
in file Transaction.php, method Doctrine_Transaction::rollback()
    rollback
-
rollBack
-
in file Interface.php, method Doctrine_Adapter_Interface::rollBack()
-
rollBack
-
in file Mock.php, method Doctrine_Adapter_Mock::rollBack()
-
rollbackSavePoint
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Firebird.php, method Doctrine_Transaction_Firebird::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Mysql.php, method Doctrine_Transaction_Mysql::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Oracle.php, method Doctrine_Transaction_Oracle::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Transaction.php, method Doctrine_Transaction::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
round
-
in file Driver.php, method Doctrine_Expression_Driver::round()
    Rounds a numeric field to the number of decimals specified.
-
rowCount
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::rowCount()
    rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
rowCount
-
in file Statement.php, method Doctrine_Connection_Statement::rowCount()
    rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
rowCount
-
in file Statement.php, method Doctrine_Adapter_Statement::rowCount()
-
rowCount
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::rowCount()
    rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
rtrim
-
in file Driver.php, method Doctrine_Expression_Driver::rtrim()
    rtrim returns the string $str with proceeding space characters removed
-
rtrimImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::rtrimImpl()
-
-
- -
-
s
-
[Top]
-
-
-
-

s

-
-
$savePoints
-
in file Transaction.php, variable Doctrine_Transaction::$savePoints
-
$serverInfo
-
in file Connection.php, variable Doctrine_Connection::$serverInfo
-
$sql
-
in file Pgsql.php, variable Doctrine_Import_Pgsql::$sql
-
$sql
-
in file Check.php, variable Doctrine_Query_Check::$sql
-
$sql
-
in file Mysql.php, variable Doctrine_Import_Mysql::$sql
-
$sql
-
in file Import.php, variable Doctrine_Import::$sql
-
$sql
-
in file Informix.php, variable Doctrine_Import_Informix::$sql
-
$states
-
in file Usstate.php, variable Doctrine_Validator_Usstate::$states
-
$subqueryAliases
-
in file Query.php, variable Doctrine_Query::$subqueryAliases
-
$suffix
-
in file Builder.php, variable Doctrine_Import_Builder::$suffix
-
$supported
-
in file Connection.php, variable Doctrine_Connection::$supported
-
Statement.php
-
procedural page Statement.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Statement.php
-
procedural page Statement.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Schema.php
-
procedural page Schema.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Schema.php
-
procedural page Schema.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Select.php
-
procedural page Select.php
-
Set.php
-
procedural page Set.php
-
Self.php
-
procedural page Self.php
-
Schema.php
-
procedural page Schema.php
-
Standard.php
-
procedural page Standard.php
-
Scorer.php
-
procedural page Scorer.php
-
Search.php
-
procedural page Search.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Sequence.php
-
procedural page Sequence.php
-
Searchable.php
-
procedural page Searchable.php
-
Sqlite.php
-
procedural page Sqlite.php
-
save
-
in file Interface.php, method Doctrine_Cache_Interface::save()
    Save some string datas into a cache record
-
save
-
in file Memcache.php, method Doctrine_Cache_Memcache::save()
    Save some string datas into a cache record
-
save
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::save()
    saves the given record
-
save
-
in file Db.php, method Doctrine_Cache_Db::save()
    Save some string datas into a cache record
-
save
-
in file Apc.php, method Doctrine_Cache_Apc::save()
    Save some string datas into a cache record
-
save
-
in file Record.php, method Doctrine_Record::save()
    applies the changes made to this object into database this method is smart enough to know if any changes are made and whether to use INSERT or UPDATE statement
-
save
-
in file Collection.php, method Doctrine_Collection::save()
    save saves all records of this collection and processes the difference of the last snapshot and the current data
-
save
-
in file Array.php, method Doctrine_Cache_Array::save()
    Save some string datas into a cache record
-
saveAll
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveAll()
    saveAll persists all the pending records from all tables
-
saveAssociations
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveAssociations()
    saveAssociations
-
saveGraph
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveGraph()
    saves the given record
-
SAVEPOINT_COMMIT
-
in file Event.php, class constant Doctrine_Event::SAVEPOINT_COMMIT
-
SAVEPOINT_CREATE
-
in file Event.php, class constant Doctrine_Event::SAVEPOINT_CREATE
-
SAVEPOINT_ROLLBACK
-
in file Event.php, class constant Doctrine_Event::SAVEPOINT_ROLLBACK
-
saveRelated
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveRelated()
    saveRelated saves all related records to $record
-
search
-
in file Query.php, method Doctrine_Search_Query::search()
-
search
-
in file Record.php, method Doctrine_Hydrate_Record::search()
-
search
-
in file Array.php, method Doctrine_Hydrate_Array::search()
-
search
-
in file Collection.php, method Doctrine_Collection::search()
-
select
-
in file Abstract.php, method Doctrine_Query_Abstract::select()
    select sets the SELECT part of the query
-
SELECT
-
in file Hydrate.php, class constant Doctrine_Hydrate::SELECT
    constant for SELECT queries
-
select
-
in file Connection.php, method Doctrine_Connection::select()
    queries the database with limit and offset added to the query and returns a PDOStatement object
-
SELECT
-
in file View.php, class constant Doctrine_View::SELECT
    SQL SELECT constant
-
serialize
-
in file Record.php, method Doctrine_Record::serialize()
    serialize this method is automatically called when this Doctrine_Record is serialized
-
serialize
-
in file Hydrate.php, method Doctrine_Hydrate::serialize()
    serialize this method is automatically called when this Doctrine_Hydrate is serialized
-
serialize
-
in file Collection.php, method Doctrine_Collection::serialize()
    this method is automatically called when this Doctrine_Collection is serialized
-
set
-
in file Abstract.php, method Doctrine_Query_Abstract::set()
    set sets the SET part of the query
-
set
-
in file Column.php, method Doctrine_Column::set()
    set
-
set
-
in file Object.php, method Doctrine_Schema_Object::set()
-
set
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::set()
    Enter description here...
-
set
-
in file Chain.php, method Doctrine_Query_Filter_Chain::set()
    set
-
set
-
in file Collection.php, method Doctrine_Collection::set()
    set
-
set
-
in file Chain.php, method Doctrine_Record_Listener_Chain::set()
    set
-
set
-
in file Chain.php, method Doctrine_EventListener_Chain::set()
    set
-
set
-
in file Record.php, method Doctrine_Record::set()
    set method for altering properties and Doctrine_Record references if the load parameter is set to false this method will not try to load uninitialized record data
-
setAliasMap
-
in file Hydrate.php, method Doctrine_Hydrate::setAliasMap()
    setAliasMap sets the whole component alias map
-
setArray
-
in file Access.php, method Doctrine_Access::setArray()
    setArray
-
setAttribute
-
in file Abstract.php, method Doctrine_Record_Abstract::setAttribute()
-
setAttribute
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::setAttribute()
    setAttribute Set a statement attribute
-
setAttribute
-
in file Mock.php, method Doctrine_Adapter_Mock::setAttribute()
-
setAttribute
-
in file Configurable.php, method Doctrine_Configurable::setAttribute()
    setAttribute sets a given attribute
-
setAttribute
-
in file Tree.php, method Doctrine_Tree::setAttribute()
    sets tree attribute value
-
setAttribute
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::setAttribute()
    setAttribute Set a statement attribute
-
setAttribute
-
in file Connection.php, method Doctrine_Connection::setAttribute()
    setAttribute sets an attribute
-
setAttribute
-
in file Statement.php, method Doctrine_Connection_Statement::setAttribute()
    setAttribute Set a statement attribute
-
setBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::setBaseQuery()
    Enter description here...
-
setCacheLifeSpan
-
in file Hydrate.php, method Doctrine_Hydrate::setCacheLifeSpan()
    setCacheLifeSpan
-
setCharset
-
in file Firebird.php, method Doctrine_Connection_Firebird::setCharset()
    Set the charset on the current connection
-
setCharset
-
in file Mysql.php, method Doctrine_Connection_Mysql::setCharset()
    Set the charset on the current connection
-
setCharset
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::setCharset()
    Set the charset on the current connection
-
setCharset
-
in file Connection.php, method Doctrine_Connection::setCharset()
    Set the charset on the current connection
-
setColumn
-
in file Table.php, method Doctrine_Table::setColumn()
    setColumn
-
setComponentAlias
-
in file Manager.php, method Doctrine_Manager::setComponentAlias()
    sets an alias for given component name very useful when building a large framework with a possibility to override any given class
-
setCurrentConnection
-
in file Manager.php, method Doctrine_Manager::setCurrentConnection()
    setCurrentConnection sets the current connection to $key
-
setData
-
in file Table.php, method Doctrine_Table::setData()
    setData doctrine uses this function internally users are strongly discouraged to use this function
-
setData
-
in file Collection.php, method Doctrine_Collection::setData()
    setData
-
setDateFormat
-
in file Oracle.php, method Doctrine_Connection_Oracle::setDateFormat()
    Sets up the date/time format
-
setDateFormat
-
in file Connection.php, method Doctrine_Connection::setDateFormat()
    Set the date/time format for the current connection
-
setDefaultAttributes
-
in file Manager.php, method Doctrine_Manager::setDefaultAttributes()
    setDefaultAttributes sets default attributes
-
setEventListener
-
in file Configurable.php, method Doctrine_Configurable::setEventListener()
-
setExpression
-
in file Expression.php, method Doctrine_Expression::setExpression()
-
setFetchMode
-
in file Oracle.php, method Doctrine_Adapter_Oracle::setFetchMode()
    Set the fetch mode.
-
setFetchMode
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::setFetchMode()
    setFetchMode Set the default fetch mode for this statement
-
setFetchMode
-
in file Db2.php, method Doctrine_Adapter_Db2::setFetchMode()
    Set the fetch mode.
-
setFetchMode
-
in file Statement.php, method Doctrine_Adapter_Statement::setFetchMode()
-
setFetchMode
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::setFetchMode()
    setFetchMode Set the default fetch mode for this statement
-
setFetchMode
-
in file Statement.php, method Doctrine_Connection_Statement::setFetchMode()
    setFetchMode Set the default fetch mode for this statement
-
setFieldParser
-
in file Hook.php, method Doctrine_Hook::setFieldParser()
    setFieldParser
-
setFilterQueryType
-
in file Profiler.php, method Doctrine_Connection_Profiler::setFilterQueryType()
    setFilterQueryType
-
setHydrationMode
-
in file Hydrate.php, method Doctrine_Hydrate::setHydrationMode()
    Sets the fetchmode.
-
setImpl
-
in file Configurable.php, method Doctrine_Configurable::setImpl()
    setImpl binds given class to given template name
-
setInheritanceMap
-
in file Abstract.php, method Doctrine_Record_Abstract::setInheritanceMap()
-
setIsolation
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Mssql.php, method Doctrine_Transaction_Mssql::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Mysql.php, method Doctrine_Transaction_Mysql::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Sqlite.php, method Doctrine_Transaction_Sqlite::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Oracle.php, method Doctrine_Transaction_Oracle::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Transaction.php, method Doctrine_Transaction::setIsolation()
    setIsolation
-
setIsolation
-
in file Firebird.php, method Doctrine_Transaction_Firebird::setIsolation()
    Set the transacton isolation level.
-
setIteratorOptions
-
in file Node.php, method Doctrine_Node::setIteratorOptions()
    sets node's iterator options
-
setIteratorType
-
in file Node.php, method Doctrine_Node::setIteratorType()
    sets node's iterator type
-
setKeyColumn
-
in file Collection.php, method Doctrine_Collection::setKeyColumn()
    setKeyColumn sets the key column for this collection
-
setLeftValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::setLeftValue()
    sets record's left value
-
setListener
-
in file Abstract.php, method Doctrine_Record_Abstract::setListener()
    setListener
-
setListener
-
in file Configurable.php, method Doctrine_Configurable::setListener()
    setListener
-
setOption
-
in file Driver.php, method Doctrine_Cache_Driver::setOption()
    setOption
-
setOption
-
in file AuditLog.php, method Doctrine_AuditLog::setOption()
    setOption sets an option and returns this object in order to allow flexible method chaining
-
setOption
-
in file Cache.php, method Doctrine_Cache::setOption()
    setOption
-
setOption
-
in file Search.php, method Doctrine_Search::setOption()
-
setOption
-
in file Query.php, method Doctrine_Query::setOption()
    setOption
-
setOption
-
in file Plugin.php, method Doctrine_Plugin::setOption()
    sets given value to an option
-
setOption
-
in file Table.php, method Doctrine_Table::setOption()
    setOption sets an option and returns this object in order to allow flexible method chaining
-
setParams
-
in file Hydrate.php, method Doctrine_Hydrate::setParams()
    setParams
-
setParent
-
in file Configurable.php, method Doctrine_Configurable::setParent()
    sets a parent for this configurable component the parent must be configurable component itself
-
setPdo
-
in file Db.php, method Doctrine_Import_Reader_Db::setPdo()
-
setPrimaryKey
-
in file Table.php, method Doctrine_Table::setPrimaryKey()
-
setQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::setQueryPart()
    setQueryPart sets a query part in the query part array
-
setRecord
-
in file Node.php, method Doctrine_Node::setRecord()
    setter for record attribute
-
setRecordListener
-
in file Configurable.php, method Doctrine_Configurable::setRecordListener()
    setListener
-
setReference
-
in file Collection.php, method Doctrine_Collection::setReference()
    setReference sets a reference pointer
-
setRelated
-
in file Record.php, method Doctrine_Record::setRelated()
    setRelated
-
setRelation
-
in file Table.php, method Doctrine_Schema_Table::setRelation()
    Adds a relation between a local column and a 2nd table / column
-
setRelationBetween
-
in file Relation.php, method Doctrine_Schema_Relation::setRelationBetween()
-
setRightValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::setRightValue()
    sets record's right value
-
setRootValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::setRootValue()
    sets records root id value
-
setSubclasses
-
in file Abstract.php, method Doctrine_Record_Abstract::setSubclasses()
-
setTable
-
in file Template.php, method Doctrine_Template::setTable()
    setTable
-
setTableDefinition
-
in file Record.php, method Doctrine_Search_Record::setTableDefinition()
-
setTableDefinition
-
in file File.php, method Doctrine_File::setTableDefinition()
-
setTableDefinition
-
in file Index.php, method Doctrine_File_Index::setTableDefinition()
-
setTableDefinition
-
in file Tree.php, method Doctrine_Tree::setTableDefinition()
    Used to define table attributes required for the given implementation
-
setTableDefinition
-
in file Template.php, method Doctrine_Template::setTableDefinition()
-
setTableDefinition
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::setTableDefinition()
    used to define table attributes required for the NestetSet implementation
-
setTableName
-
in file Abstract.php, method Doctrine_Record_Abstract::setTableName()
-
setTableName
-
in file Table.php, method Doctrine_Table::setTableName()
-
setTargetPath
-
in file Builder.php, method Doctrine_Import_Builder::setTargetPath()
    setTargetPath
-
setTransactionLevel
-
in file Transaction.php, method Doctrine_Transaction::setTransactionLevel()
    getTransactionLevel set the current transaction nesting level
-
setTypeParser
-
in file Hook.php, method Doctrine_Hook::setTypeParser()
    setTypeParser
-
setUp
-
in file Index.php, method Doctrine_File_Index::setUp()
-
setUp
-
in file File.php, method Doctrine_File::setUp()
-
setUp
-
in file Searchable.php, method Doctrine_Template_Searchable::setUp()
-
setUp
-
in file Tree.php, method Doctrine_Tree::setUp()
    this method is used for setting up relations and attributes and should be used by specific implementations
-
setUp
-
in file Versionable.php, method Doctrine_Template_Versionable::setUp()
-
setUp
-
in file Record.php, method Doctrine_Record::setUp()
    setUp this method is used for setting up relations and attributes it should be implemented by child classes
-
setUp
-
in file Record.php, method Doctrine_Search_Record::setUp()
-
setUp
-
in file Template.php, method Doctrine_Search_Template::setUp()
-
setUp
-
in file NestedSet.php, method Doctrine_Template_NestedSet::setUp()
-
setUp
-
in file Template.php, method Doctrine_Template::setUp()
-
setView
-
in file Hydrate.php, method Doctrine_Hydrate::setView()
    setView sets a database view this query object uses this method should only be called internally by doctrine
-
setXml
-
in file Propel.php, method Doctrine_Import_Reader_Xml_Propel::setXml()
-
sha1Impl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::sha1Impl()
-
shiftRlRange
-
in file NestedSet.php, method Doctrine_Node_NestedSet::shiftRlRange()
    adds '$delta' to all Left and Right values that are >= '$first' and <= '$last'.
-
shiftRlValues
-
in file NestedSet.php, method Doctrine_Node_NestedSet::shiftRlValues()
    adds '$delta' to all Left and Right values that are >= '$first'. '$delta' can also be negative.
-
skipOperation
-
in file Event.php, method Doctrine_Event::skipOperation()
    skipOperation skips the next operation an alias for __set('skipOperation', true)
-
soundex
-
in file Driver.php, method Doctrine_Expression_Driver::soundex()
    soundex Returns a string to call a function to compute the soundex encoding of a string
-
soundex
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::soundex()
    soundex Returns a string to call a function to compute the soundex encoding of a string
-
sqlExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::sqlExplode()
    sqlExplode
-
sqliteCreateFunction
-
in file Mock.php, method Doctrine_Adapter_Mock::sqliteCreateFunction()
-
standaloneQuery
-
in file Connection.php, method Doctrine_Connection::standaloneQuery()
    standaloneQuery
-
start
-
in file Event.php, method Doctrine_Event::start()
    start starts the internal timer of this event
-
state
-
in file Record.php, method Doctrine_Record::state()
    state returns / assigns the state of this record
-
STATE_ACTIVE
-
in file Transaction.php, class constant Doctrine_Transaction::STATE_ACTIVE
    Doctrine_Transaction is in active state when it has one active transaction
-
STATE_BUSY
-
in file Transaction.php, class constant Doctrine_Transaction::STATE_BUSY
    Doctrine_Transaction is in busy state when it has multiple active transactions
-
STATE_CLEAN
-
in file Record.php, class constant Doctrine_Record::STATE_CLEAN
    CLEAN STATE
-
STATE_CLEAN
-
in file Query.php, class constant Doctrine_Query::STATE_CLEAN
-
STATE_DIRECT
-
in file Query.php, class constant Doctrine_Query::STATE_DIRECT
-
STATE_DIRTY
-
in file Record.php, class constant Doctrine_Record::STATE_DIRTY
    DIRTY STATE
-
STATE_DIRTY
-
in file Query.php, class constant Doctrine_Query::STATE_DIRTY
-
STATE_LOCKED
-
in file Record.php, class constant Doctrine_Record::STATE_LOCKED
    LOCKED STATE a Doctrine_Record is temporarily locked during deletes and saves
-
STATE_LOCKED
-
in file Query.php, class constant Doctrine_Query::STATE_LOCKED
-
STATE_PROXY
-
in file Record.php, class constant Doctrine_Record::STATE_PROXY
    PROXY STATE
-
STATE_SLEEP
-
in file Transaction.php, class constant Doctrine_Transaction::STATE_SLEEP
    Doctrine_Transaction is in sleep state when it has no active transactions
-
STATE_TCLEAN
-
in file Record.php, class constant Doctrine_Record::STATE_TCLEAN
    NEW TCLEAN
-
STATE_TDIRTY
-
in file Record.php, class constant Doctrine_Record::STATE_TDIRTY
    TDIRTY STATE
-
STMT_EXECUTE
-
in file Event.php, class constant Doctrine_Event::STMT_EXECUTE
-
STMT_FETCH
-
in file Event.php, class constant Doctrine_Event::STMT_FETCH
-
STMT_FETCHALL
-
in file Event.php, class constant Doctrine_Event::STMT_FETCHALL
-
sub
-
in file Driver.php, method Doctrine_Expression_Driver::sub()
    Returns the SQL to subtract values or expressions from eachother.
-
substring
-
in file Driver.php, method Doctrine_Expression_Driver::substring()
    return string to call a function to get a substring inside an SQL statement
-
substring
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::substring()
    Returns part of a string.
-
substring
-
in file Mssql.php, method Doctrine_Expression_Mssql::substring()
    return string to call a function to get a substring inside an SQL statement
-
substring
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::substring()
    return string to call a function to get a substring inside an SQL statement
-
substring
-
in file Oracle.php, method Doctrine_Expression_Oracle::substring()
    return string to call a function to get a substring inside an SQL statement
-
sum
-
in file Driver.php, method Doctrine_Expression_Driver::sum()
    Returns the total sum of a column
-
supports
-
in file Connection.php, method Doctrine_Connection::supports()
    supports
-
-
- -
-
t
-
[Top]
-
-
-
-

t

-
-
$table
-
in file Repository.php, variable Doctrine_Table_Repository::$table
-
$table
-
in file Tree.php, variable Doctrine_Tree::$table
-
$table
-
in file Check.php, variable Doctrine_Query_Check::$table
-
$tables
-
in file Connection.php, variable Doctrine_Connection::$tables
-
$topNode
-
in file PostOrderIterator.php, variable Doctrine_Node_MaterializedPath_PostOrderIterator::$topNode
-
$topNode
-
in file LevelOrderIterator.php, variable Doctrine_Node_MaterializedPath_LevelOrderIterator::$topNode
-
$topNode
-
in file PreOrderIterator.php, variable Doctrine_Node_MaterializedPath_PreOrderIterator::$topNode
-
$tpl
-
in file Builder.php, variable Doctrine_Import_Builder::$tpl
-
$transactionLevel
-
in file Transaction.php, variable Doctrine_Transaction::$transactionLevel
-
$traverseLevel
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$traverseLevel
-
$tree
-
in file Table.php, variable Doctrine_Table::$tree
-
$type
-
in file Hydrate.php, variable Doctrine_Hydrate::$type
-
$typeParsers
-
in file Hook.php, variable Doctrine_Hook::$typeParsers
-
Table.php
-
procedural page Table.php
-
Template.php
-
procedural page Template.php
-
Table.php
-
procedural page Table.php
-
Taggable.php
-
procedural page Taggable.php
-
Template.php
-
procedural page Template.php
-
Tokenizer.php
-
procedural page Tokenizer.php
-
Transaction.php
-
procedural page Transaction.php
-
Tree.php
-
procedural page Tree.php
-
table
-
in file Manager.php, method Doctrine_Manager::table()
    table this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment
-
tableize
-
in file Doctrine.php, method Doctrine::tableize()
    returns table name from class name
-
takeSnapshot
-
in file Collection.php, method Doctrine_Collection::takeSnapshot()
    takeSnapshot takes a snapshot from this collection
-
toArray
-
in file Record.php, method Doctrine_Record::toArray()
    toArray returns the record as an array
-
toArray
-
in file Relation.php, method Doctrine_Relation::toArray()
    toArray
-
toArray
-
in file Collection.php, method Doctrine_Collection::toArray()
    toArray Mimics the result of a $query->execute(array(), Doctrine::FETCH_ARRAY);
-
toArray
-
in file Object.php, method Doctrine_Schema_Object::toArray()
-
tokenize
-
in file Tokenizer.php, method Doctrine_Tokenizer::tokenize()
-
tokenizeQuery
-
in file Query.php, method Doctrine_Query::tokenizeQuery()
    tokenizeQuery
-
toString
-
in file Record.php, method Doctrine_Record::toString()
-
traverse
-
in file Node.php, method Doctrine_Node::traverse()
    convenience function for getIterator
-
trim
-
in file Driver.php, method Doctrine_Expression_Driver::trim()
    trim returns the string $str with leading and proceeding space characters removed
-
trimImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::trimImpl()
-
trySave
-
in file Record.php, method Doctrine_Record::trySave()
    Tries to save the object and all its related components.
-
TX_BEGIN
-
in file Event.php, class constant Doctrine_Event::TX_BEGIN
-
TX_COMMIT
-
in file Event.php, class constant Doctrine_Event::TX_COMMIT
-
TX_ROLLBACK
-
in file Event.php, class constant Doctrine_Event::TX_ROLLBACK
-
-
- -
-
u
-
[Top]
-
-
-
-

u

-
-
UnitOfWork.php
-
procedural page UnitOfWork.php
-
Util.php
-
procedural page Util.php
-
Unique.php
-
procedural page Unique.php
-
Unsigned.php
-
procedural page Unsigned.php
-
Usstate.php
-
procedural page Usstate.php
-
unlink
-
in file Record.php, method Doctrine_Record::unlink()
    removeLinks removes links from this record to given records
-
unserialize
-
in file Record.php, method Doctrine_Record::unserialize()
    unseralize this method is automatically called everytime a Doctrine_Record object is unserialized
-
unserialize
-
in file Hydrate.php, method Doctrine_Hydrate::unserialize()
    unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized
-
unserialize
-
in file Collection.php, method Doctrine_Collection::unserialize()
    unseralize this method is automatically called everytime a Doctrine_Collection object is unserialized
-
update
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::update()
    update updates the given record
-
update
-
in file Abstract.php, method Doctrine_Query_Abstract::update()
    update sets the UPDATE part of the query
-
UPDATE
-
in file Hydrate.php, class constant Doctrine_Hydrate::UPDATE
    constant for UPDATE queries
-
updateIndex
-
in file Search.php, method Doctrine_Search::updateIndex()
    updateIndex updates the index
-
updateLevel
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::updateLevel()
-
updateNode
-
in file NestedSet.php, method Doctrine_Node_NestedSet::updateNode()
    move node's and its children to location $destLeft and updates rest of tree
-
upper
-
in file Driver.php, method Doctrine_Expression_Driver::upper()
    upper Returns the string $str with all characters changed to uppercase according to the current character set mapping.
-
useCache
-
in file Hydrate.php, method Doctrine_Hydrate::useCache()
    useCache
-
-
- -
-
v
-
[Top]
-
-
-
-

v

-
-
$validators
-
in file Validator.php, variable Doctrine_Validator::$validators
-
$valid_default_values
-
in file Export.php, variable Doctrine_Export::$valid_default_values
-
Versionable.php
-
procedural page Versionable.php
-
Validator.php
-
procedural page Validator.php
-
View.php
-
procedural page View.php
-
valid
-
in file Normal.php, method Doctrine_Collection_Iterator_Normal::valid()
-
valid
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::valid()
-
valid
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::valid()
-
valid
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::valid()
-
valid
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::valid()
-
valid
-
in file Offset.php, method Doctrine_Collection_Iterator_Offset::valid()
-
valid
-
in file Expandable.php, method Doctrine_Collection_Iterator_Expandable::valid()
-
validate
-
in file Regexp.php, method Doctrine_Validator_Regexp::validate()
-
validate
-
in file Creditcard.php, method Doctrine_Validator_Creditcard::validate()
-
validate
-
in file Unique.php, method Doctrine_Validator_Unique::validate()
-
validate
-
in file Minlength.php, method Doctrine_Validator_Minlength::validate()
-
validate
-
in file Unsigned.php, method Doctrine_Validator_Unsigned::validate()
-
validate
-
in file Email.php, method Doctrine_Validator_Email::validate()
-
validate
-
in file Enum.php, method Doctrine_Validator_Enum::validate()
-
validate
-
in file Usstate.php, method Doctrine_Validator_Usstate::validate()
-
validate
-
in file Record.php, method Doctrine_Record::validate()
    Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure, doing any custom / specialized validations that are neccessary.
-
validate
-
in file Range.php, method Doctrine_Validator_Range::validate()
-
validate
-
in file Notblank.php, method Doctrine_Validator_Notblank::validate()
-
validate
-
in file Nospace.php, method Doctrine_Validator_Nospace::validate()
-
validate
-
in file Ip.php, method Doctrine_Validator_Ip::validate()
-
validate
-
in file Date.php, method Doctrine_Validator_Date::validate()
-
validate
-
in file Notnull.php, method Doctrine_Validator_Notnull::validate()
-
validate
-
in file Htmlcolor.php, method Doctrine_Validator_HtmlColor::validate()
-
validate
-
in file Interface.class.php, method Doctrine_Validator_Interface::validate()
-
validate
-
in file Country.php, method Doctrine_Validator_Country::validate()
-
validateLength
-
in file Validator.php, method Doctrine_Validator::validateLength()
    Validates the length of a field.
-
validateOnInsert
-
in file Record.php, method Doctrine_Record::validateOnInsert()
    Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be inserted into the data store the first time.
-
validateOnUpdate
-
in file Record.php, method Doctrine_Record::validateOnUpdate()
    Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be updated.
-
validateRecord
-
in file Validator.php, method Doctrine_Validator::validateRecord()
    validates a given record and saves possible errors in Doctrine_Validator::$stack
-
-
- -
-
w
-
[Top]
-
-
-
-

w

-
-
WordLike.php
-
procedural page WordLike.php
-
Where.php
-
procedural page Where.php
-
where
-
in file Abstract.php, method Doctrine_Query_Abstract::where()
    where sets the WHERE part of the query
-
whereIn
-
in file Abstract.php, method Doctrine_Query_Abstract::whereIn()
    whereIn adds IN condition to the query WHERE part
-
-
- -
-
x
-
[Top]
-
-
-
-

x

-
-
$xml
-
in file Propel.php, variable Doctrine_Import_Reader_Xml_Propel::$xml
-
Xml.php
-
procedural page Xml.php
-
Xml.php
-
procedural page Xml.php
-
-
- -
-
y
-
[Top]
-
-
-
-

y

-
-
Yml.php
-
procedural page Yml.php
-
Yml.php
-
procedural page Yml.php
-
-
- -
-
_
-
[Top]
-
-
-
-

_

-
-
$_aliasMap
-
in file Hydrate.php, variable Doctrine_Hydrate::$_aliasMap
-
$_auditLog
-
in file Listener.php, variable Doctrine_AuditLog_Listener::$_auditLog
-
$_auditLog
-
in file Versionable.php, variable Doctrine_Template_Versionable::$_auditLog
-
$_auditTable
-
in file AuditLog.php, variable Doctrine_AuditLog::$_auditTable
-
$_baseAlias
-
in file NestedSet.php, variable Doctrine_Tree_NestedSet::$_baseAlias
-
$_baseComponent
-
in file Tree.php, variable Doctrine_Tree::$_baseComponent
-
$_baseQuery
-
in file NestedSet.php, variable Doctrine_Tree_NestedSet::$_baseQuery
-
$_bound
-
in file Manager.php, variable Doctrine_Manager::$_bound
-
$_cache
-
in file Hydrate.php, variable Doctrine_Hydrate::$_cache
-
$_code
-
in file Event.php, variable Doctrine_Event::$_code
-
$_collections
-
in file Transaction.php, variable Doctrine_Transaction::$_collections
-
$_collections
-
in file Record.php, variable Doctrine_Hydrate_Record::$_collections
-
$_components
-
in file Scorer.php, variable Doctrine_Search_Scorer::$_components
-
$_condition
-
in file Query.php, variable Doctrine_Search_Query::$_condition
-
$_config
-
in file Oracle.php, variable Doctrine_Adapter_Oracle::$_config
    User-provided configuration.
-
$_config
-
in file Db2.php, variable Doctrine_Adapter_Db2::$_config
    User-provided configuration.
-
$_conn
-
in file Expression.php, variable Doctrine_Expression::$_conn
-
$_conn
-
in file Statement.php, variable Doctrine_Connection_Statement::$_conn
-
$_conn
-
in file Hydrate.php, variable Doctrine_Hydrate::$_conn
-
$_connections
-
in file Manager.php, variable Doctrine_Manager::$_connections
-
$_count
-
in file Connection.php, variable Doctrine_Connection::$_count
-
$_currIndex
-
in file Manager.php, variable Doctrine_Manager::$_currIndex
-
$_data
-
in file Record.php, variable Doctrine_Record::$_data
-
$_data
-
in file Cache.php, variable Doctrine_Cache::$_data
-
$_debug
-
in file Doctrine.php, variable Doctrine::$_debug
-
$_definition
-
in file Column.php, variable Doctrine_Column::$_definition
-
$_dqlParts
-
in file Query.php, variable Doctrine_Query::$_dqlParts
-
$_driver
-
in file Cache.php, variable Doctrine_Cache::$_driver
-
$_endedMicrotime
-
in file Event.php, variable Doctrine_Event::$_endedMicrotime
-
$_enumParams
-
in file Query.php, variable Doctrine_Query::$_enumParams
-
$_errorMessages
-
in file Exception.php, variable Doctrine_Exception::$_errorMessages
-
$_errorStack
-
in file Record.php, variable Doctrine_Record::$_errorStack
-
$_execute_mode
-
in file Db2.php, variable Doctrine_Adapter_Db2::$_execute_mode
    Execution mode
-
$_execute_mode
-
in file Oracle.php, variable Doctrine_Adapter_Oracle::$_execute_mode
-
$_expireCache
-
in file Hydrate.php, variable Doctrine_Hydrate::$_expireCache
-
$_expression
-
in file Expression.php, variable Doctrine_Expression::$_expression
-
$_expressionMap
-
in file Query.php, variable Doctrine_Query::$_expressionMap
-
$_filter
-
in file Record.php, variable Doctrine_Record::$_filter
-
$_filters
-
in file Chain.php, variable Doctrine_Query_Filter_Chain::$_filters
-
$_hydrationMode
-
in file Hydrate.php, variable Doctrine_Hydrate::$_hydrationMode
    The current hydration mode.
-
$_id
-
in file Record.php, variable Doctrine_Record::$_id
-
$_impl
-
in file Configurable.php, variable Doctrine_Configurable::$_impl
-
$_index
-
in file Record.php, variable Doctrine_Record::$_index
-
$_index
-
in file Manager.php, variable Doctrine_Manager::$_index
-
$_integrityActions
-
in file Manager.php, variable Doctrine_Manager::$_integrityActions
-
$_invoker
-
in file Event.php, variable Doctrine_Event::$_invoker
-
$_lastInsertTable
-
in file Db2.php, variable Doctrine_Adapter_Db2::$_lastInsertTable
    Table name of the last accessed table for an insert operation This is a DB2-Adapter-specific member variable with the utmost probability you might not find it in other adapters...
-
$_listeners
-
in file Chain.php, variable Doctrine_Record_Listener_Chain::$_listeners
-
$_lockTable
-
in file Pessimistic.php, variable Doctrine_Locking_Manager_Pessimistic::$_lockTable
    The database table name for the lock tracking
-
$_memcache
-
in file Memcache.php, variable Doctrine_Cache_Memcache::$_memcache
-
$_modified
-
in file Record.php, variable Doctrine_Record::$_modified
-
$_neededTables
-
in file Query.php, variable Doctrine_Query::$_neededTables
-
$_node
-
in file Record.php, variable Doctrine_Record::$_node
-
$_null
-
in file Object.php, variable Doctrine_Object::$_null
-
$_oid
-
in file Record.php, variable Doctrine_Record::$_oid
-
$_options
-
in file NestedSet.php, variable Doctrine_Template_NestedSet::$_options
-
$_options
-
in file Cache.php, variable Doctrine_Cache::$_options
-
$_options
-
in file Search.php, variable Doctrine_Search::$_options
-
$_options
-
in file Hydrate.php, variable Doctrine_Hydrate::$_options
-
$_options
-
in file AuditLog.php, variable Doctrine_AuditLog::$_options
-
$_options
-
in file Driver.php, variable Doctrine_Cache_Driver::$_options
-
$_options
-
in file Plugin.php, variable Doctrine_Plugin::$_options
-
$_options
-
in file Event.php, variable Doctrine_Event::$_options
-
$_params
-
in file Hydrate.php, variable Doctrine_Hydrate::$_params
-
$_params
-
in file Event.php, variable Doctrine_Event::$_params
-
$_params
-
in file Query.php, variable Doctrine_Search_Query::$_params
-
$_parser
-
in file Table.php, variable Doctrine_Table::$_parser
-
$_parsers
-
in file Query.php, variable Doctrine_Query::$_parsers
-
$_pending
-
in file Parser.php, variable Doctrine_Relation_Parser::$_pending
-
$_pendingJoinConditions
-
in file Query.php, variable Doctrine_Query::$_pendingJoinConditions
-
$_queries
-
in file Cache.php, variable Doctrine_Cache::$_queries
-
$_query
-
in file Query.php, variable Doctrine_Search_Query::$_query
-
$_query
-
in file Event.php, variable Doctrine_Event::$_query
-
$_record
-
in file Filter.php, variable Doctrine_Record_Filter::$_record
-
$_records
-
in file Record.php, variable Doctrine_Hydrate_Record::$_records
-
$_references
-
in file Record.php, variable Doctrine_Record::$_references
-
$_relations
-
in file Parser.php, variable Doctrine_Relation_Parser::$_relations
-
$_resultSet
-
in file Scorer.php, variable Doctrine_Search_Scorer::$_resultSet
-
$_root
-
in file Manager.php, variable Doctrine_Manager::$_root
-
$_search
-
in file Listener.php, variable Doctrine_Search_Listener::$_search
-
$_search
-
in file Searchable.php, variable Doctrine_Template_Searchable::$_search
-
$_search
-
in file Template.php, variable Doctrine_Search_Template::$_search
-
$_snapshot
-
in file Collection.php, variable Doctrine_Collection::$_snapshot
-
$_sql
-
in file Query.php, variable Doctrine_Search_Query::$_sql
-
$_sql
-
in file Hydrate.php, variable Doctrine_Hydrate::$_sql
-
$_startedMicrotime
-
in file Event.php, variable Doctrine_Event::$_startedMicrotime
-
$_state
-
in file Query.php, variable Doctrine_Query::$_state
-
$_state
-
in file Record.php, variable Doctrine_Record::$_state
-
$_stmt
-
in file Statement.php, variable Doctrine_Connection_Statement::$_stmt
-
$_stopwords
-
in file Standard.php, variable Doctrine_Search_Analyzer_Standard::$_stopwords
-
$_success
-
in file Cache.php, variable Doctrine_Cache::$_success
-
$_table
-
in file Abstract.php, variable Doctrine_Record_Abstract::$_table
-
$_table
-
in file Parser.php, variable Doctrine_Relation_Parser::$_table
-
$_table
-
in file Query.php, variable Doctrine_Search_Query::$_table
-
$_table
-
in file Collection.php, variable Doctrine_Collection::$_table
-
$_tableAliases
-
in file Hydrate.php, variable Doctrine_Hydrate::$_tableAliases
-
$_tableAliasSeeds
-
in file Hydrate.php, variable Doctrine_Hydrate::$_tableAliasSeeds
-
$_tables
-
in file Record.php, variable Doctrine_Hydrate_Record::$_tables
-
$_templates
-
in file Table.php, variable Doctrine_Table::$_templates
-
$_timeToLive
-
in file Hydrate.php, variable Doctrine_Hydrate::$_timeToLive
-
$_tree
-
in file Node.php, variable Doctrine_Node::$_tree
    The tree to which the node belongs.
-
$_values
-
in file Record.php, variable Doctrine_Record::$_values
-
$_view
-
in file Hydrate.php, variable Doctrine_Hydrate::$_view
-
_beginTransaction
-
in file Db2.php, method Doctrine_Adapter_Db2::_beginTransaction()
    Begin a transaction.
-
_beginTransaction
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_beginTransaction()
    Begin a transaction.
-
_beginTransaction
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_beginTransaction()
    Leave autocommit mode and begin a transaction.
-
_commit
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_commit()
    Commit a transaction and return to autocommit mode.
-
_commit
-
in file Db2.php, method Doctrine_Adapter_Db2::_commit()
    Commit a transaction.
-
_commit
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_commit()
    Commit a transaction.
-
_connect
-
in file Db2.php, method Doctrine_Adapter_Db2::_connect()
    Creates a connection resource.
-
_connect
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_connect()
    Creates a connection to the database.
-
_connect
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_connect()
    Creates a connection resource.
-
_createBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::_createBaseQuery()
    Enter description here...
-
_dropAutoincrement
-
in file Firebird.php, method Doctrine_Export_Firebird::_dropAutoincrement()
    drop an existing autoincrement sequence + trigger
-
_execute
-
in file Hydrate.php, method Doctrine_Hydrate::_execute()
-
_getExecuteMode
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_getExecuteMode()
-
_getExecuteMode
-
in file Db2.php, method Doctrine_Adapter_Db2::_getExecuteMode()
    Gets the execution mode
-
_getLockingUserIdent
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::_getLockingUserIdent()
    Gets the unique user identifier of a lock
-
_index
-
in file Record.php, method Doctrine_Record::_index()
    _index
-
_makeAutoincrement
-
in file Firebird.php, method Doctrine_Export_Firebird::_makeAutoincrement()
    add an autoincrement sequence + trigger
-
_makeAutoincrement
-
in file Oracle.php, method Doctrine_Export_Oracle::_makeAutoincrement()
    add an autoincrement sequence + trigger
-
_moveBetweenTrees
-
in file NestedSet.php, method Doctrine_Node_NestedSet::_moveBetweenTrees()
    Accomplishes moving of nodes between different trees.
-
_quote
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_quote()
    Quote a raw string.
-
_quote
-
in file Db2.php, method Doctrine_Adapter_Db2::_quote()
    Quote a raw string.
-
_rollBack
-
in file Db2.php, method Doctrine_Adapter_Db2::_rollBack()
    Rollback a transaction.
-
_rollBack
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_rollBack()
    Roll back a transaction and return to autocommit mode.
-
_rollBack
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_rollBack()
    Roll-back a transaction.
-
_setExecuteMode
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_setExecuteMode()
-
_setExecuteMode
-
in file Db2.php, method Doctrine_Adapter_Db2::_setExecuteMode()
-
_setLastElement
-
in file Hydrate.php, method Doctrine_Hydrate::_setLastElement()
    _setLastElement
-
__call
-
in file Overloadable.php, method Doctrine_Overloadable::__call()
    __call method overloader
-
__call
-
in file Profiler.php, method Doctrine_Connection_Profiler::__call()
    method overloader this method is used for invoking different listeners, for the full list of availible listeners, see Doctrine_EventListener
-
__call
-
in file Record.php, method Doctrine_Record::__call()
    __call this method is a magic method that is being used for method overloading
-
__call
-
in file Driver.php, method Doctrine_Expression_Driver::__call()
    __call
-
__clone
-
in file Database.php, method Doctrine_Schema_Database::__clone()
-
__construct
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::__construct()
    the constructor
-
__construct
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::__construct()
-
__construct
-
in file Record.php, method Doctrine_Record::__construct()
    constructor
-
__construct
-
in file View.php, method Doctrine_View::__construct()
    constructor
-
__construct
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::__construct()
-
__construct
-
in file Relation.php, method Doctrine_Relation::__construct()
    constructor
-
__construct
-
in file Search.php, method Doctrine_Search::__construct()
-
__construct
-
in file Scorer.php, method Doctrine_Search_Scorer::__construct()
-
__construct
-
in file Repository.php, method Doctrine_Table_Repository::__construct()
    constructor
-
__construct
-
in file Statement.php, method Doctrine_Connection_Statement::__construct()
    constructor
-
__construct
-
in file Query.php, method Doctrine_Search_Query::__construct()
-
__construct
-
in file Searchable.php, method Doctrine_Template_Searchable::__construct()
-
__construct
-
in file Table.php, method Doctrine_Table::__construct()
    the constructor
-
__construct
-
in file Sqlite.php, method Doctrine_Connection_Sqlite::__construct()
    the constructor
-
__construct
-
in file Tree.php, method Doctrine_Tree::__construct()
    constructor, creates tree with reference to table and any options
-
__construct
-
in file Versionable.php, method Doctrine_Template_Versionable::__construct()
-
__construct
-
in file Profiler.php, method Doctrine_Connection_Profiler::__construct()
    constructor
-
__construct
-
in file Tokenizer.php, method Doctrine_Tokenizer::__construct()
-
__construct
-
in file Template.php, method Doctrine_Search_Template::__construct()
-
__construct
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::__construct()
-
__construct
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::__construct()
-
__construct
-
in file Exception.php, method Doctrine_Table_Exception::__construct()
-
__construct
-
in file Expression.php, method Doctrine_Expression::__construct()
-
__construct
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::__construct()
    Constructs a new locking manager object
-
__construct
-
in file Exception.php, method Doctrine_Validator_Exception::__construct()
-
__construct
-
in file Event.php, method Doctrine_Event::__construct()
    constructor
-
__construct
-
in file AuditLog.php, method Doctrine_AuditLog::__construct()
-
__construct
-
in file Filter.php, method Doctrine_Record_Filter::__construct()
    constructor
-
__construct
-
in file Apc.php, method Doctrine_Cache_Apc::__construct()
    constructor
-
__construct
-
in file Hydrate.php, method Doctrine_Hydrate::__construct()
    constructor
-
__construct
-
in file Hook.php, method Doctrine_Hook::__construct()
-
__construct
-
in file Check.php, method Doctrine_Query_Check::__construct()
-
__construct
-
in file Builder.php, method Doctrine_Import_Builder::__construct()
-
__construct
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::__construct()
    Constructor
-
__construct
-
in file Connection.php, method Doctrine_Connection::__construct()
    the constructor
-
__construct
-
in file Column.php, method Doctrine_Column::__construct()
-
__construct
-
in file Cache.php, method Doctrine_Cache::__construct()
    constructor
-
__construct
-
in file Collection.php, method Doctrine_Collection::__construct()
    constructor
-
__construct
-
in file DataType.php, method Doctrine_DataType::__construct()
-
__construct
-
in file Db.php, method Doctrine_Db::__construct()
-
__construct
-
in file Driver.php, method Doctrine_Cache_Driver::__construct()
    constructor
-
__construct
-
in file Doctrine.php, method Doctrine::__construct()
    constructor
-
__construct
-
in file Db2.php, method Doctrine_Adapter_Db2::__construct()
    Constructor.
-
__construct
-
in file Db.php, method Doctrine_Cache_Db::__construct()
    constructor
-
__construct
-
in file Informix.php, method Doctrine_Connection_Informix::__construct()
    the constructor
-
__construct
-
in file Firebird.php, method Doctrine_Connection_Firebird::__construct()
    the constructor
-
__construct
-
in file Oracle.php, method Doctrine_Connection_Oracle::__construct()
-
__construct
-
in file Mysql.php, method Doctrine_Connection_Mysql::__construct()
    the constructor
-
__construct
-
in file Mssql.php, method Doctrine_Connection_Mssql::__construct()
    the constructor
-
__construct
-
in file Iterator.php, method Doctrine_Collection_Iterator::__construct()
    constructor
-
__construct
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::__construct()
    constructor, creates tree with reference to table and sets default root options
-
__construct
-
in file NestedSet.php, method Doctrine_Template_NestedSet::__construct()
-
__construct
-
in file Offset.php, method Doctrine_Collection_Offset::__construct()
-
__construct
-
in file Object.php, method Doctrine_Schema_Object::__construct()
-
__construct
-
in file Oracle.php, method Doctrine_Adapter_Oracle::__construct()
    Constructor.
-
__construct
-
in file Node.php, method Doctrine_Node::__construct()
    contructor, creates node with reference to record and any options
-
__construct
-
in file Module.php, method Doctrine_Connection_Module::__construct()
-
__construct
-
in file Parser.php, method Doctrine_Relation_Parser::__construct()
    constructor
-
__construct
-
in file Listener.php, method Doctrine_Search_Listener::__construct()
-
__construct
-
in file Listener.php, method Doctrine_AuditLog_Listener::__construct()
-
__construct
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::__construct()
-
__construct
-
in file Iterator.php, method Doctrine_Record_Iterator::__construct()
    constructor
-
__construct
-
in file Manager.php, method Doctrine_Manager::__construct()
    constructor
-
__construct
-
in file Memcache.php, method Doctrine_Cache_Memcache::__construct()
    constructor
-
__construct
-
in file Mock.php, method Doctrine_Connection_Mock::__construct()
    the constructor
-
__construct
-
in file Mock.php, method Doctrine_Adapter_Mock::__construct()
-
__construct
-
in file Part.php, method Doctrine_Query_Part::__construct()
-
__get
-
in file Connection.php, method Doctrine_Connection::__get()
    __get lazy loads given module and returns it
-
__get
-
in file Event.php, method Doctrine_Event::__get()
    getOption returns the value of an option
-
__get
-
in file Access.php, method Doctrine_Access::__get()
    __get -- an alias of get()
-
__get
-
in file AuditLog.php, method Doctrine_AuditLog::__get()
    __get an alias for getOption
-
__get
-
in file Table.php, method Doctrine_Table::__get()
    __get an alias for getOption
-
__isset
-
in file AuditLog.php, method Doctrine_AuditLog::__isset()
    __isset
-
__isset
-
in file Table.php, method Doctrine_Table::__isset()
    __isset
-
__isset
-
in file Access.php, method Doctrine_Access::__isset()
    __isset()
-
__set
-
in file Event.php, method Doctrine_Event::__set()
    setOption sets the value of an option
-
__set
-
in file Access.php, method Doctrine_Access::__set()
    __set an alias of set()
-
__toString
-
in file Table.php, method Doctrine_Table::__toString()
    returns a string representation of this object
-
__toString
-
in file Record.php, method Doctrine_Record::__toString()
    returns a string representation of this object
-
__toString
-
in file Expression.php, method Doctrine_Expression::__toString()
-
__toString
-
in file Hydrate.php, method Doctrine_Hydrate::__toString()
-
__toString
-
in file Manager.php, method Doctrine_Manager::__toString()
    __toString returns a string representation of this object
-
__toString
-
in file Null.php, method Doctrine_Null::__toString()
-
__toString
-
in file Exception.php, method Doctrine_Validator_Exception::__toString()
    __toString
-
__toString
-
in file Relation.php, method Doctrine_Relation::__toString()
    __toString
-
__toString
-
in file Connection.php, method Doctrine_Connection::__toString()
    returns a string representation of this object
-
__toString
-
in file Database.php, method Doctrine_Schema_Database::__toString()
-
__toString
-
in file Schema.php, method Doctrine_Schema::__toString()
-
__toString
-
in file Relation.php, method Doctrine_Schema_Relation::__toString()
-
__toString
-
in file Collection.php, method Doctrine_Collection::__toString()
    returns a string representation of this object
-
__unset
-
in file Record.php, method Doctrine_Record::__unset()
-
__unset
-
in file Access.php, method Doctrine_Access::__unset()
    __unset()
-
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/elementindex_Doctrine.html b/api_documentation/trunk/elementindex_Doctrine.html deleted file mode 100644 index 486210710..000000000 --- a/api_documentation/trunk/elementindex_Doctrine.html +++ /dev/null @@ -1,6089 +0,0 @@ - - -
- -

Element index for package Doctrine

- [ a ] - [ b ] - [ c ] - [ d ] - [ e ] - [ f ] - [ g ] - [ h ] - [ i ] - [ j ] - [ k ] - [ l ] - [ m ] - [ n ] - [ o ] - [ p ] - [ q ] - [ r ] - [ s ] - [ t ] - [ u ] - [ v ] - [ w ] - [ x ] - [ y ] - [ _ ] -

- -
-
_
-
[Top]
-
-
-
-

_

-
-
$_aliasMap
-
in file Hydrate.php, variable Doctrine_Hydrate::$_aliasMap
-
$_auditLog
-
in file Listener.php, variable Doctrine_AuditLog_Listener::$_auditLog
-
$_auditLog
-
in file Versionable.php, variable Doctrine_Template_Versionable::$_auditLog
-
$_auditTable
-
in file AuditLog.php, variable Doctrine_AuditLog::$_auditTable
-
$_baseAlias
-
in file NestedSet.php, variable Doctrine_Tree_NestedSet::$_baseAlias
-
$_baseComponent
-
in file Tree.php, variable Doctrine_Tree::$_baseComponent
-
$_baseQuery
-
in file NestedSet.php, variable Doctrine_Tree_NestedSet::$_baseQuery
-
$_bound
-
in file Manager.php, variable Doctrine_Manager::$_bound
-
$_cache
-
in file Hydrate.php, variable Doctrine_Hydrate::$_cache
-
$_code
-
in file Event.php, variable Doctrine_Event::$_code
-
$_collections
-
in file Record.php, variable Doctrine_Hydrate_Record::$_collections
-
$_collections
-
in file Transaction.php, variable Doctrine_Transaction::$_collections
-
$_components
-
in file Scorer.php, variable Doctrine_Search_Scorer::$_components
-
$_condition
-
in file Query.php, variable Doctrine_Search_Query::$_condition
-
$_conn
-
in file Hydrate.php, variable Doctrine_Hydrate::$_conn
-
$_conn
-
in file Statement.php, variable Doctrine_Connection_Statement::$_conn
-
$_conn
-
in file Expression.php, variable Doctrine_Expression::$_conn
-
$_connections
-
in file Manager.php, variable Doctrine_Manager::$_connections
-
$_count
-
in file Connection.php, variable Doctrine_Connection::$_count
-
$_currIndex
-
in file Manager.php, variable Doctrine_Manager::$_currIndex
-
$_data
-
in file Record.php, variable Doctrine_Record::$_data
-
$_debug
-
in file Doctrine.php, variable Doctrine::$_debug
-
$_definition
-
in file Column.php, variable Doctrine_Column::$_definition
-
$_dqlParts
-
in file Query.php, variable Doctrine_Query::$_dqlParts
-
$_endedMicrotime
-
in file Event.php, variable Doctrine_Event::$_endedMicrotime
-
$_enumParams
-
in file Query.php, variable Doctrine_Query::$_enumParams
-
$_errorMessages
-
in file Exception.php, variable Doctrine_Exception::$_errorMessages
-
$_errorStack
-
in file Record.php, variable Doctrine_Record::$_errorStack
-
$_expireCache
-
in file Hydrate.php, variable Doctrine_Hydrate::$_expireCache
-
$_expression
-
in file Expression.php, variable Doctrine_Expression::$_expression
-
$_expressionMap
-
in file Query.php, variable Doctrine_Query::$_expressionMap
-
$_filter
-
in file Record.php, variable Doctrine_Record::$_filter
-
$_filters
-
in file Chain.php, variable Doctrine_Query_Filter_Chain::$_filters
-
$_hydrationMode
-
in file Hydrate.php, variable Doctrine_Hydrate::$_hydrationMode
    The current hydration mode.
-
$_id
-
in file Record.php, variable Doctrine_Record::$_id
-
$_impl
-
in file Configurable.php, variable Doctrine_Configurable::$_impl
-
$_index
-
in file Manager.php, variable Doctrine_Manager::$_index
-
$_index
-
in file Record.php, variable Doctrine_Record::$_index
-
$_integrityActions
-
in file Manager.php, variable Doctrine_Manager::$_integrityActions
-
$_invoker
-
in file Event.php, variable Doctrine_Event::$_invoker
-
$_listeners
-
in file Chain.php, variable Doctrine_Record_Listener_Chain::$_listeners
-
$_lockTable
-
in file Pessimistic.php, variable Doctrine_Locking_Manager_Pessimistic::$_lockTable
    The database table name for the lock tracking
-
$_modified
-
in file Record.php, variable Doctrine_Record::$_modified
-
$_neededTables
-
in file Query.php, variable Doctrine_Query::$_neededTables
-
$_node
-
in file Record.php, variable Doctrine_Record::$_node
-
$_null
-
in file Object.php, variable Doctrine_Object::$_null
-
$_oid
-
in file Record.php, variable Doctrine_Record::$_oid
-
$_options
-
in file AuditLog.php, variable Doctrine_AuditLog::$_options
-
$_options
-
in file Event.php, variable Doctrine_Event::$_options
-
$_options
-
in file Search.php, variable Doctrine_Search::$_options
-
$_options
-
in file NestedSet.php, variable Doctrine_Template_NestedSet::$_options
-
$_options
-
in file Hydrate.php, variable Doctrine_Hydrate::$_options
-
$_options
-
in file Plugin.php, variable Doctrine_Plugin::$_options
-
$_params
-
in file Query.php, variable Doctrine_Search_Query::$_params
-
$_params
-
in file Hydrate.php, variable Doctrine_Hydrate::$_params
-
$_params
-
in file Event.php, variable Doctrine_Event::$_params
-
$_parser
-
in file Table.php, variable Doctrine_Table::$_parser
-
$_parsers
-
in file Query.php, variable Doctrine_Query::$_parsers
-
$_pending
-
in file Parser.php, variable Doctrine_Relation_Parser::$_pending
-
$_pendingJoinConditions
-
in file Query.php, variable Doctrine_Query::$_pendingJoinConditions
-
$_query
-
in file Query.php, variable Doctrine_Search_Query::$_query
-
$_query
-
in file Event.php, variable Doctrine_Event::$_query
-
$_record
-
in file Filter.php, variable Doctrine_Record_Filter::$_record
-
$_records
-
in file Record.php, variable Doctrine_Hydrate_Record::$_records
-
$_references
-
in file Record.php, variable Doctrine_Record::$_references
-
$_relations
-
in file Parser.php, variable Doctrine_Relation_Parser::$_relations
-
$_resultSet
-
in file Scorer.php, variable Doctrine_Search_Scorer::$_resultSet
-
$_root
-
in file Manager.php, variable Doctrine_Manager::$_root
-
$_search
-
in file Template.php, variable Doctrine_Search_Template::$_search
-
$_search
-
in file Searchable.php, variable Doctrine_Template_Searchable::$_search
-
$_search
-
in file Listener.php, variable Doctrine_Search_Listener::$_search
-
$_snapshot
-
in file Collection.php, variable Doctrine_Collection::$_snapshot
-
$_sql
-
in file Query.php, variable Doctrine_Search_Query::$_sql
-
$_sql
-
in file Hydrate.php, variable Doctrine_Hydrate::$_sql
-
$_startedMicrotime
-
in file Event.php, variable Doctrine_Event::$_startedMicrotime
-
$_state
-
in file Query.php, variable Doctrine_Query::$_state
-
$_state
-
in file Record.php, variable Doctrine_Record::$_state
-
$_stmt
-
in file Statement.php, variable Doctrine_Connection_Statement::$_stmt
-
$_stopwords
-
in file Standard.php, variable Doctrine_Search_Analyzer_Standard::$_stopwords
-
$_table
-
in file Query.php, variable Doctrine_Search_Query::$_table
-
$_table
-
in file Collection.php, variable Doctrine_Collection::$_table
-
$_table
-
in file Parser.php, variable Doctrine_Relation_Parser::$_table
-
$_table
-
in file Abstract.php, variable Doctrine_Record_Abstract::$_table
-
$_tableAliases
-
in file Hydrate.php, variable Doctrine_Hydrate::$_tableAliases
-
$_tableAliasSeeds
-
in file Hydrate.php, variable Doctrine_Hydrate::$_tableAliasSeeds
-
$_tables
-
in file Record.php, variable Doctrine_Hydrate_Record::$_tables
-
$_templates
-
in file Table.php, variable Doctrine_Table::$_templates
-
$_timeToLive
-
in file Hydrate.php, variable Doctrine_Hydrate::$_timeToLive
-
$_tree
-
in file Node.php, variable Doctrine_Node::$_tree
    The tree to which the node belongs.
-
$_values
-
in file Record.php, variable Doctrine_Record::$_values
-
$_view
-
in file Hydrate.php, variable Doctrine_Hydrate::$_view
-
_createBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::_createBaseQuery()
    Enter description here...
-
_dropAutoincrement
-
in file Firebird.php, method Doctrine_Export_Firebird::_dropAutoincrement()
    drop an existing autoincrement sequence + trigger
-
_execute
-
in file Hydrate.php, method Doctrine_Hydrate::_execute()
-
_getLockingUserIdent
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::_getLockingUserIdent()
    Gets the unique user identifier of a lock
-
_index
-
in file Record.php, method Doctrine_Record::_index()
    _index
-
_makeAutoincrement
-
in file Oracle.php, method Doctrine_Export_Oracle::_makeAutoincrement()
    add an autoincrement sequence + trigger
-
_makeAutoincrement
-
in file Firebird.php, method Doctrine_Export_Firebird::_makeAutoincrement()
    add an autoincrement sequence + trigger
-
_moveBetweenTrees
-
in file NestedSet.php, method Doctrine_Node_NestedSet::_moveBetweenTrees()
    Accomplishes moving of nodes between different trees.
-
_setLastElement
-
in file Hydrate.php, method Doctrine_Hydrate::_setLastElement()
    _setLastElement
-
__call
-
in file Overloadable.php, method Doctrine_Overloadable::__call()
    __call method overloader
-
__call
-
in file Driver.php, method Doctrine_Expression_Driver::__call()
    __call
-
__call
-
in file Profiler.php, method Doctrine_Connection_Profiler::__call()
    method overloader this method is used for invoking different listeners, for the full list of availible listeners, see Doctrine_EventListener
-
__call
-
in file Record.php, method Doctrine_Record::__call()
    __call this method is a magic method that is being used for method overloading
-
__clone
-
in file Database.php, method Doctrine_Schema_Database::__clone()
-
__construct
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::__construct()
    Constructor
-
__construct
-
in file Event.php, method Doctrine_Event::__construct()
    constructor
-
__construct
-
in file Tokenizer.php, method Doctrine_Tokenizer::__construct()
-
__construct
-
in file Template.php, method Doctrine_Search_Template::__construct()
-
__construct
-
in file Record.php, method Doctrine_Record::__construct()
    constructor
-
__construct
-
in file Doctrine.php, method Doctrine::__construct()
    constructor
-
__construct
-
in file AuditLog.php, method Doctrine_AuditLog::__construct()
-
__construct
-
in file Tree.php, method Doctrine_Tree::__construct()
    constructor, creates tree with reference to table and any options
-
__construct
-
in file Versionable.php, method Doctrine_Template_Versionable::__construct()
-
__construct
-
in file View.php, method Doctrine_View::__construct()
    constructor
-
__construct
-
in file Query.php, method Doctrine_Search_Query::__construct()
-
__construct
-
in file Expression.php, method Doctrine_Expression::__construct()
-
__construct
-
in file Exception.php, method Doctrine_Validator_Exception::__construct()
-
__construct
-
in file Mysql.php, method Doctrine_Connection_Mysql::__construct()
    the constructor
-
__construct
-
in file Table.php, method Doctrine_Table::__construct()
    the constructor
-
__construct
-
in file Builder.php, method Doctrine_Import_Builder::__construct()
-
__construct
-
in file Connection.php, method Doctrine_Connection::__construct()
    the constructor
-
__construct
-
in file Search.php, method Doctrine_Search::__construct()
-
__construct
-
in file Searchable.php, method Doctrine_Template_Searchable::__construct()
-
__construct
-
in file Statement.php, method Doctrine_Connection_Statement::__construct()
    constructor
-
__construct
-
in file Sqlite.php, method Doctrine_Connection_Sqlite::__construct()
    the constructor
-
__construct
-
in file Collection.php, method Doctrine_Collection::__construct()
    constructor
-
__construct
-
in file Scorer.php, method Doctrine_Search_Scorer::__construct()
-
__construct
-
in file Filter.php, method Doctrine_Record_Filter::__construct()
    constructor
-
__construct
-
in file DataType.php, method Doctrine_DataType::__construct()
-
__construct
-
in file Db.php, method Doctrine_Db::__construct()
-
__construct
-
in file Check.php, method Doctrine_Query_Check::__construct()
-
__construct
-
in file Relation.php, method Doctrine_Relation::__construct()
    constructor
-
__construct
-
in file Repository.php, method Doctrine_Table_Repository::__construct()
    constructor
-
__construct
-
in file Column.php, method Doctrine_Column::__construct()
-
__construct
-
in file Exception.php, method Doctrine_Table_Exception::__construct()
-
__construct
-
in file Listener.php, method Doctrine_AuditLog_Listener::__construct()
-
__construct
-
in file Listener.php, method Doctrine_Search_Listener::__construct()
-
__construct
-
in file Oracle.php, method Doctrine_Connection_Oracle::__construct()
-
__construct
-
in file Parser.php, method Doctrine_Relation_Parser::__construct()
    constructor
-
__construct
-
in file Firebird.php, method Doctrine_Connection_Firebird::__construct()
    the constructor
-
__construct
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::__construct()
    Constructs a new locking manager object
-
__construct
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::__construct()
-
__construct
-
in file Offset.php, method Doctrine_Collection_Offset::__construct()
-
__construct
-
in file Object.php, method Doctrine_Schema_Object::__construct()
-
__construct
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::__construct()
    constructor, creates tree with reference to table and sets default root options
-
__construct
-
in file Module.php, method Doctrine_Connection_Module::__construct()
-
__construct
-
in file Mssql.php, method Doctrine_Connection_Mssql::__construct()
    the constructor
-
__construct
-
in file Mock.php, method Doctrine_Connection_Mock::__construct()
    the constructor
-
__construct
-
in file NestedSet.php, method Doctrine_Template_NestedSet::__construct()
-
__construct
-
in file Manager.php, method Doctrine_Manager::__construct()
    constructor
-
__construct
-
in file Node.php, method Doctrine_Node::__construct()
    contructor, creates node with reference to record and any options
-
__construct
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::__construct()
    the constructor
-
__construct
-
in file Part.php, method Doctrine_Query_Part::__construct()
-
__construct
-
in file Profiler.php, method Doctrine_Connection_Profiler::__construct()
    constructor
-
__construct
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::__construct()
-
__construct
-
in file Hydrate.php, method Doctrine_Hydrate::__construct()
    constructor
-
__construct
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::__construct()
-
__construct
-
in file Iterator.php, method Doctrine_Collection_Iterator::__construct()
    constructor
-
__construct
-
in file Informix.php, method Doctrine_Connection_Informix::__construct()
    the constructor
-
__construct
-
in file Hook.php, method Doctrine_Hook::__construct()
-
__construct
-
in file Iterator.php, method Doctrine_Record_Iterator::__construct()
    constructor
-
__construct
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::__construct()
-
__get
-
in file Event.php, method Doctrine_Event::__get()
    getOption returns the value of an option
-
__get
-
in file Connection.php, method Doctrine_Connection::__get()
    __get lazy loads given module and returns it
-
__get
-
in file AuditLog.php, method Doctrine_AuditLog::__get()
    __get an alias for getOption
-
__get
-
in file Access.php, method Doctrine_Access::__get()
    __get -- an alias of get()
-
__get
-
in file Table.php, method Doctrine_Table::__get()
    __get an alias for getOption
-
__isset
-
in file Table.php, method Doctrine_Table::__isset()
    __isset
-
__isset
-
in file Access.php, method Doctrine_Access::__isset()
    __isset()
-
__isset
-
in file AuditLog.php, method Doctrine_AuditLog::__isset()
    __isset
-
__set
-
in file Access.php, method Doctrine_Access::__set()
    __set an alias of set()
-
__set
-
in file Event.php, method Doctrine_Event::__set()
    setOption sets the value of an option
-
__toString
-
in file Table.php, method Doctrine_Table::__toString()
    returns a string representation of this object
-
__toString
-
in file Expression.php, method Doctrine_Expression::__toString()
-
__toString
-
in file Exception.php, method Doctrine_Validator_Exception::__toString()
    __toString
-
__toString
-
in file Collection.php, method Doctrine_Collection::__toString()
    returns a string representation of this object
-
__toString
-
in file Relation.php, method Doctrine_Schema_Relation::__toString()
-
__toString
-
in file Relation.php, method Doctrine_Relation::__toString()
    __toString
-
__toString
-
in file Database.php, method Doctrine_Schema_Database::__toString()
-
__toString
-
in file Manager.php, method Doctrine_Manager::__toString()
    __toString returns a string representation of this object
-
__toString
-
in file Record.php, method Doctrine_Record::__toString()
    returns a string representation of this object
-
__toString
-
in file Null.php, method Doctrine_Null::__toString()
-
__toString
-
in file Hydrate.php, method Doctrine_Hydrate::__toString()
-
__toString
-
in file Connection.php, method Doctrine_Connection::__toString()
    returns a string representation of this object
-
__toString
-
in file Schema.php, method Doctrine_Schema::__toString()
-
__unset
-
in file Access.php, method Doctrine_Access::__unset()
    __unset()
-
__unset
-
in file Record.php, method Doctrine_Record::__unset()
-
$_config
-
in file Oracle.php, variable Doctrine_Adapter_Oracle::$_config
    User-provided configuration.
-
$_config
-
in file Db2.php, variable Doctrine_Adapter_Db2::$_config
    User-provided configuration.
-
$_execute_mode
-
in file Db2.php, variable Doctrine_Adapter_Db2::$_execute_mode
    Execution mode
-
$_execute_mode
-
in file Oracle.php, variable Doctrine_Adapter_Oracle::$_execute_mode
-
$_lastInsertTable
-
in file Db2.php, variable Doctrine_Adapter_Db2::$_lastInsertTable
    Table name of the last accessed table for an insert operation This is a DB2-Adapter-specific member variable with the utmost probability you might not find it in other adapters...
-
_beginTransaction
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_beginTransaction()
    Leave autocommit mode and begin a transaction.
-
_beginTransaction
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_beginTransaction()
    Begin a transaction.
-
_beginTransaction
-
in file Db2.php, method Doctrine_Adapter_Db2::_beginTransaction()
    Begin a transaction.
-
_commit
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_commit()
    Commit a transaction and return to autocommit mode.
-
_commit
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_commit()
    Commit a transaction.
-
_commit
-
in file Db2.php, method Doctrine_Adapter_Db2::_commit()
    Commit a transaction.
-
_connect
-
in file Db2.php, method Doctrine_Adapter_Db2::_connect()
    Creates a connection resource.
-
_connect
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_connect()
    Creates a connection to the database.
-
_connect
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_connect()
    Creates a connection resource.
-
_getExecuteMode
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_getExecuteMode()
-
_getExecuteMode
-
in file Db2.php, method Doctrine_Adapter_Db2::_getExecuteMode()
    Gets the execution mode
-
_quote
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_quote()
    Quote a raw string.
-
_quote
-
in file Db2.php, method Doctrine_Adapter_Db2::_quote()
    Quote a raw string.
-
_rollBack
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_rollBack()
    Roll back a transaction and return to autocommit mode.
-
_rollBack
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::_rollBack()
    Roll-back a transaction.
-
_rollBack
-
in file Db2.php, method Doctrine_Adapter_Db2::_rollBack()
    Rollback a transaction.
-
_setExecuteMode
-
in file Oracle.php, method Doctrine_Adapter_Oracle::_setExecuteMode()
-
_setExecuteMode
-
in file Db2.php, method Doctrine_Adapter_Db2::_setExecuteMode()
-
__construct
-
in file Mock.php, method Doctrine_Adapter_Mock::__construct()
-
__construct
-
in file Oracle.php, method Doctrine_Adapter_Oracle::__construct()
    Constructor.
-
__construct
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::__construct()
-
__construct
-
in file Db2.php, method Doctrine_Adapter_Db2::__construct()
    Constructor.
-
$_data
-
in file Cache.php, variable Doctrine_Cache::$_data
-
$_driver
-
in file Cache.php, variable Doctrine_Cache::$_driver
-
$_memcache
-
in file Memcache.php, variable Doctrine_Cache_Memcache::$_memcache
-
$_options
-
in file Cache.php, variable Doctrine_Cache::$_options
-
$_options
-
in file Driver.php, variable Doctrine_Cache_Driver::$_options
-
$_queries
-
in file Cache.php, variable Doctrine_Cache::$_queries
-
$_success
-
in file Cache.php, variable Doctrine_Cache::$_success
-
__construct
-
in file Memcache.php, method Doctrine_Cache_Memcache::__construct()
    constructor
-
__construct
-
in file Apc.php, method Doctrine_Cache_Apc::__construct()
    constructor
-
__construct
-
in file Driver.php, method Doctrine_Cache_Driver::__construct()
    constructor
-
__construct
-
in file Cache.php, method Doctrine_Cache::__construct()
    constructor
-
__construct
-
in file Db.php, method Doctrine_Cache_Db::__construct()
    constructor
-
-
- -
-
a
-
[Top]
-
-
-
-

a

-
-
$ACTION_CASCADE
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_CASCADE
    ON UPDATE or ON DELETE action
-
$ACTION_NO_ACTION
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_NO_ACTION
    ON UPDATE or ON DELETE action
-
$ACTION_RESTRICT
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_RESTRICT
    ON UPDATE or ON DELETE action
-
$ACTION_SET_DEFAULT
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_SET_DEFAULT
    ON UPDATE or ON DELETE action
-
$ACTION_SET_NULL
-
in file Relation.php, variable Doctrine_Schema_Relation::$ACTION_SET_NULL
    ON UPDATE or ON DELETE action
-
$aggregateMap
-
in file Hydrate.php, variable Doctrine_Hydrate::$aggregateMap
-
$attributes
-
in file Configurable.php, variable Doctrine_Configurable::$attributes
-
$availableDrivers
-
in file Connection.php, variable Doctrine_Connection::$availableDrivers
-
acos
-
in file Driver.php, method Doctrine_Expression_Driver::acos()
    returns arcus cosine SQL string
-
actAs
-
in file Abstract.php, method Doctrine_Record_Abstract::actAs()
    actAs loads a given plugin
-
add
-
in file Chain.php, method Doctrine_Query_Filter_Chain::add()
    add
-
add
-
in file Chain.php, method Doctrine_Record_Listener_Chain::add()
    add adds a listener to the chain of listeners
-
add
-
in file Chain.php, method Doctrine_EventListener_Chain::add()
    add adds a listener to the chain of listeners
-
add
-
in file Repository.php, method Doctrine_Table_Repository::add()
    add
-
add
-
in file Reporter.php, method Doctrine_Export_Reporter::add()
-
add
-
in file Dir.php, method Doctrine_Search_Indexer_Dir::add()
-
add
-
in file Collection.php, method Doctrine_Collection::add()
    adds a record to collection
-
add
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::add()
    Adds an error to the stack.
-
add
-
in file Driver.php, method Doctrine_Expression_Driver::add()
    Returns the SQL to add values or expressions together.
-
addCheckConstraint
-
in file Table.php, method Doctrine_Table::addCheckConstraint()
    addCheckConstraint
-
addChild
-
in file Interface.php, method Doctrine_Node_Interface::addChild()
    adds node as last child of record
-
addChild
-
in file NestedSet.php, method Doctrine_Node_NestedSet::addChild()
    adds node as last child of record
-
addCollection
-
in file Transaction.php, method Doctrine_Transaction::addCollection()
    addCollection adds a collection in the internal array of collections
-
addColumn
-
in file Table.php, method Doctrine_Schema_Table::addColumn()
-
addComponent
-
in file Scorer.php, method Doctrine_Search_Scorer::addComponent()
-
addComponent
-
in file RawSql.php, method Doctrine_RawSql::addComponent()
    addComponent
-
addDatabase
-
in file Schema.php, method Doctrine_Schema::addDatabase()
-
addDelete
-
in file Transaction.php, method Doctrine_Transaction::addDelete()
    addDelete adds record into pending delete list
-
addDeleteAction
-
in file Manager.php, method Doctrine_Manager::addDeleteAction()
-
addEnumParam
-
in file Query.php, method Doctrine_Query::addEnumParam()
    addEnumParam sets input parameter as an enumerated parameter
-
addForeignKey
-
in file Table.php, method Doctrine_Table::addForeignKey()
    addForeignKey
-
addFrom
-
in file Abstract.php, method Doctrine_Query_Abstract::addFrom()
    addFrom adds fields to the FROM part of the query
-
addGroupBy
-
in file Abstract.php, method Doctrine_Query_Abstract::addGroupBy()
    addGroupBy adds fields to the GROUP BY part of the query
-
addHaving
-
in file Abstract.php, method Doctrine_Query_Abstract::addHaving()
    addHaving adds conditions to the HAVING part of the query
-
addIndex
-
in file Table.php, method Doctrine_Table::addIndex()
    addIndex
-
addInvalid
-
in file Transaction.php, method Doctrine_Transaction::addInvalid()
    addInvalid adds record into invalid records list
-
addListener
-
in file Configurable.php, method Doctrine_Configurable::addListener()
    addListener
-
addListener
-
in file Abstract.php, method Doctrine_Record_Abstract::addListener()
    addListener
-
addOrderBy
-
in file Abstract.php, method Doctrine_Query_Abstract::addOrderBy()
    addOrderBy adds fields to the ORDER BY part of the query
-
addPendingJoinCondition
-
in file Query.php, method Doctrine_Query::addPendingJoinCondition()
    addPendingJoinCondition
-
addQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::addQueryPart()
    addQueryPart adds a query part in the query part array
-
addRecord
-
in file Table.php, method Doctrine_Table::addRecord()
    addRecord adds a record to identity map
-
addRecordListener
-
in file Configurable.php, method Doctrine_Configurable::addRecordListener()
    addRecordListener
-
addSelect
-
in file Abstract.php, method Doctrine_Query_Abstract::addSelect()
    addSelect adds fields to the SELECT part of the query
-
addTable
-
in file Connection.php, method Doctrine_Connection::addTable()
    addTable adds a Doctrine_Table object into connection registry
-
addTable
-
in file Database.php, method Doctrine_Schema_Database::addTable()
-
addTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::addTableAlias()
    addTableAlias adds an alias for table and associates it with given component alias
-
addTemplate
-
in file Table.php, method Doctrine_Table::addTemplate()
-
addUpdateAction
-
in file Manager.php, method Doctrine_Manager::addUpdateAction()
-
addWhere
-
in file Abstract.php, method Doctrine_Query_Abstract::addWhere()
    addWhere adds conditions to the WHERE part of the query
-
advanceIndex
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::advanceIndex()
-
age
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::age()
    PostgreSQLs AGE(<timestamp1> [, <timestamp2>]) function.
-
alterTable
-
in file Mssql.php, method Doctrine_Export_Mssql::alterTable()
    alter an existing table
-
alterTable
-
in file Pgsql.php, method Doctrine_Export_Pgsql::alterTable()
    alter an existing table
-
alterTable
-
in file Export.php, method Doctrine_Export::alterTable()
    alter an existing table (this method is implemented by the drivers)
-
alterTable
-
in file Frontbase.php, method Doctrine_Export_Frontbase::alterTable()
    alter an existing table
-
alterTable
-
in file Oracle.php, method Doctrine_Export_Oracle::alterTable()
    alter an existing table
-
alterTable
-
in file Firebird.php, method Doctrine_Export_Firebird::alterTable()
    alter an existing table
-
alterTableSql
-
in file Mysql.php, method Doctrine_Export_Mysql::alterTableSql()
    alter an existing table
-
alterTableSql
-
in file Export.php, method Doctrine_Export::alterTableSql()
    generates the sql for altering an existing table (this method is implemented by the drivers)
-
analyze
-
in file Standard.php, method Doctrine_Search_Analyzer_Standard::analyze()
-
analyze
-
in file Interface.php, method Doctrine_Search_Analyzer_Interface::analyze()
-
analyze
-
in file Search.php, method Doctrine_Search::analyze()
-
analyze
-
in file Analyzer.php, method Doctrine_Search_Analyzer::analyze()
-
applyInheritance
-
in file Table.php, method Doctrine_Table::applyInheritance()
    applyInheritance
-
applyInheritance
-
in file Hydrate.php, method Doctrine_Hydrate::applyInheritance()
    applyInheritance applies column aggregation inheritance to DQL / SQL query
-
assignDefaultValues
-
in file Record.php, method Doctrine_Record::assignDefaultValues()
    setDefaultValues sets the default values for records internal data
-
assignDefaultValues
-
in file Filter.php, method Doctrine_Record_Filter::assignDefaultValues()
    setDefaultValues sets the default values for records internal data
-
assignIdentifier
-
in file Record.php, method Doctrine_Record::assignIdentifier()
    assignIdentifier
-
attribute
-
in file Abstract.php, method Doctrine_Record_Abstract::attribute()
    attribute sets or retrieves an option
-
ATTR_ACCESSORS
-
in file Doctrine.php, class constant Doctrine::ATTR_ACCESSORS
-
ATTR_ACCESSOR_PREFIX_GET
-
in file Doctrine.php, class constant Doctrine::ATTR_ACCESSOR_PREFIX_GET
-
ATTR_ACCESSOR_PREFIX_SET
-
in file Doctrine.php, class constant Doctrine::ATTR_ACCESSOR_PREFIX_SET
-
ATTR_AUTOCOMMIT
-
in file Doctrine.php, class constant Doctrine::ATTR_AUTOCOMMIT
    PDO derived attributes
-
ATTR_AUTOCOMMIT
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_AUTOCOMMIT
-
ATTR_AUTO_LENGTH_VLD
-
in file Doctrine.php, class constant Doctrine::ATTR_AUTO_LENGTH_VLD
-
ATTR_AUTO_TYPE_VLD
-
in file Doctrine.php, class constant Doctrine::ATTR_AUTO_TYPE_VLD
-
ATTR_BATCH_SIZE
-
in file Doctrine.php, class constant Doctrine::ATTR_BATCH_SIZE
-
ATTR_CACHE
-
in file Doctrine.php, class constant Doctrine::ATTR_CACHE
-
ATTR_CACHE_LIFESPAN
-
in file Doctrine.php, class constant Doctrine::ATTR_CACHE_LIFESPAN
-
ATTR_CASE
-
in file Doctrine.php, class constant Doctrine::ATTR_CASE
-
ATTR_CASE
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CASE
-
ATTR_CLIENT_VERSION
-
in file Doctrine.php, class constant Doctrine::ATTR_CLIENT_VERSION
-
ATTR_CLIENT_VERSION
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CLIENT_VERSION
-
ATTR_CMPNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_CMPNAME_FORMAT
-
ATTR_COLL_KEY
-
in file Doctrine.php, class constant Doctrine::ATTR_COLL_KEY
-
ATTR_COLL_LIMIT
-
in file Doctrine.php, class constant Doctrine::ATTR_COLL_LIMIT
-
ATTR_CONNECTION_STATUS
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CONNECTION_STATUS
-
ATTR_CONNECTION_STATUS
-
in file Doctrine.php, class constant Doctrine::ATTR_CONNECTION_STATUS
-
ATTR_CREATE_TABLES
-
in file Doctrine.php, class constant Doctrine::ATTR_CREATE_TABLES
-
ATTR_CURSOR
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CURSOR
-
ATTR_CURSOR
-
in file Doctrine.php, class constant Doctrine::ATTR_CURSOR
-
ATTR_CURSOR_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_CURSOR_NAME
-
ATTR_CURSOR_NAME
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_CURSOR_NAME
-
ATTR_DBNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_DBNAME_FORMAT
-
ATTR_DECIMAL_PLACES
-
in file Doctrine.php, class constant Doctrine::ATTR_DECIMAL_PLACES
-
ATTR_DEFAULT_SEQUENCE
-
in file Doctrine.php, class constant Doctrine::ATTR_DEFAULT_SEQUENCE
-
ATTR_DEFAULT_TABLE_TYPE
-
in file Doctrine.php, class constant Doctrine::ATTR_DEFAULT_TABLE_TYPE
-
ATTR_DEF_TABLESPACE
-
in file Doctrine.php, class constant Doctrine::ATTR_DEF_TABLESPACE
-
ATTR_DEF_TEXT_LENGTH
-
in file Doctrine.php, class constant Doctrine::ATTR_DEF_TEXT_LENGTH
-
ATTR_DEF_VARCHAR_LENGTH
-
in file Doctrine.php, class constant Doctrine::ATTR_DEF_VARCHAR_LENGTH
-
ATTR_DRIVER_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_DRIVER_NAME
-
ATTR_DRIVER_NAME
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_DRIVER_NAME
-
ATTR_EMULATE_DATABASE
-
in file Doctrine.php, class constant Doctrine::ATTR_EMULATE_DATABASE
-
ATTR_ERRMODE
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_ERRMODE
-
ATTR_ERRMODE
-
in file Doctrine.php, class constant Doctrine::ATTR_ERRMODE
-
ATTR_EXPORT
-
in file Doctrine.php, class constant Doctrine::ATTR_EXPORT
-
ATTR_FETCHMODE
-
in file Doctrine.php, class constant Doctrine::ATTR_FETCHMODE
    TODO: REMOVE THE FOLLOWING CONSTANTS AND UPDATE THE DOCS !
-
ATTR_FETCH_CATALOG_NAMES
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_FETCH_CATALOG_NAMES
-
ATTR_FETCH_CATALOG_NAMES
-
in file Doctrine.php, class constant Doctrine::ATTR_FETCH_CATALOG_NAMES
-
ATTR_FETCH_TABLE_NAMES
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_FETCH_TABLE_NAMES
-
ATTR_FETCH_TABLE_NAMES
-
in file Doctrine.php, class constant Doctrine::ATTR_FETCH_TABLE_NAMES
-
ATTR_FIELD_CASE
-
in file Doctrine.php, class constant Doctrine::ATTR_FIELD_CASE
-
ATTR_IDXNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_IDXNAME_FORMAT
-
ATTR_LISTENER
-
in file Doctrine.php, class constant Doctrine::ATTR_LISTENER
    Doctrine constants
-
ATTR_LOAD_REFERENCES
-
in file Doctrine.php, class constant Doctrine::ATTR_LOAD_REFERENCES
-
ATTR_LOCKMODE
-
in file Doctrine.php, class constant Doctrine::ATTR_LOCKMODE
-
ATTR_MAX_COLUMN_LEN
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_MAX_COLUMN_LEN
-
ATTR_MAX_COLUMN_LEN
-
in file Doctrine.php, class constant Doctrine::ATTR_MAX_COLUMN_LEN
-
ATTR_NAME_PREFIX
-
in file Doctrine.php, class constant Doctrine::ATTR_NAME_PREFIX
-
ATTR_NS_GAP_DECREASE_EXP
-
in file Doctrine.php, class constant Doctrine::ATTR_NS_GAP_DECREASE_EXP
-
ATTR_NS_GAP_SIZE
-
in file Doctrine.php, class constant Doctrine::ATTR_NS_GAP_SIZE
-
ATTR_NS_ROOT_COLUMN_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_NS_ROOT_COLUMN_NAME
    NESTED SET CONSTANTS
-
ATTR_ORACLE_NULLS
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_ORACLE_NULLS
-
ATTR_ORACLE_NULLS
-
in file Doctrine.php, class constant Doctrine::ATTR_ORACLE_NULLS
-
ATTR_PERSISTENT
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_PERSISTENT
-
ATTR_PERSISTENT
-
in file Doctrine.php, class constant Doctrine::ATTR_PERSISTENT
-
ATTR_PORTABILITY
-
in file Doctrine.php, class constant Doctrine::ATTR_PORTABILITY
-
ATTR_PREFETCH
-
in file Doctrine.php, class constant Doctrine::ATTR_PREFETCH
-
ATTR_PREFETCH
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_PREFETCH
-
ATTR_QUERY_LIMIT
-
in file Doctrine.php, class constant Doctrine::ATTR_QUERY_LIMIT
-
ATTR_QUOTE_IDENTIFIER
-
in file Doctrine.php, class constant Doctrine::ATTR_QUOTE_IDENTIFIER
-
ATTR_RECORD_LISTENER
-
in file Doctrine.php, class constant Doctrine::ATTR_RECORD_LISTENER
-
ATTR_SEQCOL_NAME
-
in file Doctrine.php, class constant Doctrine::ATTR_SEQCOL_NAME
-
ATTR_SEQNAME_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_SEQNAME_FORMAT
-
ATTR_SERVER_INFO
-
in file Doctrine.php, class constant Doctrine::ATTR_SERVER_INFO
-
ATTR_SERVER_INFO
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_SERVER_INFO
-
ATTR_SERVER_VERSION
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_SERVER_VERSION
-
ATTR_SERVER_VERSION
-
in file Doctrine.php, class constant Doctrine::ATTR_SERVER_VERSION
-
ATTR_STATEMENT_CLASS
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_STATEMENT_CLASS
-
ATTR_STATEMENT_CLASS
-
in file Doctrine.php, class constant Doctrine::ATTR_STATEMENT_CLASS
-
ATTR_STRINGIFY_FETCHES
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_STRINGIFY_FETCHES
-
ATTR_STRINGIFY_FETCHES
-
in file Doctrine.php, class constant Doctrine::ATTR_STRINGIFY_FETCHES
-
ATTR_TBLCLASS_FORMAT
-
in file Doctrine.php, class constant Doctrine::ATTR_TBLCLASS_FORMAT
-
ATTR_THROW_EXCEPTIONS
-
in file Doctrine.php, class constant Doctrine::ATTR_THROW_EXCEPTIONS
-
ATTR_TIMEOUT
-
in file Adapter.php, class constant Doctrine_Adapter::ATTR_TIMEOUT
-
ATTR_TIMEOUT
-
in file Doctrine.php, class constant Doctrine::ATTR_TIMEOUT
-
ATTR_VLD
-
in file Doctrine.php, class constant Doctrine::ATTR_VLD
-
autoload
-
in file Doctrine.php, method Doctrine::autoload()
    simple autoload function returns true if the class was loaded, otherwise false
-
avg
-
in file Driver.php, method Doctrine_Expression_Driver::avg()
    Returns the average value of a column
-
Access.php
-
procedural page Access.php
-
Adapter.php
-
procedural page Adapter.php
-
AuditLog.php
-
procedural page AuditLog.php
-
Array.php
-
procedural page Array.php
-
AdjacencyList.php
-
procedural page AdjacencyList.php
-
Abstract.php
-
procedural page Abstract.php
-
Abstract.php
-
procedural page Abstract.php
-
Association.php
-
procedural page Association.php
-
Analyzer.php
-
procedural page Analyzer.php
-
AdjacencyList.php
-
procedural page AdjacencyList.php
-
addQuery
-
in file Mock.php, method Doctrine_Adapter_Mock::addQuery()
-
add
-
in file Cache.php, method Doctrine_Cache::add()
    add adds a query to internal query stack
-
appendStats
-
in file Cache.php, method Doctrine_Cache::appendStats()
    appendStats
-
Apc.php
-
procedural page Apc.php
-
Array.php
-
procedural page Array.php
-
-
- -
-
b
-
[Top]
-
-
-
-

b

-
-
basicMath
-
in file Driver.php, method Doctrine_Expression_Driver::basicMath()
    Returns the SQL to perform the same mathematical operation over an array of values or expressions.
-
beginTransaction
-
in file Connection.php, method Doctrine_Connection::beginTransaction()
    beginTransaction Start a transaction or set a savepoint.
-
beginTransaction
-
in file Interface.php, method Doctrine_Adapter_Interface::beginTransaction()
-
beginTransaction
-
in file Transaction.php, method Doctrine_Transaction::beginTransaction()
    beginTransaction Start a transaction or set a savepoint.
-
between
-
in file Driver.php, method Doctrine_Expression_Driver::between()
    Returns SQL that checks if an expression evaluates to a value between two values.
-
bind
-
in file Parser.php, method Doctrine_Relation_Parser::bind()
    binds a relation
-
bind
-
in file Table.php, method Doctrine_Table::bind()
-
bindColumn
-
in file Statement.php, method Doctrine_Connection_Statement::bindColumn()
    bindColumn Bind a column to a PHP variable
-
bindColumn
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::bindColumn()
    bindColumn Bind a column to a PHP variable
-
bindComponent
-
in file Manager.php, method Doctrine_Manager::bindComponent()
    bindComponent
-
bindParam
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::bindParam()
    bindParam
-
bindParam
-
in file Statement.php, method Doctrine_Connection_Statement::bindParam()
    bindParam
-
bindValue
-
in file Statement.php, method Doctrine_Adapter_Statement::bindValue()
-
bindValue
-
in file Statement.php, method Doctrine_Connection_Statement::bindValue()
    bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
bindValue
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::bindValue()
    bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
bracketExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::bracketExplode()
    bracketExplode
-
bracketTrim
-
in file Tokenizer.php, method Doctrine_Tokenizer::bracketTrim()
    trims brackets
-
build
-
in file Schema.php, method Doctrine_Export_Schema::build()
    build
-
build
-
in file Xml.php, method Doctrine_Export_Schema_Xml::build()
    build
-
build
-
in file Yml.php, method Doctrine_Export_Schema_Yml::build()
    build
-
buildColumnDefinition
-
in file Builder.php, method Doctrine_Import_Builder::buildColumnDefinition()
-
buildDefinition
-
in file Search.php, method Doctrine_Search::buildDefinition()
-
buildDefinition
-
in file Builder.php, method Doctrine_Import_Builder::buildDefinition()
-
buildDefinition
-
in file AuditLog.php, method Doctrine_AuditLog::buildDefinition()
-
buildFlushTree
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::buildFlushTree()
    buildFlushTree builds a flush tree that is used in transactions
-
buildFromPart
-
in file Query.php, method Doctrine_Query::buildFromPart()
    buildFromPart builds the from part of the query and returns it
-
buildIntegrityRelationQuery
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::buildIntegrityRelationQuery()
-
buildIntegrityRelations
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::buildIntegrityRelations()
-
buildRecord
-
in file Builder.php, method Doctrine_Import_Builder::buildRecord()
-
buildRelationDefinition
-
in file Builder.php, method Doctrine_Import_Builder::buildRelationDefinition()
-
buildSchema
-
in file Schema.php, method Doctrine_Export_Schema::buildSchema()
    buildSchema
-
bulkDelete
-
in file Transaction.php, method Doctrine_Transaction::bulkDelete()
    bulkDelete deletes all records from the pending delete list
-
BaseClass.php
-
procedural page BaseClass.php
-
Builder.php
-
procedural page Builder.php
-
beginTransaction
-
in file Mock.php, method Doctrine_Adapter_Mock::beginTransaction()
-
bindColumn
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::bindColumn()
    bindColumn Bind a column to a PHP variable
-
bindParam
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::bindParam()
    bindParam
-
bindValue
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::bindValue()
    bindValue Binds a value to a corresponding named or question mark placeholder in the SQL statement that was use to prepare the statement.
-
-
- -
-
c
-
[Top]
-
-
-
-

c

-
-
$children
-
in file Object.php, variable Doctrine_Schema_Object::$children
-
$childs
-
in file Database.php, variable Doctrine_Schema_Database::$childs
-
$childs
-
in file Schema.php, variable Doctrine_Schema::$childs
    Holds any number of databases contained in the schema
-
$collection
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$collection
-
$collection
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$collection
-
$columnAliases
-
in file Table.php, variable Doctrine_Table::$columnAliases
-
$columnCount
-
in file Table.php, variable Doctrine_Table::$columnCount
-
$columns
-
in file Table.php, variable Doctrine_Table::$columns
-
$condition
-
in file Parser.php, variable Doctrine_Hook_Parser::$condition
-
$conn
-
in file Pessimistic.php, variable Doctrine_Locking_Manager_Pessimistic::$conn
    The conn that is used by the locking manager
-
$conn
-
in file Module.php, variable Doctrine_Connection_Module::$conn
-
$conn
-
in file View.php, variable Doctrine_View::$conn
-
$conn
-
in file Table.php, variable Doctrine_Table::$conn
-
$count
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$count
-
$count
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$count
-
$countries
-
in file Country.php, variable Doctrine_Validator_Country::$countries
-
$curNode
-
in file PreOrderIterator.php, variable Doctrine_Node_MaterializedPath_PreOrderIterator::$curNode
-
$curNode
-
in file PostOrderIterator.php, variable Doctrine_Node_MaterializedPath_PostOrderIterator::$curNode
-
$curNode
-
in file LevelOrderIterator.php, variable Doctrine_Node_MaterializedPath_LevelOrderIterator::$curNode
-
call
-
in file Record.php, method Doctrine_Record::call()
    call
-
CASE_LOWER
-
in file Adapter.php, class constant Doctrine_Adapter::CASE_LOWER
-
CASE_LOWER
-
in file Doctrine.php, class constant Doctrine::CASE_LOWER
    PDO derived constants
-
CASE_NATURAL
-
in file Adapter.php, class constant Doctrine_Adapter::CASE_NATURAL
-
CASE_NATURAL
-
in file Doctrine.php, class constant Doctrine::CASE_NATURAL
-
CASE_UPPER
-
in file Doctrine.php, class constant Doctrine::CASE_UPPER
-
CASE_UPPER
-
in file Adapter.php, class constant Doctrine_Adapter::CASE_UPPER
-
check
-
in file Abstract.php, method Doctrine_Record_Abstract::check()
    check adds a check constraint
-
checkSequence
-
in file Mssql.php, method Doctrine_Sequence_Mssql::checkSequence()
    Checks if there's a sequence that exists.
-
checkSequence
-
in file Mssql.php, method Doctrine_Connection_Mssql::checkSequence()
    Checks if there's a sequence that exists.
-
checkSupportedChanges
-
in file Firebird.php, method Doctrine_Export_Firebird::checkSupportedChanges()
    Check if planned changes are supported
-
classify
-
in file Doctrine.php, method Doctrine::classify()
    returns class name from table name
-
clauseExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::clauseExplode()
    clauseExplode
-
cleanData
-
in file Record.php, method Doctrine_Record::cleanData()
    cleanData
-
clear
-
in file Connection.php, method Doctrine_Connection::clear()
    clear clears all repositories
-
clear
-
in file Hydrate.php, method Doctrine_Hydrate::clear()
    clear resets all the variables
-
clear
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::clear()
    Removes all errors from the stack.
-
clear
-
in file Table.php, method Doctrine_Table::clear()
    clear clears the first level cache (identityMap)
-
close
-
in file Connection.php, method Doctrine_Connection::close()
    close closes the connection
-
closeConnection
-
in file Manager.php, method Doctrine_Manager::closeConnection()
    closes the connection
-
closeCursor
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::closeCursor()
    closeCursor Closes the cursor, enabling the statement to be executed again.
-
closeCursor
-
in file Statement.php, method Doctrine_Connection_Statement::closeCursor()
    closeCursor Closes the cursor, enabling the statement to be executed again.
-
columnCount
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::columnCount()
    columnCount Returns the number of columns in the result set
-
columnCount
-
in file Statement.php, method Doctrine_Adapter_Statement::columnCount()
-
columnCount
-
in file Record.php, method Doctrine_Record::columnCount()
    alias for count()
-
columnCount
-
in file Statement.php, method Doctrine_Connection_Statement::columnCount()
    columnCount Returns the number of columns in the result set
-
commit
-
in file Interface.php, method Doctrine_Adapter_Interface::commit()
-
commit
-
in file Connection.php, method Doctrine_Connection::commit()
    commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail.
-
commit
-
in file Transaction.php, method Doctrine_Transaction::commit()
    commit Commit the database changes done during a transaction that is in progress or release a savepoint. This function may only be called when auto-committing is disabled, otherwise it will fail.
-
compareDefinition
-
in file DataDict.php, method Doctrine_DataDict::compareDefinition()
    Obtain an array of changes that may need to applied
-
compile
-
in file Compiler.php, method Doctrine_Compiler::compile()
    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
-
compile
-
in file Doctrine.php, method Doctrine::compile()
    compile
-
completeAssocDefinition
-
in file Parser.php, method Doctrine_Relation_Parser::completeAssocDefinition()
    Completes the given association definition
-
completeDefinition
-
in file Parser.php, method Doctrine_Relation_Parser::completeDefinition()
    Completes the given definition
-
concat
-
in file Mssql.php, method Doctrine_Expression_Mssql::concat()
    Returns string to concatenate two or more string parameters
-
concat
-
in file Driver.php, method Doctrine_Expression_Driver::concat()
    Returns a series of strings concatinated
-
concat
-
in file Oracle.php, method Doctrine_Expression_Oracle::concat()
    Returns a series of strings concatinated
-
concat
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::concat()
-
concatImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::concatImpl()
    Returns a concatenation of the data that SQLite's concat() function receives.
-
connect
-
in file Connection.php, method Doctrine_Connection::connect()
    connect connects into database
-
connect
-
in file Sqlite.php, method Doctrine_Connection_Sqlite::connect()
    initializes database functions missing in sqlite
-
connection
-
in file Manager.php, method Doctrine_Manager::connection()
    connection
-
CONN_CLOSE
-
in file Event.php, class constant Doctrine_Event::CONN_CLOSE
-
CONN_CONNECT
-
in file Event.php, class constant Doctrine_Event::CONN_CONNECT
-
CONN_ERROR
-
in file Event.php, class constant Doctrine_Event::CONN_ERROR
-
CONN_EXEC
-
in file Event.php, class constant Doctrine_Event::CONN_EXEC
-
CONN_PREPARE
-
in file Event.php, class constant Doctrine_Event::CONN_PREPARE
-
CONN_QUERY
-
in file Event.php, class constant Doctrine_Event::CONN_QUERY
    CONNECTION EVENT CODES
-
construct
-
in file Record.php, method Doctrine_Record::construct()
    construct Empty tempalte method to provide concrete Record classes with the possibility to hook into the constructor procedure
-
contains
-
in file Manager.php, method Doctrine_Manager::contains()
    contains whether or not the manager contains specified connection
-
contains
-
in file Collection.php, method Doctrine_Collection::contains()
    contains whether or not this collection contains a specified element
-
contains
-
in file Column.php, method Doctrine_Column::contains()
    contains
-
contains
-
in file Repository.php, method Doctrine_Table_Repository::contains()
    contains
-
contains
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::contains()
    Enter description here...
-
contains
-
in file Record.php, method Doctrine_Record::contains()
    contains
-
contains
-
in file Object.php, method Doctrine_Schema_Object::contains()
-
convertBooleans
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::convertBooleans()
    convertBoolean some drivers need the boolean values to be converted into integers when using DQL API
-
convertBooleans
-
in file Connection.php, method Doctrine_Connection::convertBooleans()
    convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
-
convertBooleans
-
in file Formatter.php, method Doctrine_Formatter::convertBooleans()
    convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
-
convertEnums
-
in file Query.php, method Doctrine_Query::convertEnums()
    convertEnums convert enum parameters to their integer equivalents
-
convertEnums
-
in file Hydrate.php, method Doctrine_Hydrate::convertEnums()
-
copy
-
in file Record.php, method Doctrine_Record::copy()
    copy returns a copy of this object
-
copy
-
in file Query.php, method Doctrine_Query::copy()
-
copyAliases
-
in file Hydrate.php, method Doctrine_Hydrate::copyAliases()
    copyAliases copy aliases from another Hydrate object
-
copyDeep
-
in file Record.php, method Doctrine_Record::copyDeep()
    copyDeep returns a copy of this object and all its related objects
-
coreSetRelated
-
in file Record.php, method Doctrine_Record::coreSetRelated()
-
count
-
in file Manager.php, method Doctrine_Manager::count()
    count returns the number of opened connections
-
count
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::count()
    Enter description here...
-
count
-
in file Table.php, method Doctrine_Table::count()
    count
-
count
-
in file Collection.php, method Doctrine_Collection::count()
    count this class implements interface countable returns the number of records in this collection
-
count
-
in file Connection.php, method Doctrine_Connection::count()
    returns the count of initialized table objects
-
count
-
in file Exception.php, method Doctrine_Validator_Exception::count()
-
count
-
in file Driver.php, method Doctrine_Expression_Driver::count()
    Returns the number of rows (without a NULL value) of a column
-
count
-
in file Profiler.php, method Doctrine_Connection_Profiler::count()
    count
-
count
-
in file Column.php, method Doctrine_Column::count()
    count
-
count
-
in file Record.php, method Doctrine_Record::count()
    count this class implements countable interface
-
count
-
in file Repository.php, method Doctrine_Table_Repository::count()
    count
-
count
-
in file Query.php, method Doctrine_Query::count()
    count fetches the count of the query
-
count
-
in file Object.php, method Doctrine_Schema_Object::count()
-
count
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::count()
-
CREATE
-
in file View.php, class constant Doctrine_View::CREATE
    SQL CREATE constant
-
create
-
in file View.php, method Doctrine_View::create()
    create creates this view
-
create
-
in file Query.php, method Doctrine_Query::create()
    create returns a new Doctrine_Query object
-
create
-
in file Connection.php, method Doctrine_Connection::create()
    create creates a record
-
create
-
in file Table.php, method Doctrine_Table::create()
    create creates a new record
-
CREATE
-
in file Hydrate.php, class constant Doctrine_Hydrate::CREATE
    constant for CREATE queries
-
createConstraint
-
in file Export.php, method Doctrine_Export::createConstraint()
    create a constraint on a table
-
createConstraint
-
in file Firebird.php, method Doctrine_Export_Firebird::createConstraint()
    create a constraint on a table
-
createConstraintSql
-
in file Export.php, method Doctrine_Export::createConstraintSql()
    create a constraint on a table
-
createDatabase
-
in file Oracle.php, method Doctrine_Export_Oracle::createDatabase()
    create a new database
-
createDatabase
-
in file Mssql.php, method Doctrine_Export_Mssql::createDatabase()
    create a new database
-
createDatabase
-
in file Firebird.php, method Doctrine_Export_Firebird::createDatabase()
    create a new database
-
createDatabase
-
in file Export.php, method Doctrine_Export::createDatabase()
    create a new database (this method is implemented by the drivers)
-
createDatabaseSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createDatabaseSql()
    create a new database
-
createDatabaseSql
-
in file Export.php, method Doctrine_Export::createDatabaseSql()
    create a new database (this method is implemented by the drivers)
-
createDatabaseSql
-
in file Mysql.php, method Doctrine_Export_Mysql::createDatabaseSql()
    create a new database
-
createDatabaseSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::createDatabaseSql()
    create a new database
-
createForeignKeySql
-
in file Export.php, method Doctrine_Export::createForeignKeySql()
    createForeignKeySql
-
createForeignKeySql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createForeignKeySql()
    createForeignKeySql
-
createIndex
-
in file Export.php, method Doctrine_Export::createIndex()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Firebird.php, method Doctrine_Export_Firebird::createIndexSql()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Sqlite.php, method Doctrine_Export_Sqlite::createIndexSql()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Export.php, method Doctrine_Export::createIndexSql()
    Get the stucture of a field into an array
-
createIndexSql
-
in file Mysql.php, method Doctrine_Export_Mysql::createIndexSql()
    Get the stucture of a field into an array
-
createQuery
-
in file Table.php, method Doctrine_Table::createQuery()
    createQuery creates a new Doctrine_Query object and adds the component name of this table as the query 'from' part
-
createRoot
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::createRoot()
    creates root node from given record or from a new record
-
createRoot
-
in file Interface.php, method Doctrine_Tree_Interface::createRoot()
    creates root node from given record or from a new record
-
createSavePoint
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::createSavePoint()
    createSavepoint creates a new savepoint
-
createSavePoint
-
in file Transaction.php, method Doctrine_Transaction::createSavePoint()
    releaseSavePoint creates a new savepoint
-
createSavePoint
-
in file Oracle.php, method Doctrine_Transaction_Oracle::createSavePoint()
    createSavepoint creates a new savepoint
-
createSavePoint
-
in file Mysql.php, method Doctrine_Transaction_Mysql::createSavePoint()
    createSavepoint creates a new savepoint
-
createSavePoint
-
in file Firebird.php, method Doctrine_Transaction_Firebird::createSavePoint()
    createSavepoint creates a new savepoint
-
createSequence
-
in file Mysql.php, method Doctrine_Export_Mysql::createSequence()
    create sequence
-
createSequence
-
in file Firebird.php, method Doctrine_Export_Firebird::createSequence()
    create sequence
-
createSequence
-
in file Mssql.php, method Doctrine_Export_Mssql::createSequence()
    create sequence
-
createSequence
-
in file Sqlite.php, method Doctrine_Export_Sqlite::createSequence()
    create sequence
-
createSequence
-
in file Frontbase.php, method Doctrine_Export_Frontbase::createSequence()
    create sequence
-
createSequence
-
in file Export.php, method Doctrine_Export::createSequence()
    create sequence
-
createSequenceSql
-
in file Oracle.php, method Doctrine_Export_Oracle::createSequenceSql()
    create sequence
-
createSequenceSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createSequenceSql()
    return RDBMS specific create sequence statement
-
createSequenceSql
-
in file Export.php, method Doctrine_Export::createSequenceSql()
    return RDBMS specific create sequence statement (this method is implemented by the drivers)
-
createSubquery
-
in file Hydrate.php, method Doctrine_Hydrate::createSubquery()
    createSubquery creates a subquery
-
createTable
-
in file Export.php, method Doctrine_Export::createTable()
    create a new table
-
createTable
-
in file Firebird.php, method Doctrine_Export_Firebird::createTable()
    create a new table
-
createTable
-
in file Oracle.php, method Doctrine_Export_Oracle::createTable()
    create a new table
-
createTableSql
-
in file Export.php, method Doctrine_Export::createTableSql()
    create a new table
-
createTableSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::createTableSql()
    Creates a table.
-
createTableSql
-
in file Mysql.php, method Doctrine_Export_Mysql::createTableSql()
    create a new table
-
createTableSql
-
in file Oracle.php, method Doctrine_Export_Oracle::createTableSql()
    create a new table
-
createTableSql
-
in file Sqlite.php, method Doctrine_Export_Sqlite::createTableSql()
    create a new table
-
current
-
in file Iterator.php, method Doctrine_Record_Iterator::current()
    current
-
current
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::current()
-
current
-
in file Iterator.php, method Doctrine_Collection_Iterator::current()
    returns the current record
-
current
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::current()
-
current
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::current()
    returns the current record
-
current
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::current()
-
currId
-
in file Pgsql.php, method Doctrine_Sequence_Pgsql::currId()
    Returns the current id of a sequence
-
currId
-
in file Sqlite.php, method Doctrine_Sequence_Sqlite::currId()
    Returns the current id of a sequence
-
currID
-
in file Oracle.php, method Doctrine_Sequence_Oracle::currID()
    Returns the current id of a sequence
-
currId
-
in file Mysql.php, method Doctrine_Sequence_Mysql::currId()
    Returns the current id of a sequence
-
currId
-
in file Mssql.php, method Doctrine_Sequence_Mssql::currId()
    Returns the current id of a sequence
-
currId
-
in file Sequence.php, method Doctrine_Sequence::currId()
    Returns the current id of a sequence
-
currId
-
in file Firebird.php, method Doctrine_Sequence_Firebird::currId()
    Returns the current id of a sequence
-
CURSOR_FWDONLY
-
in file Adapter.php, class constant Doctrine_Adapter::CURSOR_FWDONLY
-
CURSOR_FWDONLY
-
in file Doctrine.php, class constant Doctrine::CURSOR_FWDONLY
-
CURSOR_SCROLL
-
in file Adapter.php, class constant Doctrine_Adapter::CURSOR_SCROLL
-
CURSOR_SCROLL
-
in file Doctrine.php, class constant Doctrine::CURSOR_SCROLL
-
Collection.php
-
procedural page Collection.php
-
Column.php
-
procedural page Column.php
-
Compiler.php
-
procedural page Compiler.php
-
Configurable.php
-
procedural page Configurable.php
-
Common.php
-
procedural page Common.php
-
Connection.php
-
procedural page Connection.php
-
Chain.php
-
procedural page Chain.php
-
Complex.php
-
procedural page Complex.php
-
Check.php
-
procedural page Check.php
-
Condition.php
-
procedural page Condition.php
-
Chain.php
-
procedural page Chain.php
-
Chain.php
-
procedural page Chain.php
-
Column.php
-
procedural page Column.php
-
Country.php
-
procedural page Country.php
-
Creditcard.php
-
procedural page Creditcard.php
-
closeConnection
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::closeConnection()
    Force the connection to close.
-
closeConnection
-
in file Oracle.php, method Doctrine_Adapter_Oracle::closeConnection()
    Force the connection to close.
-
closeConnection
-
in file Db2.php, method Doctrine_Adapter_Db2::closeConnection()
    Force the connection to close.
-
closeCursor
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::closeCursor()
    closeCursor Closes the cursor, enabling the statement to be executed again.
-
columnCount
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::columnCount()
    columnCount Returns the number of columns in the result set
-
commit
-
in file Mock.php, method Doctrine_Adapter_Mock::commit()
-
count
-
in file Mock.php, method Doctrine_Adapter_Mock::count()
-
clean
-
in file Cache.php, method Doctrine_Cache::clean()
    save
-
contains
-
in file Apc.php, method Doctrine_Cache_Apc::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Db.php, method Doctrine_Cache_Db::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Interface.php, method Doctrine_Cache_Interface::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Array.php, method Doctrine_Cache_Array::contains()
    Test if a cache is available or not (for the given id)
-
contains
-
in file Memcache.php, method Doctrine_Cache_Memcache::contains()
    Test if a cache is available or not (for the given id)
-
count
-
in file Db.php, method Doctrine_Cache_Db::count()
    count returns the number of cached elements
-
count
-
in file Cache.php, method Doctrine_Cache::count()
    count
-
count
-
in file Array.php, method Doctrine_Cache_Array::count()
    count
-
createTable
-
in file Db.php, method Doctrine_Cache_Db::createTable()
    Creates the cache table.
-
Cache.php
-
procedural page Cache.php
-
-
- -
-
d
-
[Top]
-
-
-
-

d

-
-
$data
-
in file Collection.php, variable Doctrine_Collection::$data
-
$data
-
in file Table.php, variable Doctrine_Table::$data
-
$dbh
-
in file Connection.php, variable Doctrine_Connection::$dbh
-
$definition
-
in file Table.php, variable Doctrine_Schema_Table::$definition
-
$definition
-
in file Relation.php, variable Doctrine_Relation::$definition
-
$definition
-
in file Column.php, variable Doctrine_Schema_Column::$definition
    column definitions
-
$definition
-
in file Database.php, variable Doctrine_Schema_Database::$definition
-
$definition
-
in file Object.php, variable Doctrine_Schema_Object::$definition
-
$delete
-
in file Transaction.php, variable Doctrine_Transaction::$delete
-
$driverMap
-
in file Manager.php, variable Doctrine_Manager::$driverMap
-
$driverName
-
in file Firebird.php, variable Doctrine_Connection_Firebird::$driverName
-
$driverName
-
in file Connection.php, variable Doctrine_Connection::$driverName
-
$driverName
-
in file Mysql.php, variable Doctrine_Connection_Mysql::$driverName
-
$driverName
-
in file Informix.php, variable Doctrine_Connection_Informix::$driverName
-
$driverName
-
in file Mock.php, variable Doctrine_Connection_Mock::$driverName
-
$driverName
-
in file Oracle.php, variable Doctrine_Connection_Oracle::$driverName
-
$driverName
-
in file Mssql.php, variable Doctrine_Connection_Mssql::$driverName
-
$driverName
-
in file Sqlite.php, variable Doctrine_Connection_Sqlite::$driverName
-
$driverName
-
in file Pgsql.php, variable Doctrine_Connection_Pgsql::$driverName
-
date_part
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::date_part()
    PostgreSQLs DATE_PART( <text>, <time> ) function.
-
debug
-
in file Doctrine.php, method Doctrine::debug()
-
defaultValue
-
in file Column.php, method Doctrine_Schema_Column::defaultValue()
-
delete
-
in file Abstract.php, method Doctrine_Query_Abstract::delete()
    delete sets the query type to DELETE
-
DELETE
-
in file Hydrate.php, class constant Doctrine_Hydrate::DELETE
    constant for DELETE queries
-
delete
-
in file NestedSet.php, method Doctrine_Node_NestedSet::delete()
    deletes node and it's descendants
-
delete
-
in file Interface.php, method Doctrine_Node_Interface::delete()
    deletes node and it's descendants
-
delete
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::delete()
    deletes given record and all the related composites this operation is isolated by a transaction
-
delete
-
in file Record.php, method Doctrine_Record::delete()
    deletes this data access object and all the related composites this operation is isolated by a transaction
-
delete
-
in file Collection.php, method Doctrine_Collection::delete()
    delete
-
deleteComposites
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::deleteComposites()
    deletes all related composites this method is always called internally when a record is deleted
-
deleteNode
-
in file Record.php, method Doctrine_Record::deleteNode()
    used to delete node from tree - MUST BE USE TO DELETE RECORD IF TABLE ACTS AS TREE
-
distinct
-
in file Abstract.php, method Doctrine_Query_Abstract::distinct()
    distinct Makes the query SELECT DISTINCT.
-
div
-
in file Driver.php, method Doctrine_Expression_Driver::div()
    Returns the SQL to divide values or expressions by eachother.
-
Doctrine
-
in file Doctrine.php, class Doctrine
    Doctrine the base class of Doctrine framework
-
Db2.php
-
procedural page Db2.php
-
DataDict.php
-
procedural page DataDict.php
-
DataType.php
-
procedural page DataType.php
-
Db.php
-
procedural page Db.php
-
Driver.php
-
procedural page Driver.php
-
Db.php
-
procedural page Db.php
-
Database.php
-
procedural page Database.php
-
Dir.php
-
procedural page Dir.php
-
Db2.php
-
procedural page Db2.php
-
Date.php
-
procedural page Date.php
-
Doctrine.php
-
procedural page Doctrine.php
-
Doctrine_Access
-
in file Access.php, class Doctrine_Access
    Doctrine_Access
-
Doctrine_Adapter
-
in file Adapter.php, class Doctrine_Adapter
    Doctrine_Adapter
-
Doctrine_Adapter_Db2_Exception
-
in file Exception.php, class Doctrine_Adapter_Db2_Exception
    Doctrine_Adapter_Db2_Exception
-
Doctrine_Adapter_Exception
-
in file Exception.php, class Doctrine_Adapter_Exception
    Doctrine_Adapter_Exception
-
Doctrine_Adapter_Interface
-
in file Interface.php, class Doctrine_Adapter_Interface
    Doctrine_Adapter_Interface This adapter interface should be implemented by all custom adapters
-
Doctrine_Adapter_Statement
-
in file Statement.php, class Doctrine_Adapter_Statement
    Doctrine_Adapter_Statement
-
Doctrine_Adapter_Statement_Interface
-
in file Interface.php, class Doctrine_Adapter_Statement_Interface
    Doctrine_Adapter_Statement
-
Doctrine_AuditLog
-
in file AuditLog.php, class Doctrine_AuditLog
    Doctrine_AuditLog
-
Doctrine_AuditLog_Listener
-
in file Listener.php, class Doctrine_AuditLog_Listener
    Doctrine_AuditLog_Listener
-
Doctrine_Collection
-
in file Collection.php, class Doctrine_Collection
    Doctrine_Collection Collection of Doctrine_Record objects.
-
Doctrine_Collection_Exception
-
in file Exception.php, class Doctrine_Collection_Exception
    Doctrine_Collection_Exception
-
Doctrine_Collection_Iterator
-
in file Iterator.php, class Doctrine_Collection_Iterator
    Doctrine_Collection_Iterator iterates through Doctrine_Collection
-
Doctrine_Collection_Iterator_Expandable
-
in file Expandable.php, class Doctrine_Collection_Iterator_Expandable
    Doctrine_Collection_Iterator_Normal
-
Doctrine_Collection_Iterator_Normal
-
in file Normal.php, class Doctrine_Collection_Iterator_Normal
    Doctrine_Collection_Iterator_Normal
-
Doctrine_Collection_Iterator_Offset
-
in file Offset.php, class Doctrine_Collection_Iterator_Offset
    Doctrine_Collection_Iterator_Normal
-
Doctrine_Collection_Offset
-
in file Offset.php, class Doctrine_Collection_Offset
    Doctrine_Collection_Offset Collection of Doctrine_Record objects.
-
Doctrine_Column
-
in file Column.php, class Doctrine_Column
    Doctrine_Column This class represents a database column
-
Doctrine_Compiler
-
in file Compiler.php, class Doctrine_Compiler
    Doctrine_Compiler This class can be used for compiling the entire Doctrine framework into a single file
-
Doctrine_Compiler_Exception
-
in file Exception.php, class Doctrine_Compiler_Exception
    Doctrine_Compiler_Exception
-
Doctrine_Configurable
-
in file Configurable.php, class Doctrine_Configurable
    Doctrine_Configurable the base for Doctrine_Table, Doctrine_Manager and Doctrine_Connection
-
Doctrine_Connection
-
in file Connection.php, class Doctrine_Connection
    Doctrine_Connection
-
Doctrine_Connection_Common
-
in file Common.php, class Doctrine_Connection_Common
    standard connection, the parent of pgsql, mysql and sqlite
-
Doctrine_Connection_Db2
-
in file Db2.php, class Doctrine_Connection_Db2
    Doctrine_Connection_Db2
-
Doctrine_Connection_Exception
-
in file Exception.php, class Doctrine_Connection_Exception
    Doctrine_Exception
-
Doctrine_Connection_Firebird
-
in file Firebird.php, class Doctrine_Connection_Firebird
    Doctrine_Connection_Firebird
-
Doctrine_Connection_Firebird_Exception
-
in file Exception.php, class Doctrine_Connection_Firebird_Exception
    Doctrine_Connection_Firebird_Exception
-
Doctrine_Connection_Informix
-
in file Informix.php, class Doctrine_Connection_Informix
    Doctrine_Connection_Mysql
-
Doctrine_Connection_Informix_Exception
-
in file Exception.php, class Doctrine_Connection_Informix_Exception
    Doctrine_Connection_Informix_Exception
-
Doctrine_Connection_Mock
-
in file Mock.php, class Doctrine_Connection_Mock
    Doctrine_Connection_Mysql
-
Doctrine_Connection_Module
-
in file Module.php, class Doctrine_Connection_Module
    Doctrine_Connection_Module
-
Doctrine_Connection_Mssql
-
in file Mssql.php, class Doctrine_Connection_Mssql
    Doctrine_Connection_Mssql
-
Doctrine_Connection_Mssql_Exception
-
in file Exception.php, class Doctrine_Connection_Mssql_Exception
    Doctrine_Connection_Mssql_Exception
-
Doctrine_Connection_Mysql
-
in file Mysql.php, class Doctrine_Connection_Mysql
    Doctrine_Connection_Mysql
-
Doctrine_Connection_Mysql_Exception
-
in file Exception.php, class Doctrine_Connection_Mysql_Exception
    Doctrine_Connection_Mysql_Exception
-
Doctrine_Connection_Oracle
-
in file Oracle.php, class Doctrine_Connection_Oracle
    Doctrine_Connection_Oracle
-
Doctrine_Connection_Oracle_Exception
-
in file Exception.php, class Doctrine_Connection_Oracle_Exception
    Doctrine_Connection_Oracle_Exception
-
Doctrine_Connection_Pgsql
-
in file Pgsql.php, class Doctrine_Connection_Pgsql
    Doctrine_Connection_Pgsql
-
Doctrine_Connection_Pgsql_Exception
-
in file Exception.php, class Doctrine_Connection_Pgsql_Exception
    Doctrine_Connection_Pgsql_Exception
-
Doctrine_Connection_Profiler
-
in file Profiler.php, class Doctrine_Connection_Profiler
    Doctrine_Connection_Profiler
-
Doctrine_Connection_Profiler_Exception
-
in file Exception.php, class Doctrine_Connection_Profiler_Exception
    Doctrine_Connection_Profiler_Exception
-
Doctrine_Connection_Sqlite
-
in file Sqlite.php, class Doctrine_Connection_Sqlite
    Doctrine_Connection_Sqlite
-
Doctrine_Connection_Sqlite_Exception
-
in file Exception.php, class Doctrine_Connection_Sqlite_Exception
    Doctrine_Connection_Sqlite_Exception
-
Doctrine_Connection_Statement
-
in file Statement.php, class Doctrine_Connection_Statement
    Doctrine_Connection_Statement
-
Doctrine_Connection_UnitOfWork
-
in file UnitOfWork.php, class Doctrine_Connection_UnitOfWork
    Doctrine_Connection_UnitOfWork
-
Doctrine_DataDict
-
in file DataDict.php, class Doctrine_DataDict
    Doctrine_DataDict
-
Doctrine_DataDict_Exception
-
in file Exception.php, class Doctrine_DataDict_Exception
    Doctrine_DataDict_Exception
-
Doctrine_DataDict_Informix
-
in file Informix.php, class Doctrine_DataDict_Informix
-
Doctrine_DataType
-
in file DataType.php, class Doctrine_DataType
    Doctrine_DataType
-
Doctrine_Db
-
in file Db.php, class Doctrine_Db
    Doctrine_Db
-
Doctrine_Event
-
in file Event.php, class Doctrine_Event
    Doctrine_Event
-
Doctrine_EventListener
-
in file EventListener.php, class Doctrine_EventListener
    Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement
-
Doctrine_EventListener_Chain
-
in file Chain.php, class Doctrine_EventListener_Chain
    Doctrine_EventListener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time
-
Doctrine_EventListener_Exception
-
in file Exception.php, class Doctrine_EventListener_Exception
    Doctrine_EventListener_Exception
-
Doctrine_EventListener_Interface
-
in file Interface.php, class Doctrine_EventListener_Interface
    Doctrine_EventListener all event listeners extend this base class the empty methods allow child classes to only implement the methods they need to implement
-
Doctrine_Exception
-
in file Exception.php, class Doctrine_Exception
    Doctrine_Exception
-
Doctrine_Export
-
in file Export.php, class Doctrine_Export
    Doctrine_Export
-
Doctrine_Export_Exception
-
in file Exception.php, class Doctrine_Export_Exception
    Doctrine_Export_Exception
-
Doctrine_Export_Firebird
-
in file Firebird.php, class Doctrine_Export_Firebird
    Doctrine_Export_Sqlite
-
Doctrine_Export_Frontbase
-
in file Frontbase.php, class Doctrine_Export_Frontbase
    Doctrine_Export_Frontbase
-
Doctrine_Export_Mssql
-
in file Mssql.php, class Doctrine_Export_Mssql
    Doctrine_Export_Mssql
-
Doctrine_Export_Mysql
-
in file Mysql.php, class Doctrine_Export_Mysql
    Doctrine_Export_Mysql
-
Doctrine_Export_Oracle
-
in file Oracle.php, class Doctrine_Export_Oracle
    Doctrine_Export_Oracle
-
Doctrine_Export_Pgsql
-
in file Pgsql.php, class Doctrine_Export_Pgsql
    Doctrine_Export_Pgsql
-
Doctrine_Export_Reporter
-
in file Reporter.php, class Doctrine_Export_Reporter
    Doctrine_Export_Reporter
-
Doctrine_Export_Schema
-
in file Schema.php, class Doctrine_Export_Schema
    class Doctrine_Export_Schema
-
Doctrine_Export_Schema_Xml
-
in file Xml.php, class Doctrine_Export_Schema_Xml
    class Doctrine_Export_Schema_Xml
-
Doctrine_Export_Schema_Yml
-
in file Yml.php, class Doctrine_Export_Schema_Yml
    class Doctrine_Export_Schema_Yml
-
Doctrine_Export_Sqlite
-
in file Sqlite.php, class Doctrine_Export_Sqlite
    Doctrine_Export_Sqlite
-
Doctrine_Expression
-
in file Expression.php, class Doctrine_Expression
    Doctrine_Expression
-
Doctrine_Expression_Driver
-
in file Driver.php, class Doctrine_Expression_Driver
    Doctrine_Expression_Driver
-
Doctrine_Expression_Exception
-
in file Exception.php, class Doctrine_Expression_Exception
    Doctrine_Expression_Exception
-
Doctrine_Expression_Firebird
-
in file Firebird.php, class Doctrine_Expression_Firebird
    Doctrine_Expression_Firebird
-
Doctrine_Expression_Informix
-
in file Informix.php, class Doctrine_Expression_Informix
    Doctrine_Expression_Informix
-
Doctrine_Expression_Mock
-
in file Mock.php, class Doctrine_Expression_Mock
    Doctrine_Expression_Mock Mock driver that is used for testing purposes
-
Doctrine_Expression_Mssql
-
in file Mssql.php, class Doctrine_Expression_Mssql
    Doctrine_Expression_Mssql
-
Doctrine_Expression_Mysql
-
in file Mysql.php, class Doctrine_Expression_Mysql
    Doctrine_Expression_Mysql
-
Doctrine_Expression_Oracle
-
in file Oracle.php, class Doctrine_Expression_Oracle
    Doctrine_Expression_Sqlite
-
Doctrine_Expression_Pgsql
-
in file Pgsql.php, class Doctrine_Expression_Pgsql
    Doctrine_Expression_Pgsql
-
Doctrine_Expression_Sqlite
-
in file Sqlite.php, class Doctrine_Expression_Sqlite
    Doctrine_Expression_Sqlite
-
Doctrine_File
-
in file File.php, class Doctrine_File
    Doctrine_File
-
Doctrine_File_Index
-
in file Index.php, class Doctrine_File_Index
    Doctrine_File_Index
-
Doctrine_Formatter
-
in file Formatter.php, class Doctrine_Formatter
    Doctrine_Formatter
-
Doctrine_Hook
-
in file Hook.php, class Doctrine_Hook
    Doctrine_Hook
-
Doctrine_Hook_Equal
-
in file Equal.php, class Doctrine_Hook_Equal
    Doctrine_Hook_Equal
-
Doctrine_Hook_Integer
-
in file Integer.php, class Doctrine_Hook_Integer
    Doctrine_Hook_Integer
-
Doctrine_Hook_Parser
-
in file Parser.php, class Doctrine_Hook_Parser
    Doctrine_Hook_Parser
-
Doctrine_Hook_Parser_Complex
-
in file Complex.php, class Doctrine_Hook_Parser_Complex
    Doctrine_Hook_Parser_Complex
-
Doctrine_Hook_WordLike
-
in file WordLike.php, class Doctrine_Hook_WordLike
    Doctrine_Hook_WordLike
-
Doctrine_Hydrate
-
in file Hydrate.php, class Doctrine_Hydrate
    Doctrine_Hydrate is a base class for Doctrine_RawSql and Doctrine_Query.
-
Doctrine_Hydrate_Array
-
in file Array.php, class Doctrine_Hydrate_Array
    Doctrine_Hydrate_Array defines an array fetching strategy for Doctrine_Hydrate
-
Doctrine_Hydrate_Exception
-
in file Exception.php, class Doctrine_Hydrate_Exception
    Doctrine_Hydrate_Exception
-
Doctrine_Hydrate_Record
-
in file Record.php, class Doctrine_Hydrate_Record
    Doctrine_Hydrate_Record defines a record fetching strategy for Doctrine_Hydrate
-
Doctrine_Import
-
in file Import.php, class Doctrine_Import
    class Doctrine_Import Main responsible of performing import operation. Delegates database schema reading to a reader object and passes the result to a builder object which builds a Doctrine data model.
-
Doctrine_Import_Builder
-
in file Builder.php, class Doctrine_Import_Builder
    Doctrine_Import_Builder Import builder is responsible of building Doctrine ActiveRecord classes based on a database schema.
-
Doctrine_Import_Builder_BaseClass
-
in file BaseClass.php, class Doctrine_Import_Builder_BaseClass
    class Doctrine_Import_Builder_BaseClass Builds a Doctrine_Record base class definition based on a schema.
-
Doctrine_Import_Builder_Exception
-
in file Exception.php, class Doctrine_Import_Builder_Exception
    class Doctrine_Import_Builder_Exception
-
Doctrine_Import_Exception
-
in file Exception.php, class Doctrine_Import_Exception
    class Doctrine_Import_Exception
-
Doctrine_Import_Firebird
-
in file Firebird.php, class Doctrine_Import_Firebird
-
Doctrine_Import_Informix
-
in file Informix.php, class Doctrine_Import_Informix
-
Doctrine_Import_Mssql
-
in file Mssql.php, class Doctrine_Import_Mssql
-
Doctrine_Import_Mysql
-
in file Mysql.php, class Doctrine_Import_Mysql
-
Doctrine_Import_Oracle
-
in file Oracle.php, class Doctrine_Import_Oracle
-
Doctrine_Import_Pgsql
-
in file Pgsql.php, class Doctrine_Import_Pgsql
-
Doctrine_Import_Reader
-
in file Reader.php, class Doctrine_Import_Reader
-
Doctrine_Import_Reader_Db
-
in file Db.php, class Doctrine_Import_Reader_Db
    class Doctrine_Import_Reader_Db
-
Doctrine_Import_Reader_Exception
-
in file Exception.php, class Doctrine_Import_Reader_Exception
-
Doctrine_Import_Reader_Xml_Propel
-
in file Propel.php, class Doctrine_Import_Reader_Xml_Propel
    class Doctrine_Import_Reader_Xml_Propel
-
Doctrine_Import_Schema
-
in file Schema.php, class Doctrine_Import_Schema
    class Doctrine_Import_Schema
-
Doctrine_Import_Schema_Xml
-
in file Xml.php, class Doctrine_Import_Schema_Xml
    class Doctrine_Import_Xml
-
Doctrine_Import_Schema_Yml
-
in file Yml.php, class Doctrine_Import_Schema_Yml
    class Doctrine_Import_Schema_Yml
-
Doctrine_Import_Sqlite
-
in file Sqlite.php, class Doctrine_Import_Sqlite
-
Doctrine_IntegrityMapper
-
in file IntegrityMapper.php, class Doctrine_IntegrityMapper
    Doctrine_IntegrityMapper
-
Doctrine_Lib
-
in file Lib.php, class Doctrine_Lib
    Doctrine_Lib has not commonly used static functions, mostly for debugging purposes
-
Doctrine_Locking_Exception
-
in file Exception.php, class Doctrine_Locking_Exception
    Locking exception class
-
Doctrine_Locking_Manager_Pessimistic
-
in file Pessimistic.php, class Doctrine_Locking_Manager_Pessimistic
    Offline locking of records comes in handy where you need to make sure that a time-consuming task on a record or many records, which is spread over several page requests can't be interfered by other users.
-
Doctrine_Manager
-
in file Manager.php, class Doctrine_Manager
    Doctrine_Manager is the base component of all doctrine based projects.
-
Doctrine_Manager_Exception
-
in file Exception.php, class Doctrine_Manager_Exception
    Doctrine_Manager_Exception
-
Doctrine_Node
-
in file Node.php, class Doctrine_Node
    Doctrine_Node
-
Doctrine_Node_AdjacencyList
-
in file AdjacencyList.php, class Doctrine_Node_AdjacencyList
    Doctrine_Node_AdjacencyList
-
Doctrine_Node_AdjacencyList_LevelOrderIterator
-
in file LevelOrderIterator.php, class Doctrine_Node_AdjacencyList_LevelOrderIterator
    Doctrine_Node_AdjacencyList_LevelOrderIterator
-
Doctrine_Node_AdjacencyList_PostOrderIterator
-
in file PostOrderIterator.php, class Doctrine_Node_AdjacencyList_PostOrderIterator
    Doctrine_Node_AdjacencyList_PostOrderIterator
-
Doctrine_Node_AdjacencyList_PreOrderIterator
-
in file PreOrderIterator.php, class Doctrine_Node_AdjacencyList_PreOrderIterator
    Doctrine_Node_AdjacencyList_PreOrderIterator
-
Doctrine_Node_Exception
-
in file Exception.php, class Doctrine_Node_Exception
    Doctrine_Node_Exception
-
Doctrine_Node_Interface
-
in file Interface.php, class Doctrine_Node_Interface
    Doctrine_Node_Interface
-
Doctrine_Node_MaterializedPath
-
in file MaterializedPath.php, class Doctrine_Node_MaterializedPath
    Doctrine_Node_MaterializedPath
-
Doctrine_Node_MaterializedPath_LevelOrderIterator
-
in file LevelOrderIterator.php, class Doctrine_Node_MaterializedPath_LevelOrderIterator
    Doctrine_Node_MaterializedPath_LevelOrderIterator
-
Doctrine_Node_MaterializedPath_PostOrderIterator
-
in file PostOrderIterator.php, class Doctrine_Node_MaterializedPath_PostOrderIterator
    Doctrine_Node_MaterializedPath_PostOrderIterator
-
Doctrine_Node_MaterializedPath_PreOrderIterator
-
in file PreOrderIterator.php, class Doctrine_Node_MaterializedPath_PreOrderIterator
    Doctrine_Node_MaterializedPath_PreOrderIterator
-
Doctrine_Node_NestedSet
-
in file NestedSet.php, class Doctrine_Node_NestedSet
    Doctrine_Node_NestedSet
-
Doctrine_Node_NestedSet_LevelOrderIterator
-
in file LevelOrderIterator.php, class Doctrine_Node_NestedSet_LevelOrderIterator
    Doctrine_Node_NestedSet_LevelOrderIterator
-
Doctrine_Node_NestedSet_PostOrderIterator
-
in file PostOrderIterator.php, class Doctrine_Node_NestedSet_PostOrderIterator
    Doctrine_Node_NestedSet_PostOrderIterator
-
Doctrine_Node_NestedSet_PreOrderIterator
-
in file PreOrderIterator.php, class Doctrine_Node_NestedSet_PreOrderIterator
    Doctrine_Node_NestedSet_PreOrderIterator
-
Doctrine_Null
-
in file Null.php, class Doctrine_Null
    Doctrine_Null
-
Doctrine_Object
-
in file Object.php, class Doctrine_Object
    Doctrine_Object
-
Doctrine_Overloadable
-
in file Overloadable.php, class Doctrine_Overloadable
    Doctrine_Overloadable a very generic overloading interface
-
Doctrine_Plugin
-
in file Plugin.php, class Doctrine_Plugin
    Doctrine_Plugin
-
Doctrine_Query
-
in file Query.php, class Doctrine_Query
    Doctrine_Query
-
Doctrine_Query_Abstract
-
in file Abstract.php, class Doctrine_Query_Abstract
    Doctrine_Query_Abstract
-
Doctrine_Query_Check
-
in file Check.php, class Doctrine_Query_Check
    Doctrine_Query_Check
-
Doctrine_Query_Condition
-
in file Condition.php, class Doctrine_Query_Condition
    Doctrine_Query_Condition
-
Doctrine_Query_Exception
-
in file Exception.php, class Doctrine_Query_Exception
    Doctrine_Query_Exception
-
Doctrine_Query_Filter
-
in file Filter.php, class Doctrine_Query_Filter
    Doctrine_Query_Filter
-
Doctrine_Query_Filter_Chain
-
in file Chain.php, class Doctrine_Query_Filter_Chain
    Doctrine_Query_Filter_Chain
-
Doctrine_Query_Filter_Interface
-
in file Interface.php, class Doctrine_Query_Filter_Interface
    Doctrine_Query_Filter_Interface
-
Doctrine_Query_From
-
in file From.php, class Doctrine_Query_From
    Doctrine_Query_From
-
Doctrine_Query_Groupby
-
in file Groupby.php, class Doctrine_Query_Groupby
    Doctrine_Query_Groupby
-
Doctrine_Query_Having
-
in file Having.php, class Doctrine_Query_Having
    Doctrine_Query_Having
-
Doctrine_Query_JoinCondition
-
in file JoinCondition.php, class Doctrine_Query_JoinCondition
    Doctrine_Query_JoinCondition
-
Doctrine_Query_Limit
-
in file Limit.php, class Doctrine_Query_Limit
    Doctrine_Query_Limit
-
Doctrine_Query_Offset
-
in file Offset.php, class Doctrine_Query_Offset
    Doctrine_Query_Offset
-
Doctrine_Query_Orderby
-
in file Orderby.php, class Doctrine_Query_Orderby
    Doctrine_Query_Orderby
-
Doctrine_Query_Parser
-
in file Parser.php, class Doctrine_Query_Parser
    Doctrine_Query_Parser
-
Doctrine_Query_Part
-
in file Part.php, class Doctrine_Query_Part
    Doctrine_Query_Part
-
Doctrine_Query_Select
-
in file Select.php, class Doctrine_Query_Select
    Doctrine_Query_Select
-
Doctrine_Query_Set
-
in file Set.php, class Doctrine_Query_Set
    Doctrine_Query
-
Doctrine_Query_Where
-
in file Where.php, class Doctrine_Query_Where
    Doctrine_Query_Where
-
Doctrine_RawSql
-
in file RawSql.php, class Doctrine_RawSql
    Doctrine_RawSql
-
Doctrine_RawSql_Exception
-
in file Exception.php, class Doctrine_RawSql_Exception
    Doctrine_RawSql_Exception
-
Doctrine_Record
-
in file Record.php, class Doctrine_Record
    Doctrine_Record All record classes should inherit this super class
-
Doctrine_Record_Abstract
-
in file Abstract.php, class Doctrine_Record_Abstract
    Doctrine_Record_Abstract
-
Doctrine_Record_Exception
-
in file Exception.php, class Doctrine_Record_Exception
    Doctrine_Exception
-
Doctrine_Record_Filter
-
in file Filter.php, class Doctrine_Record_Filter
    Doctrine_Record_Filter Filters and prepares the record data
-
Doctrine_Record_Iterator
-
in file Iterator.php, class Doctrine_Record_Iterator
-
Doctrine_Record_Listener
-
in file Listener.php, class Doctrine_Record_Listener
    Doctrine_Record_Listener
-
Doctrine_Record_Listener_Chain
-
in file Chain.php, class Doctrine_Record_Listener_Chain
    Doctrine_Record_Listener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time
-
Doctrine_Record_Listener_Interface
-
in file Interface.php, class Doctrine_Record_Listener_Interface
    Doctrine_Record_Listener
-
Doctrine_Record_State_Exception
-
in file Exception.php, class Doctrine_Record_State_Exception
    Doctrine_Exception
-
Doctrine_Relation
-
in file Relation.php, class Doctrine_Relation
    Doctrine_Relation This class represents a relation between components
-
Doctrine_Relation_Association
-
in file Association.php, class Doctrine_Relation_Association
    Doctrine_Relation_Association this class takes care of association mapping (= many-to-many relationships, where the relationship is handled with an additional relational table which holds 2 foreign keys)
-
Doctrine_Relation_Association_Self
-
in file Self.php, class Doctrine_Relation_Association_Self
    Doctrine_Relation_Association_Self
-
Doctrine_Relation_Exception
-
in file Exception.php, class Doctrine_Relation_Exception
    Doctrine_Relation_Exception
-
Doctrine_Relation_ForeignKey
-
in file ForeignKey.php, class Doctrine_Relation_ForeignKey
    Doctrine_Relation_ForeignKey This class represents a foreign key relation
-
Doctrine_Relation_LocalKey
-
in file LocalKey.php, class Doctrine_Relation_LocalKey
    Doctrine_Relation_LocalKey This class represents a local key relation
-
Doctrine_Relation_Nest
-
in file Nest.php, class Doctrine_Relation_Nest
    Doctrine_Relation_Association_Self
-
Doctrine_Relation_Parser
-
in file Parser.php, class Doctrine_Relation_Parser
    Doctrine_Relation_Parser
-
Doctrine_Relation_Parser_Exception
-
in file Exception.php, class Doctrine_Relation_Parser_Exception
    Doctrine_Relation_Parser_Exception
-
Doctrine_Schema
-
in file Schema.php, class Doctrine_Schema
-
Doctrine_Schema_Column
-
in file Column.php, class Doctrine_Schema_Column
    class Doctrine_Schema_Column
-
Doctrine_Schema_Database
-
in file Database.php, class Doctrine_Schema_Database
    class Doctrine_Schema_Database
-
Doctrine_Schema_Exception
-
in file Exception.php, class Doctrine_Schema_Exception
    class Doctrine_Schema_Exception
-
Doctrine_Schema_Object
-
in file Object.php, class Doctrine_Schema_Object
    class Doctrine_Schema_Object Catches any non-property call from child classes and throws an exception.
-
Doctrine_Schema_Relation
-
in file Relation.php, class Doctrine_Schema_Relation
    class Doctrine_Schema_Relation Holds information on a foreign key relation.
-
Doctrine_Schema_Table
-
in file Table.php, class Doctrine_Schema_Table
    class Doctrine_Schema_Table
-
Doctrine_Search
-
in file Search.php, class Doctrine_Search
    Doctrine_Search
-
Doctrine_Search_Analyzer
-
in file Analyzer.php, class Doctrine_Search_Analyzer
    Doctrine_Search_Analyzer
-
Doctrine_Search_Analyzer_Exception
-
in file Exception.php, class Doctrine_Search_Analyzer_Exception
    Doctrine_Search_Analyzer_Exception
-
Doctrine_Search_Analyzer_Interface
-
in file Interface.php, class Doctrine_Search_Analyzer_Interface
    Doctrine_Search_Analyzer_Interface
-
Doctrine_Search_Analyzer_Standard
-
in file Standard.php, class Doctrine_Search_Analyzer_Standard
    Doctrine_Search_Analyzer_Standard
-
Doctrine_Search_Exception
-
in file Exception.php, class Doctrine_Search_Exception
    Doctrine_Search_Exception
-
Doctrine_Search_Indexer
-
in file Indexer.php, class Doctrine_Search_Indexer
    Doctrine_Search_Indexer
-
Doctrine_Search_Indexer_Dir
-
in file Dir.php, class Doctrine_Search_Indexer_Dir
    Doctrine_Search_Indexer_Dir
-
Doctrine_Search_Indexer_Exception
-
in file Exception.php, class Doctrine_Search_Indexer_Exception
    Doctrine_Search_Indexer
-
Doctrine_Search_Listener
-
in file Listener.php, class Doctrine_Search_Listener
    Doctrine_Search_Listener
-
Doctrine_Search_Parser
-
in file Parser.php, class Doctrine_Search_Parser
    Doctrine_Search_Parser_Standard
-
Doctrine_Search_Query
-
in file Query.php, class Doctrine_Search_Query
    Doctrine_Search_Query
-
Doctrine_Search_Record
-
in file Record.php, class Doctrine_Search_Record
    Doctrine_Search_Record
-
Doctrine_Search_Scorer
-
in file Scorer.php, class Doctrine_Search_Scorer
    Doctrine_Search_Scorer
-
Doctrine_Search_Template
-
in file Template.php, class Doctrine_Search_Template
    Doctrine_Search_Template
-
Doctrine_Sequence
-
in file Sequence.php, class Doctrine_Sequence
    Doctrine_Sequence The base class for sequence handling drivers.
-
Doctrine_Sequence_Db2
-
in file Db2.php, class Doctrine_Sequence_Db2
    Doctrine_Sequence_Db2
-
Doctrine_Sequence_Exception
-
in file Exception.php, class Doctrine_Sequence_Exception
    Doctrine_Sequence_Exception
-
Doctrine_Sequence_Firebird
-
in file Firebird.php, class Doctrine_Sequence_Firebird
    Doctrine_Sequence_Firebird
-
Doctrine_Sequence_Informix
-
in file Informix.php, class Doctrine_Sequence_Informix
    Doctrine_Sequence_Informix
-
Doctrine_Sequence_Mssql
-
in file Mssql.php, class Doctrine_Sequence_Mssql
    Doctrine_Sequence_Mssql
-
Doctrine_Sequence_Mysql
-
in file Mysql.php, class Doctrine_Sequence_Mysql
    Doctrine_Sequence_Mysql
-
Doctrine_Sequence_Oracle
-
in file Oracle.php, class Doctrine_Sequence_Oracle
    Doctrine_Sequence_Oracle
-
Doctrine_Sequence_Pgsql
-
in file Pgsql.php, class Doctrine_Sequence_Pgsql
    Doctrine_Sequence_Pgsql
-
Doctrine_Sequence_Sqlite
-
in file Sqlite.php, class Doctrine_Sequence_Sqlite
    Doctrine_Sequence_Sqlite
-
Doctrine_Table
-
in file Table.php, class Doctrine_Table
    Doctrine_Table represents a database table each Doctrine_Table holds the information of foreignKeys and associations
-
Doctrine_Table_Exception
-
in file Exception.php, class Doctrine_Table_Exception
    thrown when user tries to initialize a new instance of Doctrine_Table, while there already exists an instance of that table
-
Doctrine_Table_Repository
-
in file Repository.php, class Doctrine_Table_Repository
    Doctrine_Repository each record is added into Doctrine_Repository at the same time they are created, loaded from the database or retrieved from the cache
-
Doctrine_Table_Repository_Exception
-
in file Exception.php, class Doctrine_Table_Repository_Exception
    Doctrine_Table_Repository_Exception
-
Doctrine_Template
-
in file Template.php, class Doctrine_Template
    Doctrine_Template
-
Doctrine_Template_NestedSet
-
in file NestedSet.php, class Doctrine_Template_NestedSet
    Doctrine_Template_NestedSet
-
Doctrine_Template_Searchable
-
in file Searchable.php, class Doctrine_Template_Searchable
    Doctrine_Template_Searchable
-
Doctrine_Template_Taggable
-
in file Taggable.php, class Doctrine_Template_Taggable
    Doctrine_Template_Taggable
-
Doctrine_Template_Versionable
-
in file Versionable.php, class Doctrine_Template_Versionable
    Doctrine_Template_Versionable
-
Doctrine_Tokenizer
-
in file Tokenizer.php, class Doctrine_Tokenizer
    Doctrine_Tokenizer
-
Doctrine_Transaction
-
in file Transaction.php, class Doctrine_Transaction
    Doctrine_Transaction Handles transaction savepoint and isolation abstraction
-
Doctrine_Transaction_Exception
-
in file Exception.php, class Doctrine_Transaction_Exception
    Doctrine_Transaction_Exception
-
Doctrine_Transaction_Firebird
-
in file Firebird.php, class Doctrine_Transaction_Firebird
-
Doctrine_Transaction_Informix
-
in file Informix.php, class Doctrine_Transaction_Informix
-
Doctrine_Transaction_Mock
-
in file Mock.php, class Doctrine_Transaction_Mock
    Doctrine_Transaction_Mock This class is used for testing purposes
-
Doctrine_Transaction_Mssql
-
in file Mssql.php, class Doctrine_Transaction_Mssql
-
Doctrine_Transaction_Mysql
-
in file Mysql.php, class Doctrine_Transaction_Mysql
-
Doctrine_Transaction_Oracle
-
in file Oracle.php, class Doctrine_Transaction_Oracle
-
Doctrine_Transaction_Pgsql
-
in file Pgsql.php, class Doctrine_Transaction_Pgsql
-
Doctrine_Transaction_Sqlite
-
in file Sqlite.php, class Doctrine_Transaction_Sqlite
-
Doctrine_Tree
-
in file Tree.php, class Doctrine_Tree
    Doctrine_Tree
-
Doctrine_Tree_AdjacencyList
-
in file AdjacencyList.php, class Doctrine_Tree_AdjacencyList
    Doctrine_Tree_AdjacencyList
-
Doctrine_Tree_Exception
-
in file Exception.php, class Doctrine_Tree_Exception
    Doctrine_Tree_Exception
-
Doctrine_Tree_Interface
-
in file Interface.php, class Doctrine_Tree_Interface
    Doctrine_Tree_Interface
-
Doctrine_Tree_MaterializedPath
-
in file MaterializedPath.php, class Doctrine_Tree_MaterializedPath
    Doctrine_Tree_MaterializedPath
-
Doctrine_Tree_NestedSet
-
in file NestedSet.php, class Doctrine_Tree_NestedSet
    Doctrine_Tree_NestedSet
-
Doctrine_Util
-
in file Util.php, class Doctrine_Util
    Doctrine_Util
-
Doctrine_Validator
-
in file Validator.php, class Doctrine_Validator
    Doctrine_Validator Doctrine_Validator performs validations in record properties
-
Doctrine_Validator_Country
-
in file Country.php, class Doctrine_Validator_Country
    Doctrine_Validator_Country
-
Doctrine_Validator_Creditcard
-
in file Creditcard.php, class Doctrine_Validator_Creditcard
    Doctrine_Validator_Creditcard
-
Doctrine_Validator_Date
-
in file Date.php, class Doctrine_Validator_Date
    Doctrine_Validator_Date
-
Doctrine_Validator_Email
-
in file Email.php, class Doctrine_Validator_Email
    Doctrine_Validator_Email
-
Doctrine_Validator_Enum
-
in file Enum.php, class Doctrine_Validator_Enum
    Doctrine_Validator_Enum
-
Doctrine_Validator_ErrorStack
-
in file ErrorStack.php, class Doctrine_Validator_ErrorStack
    Doctrine_Validator_ErrorStack
-
Doctrine_Validator_Exception
-
in file Exception.php, class Doctrine_Validator_Exception
    Doctrine_Validator_Exception
-
Doctrine_Validator_HtmlColor
-
in file Htmlcolor.php, class Doctrine_Validator_HtmlColor
    Doctrine_Validator_HtmlColor
-
Doctrine_Validator_Interface
-
in file Interface.class.php, class Doctrine_Validator_Interface
-
Doctrine_Validator_Ip
-
in file Ip.php, class Doctrine_Validator_Ip
    Doctrine_Validator_Ip
-
Doctrine_Validator_Minlength
-
in file Minlength.php, class Doctrine_Validator_Minlength
    Doctrine_Validator_Regexp
-
Doctrine_Validator_Nospace
-
in file Nospace.php, class Doctrine_Validator_Nospace
    Doctrine_Validator_Nospace
-
Doctrine_Validator_Notblank
-
in file Notblank.php, class Doctrine_Validator_Notblank
    Doctrine_Validator_Notblank
-
Doctrine_Validator_Notnull
-
in file Notnull.php, class Doctrine_Validator_Notnull
    Doctrine_Validator_Notnull
-
Doctrine_Validator_Range
-
in file Range.php, class Doctrine_Validator_Range
    Doctrine_Validator_Range
-
Doctrine_Validator_Regexp
-
in file Regexp.php, class Doctrine_Validator_Regexp
    Doctrine_Validator_Regexp
-
Doctrine_Validator_Unique
-
in file Unique.php, class Doctrine_Validator_Unique
    Doctrine_Validator_Unique
-
Doctrine_Validator_Unsigned
-
in file Unsigned.php, class Doctrine_Validator_Unsigned
    Doctrine_Validator_Enum
-
Doctrine_Validator_Usstate
-
in file Usstate.php, class Doctrine_Validator_Usstate
    Doctrine_Validator_Usstate
-
Doctrine_View
-
in file View.php, class Doctrine_View
    Doctrine_View
-
Doctrine_View_Exception
-
in file Exception.php, class Doctrine_View_Exception
    Doctrine_Validator_Exception
-
driverName
-
in file Connection.php, method Doctrine_Connection::driverName()
    converts given driver name
-
drop
-
in file View.php, method Doctrine_View::drop()
    drop drops this view from the database
-
DROP
-
in file View.php, class constant Doctrine_View::DROP
    SQL DROP constant
-
dropAutoincrement
-
in file Oracle.php, method Doctrine_Export_Oracle::dropAutoincrement()
    drop an existing autoincrement sequence + trigger
-
dropConstraint
-
in file Export.php, method Doctrine_Export::dropConstraint()
    drop existing constraint
-
dropDatabase
-
in file Sqlite.php, method Doctrine_Export_Sqlite::dropDatabase()
    drop an existing database
-
dropDatabase
-
in file Oracle.php, method Doctrine_Export_Oracle::dropDatabase()
    drop an existing database
-
dropDatabase
-
in file Firebird.php, method Doctrine_Export_Firebird::dropDatabase()
    drop an existing database
-
dropDatabase
-
in file Mssql.php, method Doctrine_Export_Mssql::dropDatabase()
    drop an existing database
-
dropDatabase
-
in file Export.php, method Doctrine_Export::dropDatabase()
    drop an existing database (this method is implemented by the drivers)
-
dropDatabaseSql
-
in file Mysql.php, method Doctrine_Export_Mysql::dropDatabaseSql()
    drop an existing database
-
dropDatabaseSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropDatabaseSql()
    drop an existing database
-
dropDatabaseSql
-
in file Export.php, method Doctrine_Export::dropDatabaseSql()
    drop an existing database (this method is implemented by the drivers)
-
dropDatabaseSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::dropDatabaseSql()
    drop an existing database
-
dropIndex
-
in file Export.php, method Doctrine_Export::dropIndex()
    drop existing index
-
dropIndexSql
-
in file Mysql.php, method Doctrine_Export_Mysql::dropIndexSql()
    drop existing index
-
dropIndexSql
-
in file Export.php, method Doctrine_Export::dropIndexSql()
    dropIndexSql
-
dropIndexSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropIndexSql()
    drop existing index
-
dropSequence
-
in file Export.php, method Doctrine_Export::dropSequence()
    dropSequenceSql drop existing sequence (this method is implemented by the drivers)
-
dropSequenceSql
-
in file Oracle.php, method Doctrine_Export_Oracle::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Export.php, method Doctrine_Export::dropSequenceSql()
    dropSequenceSql drop existing sequence
-
dropSequenceSql
-
in file Sqlite.php, method Doctrine_Export_Sqlite::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Pgsql.php, method Doctrine_Export_Pgsql::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Firebird.php, method Doctrine_Export_Firebird::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropSequenceSql()
    drop existing sequence
-
dropSequenceSql
-
in file Mssql.php, method Doctrine_Export_Mssql::dropSequenceSql()
    This function drops an existing sequence
-
dropTable
-
in file Export.php, method Doctrine_Export::dropTable()
    dropTable drop an existing table
-
dropTable
-
in file Oracle.php, method Doctrine_Export_Oracle::dropTable()
    drop an existing table
-
dropTable
-
in file Firebird.php, method Doctrine_Export_Firebird::dropTable()
    drop an existing table
-
dropTableSql
-
in file Frontbase.php, method Doctrine_Export_Frontbase::dropTableSql()
    drop an existing table
-
dropTableSql
-
in file Mysql.php, method Doctrine_Export_Mysql::dropTableSql()
    dropTable
-
dropTableSql
-
in file Export.php, method Doctrine_Export::dropTableSql()
    dropTableSql drop an existing table
-
dump
-
in file Yml.php, method Doctrine_Export_Schema_Yml::dump()
    dump
-
dump
-
in file Schema.php, method Doctrine_Export_Schema::dump()
    dump
-
dump
-
in file Xml.php, method Doctrine_Export_Schema_Xml::dump()
    dump
-
dump
-
in file Doctrine.php, method Doctrine::dump()
    dump
-
Db2.php
-
procedural page Db2.php
-
Doctrine_Adapter_Db2
-
in file Db2.php, class Doctrine_Adapter_Db2
    Doctrine_Adapter_Db2 IBM DB2 Adapter [BORROWED FROM ZEND FRAMEWORK]
-
Doctrine_Adapter_Mock
-
in file Mock.php, class Doctrine_Adapter_Mock
    Doctrine_Adapter_Mock This class is used for special testing purposes.
-
Doctrine_Adapter_Mysqli
-
in file Mysqli.php, class Doctrine_Adapter_Mysqli
    Doctrine_Adapter_Mysqli This class is used for special testing purposes.
-
Doctrine_Adapter_Oracle
-
in file Oracle.php, class Doctrine_Adapter_Oracle
    Doctrine_Adapter_Oracle [BORROWED FROM ZEND FRAMEWORK]
-
Doctrine_Adapter_Statement_Mock
-
in file Mock.php, class Doctrine_Adapter_Statement_Mock
    Doctrine_Adapter_Statement_Mock This class is used for special testing purposes.
-
$data
-
in file Array.php, variable Doctrine_Cache_Array::$data
-
delete
-
in file Interface.php, method Doctrine_Cache_Interface::delete()
    Remove a cache record
-
delete
-
in file Db.php, method Doctrine_Cache_Db::delete()
    Remove a cache record
-
delete
-
in file Array.php, method Doctrine_Cache_Array::delete()
    Remove a cache record
-
delete
-
in file Apc.php, method Doctrine_Cache_Apc::delete()
    Remove a cache record
-
delete
-
in file Memcache.php, method Doctrine_Cache_Memcache::delete()
    Remove a cache record
-
deleteAll
-
in file Db.php, method Doctrine_Cache_Db::deleteAll()
    Removes all cache records
-
deleteAll
-
in file Array.php, method Doctrine_Cache_Array::deleteAll()
    Remove all cache record
-
Db.php
-
procedural page Db.php
-
Driver.php
-
procedural page Driver.php
-
Doctrine_Cache
-
in file Cache.php, class Doctrine_Cache
    Doctrine_Cache
-
Doctrine_Cache_Apc
-
in file Apc.php, class Doctrine_Cache_Apc
    Doctrine_Cache_Apc
-
Doctrine_Cache_Array
-
in file Array.php, class Doctrine_Cache_Array
    Doctrine_Cache_Interface
-
Doctrine_Cache_Db
-
in file Db.php, class Doctrine_Cache_Db
    Doctrine_Cache_Db
-
Doctrine_Cache_Driver
-
in file Driver.php, class Doctrine_Cache_Driver
    Doctrine_Cache_Driver
-
Doctrine_Cache_Exception
-
in file Exception.php, class Doctrine_Cache_Exception
    Doctrine_Cache_Exception
-
Doctrine_Cache_Interface
-
in file Interface.php, class Doctrine_Cache_Interface
    Doctrine_Cache_Interface
-
Doctrine_Cache_Memcache
-
in file Memcache.php, class Doctrine_Cache_Memcache
    Doctrine_Cache_Memcache
-
Doctrine_DataDict_Firebird
-
in file Firebird.php, class Doctrine_DataDict_Firebird
-
Doctrine_DataDict_Mssql
-
in file Mssql.php, class Doctrine_DataDict_Mssql
-
Doctrine_DataDict_Mysql
-
in file Mysql.php, class Doctrine_DataDict_Mysql
-
Doctrine_DataDict_Oracle
-
in file Oracle.php, class Doctrine_DataDict_Oracle
-
Doctrine_DataDict_Pgsql
-
in file Pgsql.php, class Doctrine_DataDict_Pgsql
-
Doctrine_DataDict_Sqlite
-
in file Sqlite.php, class Doctrine_DataDict_Sqlite
-
-
- -
-
e
-
[Top]
-
-
-
-

e

-
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Mssql_Exception::$errorCodeMap
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Mysql_Exception::$errorCodeMap
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Oracle_Exception::$errorCodeMap
-
$errorCodeMap
-
in file Exception.php, variable Doctrine_Connection_Firebird_Exception::$errorCodeMap
-
$errorMessages
-
in file Exception.php, variable Doctrine_Connection_Exception::$errorMessages
-
$errorRegexps
-
in file Exception.php, variable Doctrine_Connection_Pgsql_Exception::$errorRegexps
-
$errorRegexps
-
in file Exception.php, variable Doctrine_Connection_Firebird_Exception::$errorRegexps
-
$errorRegexps
-
in file Exception.php, variable Doctrine_Connection_Sqlite_Exception::$errorRegexps
-
$errors
-
in file ErrorStack.php, variable Doctrine_Validator_ErrorStack::$errors
    The errors of the error stack.
-
$events
-
in file Profiler.php, variable Doctrine_Connection_Profiler::$events
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Expandable.php
-
procedural page Expandable.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Event.php
-
procedural page Event.php
-
Exception.php
-
procedural page Exception.php
-
EventListener.php
-
procedural page EventListener.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Export.php
-
procedural page Export.php
-
Exception.php
-
procedural page Exception.php
-
Expression.php
-
procedural page Expression.php
-
Equal.php
-
procedural page Equal.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
Email.php
-
procedural page Email.php
-
Enum.php
-
procedural page Enum.php
-
ErrorStack.php
-
procedural page ErrorStack.php
-
Exception.php
-
procedural page Exception.php
-
Exception.php
-
procedural page Exception.php
-
end
-
in file Event.php, method Doctrine_Event::end()
    end ends the internal timer of this event
-
enumIndex
-
in file Column.php, method Doctrine_Column::enumIndex()
    enumIndex
-
enumIndex
-
in file Table.php, method Doctrine_Table::enumIndex()
    enumIndex
-
enumValue
-
in file Column.php, method Doctrine_Column::enumValue()
    enumValue
-
enumValue
-
in file Table.php, method Doctrine_Table::enumValue()
    enumValue
-
eq
-
in file Driver.php, method Doctrine_Expression_Driver::eq()
    Returns the SQL to check if two values are equal.
-
ERR
-
in file Doctrine.php, class constant Doctrine::ERR
    ERROR CONSTANTS
-
ERRMODE_EXCEPTION
-
in file Adapter.php, class constant Doctrine_Adapter::ERRMODE_EXCEPTION
-
ERRMODE_EXCEPTION
-
in file Doctrine.php, class constant Doctrine::ERRMODE_EXCEPTION
-
ERRMODE_SILENT
-
in file Adapter.php, class constant Doctrine_Adapter::ERRMODE_SILENT
-
ERRMODE_SILENT
-
in file Doctrine.php, class constant Doctrine::ERRMODE_SILENT
-
ERRMODE_WARNING
-
in file Adapter.php, class constant Doctrine_Adapter::ERRMODE_WARNING
-
ERRMODE_WARNING
-
in file Doctrine.php, class constant Doctrine::ERRMODE_WARNING
-
errorCode
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
errorCode
-
in file Statement.php, method Doctrine_Connection_Statement::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
errorCode
-
in file Statement.php, method Doctrine_Adapter_Statement::errorCode()
-
errorCode
-
in file Interface.php, method Doctrine_Adapter_Interface::errorCode()
-
errorCode
-
in file Connection.php, method Doctrine_Connection::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the database handle
-
errorInfo
-
in file Statement.php, method Doctrine_Connection_Statement::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the statement handle
-
errorInfo
-
in file Statement.php, method Doctrine_Adapter_Statement::errorInfo()
-
errorInfo
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the statement handle
-
errorInfo
-
in file Connection.php, method Doctrine_Connection::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the database handle
-
errorInfo
-
in file Interface.php, method Doctrine_Adapter_Interface::errorInfo()
-
errorMessage
-
in file Exception.php, method Doctrine_Exception::errorMessage()
    Return a textual error message for a Doctrine error code
-
errorMessage
-
in file Exception.php, method Doctrine_Connection_Exception::errorMessage()
    Return a textual error message for a Doctrine error code
-
errorStack
-
in file Record.php, method Doctrine_Record::errorStack()
    errorStack assigns / returns record errorStack
-
ERR_ACCESS_VIOLATION
-
in file Doctrine.php, class constant Doctrine::ERR_ACCESS_VIOLATION
-
ERR_ALREADY_EXISTS
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_ALREADY_EXISTS
-
ERR_ALREADY_EXISTS
-
in file Doctrine.php, class constant Doctrine::ERR_ALREADY_EXISTS
-
ERR_CANNOT_ALTER
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_ALTER
-
ERR_CANNOT_CREATE
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_CREATE
-
ERR_CANNOT_DELETE
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_DELETE
-
ERR_CANNOT_DROP
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_DROP
-
ERR_CANNOT_REPLACE
-
in file Doctrine.php, class constant Doctrine::ERR_CANNOT_REPLACE
-
ERR_CANT_MAP
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_CANT_MAP
-
ERR_CLASS_NAME
-
in file Doctrine.php, class constant Doctrine::ERR_CLASS_NAME
-
ERR_CONNECT_FAILED
-
in file Doctrine.php, class constant Doctrine::ERR_CONNECT_FAILED
-
ERR_CONSTRAINT
-
in file Doctrine.php, class constant Doctrine::ERR_CONSTRAINT
-
ERR_CONSTRAINT
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_CONSTRAINT
-
ERR_CONSTRAINT_NOT_NULL
-
in file Doctrine.php, class constant Doctrine::ERR_CONSTRAINT_NOT_NULL
-
ERR_DEADLOCK
-
in file Doctrine.php, class constant Doctrine::ERR_DEADLOCK
-
ERR_DISCONNECTED
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_DISCONNECTED
-
ERR_DIVZERO
-
in file Doctrine.php, class constant Doctrine::ERR_DIVZERO
-
ERR_EXTENSION_NOT_FOUND
-
in file Doctrine.php, class constant Doctrine::ERR_EXTENSION_NOT_FOUND
-
ERR_INSUFFICIENT_DATA
-
in file Doctrine.php, class constant Doctrine::ERR_INSUFFICIENT_DATA
-
ERR_INVALID
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID
-
ERR_INVALID_DATE
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID_DATE
-
ERR_INVALID_DSN
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID_DSN
-
ERR_INVALID_NUMBER
-
in file Doctrine.php, class constant Doctrine::ERR_INVALID_NUMBER
-
ERR_LOADMODULE
-
in file Doctrine.php, class constant Doctrine::ERR_LOADMODULE
-
ERR_MANAGER
-
in file Doctrine.php, class constant Doctrine::ERR_MANAGER
-
ERR_MANAGER_PARSE
-
in file Doctrine.php, class constant Doctrine::ERR_MANAGER_PARSE
-
ERR_MISMATCH
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_MISMATCH
-
ERR_MISMATCH
-
in file Doctrine.php, class constant Doctrine::ERR_MISMATCH
-
ERR_NEED_MORE_DATA
-
in file Doctrine.php, class constant Doctrine::ERR_NEED_MORE_DATA
-
ERR_NODBSELECTED
-
in file Doctrine.php, class constant Doctrine::ERR_NODBSELECTED
-
ERR_NONE
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NONE
-
ERR_NOSUCHDB
-
in file Doctrine.php, class constant Doctrine::ERR_NOSUCHDB
-
ERR_NOSUCHFIELD
-
in file Doctrine.php, class constant Doctrine::ERR_NOSUCHFIELD
-
ERR_NOSUCHTABLE
-
in file Doctrine.php, class constant Doctrine::ERR_NOSUCHTABLE
-
ERR_NOT_CAPABLE
-
in file Doctrine.php, class constant Doctrine::ERR_NOT_CAPABLE
-
ERR_NOT_FOUND
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NOT_FOUND
-
ERR_NOT_FOUND
-
in file Doctrine.php, class constant Doctrine::ERR_NOT_FOUND
-
ERR_NOT_IMPLEMENTED
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NOT_IMPLEMENTED
-
ERR_NOT_LOCKED
-
in file Doctrine.php, class constant Doctrine::ERR_NOT_LOCKED
-
ERR_NO_PERM
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_NO_PERM
-
ERR_SYNTAX
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_SYNTAX
-
ERR_SYNTAX
-
in file Doctrine.php, class constant Doctrine::ERR_SYNTAX
-
ERR_TRUNCATED
-
in file Adapter.php, class constant Doctrine_Adapter::ERR_TRUNCATED
-
ERR_TRUNCATED
-
in file Doctrine.php, class constant Doctrine::ERR_TRUNCATED
-
ERR_UNSUPPORTED
-
in file Doctrine.php, class constant Doctrine::ERR_UNSUPPORTED
-
ERR_VALUE_COUNT_ON_ROW
-
in file Doctrine.php, class constant Doctrine::ERR_VALUE_COUNT_ON_ROW
-
escapePattern
-
in file Formatter.php, method Doctrine_Formatter::escapePattern()
    Quotes pattern (% and _) characters in a string)
-
evict
-
in file Repository.php, method Doctrine_Table_Repository::evict()
-
evictAll
-
in file Repository.php, method Doctrine_Table_Repository::evictAll()
-
evictTables
-
in file Connection.php, method Doctrine_Connection::evictTables()
    evictTables evicts all tables
-
exec
-
in file Connection.php, method Doctrine_Connection::exec()
    exec
-
exec
-
in file Interface.php, method Doctrine_Adapter_Interface::exec()
-
execute
-
in file Statement.php, method Doctrine_Connection_Statement::execute()
    execute Executes a prepared statement
-
execute
-
in file View.php, method Doctrine_View::execute()
    execute executes the view returns a collection of Doctrine_Record objects
-
execute
-
in file Statement.php, method Doctrine_Adapter_Statement::execute()
-
execute
-
in file Query.php, method Doctrine_Search_Query::execute()
-
execute
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::execute()
    execute Executes a prepared statement
-
execute
-
in file Hydrate.php, method Doctrine_Hydrate::execute()
    execute executes the query and populates the data set
-
execute
-
in file Connection.php, method Doctrine_Connection::execute()
    execute
-
exists
-
in file Null.php, method Doctrine_Null::exists()
-
exists
-
in file Record.php, method Doctrine_Record::exists()
    exists returns true if this record is persistent, otherwise false
-
expireCache
-
in file Hydrate.php, method Doctrine_Hydrate::expireCache()
    expireCache
-
export
-
in file Table.php, method Doctrine_Table::export()
    export exports this table to database based on column and option definitions
-
exportClasses
-
in file Export.php, method Doctrine_Export::exportClasses()
    exportClasses method for exporting Doctrine_Record classes to a schema
-
exportClassesSql
-
in file Export.php, method Doctrine_Export::exportClassesSql()
    exportClassesSql method for exporting Doctrine_Record classes to a schema
-
exportConstraints
-
in file Table.php, method Doctrine_Table::exportConstraints()
    exportConstraints exports the constraints of this table into database based on option definitions
-
exportSchema
-
in file Export.php, method Doctrine_Export::exportSchema()
    exportSchema method for exporting Doctrine_Record classes to a schema
-
exportSchema
-
in file Doctrine.php, method Doctrine::exportSchema()
    exportSchema method for exporting Doctrine_Record classes to a schema
-
exportSchema
-
in file Schema.php, method Doctrine_Export_Schema::exportSchema()
    exportSchema
-
exportSql
-
in file Doctrine.php, method Doctrine::exportSql()
    exportSql method for exporting Doctrine_Record classes to a schema
-
exportSql
-
in file Export.php, method Doctrine_Export::exportSql()
    exportSql returns the sql for exporting Doctrine_Record classes to a schema
-
exportTable
-
in file Export.php, method Doctrine_Export::exportTable()
    exportTable exports given table into database based on column and option definitions
-
EXPORT_ALL
-
in file Doctrine.php, class constant Doctrine::EXPORT_ALL
    export all
-
EXPORT_CONSTRAINTS
-
in file Doctrine.php, class constant Doctrine::EXPORT_CONSTRAINTS
    export constraints
-
EXPORT_NONE
-
in file Doctrine.php, class constant Doctrine::EXPORT_NONE
    turns of exporting
-
EXPORT_TABLES
-
in file Doctrine.php, class constant Doctrine::EXPORT_TABLES
    export tables
-
$exception
-
in file Mock.php, variable Doctrine_Adapter_Mock::$exception
-
errorCode
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::errorCode()
    errorCode Fetch the SQLSTATE associated with the last operation on the statement handle
-
errorCode
-
in file Mock.php, method Doctrine_Adapter_Mock::errorCode()
-
errorInfo
-
in file Mock.php, method Doctrine_Adapter_Mock::errorInfo()
-
errorInfo
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::errorInfo()
    errorInfo Fetch extended error information associated with the last operation on the statement handle
-
exec
-
in file Mock.php, method Doctrine_Adapter_Mock::exec()
-
execute
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::execute()
    execute Executes a prepared statement
-
Exception.php
-
procedural page Exception.php
-
-
- -
-
f
-
[Top]
-
-
-
-

f

-
-
$fieldParsers
-
in file Hook.php, variable Doctrine_Hook::$fieldParsers
-
$fields
-
in file RawSql.php, variable Doctrine_RawSql::$fields
-
Firebird.php
-
procedural page Firebird.php
-
Firebird.php
-
procedural page Firebird.php
-
Frontbase.php
-
procedural page Frontbase.php
-
Firebird.php
-
procedural page Firebird.php
-
File.php
-
procedural page File.php
-
Formatter.php
-
procedural page Formatter.php
-
Firebird.php
-
procedural page Firebird.php
-
Filter.php
-
procedural page Filter.php
-
From.php
-
procedural page From.php
-
Filter.php
-
procedural page Filter.php
-
ForeignKey.php
-
procedural page ForeignKey.php
-
Firebird.php
-
procedural page Firebird.php
-
Firebird.php
-
procedural page Firebird.php
-
factory
-
in file Tree.php, method Doctrine_Tree::factory()
    factory method to return tree instance based upon chosen implementation
-
factory
-
in file Node.php, method Doctrine_Node::factory()
    factory method to return node instance based upon chosen implementation
-
fetch
-
in file Statement.php, method Doctrine_Adapter_Statement::fetch()
    fetch
-
fetch
-
in file Statement.php, method Doctrine_Connection_Statement::fetch()
    fetch
-
fetch
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetch()
    fetch
-
fetchAll
-
in file Connection.php, method Doctrine_Connection::fetchAll()
    fetchAll
-
fetchAll
-
in file Statement.php, method Doctrine_Connection_Statement::fetchAll()
    fetchAll Returns an array containing all of the result set rows
-
fetchAll
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetchAll()
    fetchAll Returns an array containing all of the result set rows
-
fetchArray
-
in file Hydrate.php, method Doctrine_Hydrate::fetchArray()
    fetchArray Convenience method to execute using array fetching as hydration mode.
-
fetchArray
-
in file Connection.php, method Doctrine_Connection::fetchArray()
    fetchArray
-
fetchAssoc
-
in file Connection.php, method Doctrine_Connection::fetchAssoc()
    fetchAssoc
-
fetchBoth
-
in file Connection.php, method Doctrine_Connection::fetchBoth()
    fetchBoth
-
fetchBranch
-
in file Interface.php, method Doctrine_Tree_Interface::fetchBranch()
    optimised method that returns iterator for traversal of the tree from the given record primary key
-
fetchBranch
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchBranch()
    Fetches a branch of a tree.
-
fetchColumn
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetchColumn()
    fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
fetchColumn
-
in file Connection.php, method Doctrine_Connection::fetchColumn()
    fetchColumn
-
fetchColumn
-
in file Statement.php, method Doctrine_Connection_Statement::fetchColumn()
    fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
fetchObject
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::fetchObject()
    fetchObject Fetches the next row and returns it as an object.
-
fetchObject
-
in file Statement.php, method Doctrine_Connection_Statement::fetchObject()
    fetchObject Fetches the next row and returns it as an object.
-
fetchOne
-
in file Hydrate.php, method Doctrine_Hydrate::fetchOne()
    fetchOne Convenience method to execute the query and return the first item of the collection.
-
fetchOne
-
in file Connection.php, method Doctrine_Connection::fetchOne()
    fetchOne
-
fetchRelatedFor
-
in file ForeignKey.php, method Doctrine_Relation_ForeignKey::fetchRelatedFor()
    fetchRelatedFor
-
fetchRelatedFor
-
in file LocalKey.php, method Doctrine_Relation_LocalKey::fetchRelatedFor()
    fetchRelatedFor
-
fetchRelatedFor
-
in file Self.php, method Doctrine_Relation_Association_Self::fetchRelatedFor()
-
fetchRelatedFor
-
in file Association.php, method Doctrine_Relation_Association::fetchRelatedFor()
    fetchRelatedFor
-
fetchRelatedFor
-
in file Relation.php, method Doctrine_Relation::fetchRelatedFor()
    fetchRelatedFor
-
fetchRelatedFor
-
in file Nest.php, method Doctrine_Relation_Nest::fetchRelatedFor()
-
fetchRoot
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchRoot()
    Fetches a/the root node.
-
fetchRoots
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchRoots()
    Fetches all root nodes. If the tree has only one root this is the same as fetchRoot().
-
fetchRow
-
in file Connection.php, method Doctrine_Connection::fetchRow()
    fetchRow
-
fetchTree
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::fetchTree()
    Fetches a tree.
-
fetchTree
-
in file Interface.php, method Doctrine_Tree_Interface::fetchTree()
    optimised method to returns iterator for traversal of the entire tree from root
-
FETCH_ARRAY
-
in file Doctrine.php, class constant Doctrine::FETCH_ARRAY
    FETCH ARRAY
-
FETCH_ASSOC
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ASSOC
-
FETCH_ASSOC
-
in file Doctrine.php, class constant Doctrine::FETCH_ASSOC
-
FETCH_BATCH
-
in file Doctrine.php, class constant Doctrine::FETCH_BATCH
    BATCH FETCHING
-
FETCH_BOTH
-
in file Doctrine.php, class constant Doctrine::FETCH_BOTH
-
FETCH_BOTH
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_BOTH
-
FETCH_BOUND
-
in file Doctrine.php, class constant Doctrine::FETCH_BOUND
-
FETCH_BOUND
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_BOUND
-
FETCH_CLASS
-
in file Doctrine.php, class constant Doctrine::FETCH_CLASS
-
FETCH_CLASS
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_CLASS
-
FETCH_CLASSTYPE
-
in file Doctrine.php, class constant Doctrine::FETCH_CLASSTYPE
-
FETCH_CLASSTYPE
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_CLASSTYPE
-
FETCH_COLUMN
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_COLUMN
-
FETCH_COLUMN
-
in file Doctrine.php, class constant Doctrine::FETCH_COLUMN
-
FETCH_FUNC
-
in file Doctrine.php, class constant Doctrine::FETCH_FUNC
-
FETCH_FUNC
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_FUNC
-
FETCH_GROUP
-
in file Doctrine.php, class constant Doctrine::FETCH_GROUP
-
FETCH_GROUP
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_GROUP
-
FETCH_IMMEDIATE
-
in file Doctrine.php, class constant Doctrine::FETCH_IMMEDIATE
    IMMEDIATE FETCHING
-
FETCH_INTO
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_INTO
-
FETCH_INTO
-
in file Doctrine.php, class constant Doctrine::FETCH_INTO
-
FETCH_LAZY
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_LAZY
-
FETCH_LAZY
-
in file Doctrine.php, class constant Doctrine::FETCH_LAZY
-
FETCH_LAZY_OFFSET
-
in file Doctrine.php, class constant Doctrine::FETCH_LAZY_OFFSET
    LAZY OFFSET FETCHING
-
FETCH_NAMED
-
in file Doctrine.php, class constant Doctrine::FETCH_NAMED
-
FETCH_NAMED
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_NAMED
-
FETCH_NUM
-
in file Doctrine.php, class constant Doctrine::FETCH_NUM
-
FETCH_NUM
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_NUM
-
FETCH_OBJ
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_OBJ
-
FETCH_OBJ
-
in file Doctrine.php, class constant Doctrine::FETCH_OBJ
-
FETCH_OFFSET
-
in file Doctrine.php, class constant Doctrine::FETCH_OFFSET
    LAZY FETCHING
-
FETCH_ORI_ABS
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_ABS
-
FETCH_ORI_ABS
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_ABS
-
FETCH_ORI_FIRST
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_FIRST
-
FETCH_ORI_FIRST
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_FIRST
-
FETCH_ORI_LAST
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_LAST
-
FETCH_ORI_LAST
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_LAST
-
FETCH_ORI_NEXT
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_NEXT
-
FETCH_ORI_NEXT
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_NEXT
-
FETCH_ORI_PRIOR
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_PRIOR
-
FETCH_ORI_PRIOR
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_PRIOR
-
FETCH_ORI_REL
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_ORI_REL
-
FETCH_ORI_REL
-
in file Doctrine.php, class constant Doctrine::FETCH_ORI_REL
-
FETCH_RECORD
-
in file Doctrine.php, class constant Doctrine::FETCH_RECORD
    FETCH RECORD
-
FETCH_SERIALIZE
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_SERIALIZE
-
FETCH_SERIALIZE
-
in file Doctrine.php, class constant Doctrine::FETCH_SERIALIZE
-
FETCH_UNIQUE
-
in file Doctrine.php, class constant Doctrine::FETCH_UNIQUE
-
FETCH_UNIQUE
-
in file Adapter.php, class constant Doctrine_Adapter::FETCH_UNIQUE
-
FETCH_VHOLDER
-
in file Doctrine.php, class constant Doctrine::FETCH_VHOLDER
    FETCH VALUEHOLDER
-
find
-
in file Table.php, method Doctrine_Table::find()
    finds a record by its identifier
-
findAll
-
in file Table.php, method Doctrine_Table::findAll()
    findAll returns a collection of records
-
findByDql
-
in file Table.php, method Doctrine_Table::findByDql()
-
findBySql
-
in file Table.php, method Doctrine_Table::findBySql()
    findByDql finds records with given DQL where clause returns a collection of records
-
findRoot
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::findRoot()
    returns root node
-
findRoot
-
in file Interface.php, method Doctrine_Tree_Interface::findRoot()
    returns root node
-
fixIndexName
-
in file Formatter.php, method Doctrine_Formatter::fixIndexName()
    Removes any formatting in an index name using the 'idxname_format' option
-
fixSequenceName
-
in file Formatter.php, method Doctrine_Formatter::fixSequenceName()
    Removes any formatting in an sequence name using the 'seqname_format' option
-
flush
-
in file Record.php, method Doctrine_Hydrate_Record::flush()
-
flush
-
in file Array.php, method Doctrine_Hydrate_Array::flush()
-
flush
-
in file Connection.php, method Doctrine_Connection::flush()
    flush saves all the records from all tables this operation is isolated using a transaction
-
formatSql
-
in file Lib.php, method Doctrine_Lib::formatSql()
-
forUpdate
-
in file Abstract.php, method Doctrine_Query_Abstract::forUpdate()
    forUpdate Makes the query SELECT FOR UPDATE.
-
free
-
in file Query.php, method Doctrine_Query::free()
    Frees the resources used by the query object. It especially breaks a cyclic reference between the query object and it's parsers. This enables PHP's current GC to reclaim the memory.
-
from
-
in file Abstract.php, method Doctrine_Query_Abstract::from()
    from sets the FROM part of the query
-
functionTable
-
in file Firebird.php, method Doctrine_Expression_Firebird::functionTable()
    return string for internal table used when calling only a function
-
fetch
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetch()
    fetch
-
fetchAll
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetchAll()
    fetchAll Returns an array containing all of the result set rows
-
fetchColumn
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetchColumn()
    fetchColumn Returns a single column from the next row of a result set or FALSE if there are no more rows.
-
fetchObject
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::fetchObject()
    fetchObject Fetches the next row and returns it as an object.
-
forceException
-
in file Mock.php, method Doctrine_Adapter_Mock::forceException()
-
forceLastInsertIdFail
-
in file Mock.php, method Doctrine_Adapter_Mock::forceLastInsertIdFail()
-
fetch
-
in file Memcache.php, method Doctrine_Cache_Memcache::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Interface.php, method Doctrine_Cache_Interface::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Db.php, method Doctrine_Cache_Db::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Array.php, method Doctrine_Cache_Array::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
fetch
-
in file Apc.php, method Doctrine_Cache_Apc::fetch()
    Test if a cache is available for the given id and (if yes) return it (false else)
-
Firebird.php
-
procedural page Firebird.php
-
-
- -
-
g
-
[Top]
-
-
-
-

g

-
-
Groupby.php
-
procedural page Groupby.php
-
generateMessage
-
in file Exception.php, method Doctrine_Validator_Exception::generateMessage()
-
generateNewTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::generateNewTableAlias()
    generateNewTableAlias generates a new alias from given table alias
-
generateTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::generateTableAlias()
    generateTableAlias generates a table alias from given table name and associates it with given component alias
-
get
-
in file Object.php, method Doctrine_Schema_Object::get()
-
get
-
in file Chain.php, method Doctrine_Query_Filter_Chain::get()
    returns a Doctrine_Query_Filter on success and null on failure
-
get
-
in file Chain.php, method Doctrine_Record_Listener_Chain::get()
    returns a Doctrine_Record_Listener on success and null on failure
-
get
-
in file Column.php, method Doctrine_Column::get()
    get
-
get
-
in file Repository.php, method Doctrine_Table_Repository::get()
    get
-
get
-
in file Profiler.php, method Doctrine_Connection_Profiler::get()
    get
-
get
-
in file Record.php, method Doctrine_Record::get()
    get returns a value of a property or a related component
-
get
-
in file Chain.php, method Doctrine_EventListener_Chain::get()
    returns a Doctrine_EventListener on success and null on failure
-
get
-
in file Collection.php, method Doctrine_Collection::get()
    get returns a record for given key
-
get
-
in file File.php, method Doctrine_File::get()
-
get
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::get()
    Enter description here...
-
getAdvancedForeignKeyOptions
-
in file Oracle.php, method Doctrine_Export_Oracle::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Pgsql.php, method Doctrine_Export_Pgsql::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Sqlite.php, method Doctrine_Export_Sqlite::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Export.php, method Doctrine_Export::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAdvancedForeignKeyOptions
-
in file Mysql.php, method Doctrine_Export_Mysql::getAdvancedForeignKeyOptions()
    getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, ...
-
getAggregateAlias
-
in file Query.php, method Doctrine_Query::getAggregateAlias()
    getAggregateAlias
-
getAlias
-
in file Relation.php, method Doctrine_Relation::getAlias()
    getAlias returns the relation alias
-
getAliasDeclaration
-
in file Hydrate.php, method Doctrine_Hydrate::getAliasDeclaration()
    getAliasDeclaration get the declaration for given component alias
-
getAliasMap
-
in file Hydrate.php, method Doctrine_Hydrate::getAliasMap()
    getAliasMap returns the component alias map
-
getAll
-
in file Profiler.php, method Doctrine_Connection_Profiler::getAll()
    getAll returns all profiled events as an array
-
getAncestors
-
in file Interface.php, method Doctrine_Node_Interface::getAncestors()
    gets ancestors for node
-
getAncestors
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getAncestors()
    gets ancestors for node
-
getAssociationFactory
-
in file Association.php, method Doctrine_Relation_Association::getAssociationFactory()
-
getAssociationTable
-
in file Association.php, method Doctrine_Relation_Association::getAssociationTable()
-
getAttribute
-
in file Connection.php, method Doctrine_Connection::getAttribute()
    getAttribute retrieves a database connection attribute
-
getAttribute
-
in file Configurable.php, method Doctrine_Configurable::getAttribute()
    returns the value of an attribute
-
getAttribute
-
in file Statement.php, method Doctrine_Connection_Statement::getAttribute()
    getAttribute Retrieve a statement attribute
-
getAttribute
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::getAttribute()
    getAttribute Retrieve a statement attribute
-
getAttribute
-
in file Tree.php, method Doctrine_Tree::getAttribute()
    gets tree attribute value
-
getAttributes
-
in file Configurable.php, method Doctrine_Configurable::getAttributes()
    getAttributes returns all attributes as an array
-
getAuditLog
-
in file Versionable.php, method Doctrine_Template_Versionable::getAuditLog()
-
getAvailableDrivers
-
in file Connection.php, method Doctrine_Connection::getAvailableDrivers()
    returns an array of available PDO drivers
-
getBaseAlias
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getBaseAlias()
    Enter description here...
-
getBaseComponent
-
in file Tree.php, method Doctrine_Tree::getBaseComponent()
    Returns the base tree component.
-
getBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getBaseQuery()
    Enter description here...
-
getCachedForm
-
in file Hydrate.php, method Doctrine_Hydrate::getCachedForm()
    getCachedForm returns the cached form of this query for given resultSet
-
getCacheDriver
-
in file Hydrate.php, method Doctrine_Hydrate::getCacheDriver()
    getCacheDriver returns the cache driver associated with this object
-
getCacheDriver
-
in file Configurable.php, method Doctrine_Configurable::getCacheDriver()
    getCacheDriver
-
getCharsetFieldDeclaration
-
in file Export.php, method Doctrine_Export::getCharsetFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
-
getCheckDeclaration
-
in file Export.php, method Doctrine_Export::getCheckDeclaration()
    Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE.
-
getChildren
-
in file Interface.php, method Doctrine_Node_Interface::getChildren()
    gets children for node (direct descendants only)
-
getChildren
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getChildren()
    gets children for node (direct descendants only)
-
getClassnameToReturn
-
in file Table.php, method Doctrine_Table::getClassnameToReturn()
    Get the classname to return. Most often this is just the options['name']
-
getCode
-
in file Event.php, method Doctrine_Event::getCode()
    getCode
-
getCollationFieldDeclaration
-
in file Export.php, method Doctrine_Export::getCollationFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
-
getCollectionAsString
-
in file Lib.php, method Doctrine_Lib::getCollectionAsString()
    returns a string representation of Doctrine_Collection object
-
getCollectionAsXml
-
in file Lib.php, method Doctrine_Lib::getCollectionAsXml()
    Return an collection of records as XML.
-
getColumn
-
in file Table.php, method Doctrine_Schema_Table::getColumn()
-
getColumnCount
-
in file Table.php, method Doctrine_Table::getColumnCount()
    getColumnCount
-
getColumnMeta
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::getColumnMeta()
    getColumnMeta Returns metadata for a column in a result set
-
getColumnMeta
-
in file Statement.php, method Doctrine_Connection_Statement::getColumnMeta()
    getColumnMeta Returns metadata for a column in a result set
-
getColumnName
-
in file Table.php, method Doctrine_Table::getColumnName()
    getColumnName
-
getColumnNames
-
in file Table.php, method Doctrine_Table::getColumnNames()
    returns an array containing all the column names
-
getColumns
-
in file Table.php, method Doctrine_Table::getColumns()
    returns all columns and their definitions
-
getColumns
-
in file Table.php, method Doctrine_Schema_Table::getColumns()
    returns an array of Doctrine_Schema_Column objects
-
getComponentAlias
-
in file Manager.php, method Doctrine_Manager::getComponentAlias()
    getComponentAlias
-
getComponentAlias
-
in file Hydrate.php, method Doctrine_Hydrate::getComponentAlias()
    getComponentAlias get component alias associated with given table alias
-
getComponentName
-
in file Table.php, method Doctrine_Table::getComponentName()
-
getCondition
-
in file LocalKey.php, method Doctrine_Relation_LocalKey::getCondition()
    getCondition
-
getCondition
-
in file Parser.php, method Doctrine_Hook_Parser::getCondition()
-
getCondition
-
in file ForeignKey.php, method Doctrine_Relation_ForeignKey::getCondition()
    getCondition
-
getConnection
-
in file Table.php, method Doctrine_Table::getConnection()
-
getConnection
-
in file View.php, method Doctrine_View::getConnection()
    getConnection returns the connection object
-
getConnection
-
in file Statement.php, method Doctrine_Connection_Statement::getConnection()
    getConnection returns the connection object this statement uses
-
getConnection
-
in file Hydrate.php, method Doctrine_Hydrate::getConnection()
    getConnection
-
getConnection
-
in file Manager.php, method Doctrine_Manager::getConnection()
    getConnection
-
getConnection
-
in file Expression.php, method Doctrine_Expression::getConnection()
-
getConnection
-
in file Module.php, method Doctrine_Connection_Module::getConnection()
    getConnection returns the connection object this module uses
-
getConnectionAsString
-
in file Lib.php, method Doctrine_Lib::getConnectionAsString()
    returns a string representation of Doctrine_Connection object
-
getConnectionForComponent
-
in file Manager.php, method Doctrine_Manager::getConnectionForComponent()
    getConnectionForComponent
-
getConnectionName
-
in file Manager.php, method Doctrine_Manager::getConnectionName()
    getConnectionName
-
getConnections
-
in file Manager.php, method Doctrine_Manager::getConnections()
    getConnections returns all opened connections
-
getConnectionStateAsString
-
in file Lib.php, method Doctrine_Lib::getConnectionStateAsString()
    getStateAsString
-
getCountries
-
in file Country.php, method Doctrine_Validator_Country::getCountries()
-
getCurrentConnection
-
in file Manager.php, method Doctrine_Manager::getCurrentConnection()
    getCurrentConnection returns the current connection
-
getData
-
in file Record.php, method Doctrine_Record::getData()
    getData return all the internal data
-
getData
-
in file Collection.php, method Doctrine_Collection::getData()
    getData returns all the records as an array
-
getData
-
in file Table.php, method Doctrine_Table::getData()
    returns internal data, used by Doctrine_Record instances when retrieving data from database
-
getDatabaseFile
-
in file Sqlite.php, method Doctrine_Connection_Sqlite::getDatabaseFile()
    getDatabaseFile
-
getDatabases
-
in file Schema.php, method Doctrine_Schema::getDatabases()
    Return the childs for this schema
-
getDbh
-
in file Connection.php, method Doctrine_Connection::getDbh()
    returns the database handler of which this connection uses
-
getDeclaration
-
in file Export.php, method Doctrine_Export::getDeclaration()
    Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE.
-
getDefaultFieldDeclaration
-
in file Export.php, method Doctrine_Export::getDefaultFieldDeclaration()
    getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
-
getDefaultFieldDeclaration
-
in file Mysql.php, method Doctrine_Export_Mysql::getDefaultFieldDeclaration()
    getDefaultDeclaration Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
-
getDefaultLength
-
in file DataType.php, method Doctrine_DataType::getDefaultLength()
-
getDefaultValueOf
-
in file Table.php, method Doctrine_Table::getDefaultValueOf()
    getDefaultValueOf returns the default value(if any) for given column
-
getDefinition
-
in file Column.php, method Doctrine_Column::getDefinition()
-
getDefinitionOf
-
in file Table.php, method Doctrine_Table::getDefinitionOf()
    getDefinitionOf
-
getDeleteActions
-
in file Manager.php, method Doctrine_Manager::getDeleteActions()
-
getDeleteDiff
-
in file Collection.php, method Doctrine_Collection::getDeleteDiff()
-
getDeletes
-
in file Transaction.php, method Doctrine_Transaction::getDeletes()
    returns the pending delete list
-
getDescendants
-
in file Interface.php, method Doctrine_Node_Interface::getDescendants()
    gets descendants for node (direct descendants only)
-
getDescendants
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getDescendants()
    gets descendants for node (direct descendants only)
-
getDql
-
in file Query.php, method Doctrine_Query::getDql()
    getDql returns the DQL query associated with this object
-
getDqlPart
-
in file Query.php, method Doctrine_Query::getDqlPart()
    getDqlPart returns the given DQL query part
-
getElapsedSecs
-
in file Event.php, method Doctrine_Event::getElapsedSecs()
    Get the elapsed time (in microseconds) that the event ran. If the event has not yet ended, return false.
-
getElement
-
in file Array.php, method Doctrine_Hydrate_Array::getElement()
-
getElement
-
in file Record.php, method Doctrine_Hydrate_Record::getElement()
-
getElementCollection
-
in file Array.php, method Doctrine_Hydrate_Array::getElementCollection()
-
getElementCollection
-
in file Record.php, method Doctrine_Hydrate_Record::getElementCollection()
-
getEnumParams
-
in file Query.php, method Doctrine_Query::getEnumParams()
    getEnumParams get all enumerated parameters
-
getEnumValues
-
in file Table.php, method Doctrine_Table::getEnumValues()
-
getEnumValues
-
in file Column.php, method Doctrine_Column::getEnumValues()
-
getErrorStack
-
in file Record.php, method Doctrine_Record::getErrorStack()
    getErrorStack
-
getExportableFormat
-
in file Table.php, method Doctrine_Table::getExportableFormat()
    getExportableFormat returns exportable presentation of this object
-
getFieldDeclarationList
-
in file Export.php, method Doctrine_Export::getFieldDeclarationList()
    Get declaration of a number of field in bulk
-
getFields
-
in file RawSql.php, method Doctrine_RawSql::getFields()
    getFields returns the fields associated with this parser
-
getFirst
-
in file Collection.php, method Doctrine_Collection::getFirst()
    getFirst returns the first record in the collection
-
getFirstChild
-
in file Interface.php, method Doctrine_Node_Interface::getFirstChild()
    gets record of first child or empty record
-
getFirstChild
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getFirstChild()
    gets record of first child or empty record
-
getForeign
-
in file Relation.php, method Doctrine_Relation::getForeign()
    getForeign returns the name of the foreignkey column where the localkey column is pointing at
-
getForeignKeyBaseDeclaration
-
in file Export.php, method Doctrine_Export::getForeignKeyBaseDeclaration()
    getForeignKeyBaseDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.
-
getForeignKeyDeclaration
-
in file Export.php, method Doctrine_Export::getForeignKeyDeclaration()
    getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.
-
getForeignKeyReferentialAction
-
in file Export.php, method Doctrine_Export::getForeignKeyReferentialAction()
    getForeignKeyReferentialAction
-
getIdentifier
-
in file Driver.php, method Doctrine_Expression_Driver::getIdentifier()
-
getIdentifier
-
in file Table.php, method Doctrine_Table::getIdentifier()
-
getIdentifiers
-
in file Parser.php, method Doctrine_Relation_Parser::getIdentifiers()
    getIdentifiers gives a list of identifiers from given table
-
getIdentifiers
-
in file Driver.php, method Doctrine_Expression_Driver::getIdentifiers()
-
getIdentifierType
-
in file Table.php, method Doctrine_Table::getIdentifierType()
-
getImpl
-
in file Configurable.php, method Doctrine_Configurable::getImpl()
    getImpl returns the implementation for given class
-
getImpl
-
in file Parser.php, method Doctrine_Relation_Parser::getImpl()
    getImpl
-
getIncremented
-
in file Record.php, method Doctrine_Record::getIncremented()
    returns the value of autoincremented primary key of this object (if any)
-
getIndex
-
in file Table.php, method Doctrine_Table::getIndex()
    getIndex
-
getIndexDeclaration
-
in file Mysql.php, method Doctrine_Export_Mysql::getIndexDeclaration()
    Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexDeclaration
-
in file Export.php, method Doctrine_Export::getIndexDeclaration()
    Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexFieldDeclarationList
-
in file Export.php, method Doctrine_Export::getIndexFieldDeclarationList()
    getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexFieldDeclarationList
-
in file Sqlite.php, method Doctrine_Export_Sqlite::getIndexFieldDeclarationList()
    getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexFieldDeclarationList
-
in file Mysql.php, method Doctrine_Export_Mysql::getIndexFieldDeclarationList()
    getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.
-
getIndexName
-
in file Formatter.php, method Doctrine_Formatter::getIndexName()
    adds index name formatting to a index name
-
getInsertDiff
-
in file Collection.php, method Doctrine_Collection::getInsertDiff()
-
getInstance
-
in file Manager.php, method Doctrine_Manager::getInstance()
    getInstance returns an instance of this class (this class uses the singleton pattern)
-
getInvalidRecords
-
in file Exception.php, method Doctrine_Validator_Exception::getInvalidRecords()
-
getInvoker
-
in file Event.php, method Doctrine_Event::getInvoker()
    getInvoker returns the handler that invoked this event
-
getIsolation
-
in file Mysql.php, method Doctrine_Transaction_Mysql::getIsolation()
    getTransactionIsolation
-
getIsolation
-
in file Transaction.php, method Doctrine_Transaction::getIsolation()
    getTransactionIsolation
-
getIterator
-
in file Repository.php, method Doctrine_Table_Repository::getIterator()
    getIterator
-
getIterator
-
in file Record.php, method Doctrine_Record::getIterator()
    getIterator
-
getIterator
-
in file Reporter.php, method Doctrine_Export_Reporter::getIterator()
-
getIterator
-
in file Collection.php, method Doctrine_Collection::getIterator()
    getIterator
-
getIterator
-
in file Manager.php, method Doctrine_Manager::getIterator()
    getIterator returns an ArrayIterator that iterates through all connections
-
getIterator
-
in file Node.php, method Doctrine_Node::getIterator()
    get iterator
-
getIterator
-
in file Exception.php, method Doctrine_Validator_Exception::getIterator()
-
getIterator
-
in file Offset.php, method Doctrine_Collection_Offset::getIterator()
-
getIterator
-
in file Column.php, method Doctrine_Column::getIterator()
    getIterator
-
getIterator
-
in file Profiler.php, method Doctrine_Connection_Profiler::getIterator()
    getIterator returns an iterator that iterates through the logged events
-
getIterator
-
in file Object.php, method Doctrine_Schema_Object::getIterator()
    getIterator
-
getIterator
-
in file Connection.php, method Doctrine_Connection::getIterator()
    returns an iterator that iterators through all initialized table objects
-
getIterator
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::getIterator()
    Enter description here...
-
getKeyColumn
-
in file Collection.php, method Doctrine_Collection::getKeyColumn()
    getKeyColumn returns the name of the key column
-
getKeys
-
in file Collection.php, method Doctrine_Collection::getKeys()
    returns all keys
-
getLast
-
in file Collection.php, method Doctrine_Collection::getLast()
    getLast returns the last record in the collection
-
getLast
-
in file Record.php, method Doctrine_Record::getLast()
    getLast
-
getLastChild
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getLastChild()
    gets record of last child or empty record
-
getLastChild
-
in file Interface.php, method Doctrine_Node_Interface::getLastChild()
    gets record of last child or empty record
-
getLeftValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getLeftValue()
    gets record's left value
-
getLevel
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getLevel()
    gets level (depth) of node in the tree
-
getLevel
-
in file Interface.php, method Doctrine_Node_Interface::getLevel()
    gets level (depth) of node in the tree
-
getLimit
-
in file Offset.php, method Doctrine_Collection_Offset::getLimit()
-
getLimitSubquery
-
in file Query.php, method Doctrine_Query::getLimitSubquery()
    getLimitSubquery this is method is used by the record limit algorithm
-
getListener
-
in file Configurable.php, method Doctrine_Configurable::getListener()
    getListener
-
getListener
-
in file Abstract.php, method Doctrine_Record_Abstract::getListener()
    getListener
-
getLocal
-
in file Relation.php, method Doctrine_Relation::getLocal()
    getLocal returns the name of the local column
-
getLock
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::getLock()
    Obtains a lock on a Doctrine_Record
-
getLockOwner
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::getLockOwner()
    Gets the identifier that identifies the owner of the lock on the given record.
-
getManager
-
in file Connection.php, method Doctrine_Connection::getManager()
    returns the manager that created this connection
-
getMaxRootId
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getMaxRootId()
    calculates the current max root id
-
getModified
-
in file Record.php, method Doctrine_Record::getModified()
    returns an array of modified fields and associated values
-
getModuleName
-
in file Module.php, method Doctrine_Connection_Module::getModuleName()
    getModuleName returns the name of this module
-
getName
-
in file Column.php, method Doctrine_Schema_Column::getName()
-
getName
-
in file Event.php, method Doctrine_Event::getName()
    getName returns the name of this event
-
getName
-
in file DataType.php, method Doctrine_DataType::getName()
-
getName
-
in file View.php, method Doctrine_View::getName()
    getName returns the name of this view
-
getName
-
in file Connection.php, method Doctrine_Connection::getName()
    getName returns the name of this driver
-
getNativeDeclaration
-
in file Informix.php, method Doctrine_DataDict_Informix::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNextRootId
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::getNextRootId()
    calculates the next available root id
-
getNextSibling
-
in file Interface.php, method Doctrine_Node_Interface::getNextSibling()
    gets record of next sibling or empty record
-
getNextSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getNextSibling()
    gets record of next sibling or empty record
-
getNode
-
in file Record.php, method Doctrine_Record::getNode()
    getter for node assciated with this record
-
getNormalIterator
-
in file Collection.php, method Doctrine_Collection::getNormalIterator()
    getNormalIterator returns normal iterator - an iterator that will not expand this collection
-
getNullObject
-
in file Object.php, method Doctrine_Object::getNullObject()
    getNullObject returns the null object associated with this object
-
getNullPointer
-
in file Array.php, method Doctrine_Hydrate_Array::getNullPointer()
-
getNullPointer
-
in file Record.php, method Doctrine_Hydrate_Record::getNullPointer()
-
getNumberChildren
-
in file Interface.php, method Doctrine_Node_Interface::getNumberChildren()
    gets number of children (direct descendants)
-
getNumberChildren
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getNumberChildren()
    gets number of children (direct descendants)
-
getNumberDescendants
-
in file Interface.php, method Doctrine_Node_Interface::getNumberDescendants()
    gets number of descendants (children and their children)
-
getNumberDescendants
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getNumberDescendants()
    gets number of descendants (children and their children)
-
getOid
-
in file Record.php, method Doctrine_Record::getOid()
    getOid returns the object identifier
-
getOption
-
in file AuditLog.php, method Doctrine_AuditLog::getOption()
    getOption returns the value of given option
-
getOption
-
in file Table.php, method Doctrine_Table::getOption()
    getOption returns the value of given option
-
getOption
-
in file Plugin.php, method Doctrine_Plugin::getOption()
    returns the value of an option
-
getOption
-
in file Search.php, method Doctrine_Search::getOption()
-
getOptions
-
in file Plugin.php, method Doctrine_Plugin::getOptions()
    returns all options and their associated values
-
getOptions
-
in file Table.php, method Doctrine_Table::getOptions()
    getOptions returns all options of this table and the associated values
-
getOptions
-
in file AuditLog.php, method Doctrine_AuditLog::getOptions()
    getOptions returns all options of this table and the associated values
-
getParams
-
in file Query.php, method Doctrine_Search_Query::getParams()
-
getParams
-
in file Hydrate.php, method Doctrine_Hydrate::getParams()
    getParams
-
getParams
-
in file Event.php, method Doctrine_Event::getParams()
    getParams returns the parameters of the query
-
getParams
-
in file Parser.php, method Doctrine_Hook_Parser::getParams()
    getParams returns the parameters associated with this parser
-
getParent
-
in file Interface.php, method Doctrine_Node_Interface::getParent()
    gets record of parent or empty record
-
getParent
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getParent()
    gets record of parent or empty record
-
getParent
-
in file Configurable.php, method Doctrine_Configurable::getParent()
    getParent returns the parent of this component
-
getParser
-
in file Query.php, method Doctrine_Query::getParser()
    getParser parser lazy-loader
-
getPath
-
in file Doctrine.php, method Doctrine::getPath()
    getPath returns the doctrine root
-
getPath
-
in file Interface.php, method Doctrine_Node_Interface::getPath()
    gets path to node from root, uses record::toString() method to get node names
-
getPath
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getPath()
    gets path to node from root, uses record::toString() method to get node names
-
getPendingRelation
-
in file Parser.php, method Doctrine_Relation_Parser::getPendingRelation()
    getPendingRelation
-
getPortableCode
-
in file Exception.php, method Doctrine_Connection_Exception::getPortableCode()
    getPortableCode returns portable error code
-
getPortableMessage
-
in file Exception.php, method Doctrine_Connection_Exception::getPortableMessage()
    getPortableMessage returns portable error message
-
getPrepared
-
in file Record.php, method Doctrine_Record::getPrepared()
    getPrepared
-
getPrepared
-
in file Filter.php, method Doctrine_Record_Filter::getPrepared()
    getPrepared
-
getPrevSibling
-
in file Interface.php, method Doctrine_Node_Interface::getPrevSibling()
    gets record of prev sibling or empty record
-
getPrevSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getPrevSibling()
    gets record of prev sibling or empty record
-
getPrimaryKeys
-
in file Collection.php, method Doctrine_Collection::getPrimaryKeys()
-
getPrimaryKeys
-
in file Table.php, method Doctrine_Table::getPrimaryKeys()
    returns all primary keys
-
getProxy
-
in file Table.php, method Doctrine_Table::getProxy()
-
getQuery
-
in file RawSql.php, method Doctrine_RawSql::getQuery()
    getQuery builds the sql query from the given query parts
-
getQuery
-
in file Statement.php, method Doctrine_Connection_Statement::getQuery()
-
getQuery
-
in file View.php, method Doctrine_View::getQuery()
    getQuery returns the associated query object
-
getQuery
-
in file Part.php, method Doctrine_Query_Part::getQuery()
-
getQuery
-
in file Event.php, method Doctrine_Event::getQuery()
    getQuery
-
getQuery
-
in file Query.php, method Doctrine_Search_Query::getQuery()
    getQuery
-
getQuery
-
in file Hook.php, method Doctrine_Hook::getQuery()
    getQuery
-
getQuery
-
in file Query.php, method Doctrine_Query::getQuery()
    builds the sql query from the given parameters and applies things such as column aggregation inheritance and limit subqueries if needed
-
getQueryBase
-
in file Query.php, method Doctrine_Query::getQueryBase()
    getQueryBase returns the base of the generated sql query On mysql driver special strategy has to be used for DELETE statements
-
getQueryObject
-
in file Table.php, method Doctrine_Table::getQueryObject()
-
getQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::getQueryPart()
    setQueryPart sets a query part in the query part array
-
getRecord
-
in file Filter.php, method Doctrine_Record_Filter::getRecord()
    getRecord
-
getRecord
-
in file Node.php, method Doctrine_Node::getRecord()
    getter for record attribute
-
getRecord
-
in file Table.php, method Doctrine_Table::getRecord()
    getRecord first checks if record exists in identityMap, if not returns a new record
-
getRecordAsString
-
in file Lib.php, method Doctrine_Lib::getRecordAsString()
    returns a string representation of Doctrine_Record object
-
getRecordAsXml
-
in file Lib.php, method Doctrine_Lib::getRecordAsXml()
    Return a recrd as XML.
-
getRecordListener
-
in file Configurable.php, method Doctrine_Configurable::getRecordListener()
    getListener
-
getRecordStateAsString
-
in file Lib.php, method Doctrine_Lib::getRecordStateAsString()
-
getReference
-
in file Collection.php, method Doctrine_Collection::getReference()
    getReference
-
getReferences
-
in file Record.php, method Doctrine_Record::getReferences()
    getReferences
-
getRelation
-
in file Table.php, method Doctrine_Table::getRelation()
    getRelation
-
getRelation
-
in file Parser.php, method Doctrine_Relation_Parser::getRelation()
    getRelation
-
getRelationDql
-
in file Relation.php, method Doctrine_Relation::getRelationDql()
    getRelationDql
-
getRelationDql
-
in file Self.php, method Doctrine_Relation_Association_Self::getRelationDql()
    getRelationDql
-
getRelationDql
-
in file Nest.php, method Doctrine_Relation_Nest::getRelationDql()
    getRelationDql
-
getRelationDql
-
in file Association.php, method Doctrine_Relation_Association::getRelationDql()
    getRelationDql
-
getRelationParser
-
in file Table.php, method Doctrine_Table::getRelationParser()
    getRelationParser return the relation parser associated with this table
-
getRelations
-
in file Table.php, method Doctrine_Table::getRelations()
    getRelations returns an array containing all relation objects
-
getRelations
-
in file Parser.php, method Doctrine_Relation_Parser::getRelations()
    getRelations returns an array containing all relation objects
-
getRelations
-
in file Table.php, method Doctrine_Schema_Table::getRelations()
    Return all the relations this table has with others
-
getRepository
-
in file Table.php, method Doctrine_Table::getRepository()
    getRepository
-
getRightValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getRightValue()
    gets record's right value
-
getRoot
-
in file Manager.php, method Doctrine_Manager::getRoot()
    returns the root directory of Doctrine
-
getRoot
-
in file Hydrate.php, method Doctrine_Hydrate::getRoot()
    getRoot returns the root component for this object
-
getRootAlias
-
in file Hydrate.php, method Doctrine_Hydrate::getRootAlias()
    getRootAlias returns the alias of the the root component
-
getRootDeclaration
-
in file Hydrate.php, method Doctrine_Hydrate::getRootDeclaration()
    getRootDeclaration returns the root declaration
-
getRootValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getRootValue()
    get records root id value
-
getSelectSql
-
in file View.php, method Doctrine_View::getSelectSql()
    getSelectSql returns the select sql for this view
-
getSequenceName
-
in file Formatter.php, method Doctrine_Formatter::getSequenceName()
    adds sequence name formatting to a sequence name
-
getServerVersion
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::getServerVersion()
    return version information about the server
-
getServerVersion
-
in file Mssql.php, method Doctrine_Connection_Mssql::getServerVersion()
    return version information about the server
-
getSiblings
-
in file NestedSet.php, method Doctrine_Node_NestedSet::getSiblings()
    gets siblings for node
-
getSiblings
-
in file Interface.php, method Doctrine_Node_Interface::getSiblings()
    gets siblings for node
-
getSnapshot
-
in file Collection.php, method Doctrine_Collection::getSnapshot()
    getSnapshot returns the data of the last snapshot
-
getSql
-
in file Expression.php, method Doctrine_Expression::getSql()
-
getSql
-
in file Query.php, method Doctrine_Search_Query::getSql()
-
getSql
-
in file Hydrate.php, method Doctrine_Hydrate::getSql()
    getSql return the sql associated with this object
-
getSql
-
in file Check.php, method Doctrine_Query_Check::getSql()
    getSql
-
getState
-
in file Transaction.php, method Doctrine_Transaction::getState()
    getState returns the state of this connection
-
getStatement
-
in file Statement.php, method Doctrine_Connection_Statement::getStatement()
-
getStates
-
in file Usstate.php, method Doctrine_Validator_Usstate::getStates()
-
getTable
-
in file Connection.php, method Doctrine_Connection::getTable()
    returns a table object for given component name
-
getTable
-
in file Manager.php, method Doctrine_Manager::getTable()
    getTable this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment
-
getTable
-
in file Parser.php, method Doctrine_Relation_Parser::getTable()
    getTable
-
getTable
-
in file Relation.php, method Doctrine_Relation::getTable()
    getTable returns the foreign table object
-
getTable
-
in file Record.php, method Doctrine_Record::getTable()
    getTable returns the table object for this record
-
getTable
-
in file Check.php, method Doctrine_Query_Check::getTable()
    getTable returns the table object associated with this object
-
getTable
-
in file Template.php, method Doctrine_Template::getTable()
    getTable returns the associated table object
-
getTable
-
in file Collection.php, method Doctrine_Collection::getTable()
    getTable returns the table this collection belongs to
-
getTable
-
in file Repository.php, method Doctrine_Table_Repository::getTable()
    getTable
-
getTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::getTableAlias()
    getTableAlias some database such as Oracle need the identifier lengths to be < ~30 chars hence Doctrine creates as short identifier aliases as possible
-
getTableAliases
-
in file Hydrate.php, method Doctrine_Hydrate::getTableAliases()
    getTableAliases returns all table aliases
-
getTableAliasSeed
-
in file Hydrate.php, method Doctrine_Hydrate::getTableAliasSeed()
    getTableAliasSeed returns the alias seed for given table alias
-
getTableAsString
-
in file Lib.php, method Doctrine_Lib::getTableAsString()
    returns a string representation of Doctrine_Table object
-
getTableName
-
in file Table.php, method Doctrine_Table::getTableName()
-
getTables
-
in file Database.php, method Doctrine_Schema_Database::getTables()
-
getTables
-
in file Connection.php, method Doctrine_Connection::getTables()
    returns an array of all initialized tables
-
getTargetPath
-
in file Builder.php, method Doctrine_Import_Builder::getTargetPath()
    getTargetPath
-
getTemplate
-
in file Table.php, method Doctrine_Table::getTemplate()
-
getTemplates
-
in file Table.php, method Doctrine_Table::getTemplates()
    getTemplates returns all templates attached to this table
-
getTemporaryTableQuery
-
in file Export.php, method Doctrine_Export::getTemporaryTableQuery()
    A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
getTemporaryTableQuery
-
in file Firebird.php, method Doctrine_Export_Firebird::getTemporaryTableQuery()
    A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
getTemporaryTableQuery
-
in file Oracle.php, method Doctrine_Export_Oracle::getTemporaryTableQuery()
    A method to return the required SQL string that fits between CREATE ... TABLE to create the table as a temporary table.
-
getTemporaryTableQuery
-
in file Mssql.php, method Doctrine_Export_Mssql::getTemporaryTableQuery()
    Override the parent method.
-
getTransactionLevel
-
in file Transaction.php, method Doctrine_Transaction::getTransactionLevel()
    getTransactionLevel get the current transaction nesting level
-
getTransactionLevel
-
in file Connection.php, method Doctrine_Connection::getTransactionLevel()
    get the current transaction nesting level
-
getTree
-
in file Table.php, method Doctrine_Table::getTree()
    getter for associated tree
-
gettype
-
in file Validator.php, method Doctrine_Validator::gettype()
    returns the type of loosely typed variable
-
getType
-
in file Relation.php, method Doctrine_Relation::getType()
    getType returns the relation type, either 0 or 1
-
getType
-
in file Column.php, method Doctrine_Schema_Column::getType()
-
getType
-
in file Hydrate.php, method Doctrine_Hydrate::getType()
    getType
-
getTypeOf
-
in file Table.php, method Doctrine_Table::getTypeOf()
    getTypeOf
-
getUniqueFieldDeclaration
-
in file Export.php, method Doctrine_Export::getUniqueFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE.
-
getUpdateActions
-
in file Manager.php, method Doctrine_Manager::getUpdateActions()
-
getValidator
-
in file Validator.php, method Doctrine_Validator::getValidator()
    returns a validator object
-
getVersion
-
in file AuditLog.php, method Doctrine_AuditLog::getVersion()
-
getView
-
in file Hydrate.php, method Doctrine_Hydrate::getView()
    getView returns the view associated with this query object (if any)
-
groupBy
-
in file Abstract.php, method Doctrine_Query_Abstract::groupBy()
    groupBy sets the GROUP BY part of the query
-
gt
-
in file Driver.php, method Doctrine_Expression_Driver::gt()
    Returns the SQL to check if one value is greater than another value.
-
gte
-
in file Driver.php, method Doctrine_Expression_Driver::gte()
    Returns the SQL to check if one value is greater than or equal to another value.
-
guessColumns
-
in file Parser.php, method Doctrine_Relation_Parser::guessColumns()
    guessColumns
-
guid
-
in file Mysql.php, method Doctrine_Expression_Mysql::guid()
    Returns global unique identifier
-
guid
-
in file Oracle.php, method Doctrine_Expression_Oracle::guid()
    Returns global unique identifier
-
guid
-
in file Driver.php, method Doctrine_Expression_Driver::guid()
    Returns global unique identifier
-
guid
-
in file Mssql.php, method Doctrine_Expression_Mssql::guid()
    Returns global unique identifier
-
getAll
-
in file Mock.php, method Doctrine_Adapter_Mock::getAll()
-
getAttribute
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::getAttribute()
    getAttribute Retrieve a statement attribute
-
getAttribute
-
in file Mock.php, method Doctrine_Adapter_Mock::getAttribute()
-
getColumnMeta
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::getColumnMeta()
    getColumnMeta Returns metadata for a column in a result set
-
getName
-
in file Mock.php, method Doctrine_Adapter_Mock::getName()
-
getQuoteIdentifierSymbol
-
in file Db2.php, method Doctrine_Adapter_Db2::getQuoteIdentifierSymbol()
-
getAll
-
in file Cache.php, method Doctrine_Cache::getAll()
    getQueries
-
getConnection
-
in file Db.php, method Doctrine_Cache_Db::getConnection()
    getConnection returns the connection object associated with this cache driver
-
getDriver
-
in file Cache.php, method Doctrine_Cache::getDriver()
    getDriver returns the current cache driver
-
getIterator
-
in file Cache.php, method Doctrine_Cache::getIterator()
    getIterator
-
getOption
-
in file Driver.php, method Doctrine_Cache_Driver::getOption()
    getOption
-
getOption
-
in file Cache.php, method Doctrine_Cache::getOption()
    getOption
-
getCharsetFieldDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getCharsetFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
-
getCharsetFieldDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getCharsetFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.
-
getCollationFieldDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getCollationFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
-
getCollationFieldDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getCollationFieldDeclaration()
    Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.
-
getIntegerDeclaration
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::getIntegerDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
-
getIntegerDeclaration
-
in file Sqlite.php, method Doctrine_DataDict_Sqlite::getIntegerDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
-
getIntegerDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getIntegerDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an integer type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Sqlite.php, method Doctrine_DataDict_Sqlite::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Oracle.php, method Doctrine_DataDict_Oracle::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getNativeDeclaration
-
in file Mssql.php, method Doctrine_DataDict_Mssql::getNativeDeclaration()
    Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
-
getPortableDeclaration
-
in file Oracle.php, method Doctrine_DataDict_Oracle::getPortableDeclaration()
    Maps a native array description of a field to a doctrine datatype and length
-
getPortableDeclaration
-
in file Sqlite.php, method Doctrine_DataDict_Sqlite::getPortableDeclaration()
    Maps a native array description of a field to Doctrine datatype and length
-
getPortableDeclaration
-
in file Firebird.php, method Doctrine_DataDict_Firebird::getPortableDeclaration()
    Maps a native array description of a field to a Doctrine datatype and length
-
getPortableDeclaration
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::getPortableDeclaration()
    Maps a native array description of a field to a portable Doctrine datatype and length
-
getPortableDeclaration
-
in file Mysql.php, method Doctrine_DataDict_Mysql::getPortableDeclaration()
    Maps a native array description of a field to a MDB2 datatype and length
-
getPortableDeclaration
-
in file Mssql.php, method Doctrine_DataDict_Mssql::getPortableDeclaration()
    Maps a native array description of a field to a MDB2 datatype and length
-
-
- -
-
h
-
[Top]
-
-
-
-

h

-
-
$hasDefaultValues
-
in file Table.php, variable Doctrine_Table::$hasDefaultValues
-
$hooks
-
in file Hook.php, variable Doctrine_Hook::$hooks
-
Hook.php
-
procedural page Hook.php
-
Hydrate.php
-
procedural page Hydrate.php
-
Having.php
-
procedural page Having.php
-
Htmlcolor.php
-
procedural page Htmlcolor.php
-
hasAliasDeclaration
-
in file Hydrate.php, method Doctrine_Hydrate::hasAliasDeclaration()
    hasAliasDeclaration whether or not this object has a declaration for given component alias
-
hasChildren
-
in file Interface.php, method Doctrine_Node_Interface::hasChildren()
    test if node has children
-
hasChildren
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasChildren()
    test if node has children
-
hasColumn
-
in file Abstract.php, method Doctrine_Record_Abstract::hasColumn()
    hasColumn sets a column definition
-
hasColumn
-
in file Table.php, method Doctrine_Table::hasColumn()
    hasColumn
-
hasColumns
-
in file Abstract.php, method Doctrine_Record_Abstract::hasColumns()
-
hasConstraint
-
in file Relation.php, method Doctrine_Relation::hasConstraint()
    hasConstraint whether or not this relation has an explicit constraint
-
hasDefaultValues
-
in file Table.php, method Doctrine_Table::hasDefaultValues()
    hasDefaultValues returns true if this table has default values, otherwise false
-
hasEnded
-
in file Event.php, method Doctrine_Event::hasEnded()
    hasEnded whether or not this event has ended
-
hasErrors
-
in file Validator.php, method Doctrine_Validator::hasErrors()
    whether or not this validator has errors
-
hasMany
-
in file Abstract.php, method Doctrine_Record_Abstract::hasMany()
    hasMany binds One-to-Many / Many-to-Many aggregate relation
-
hasNextSibling
-
in file Interface.php, method Doctrine_Node_Interface::hasNextSibling()
    test if node has next sibling
-
hasNextSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasNextSibling()
    test if node has next sibling
-
hasOne
-
in file Abstract.php, method Doctrine_Record_Abstract::hasOne()
    hasOne binds One-to-One aggregate relation
-
hasParent
-
in file Interface.php, method Doctrine_Node_Interface::hasParent()
    test if node has parent
-
hasParent
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasParent()
    test if node has parent
-
hasPrevSibling
-
in file NestedSet.php, method Doctrine_Node_NestedSet::hasPrevSibling()
    test if node has previous sibling
-
hasPrevSibling
-
in file Interface.php, method Doctrine_Node_Interface::hasPrevSibling()
    test if node has previous sibling
-
hasPrimaryKey
-
in file Table.php, method Doctrine_Table::hasPrimaryKey()
-
hasReference
-
in file Record.php, method Doctrine_Record::hasReference()
    hasRefence
-
hasRelation
-
in file Table.php, method Doctrine_Table::hasRelation()
    hasRelation
-
hasRelation
-
in file Parser.php, method Doctrine_Relation_Parser::hasRelation()
-
hasRelation
-
in file Record.php, method Doctrine_Record::hasRelation()
    method for checking existence of properties and Doctrine_Record references
-
hasTable
-
in file Connection.php, method Doctrine_Connection::hasTable()
    hasTable whether or not this connection has table $name initialized
-
hasTableAlias
-
in file Hydrate.php, method Doctrine_Hydrate::hasTableAlias()
    hasTableAlias whether or not this object has given tableAlias
-
having
-
in file Abstract.php, method Doctrine_Query_Abstract::having()
    having sets the HAVING part of the query
-
hookLimit
-
in file Hook.php, method Doctrine_Hook::hookLimit()
-
hookOffset
-
in file Hook.php, method Doctrine_Hook::hookOffset()
-
hookOrderby
-
in file Hook.php, method Doctrine_Hook::hookOrderby()
    hookOrderBy builds DQL query orderby part from given parameter array
-
hookWhere
-
in file Hook.php, method Doctrine_Hook::hookWhere()
    hookWhere builds DQL query where part from given parameter array
-
hydrate
-
in file Record.php, method Doctrine_Record::hydrate()
    hydrate hydrates this object from given array
-
HYDRATE_ARRAY
-
in file Hydrate.php, class constant Doctrine_Hydrate::HYDRATE_ARRAY
    Constant for the array hydration mode.
-
HYDRATE_RECORD
-
in file Hydrate.php, class constant Doctrine_Hydrate::HYDRATE_RECORD
    Constant for the record (object) hydration mode.
-
-
- -
-
i
-
[Top]
-
-
-
-

i

-
-
$identifier
-
in file Table.php, variable Doctrine_Table::$identifier
-
$identifierType
-
in file Table.php, variable Doctrine_Table::$identifierType
-
$identityMap
-
in file Table.php, variable Doctrine_Table::$identityMap
-
$index
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$index
-
$index
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$index
-
$invalid
-
in file Exception.php, variable Doctrine_Validator_Exception::$invalid
-
$invalid
-
in file Transaction.php, variable Doctrine_Transaction::$invalid
-
$isConnected
-
in file Connection.php, variable Doctrine_Connection::$isConnected
-
$isLimitSubqueryUsed
-
in file Query.php, variable Doctrine_Query::$isLimitSubqueryUsed
-
$isSubquery
-
in file Query.php, variable Doctrine_Query::$isSubquery
-
$iteratorOptions
-
in file Node.php, variable Doctrine_Node::$iteratorOptions
-
$iteratorType
-
in file Node.php, variable Doctrine_Node::$iteratorType
-
Interface.php
-
procedural page Interface.php
-
Interface.php
-
procedural page Interface.php
-
Iterator.php
-
procedural page Iterator.php
-
Informix.php
-
procedural page Informix.php
-
Informix.php
-
procedural page Informix.php
-
Interface.php
-
procedural page Interface.php
-
Informix.php
-
procedural page Informix.php
-
Index.php
-
procedural page Index.php
-
Integer.php
-
procedural page Integer.php
-
Informix.php
-
procedural page Informix.php
-
Import.php
-
procedural page Import.php
-
IntegrityMapper.php
-
procedural page IntegrityMapper.php
-
Interface.php
-
procedural page Interface.php
-
Interface.php
-
procedural page Interface.php
-
Iterator.php
-
procedural page Iterator.php
-
Interface.php
-
procedural page Interface.php
-
Interface.php
-
procedural page Interface.php
-
Indexer.php
-
procedural page Indexer.php
-
Informix.php
-
procedural page Informix.php
-
Informix.php
-
procedural page Informix.php
-
Interface.php
-
procedural page Interface.php
-
Interface.class.php
-
procedural page Interface.class.php
-
Ip.php
-
procedural page Ip.php
-
identifier
-
in file Record.php, method Doctrine_Record::identifier()
    returns the primary keys of this object
-
IDENTIFIER_AUTOINC
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_AUTOINC
    constant for auto_increment identifier
-
IDENTIFIER_COMPOSITE
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_COMPOSITE
    constant for composite identifier
-
IDENTIFIER_NATURAL
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_NATURAL
    constant for normal identifier
-
IDENTIFIER_SEQUENCE
-
in file Doctrine.php, class constant Doctrine::IDENTIFIER_SEQUENCE
    constant for sequence identifier
-
importSchema
-
in file Schema.php, method Doctrine_Import_Schema::importSchema()
    importSchema
-
importSchema
-
in file Import.php, method Doctrine_Import::importSchema()
    importSchema
-
importSchema
-
in file Doctrine.php, method Doctrine::importSchema()
    importSchema method for importing existing schema to Doctrine_Record classes
-
in
-
in file Driver.php, method Doctrine_Expression_Driver::in()
    Returns the SQL to check if a value is one in a set of given values..
-
incrementQueryCount
-
in file Connection.php, method Doctrine_Connection::incrementQueryCount()
-
index
-
in file Abstract.php, method Doctrine_Record_Abstract::index()
    index
-
indexDirectory
-
in file Indexer.php, method Doctrine_Search_Indexer::indexDirectory()
-
initNullObject
-
in file Iterator.php, method Doctrine_Record_Iterator::initNullObject()
    initNullObject
-
initNullObject
-
in file Collection.php, method Doctrine_Collection::initNullObject()
    initNullObject initializes the null object for this collection
-
initNullObject
-
in file Object.php, method Doctrine_Object::initNullObject()
    initNullObject initializes the null object
-
initRelated
-
in file Record.php, method Doctrine_Hydrate_Record::initRelated()
-
initRelated
-
in file Array.php, method Doctrine_Hydrate_Array::initRelated()
-
innerJoin
-
in file Abstract.php, method Doctrine_Query_Abstract::innerJoin()
    innerJoin appends an INNER JOIN to the FROM part of the query
-
insert
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::insert()
    inserts a record into database
-
INSERT
-
in file Hydrate.php, class constant Doctrine_Hydrate::INSERT
    constant for INSERT queries
-
insert
-
in file Connection.php, method Doctrine_Connection::insert()
    Inserts a table row with specified data.
-
insertAsFirstChildOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsFirstChildOf()
    inserts node as first child of dest record
-
insertAsFirstChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsFirstChildOf()
    inserts node as first child of dest record
-
insertAsLastChildOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsLastChildOf()
    inserts node as first child of dest record
-
insertAsLastChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsLastChildOf()
    inserts node as last child of dest record
-
insertAsNextSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsNextSiblingOf()
    inserts node as next sibling of dest record
-
insertAsNextSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsNextSiblingOf()
    inserts node as next sibling of dest record
-
insertAsParentOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsParentOf()
    inserts node as parent of dest record
-
insertAsParentOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsParentOf()
    inserts node as parent of dest record
-
insertAsPrevSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::insertAsPrevSiblingOf()
    inserts node as previous sibling of dest record
-
insertAsPrevSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertAsPrevSiblingOf()
    inserts node as previous sibling of dest record
-
insertNode
-
in file NestedSet.php, method Doctrine_Node_NestedSet::insertNode()
    sets node's left and right values and save's it
-
invokeIntegrityActions
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::invokeIntegrityActions()
-
isComposite
-
in file Relation.php, method Doctrine_Relation::isComposite()
    isComposite returns whether or not this relation is a composite relation
-
isDeferrable
-
in file Relation.php, method Doctrine_Relation::isDeferrable()
-
isDeferred
-
in file Relation.php, method Doctrine_Relation::isDeferred()
-
isDescendantOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isDescendantOf()
    determines if node is child of subject node
-
isDescendantOf
-
in file Interface.php, method Doctrine_Node_Interface::isDescendantOf()
    determines if node is child of subject node
-
isDescendantOfOrEqualTo
-
in file Interface.php, method Doctrine_Node_Interface::isDescendantOfOrEqualTo()
    determines if node is child of or sibling to subject node
-
isDescendantOfOrEqualTo
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isDescendantOfOrEqualTo()
    determines if node is child of or sibling to subject node
-
isEqual
-
in file Relation.php, method Doctrine_Relation::isEqual()
-
isEqualTo
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isEqualTo()
    determines if node is equal to subject node
-
isEqualTo
-
in file Interface.php, method Doctrine_Node_Interface::isEqualTo()
    determines if node is equal to subject node
-
isExpression
-
in file Query.php, method Doctrine_Search_Query::isExpression()
-
isIdentifiable
-
in file Record.php, method Doctrine_Hydrate_Record::isIdentifiable()
    isIdentifiable returns whether or not a given data row is identifiable (it contains all primary key fields specified in the second argument)
-
isIdentifiable
-
in file Array.php, method Doctrine_Hydrate_Array::isIdentifiable()
-
isLeaf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isLeaf()
    determines if node is leaf
-
isLeaf
-
in file Interface.php, method Doctrine_Node_Interface::isLeaf()
    determines if node is leaf
-
isLimitSubqueryUsed
-
in file Hydrate.php, method Doctrine_Hydrate::isLimitSubqueryUsed()
    limitSubqueryUsed whether or not limit subquery was used
-
isLimitSubqueryUsed
-
in file Query.php, method Doctrine_Query::isLimitSubqueryUsed()
    limitSubqueryUsed
-
isModified
-
in file Record.php, method Doctrine_Record::isModified()
    isModified returns true if this record was modified, otherwise false
-
isNotNull
-
in file Column.php, method Doctrine_Schema_Column::isNotNull()
-
isNotNull
-
in file Driver.php, method Doctrine_Expression_Driver::isNotNull()
    Returns SQL that checks if a expression is not null.
-
isNull
-
in file Driver.php, method Doctrine_Expression_Driver::isNull()
    Returns SQL that checks if a expression is null.
-
isOneToOne
-
in file Relation.php, method Doctrine_Relation::isOneToOne()
    isOneToOne returns whether or not this relation is a one-to-one relation
-
isPrimaryKey
-
in file Column.php, method Doctrine_Schema_Column::isPrimaryKey()
-
isRoot
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isRoot()
    determines if node is root
-
isRoot
-
in file Interface.php, method Doctrine_Node_Interface::isRoot()
    determines if node is root
-
isSubquery
-
in file Query.php, method Doctrine_Query::isSubquery()
    isSubquery
-
isTree
-
in file Table.php, method Doctrine_Table::isTree()
    determine if table acts as tree
-
isUnique
-
in file Column.php, method Doctrine_Schema_Column::isUnique()
-
isValid
-
in file Record.php, method Doctrine_Record::isValid()
    isValid
-
isValid
-
in file Table.php, method Doctrine_Schema_Table::isValid()
-
isValid
-
in file Database.php, method Doctrine_Schema_Database::isValid()
-
isValid
-
in file Relation.php, method Doctrine_Schema_Relation::isValid()
-
isValid
-
in file Schema.php, method Doctrine_Schema::isValid()
-
isValidClassname
-
in file Doctrine.php, method Doctrine::isValidClassname()
    checks for valid class name (uses camel case and underscores)
-
isValidNode
-
in file NestedSet.php, method Doctrine_Node_NestedSet::isValidNode()
    determines if node is valid
-
isValidNode
-
in file Interface.php, method Doctrine_Node_Interface::isValidNode()
    determines if node is valid
-
isValidType
-
in file Validator.php, method Doctrine_Validator::isValidType()
    returns whether or not the given variable is valid type
-
Interface.php
-
procedural page Interface.php
-
isSuccessful
-
in file Cache.php, method Doctrine_Cache::isSuccessful()
-
-
- -
-
j
-
[Top]
-
-
-
-

j

-
-
$joins
-
in file Hook.php, variable Doctrine_Hook::$joins
-
JoinCondition.php
-
procedural page JoinCondition.php
-
-
- -
-
k
-
[Top]
-
-
-
-

k

-
-
$key
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$key
-
$key
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$key
-
$keyColumn
-
in file Collection.php, variable Doctrine_Collection::$keyColumn
-
$keys
-
in file Iterator.php, variable Doctrine_Collection_Iterator::$keys
-
$keys
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$keys
-
key
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::key()
-
key
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::key()
    returns the current key
-
key
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::key()
-
key
-
in file Iterator.php, method Doctrine_Collection_Iterator::key()
    returns the current key
-
key
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::key()
-
$keywords
-
in file Mysql.php, variable Doctrine_DataDict_Mysql::$keywords
-
-
- -
-
l
-
[Top]
-
-
-
-

l

-
-
$limit
-
in file Offset.php, variable Doctrine_Collection_Offset::$limit
-
$listeners
-
in file Profiler.php, variable Doctrine_Connection_Profiler::$listeners
-
$listeners
-
in file Chain.php, variable Doctrine_EventListener_Chain::$listeners
-
Listener.php
-
procedural page Listener.php
-
Lib.php
-
procedural page Lib.php
-
LevelOrderIterator.php
-
procedural page LevelOrderIterator.php
-
LevelOrderIterator.php
-
procedural page LevelOrderIterator.php
-
LevelOrderIterator.php
-
procedural page LevelOrderIterator.php
-
Limit.php
-
procedural page Limit.php
-
Listener.php
-
procedural page Listener.php
-
LocalKey.php
-
procedural page LocalKey.php
-
Listener.php
-
procedural page Listener.php
-
lastEvent
-
in file Profiler.php, method Doctrine_Connection_Profiler::lastEvent()
    Get the Doctrine_Event object for the last query that was run, regardless if it has ended or not. If the event has not ended, it's end time will be Null.
-
lastInsertId
-
in file Mssql.php, method Doctrine_Sequence_Mssql::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Pgsql.php, method Doctrine_Sequence_Pgsql::lastInsertId()
    lastInsertId
-
lastInsertId
-
in file Interface.php, method Doctrine_Adapter_Interface::lastInsertId()
-
lastInsertId
-
in file Mysql.php, method Doctrine_Sequence_Mysql::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertID
-
in file Oracle.php, method Doctrine_Sequence_Oracle::lastInsertID()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Firebird.php, method Doctrine_Sequence_Firebird::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Sqlite.php, method Doctrine_Sequence_Sqlite::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Db2.php, method Doctrine_Sequence_Db2::lastInsertId()
    Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
-
lastInsertId
-
in file Sequence.php, method Doctrine_Sequence::lastInsertId()
    Returns the autoincrement ID if supported or $id or fetches the current ID in a sequence called: $table.(empty($field) ? '' : '_'.$field)
-
lastInsertId
-
in file Connection.php, method Doctrine_Connection::lastInsertId()
    lastInsertId
-
lastSequenceId
-
in file Db2.php, method Doctrine_Sequence_Db2::lastSequenceId()
    Return the most recent value from the specified sequence in the database.
-
leftJoin
-
in file Abstract.php, method Doctrine_Query_Abstract::leftJoin()
    leftJoin appends a LEFT JOIN to the FROM part of the query
-
length
-
in file Driver.php, method Doctrine_Expression_Driver::length()
    Returns the length of a text field.
-
limit
-
in file Abstract.php, method Doctrine_Query_Abstract::limit()
    limit sets the Query query limit
-
LIMIT_RECORDS
-
in file Doctrine.php, class constant Doctrine::LIMIT_RECORDS
    constant for record limiting
-
LIMIT_ROWS
-
in file Doctrine.php, class constant Doctrine::LIMIT_ROWS
    constant for row limiting
-
listDatabases
-
in file Import.php, method Doctrine_Import::listDatabases()
    lists all databases
-
listDatabases
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listDatabases()
    lists all databases
-
listDatabases
-
in file Oracle.php, method Doctrine_Import_Oracle::listDatabases()
    lists all databases
-
listFunctions
-
in file Firebird.php, method Doctrine_Import_Firebird::listFunctions()
    list all functions in the current database
-
listFunctions
-
in file Oracle.php, method Doctrine_Import_Oracle::listFunctions()
    lists all availible database functions
-
listFunctions
-
in file Import.php, method Doctrine_Import::listFunctions()
    lists all availible database functions
-
listFunctions
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listFunctions()
    lists all availible database functions
-
listSequences
-
in file Import.php, method Doctrine_Import::listSequences()
    lists all database sequences
-
listSequences
-
in file Oracle.php, method Doctrine_Import_Oracle::listSequences()
    lists all database sequences
-
listSequences
-
in file Mysql.php, method Doctrine_Import_Mysql::listSequences()
    lists all database sequences
-
listSequences
-
in file Mssql.php, method Doctrine_Import_Mssql::listSequences()
    lists all database sequences
-
listSequences
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listSequences()
    lists all database sequences
-
listTableColumns
-
in file Import.php, method Doctrine_Import::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableColumns()
    lists table constraints
-
listTableColumns
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableColumns()
    lists table constraints
-
listTableConstraints
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Import.php, method Doctrine_Import::listTableConstraints()
    lists table constraints
-
listTableConstraints
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableConstraints()
    lists table constraints
-
listTableFields
-
in file Firebird.php, method Doctrine_Import_Firebird::listTableFields()
    list all fields in a tables in the current database
-
listTableForeignKeys
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableForeignKeys()
    lists table foreign keys
-
listTableIndexes
-
in file Mysql.php, method Doctrine_Import_Mysql::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Import.php, method Doctrine_Import::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableIndexes()
    lists table constraints
-
listTableIndexes
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableIndexes()
    list all indexes in a table
-
listTableIndexes
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableIndexes()
    lists table constraints
-
listTables
-
in file Firebird.php, method Doctrine_Import_Firebird::listTables()
    list all tables in the current database
-
listTables
-
in file Mysql.php, method Doctrine_Import_Mysql::listTables()
    lists tables
-
listTables
-
in file Oracle.php, method Doctrine_Import_Oracle::listTables()
    lists tables
-
listTables
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTables()
    lists tables
-
listTables
-
in file Import.php, method Doctrine_Import::listTables()
    lists tables
-
listTables
-
in file Mssql.php, method Doctrine_Import_Mssql::listTables()
    lists tables
-
listTables
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTables()
    lists tables
-
listTableTriggers
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Import.php, method Doctrine_Import::listTableTriggers()
    lists table triggers
-
listTableTriggers
-
in file Firebird.php, method Doctrine_Import_Firebird::listTableTriggers()
    This function will be called to get all triggers of the current database ($this->conn->getDatabase())
-
listTableViews
-
in file Oracle.php, method Doctrine_Import_Oracle::listTableViews()
    lists table views
-
listTableViews
-
in file Import.php, method Doctrine_Import::listTableViews()
    lists table views
-
listTableViews
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTableViews()
    lists table views
-
listTableViews
-
in file Firebird.php, method Doctrine_Import_Firebird::listTableViews()
    list the views in the database that reference a given table
-
listTableViews
-
in file Mssql.php, method Doctrine_Import_Mssql::listTableViews()
    lists table views
-
listTableViews
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTableViews()
    list the views in the database that reference a given table
-
listTriggers
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listTriggers()
    lists all database triggers
-
listTriggers
-
in file Mssql.php, method Doctrine_Import_Mssql::listTriggers()
    lists all triggers
-
listTriggers
-
in file Oracle.php, method Doctrine_Import_Oracle::listTriggers()
    lists all database triggers
-
listTriggers
-
in file Import.php, method Doctrine_Import::listTriggers()
    lists all database triggers
-
listTriggers
-
in file Pgsql.php, method Doctrine_Import_Pgsql::listTriggers()
    lists all database triggers
-
listUsers
-
in file Firebird.php, method Doctrine_Import_Firebird::listUsers()
    list all users
-
listUsers
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listUsers()
    lists database users
-
listUsers
-
in file Import.php, method Doctrine_Import::listUsers()
    lists database users
-
listUsers
-
in file Oracle.php, method Doctrine_Import_Oracle::listUsers()
    lists database users
-
listViews
-
in file Sqlite.php, method Doctrine_Import_Sqlite::listViews()
    lists database views
-
listViews
-
in file Mysql.php, method Doctrine_Import_Mysql::listViews()
    lists database views
-
listViews
-
in file Import.php, method Doctrine_Import::listViews()
    lists database views
-
listViews
-
in file Firebird.php, method Doctrine_Import_Firebird::listViews()
    list the views in the database
-
listViews
-
in file Mssql.php, method Doctrine_Import_Mssql::listViews()
    lists database views
-
listViews
-
in file Oracle.php, method Doctrine_Import_Oracle::listViews()
    lists database views
-
load
-
in file JoinCondition.php, method Doctrine_Query_JoinCondition::load()
-
load
-
in file Where.php, method Doctrine_Query_Where::load()
-
load
-
in file Query.php, method Doctrine_Query::load()
-
load
-
in file Having.php, method Doctrine_Query_Having::load()
    load returns the parsed query part
-
load
-
in file Record.php, method Doctrine_Record::load()
    load loads all the unitialized properties from the database
-
loadAll
-
in file Repository.php, method Doctrine_Table_Repository::loadAll()
    loadAll
-
loadAll
-
in file Doctrine.php, method Doctrine::loadAll()
    loadAll loads all runtime classes
-
loadReference
-
in file Record.php, method Doctrine_Record::loadReference()
    loadReference loads a related component
-
loadRelated
-
in file Collection.php, method Doctrine_Collection::loadRelated()
    loadRelated
-
loadRoot
-
in file Query.php, method Doctrine_Query::loadRoot()
    loadRoot
-
loadTemplate
-
in file Abstract.php, method Doctrine_Record_Abstract::loadTemplate()
    loadTemplate
-
loadTemplate
-
in file Builder.php, method Doctrine_Import_Builder::loadTemplate()
    This is a template that was previously in Builder/Record.tpl. Due to the fact that it was not bundled when compiling, it had to be moved here.
-
locate
-
in file Driver.php, method Doctrine_Expression_Driver::locate()
    locate returns the position of the first occurrence of substring $substr in string $str
-
locateImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::locateImpl()
    locate returns the position of the first occurrence of substring $substr in string $str that SQLite's locate() function receives
-
LOCK_OPTIMISTIC
-
in file Doctrine.php, class constant Doctrine::LOCK_OPTIMISTIC
    mode for optimistic locking
-
LOCK_PESSIMISTIC
-
in file Doctrine.php, class constant Doctrine::LOCK_PESSIMISTIC
    mode for pessimistic locking
-
lower
-
in file Driver.php, method Doctrine_Expression_Driver::lower()
    lower Returns the string $str with all characters changed to lowercase according to the current character set mapping.
-
lt
-
in file Driver.php, method Doctrine_Expression_Driver::lt()
    Returns the SQL to check if one value is less than another value.
-
lte
-
in file Driver.php, method Doctrine_Expression_Driver::lte()
    Returns the SQL to check if one value is less than or equal to another value.
-
ltrim
-
in file Driver.php, method Doctrine_Expression_Driver::ltrim()
    ltrim returns the string $str with leading space characters removed
-
ltrimImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::ltrimImpl()
-
$lastInsertIdFail
-
in file Mock.php, variable Doctrine_Adapter_Mock::$lastInsertIdFail
-
lastInsertId
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::lastInsertId()
    Gets the last ID generated automatically by an IDENTITY/AUTOINCREMENT column.
-
lastInsertId
-
in file Mock.php, method Doctrine_Adapter_Mock::lastInsertId()
-
-
- -
-
m
-
[Top]
-
-
-
-

m

-
-
$messages
-
in file Reporter.php, variable Doctrine_Export_Reporter::$messages
-
$moduleName
-
in file Module.php, variable Doctrine_Connection_Module::$moduleName
-
$modules
-
in file Connection.php, variable Doctrine_Connection::$modules
-
Mock.php
-
procedural page Mock.php
-
Module.php
-
procedural page Module.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mock.php
-
procedural page Mock.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Manager.php
-
procedural page Manager.php
-
MaterializedPath.php
-
procedural page MaterializedPath.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
Mock.php
-
procedural page Mock.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
MaterializedPath.php
-
procedural page MaterializedPath.php
-
Minlength.php
-
procedural page Minlength.php
-
makeRoot
-
in file NestedSet.php, method Doctrine_Node_NestedSet::makeRoot()
    Makes this node a root node. Only used in multiple-root trees.
-
MANY
-
in file Relation.php, class constant Doctrine_Relation::MANY
-
MANY_AGGREGATE
-
in file Relation.php, class constant Doctrine_Relation::MANY_AGGREGATE
    constant for MANY_TO_MANY and ONE_TO_MANY aggregate relationships
-
MANY_COMPOSITE
-
in file Relation.php, class constant Doctrine_Relation::MANY_COMPOSITE
    constant for MANY_TO_MANY and ONE_TO_MANY composite relationships
-
mapValue
-
in file Record.php, method Doctrine_Record::mapValue()
    mapValue This simple method is used for mapping values to $values property.
-
matchPattern
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::matchPattern()
    build a pattern matching string
-
matchPattern
-
in file Mysql.php, method Doctrine_Expression_Mysql::matchPattern()
    build a pattern matching string
-
max
-
in file Driver.php, method Doctrine_Expression_Driver::max()
    Returns the highest value of a column
-
md5
-
in file Driver.php, method Doctrine_Expression_Driver::md5()
    Returns the md5 sum of a field.
-
md5
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::md5()
    Returns the md5 sum of a field.
-
md5Impl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::md5Impl()
    Returns the md5 sum of the data that SQLite's md5() function receives.
-
merge
-
in file Record.php, method Doctrine_Record::merge()
    merge merges this record with an array of values
-
min
-
in file Driver.php, method Doctrine_Expression_Driver::min()
    Returns the lowest value of a column
-
mod
-
in file Driver.php, method Doctrine_Expression_Driver::mod()
    Returns the remainder of the division operation $expression1 / $expression2.
-
modifyLimitQuery
-
in file Mssql.php, method Doctrine_Connection_Mssql::modifyLimitQuery()
    Adds an adapter-specific LIMIT clause to the SELECT statement.
-
modifyLimitQuery
-
in file Db2.php, method Doctrine_Connection_Db2::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modifyLimitQuery
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::modifyLimitQuery()
    Changes a query string for various DBMS specific reasons
-
modifyLimitQuery
-
in file Firebird.php, method Doctrine_Connection_Firebird::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modifyLimitQuery
-
in file Oracle.php, method Doctrine_Connection_Oracle::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modifyLimitQuery
-
in file Common.php, method Doctrine_Connection_Common::modifyLimitQuery()
    Adds an driver-specific LIMIT clause to the query
-
modImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::modImpl()
    Returns the modules of the data that SQLite's mod() function receives.
-
moveAsFirstChildOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsFirstChildOf()
    moves node as first child of dest record
-
moveAsFirstChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsFirstChildOf()
    moves node as first child of dest record
-
moveAsLastChildOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsLastChildOf()
    moves node as last child of dest record
-
moveAsLastChildOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsLastChildOf()
    moves node as last child of dest record
-
moveAsNextSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsNextSiblingOf()
    moves node as next sibling of dest record
-
moveAsNextSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsNextSiblingOf()
    moves node as next sibling of dest record
-
moveAsPrevSiblingOf
-
in file Interface.php, method Doctrine_Node_Interface::moveAsPrevSiblingOf()
    moves node as prev sibling of dest record
-
moveAsPrevSiblingOf
-
in file NestedSet.php, method Doctrine_Node_NestedSet::moveAsPrevSiblingOf()
    moves node as prev sibling of dest record
-
mul
-
in file Driver.php, method Doctrine_Expression_Driver::mul()
    Returns the SQL to multiply values or expressions by eachother.
-
$mock
-
in file Mock.php, variable Doctrine_Adapter_Statement_Mock::$mock
-
Mock.php
-
procedural page Mock.php
-
Mysqli.php
-
procedural page Mysqli.php
-
Mock.php
-
procedural page Mock.php
-
Memcache.php
-
procedural page Memcache.php
-
Mssql.php
-
procedural page Mssql.php
-
Mysql.php
-
procedural page Mysql.php
-
-
- -
-
n
-
[Top]
-
-
-
-

n

-
-
$name
-
in file View.php, variable Doctrine_View::$name
-
$needsSubquery
-
in file Query.php, variable Doctrine_Query::$needsSubquery
-
$null
-
in file Iterator.php, variable Doctrine_Record_Iterator::$null
-
$null
-
in file Collection.php, variable Doctrine_Collection::$null
-
Normal.php
-
procedural page Normal.php
-
NestedSet.php
-
procedural page NestedSet.php
-
Node.php
-
procedural page Node.php
-
Null.php
-
procedural page Null.php
-
Nest.php
-
procedural page Nest.php
-
NestedSet.php
-
procedural page NestedSet.php
-
NestedSet.php
-
procedural page NestedSet.php
-
Nospace.php
-
procedural page Nospace.php
-
Notblank.php
-
procedural page Notblank.php
-
Notnull.php
-
procedural page Notnull.php
-
neq
-
in file Driver.php, method Doctrine_Expression_Driver::neq()
    Returns the SQL to check if two values are unequal.
-
next
-
in file Iterator.php, method Doctrine_Collection_Iterator::next()
    advances the internal pointer
-
next
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::next()
    advances the internal pointer
-
next
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::next()
-
next
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::next()
-
next
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::next()
-
nextID
-
in file Oracle.php, method Doctrine_Sequence_Oracle::nextID()
    Returns the next free id of a sequence
-
nextID
-
in file Firebird.php, method Doctrine_Sequence_Firebird::nextID()
    Returns the next free id of a sequence
-
nextId
-
in file Sequence.php, method Doctrine_Sequence::nextId()
    Returns the next free id of a sequence
-
nextId
-
in file Sqlite.php, method Doctrine_Sequence_Sqlite::nextId()
    Returns the next free id of a sequence
-
nextId
-
in file Mssql.php, method Doctrine_Sequence_Mssql::nextId()
    Returns the next free id of a sequence
-
nextId
-
in file Pgsql.php, method Doctrine_Sequence_Pgsql::nextId()
    Returns the next free id of a sequence
-
nextId
-
in file Mysql.php, method Doctrine_Sequence_Mysql::nextId()
    Returns the next free id of a sequence
-
nextRowset
-
in file Statement.php, method Doctrine_Adapter_Statement::nextRowset()
-
nextRowset
-
in file Statement.php, method Doctrine_Connection_Statement::nextRowset()
    nextRowset Advances to the next rowset in a multi-rowset statement handle
-
nextRowset
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::nextRowset()
    nextRowset Advances to the next rowset in a multi-rowset statement handle
-
nextSequenceId
-
in file Db2.php, method Doctrine_Sequence_Db2::nextSequenceId()
    Generate a new value from the specified sequence in the database, and return it.
-
not
-
in file Driver.php, method Doctrine_Expression_Driver::not()
    Returns the SQL for a logical not.
-
now
-
in file Oracle.php, method Doctrine_Expression_Oracle::now()
    Return string to call a variable with the current timestamp inside an SQL statement
-
now
-
in file Mssql.php, method Doctrine_Expression_Mssql::now()
    Return string to call a variable with the current timestamp inside an SQL statement
-
now
-
in file Driver.php, method Doctrine_Expression_Driver::now()
    Returns the current system date.
-
now
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::now()
    Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time.
-
now
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::now()
    Returns the SQL string to return the current system date and time.
-
NULL_EMPTY_STRING
-
in file Adapter.php, class constant Doctrine_Adapter::NULL_EMPTY_STRING
-
NULL_EMPTY_STRING
-
in file Doctrine.php, class constant Doctrine::NULL_EMPTY_STRING
-
NULL_NATURAL
-
in file Doctrine.php, class constant Doctrine::NULL_NATURAL
-
NULL_NATURAL
-
in file Adapter.php, class constant Doctrine_Adapter::NULL_NATURAL
-
NULL_TO_STRING
-
in file Adapter.php, class constant Doctrine_Adapter::NULL_TO_STRING
-
NULL_TO_STRING
-
in file Doctrine.php, class constant Doctrine::NULL_TO_STRING
-
$name
-
in file Mock.php, variable Doctrine_Adapter_Mock::$name
-
nextRowset
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::nextRowset()
    nextRowset Advances to the next rowset in a multi-rowset statement handle
-
-
- -
-
o
-
[Top]
-
-
-
-

o

-
-
$options
-
in file Connection.php, variable Doctrine_Connection::$options
-
$options
-
in file Table.php, variable Doctrine_Table::$options
-
$options
-
in file Node.php, variable Doctrine_Node::$options
-
$options
-
in file Tree.php, variable Doctrine_Tree::$options
-
Offset.php
-
procedural page Offset.php
-
Offset.php
-
procedural page Offset.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
Object.php
-
procedural page Object.php
-
Overloadable.php
-
procedural page Overloadable.php
-
Offset.php
-
procedural page Offset.php
-
Orderby.php
-
procedural page Orderby.php
-
Object.php
-
procedural page Object.php
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
obtainReference
-
in file Record.php, method Doctrine_Record::obtainReference()
    obtainReference
-
offset
-
in file Abstract.php, method Doctrine_Query_Abstract::offset()
    offset sets the Query query offset
-
offsetExists
-
in file Relation.php, method Doctrine_Relation::offsetExists()
-
offsetExists
-
in file Access.php, method Doctrine_Access::offsetExists()
-
offsetGet
-
in file Relation.php, method Doctrine_Relation::offsetGet()
-
offsetGet
-
in file Access.php, method Doctrine_Access::offsetGet()
    offsetGet an alias of get()
-
offsetSet
-
in file Relation.php, method Doctrine_Relation::offsetSet()
-
offsetSet
-
in file Access.php, method Doctrine_Access::offsetSet()
    sets $offset to $value
-
offsetUnset
-
in file Access.php, method Doctrine_Access::offsetUnset()
    unset a given offset
-
offsetUnset
-
in file Relation.php, method Doctrine_Relation::offsetUnset()
-
onCollectionDelete
-
in file EventListener.php, method Doctrine_EventListener::onCollectionDelete()
-
onCollectionDelete
-
in file Chain.php, method Doctrine_EventListener_Chain::onCollectionDelete()
    onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
-
ONE
-
in file Relation.php, class constant Doctrine_Relation::ONE
-
ONE_AGGREGATE
-
in file Relation.php, class constant Doctrine_Relation::ONE_AGGREGATE
    constant for ONE_TO_ONE and MANY_TO_ONE aggregate relationships
-
ONE_COMPOSITE
-
in file Relation.php, class constant Doctrine_Relation::ONE_COMPOSITE
    constant for ONE_TO_ONE and MANY_TO_ONE composite relationships
-
onLoad
-
in file Chain.php, method Doctrine_EventListener_Chain::onLoad()
    onLoad an event invoked when Doctrine_Record is being loaded from database
-
onOpen
-
in file EventListener.php, method Doctrine_EventListener::onOpen()
-
onOpen
-
in file Chain.php, method Doctrine_EventListener_Chain::onOpen()
    onOpen an event invoked after Doctrine_Connection is opened
-
onPreCollectionDelete
-
in file EventListener.php, method Doctrine_EventListener::onPreCollectionDelete()
-
onPreCollectionDelete
-
in file Chain.php, method Doctrine_EventListener_Chain::onPreCollectionDelete()
    onCollectionDelete an event invoked after a Doctrine_Collection is being deleted
-
onPreLoad
-
in file Chain.php, method Doctrine_EventListener_Chain::onPreLoad()
    onPreLoad an event invoked when Doctrine_Record is being loaded from database but not yet initialized
-
onSleep
-
in file Chain.php, method Doctrine_EventListener_Chain::onSleep()
    onSleep an event invoked when Doctrine_Record is serialized
-
onWakeUp
-
in file Chain.php, method Doctrine_EventListener_Chain::onWakeUp()
    onWakeUp an event invoked when Doctrine_Record is unserialized
-
openConnection
-
in file Manager.php, method Doctrine_Manager::openConnection()
    openConnection opens a new connection and saves it to Doctrine_Manager->connections
-
option
-
in file Abstract.php, method Doctrine_Record_Abstract::option()
    option sets or retrieves an option
-
orderBy
-
in file Abstract.php, method Doctrine_Query_Abstract::orderBy()
    orderBy sets the ORDER BY part of the query
-
ownsMany
-
in file Abstract.php, method Doctrine_Record_Abstract::ownsMany()
    ownsMany binds One-to-Many / Many-to-Many composite relation
-
ownsOne
-
in file Abstract.php, method Doctrine_Record_Abstract::ownsOne()
    ownsOne binds One-to-One composite relation
-
Oracle.php
-
procedural page Oracle.php
-
Oracle.php
-
procedural page Oracle.php
-
-
- -
-
p
-
[Top]
-
-
-
-

p

-
-
$params
-
in file Parser.php, variable Doctrine_Hook_Parser::$params
-
$parent
-
in file Configurable.php, variable Doctrine_Configurable::$parent
-
$parts
-
in file Hydrate.php, variable Doctrine_Hydrate::$parts
-
$path
-
in file Doctrine.php, variable Doctrine::$path
-
$path
-
in file Builder.php, variable Doctrine_Import_Builder::$path
-
$pdo
-
in file Db.php, variable Doctrine_Import_Reader_Db::$pdo
-
$pendingAggregates
-
in file Hydrate.php, variable Doctrine_Hydrate::$pendingAggregates
-
$pendingAttributes
-
in file Connection.php, variable Doctrine_Connection::$pendingAttributes
-
$pendingFields
-
in file Query.php, variable Doctrine_Query::$pendingFields
-
$pendingSubqueries
-
in file Query.php, variable Doctrine_Query::$pendingSubqueries
-
$portableCode
-
in file Exception.php, variable Doctrine_Connection_Exception::$portableCode
-
$prevIndex
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$prevIndex
-
$primaryKeys
-
in file Table.php, variable Doctrine_Table::$primaryKeys
-
$properties
-
in file Connection.php, variable Doctrine_Connection::$properties
-
Pgsql.php
-
procedural page Pgsql.php
-
Profiler.php
-
procedural page Profiler.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Parser.php
-
procedural page Parser.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Propel.php
-
procedural page Propel.php
-
Pessimistic.php
-
procedural page Pessimistic.php
-
PostOrderIterator.php
-
procedural page PostOrderIterator.php
-
PreOrderIterator.php
-
procedural page PreOrderIterator.php
-
PostOrderIterator.php
-
procedural page PostOrderIterator.php
-
PreOrderIterator.php
-
procedural page PreOrderIterator.php
-
PostOrderIterator.php
-
procedural page PostOrderIterator.php
-
PreOrderIterator.php
-
procedural page PreOrderIterator.php
-
Plugin.php
-
procedural page Plugin.php
-
Parser.php
-
procedural page Parser.php
-
Part.php
-
procedural page Part.php
-
Parser.php
-
procedural page Parser.php
-
Parser.php
-
procedural page Parser.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Pgsql.php
-
procedural page Pgsql.php
-
Protected.php
-
procedural page Protected.php
-
PARAM_BOOL
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_BOOL
-
PARAM_BOOL
-
in file Doctrine.php, class constant Doctrine::PARAM_BOOL
-
PARAM_INPUT_OUTPUT
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_INPUT_OUTPUT
-
PARAM_INPUT_OUTPUT
-
in file Doctrine.php, class constant Doctrine::PARAM_INPUT_OUTPUT
-
PARAM_INT
-
in file Doctrine.php, class constant Doctrine::PARAM_INT
-
PARAM_INT
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_INT
-
PARAM_LOB
-
in file Doctrine.php, class constant Doctrine::PARAM_LOB
-
PARAM_LOB
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_LOB
-
PARAM_NULL
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_NULL
-
PARAM_NULL
-
in file Doctrine.php, class constant Doctrine::PARAM_NULL
-
PARAM_STMT
-
in file Doctrine.php, class constant Doctrine::PARAM_STMT
-
PARAM_STMT
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_STMT
-
PARAM_STR
-
in file Doctrine.php, class constant Doctrine::PARAM_STR
-
PARAM_STR
-
in file Adapter.php, class constant Doctrine_Adapter::PARAM_STR
-
parse
-
in file Groupby.php, method Doctrine_Query_Groupby::parse()
    DQL GROUP BY PARSER parses the group by part of the query string
-
parse
-
in file Parser.php, method Doctrine_Hook_Parser::parse()
    parse
-
parse
-
in file Equal.php, method Doctrine_Hook_Equal::parse()
    parse
-
parse
-
in file Parser.php, method Doctrine_Search_Parser::parse()
-
parse
-
in file Orderby.php, method Doctrine_Query_Orderby::parse()
    DQL ORDER BY PARSER parses the order by part of the query string
-
parse
-
in file Limit.php, method Doctrine_Query_Limit::parse()
-
parse
-
in file Offset.php, method Doctrine_Query_Offset::parse()
-
parse
-
in file From.php, method Doctrine_Query_From::parse()
    DQL FROM PARSER
-
parse
-
in file Condition.php, method Doctrine_Query_Condition::parse()
    DQL CONDITION PARSER parses the join condition/where/having part of the query string
-
parse
-
in file Set.php, method Doctrine_Query_Set::parse()
-
parse
-
in file Select.php, method Doctrine_Query_Select::parse()
-
parse
-
in file Check.php, method Doctrine_Query_Check::parse()
    parse
-
parse
-
in file Schema.php, method Doctrine_Import_Schema::parse()
    parse
-
parse
-
in file Xml.php, method Doctrine_Import_Schema_Xml::parse()
    parse
-
parse
-
in file Yml.php, method Doctrine_Import_Schema_Yml::parse()
    parse
-
parse
-
in file Complex.php, method Doctrine_Hook_Parser_Complex::parse()
    parse
-
parseAggregateFunction
-
in file Query.php, method Doctrine_Query::parseAggregateFunction()
    parseAggregateFunction parses an aggregate function and returns the parsed form
-
parseAggregateFunction
-
in file Having.php, method Doctrine_Query_Having::parseAggregateFunction()
    DQL Aggregate Function parser
-
parseBoolean
-
in file DataDict.php, method Doctrine_DataDict::parseBoolean()
    parseBoolean parses a literal boolean value and returns proper sql equivalent
-
parseClause
-
in file Query.php, method Doctrine_Query::parseClause()
    parseClause parses given DQL clause
-
parseClause
-
in file Expression.php, method Doctrine_Expression::parseClause()
-
parseClause
-
in file Query.php, method Doctrine_Search_Query::parseClause()
-
parseClause
-
in file Complex.php, method Doctrine_Hook_Parser_Complex::parseClause()
    parseClause
-
parseClause
-
in file Check.php, method Doctrine_Query_Check::parseClause()
    parseClause
-
parseData2
-
in file Hydrate.php, method Doctrine_Hydrate::parseData2()
    parseData parses the data returned by statement object
-
parseDsn
-
in file Manager.php, method Doctrine_Manager::parseDsn()
    parseDsn
-
parseExists
-
in file Where.php, method Doctrine_Query_Where::parseExists()
    parses an EXISTS expression
-
parseExpression
-
in file Expression.php, method Doctrine_Expression::parseExpression()
-
parseFunction
-
in file Check.php, method Doctrine_Query_Check::parseFunction()
-
parseLiteralValue
-
in file Condition.php, method Doctrine_Query_Condition::parseLiteralValue()
    parses a literal value and returns the parsed value
-
parseQuery
-
in file Query.php, method Doctrine_Query::parseQuery()
    DQL PARSER
-
parseQuery
-
in file RawSql.php, method Doctrine_RawSql::parseQuery()
    parseQuery parses an sql query and adds the parts to internal array
-
parseQueryPart
-
in file Abstract.php, method Doctrine_Query_Abstract::parseQueryPart()
    parseQueryPart parses given DQL query part
-
parseQueryPart
-
in file Query.php, method Doctrine_Query::parseQueryPart()
    parseQueryPart parses given DQL query part
-
parseQueryPart
-
in file RawSql.php, method Doctrine_RawSql::parseQueryPart()
    parseQueryPart parses given query part
-
parseSchema
-
in file Xml.php, method Doctrine_Import_Schema_Xml::parseSchema()
    parseSchema
-
parseSchema
-
in file Yml.php, method Doctrine_Import_Schema_Yml::parseSchema()
    parseSchema
-
parseSchema
-
in file Schema.php, method Doctrine_Import_Schema::parseSchema()
    Parse the schema and return it in an array
-
parseSelect
-
in file Query.php, method Doctrine_Query::parseSelect()
    parseSelect parses the query select part and adds selected fields to pendingFields array
-
parseSingle
-
in file WordLike.php, method Doctrine_Hook_WordLike::parseSingle()
    parse
-
parseSingle
-
in file Complex.php, method Doctrine_Hook_Parser_Complex::parseSingle()
    parseSingle
-
parseSingle
-
in file Integer.php, method Doctrine_Hook_Integer::parseSingle()
    parse
-
parseSingle
-
in file Check.php, method Doctrine_Query_Check::parseSingle()
-
parseSubselect
-
in file Query.php, method Doctrine_Query::parseSubselect()
    parseSubselect
-
parseTerm
-
in file Query.php, method Doctrine_Search_Query::parseTerm()
-
parseValue
-
in file Where.php, method Doctrine_Query_Where::parseValue()
-
parseWord
-
in file Query.php, method Doctrine_Search_Query::parseWord()
-
patternEscapeString
-
in file Firebird.php, method Doctrine_Expression_Firebird::patternEscapeString()
    build string to define escape pattern string
-
phpType
-
in file Validator.php, method Doctrine_Validator::phpType()
    converts a doctrine type to native php type
-
plurelize
-
in file Lib.php, method Doctrine_Lib::plurelize()
-
pop
-
in file Reporter.php, method Doctrine_Export_Reporter::pop()
-
pop
-
in file Profiler.php, method Doctrine_Connection_Profiler::pop()
    pop the last event from the event stack
-
populateRelated
-
in file Collection.php, method Doctrine_Collection::populateRelated()
    populateRelated
-
PORTABILITY_ALL
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_ALL
    Portability: turn on all portability features.
-
PORTABILITY_DELETE_COUNT
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_DELETE_COUNT
    Portability: force reporting the number of rows deleted.
-
PORTABILITY_EMPTY_TO_NULL
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_EMPTY_TO_NULL
    Portability: convert empty values to null strings in data output by query*() and fetch*().
-
PORTABILITY_EXPR
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_EXPR
    Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions
-
PORTABILITY_FIX_ASSOC_FIELD_NAMES
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_FIX_ASSOC_FIELD_NAMES
    Portability: removes database/table qualifiers from associative indexes
-
PORTABILITY_FIX_CASE
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_FIX_CASE
    Portability: convert names of tables and fields to case defined in the "field_case" option when using the query*(), fetch*() methods.
-
PORTABILITY_NONE
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_NONE
    Portability: turn off all portability features.
-
PORTABILITY_RTRIM
-
in file Doctrine.php, class constant Doctrine::PORTABILITY_RTRIM
    Portability: right trim the data output by query*() and fetch*().
-
postClose
-
in file EventListener.php, method Doctrine_EventListener::postClose()
-
postClose
-
in file Chain.php, method Doctrine_EventListener_Chain::postClose()
    postClose an event invoked after Doctrine_Connection is closed
-
postConnect
-
in file Interface.php, method Doctrine_EventListener_Interface::postConnect()
-
postConnect
-
in file EventListener.php, method Doctrine_EventListener::postConnect()
-
postConnect
-
in file Chain.php, method Doctrine_EventListener_Chain::postConnect()
-
postDelete
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postDelete()
-
postDelete
-
in file Listener.php, method Doctrine_Record_Listener::postDelete()
-
postDelete
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postDelete()
-
postDelete
-
in file Record.php, method Doctrine_Record::postDelete()
    Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure.
-
postError
-
in file Interface.php, method Doctrine_EventListener_Interface::postError()
-
postError
-
in file Chain.php, method Doctrine_EventListener_Chain::postError()
-
postError
-
in file EventListener.php, method Doctrine_EventListener::postError()
-
postExec
-
in file Interface.php, method Doctrine_EventListener_Interface::postExec()
-
postExec
-
in file EventListener.php, method Doctrine_EventListener::postExec()
-
postExec
-
in file Chain.php, method Doctrine_EventListener_Chain::postExec()
-
postFetch
-
in file Interface.php, method Doctrine_EventListener_Interface::postFetch()
-
postFetch
-
in file Chain.php, method Doctrine_EventListener_Chain::postFetch()
-
postFetch
-
in file EventListener.php, method Doctrine_EventListener::postFetch()
-
postFetchAll
-
in file Chain.php, method Doctrine_EventListener_Chain::postFetchAll()
-
postFetchAll
-
in file Interface.php, method Doctrine_EventListener_Interface::postFetchAll()
-
postFetchAll
-
in file EventListener.php, method Doctrine_EventListener::postFetchAll()
-
postInsert
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postInsert()
-
postInsert
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postInsert()
-
postInsert
-
in file Record.php, method Doctrine_Record::postInsert()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time.
-
postInsert
-
in file Listener.php, method Doctrine_Record_Listener::postInsert()
-
postInsert
-
in file Listener.php, method Doctrine_Search_Listener::postInsert()
-
postPrepare
-
in file EventListener.php, method Doctrine_EventListener::postPrepare()
-
postPrepare
-
in file Chain.php, method Doctrine_EventListener_Chain::postPrepare()
-
postPrepare
-
in file Interface.php, method Doctrine_EventListener_Interface::postPrepare()
-
postQuery
-
in file EventListener.php, method Doctrine_EventListener::postQuery()
-
postQuery
-
in file Chain.php, method Doctrine_EventListener_Chain::postQuery()
-
postQuery
-
in file Filter.php, method Doctrine_Query_Filter::postQuery()
    postQuery
-
postQuery
-
in file Interface.php, method Doctrine_EventListener_Interface::postQuery()
-
postQuery
-
in file Query.php, method Doctrine_Query::postQuery()
    postQuery
-
postQuery
-
in file Interface.php, method Doctrine_Query_Filter_Interface::postQuery()
    postQuery
-
postQuery
-
in file Chain.php, method Doctrine_Query_Filter_Chain::postQuery()
    postQuery
-
postSave
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postSave()
-
postSave
-
in file Listener.php, method Doctrine_Record_Listener::postSave()
-
postSave
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postSave()
-
postSave
-
in file Record.php, method Doctrine_Record::postSave()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure.
-
postSavepointCommit
-
in file EventListener.php, method Doctrine_EventListener::postSavepointCommit()
-
postSavepointCreate
-
in file EventListener.php, method Doctrine_EventListener::postSavepointCreate()
-
postSavepointRollback
-
in file EventListener.php, method Doctrine_EventListener::postSavepointRollback()
-
postSerialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postSerialize()
-
postSerialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postSerialize()
-
postSerialize
-
in file Listener.php, method Doctrine_Record_Listener::postSerialize()
-
postSerialize
-
in file Record.php, method Doctrine_Record::postSerialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
postStmtExecute
-
in file Interface.php, method Doctrine_EventListener_Interface::postStmtExecute()
-
postStmtExecute
-
in file EventListener.php, method Doctrine_EventListener::postStmtExecute()
-
postStmtExecute
-
in file Chain.php, method Doctrine_EventListener_Chain::postStmtExecute()
-
postTransactionBegin
-
in file Chain.php, method Doctrine_EventListener_Chain::postTransactionBegin()
    onTransactionBegin an event invoked after a Doctrine_Connection transaction has been started
-
postTransactionBegin
-
in file EventListener.php, method Doctrine_EventListener::postTransactionBegin()
-
postTransactionBegin
-
in file Interface.php, method Doctrine_EventListener_Interface::postTransactionBegin()
-
postTransactionCommit
-
in file Chain.php, method Doctrine_EventListener_Chain::postTransactionCommit()
    onTransactionCommit an event invoked after a Doctrine_Connection transaction is committed
-
postTransactionCommit
-
in file EventListener.php, method Doctrine_EventListener::postTransactionCommit()
-
postTransactionCommit
-
in file Interface.php, method Doctrine_EventListener_Interface::postTransactionCommit()
-
postTransactionRollback
-
in file EventListener.php, method Doctrine_EventListener::postTransactionRollback()
-
postTransactionRollback
-
in file Chain.php, method Doctrine_EventListener_Chain::postTransactionRollback()
    onTransactionRollback an event invoked after a Doctrine_Connection transaction is being rolled back
-
postTransactionRollback
-
in file Interface.php, method Doctrine_EventListener_Interface::postTransactionRollback()
-
postUnserialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postUnserialize()
-
postUnserialize
-
in file Record.php, method Doctrine_Record::postUnserialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
postUnserialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postUnserialize()
-
postUnserialize
-
in file Listener.php, method Doctrine_Record_Listener::postUnserialize()
-
postUpdate
-
in file Listener.php, method Doctrine_Record_Listener::postUpdate()
-
postUpdate
-
in file Interface.php, method Doctrine_Record_Listener_Interface::postUpdate()
-
postUpdate
-
in file Chain.php, method Doctrine_Record_Listener_Chain::postUpdate()
-
postUpdate
-
in file Record.php, method Doctrine_Record::postUpdate()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated.
-
postUpdate
-
in file Listener.php, method Doctrine_Search_Listener::postUpdate()
-
preClose
-
in file EventListener.php, method Doctrine_EventListener::preClose()
-
preClose
-
in file Chain.php, method Doctrine_EventListener_Chain::preClose()
    preClose an event invoked before Doctrine_Connection is closed
-
preConnect
-
in file Chain.php, method Doctrine_EventListener_Chain::preConnect()
-
preConnect
-
in file EventListener.php, method Doctrine_EventListener::preConnect()
-
preConnect
-
in file Interface.php, method Doctrine_EventListener_Interface::preConnect()
-
preDelete
-
in file Listener.php, method Doctrine_AuditLog_Listener::preDelete()
-
preDelete
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preDelete()
-
preDelete
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preDelete()
-
preDelete
-
in file Listener.php, method Doctrine_Record_Listener::preDelete()
-
preDelete
-
in file Record.php, method Doctrine_Record::preDelete()
    Empty template method to provide concrete Record classes with the possibility to hook into the deletion procedure.
-
preError
-
in file Interface.php, method Doctrine_EventListener_Interface::preError()
-
preError
-
in file Chain.php, method Doctrine_EventListener_Chain::preError()
-
preError
-
in file EventListener.php, method Doctrine_EventListener::preError()
-
preExec
-
in file Chain.php, method Doctrine_EventListener_Chain::preExec()
-
preExec
-
in file EventListener.php, method Doctrine_EventListener::preExec()
-
preExec
-
in file Interface.php, method Doctrine_EventListener_Interface::preExec()
-
preFetch
-
in file Interface.php, method Doctrine_EventListener_Interface::preFetch()
-
preFetch
-
in file EventListener.php, method Doctrine_EventListener::preFetch()
-
preFetch
-
in file Chain.php, method Doctrine_EventListener_Chain::preFetch()
-
preFetchAll
-
in file EventListener.php, method Doctrine_EventListener::preFetchAll()
-
preFetchAll
-
in file Interface.php, method Doctrine_EventListener_Interface::preFetchAll()
-
preFetchAll
-
in file Chain.php, method Doctrine_EventListener_Chain::preFetchAll()
-
preInsert
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preInsert()
-
preInsert
-
in file Listener.php, method Doctrine_Record_Listener::preInsert()
-
preInsert
-
in file Record.php, method Doctrine_Record::preInsert()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be inserted into the data store the first time.
-
preInsert
-
in file Listener.php, method Doctrine_AuditLog_Listener::preInsert()
-
preInsert
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preInsert()
-
prepare
-
in file Connection.php, method Doctrine_Connection::prepare()
    prepare
-
prepare
-
in file Interface.php, method Doctrine_Adapter_Interface::prepare()
-
prepareIdentifiers
-
in file Filter.php, method Doctrine_Record_Filter::prepareIdentifiers()
    prepareIdentifiers prepares identifiers for later use
-
prepareIdentifiers
-
in file Record.php, method Doctrine_Record::prepareIdentifiers()
    prepareIdentifiers prepares identifiers for later use
-
prepareValue
-
in file Table.php, method Doctrine_Table::prepareValue()
    prepareValue this method performs special data preparation depending on the type of the given column
-
prePrepare
-
in file Chain.php, method Doctrine_EventListener_Chain::prePrepare()
-
prePrepare
-
in file Interface.php, method Doctrine_EventListener_Interface::prePrepare()
-
prePrepare
-
in file EventListener.php, method Doctrine_EventListener::prePrepare()
-
preQuery
-
in file Chain.php, method Doctrine_EventListener_Chain::preQuery()
-
preQuery
-
in file Interface.php, method Doctrine_EventListener_Interface::preQuery()
-
preQuery
-
in file EventListener.php, method Doctrine_EventListener::preQuery()
-
preQuery
-
in file Filter.php, method Doctrine_Query_Filter::preQuery()
    preQuery
-
preQuery
-
in file Query.php, method Doctrine_Query::preQuery()
    preQuery
-
preQuery
-
in file Interface.php, method Doctrine_Query_Filter_Interface::preQuery()
    preQuery
-
preQuery
-
in file Chain.php, method Doctrine_Query_Filter_Chain::preQuery()
    preQuery
-
preSave
-
in file Record.php, method Doctrine_Record::preSave()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure.
-
preSave
-
in file Listener.php, method Doctrine_Record_Listener::preSave()
-
preSave
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preSave()
-
preSave
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preSave()
-
preSavepointCommit
-
in file EventListener.php, method Doctrine_EventListener::preSavepointCommit()
-
preSavepointCreate
-
in file EventListener.php, method Doctrine_EventListener::preSavepointCreate()
-
preSavepointRollback
-
in file EventListener.php, method Doctrine_EventListener::preSavepointRollback()
-
preSerialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preSerialize()
-
preSerialize
-
in file Record.php, method Doctrine_Record::preSerialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
preSerialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preSerialize()
-
preSerialize
-
in file Listener.php, method Doctrine_Record_Listener::preSerialize()
-
preStmtExecute
-
in file Chain.php, method Doctrine_EventListener_Chain::preStmtExecute()
-
preStmtExecute
-
in file Interface.php, method Doctrine_EventListener_Interface::preStmtExecute()
-
preStmtExecute
-
in file EventListener.php, method Doctrine_EventListener::preStmtExecute()
-
preTransactionBegin
-
in file Chain.php, method Doctrine_EventListener_Chain::preTransactionBegin()
    onTransactionBegin an event invoked before a Doctrine_Connection transaction is being started
-
preTransactionBegin
-
in file EventListener.php, method Doctrine_EventListener::preTransactionBegin()
-
preTransactionBegin
-
in file Interface.php, method Doctrine_EventListener_Interface::preTransactionBegin()
-
preTransactionCommit
-
in file Interface.php, method Doctrine_EventListener_Interface::preTransactionCommit()
-
preTransactionCommit
-
in file EventListener.php, method Doctrine_EventListener::preTransactionCommit()
-
preTransactionCommit
-
in file Chain.php, method Doctrine_EventListener_Chain::preTransactionCommit()
    onPreTransactionCommit an event invoked before a Doctrine_Connection transaction is committed
-
preTransactionRollback
-
in file Interface.php, method Doctrine_EventListener_Interface::preTransactionRollback()
-
preTransactionRollback
-
in file EventListener.php, method Doctrine_EventListener::preTransactionRollback()
-
preTransactionRollback
-
in file Chain.php, method Doctrine_EventListener_Chain::preTransactionRollback()
    onPreTransactionRollback an event invoked before a Doctrine_Connection transaction is being rolled back
-
preUnserialize
-
in file Record.php, method Doctrine_Record::preUnserialize()
    Empty template method to provide concrete Record classes with the possibility to hook into the serializing procedure.
-
preUnserialize
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preUnserialize()
-
preUnserialize
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preUnserialize()
-
preUnserialize
-
in file Listener.php, method Doctrine_Record_Listener::preUnserialize()
-
preUpdate
-
in file Record.php, method Doctrine_Record::preUpdate()
    Empty template method to provide concrete Record classes with the possibility to hook into the saving procedure only when the record is going to be updated.
-
preUpdate
-
in file Chain.php, method Doctrine_Record_Listener_Chain::preUpdate()
-
preUpdate
-
in file Listener.php, method Doctrine_Search_Listener::preUpdate()
-
preUpdate
-
in file Listener.php, method Doctrine_Record_Listener::preUpdate()
-
preUpdate
-
in file Interface.php, method Doctrine_Record_Listener_Interface::preUpdate()
-
preUpdate
-
in file Listener.php, method Doctrine_AuditLog_Listener::preUpdate()
-
process
-
in file Scorer.php, method Doctrine_Search_Scorer::process()
-
processDeleteIntegrity
-
in file IntegrityMapper.php, method Doctrine_IntegrityMapper::processDeleteIntegrity()
-
processDiff
-
in file Collection.php, method Doctrine_Collection::processDiff()
    processDiff processes the difference of the last snapshot and the current data
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Pgsql_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Sqlite_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Mysql_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Firebird_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to errorInfo array and returns the modified array
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Mssql_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processErrorInfo
-
in file Exception.php, method Doctrine_Connection_Oracle_Exception::processErrorInfo()
    This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field
-
processPendingAggregates
-
in file Query.php, method Doctrine_Query::processPendingAggregates()
    processPendingAggregates processes pending aggregate values for given component alias
-
processPendingFields
-
in file Query.php, method Doctrine_Query::processPendingFields()
    processPendingFields the fields in SELECT clause cannot be parsed until the components in FROM clause are parsed, hence this method is called everytime a specific component is being parsed.
-
processPendingSubqueries
-
in file Query.php, method Doctrine_Query::processPendingSubqueries()
    processPendingSubqueries processes pending subqueries
-
pop
-
in file Mock.php, method Doctrine_Adapter_Mock::pop()
-
prepare
-
in file Oracle.php, method Doctrine_Adapter_Oracle::prepare()
    Returns an SQL statement for preparation.
-
prepare
-
in file Mysqli.php, method Doctrine_Adapter_Mysqli::prepare()
    Prepare a statement and return a PDOStatement-like object.
-
prepare
-
in file Mock.php, method Doctrine_Adapter_Mock::prepare()
-
prepare
-
in file Db2.php, method Doctrine_Adapter_Db2::prepare()
    Returns an SQL statement for preparation.
-
pop
-
in file Cache.php, method Doctrine_Cache::pop()
    pop
-
preExecute
-
in file Cache.php, method Doctrine_Cache::preExecute()
    preExecute listens the preExecute event of Doctrine_Connection_Statement
-
preFetch
-
in file Cache.php, method Doctrine_Cache::preFetch()
    preFetch listens the preFetch event of Doctrine_Connection_Statement
-
preFetchAll
-
in file Cache.php, method Doctrine_Cache::preFetchAll()
    preFetch listens the preFetchAll event of Doctrine_Connection_Statement
-
preQuery
-
in file Cache.php, method Doctrine_Cache::preQuery()
    preQuery listens on the Doctrine_Event preQuery event
-
Pgsql.php
-
procedural page Pgsql.php
-
parseBoolean
-
in file Pgsql.php, method Doctrine_DataDict_Pgsql::parseBoolean()
    parseBoolean parses a literal boolean value and returns proper sql equivalent
-
-
- -
-
q
-
[Top]
-
-
-
-

q

-
-
$query
-
in file Hook.php, variable Doctrine_Hook::$query
-
$query
-
in file Part.php, variable Doctrine_Query_Part::$query
-
$query
-
in file View.php, variable Doctrine_View::$query
-
Query.php
-
procedural page Query.php
-
Query.php
-
procedural page Query.php
-
query
-
in file Query.php, method Doctrine_Query::query()
    query query the database with DQL (Doctrine Query Language)
-
query
-
in file Connection.php, method Doctrine_Connection::query()
    query queries the database using Doctrine Query Language returns a collection of Doctrine_Record objects
-
query
-
in file Interface.php, method Doctrine_Adapter_Interface::query()
-
queryOne
-
in file Connection.php, method Doctrine_Connection::queryOne()
    query queries the database using Doctrine Query Language and returns the first record found
-
quote
-
in file Connection.php, method Doctrine_Connection::quote()
    quote quotes given input parameter
-
quote
-
in file Interface.php, method Doctrine_Adapter_Interface::quote()
-
quote
-
in file Formatter.php, method Doctrine_Formatter::quote()
    quote quotes given input parameter
-
quoteExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::quoteExplode()
    quoteExplode
-
quoteIdentifier
-
in file Mssql.php, method Doctrine_Connection_Mssql::quoteIdentifier()
    quoteIdentifier Quote a string so it can be safely used as a table / column name
-
quoteIdentifier
-
in file Formatter.php, method Doctrine_Formatter::quoteIdentifier()
    Quote a string so it can be safely used as a table or column name
-
quoteIdentifier
-
in file Connection.php, method Doctrine_Connection::quoteIdentifier()
    Quote a string so it can be safely used as a table or column name
-
$queries
-
in file Mock.php, variable Doctrine_Adapter_Mock::$queries
-
$queryString
-
in file Mock.php, variable Doctrine_Adapter_Statement_Mock::$queryString
-
query
-
in file Mock.php, method Doctrine_Adapter_Mock::query()
-
quote
-
in file Mock.php, method Doctrine_Adapter_Mock::quote()
-
quoteTableAs
-
in file Oracle.php, method Doctrine_Adapter_Oracle::quoteTableAs()
    Quote a table identifier and alias.
-
-
- -
-
r
-
[Top]
-
-
-
-

r

-
-
$record
-
in file Node.php, variable Doctrine_Node::$record
-
$record
-
in file Iterator.php, variable Doctrine_Record_Iterator::$record
-
$reference
-
in file Collection.php, variable Doctrine_Collection::$reference
-
$referencedColumn
-
in file Relation.php, variable Doctrine_Schema_Relation::$referencedColumn
    Column that is referred from another table
-
$referencedTable
-
in file Relation.php, variable Doctrine_Schema_Relation::$referencedTable
    Table where the referred column lives
-
$referenceField
-
in file Collection.php, variable Doctrine_Collection::$referenceField
-
$referencingColumn
-
in file Relation.php, variable Doctrine_Schema_Relation::$referencingColumn
    Column that refers to another table
-
$registry
-
in file Repository.php, variable Doctrine_Table_Repository::$registry
-
$relation
-
in file Collection.php, variable Doctrine_Collection::$relation
-
$relations
-
in file Table.php, variable Doctrine_Schema_Table::$relations
    Relations this table has with others. An array of Doctrine_Schema_Relation
-
$repository
-
in file Table.php, variable Doctrine_Table::$repository
-
Reporter.php
-
procedural page Reporter.php
-
Record.php
-
procedural page Record.php
-
Reader.php
-
procedural page Reader.php
-
RawSql.php
-
procedural page RawSql.php
-
Record.php
-
procedural page Record.php
-
Relation.php
-
procedural page Relation.php
-
Relation.php
-
procedural page Relation.php
-
Record.php
-
procedural page Record.php
-
Repository.php
-
procedural page Repository.php
-
Range.php
-
procedural page Range.php
-
Regexp.php
-
procedural page Regexp.php
-
random
-
in file Mysql.php, method Doctrine_Expression_Mysql::random()
    return string to call a function to get random value inside an SQL statement
-
random
-
in file Oracle.php, method Doctrine_Expression_Oracle::random()
    random
-
random
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::random()
    return string to call a function to get random value inside an SQL statement
-
random
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::random()
    return string to call a function to get random value inside an SQL statement
-
rawGet
-
in file Record.php, method Doctrine_Record::rawGet()
    rawGet returns the value of a property, if the property is not yet loaded this method does NOT load it
-
read
-
in file Reader.php, method Doctrine_Import_Reader::read()
-
read
-
in file Propel.php, method Doctrine_Import_Reader_Xml_Propel::read()
-
read
-
in file Db.php, method Doctrine_Import_Reader_Db::read()
-
RECORD_DELETE
-
in file Event.php, class constant Doctrine_Event::RECORD_DELETE
-
RECORD_INSERT
-
in file Event.php, class constant Doctrine_Event::RECORD_INSERT
-
RECORD_SAVE
-
in file Event.php, class constant Doctrine_Event::RECORD_SAVE
-
RECORD_SERIALIZE
-
in file Event.php, class constant Doctrine_Event::RECORD_SERIALIZE
-
RECORD_UNSERIALIZE
-
in file Event.php, class constant Doctrine_Event::RECORD_UNSERIALIZE
-
RECORD_UPDATE
-
in file Event.php, class constant Doctrine_Event::RECORD_UPDATE
-
refresh
-
in file Record.php, method Doctrine_Record::refresh()
    refresh refresh internal data from the database
-
refreshRelated
-
in file Record.php, method Doctrine_Record::refreshRelated()
    refresh refres data of related objects from the database
-
regexp
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::regexp()
    regexp
-
regexp
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::regexp()
    returns the regular expression operator
-
regexp
-
in file Driver.php, method Doctrine_Expression_Driver::regexp()
    regexp returns the regular expression operator
-
regexp
-
in file Mysql.php, method Doctrine_Expression_Mysql::regexp()
    returns the regular expression operator
-
registerCollection
-
in file Record.php, method Doctrine_Hydrate_Record::registerCollection()
-
registerCollection
-
in file Array.php, method Doctrine_Hydrate_Array::registerCollection()
-
releaseAgedLocks
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::releaseAgedLocks()
    Releases locks older than a defined amount of seconds
-
releaseLock
-
in file Pessimistic.php, method Doctrine_Locking_Manager_Pessimistic::releaseLock()
    Releases a lock on a Doctrine_Record
-
releaseSavePoint
-
in file Transaction.php, method Doctrine_Transaction::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Mysql.php, method Doctrine_Transaction_Mysql::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Firebird.php, method Doctrine_Transaction_Firebird::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
releaseSavePoint
-
in file Oracle.php, method Doctrine_Transaction_Oracle::releaseSavePoint()
    releaseSavePoint releases given savepoint
-
remove
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::remove()
    Removes all existing errors for the specified field from the stack.
-
remove
-
in file Collection.php, method Doctrine_Collection::remove()
    remove removes a specified collection element
-
removeQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::removeQueryPart()
    removeQueryPart removes a query part from the query part array
-
removeSavePoints
-
in file Transaction.php, method Doctrine_Transaction::removeSavePoints()
    removeSavePoints removes a savepoint from the internal savePoints array of this transaction object and all its children savepoints
-
replace
-
in file Mysql.php, method Doctrine_Connection_Mysql::replace()
    Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
-
replace
-
in file Connection.php, method Doctrine_Connection::replace()
    Execute a SQL REPLACE query. A REPLACE query is identical to a INSERT query, except that if there is already a row in the table with the same key field values, the REPLACE query just updates its values instead of inserting a new row.
-
replace
-
in file Record.php, method Doctrine_Record::replace()
    replace
-
reset
-
in file Query.php, method Doctrine_Query::reset()
-
resetBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::resetBaseQuery()
    Enter description here...
-
rethrowException
-
in file Connection.php, method Doctrine_Connection::rethrowException()
    rethrowException
-
returnQueryWithRootId
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::returnQueryWithRootId()
    returns parsed query with root id where clause added if applicable
-
revert
-
in file Record.php, method Doctrine_Record::revert()
    revert reverts this record to given version, this method only works if versioning plugin is enabled
-
rewind
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::rewind()
-
rewind
-
in file Iterator.php, method Doctrine_Collection_Iterator::rewind()
    rewinds the iterator
-
rewind
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::rewind()
-
rewind
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::rewind()
    rewinds the iterator
-
rewind
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::rewind()
-
rollBack
-
in file Interface.php, method Doctrine_Adapter_Interface::rollBack()
-
rollback
-
in file Transaction.php, method Doctrine_Transaction::rollback()
    rollback
-
rollback
-
in file Connection.php, method Doctrine_Connection::rollback()
    rollback
-
rollbackSavePoint
-
in file Transaction.php, method Doctrine_Transaction::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Mysql.php, method Doctrine_Transaction_Mysql::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Firebird.php, method Doctrine_Transaction_Firebird::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Oracle.php, method Doctrine_Transaction_Oracle::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
rollbackSavePoint
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::rollbackSavePoint()
    rollbackSavePoint releases given savepoint
-
round
-
in file Driver.php, method Doctrine_Expression_Driver::round()
    Rounds a numeric field to the number of decimals specified.
-
rowCount
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::rowCount()
    rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
rowCount
-
in file Statement.php, method Doctrine_Connection_Statement::rowCount()
    rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
rowCount
-
in file Statement.php, method Doctrine_Adapter_Statement::rowCount()
-
rtrim
-
in file Driver.php, method Doctrine_Expression_Driver::rtrim()
    rtrim returns the string $str with proceeding space characters removed
-
rtrimImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::rtrimImpl()
-
rollBack
-
in file Mock.php, method Doctrine_Adapter_Mock::rollBack()
-
rowCount
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::rowCount()
    rowCount rowCount() returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding object.
-
readStats
-
in file Cache.php, method Doctrine_Cache::readStats()
    readStats
-
reset
-
in file Cache.php, method Doctrine_Cache::reset()
    reset
-
$reservedKeyWords
-
in file Pgsql.php, variable Doctrine_DataDict_Pgsql::$reservedKeyWords
-
-
- -
-
s
-
[Top]
-
-
-
-

s

-
-
$savePoints
-
in file Transaction.php, variable Doctrine_Transaction::$savePoints
-
$serverInfo
-
in file Connection.php, variable Doctrine_Connection::$serverInfo
-
$sql
-
in file Informix.php, variable Doctrine_Import_Informix::$sql
-
$sql
-
in file Check.php, variable Doctrine_Query_Check::$sql
-
$sql
-
in file Mysql.php, variable Doctrine_Import_Mysql::$sql
-
$sql
-
in file Import.php, variable Doctrine_Import::$sql
-
$sql
-
in file Pgsql.php, variable Doctrine_Import_Pgsql::$sql
-
$states
-
in file Usstate.php, variable Doctrine_Validator_Usstate::$states
-
$subqueryAliases
-
in file Query.php, variable Doctrine_Query::$subqueryAliases
-
$suffix
-
in file Builder.php, variable Doctrine_Import_Builder::$suffix
-
$supported
-
in file Connection.php, variable Doctrine_Connection::$supported
-
Statement.php
-
procedural page Statement.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Statement.php
-
procedural page Statement.php
-
Schema.php
-
procedural page Schema.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Schema.php
-
procedural page Schema.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Select.php
-
procedural page Select.php
-
Set.php
-
procedural page Set.php
-
Self.php
-
procedural page Self.php
-
Schema.php
-
procedural page Schema.php
-
Standard.php
-
procedural page Standard.php
-
Scorer.php
-
procedural page Scorer.php
-
Search.php
-
procedural page Search.php
-
Sqlite.php
-
procedural page Sqlite.php
-
Sequence.php
-
procedural page Sequence.php
-
Searchable.php
-
procedural page Searchable.php
-
Sqlite.php
-
procedural page Sqlite.php
-
save
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::save()
    saves the given record
-
save
-
in file Record.php, method Doctrine_Record::save()
    applies the changes made to this object into database this method is smart enough to know if any changes are made and whether to use INSERT or UPDATE statement
-
save
-
in file Collection.php, method Doctrine_Collection::save()
    save saves all records of this collection and processes the difference of the last snapshot and the current data
-
saveAll
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveAll()
    saveAll persists all the pending records from all tables
-
saveAssociations
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveAssociations()
    saveAssociations
-
saveGraph
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveGraph()
    saves the given record
-
SAVEPOINT_COMMIT
-
in file Event.php, class constant Doctrine_Event::SAVEPOINT_COMMIT
-
SAVEPOINT_CREATE
-
in file Event.php, class constant Doctrine_Event::SAVEPOINT_CREATE
-
SAVEPOINT_ROLLBACK
-
in file Event.php, class constant Doctrine_Event::SAVEPOINT_ROLLBACK
-
saveRelated
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::saveRelated()
    saveRelated saves all related records to $record
-
search
-
in file Collection.php, method Doctrine_Collection::search()
-
search
-
in file Array.php, method Doctrine_Hydrate_Array::search()
-
search
-
in file Query.php, method Doctrine_Search_Query::search()
-
search
-
in file Record.php, method Doctrine_Hydrate_Record::search()
-
SELECT
-
in file Hydrate.php, class constant Doctrine_Hydrate::SELECT
    constant for SELECT queries
-
select
-
in file Connection.php, method Doctrine_Connection::select()
    queries the database with limit and offset added to the query and returns a PDOStatement object
-
select
-
in file Abstract.php, method Doctrine_Query_Abstract::select()
    select sets the SELECT part of the query
-
SELECT
-
in file View.php, class constant Doctrine_View::SELECT
    SQL SELECT constant
-
serialize
-
in file Record.php, method Doctrine_Record::serialize()
    serialize this method is automatically called when this Doctrine_Record is serialized
-
serialize
-
in file Hydrate.php, method Doctrine_Hydrate::serialize()
    serialize this method is automatically called when this Doctrine_Hydrate is serialized
-
serialize
-
in file Collection.php, method Doctrine_Collection::serialize()
    this method is automatically called when this Doctrine_Collection is serialized
-
set
-
in file Chain.php, method Doctrine_Query_Filter_Chain::set()
    set
-
set
-
in file Object.php, method Doctrine_Schema_Object::set()
-
set
-
in file Chain.php, method Doctrine_Record_Listener_Chain::set()
    set
-
set
-
in file Chain.php, method Doctrine_EventListener_Chain::set()
    set
-
set
-
in file Column.php, method Doctrine_Column::set()
    set
-
set
-
in file Record.php, method Doctrine_Record::set()
    set method for altering properties and Doctrine_Record references if the load parameter is set to false this method will not try to load uninitialized record data
-
set
-
in file Collection.php, method Doctrine_Collection::set()
    set
-
set
-
in file ErrorStack.php, method Doctrine_Validator_ErrorStack::set()
    Enter description here...
-
set
-
in file Abstract.php, method Doctrine_Query_Abstract::set()
    set sets the SET part of the query
-
setAliasMap
-
in file Hydrate.php, method Doctrine_Hydrate::setAliasMap()
    setAliasMap sets the whole component alias map
-
setArray
-
in file Access.php, method Doctrine_Access::setArray()
    setArray
-
setAttribute
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::setAttribute()
    setAttribute Set a statement attribute
-
setAttribute
-
in file Statement.php, method Doctrine_Connection_Statement::setAttribute()
    setAttribute Set a statement attribute
-
setAttribute
-
in file Abstract.php, method Doctrine_Record_Abstract::setAttribute()
-
setAttribute
-
in file Configurable.php, method Doctrine_Configurable::setAttribute()
    setAttribute sets a given attribute
-
setAttribute
-
in file Tree.php, method Doctrine_Tree::setAttribute()
    sets tree attribute value
-
setAttribute
-
in file Connection.php, method Doctrine_Connection::setAttribute()
    setAttribute sets an attribute
-
setBaseQuery
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::setBaseQuery()
    Enter description here...
-
setCacheLifeSpan
-
in file Hydrate.php, method Doctrine_Hydrate::setCacheLifeSpan()
    setCacheLifeSpan
-
setCharset
-
in file Connection.php, method Doctrine_Connection::setCharset()
    Set the charset on the current connection
-
setCharset
-
in file Mysql.php, method Doctrine_Connection_Mysql::setCharset()
    Set the charset on the current connection
-
setCharset
-
in file Firebird.php, method Doctrine_Connection_Firebird::setCharset()
    Set the charset on the current connection
-
setCharset
-
in file Pgsql.php, method Doctrine_Connection_Pgsql::setCharset()
    Set the charset on the current connection
-
setColumn
-
in file Table.php, method Doctrine_Table::setColumn()
    setColumn
-
setComponentAlias
-
in file Manager.php, method Doctrine_Manager::setComponentAlias()
    sets an alias for given component name very useful when building a large framework with a possibility to override any given class
-
setCurrentConnection
-
in file Manager.php, method Doctrine_Manager::setCurrentConnection()
    setCurrentConnection sets the current connection to $key
-
setData
-
in file Collection.php, method Doctrine_Collection::setData()
    setData
-
setData
-
in file Table.php, method Doctrine_Table::setData()
    setData doctrine uses this function internally users are strongly discouraged to use this function
-
setDateFormat
-
in file Oracle.php, method Doctrine_Connection_Oracle::setDateFormat()
    Sets up the date/time format
-
setDateFormat
-
in file Connection.php, method Doctrine_Connection::setDateFormat()
    Set the date/time format for the current connection
-
setDefaultAttributes
-
in file Manager.php, method Doctrine_Manager::setDefaultAttributes()
    setDefaultAttributes sets default attributes
-
setEventListener
-
in file Configurable.php, method Doctrine_Configurable::setEventListener()
-
setExpression
-
in file Expression.php, method Doctrine_Expression::setExpression()
-
setFetchMode
-
in file Interface.php, method Doctrine_Adapter_Statement_Interface::setFetchMode()
    setFetchMode Set the default fetch mode for this statement
-
setFetchMode
-
in file Statement.php, method Doctrine_Connection_Statement::setFetchMode()
    setFetchMode Set the default fetch mode for this statement
-
setFetchMode
-
in file Statement.php, method Doctrine_Adapter_Statement::setFetchMode()
-
setFieldParser
-
in file Hook.php, method Doctrine_Hook::setFieldParser()
    setFieldParser
-
setFilterQueryType
-
in file Profiler.php, method Doctrine_Connection_Profiler::setFilterQueryType()
    setFilterQueryType
-
setHydrationMode
-
in file Hydrate.php, method Doctrine_Hydrate::setHydrationMode()
    Sets the fetchmode.
-
setImpl
-
in file Configurable.php, method Doctrine_Configurable::setImpl()
    setImpl binds given class to given template name
-
setInheritanceMap
-
in file Abstract.php, method Doctrine_Record_Abstract::setInheritanceMap()
-
setIsolation
-
in file Pgsql.php, method Doctrine_Transaction_Pgsql::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Firebird.php, method Doctrine_Transaction_Firebird::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Oracle.php, method Doctrine_Transaction_Oracle::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Transaction.php, method Doctrine_Transaction::setIsolation()
    setIsolation
-
setIsolation
-
in file Mssql.php, method Doctrine_Transaction_Mssql::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Mysql.php, method Doctrine_Transaction_Mysql::setIsolation()
    Set the transacton isolation level.
-
setIsolation
-
in file Sqlite.php, method Doctrine_Transaction_Sqlite::setIsolation()
    Set the transacton isolation level.
-
setIteratorOptions
-
in file Node.php, method Doctrine_Node::setIteratorOptions()
    sets node's iterator options
-
setIteratorType
-
in file Node.php, method Doctrine_Node::setIteratorType()
    sets node's iterator type
-
setKeyColumn
-
in file Collection.php, method Doctrine_Collection::setKeyColumn()
    setKeyColumn sets the key column for this collection
-
setLeftValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::setLeftValue()
    sets record's left value
-
setListener
-
in file Abstract.php, method Doctrine_Record_Abstract::setListener()
    setListener
-
setListener
-
in file Configurable.php, method Doctrine_Configurable::setListener()
    setListener
-
setOption
-
in file AuditLog.php, method Doctrine_AuditLog::setOption()
    setOption sets an option and returns this object in order to allow flexible method chaining
-
setOption
-
in file Plugin.php, method Doctrine_Plugin::setOption()
    sets given value to an option
-
setOption
-
in file Search.php, method Doctrine_Search::setOption()
-
setOption
-
in file Table.php, method Doctrine_Table::setOption()
    setOption sets an option and returns this object in order to allow flexible method chaining
-
setOption
-
in file Query.php, method Doctrine_Query::setOption()
    setOption
-
setParams
-
in file Hydrate.php, method Doctrine_Hydrate::setParams()
    setParams
-
setParent
-
in file Configurable.php, method Doctrine_Configurable::setParent()
    sets a parent for this configurable component the parent must be configurable component itself
-
setPdo
-
in file Db.php, method Doctrine_Import_Reader_Db::setPdo()
-
setPrimaryKey
-
in file Table.php, method Doctrine_Table::setPrimaryKey()
-
setQueryPart
-
in file Hydrate.php, method Doctrine_Hydrate::setQueryPart()
    setQueryPart sets a query part in the query part array
-
setRecord
-
in file Node.php, method Doctrine_Node::setRecord()
    setter for record attribute
-
setRecordListener
-
in file Configurable.php, method Doctrine_Configurable::setRecordListener()
    setListener
-
setReference
-
in file Collection.php, method Doctrine_Collection::setReference()
    setReference sets a reference pointer
-
setRelated
-
in file Record.php, method Doctrine_Record::setRelated()
    setRelated
-
setRelation
-
in file Table.php, method Doctrine_Schema_Table::setRelation()
    Adds a relation between a local column and a 2nd table / column
-
setRelationBetween
-
in file Relation.php, method Doctrine_Schema_Relation::setRelationBetween()
-
setRightValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::setRightValue()
    sets record's right value
-
setRootValue
-
in file NestedSet.php, method Doctrine_Node_NestedSet::setRootValue()
    sets records root id value
-
setSubclasses
-
in file Abstract.php, method Doctrine_Record_Abstract::setSubclasses()
-
setTable
-
in file Template.php, method Doctrine_Template::setTable()
    setTable
-
setTableDefinition
-
in file Record.php, method Doctrine_Search_Record::setTableDefinition()
-
setTableDefinition
-
in file File.php, method Doctrine_File::setTableDefinition()
-
setTableDefinition
-
in file Template.php, method Doctrine_Template::setTableDefinition()
-
setTableDefinition
-
in file NestedSet.php, method Doctrine_Tree_NestedSet::setTableDefinition()
    used to define table attributes required for the NestetSet implementation
-
setTableDefinition
-
in file Index.php, method Doctrine_File_Index::setTableDefinition()
-
setTableDefinition
-
in file Tree.php, method Doctrine_Tree::setTableDefinition()
    Used to define table attributes required for the given implementation
-
setTableName
-
in file Table.php, method Doctrine_Table::setTableName()
-
setTableName
-
in file Abstract.php, method Doctrine_Record_Abstract::setTableName()
-
setTargetPath
-
in file Builder.php, method Doctrine_Import_Builder::setTargetPath()
    setTargetPath
-
setTransactionLevel
-
in file Transaction.php, method Doctrine_Transaction::setTransactionLevel()
    getTransactionLevel set the current transaction nesting level
-
setTypeParser
-
in file Hook.php, method Doctrine_Hook::setTypeParser()
    setTypeParser
-
setUp
-
in file Tree.php, method Doctrine_Tree::setUp()
    this method is used for setting up relations and attributes and should be used by specific implementations
-
setUp
-
in file Record.php, method Doctrine_Search_Record::setUp()
-
setUp
-
in file Searchable.php, method Doctrine_Template_Searchable::setUp()
-
setUp
-
in file Index.php, method Doctrine_File_Index::setUp()
-
setUp
-
in file File.php, method Doctrine_File::setUp()
-
setUp
-
in file Template.php, method Doctrine_Search_Template::setUp()
-
setUp
-
in file NestedSet.php, method Doctrine_Template_NestedSet::setUp()
-
setUp
-
in file Template.php, method Doctrine_Template::setUp()
-
setUp
-
in file Versionable.php, method Doctrine_Template_Versionable::setUp()
-
setUp
-
in file Record.php, method Doctrine_Record::setUp()
    setUp this method is used for setting up relations and attributes it should be implemented by child classes
-
setView
-
in file Hydrate.php, method Doctrine_Hydrate::setView()
    setView sets a database view this query object uses this method should only be called internally by doctrine
-
setXml
-
in file Propel.php, method Doctrine_Import_Reader_Xml_Propel::setXml()
-
sha1Impl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::sha1Impl()
-
shiftRlRange
-
in file NestedSet.php, method Doctrine_Node_NestedSet::shiftRlRange()
    adds '$delta' to all Left and Right values that are >= '$first' and <= '$last'.
-
shiftRlValues
-
in file NestedSet.php, method Doctrine_Node_NestedSet::shiftRlValues()
    adds '$delta' to all Left and Right values that are >= '$first'. '$delta' can also be negative.
-
skipOperation
-
in file Event.php, method Doctrine_Event::skipOperation()
    skipOperation skips the next operation an alias for __set('skipOperation', true)
-
soundex
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::soundex()
    soundex Returns a string to call a function to compute the soundex encoding of a string
-
soundex
-
in file Driver.php, method Doctrine_Expression_Driver::soundex()
    soundex Returns a string to call a function to compute the soundex encoding of a string
-
sqlExplode
-
in file Tokenizer.php, method Doctrine_Tokenizer::sqlExplode()
    sqlExplode
-
standaloneQuery
-
in file Connection.php, method Doctrine_Connection::standaloneQuery()
    standaloneQuery
-
start
-
in file Event.php, method Doctrine_Event::start()
    start starts the internal timer of this event
-
state
-
in file Record.php, method Doctrine_Record::state()
    state returns / assigns the state of this record
-
STATE_ACTIVE
-
in file Transaction.php, class constant Doctrine_Transaction::STATE_ACTIVE
    Doctrine_Transaction is in active state when it has one active transaction
-
STATE_BUSY
-
in file Transaction.php, class constant Doctrine_Transaction::STATE_BUSY
    Doctrine_Transaction is in busy state when it has multiple active transactions
-
STATE_CLEAN
-
in file Record.php, class constant Doctrine_Record::STATE_CLEAN
    CLEAN STATE
-
STATE_CLEAN
-
in file Query.php, class constant Doctrine_Query::STATE_CLEAN
-
STATE_DIRECT
-
in file Query.php, class constant Doctrine_Query::STATE_DIRECT
-
STATE_DIRTY
-
in file Query.php, class constant Doctrine_Query::STATE_DIRTY
-
STATE_DIRTY
-
in file Record.php, class constant Doctrine_Record::STATE_DIRTY
    DIRTY STATE
-
STATE_LOCKED
-
in file Record.php, class constant Doctrine_Record::STATE_LOCKED
    LOCKED STATE a Doctrine_Record is temporarily locked during deletes and saves
-
STATE_LOCKED
-
in file Query.php, class constant Doctrine_Query::STATE_LOCKED
-
STATE_PROXY
-
in file Record.php, class constant Doctrine_Record::STATE_PROXY
    PROXY STATE
-
STATE_SLEEP
-
in file Transaction.php, class constant Doctrine_Transaction::STATE_SLEEP
    Doctrine_Transaction is in sleep state when it has no active transactions
-
STATE_TCLEAN
-
in file Record.php, class constant Doctrine_Record::STATE_TCLEAN
    NEW TCLEAN
-
STATE_TDIRTY
-
in file Record.php, class constant Doctrine_Record::STATE_TDIRTY
    TDIRTY STATE
-
STMT_EXECUTE
-
in file Event.php, class constant Doctrine_Event::STMT_EXECUTE
-
STMT_FETCH
-
in file Event.php, class constant Doctrine_Event::STMT_FETCH
-
STMT_FETCHALL
-
in file Event.php, class constant Doctrine_Event::STMT_FETCHALL
-
sub
-
in file Driver.php, method Doctrine_Expression_Driver::sub()
    Returns the SQL to subtract values or expressions from eachother.
-
substring
-
in file Driver.php, method Doctrine_Expression_Driver::substring()
    return string to call a function to get a substring inside an SQL statement
-
substring
-
in file Pgsql.php, method Doctrine_Expression_Pgsql::substring()
    Returns part of a string.
-
substring
-
in file Mssql.php, method Doctrine_Expression_Mssql::substring()
    return string to call a function to get a substring inside an SQL statement
-
substring
-
in file Oracle.php, method Doctrine_Expression_Oracle::substring()
    return string to call a function to get a substring inside an SQL statement
-
substring
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::substring()
    return string to call a function to get a substring inside an SQL statement
-
sum
-
in file Driver.php, method Doctrine_Expression_Driver::sum()
    Returns the total sum of a column
-
supports
-
in file Connection.php, method Doctrine_Connection::supports()
    supports
-
setAttribute
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::setAttribute()
    setAttribute Set a statement attribute
-
setAttribute
-
in file Mock.php, method Doctrine_Adapter_Mock::setAttribute()
-
setFetchMode
-
in file Mock.php, method Doctrine_Adapter_Statement_Mock::setFetchMode()
    setFetchMode Set the default fetch mode for this statement
-
setFetchMode
-
in file Db2.php, method Doctrine_Adapter_Db2::setFetchMode()
    Set the fetch mode.
-
setFetchMode
-
in file Oracle.php, method Doctrine_Adapter_Oracle::setFetchMode()
    Set the fetch mode.
-
sqliteCreateFunction
-
in file Mock.php, method Doctrine_Adapter_Mock::sqliteCreateFunction()
-
save
-
in file Interface.php, method Doctrine_Cache_Interface::save()
    Save some string datas into a cache record
-
save
-
in file Memcache.php, method Doctrine_Cache_Memcache::save()
    Save some string datas into a cache record
-
save
-
in file Apc.php, method Doctrine_Cache_Apc::save()
    Save some string datas into a cache record
-
save
-
in file Db.php, method Doctrine_Cache_Db::save()
    Save some string datas into a cache record
-
save
-
in file Array.php, method Doctrine_Cache_Array::save()
    Save some string datas into a cache record
-
setOption
-
in file Cache.php, method Doctrine_Cache::setOption()
    setOption
-
setOption
-
in file Driver.php, method Doctrine_Cache_Driver::setOption()
    setOption
-
Sqlite.php
-
procedural page Sqlite.php
-
-
- -
-
t
-
[Top]
-
-
-
-

t

-
-
$table
-
in file Repository.php, variable Doctrine_Table_Repository::$table
-
$table
-
in file Tree.php, variable Doctrine_Tree::$table
-
$table
-
in file Check.php, variable Doctrine_Query_Check::$table
-
$tables
-
in file Connection.php, variable Doctrine_Connection::$tables
-
$topNode
-
in file PostOrderIterator.php, variable Doctrine_Node_MaterializedPath_PostOrderIterator::$topNode
-
$topNode
-
in file LevelOrderIterator.php, variable Doctrine_Node_MaterializedPath_LevelOrderIterator::$topNode
-
$topNode
-
in file PreOrderIterator.php, variable Doctrine_Node_MaterializedPath_PreOrderIterator::$topNode
-
$tpl
-
in file Builder.php, variable Doctrine_Import_Builder::$tpl
-
$transactionLevel
-
in file Transaction.php, variable Doctrine_Transaction::$transactionLevel
-
$traverseLevel
-
in file PreOrderIterator.php, variable Doctrine_Node_NestedSet_PreOrderIterator::$traverseLevel
-
$tree
-
in file Table.php, variable Doctrine_Table::$tree
-
$type
-
in file Hydrate.php, variable Doctrine_Hydrate::$type
-
$typeParsers
-
in file Hook.php, variable Doctrine_Hook::$typeParsers
-
Table.php
-
procedural page Table.php
-
Template.php
-
procedural page Template.php
-
Table.php
-
procedural page Table.php
-
Taggable.php
-
procedural page Taggable.php
-
Template.php
-
procedural page Template.php
-
Tokenizer.php
-
procedural page Tokenizer.php
-
Transaction.php
-
procedural page Transaction.php
-
Tree.php
-
procedural page Tree.php
-
table
-
in file Manager.php, method Doctrine_Manager::table()
    table this is the same as Doctrine_Connection::getTable() except that it works seamlessly in multi-server/connection environment
-
tableize
-
in file Doctrine.php, method Doctrine::tableize()
    returns table name from class name
-
takeSnapshot
-
in file Collection.php, method Doctrine_Collection::takeSnapshot()
    takeSnapshot takes a snapshot from this collection
-
toArray
-
in file Record.php, method Doctrine_Record::toArray()
    toArray returns the record as an array
-
toArray
-
in file Relation.php, method Doctrine_Relation::toArray()
    toArray
-
toArray
-
in file Collection.php, method Doctrine_Collection::toArray()
    toArray Mimics the result of a $query->execute(array(), Doctrine::FETCH_ARRAY);
-
toArray
-
in file Object.php, method Doctrine_Schema_Object::toArray()
-
tokenize
-
in file Tokenizer.php, method Doctrine_Tokenizer::tokenize()
-
tokenizeQuery
-
in file Query.php, method Doctrine_Query::tokenizeQuery()
    tokenizeQuery
-
toString
-
in file Record.php, method Doctrine_Record::toString()
-
traverse
-
in file Node.php, method Doctrine_Node::traverse()
    convenience function for getIterator
-
trim
-
in file Driver.php, method Doctrine_Expression_Driver::trim()
    trim returns the string $str with leading and proceeding space characters removed
-
trimImpl
-
in file Sqlite.php, method Doctrine_Expression_Sqlite::trimImpl()
-
trySave
-
in file Record.php, method Doctrine_Record::trySave()
    Tries to save the object and all its related components.
-
TX_BEGIN
-
in file Event.php, class constant Doctrine_Event::TX_BEGIN
-
TX_COMMIT
-
in file Event.php, class constant Doctrine_Event::TX_COMMIT
-
TX_ROLLBACK
-
in file Event.php, class constant Doctrine_Event::TX_ROLLBACK
-
-
- -
-
u
-
[Top]
-
-
-
-

u

-
-
UnitOfWork.php
-
procedural page UnitOfWork.php
-
Util.php
-
procedural page Util.php
-
Unique.php
-
procedural page Unique.php
-
Unsigned.php
-
procedural page Unsigned.php
-
Usstate.php
-
procedural page Usstate.php
-
unlink
-
in file Record.php, method Doctrine_Record::unlink()
    removeLinks removes links from this record to given records
-
unserialize
-
in file Record.php, method Doctrine_Record::unserialize()
    unseralize this method is automatically called everytime a Doctrine_Record object is unserialized
-
unserialize
-
in file Hydrate.php, method Doctrine_Hydrate::unserialize()
    unseralize this method is automatically called everytime a Doctrine_Hydrate object is unserialized
-
unserialize
-
in file Collection.php, method Doctrine_Collection::unserialize()
    unseralize this method is automatically called everytime a Doctrine_Collection object is unserialized
-
update
-
in file UnitOfWork.php, method Doctrine_Connection_UnitOfWork::update()
    update updates the given record
-
update
-
in file Abstract.php, method Doctrine_Query_Abstract::update()
    update sets the UPDATE part of the query
-
UPDATE
-
in file Hydrate.php, class constant Doctrine_Hydrate::UPDATE
    constant for UPDATE queries
-
updateIndex
-
in file Search.php, method Doctrine_Search::updateIndex()
    updateIndex updates the index
-
updateLevel
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::updateLevel()
-
updateNode
-
in file NestedSet.php, method Doctrine_Node_NestedSet::updateNode()
    move node's and its children to location $destLeft and updates rest of tree
-
upper
-
in file Driver.php, method Doctrine_Expression_Driver::upper()
    upper Returns the string $str with all characters changed to uppercase according to the current character set mapping.
-
useCache
-
in file Hydrate.php, method Doctrine_Hydrate::useCache()
    useCache
-
-
- -
-
v
-
[Top]
-
-
-
-

v

-
-
$validators
-
in file Validator.php, variable Doctrine_Validator::$validators
-
$valid_default_values
-
in file Export.php, variable Doctrine_Export::$valid_default_values
-
Versionable.php
-
procedural page Versionable.php
-
Validator.php
-
procedural page Validator.php
-
View.php
-
procedural page View.php
-
valid
-
in file Normal.php, method Doctrine_Collection_Iterator_Normal::valid()
-
valid
-
in file PostOrderIterator.php, method Doctrine_Node_MaterializedPath_PostOrderIterator::valid()
-
valid
-
in file PreOrderIterator.php, method Doctrine_Node_NestedSet_PreOrderIterator::valid()
-
valid
-
in file LevelOrderIterator.php, method Doctrine_Node_MaterializedPath_LevelOrderIterator::valid()
-
valid
-
in file PreOrderIterator.php, method Doctrine_Node_MaterializedPath_PreOrderIterator::valid()
-
valid
-
in file Offset.php, method Doctrine_Collection_Iterator_Offset::valid()
-
valid
-
in file Expandable.php, method Doctrine_Collection_Iterator_Expandable::valid()
-
validate
-
in file Regexp.php, method Doctrine_Validator_Regexp::validate()
-
validate
-
in file Creditcard.php, method Doctrine_Validator_Creditcard::validate()
-
validate
-
in file Unique.php, method Doctrine_Validator_Unique::validate()
-
validate
-
in file Minlength.php, method Doctrine_Validator_Minlength::validate()
-
validate
-
in file Unsigned.php, method Doctrine_Validator_Unsigned::validate()
-
validate
-
in file Email.php, method Doctrine_Validator_Email::validate()
-
validate
-
in file Enum.php, method Doctrine_Validator_Enum::validate()
-
validate
-
in file Usstate.php, method Doctrine_Validator_Usstate::validate()
-
validate
-
in file Record.php, method Doctrine_Record::validate()
    Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure, doing any custom / specialized validations that are neccessary.
-
validate
-
in file Range.php, method Doctrine_Validator_Range::validate()
-
validate
-
in file Notblank.php, method Doctrine_Validator_Notblank::validate()
-
validate
-
in file Nospace.php, method Doctrine_Validator_Nospace::validate()
-
validate
-
in file Ip.php, method Doctrine_Validator_Ip::validate()
-
validate
-
in file Date.php, method Doctrine_Validator_Date::validate()
-
validate
-
in file Notnull.php, method Doctrine_Validator_Notnull::validate()
-
validate
-
in file Htmlcolor.php, method Doctrine_Validator_HtmlColor::validate()
-
validate
-
in file Interface.class.php, method Doctrine_Validator_Interface::validate()
-
validate
-
in file Country.php, method Doctrine_Validator_Country::validate()
-
validateLength
-
in file Validator.php, method Doctrine_Validator::validateLength()
    Validates the length of a field.
-
validateOnInsert
-
in file Record.php, method Doctrine_Record::validateOnInsert()
    Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be inserted into the data store the first time.
-
validateOnUpdate
-
in file Record.php, method Doctrine_Record::validateOnUpdate()
    Empty template method to provide concrete Record classes with the possibility to hook into the validation procedure only when the record is going to be updated.
-
validateRecord
-
in file Validator.php, method Doctrine_Validator::validateRecord()
    validates a given record and saves possible errors in Doctrine_Validator::$stack
-
-
- -
-
w
-
[Top]
-
-
-
-

w

-
-
WordLike.php
-
procedural page WordLike.php
-
Where.php
-
procedural page Where.php
-
where
-
in file Abstract.php, method Doctrine_Query_Abstract::where()
    where sets the WHERE part of the query
-
whereIn
-
in file Abstract.php, method Doctrine_Query_Abstract::whereIn()
    whereIn adds IN condition to the query WHERE part
-
-
- -
-
x
-
[Top]
-
-
-
-

x

-
-
$xml
-
in file Propel.php, variable Doctrine_Import_Reader_Xml_Propel::$xml
-
Xml.php
-
procedural page Xml.php
-
Xml.php
-
procedural page Xml.php
-
-
- -
-
y
-
[Top]
-
-
-
-

y

-
-
Yml.php
-
procedural page Yml.php
-
Yml.php
-
procedural page Yml.php
-
-
-
\ No newline at end of file diff --git a/api_documentation/trunk/errors.html b/api_documentation/trunk/errors.html deleted file mode 100644 index 08f8def8f..000000000 --- a/api_documentation/trunk/errors.html +++ /dev/null @@ -1,1138 +0,0 @@ - -
-Post-parsing
-Access.php
-Adapter.php
-AdjacencyList.php
-Analyzer.php
-Apc.php
-Array.php
-Association.php
-AuditLog.php
-BaseClass.php
-Builder.php
-Cache.php
-Chain.php
-Check.php
-Collection.php
-Column.php
-Common.php
-Compiler.php
-Complex.php
-Condition.php
-Configurable.php
-Connection.php
-Country.php
-Creditcard.php
-Database.php
-DataDict.php
-DataType.php
-Date.php
-Db.php
-Db2.php
-Dir.php
-Doctrine.php
-Driver.php
-Email.php
-Enum.php
-Equal.php
-ErrorStack.php
-Event.php
-EventListener.php
-Exception.php
-Expandable.php
-Export.php
-Expression.php
-File.php
-Filter.php
-Firebird.php
-ForeignKey.php
-Formatter.php
-From.php
-Frontbase.php
-Groupby.php
-Having.php
-Hook.php
-Htmlcolor.php
-Hydrate.php
-Import.php
-Index.php
-Indexer.php
-Informix.php
-Integer.php
-IntegrityMapper.php
-Interface.class.php
-Interface.php
-Ip.php
-Iterator.php
-JoinCondition.php
-LevelOrderIterator.php
-Lib.php
-Limit.php
-Listener.php
-LocalKey.php
-Manager.php
-MaterializedPath.php
-Memcache.php
-Minlength.php
-Mock.php
-Module.php
-Mssql.php
-Mysql.php
-Mysqli.php
-Nest.php
-NestedSet.php
-Node.php
-Normal.php
-Nospace.php
-Notblank.php
-Notnull.php
-Null.php
-Object.php
-Offset.php
-Oracle.php
-Orderby.php
-Overloadable.php
-Parser.php
-Part.php
-Pessimistic.php
-Pgsql.php
-Plugin.php
-PostOrderIterator.php
-PreOrderIterator.php
-Profiler.php
-Propel.php
-Protected.php
-Query.php
-Range.php
-RawSql.php
-Reader.php
-Record.php
-Regexp.php
-Relation.php
-Reporter.php
-Repository.php
-Schema.php
-Scorer.php
-Search.php
-Searchable.php
-Select.php
-Self.php
-Sequence.php
-Set.php
-Sqlite.php
-Standard.php
-Statement.php
-Table.php
-Taggable.php
-Template.php
-Tokenizer.php
-Transaction.php
-Tree.php
-Unique.php
-UnitOfWork.php
-Unsigned.php
-Usstate.php
-Util.php
-Validator.php
-Versionable.php
-View.php
-Where.php
-WordLike.php
-Xml.php
-Yml.php
- -

Post-parsing

-

Warnings:


-Warning - class Doctrine_Record_Iterator in package Doctrine parent not found in @see parent::__construct()
-Warning - class Doctrine_Record_Iterator in package Doctrine parent not found in @see parent::__construct()
- -

Abstract.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Abstract", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Record_Abstract", use another DocBlock to document the file
- -

Access.php

-

Warnings:


-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Access", use another DocBlock to document the file
- -

Adapter.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Adapter", use another DocBlock to document the file
- -

AdjacencyList.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Tree_AdjacencyList", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_AdjacencyList", use another DocBlock to document the file
- -

Analyzer.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Analyzer", use another DocBlock to document the file
- -

Apc.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache_Apc", use another DocBlock to document the file
- -

Array.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Hydrate_Array", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache_Array", use another DocBlock to document the file
- -

Association.php

-

Warnings:


-Warning on line 35 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 36 - DocBlock would be page-level, but precedes class "Doctrine_Relation_Association", use another DocBlock to document the file
- -

AuditLog.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_AuditLog", use another DocBlock to document the file
- -

BaseClass.php

-

Warnings:


-Warning on line 38 - Unknown tag "@url" used
-Warning on line 38 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category default
- -

Builder.php

-

Warnings:


-Warning on line 37 - DocBlock would be page-level, but precedes class "Doctrine_Import_Builder", use another DocBlock to document the file
-

Errors:


-Error on line 58 - "@return" tag was used without any parameters, illegal
- -

Cache.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache", use another DocBlock to document the file
- -

Chain.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Filter_Chain", use another DocBlock to document the file
-Warning on line 35 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 36 - DocBlock would be page-level, but precedes class "Doctrine_EventListener_Chain", use another DocBlock to document the file
-Warning on line 36 - DocBlock would be page-level, but precedes class "Doctrine_Record_Listener_Chain", use another DocBlock to document the file
- -

Check.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Check", use another DocBlock to document the file
- -

Collection.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Collection", use another DocBlock to document the file
- -

Column.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Column", use another DocBlock to document the file
-Warning on line 38 - Unknown tag "@url" used
-Warning on line 38 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category default
- -

Common.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Common", use another DocBlock to document the file
- -

Compiler.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Compiler", use another DocBlock to document the file
- -

Complex.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Hook_Parser_Complex", use another DocBlock to document the file
- -

Condition.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Condition", use another DocBlock to document the file
- -

Configurable.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Configurable", use another DocBlock to document the file
- -

Connection.php

-

Warnings:


-Warning on line 55 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 56 - DocBlock would be page-level, but precedes class "Doctrine_Connection", use another DocBlock to document the file
-

Errors:


-Error on line 378 - "@param" tag was used without any parameters, illegal
- -

Country.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Country", use another DocBlock to document the file
- -

Creditcard.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Creditcard", use another DocBlock to document the file
- -

Database.php

-

Warnings:


-Warning on line 38 - Unknown tag "@url" used
-

Errors:


-Error on line 56 - "@return" tag was used without any parameters, illegal
-Error on line 65 - "@return" tag was used without any parameters, illegal
- -

DataDict.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_DataDict", use another DocBlock to document the file
- -

DataType.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_DataType", use another DocBlock to document the file
- -

Date.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Date", use another DocBlock to document the file
- -

Db.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Db", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache_Db", use another DocBlock to document the file
-Warning on line 39 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category default
-Warning on line 39 - Unknown tag "@url" used
- -

Db2.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Db2", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Db2", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Db2", use another DocBlock to document the file
- -

Dir.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Indexer_Dir", use another DocBlock to document the file
- -

Doctrine.php

-

Warnings:


-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine", use another DocBlock to document the file
- -

Driver.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Driver", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache_Driver", use another DocBlock to document the file
- -

Email.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Email", use another DocBlock to document the file
- -

Enum.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Enum", use another DocBlock to document the file
- -

Equal.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Hook_Equal", use another DocBlock to document the file
- -

ErrorStack.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_ErrorStack", use another DocBlock to document the file
- -

Event.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Event", use another DocBlock to document the file
- -

EventListener.php

-

Warnings:


-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_EventListener", use another DocBlock to document the file
- -

Exception.php

-

Warnings:


-Warning on line 14 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 15 - DocBlock would be page-level, but precedes class "Doctrine_Locking_Exception", use another DocBlock to document the file
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Exception", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Compiler_Exception", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Collection_Exception", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Manager_Exception", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_Exception", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Tree_Exception", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Indexer_Exception", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Relation_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Record_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_RawSql_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Record_State_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Import_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Table_Repository_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Relation_Parser_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Analyzer_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Hydrate_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_View_Exception", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Profiler_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Informix_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Export_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_EventListener_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Exception", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Exception", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Db2_Exception", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Sqlite_Exception", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Table_Exception", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Mysql_Exception", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache_Exception", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Oracle_Exception", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Mssql_Exception", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Firebird_Exception", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Pgsql_Exception", use another DocBlock to document the file
-Warning on line 37 - Unknown tag "@url" used
-Warning on line 37 - Unknown tag "@url" used
-Warning on line 37 - Unknown tag "@url" used
-Warning on line 38 - DocBlock would be page-level, but precedes class "Doctrine_Import_Reader_Exception", use another DocBlock to document the file
-

Errors:


-Error on line 37 - DocBlock has multiple @package tags, illegal. ignoring additional tag "@package Doctrine"
- -

Expandable.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Collection_Iterator_Expandable", use another DocBlock to document the file
- -

Export.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Export", use another DocBlock to document the file
- -

Expression.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression", use another DocBlock to document the file
- -

File.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_File", use another DocBlock to document the file
- -

Filter.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Filter", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Record_Filter", use another DocBlock to document the file
- -

Firebird.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Import_Firebird", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Firebird", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Firebird", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Firebird", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Firebird", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Firebird", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Export_Firebird", use another DocBlock to document the file
- -

ForeignKey.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Relation_ForeignKey", use another DocBlock to document the file
- -

Formatter.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Formatter", use another DocBlock to document the file
- -

From.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_From", use another DocBlock to document the file
- -

Frontbase.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Export_Frontbase", use another DocBlock to document the file
- -

Groupby.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Groupby", use another DocBlock to document the file
- -

Having.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Having", use another DocBlock to document the file
- -

Hook.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Hook", use another DocBlock to document the file
- -

Htmlcolor.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_HtmlColor", use another DocBlock to document the file
- -

Hydrate.php

-

Warnings:


-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Hydrate", use another DocBlock to document the file
- -

Import.php

-

Warnings:


-Warning on line 36 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 37 - DocBlock would be page-level, but precedes class "Doctrine_Import", use another DocBlock to document the file
- -

Index.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_File_Index", use another DocBlock to document the file
- -

Indexer.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Indexer", use another DocBlock to document the file
- -

Informix.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Informix", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Import_Informix", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Informix", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Informix", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Informix", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Informix", use another DocBlock to document the file
- -

Integer.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Hook_Integer", use another DocBlock to document the file
- -

IntegrityMapper.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_IntegrityMapper", use another DocBlock to document the file
- -

Interface.class.php

-

Warnings:


-Warning on line 1 - no @package tag was used in a DocBlock for interface Doctrine_Validator_Interface
-Warning on line 3 - File "/Users/jwage/Sites/doctrine_trunk/lib/Doctrine/Validator/Interface.class.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

Interface.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - DocBlock would be page-level, but precedes class "Doctrine_Tree_Interface", use another DocBlock to document the file
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - DocBlock would be page-level, but precedes class "Doctrine_Node_Interface", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Interface", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Statement_Interface", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Record_Listener_Interface", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Filter_Interface", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Analyzer_Interface", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache_Interface", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_EventListener_Interface", use another DocBlock to document the file
- -

Ip.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Ip", use another DocBlock to document the file
- -

Iterator.php

-

Warnings:


-Warning on line 2 - no @package tag was used in a DocBlock for class Doctrine_Record_Iterator
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Collection_Iterator", use another DocBlock to document the file
-Warning on line 45 - File "/Users/jwage/Sites/doctrine_trunk/lib/Doctrine/Record/Iterator.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

JoinCondition.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_JoinCondition", use another DocBlock to document the file
- -

LevelOrderIterator.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_MaterializedPath_LevelOrderIterator", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_NestedSet_LevelOrderIterator", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_AdjacencyList_LevelOrderIterator", use another DocBlock to document the file
- -

Lib.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Lib", use another DocBlock to document the file
- -

Limit.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Limit", use another DocBlock to document the file
- -

Listener.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Listener", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Record_Listener", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_AuditLog_Listener", use another DocBlock to document the file
- -

LocalKey.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Relation_LocalKey", use another DocBlock to document the file
- -

Manager.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Manager", use another DocBlock to document the file
- -

MaterializedPath.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_MaterializedPath", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Tree_MaterializedPath", use another DocBlock to document the file
- -

Memcache.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Cache_Memcache", use another DocBlock to document the file
- -

Minlength.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Minlength", use another DocBlock to document the file
- -

Mock.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Mock", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Mock", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Statement_Mock", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Mock", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Mock", use another DocBlock to document the file
- -

Module.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Module", use another DocBlock to document the file
- -

Mssql.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Mssql", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Mssql", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Mssql", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Import_Mssql", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Mssql", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Export_Mssql", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Mssql", use another DocBlock to document the file
- -

Mysql.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Import_Mysql", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Mysql", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Mysql", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Mysql", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Mysql", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Mysql", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Export_Mysql", use another DocBlock to document the file
- -

Mysqli.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Mysqli", use another DocBlock to document the file
- -

Nest.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Relation_Nest", use another DocBlock to document the file
- -

NestedSet.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Template_NestedSet", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Tree_NestedSet", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Node_NestedSet", use another DocBlock to document the file
- -

Node.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node", use another DocBlock to document the file
- -

Normal.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Collection_Iterator_Normal", use another DocBlock to document the file
- -

Nospace.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Nospace", use another DocBlock to document the file
- -

Notblank.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Notblank", use another DocBlock to document the file
- -

Notnull.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Notnull", use another DocBlock to document the file
- -

Null.php

-

Warnings:


-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Null", use another DocBlock to document the file
- -

Object.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Object", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Schema_Object", use another DocBlock to document the file
- -

Offset.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Offset", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Collection_Iterator_Offset", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Collection_Offset", use another DocBlock to document the file
- -

Oracle.php

-

Warnings:


-Warning on line 30 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - DocBlock would be page-level, but precedes class "Doctrine_Import_Oracle", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Oracle", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Oracle", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Oracle", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Oracle", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Oracle", use another DocBlock to document the file
-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Export_Oracle", use another DocBlock to document the file
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Oracle", use another DocBlock to document the file
-

Errors:


-Error on line 263 - "@return" tag was used without any parameters, illegal
- -

Orderby.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Orderby", use another DocBlock to document the file
- -

Overloadable.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Overloadable", use another DocBlock to document the file
- -

Parser.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Relation_Parser", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Parser", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Parser", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Hook_Parser", use another DocBlock to document the file
- -

Part.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Part", use another DocBlock to document the file
- -

Pessimistic.php

-

Warnings:


-Warning on line 35 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 36 - DocBlock would be page-level, but precedes class "Doctrine_Locking_Manager_Pessimistic", use another DocBlock to document the file
- -

Pgsql.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Pgsql", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Pgsql", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Import_Pgsql", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Pgsql", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Pgsql", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Export_Pgsql", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Pgsql", use another DocBlock to document the file
- -

Plugin.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Plugin", use another DocBlock to document the file
- -

PostOrderIterator.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_NestedSet_PostOrderIterator", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_AdjacencyList_PostOrderIterator", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_MaterializedPath_PostOrderIterator", use another DocBlock to document the file
- -

PreOrderIterator.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_AdjacencyList_PreOrderIterator", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_NestedSet_PreOrderIterator", use another DocBlock to document the file
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Node_MaterializedPath_PreOrderIterator", use another DocBlock to document the file
- -

Profiler.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Profiler", use another DocBlock to document the file
- -

Propel.php

-

Warnings:


-Warning on line 37 - Unknown tag "@url" used
-Warning on line 37 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category default
- -

Protected.php

-

Warnings:


-Warning on line 0 - File "/Users/jwage/Sites/doctrine_trunk/lib/Doctrine/Validator/Protected.php" has no page-level DocBlock, use @package in the first DocBlock to create one
- -

Query.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Query", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query", use another DocBlock to document the file
- -

Range.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Range", use another DocBlock to document the file
- -

RawSql.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_RawSql", use another DocBlock to document the file
- -

Reader.php

-

Warnings:


-Warning on line 39 - Unknown tag "@url" used
-Warning on line 40 - DocBlock would be page-level, but precedes class "Doctrine_Import_Reader", use another DocBlock to document the file
-

Errors:


-Error on line 39 - DocBlock has multiple @package tags, illegal. ignoring additional tag "@package Doctrine"
- -

Record.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Record", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Record", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Hydrate_Record", use another DocBlock to document the file
- -

Regexp.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Regexp", use another DocBlock to document the file
- -

Relation.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Relation", use another DocBlock to document the file
-Warning on line 38 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category default
-Warning on line 38 - Unknown tag "@url" used
-

Errors:


-Error on line 104 - "@return" tag was used without any parameters, illegal
- -

Reporter.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Export_Reporter", use another DocBlock to document the file
- -

Repository.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Table_Repository", use another DocBlock to document the file
- -

Schema.php

-

Warnings:


-Warning on line 38 - Unknown tag "@url" used
-Warning on line 38 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 39 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 39 - DocBlock would be page-level, but precedes class "Doctrine_Export_Schema", use another DocBlock to document the file
-Warning on line 39 - DocBlock would be page-level, but precedes class "Doctrine_Schema", use another DocBlock to document the file
-Warning on line 40 - DocBlock would be page-level, but precedes class "Doctrine_Import_Schema", use another DocBlock to document the file
-

Errors:


-Error on line 38 - DocBlock has multiple @package tags, illegal. ignoring additional tag "@package Doctrine"
-Error on line 70 - "@return" tag was used without any parameters, illegal
- -

Scorer.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Scorer", use another DocBlock to document the file
- -

Search.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search", use another DocBlock to document the file
- -

Searchable.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Template_Searchable", use another DocBlock to document the file
- -

Select.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Select", use another DocBlock to document the file
- -

Self.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Relation_Association_Self", use another DocBlock to document the file
- -

Sequence.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Sequence", use another DocBlock to document the file
- -

Set.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Set", use another DocBlock to document the file
- -

Sqlite.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Import_Sqlite", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Expression_Sqlite", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_DataDict_Sqlite", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Sequence_Sqlite", use another DocBlock to document the file
-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Transaction_Sqlite", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Sqlite", use another DocBlock to document the file
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Export_Sqlite", use another DocBlock to document the file
- -

Standard.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Analyzer_Standard", use another DocBlock to document the file
- -

Statement.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Adapter_Statement", use another DocBlock to document the file
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_Statement", use another DocBlock to document the file
- -

Table.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_Table", use another DocBlock to document the file
-Warning on line 38 - Unknown tag "@url" used
- -

Taggable.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Template_Taggable", use another DocBlock to document the file
- -

Template.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Template", use another DocBlock to document the file
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Search_Template", use another DocBlock to document the file
- -

Tokenizer.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Tokenizer", use another DocBlock to document the file
- -

Transaction.php

-

Warnings:


-Warning on line 34 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 35 - DocBlock would be page-level, but precedes class "Doctrine_Transaction", use another DocBlock to document the file
- -

Tree.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Tree", use another DocBlock to document the file
- -

Unique.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Unique", use another DocBlock to document the file
- -

UnitOfWork.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Connection_UnitOfWork", use another DocBlock to document the file
- -

Unsigned.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Unsigned", use another DocBlock to document the file
- -

Usstate.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator_Usstate", use another DocBlock to document the file
- -

Util.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Util", use another DocBlock to document the file
- -

Validator.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Validator", use another DocBlock to document the file
- -

Versionable.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Template_Versionable", use another DocBlock to document the file
- -

View.php

-

Warnings:


-Warning on line 33 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 34 - DocBlock would be page-level, but precedes class "Doctrine_View", use another DocBlock to document the file
- -

Where.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Query_Where", use another DocBlock to document the file
- -

WordLike.php

-

Warnings:


-Warning on line 32 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 33 - DocBlock would be page-level, but precedes class "Doctrine_Hook_WordLike", use another DocBlock to document the file
- -

Xml.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Export_Schema_Xml", use another DocBlock to document the file
-Warning on line 39 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 40 - DocBlock would be page-level, but precedes class "Doctrine_Import_Schema_Xml", use another DocBlock to document the file
- -

Yml.php

-

Warnings:


-Warning on line 31 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 32 - DocBlock would be page-level, but precedes class "Doctrine_Export_Schema_Yml", use another DocBlock to document the file
-Warning on line 39 - package Doctrine is already in category Object-Relational-Mapping, will now replace with category Object-Relational-Mapping
-Warning on line 40 - DocBlock would be page-level, but precedes class "Doctrine_Import_Schema_Yml", use another DocBlock to document the file
-
\ No newline at end of file diff --git a/api_documentation/trunk/index.html b/api_documentation/trunk/index.html deleted file mode 100644 index 43c1d9b7f..000000000 --- a/api_documentation/trunk/index.html +++ /dev/null @@ -1,281 +0,0 @@ - - -
-

Doctrine

-Welcome to Doctrine!
\ No newline at end of file diff --git a/api_documentation/trunk/li_Doctrine.html b/api_documentation/trunk/li_Doctrine.html deleted file mode 100644 index 43c1d9b7f..000000000 --- a/api_documentation/trunk/li_Doctrine.html +++ /dev/null @@ -1,281 +0,0 @@ - - -
-

Doctrine

-Welcome to Doctrine!
\ No newline at end of file diff --git a/api_documentation/trunk/media/background.png b/api_documentation/trunk/media/background.png deleted file mode 100644 index 8c4ff46406a082f440bd8ab1844067a0e434e3fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 307 zcmeAS@N?(olHy`uVBq!ia0vp^CxKXmg9%8kVCh>7q*&4&eH|GX)}JtE?Rp91OP07s zlmzFem6RtIr7}3CCf-y!iO~^Sg){U zzWm0(c*I1CYjJ}cgF=JbV{~j$O1W6uH2`z;YpDrzuwkD+5!;mOE0cTe40w zBMF)0_A*5=HZVx76?SJ_%izG!J1u%~Lm0@Q(`y4AR&TRG7J{0+0BkfDxkevg*tto1 VWu0aAE1-uMJYD@<);T3K0RUptVrc*X diff --git a/api_documentation/trunk/media/empty.png b/api_documentation/trunk/media/empty.png deleted file mode 100644 index a9f29bb161a7b1efd9cc85043bc235e1a5060780..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 206 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx3?wy9o9qTs+9j?LCC){ui6xo&c?uz!xv320 z`3gqn3VHcu3PuJ7Mhb>zR)*$Q#>NWT28IR({)IOifZEtgJbhi+FL6ur3u;#0rMq>1fPyUPj=qiz3>*8o|0J>k`OE=6A+G=b|6hJY`UH^6SQ6wH o%;50sMjDXA<>}%WQgJIe0mx=zV0@~64`c#^r>mdKI;Vst04^Iepa1{> diff --git a/api_documentation/trunk/media/logo.png b/api_documentation/trunk/media/logo.png deleted file mode 100644 index 10fe5d6176b969648cfc17bc784f1d050cf1e4e3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7724 zcmdUU_g@ps_kKEr5<-vuB?@<(V@xxkN8#aS=rk001EF>O$}V z0D#wb?>&UUyJtzE*P*)?$Vr?h4ghH9SwiXSyKRL;$G}A2vyqACL*pX=xbU-K5h&Nw zp(i7JB0|Gc;>IIvcD4K>diXg`PY;pFrn|4Gs66cGs9>>cfZkv$IpM zSZsND4wuVqX{laVc%Y(!;PGxFk;tK;ZW9xe&CSh%g3Blr3ILd3v6xI|dV71VKp^Pq zy3S&;NF-8hY;0fO4L+YwBoeEu3mO{AIULTpbG8fyqrQGrSN8#jGwSX>IXXIg{yZ-< zbUZ%(5Sct%SU6^HKY8cQh`YNDpWhk~Fm7%>nVvot6Ej{}Il8^QnVlW9wzkY*9De?M zW^?mj6O-B3uNUj<%g&#V8XfH=kzNP{KdIC=b8}-@?315Ae{i{5g@x45pEnj4AG28R zV`G;;eq0v_o-8a({{H>%_wU=Qt1pnqhwtCNv9~wT)m30H)=;P^Iz58RWy{MyxO1nC zMso}Za1IUi;cz~Y$z|r|ntc9OGWkqpW!}h0Cz(7>BtGMC*kp1y91c-X5F?Wv$>iOC zxlbk^j)@65aNuD@ML(baP)SMr*|RxKO${5Z`ueW5v=o(<<)oyL8XD$=gurLcSoQaJhlii2tjxc1h05bKN=XT~w$}Xl^QSC? z8oBHE=0qPa-`(c_7YE?i*$Z+2fD*`+fb&aU3?s=yE4XEGqyf+cKaLEF>QonQ;#3UO z*E0bNqnhs2|AZ(kJavA3lH(+e1>mYjUTA9dRX97QV$xty7$5{WeAFgkVYuvOTtQ^x zfTAY=2pRVXqqo@5nR;n;k{FjdIEu>shsjhaxH_P+*BxKdI!hTA+oFJkQH;7_r}y;( zs(a5TJZ$Pdn=S0gQ_o1Lp0*a-*%e_;=_p7|L6F!wZ?paE-M(FXE`(hu1Hq$0>Q+y2 z*b3evT{?I8hL^l={K*v~#3Rhi9?03j<&tkUxYK8#IHy@k1Z=IG;mv z{_6NUS$wMb`E3h_j2zQk!?KGpsoTC0KG$@Q)vTBKV6M*WGz+ha-_F+!($;6D=A9WA z^uv%HX`~r}SgawKVRKBC(lPU8fx-@_UJ4g>knx>?2W6>^mYKyI)ZV(@ZuaO>aI<<< z(UF;K%R~7eM4@jYgEt?>{5LuK_WjG4R8g#rY@G>mh~t6K&Yz4U#kyssCx1GzbJMHA zc+LDq&^o`F>?ubcH!J&c)!^~#OFvKl6OvuNX=Btg#6Le?=4i{g-GqML0=dP0Q4Bbw zjQGkngWzDD1&*@e8#EFqQd&NyPAN^@Y3+=+9vwT9&50KLq3HS__xGCee4vFpu7J95 z@cF!MY~p*}fvPCQ3K$a9pHR9Vr%9?x=9vjS-$(z~WPRuE-~TDynmlh40z#gE>WU4c z_zvC{5O-ln{tBx8&zjoKxZTay-+Hn`s;UU)(go6Yram<6juP#S zQ+9NGeafLBf9u_0*k9QY#fl5=Z0xML%X`}6l_yAz-O zwEt?jb4CqV(UBx89EPlzz#^B0g{wG@sQ*UfzW4pQYN>HNIPPnyR)4HA^#0AneEoov zN~tFvS7(beunRq3DiMoV`kOv^E#ovuJ@zcp=9TuPUiRr5)#D{0vjW3f&Fkc%=CG{| zT|b}kl{eB3d zLzm;%FFpTmKe#PPwKfl=$!E}-8cSq!bCAUGTK>iHknaw^u3nouE^*<7d##S|R&_3| z-&sH8!=W3no0X!+6?zZ3oh=l}RtaxU?eLfUyjnIp%6>kStC-U_<`hxv;FCmOb!ltw z7jb`DWf` zP5s1|r3z&C`IF(a{$Jsf?2-WcAUm^I5x7(4#Jjl*g~_tslUa4vP3k$tU$4w5VNi@V zIUyCZn+aynS`|jE=lG*??XjsX7((A==;}FR^h>6i_SbWXev49zWQCx>lgtPGz@WD; z*VPYjW0wl=2(z!;`(-;`7ZHziXZ)M+?PqF#`}-3^+mhJi9fJ)%Uiq#QzCy(Sa$2K9 zbm+F7AfVEu1*Ri$&lVaJmotv9=Zc$gKnzvfEQ6eVYc4Z0^qU#Cn!1#bwg7lym=med za)IbMI)6r<0MMuefN~0hFOXDAUWLn-poSwy=(s(qBRu9J10MK0r^&-T$n0uD$w9@t&=szpGJ<5Ao6>>*F;XOa5ybU zl1&#;do*CZF?1mpvE-8arqz`lo=4G$! zFWabpECxEbpy42)(~xUSeF{OMv@#zSv__`?;W|4XtIo(E)EF=Szpq58^49j5BsR!n zU!P(!gP1`VxsMuTlC2~#AfX8~_l5cuOnFO%UXzkK{9Q{Rn)7$7zU2Ca@Ce+{ zWdQ;az9AuAVd6k7v*aNGVmLaJ&NK0>dY^n$mWD4+b&NwxrKv zxu?r;S~ErS43?{um_2HOePD6I;u+2gvfzDQ#)Xa3a^S_C(-;L z3duP#VaiS(RAEoU$ViQi%o@ahR12t+c*dL6lOp59;Zbj_%!lax;%F@`saNBs#^MzX zcWIwjaH!pA5mUkvcL3lzlsND75lnL>FgheDltl7S3Z8; zG;IP*dht1GO^5aK?B=7`1yX9O3w7i41qujME>E;6m7a5sM>Iz0YK;vK54(37X~S~^ zLH~=ahX;*d3&NQ6lKo%_N-V;{M_lpI>vX4Dl#*H^5m)I>cZb?+X+v8}xpf!lF+MS@ zW?ddut;$4g-`4a=4V4wK`dr&*Yoy2Fz3kipLq(axPr)yviR${5AY4NT<2*y?<6eM- z<%yJ_4<6mzR!Ytgv+D$?VjZOL`G2DmD+8lwi{hySLb1i=x4mqFbh=U#eL}u>5P{&) zwN4N*v=*IDn4mqVE0~Cs1)1@w$kT|Z=j&_gmXn5_+Yj4trjgAj#ZT3wA4e{x9z2+e zl+;&oC!U>fdF-Ne0b|qKnM}5n4S^R6fC6A@T!AtoA0zRQwU3fT;nGGv4ldhjG2Tn&v zFOg(l-PKP<8)%`$2})kddc(j~x{0aoB+nspmce!vmrr205YrSv5Tc|vnuuuux}r4+ zH*KVrGK4b-B^h^&%l6!`lRr+ur`~)ps^ed1Ve+GGAZ1K`u^`N1K66-A$E%CWo@d~Z z|A3}v26MFRSy)UpRA}l<2xI;h6KOC^ZC2r}W@QzD41R;tRsP9Q_$RSF6hAfJG% zF*){9$ZUMb%dcm;J0o)crCAXn8TSB&df`#`!@e`Z^&Ub8g$KlZT5o{Y18E6m{nxd6 z7iOnNUXLzp)!o8z*a`3}hh@5@);Onybx214rtx3ZiS zFz%Yy%WL;a-r9n7-FVl}uJO$*C%T^6Xmuls@&O)>mY7m-EeC3p84TD4lWr)hpF}9^ z2fgF)v%aNWy-M@pwuXyIax!|b)Twa#)8$O3BV9^epYI8maU!rIVqK4DFgXl~5IQvs z6!F_Nmri&j{0Z;_hm7%%frm2dU8Qss(Sh3YiiyZ>#0K?`1T41B2eiMJx1t#h4 zRml4QKTpIcD9VMGq8#^d7Ouk+bVa_v_1&5W<(|XARmp>4(}OPh-xr?Z#FJcAVMi^J zGSq_}!YH8)SEk};vd*2RIaZq*yabMH4|K5eC|{z|z9=!N(0+;=a8=VXR{5vHgnaD5 zBTmg?jJhbO4@TD^bGSD2HmK;+inoTGqNj;Dfs~peIZ;v@&`y<2BB=^twg`@r9V>+| z)(Z;2PQ|sMXHrdV_6Y5q$6?1~W$sc79TDk9x53{^!W(`p{0PUTi-_5swTw92jv80;I80^`r zyTK4z8NyrvuWBu@5Ai4xR}4%ZQv)u#Zs8hhus68!T=%yN%iw*1$0QC0DoF^E(&aE) z4~n!5F}SJl+*#l}=qrl>m5(JzH@y)|aQW7uB5oO2GngfNbX3k$U)V|7*zG2w6=_|W zjGmLV`l4GmOX4-CT2?;9B6TI#X@-?M@7xCZqSXI~<`U3OsnMj0P1j2X*6SVG#{o&L zEQ5^)ilI)@oWiuzU_ilN3A$#RxgF_cNy|Z>+6(HSwa~|?QJ1=97GA1k3bPDeXT5qP zqN{!mJynvX>dES#9we!C&5A^yO{nv;@XOJXv~J3`^1;As71BN;Q(~q{a_{lJoD+KD z$qj(qJ+n(-+Xve9V#0!A^fsz}!opY$Pi%sM#B9Q*S)~^S1*I1@qu?YzGpf^e2J|V` zeLaVAMdN&oLhHG0!Bep5)lg`3kw!NPGvFzr5_>K~rbrN&>!gsW6Ro#0Ds_-?aX3TH zbE}>pZJ96i1`765@U!?xd6l&brQH+SE2k@KuMKWnLm3W z=)5J!)1rMAB%_O9;{xgZz2}^yEj%(Ju(ExxLOFoBK$bUrnAoQZ?gVrd(JZzVeaxks zZ+3#Z-5B6vk-$MQ%}NT+)$kln{q@=}Gh*?_U^g8vO zg0%ZulV1Eto%lzKqiLcClST1Levbx@ZQLH^t4m3FhM))RI8zpq$=@WiZ*d4C=+Ct@ z%vyTD{mFq*1&(vEqMxSaF@-EjOI<~Fz4Q$S#f-2d1`E0Q+sU{+bQ! z<^d~wmj_7!W+o7MBPs+8Zk|9* zsO_k!k#%V=JCOX5vUri7gFxo63K_W3hzu)gsCpe5@o5e}>S>*vV%>`~j3jo!$8+g; z=ixa%h^Qb5R_1(^;04A(Nur<%z2Q(Zv$Ym%$3F&*088jQB)Zq3x9ElepTi(%m4L&X z2P0vodutmx3Nz^*W}lZU<^Uf$0X>hN=2SoD_kbc*6Ou7e<{H4*o-n5_-EFRZeiy@U zjbaWV{K#$-IIWMxYRoCICtRfP@x0g1h$9>ih(c(lctC>2PThoH9gz&-4b-W@h!Knh zGvO3WcGG~8an5ICtmlg8+3ggeS2g#b!YJ4|Bv*Onb@)l4)877&ww~9Jf~B|)uu^K; zH0wj##zmIqMgFyaI)j3$xmJ+2O>+A_ScHMsQM*kdiXuZSlQ?Bg^c4*N(xTNp6JotO zr?bk^sM& zLkpBRw)|>6?Lw*V@h&NW2s=|?;a?F;h$81lKUqsFgr#^lDj>~Cy3Ev8Rn>IUE-(sb zB)dt?C=sFDH`tf1M>(s1vGGPry^I>?Z_&k4-5x?dt=K()?p*2_SeEAuoqgl;W-wK_ zI`_K8U0Rznt2zU-eOGydu}^BUDUJ&4fgWMUZ?U!*4)Al=K-nP6Tc8+qe0*Xpx!=pS7XG+}F@u6pXO5Oz@DfRS_?ZO?V z=LL(@LwaUpG5?Hd>W-pdFAhJv&V%N=kRH1uJN2dSCdhp%LDxp`#1OK+$8C<}n@}b9 zhQG2Z0Xa3Og=H`VKK5HAUrW_h)$XVf$-tzkiIYGp+2khO?xeAa&_J!UEx9Wd`@uw5 z7frcKzxXf{C;4YwvC_rYwc-@5I(=xslf{)(+taD&xoK(}YQc|HF(K!4(2~a8XgyvD z<6AkjZ?DrVW<@{^+-}60G8|`N=V-b~`g?yl3anOMQXxb6V`M^(TUPs+-t~qvMl2Bz z1Gaz4*_$}y3$%Vz)O5*fhxH;l)@3nG+BbM8!>qm;+4tA6q4=Ros}Ed;TGmVD~TVZPJrH9yws;WxYW`pn> zF~puuZdF_1#}^%{VEHh!boIT_Sfg@H)CaQo?3m~&(Hr zgtw;5>B{(xe{UoosF+PIHDQ{py2U7H;s;R15_9gvHzJyAvDKY6l^qPnA$F`ra*;zx zx>8DH7<3CnRu3r5!_Vo&=4~;ns{kPWnGXlWGEtaNb@X|iDUNQ@_Gmk02Y&5W=H*C< zTkYNM1qYQK3ni72_XpTt)_;Eb^yf{|y(Rl2OI>rfOYuFoRAbqw53yQDzG~v2=PExw zqQ-1oU(n9KNK8VN;KcVjQZCkMZ^A|7E7UO;K()KJn{L%+hO3 z&=IBTV?IW`vnxe6=e2B+BGv~=8=|v~e}hI)rkTT0p`Nt%d<}5?2h*EL`U~GSHkEvO z91}XtDwzJ2IcN_JI?aViqirGUAjkhT57@a>@c>inV_1-#`=s>Za;V55u7~g9ek)k$ zaTf59R#wl`k7B24XA3MOug9s_M1CDJxd$c9EqTjl(NH2Ski1Gqt%4$gn0mJGzQg=?y4st+kk(t1@R9k-Wv1g6Cg!$WGu|d} z-BsbOVPT74TRhT2HyleG!#zoJ0z5Og>@a_6&T#eJ8*FNrGI;;^quj>p*X5qyoolIV zq@XVq{dH^ZFyVSGKX~E+dmk(I+QI7Jn$sr3r@}={^}nn`gou98 z-Ur-d?5%@A7w2X*ku4*i@E+#(xy5;tp5y9WiD+F_hTUX?I{ub@yOra z7Jf#lqx9&(KNfNqyiPAw>Ph_=_6d_BY4wM`C!J`V%~QT?@l0+YX1=Pz4#YY0O-F3V zM8-(nfm=o7hef}}^6uUK=G1Wh!*{W3ZnX~GSA}a|HkRYctHO(H)F#iy|9PzjV$Cb@ z9g`iWsxxgiTy1J={sG-Bbp^Irh*&IX^<&5#H-}m!WZVl9(T_scLyC7|?wkxdw>}-u zY*jf&!Fy*R5)KzpQ$`14hOMntNDUpKGI1{7=6y`nGF$UxunHuT+7Ck2pIz%b8U;S# ztCYYuaNpY39^zRJ^DmvILbKNw917E=Pq?l-Ukw4}057iSM+uFN`rfy19L^h-ab)w! z{;;5Zn-jpBj3p5TeoV1WlkIN0pJy&-wg&*(ntbt5I}=>(#*z{O`j}&pW04F -

Todo List

-

Doctrine

-

Doctrine_Node_NestedSet::delete()

-
    -
  • Delete more efficiently. Wrap in transaction if needed.
  • -
-

Doctrine_Tree_NestedSet::fetchBranch()

-
    -
  • Only fetch the lft and rgt values of the initial record. more is not needed.
  • -
-

Doctrine_Table::getClassnameToReturn()

-
    -
  • this function could use reflection to check the first time it runs if the subclassing option is not set.
  • -
-

Doctrine_Node_NestedSet::getDescendants()

-
    -
  • Currently all descendants are fetched, no matter the depth. Maybe there is a better solution with less overhead.
  • -
-

Doctrine_Node_NestedSet::insertAsFirstChildOf()

-
    -
  • Wrap in transaction
  • -
-

Doctrine_Node_NestedSet::insertAsLastChildOf()

-
    -
  • Wrap in transaction
  • -
-

Doctrine_Node_NestedSet::insertAsNextSiblingOf()

-
    -
  • Wrap in transaction
  • -
-

Doctrine_Node_NestedSet::insertAsParentOf()

-
    -
  • Wrap in transaction
  • -
-

Doctrine_Node_NestedSet::insertAsPrevSiblingOf()

-
    -
  • Wrap in transaction
  • -
-

Doctrine_Node_NestedSet::makeRoot()

-
    -
  • Exception handling/wrapping
  • -
-

Doctrine_Adapter_Oracle::setFetchMode()

-
    -
  • Support FETCH_CLASS and FETCH_INTO.
  • -
-

Doctrine_Node_NestedSet::updateNode()

-
    -
  • Wrap in transaction
  • -
-

Doctrine_Node_NestedSet::_moveBetweenTrees()

-
    -
  • Better exception handling/wrapping
  • -
- \ No newline at end of file