db_nestedset.reg
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· REG 代码 · 共 139 行 · 第 1/2 页
REG
139 行
a:13:{s:8:"provides";a:48:{s:18:"class;DB_NestedSet";a:3:{s:4:"type";s:5:"class";s:4:"name";s:12:"DB_NestedSet";s:8:"explicit";b:1;}s:23:"class;DB_NestedSet_Node";a:3:{s:4:"type";s:5:"class";s:4:"name";s:17:"DB_NestedSet_Node";s:8:"explicit";b:1;}s:30:"function;DB_NestedSet::factory";a:3:{s:4:"type";s:8:"function";s:4:"name";s:21:"DB_NestedSet::factory";s:8:"explicit";b:1;}s:34:"function;DB_NestedSet::getAllNodes";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"DB_NestedSet::getAllNodes";s:8:"explicit";b:1;}s:35:"function;DB_NestedSet::getRootNodes";a:3:{s:4:"type";s:8:"function";s:4:"name";s:26:"DB_NestedSet::getRootNodes";s:8:"explicit";b:1;}s:32:"function;DB_NestedSet::getBranch";a:3:{s:4:"type";s:8:"function";s:4:"name";s:23:"DB_NestedSet::getBranch";s:8:"explicit";b:1;}s:33:"function;DB_NestedSet::getParents";a:3:{s:4:"type";s:8:"function";s:4:"name";s:24:"DB_NestedSet::getParents";s:8:"explicit";b:1;}s:32:"function;DB_NestedSet::getParent";a:3:{s:4:"type";s:8:"function";s:4:"name";s:23:"DB_NestedSet::getParent";s:8:"explicit";b:1;}s:34:"function;DB_NestedSet::getSiblings";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"DB_NestedSet::getSiblings";s:8:"explicit";b:1;}s:34:"function;DB_NestedSet::getChildren";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"DB_NestedSet::getChildren";s:8:"explicit";b:1;}s:35:"function;DB_NestedSet::getSubBranch";a:3:{s:4:"type";s:8:"function";s:4:"name";s:26:"DB_NestedSet::getSubBranch";s:8:"explicit";b:1;}s:31:"function;DB_NestedSet::pickNode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:22:"DB_NestedSet::pickNode";s:8:"explicit";b:1;}s:31:"function;DB_NestedSet::isParent";a:3:{s:4:"type";s:8:"function";s:4:"name";s:22:"DB_NestedSet::isParent";s:8:"explicit";b:1;}s:37:"function;DB_NestedSet::createRootNode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:28:"DB_NestedSet::createRootNode";s:8:"explicit";b:1;}s:36:"function;DB_NestedSet::createSubNode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:27:"DB_NestedSet::createSubNode";s:8:"explicit";b:1;}s:37:"function;DB_NestedSet::createLeftNode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:28:"DB_NestedSet::createLeftNode";s:8:"explicit";b:1;}s:38:"function;DB_NestedSet::createRightNode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:29:"DB_NestedSet::createRightNode";s:8:"explicit";b:1;}s:33:"function;DB_NestedSet::deleteNode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:24:"DB_NestedSet::deleteNode";s:8:"explicit";b:1;}s:33:"function;DB_NestedSet::updateNode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:24:"DB_NestedSet::updateNode";s:8:"explicit";b:1;}s:31:"function;DB_NestedSet::moveTree";a:3:{s:4:"type";s:8:"function";s:4:"name";s:22:"DB_NestedSet::moveTree";s:8:"explicit";b:1;}s:34:"function;DB_NestedSet::addListener";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"DB_NestedSet::addListener";s:8:"explicit";b:1;}s:37:"function;DB_NestedSet::removeListener";a:3:{s:4:"type";s:8:"function";s:4:"name";s:28:"DB_NestedSet::removeListener";s:8:"explicit";b:1;}s:35:"function;DB_NestedSet::triggerEvent";a:3:{s:4:"type";s:8:"function";s:4:"name";s:26:"DB_NestedSet::triggerEvent";s:8:"explicit";b:1;}s:33:"function;DB_NestedSet::apiVersion";a:3:{s:4:"type";s:8:"function";s:4:"name";s:24:"DB_NestedSet::apiVersion";s:8:"explicit";b:1;}s:30:"function;DB_NestedSet::setAttr";a:3:{s:4:"type";s:8:"function";s:4:"name";s:21:"DB_NestedSet::setAttr";s:8:"explicit";b:1;}s:34:"function;DB_NestedSet::setsortMode";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"DB_NestedSet::setsortMode";s:8:"explicit";b:1;}s:34:"function;DB_NestedSet::setDbOption";a:3:{s:4:"type";s:8:"function";s:4:"name";s:25:"DB_NestedSet::setDbOption";s:8:"explicit";b:1;}s:31:"function;DB_NestedSet::testLock";a:3:{s:4:"type";s:8:"function";s:4:"name";s:22:"DB_NestedSet::testLock";s:8:"explicit";b:1;}s:39:"function;DB_NestedSet::convertTreeModel";a:3:{s:4:"type";s:8:"function";s:4:"name";s:30:"DB_NestedSet::convertTreeModel";s:8:"explicit";b:1;}s:35:"function;DB_NestedSet_Node::setAttr";a:3:{s:4:"type";s:8:"function";s:4:"name";s:26:"DB_NestedSet_Node::setAttr";s:8:"explicit";b:1;}s:21:"class;DB_NestedSet_DB";a:4:{s:4:"type";s:5:"class";s:4:"name";s:15:"DB_NestedSet_DB";s:7:"extends";s:12:"DB_NestedSet";s:8:"explicit";b:1;}s:22:"class;DB_NestedSet_MDB";a:4:{s:4:"type";s:5:"class";s:4:"name";s:16:"DB_NestedSet_MDB";s:7:"extends";s:12:"DB_NestedSet";s:8:"explicit";b:1;}s:23:"class;DB_NestedSetEvent";a:4:{s:4:"type";s:5:"class";s:4:"name";s:17:"DB_NestedSetEvent";s:7:"extends";s:4:"PEAR";s:8:"explicit";b:1;}s:37:"function;DB_NestedSetEvent::callEvent";a:3:{s:4:"type";s:8:"function";s:4:"name";s:28:"DB_NestedSetEvent::callEvent";s:8:"explicit";b:1;}s:25:"class;DB_NestedSet_Output";a:3:{s:4:"type";s:5:"class";s:4:"name";s:19:"DB_NestedSet_Output";s:8:"explicit";b:1;}s:37:"function;DB_NestedSet_Output::factory";a:3:{s:4:"type";s:8:"function";s:4:"name";s:28:"DB_NestedSet_Output::factory";s:8:"explicit";b:1;}s:40:"function;DB_NestedSet_Output::setOptions";a:3:{s:4:"type";s:8:"function";s:4:"name";s:31:"DB_NestedSet_Output::setOptions";s:8:"explicit";b:1;}s:39:"function;DB_NestedSet_Output::printTree";a:3:{s:4:"type";s:8:"function";s:4:"name";s:30:"DB_NestedSet_Output::printTree";s:8:"explicit";b:1;}s:42:"function;DB_NestedSet_Output::printListbox";a:3:{s:4:"type";s:8:"function";s:4:"name";s:33:"DB_NestedSet_Output::printListbox";s:8:"explicit";b:1;}s:41:"function;DB_NestedSet_Output::tree_toHTML";a:3:{s:4:"type";s:8:"function";s:4:"name";s:32:"DB_NestedSet_Output::tree_toHTML";s:8:"explicit";b:1;}s:44:"function;DB_NestedSet_Output::listbox_toHTML";a:3:{s:4:"type";s:8:"function";s:4:"name";s:35:"DB_NestedSet_Output::listbox_toHTML";s:8:"explicit";b:1;}s:27:"class;DB_NestedSet_TreeMenu";a:4:{s:4:"type";s:5:"class";s:4:"name";s:21:"DB_NestedSet_TreeMenu";s:7:"extends";s:19:"DB_NestedSet_Output";s:8:"explicit";b:1;}s:41:"function;DB_NestedSet_TreeMenu::printTree";a:3:{s:4:"type";s:8:"function";s:4:"name";s:32:"DB_NestedSet_TreeMenu::printTree";s:8:"explicit";b:1;}s:44:"function;DB_NestedSet_TreeMenu::printListbox";a:3:{s:4:"type";s:8:"function";s:4:"name";s:35:"DB_NestedSet_TreeMenu::printListbox";s:8:"explicit";b:1;}s:43:"function;DB_NestedSet_TreeMenu::tree_toHTML";a:3:{s:4:"type";s:8:"function";s:4:"name";s:34:"DB_NestedSet_TreeMenu::tree_toHTML";s:8:"explicit";b:1;}s:46:"function;DB_NestedSet_TreeMenu::listbox_toHTML";a:3:{s:4:"type";s:8:"function";s:4:"name";s:37:"DB_NestedSet_TreeMenu::listbox_toHTML";s:8:"explicit";b:1;}s:28:"class;DB_NestedSet_TigraMenu";a:4:{s:4:"type";s:5:"class";s:4:"name";s:22:"DB_NestedSet_TigraMenu";s:7:"extends";s:19:"DB_NestedSet_Output";s:8:"explicit";b:1;}s:42:"function;DB_NestedSet_TigraMenu::printTree";a:3:{s:4:"type";s:8:"function";s:4:"name";s:33:"DB_NestedSet_TigraMenu::printTree";s:8:"explicit";b:1;}}s:8:"filelist";a:20:{s:13:"NestedSet.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"12f3a7cf3f11cbc25217aa11ae286818";s:12:"installed_as";s:35:"/opt/lampp/lib/php/DB/NestedSet.php";}s:16:"NestedSet/DB.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"8c157a3b39cafc8dbcea124cfe36cad1";s:12:"installed_as";s:38:"/opt/lampp/lib/php/DB/NestedSet/DB.php";}s:17:"NestedSet/MDB.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"9f576891d44da34af7e7d9040f451934";s:12:"installed_as";s:39:"/opt/lampp/lib/php/DB/NestedSet/MDB.php";}s:19:"NestedSet/Event.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"a88e156e6e87ee7bf045baae210d7e01";s:12:"installed_as";s:41:"/opt/lampp/lib/php/DB/NestedSet/Event.php";}s:20:"NestedSet/Output.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"d432fd179be2298274c0e3d4fadd240a";s:12:"installed_as";s:42:"/opt/lampp/lib/php/DB/NestedSet/Output.php";}s:22:"NestedSet/TreeMenu.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"223c90ed8f07c1dcabd2820bbf243f3e";s:12:"installed_as";s:44:"/opt/lampp/lib/php/DB/NestedSet/TreeMenu.php";}s:23:"NestedSet/TigraMenu.php";a:4:{s:4:"role";s:3:"php";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"e886959b0d37c95fd6b35c691e102239";s:12:"installed_as";s:45:"/opt/lampp/lib/php/DB/NestedSet/TigraMenu.php";}s:11:"docs/README";a:4:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"4b84273aa853ef23ab5b90c8f089fc15";s:12:"installed_as";s:47:"/opt/lampp/lib/php/doc/DB_NestedSet/docs/README";}s:14:"docs/mysql.sql";a:4:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"ec3ac13ca037e67740f529fa0a009fc2";s:12:"installed_as";s:50:"/opt/lampp/lib/php/doc/DB_NestedSet/docs/mysql.sql";}s:18:"docs/migrateDB.txt";a:4:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"54fec918a88e576ad93e82792e227eb8";s:12:"installed_as";s:54:"/opt/lampp/lib/php/doc/DB_NestedSet/docs/migrateDB.txt";}s:21:"docs/testdb_mysql.sql";a:4:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"94774a63c5d47598202ee170ef2c5577";s:12:"installed_as";s:57:"/opt/lampp/lib/php/doc/DB_NestedSet/docs/testdb_mysql.sql";}s:25:"docs/TreeMenu_example.php";a:4:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"da480626ceb872a9fd24c8d66fe39da7";s:12:"installed_as";s:61:"/opt/lampp/lib/php/doc/DB_NestedSet/docs/TreeMenu_example.php";}s:26:"docs/TigraMenu_example.php";a:4:{s:4:"role";s:3:"doc";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"815accfb61b4dffa82a1f1850bbc86d9";s:12:"installed_as";s:62:"/opt/lampp/lib/php/doc/DB_NestedSet/docs/TigraMenu_example.php";}s:15:"tests/index.php";a:4:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"788fd82695a02167a1bd3076bad8c3dc";s:12:"installed_as";s:52:"/opt/lampp/lib/php/test/DB_NestedSet/tests/index.php";}s:18:"tests/TestBase.php";a:4:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"90001b63d1622c390a29b1a474a10048";s:12:"installed_as";s:55:"/opt/lampp/lib/php/test/DB_NestedSet/tests/TestBase.php";}s:18:"tests/UnitTest.php";a:4:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"047426d0894e188a8ab218f35db49085";s:12:"installed_as";s:55:"/opt/lampp/lib/php/test/DB_NestedSet/tests/UnitTest.php";}s:23:"tests/NestedSet/api.php";a:4:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"c52006a2d096ae1dd559265998430e5b";s:12:"installed_as";s:60:"/opt/lampp/lib/php/test/DB_NestedSet/tests/NestedSet/api.php";}s:28:"tests/NestedSet/creation.php";a:4:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"6e552648a324a0e89873249d50f1be93";s:12:"installed_as";s:65:"/opt/lampp/lib/php/test/DB_NestedSet/tests/NestedSet/creation.php";}s:32:"tests/NestedSet/manipulation.php";a:4:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"1e6c0d67d5342669d91834a7913c9750";s:12:"installed_as";s:69:"/opt/lampp/lib/php/test/DB_NestedSet/tests/NestedSet/manipulation.php";}s:25:"tests/NestedSet/query.php";a:4:{s:4:"role";s:4:"test";s:14:"baseinstalldir";s:2:"DB";s:6:"md5sum";s:32:"925c9f90b42054e8e3502868661376f8";s:12:"installed_as";s:62:"/opt/lampp/lib/php/test/DB_NestedSet/tests/NestedSet/query.php";}}s:7:"package";s:12:"DB_NestedSet";s:7:"summary";s:34:"API to build and query nested sets";s:11:"description";s:488:"DB_NestedSet let's you create trees with infinite depthinside a relational database.The package provides a way too create/update/delete nodeso query nodes, trees and subtreeso copy (clone) nodes, trees and subtreeso move nodes, trees and subtreeso call event handlers on specific events like on node deletiono output the tree with - PEAR::HTML_TreeMenu - TigraMenu (http://www.softcomplex.com/products/tigra_menu/)o It also features caching of SQL queries using PEAR::Cache";s:11:"maintainers";a:2:{i:0;a:4:{s:6:"handle";s:9:"datenpunk";s:4:"name";s:11:"Daniel Khan";s:5:"email";s:16:"dk@webcluster.at";s:4:"role";s:4:"lead";}i:1;a:4:{s:6:"handle";s:5:"jrust";s:4:"name";s:10:"Jason Rust";s:5:"email";s:20:"jrust@rustyparts.com";s:4:"role";s:9:"developer";}}s:7:"version";s:3:"1.3";s:12:"release_date";s:10:"2003-10-07";s:15:"release_license";s:11:"PHP License";s:13:"release_state";s:4:"beta";s:13:"release_notes";s:3034:"This release includes many internal changes and some (long demanded) feature additions.The API and database structure should be fully backward compatible.Please test this release as much as possible, so that any remaining issues can beuncovered and resolved prior to the final release.o Notes:If you want to use new features like preorder sorting you willhave to convert the tree to meet the new db model.See docs/migrateDB.txt on how to migrate your existing tree.o Fixes:* MDB support is back again.* Fixed a problem with some move operations where the moving tree gets changed during the move operation.* Many small internal fixes.o New features:* Added a method setSortMode($mode) where $mode is NESE_SORT_LEVEL or NESE_SORT_PREORDER. This will change the way the query methods return the tree. NESE_SORT_LEVEL is the default. NESE_SORT_PREORDER returns the tree preorder sorted. This sorting method was often demanded as it's the way one would usually expect the tree to be returned. Preorder sorting will also work with the property $secondarySort. So it's possible to get the siblings of one level sorted alphabetically by name. Note that you will have to switch back to NESE_SORT_LEVEL if you want to display a tree with the output drivers.* Added method getParent() to get the immediate parent of a node* Added method getSiblings() to get all siblings of a node + the node itself* Added method createLeftNode() to create a node before a node given by it's node id.* Added method apiVersion() which obviously returns the current API version* Added convertTreeModel() to convert a tree into the new tree model* Added magic parent db field. If a column with the field mapping 'parent' is present the parent id of a node is stored inside this column. This doesn't exactly meet the nested sets theory and will only be used by some methods like getParent(). It's recommended to use this column for new installations or converted trees.* Now values passed to creation methods are verfified so that a script can't set params like the parent id by itself* Added listbox_toHTML() and tree_toHTML() methods to the TreeMenu output driver. Thanks to Emanuel Zueger for this additions.* Added regression tests for all public methods and common options The regression test setup isn't very userfriendly for now. The db schema can be found under docs and you will have to customize tests/UnitTest.php to set your database connection params.* The main class now uses the array representation of the tree for internal operations. This should gain some performance.o Notes on next major version (1.3):* The API will change.* The class won't return objects anymore. It will act as if $keepAsArray is set to true when calling the query methods. It's a good idea to switch to set this param to be mostly compatible.* Callback handlers will be removed - I don't even know if someone uses them. Please mail me at dk@webcluster.at if you really see a use. -- To be continued --";s:9:"changelog";a:7:{i:0;a:4:{s:7:"version";s:5:"1.2.4";s:12:"release_date";s:10:"2003-08-13";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:117:"o Fixed a problem in re-sorting after node deletiono Added an example for building a JavaScript tree with TreeMenu";}i:1;a:4:{s:7:"version";s:5:"1.2.3";s:12:"release_date";s:10:"2003-07-16";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:77:"o Fixes a typo in _addSQL() Thanks to Rense Klinkenberg for sending patch";}i:2;a:4:{s:7:"version";s:5:"1.2.2";s:12:"release_date";s:10:"2003-07-15";s:13:"release_state";s:6:"stable";s:13:"release_notes";s:381:"This release fixes some bugs which occured since 1.2.1We will now move towards 2.0 which will include big improvements
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?