├── .gitignore ├── README.md ├── contributed ├── Copy as CSV.spBundle │ └── command.plist ├── CopyAsHTML.spBundle │ └── command.plist ├── CopyAsWiki.spBundle │ └── command.plist ├── Deserialize php with krumo.spBundle │ ├── command.plist │ └── krumo │ │ ├── INSTALL │ │ ├── LICENSE │ │ ├── README │ │ ├── TODO │ │ ├── VERSION │ │ ├── class.krumo.php │ │ ├── docs │ │ ├── Krumo │ │ │ ├── _class.krumo.php.html │ │ │ └── krumo.html │ │ ├── blank.html │ │ ├── classtrees_Krumo.html │ │ ├── elementindex.html │ │ ├── elementindex_Krumo.html │ │ ├── errors.html │ │ ├── index.html │ │ ├── li_Krumo.html │ │ ├── media │ │ │ ├── banner.css │ │ │ ├── images │ │ │ │ ├── AbstractClass.png │ │ │ │ ├── AbstractClass_logo.png │ │ │ │ ├── AbstractMethod.png │ │ │ │ ├── AbstractPrivateClass.png │ │ │ │ ├── AbstractPrivateClass_logo.png │ │ │ │ ├── AbstractPrivateMethod.png │ │ │ │ ├── Class.png │ │ │ │ ├── Class_logo.png │ │ │ │ ├── Constant.png │ │ │ │ ├── Constructor.png │ │ │ │ ├── Destructor.png │ │ │ │ ├── Function.png │ │ │ │ ├── Global.png │ │ │ │ ├── I.png │ │ │ │ ├── Index.png │ │ │ │ ├── Interface.PNG │ │ │ │ ├── Interface_logo.png │ │ │ │ ├── L.png │ │ │ │ ├── Lminus.png │ │ │ │ ├── Lplus.png │ │ │ │ ├── Method.png │ │ │ │ ├── Page.png │ │ │ │ ├── Page_logo.png │ │ │ │ ├── PrivateClass.png │ │ │ │ ├── PrivateClass_logo.png │ │ │ │ ├── PrivateMethod.png │ │ │ │ ├── PrivateVariable.png │ │ │ │ ├── StaticMethod.png │ │ │ │ ├── StaticVariable.png │ │ │ │ ├── T.png │ │ │ │ ├── Tminus.png │ │ │ │ ├── Tplus.png │ │ │ │ ├── Variable.png │ │ │ │ ├── blank.png │ │ │ │ ├── class_folder.png │ │ │ │ ├── empty.png │ │ │ │ ├── file.png │ │ │ │ ├── folder.png │ │ │ │ ├── function_folder.png │ │ │ │ ├── minus.gif │ │ │ │ ├── next_button.png │ │ │ │ ├── next_button_disabled.png │ │ │ │ ├── package.png │ │ │ │ ├── package_folder.png │ │ │ │ ├── plus.gif │ │ │ │ ├── previous_button.png │ │ │ │ ├── previous_button_disabled.png │ │ │ │ ├── private_class_logo.png │ │ │ │ ├── tutorial.png │ │ │ │ ├── tutorial_folder.png │ │ │ │ └── up_button.png │ │ │ ├── lib │ │ │ │ └── classTree.js │ │ │ └── stylesheet.css │ │ ├── packages.html │ │ ├── ric_INSTALL.html │ │ ├── ric_LICENSE.html │ │ ├── ric_README.html │ │ ├── ric_TODO.html │ │ └── ric_VERSION.html │ │ ├── krumo.ini │ │ ├── krumo.js │ │ └── skins │ │ ├── blue │ │ ├── bg.gif │ │ └── skin.css │ │ ├── default │ │ ├── bg.gif │ │ └── skin.css │ │ ├── green │ │ ├── bg.gif │ │ └── skin.css │ │ ├── orange │ │ ├── bg.gif │ │ └── skin.css │ │ └── schablon.com │ │ ├── collapsed.gif │ │ ├── dotted.gif │ │ ├── empty.gif │ │ ├── expanded.gif │ │ └── skin.css └── Deserialize php.spBundle │ └── command.plist └── core ├── CopyAsJSON.spBundle └── command.plist ├── CopySingleLineQuoted.spBundle └── command.plist ├── DB Report.spBundle ├── Support │ ├── header.html │ └── processTableData.pl └── command.plist ├── Format SQL.spBundle └── command.plist ├── MD5 Hash.spBundle └── command.plist ├── Open Selected Table.spBundle └── command.plist ├── SHA1 Hash.spBundle ├── command.plist └── echo-n ├── Toggle JSON Format.spBundle └── command.plist └── WrapInDelimiter.spBundle └── command.plist /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | ._* 3 | .Spotlight-V100 4 | .Trashes 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sequel Pro Bundles 2 | 3 | * [Visit sequelpro.com/bundles][2] 4 | * [Follow @sequelpro on Twitter][3] 5 | 6 | ## About Sequel Pro Bundles 7 | Bundles are easy to write using your favourite scripting language and our [reference guide][4]. Have you written a fantastic Sequel Pro Bundle that you want to share? [Let us know][8] so that we can feature it on our website. 8 | 9 | ### Contribute your own bundle 10 | Simply fork this repo and add any new modules to the __contributed__ folder. Apply any bug fixes to core modules directly to the existing module. In both cases, you would want to submit a pull request to the official repo [/sequelpro/Bundles][9]. 11 | 12 | We will update the list of contributed bundles on our website as we get time. If you would prefer not to contribute using github you can share your bundle [however you like][8]. 13 | 14 | ![Image of Bundle Editor](http://www.sequelpro.com/w/images/6/67/New_Bundle_Editor_Screenshot.png "Image of Bundle Editor") 15 | 16 | ## Latest Updates 17 | 18 | ### September 2012 19 | * We have broken the bundles up into Core and Contributed bundles. 20 | * Integrated bundles from [voxpelli][6] and [liviutudor][7]. Thanks guys! 21 | * Bundle from [markcarver][10] added. 22 | 23 | ### October 2011 24 | * Integrated bundle from [andrewfulton][5], thanks! 25 | 26 | ### June 2011 27 | * Add core bundles. 28 | 29 | Contact [Sequel Pro][3] on Twitter with any questions. 30 | 31 | [1]: http://sequelpro.com/ "Sequel Pro" 32 | [2]: http://sequelpro.com/bundles "Sequel Pro Bundles" 33 | [3]: http://twitter.com/sequelpro "Sequel Pro on Twitter" 34 | [4]: http://www.sequelpro.com/bundles/reference "Bundles Documentation" 35 | [5]: https://github.com/andrewfulton "Andrew Fulton" 36 | [6]: https://github.com/voxpelli "Pelle Wessman" 37 | [7]: https://github.com/liviutudor "Liviu Tudor" 38 | [8]: http://sequelpro.com/bundles/share "Share your Bundle" 39 | [9]: https://github.com/sequelpro/Bundles "Sequel Pro Bundles on github" 40 | [10]: https://github.com/markcarver "Mark Carver" -------------------------------------------------------------------------------- /contributed/Copy as CSV.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Liviu Tudor 7 | category 8 | Copy 9 | command 10 | cat | perl -e ' 11 | 12 | # read first line to get the column names (header) 13 | $firstLine = <>; 14 | 15 | # bail if nothing could read 16 | if(!defined($firstLine)) { 17 | exit 0; 18 | } 19 | 20 | # store the column names 21 | chomp($firstLine); 22 | $firstLine =~ s/\"/\\\"/g; # escape " 23 | @header = split(/\t/, $firstLine); 24 | 25 | $h_cnt = $#header; # number of columns 26 | 27 | # get the column definitions 28 | open(META, $ENV{"SP_BUNDLE_INPUT_TABLE_METADATA"}) or die $!; 29 | @meta = (); 30 | while(<META>) { 31 | chomp(); 32 | my @arr = split(/\t/); 33 | push @meta, \@arr; 34 | } 35 | close(META); 36 | 37 | for($i=0; $i<=$h_cnt; $i++) { 38 | print "\"$header[$i]\""; 39 | if( $i<$h_cnt) { 40 | print ";"; 41 | } else { 42 | print "\n"; 43 | } 44 | } 45 | 46 | # read row data of each selected row 47 | $rowData=<>; 48 | while($rowData) { 49 | 50 | # remove line ending 51 | chomp($rowData); 52 | 53 | # escape " 54 | $rowData=~s/\"/\\\"/g; 55 | 56 | # split column data which are tab-delimited 57 | @data = split(/\t/, $rowData); 58 | for($i=0; $i<=$h_cnt; $i++) { 59 | # re-escape \t and \n 60 | $cellData = $data[$i]; 61 | $cellData =~ s/↵/\n/g; 62 | $cellData =~ s/⇥/\t/g; 63 | 64 | # check for data types 65 | if($cellData eq "NULL") { 66 | print "NULL"; 67 | } else { 68 | chomp($cellData); 69 | print "\"$cellData\""; 70 | } 71 | if($i<$h_cnt) { 72 | print ";"; 73 | } else { 74 | print "\n"; 75 | } 76 | } 77 | 78 | # get next row 79 | $rowData=<>; 80 | } 81 | 82 | print "\n"; 83 | ' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy 84 | contact 85 | yvivh.ghqbe@tznvy.pbz 86 | description 87 | Copies the selected rows to clipboard as CSV separating data by semi-colon 88 | input 89 | selectedtablerowsastab 90 | keyEquivalent 91 | 92 | name 93 | Copy as CSV 94 | output 95 | none 96 | scope 97 | datatable 98 | tooltip 99 | Copy as CSV 100 | trigger 101 | none 102 | uuid 103 | E24C4537-0AAB-4C17-B5F9-C5054CADA77C 104 | 105 | 106 | -------------------------------------------------------------------------------- /contributed/CopyAsHTML.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Liviu Tudor 7 | category 8 | Copy 9 | command 10 | cat | perl -e ' 11 | 12 | # read first line to get the column names (header) 13 | $firstLine = <>; 14 | 15 | # bail if nothing could read 16 | if(!defined($firstLine)) { 17 | exit 0; 18 | } 19 | 20 | # store the column names 21 | chomp($firstLine); 22 | $firstLine =~ s/\"/\\\"/g; # escape " 23 | @header = split(/\t/, $firstLine); 24 | 25 | $h_cnt = $#header; # number of columns 26 | 27 | # get the column definitions 28 | open(META, $ENV{"SP_BUNDLE_INPUT_TABLE_METADATA"}) or die $!; 29 | @meta = (); 30 | while(<META>) { 31 | chomp(); 32 | my @arr = split(/\t/); 33 | push @meta, \@arr; 34 | } 35 | close(META); 36 | 37 | print "<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\n"; 38 | print "<tr>"; 39 | for($i=0; $i<=$h_cnt; $i++) { 40 | print "<th>$header[$i]</th>"; 41 | } 42 | print "</tr>\n"; 43 | 44 | # read row data of each selected row 45 | $rowData=<>; 46 | while($rowData) { 47 | 48 | print "<tr>"; 49 | 50 | # remove line ending 51 | chomp($rowData); 52 | 53 | # escape " 54 | $rowData=~s/\"/\\\"/g; 55 | 56 | # split column data which are tab-delimited 57 | @data = split(/\t/, $rowData); 58 | for($i=0; $i<=$h_cnt; $i++) { 59 | # re-escape \t and \n 60 | $cellData = $data[$i]; 61 | $cellData =~ s/↵/\n/g; 62 | $cellData =~ s/⇥/\t/g; 63 | 64 | print "<td>"; 65 | # check for data types 66 | if($cellData eq "NULL") { 67 | print "NULL"; 68 | } else { 69 | chomp($cellData); 70 | print "$cellData"; 71 | } 72 | print "</td>"; 73 | } 74 | 75 | print "</tr>\n"; 76 | 77 | # get next row 78 | $rowData=<>; 79 | } 80 | 81 | print "</table>\n"; 82 | ' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy 83 | contact 84 | yvivh.ghqbe@tznvy.pbz 85 | description 86 | Copies the selected rows to clipboard as html 87 | input 88 | selectedtablerowsastab 89 | keyEquivalent 90 | 91 | name 92 | Copy as HTML 93 | output 94 | none 95 | scope 96 | datatable 97 | tooltip 98 | Copy as HTML 99 | trigger 100 | none 101 | uuid 102 | 31FD6D95-CED5-4870-9A19-5A1396216C37 103 | 104 | 105 | -------------------------------------------------------------------------------- /contributed/CopyAsWiki.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Liviu Tudor 7 | category 8 | Copy 9 | command 10 | cat | perl -e ' 11 | 12 | # read first line to get the column names (header) 13 | $firstLine = <>; 14 | 15 | # bail if nothing could read 16 | if(!defined($firstLine)) { 17 | exit 0; 18 | } 19 | 20 | # store the column names 21 | chomp($firstLine); 22 | $firstLine =~ s/\"/\\\"/g; # escape " 23 | @header = split(/\t/, $firstLine); 24 | 25 | $h_cnt = $#header; # number of columns 26 | 27 | # get the column definitions 28 | open(META, $ENV{"SP_BUNDLE_INPUT_TABLE_METADATA"}) or die $!; 29 | @meta = (); 30 | while(<META>) { 31 | chomp(); 32 | my @arr = split(/\t/); 33 | push @meta, \@arr; 34 | } 35 | close(META); 36 | 37 | print "||"; 38 | for($i=0; $i<=$h_cnt; $i++) { 39 | print " *$header[$i]* ||"; 40 | } 41 | print "\n"; 42 | 43 | # read row data of each selected row 44 | $rowData=<>; 45 | while($rowData) { 46 | 47 | print "||"; 48 | 49 | # remove line ending 50 | chomp($rowData); 51 | 52 | # escape " 53 | $rowData=~s/\"/\\\"/g; 54 | 55 | # split column data which are tab-delimited 56 | @data = split(/\t/, $rowData); 57 | for($i=0; $i<=$h_cnt; $i++) { 58 | # re-escape \t and \n 59 | $cellData = $data[$i]; 60 | $cellData =~ s/↵/\n/g; 61 | $cellData =~ s/⇥/\t/g; 62 | 63 | # check for data types 64 | if($cellData eq "NULL") { 65 | print " _NULL_ "; 66 | } else { 67 | chomp($cellData); 68 | print " *$cellData* "; 69 | } 70 | print "||"; 71 | } 72 | 73 | print "\n"; 74 | 75 | # get next row 76 | $rowData=<>; 77 | } 78 | 79 | print "\n"; 80 | ' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy 81 | contact 82 | yvivh.ghqbe@tznvy.pbz 83 | description 84 | Copies the selected rows to clipboard as wiki table 85 | input 86 | selectedtablerowsastab 87 | internalKeyEquivalent 88 | 89 | characters 90 | C 91 | keyCode 92 | 8 93 | modifierFlags 94 | 262144 95 | 96 | keyEquivalent 97 | ^c 98 | name 99 | Copy as Wiki 100 | output 101 | none 102 | scope 103 | datatable 104 | tooltip 105 | Copy as Wiki 106 | trigger 107 | none 108 | uuid 109 | 5B20D1B9-9C60-4D9F-B51B-5F742665557E 110 | 111 | 112 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Mark Carver 7 | category 8 | Format 9 | command 10 | #!/usr/bin/php 11 | 12 | <?php 13 | $input = fgets(STDIN); 14 | if ($unserialized = unserialize($input)) { 15 | $input = $unserialized; 16 | } 17 | include_once $_SERVER['SP_BUNDLE_PATH'] . '/krumo/class.krumo.php'; 18 | if ((is_object($input) || is_array($input)) && function_exists('krumo')) { 19 | print krumo($input); 20 | } 21 | else { 22 | print '<pre>' . print_r($input, TRUE) . '</pre>'; 23 | } 24 | ?> 25 | description 26 | Deserializes those PHP objects that drupal loves so much. Deserialize PHP with Krumo. 27 | input 28 | selectedtext 29 | input_fallback 30 | entirecontent 31 | internalKeyEquivalent 32 | 33 | characters 34 | D 35 | keyCode 36 | 2 37 | modifierFlags 38 | 1179648 39 | 40 | keyEquivalent 41 | $@D 42 | name 43 | Deserialize PHP with Krumo 44 | output 45 | showashtml 46 | scope 47 | inputfield 48 | uuid 49 | 8F858F4D-9DCC-488A-B01C-D9F7FA32FE33 50 | 51 | 52 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/INSTALL: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------ 2 | 3 | SETUP: How to install Krumo ? 4 | 5 | ------------------------------------------------------------------------------ 6 | 7 | In order to use Krumo you have to put it on your (development) server, and 8 | include it in your script. You can put it somewhere in the INCLUDE_PATH, or 9 | specify the full path to the "class.krumo.php" file. 10 | 11 | You have to modify the "krumo.ini" file too. It is the configuration file for 12 | Krumo. The first option is choosing a skin: 13 | 14 | [skin] 15 | selected = "orange" 16 | 17 | The value for this setting has to be the name of one of the sub-folders from the 18 | "Krumo/skins/" folder. If the value provided for the skin results in not finding 19 | the skin, the `default` skin will be used instead. 20 | 21 | The second option is used to set the correct web path to the folder where Krumo 22 | is installed. This is used in order to make the images from Krumo's CSS skins 23 | web-accessible. 24 | 25 | [css] 26 | url = "http://www.example.com/Krumo/" 27 | 28 | So far those two are the only configuration options. 29 | 30 | All the CSS files ("skin.css") from the "Krumo/skins/" sub-folders must have the 31 | proper permissions in order to be readable from Krumo. Same applies for 32 | "krumo.ini" and "krumo.js" files. -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/LICENSE: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 2.1, February 1999 3 | 4 | Copyright (C) 1991, 1999 Free Software Foundation, Inc. 5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | [This is the first released version of the Lesser GPL. It also counts 10 | as the successor of the GNU Library Public License, version 2, hence 11 | the version number 2.1.] 12 | 13 | Preamble 14 | 15 | The licenses for most software are designed to take away your 16 | freedom to share and change it. By contrast, the GNU General Public 17 | Licenses are intended to guarantee your freedom to share and change 18 | free software--to make sure the software is free for all its users. 19 | 20 | This license, the Lesser General Public License, applies to some 21 | specially designated software packages--typically libraries--of the 22 | Free Software Foundation and other authors who decide to use it. You 23 | can use it too, but we suggest you first think carefully about whether 24 | this license or the ordinary General Public License is the better 25 | strategy to use in any particular case, based on the explanations below. 26 | 27 | When we speak of free software, we are referring to freedom of use, 28 | not price. Our General Public Licenses are designed to make sure that 29 | you have the freedom to distribute copies of free software (and charge 30 | for this service if you wish); that you receive source code or can get 31 | it if you want it; that you can change the software and use pieces of 32 | it in new free programs; and that you are informed that you can do 33 | these things. 34 | 35 | To protect your rights, we need to make restrictions that forbid 36 | distributors to deny you these rights or to ask you to surrender these 37 | rights. These restrictions translate to certain responsibilities for 38 | you if you distribute copies of the library or if you modify it. 39 | 40 | For example, if you distribute copies of the library, whether gratis 41 | or for a fee, you must give the recipients all the rights that we gave 42 | you. You must make sure that they, too, receive or can get the source 43 | code. If you link other code with the library, you must provide 44 | complete object files to the recipients, so that they can relink them 45 | with the library after making changes to the library and recompiling 46 | it. And you must show them these terms so they know their rights. 47 | 48 | We protect your rights with a two-step method: (1) we copyright the 49 | library, and (2) we offer you this license, which gives you legal 50 | permission to copy, distribute and/or modify the library. 51 | 52 | To protect each distributor, we want to make it very clear that 53 | there is no warranty for the free library. Also, if the library is 54 | modified by someone else and passed on, the recipients should know 55 | that what they have is not the original version, so that the original 56 | author's reputation will not be affected by problems that might be 57 | introduced by others. 58 | 59 | Finally, software patents pose a constant threat to the existence of 60 | any free program. We wish to make sure that a company cannot 61 | effectively restrict the users of a free program by obtaining a 62 | restrictive license from a patent holder. Therefore, we insist that 63 | any patent license obtained for a version of the library must be 64 | consistent with the full freedom of use specified in this license. 65 | 66 | Most GNU software, including some libraries, is covered by the 67 | ordinary GNU General Public License. This license, the GNU Lesser 68 | General Public License, applies to certain designated libraries, and 69 | is quite different from the ordinary General Public License. We use 70 | this license for certain libraries in order to permit linking those 71 | libraries into non-free programs. 72 | 73 | When a program is linked with a library, whether statically or using 74 | a shared library, the combination of the two is legally speaking a 75 | combined work, a derivative of the original library. The ordinary 76 | General Public License therefore permits such linking only if the 77 | entire combination fits its criteria of freedom. The Lesser General 78 | Public License permits more lax criteria for linking other code with 79 | the library. 80 | 81 | We call this license the "Lesser" General Public License because it 82 | does Less to protect the user's freedom than the ordinary General 83 | Public License. It also provides other free software developers Less 84 | of an advantage over competing non-free programs. These disadvantages 85 | are the reason we use the ordinary General Public License for many 86 | libraries. However, the Lesser license provides advantages in certain 87 | special circumstances. 88 | 89 | For example, on rare occasions, there may be a special need to 90 | encourage the widest possible use of a certain library, so that it becomes 91 | a de-facto standard. To achieve this, non-free programs must be 92 | allowed to use the library. A more frequent case is that a free 93 | library does the same job as widely used non-free libraries. In this 94 | case, there is little to gain by limiting the free library to free 95 | software only, so we use the Lesser General Public License. 96 | 97 | In other cases, permission to use a particular library in non-free 98 | programs enables a greater number of people to use a large body of 99 | free software. For example, permission to use the GNU C Library in 100 | non-free programs enables many more people to use the whole GNU 101 | operating system, as well as its variant, the GNU/Linux operating 102 | system. 103 | 104 | Although the Lesser General Public License is Less protective of the 105 | users' freedom, it does ensure that the user of a program that is 106 | linked with the Library has the freedom and the wherewithal to run 107 | that program using a modified version of the Library. 108 | 109 | The precise terms and conditions for copying, distribution and 110 | modification follow. Pay close attention to the difference between a 111 | "work based on the library" and a "work that uses the library". The 112 | former contains code derived from the library, whereas the latter must 113 | be combined with the library in order to run. 114 | 115 | GNU LESSER GENERAL PUBLIC LICENSE 116 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 117 | 118 | 0. This License Agreement applies to any software library or other 119 | program which contains a notice placed by the copyright holder or 120 | other authorized party saying it may be distributed under the terms of 121 | this Lesser General Public License (also called "this License"). 122 | Each licensee is addressed as "you". 123 | 124 | A "library" means a collection of software functions and/or data 125 | prepared so as to be conveniently linked with application programs 126 | (which use some of those functions and data) to form executables. 127 | 128 | The "Library", below, refers to any such software library or work 129 | which has been distributed under these terms. A "work based on the 130 | Library" means either the Library or any derivative work under 131 | copyright law: that is to say, a work containing the Library or a 132 | portion of it, either verbatim or with modifications and/or translated 133 | straightforwardly into another language. (Hereinafter, translation is 134 | included without limitation in the term "modification".) 135 | 136 | "Source code" for a work means the preferred form of the work for 137 | making modifications to it. For a library, complete source code means 138 | all the source code for all modules it contains, plus any associated 139 | interface definition files, plus the scripts used to control compilation 140 | and installation of the library. 141 | 142 | Activities other than copying, distribution and modification are not 143 | covered by this License; they are outside its scope. The act of 144 | running a program using the Library is not restricted, and output from 145 | such a program is covered only if its contents constitute a work based 146 | on the Library (independent of the use of the Library in a tool for 147 | writing it). Whether that is true depends on what the Library does 148 | and what the program that uses the Library does. 149 | 150 | 1. You may copy and distribute verbatim copies of the Library's 151 | complete source code as you receive it, in any medium, provided that 152 | you conspicuously and appropriately publish on each copy an 153 | appropriate copyright notice and disclaimer of warranty; keep intact 154 | all the notices that refer to this License and to the absence of any 155 | warranty; and distribute a copy of this License along with the 156 | Library. 157 | 158 | You may charge a fee for the physical act of transferring a copy, 159 | and you may at your option offer warranty protection in exchange for a 160 | fee. 161 | 162 | 2. You may modify your copy or copies of the Library or any portion 163 | of it, thus forming a work based on the Library, and copy and 164 | distribute such modifications or work under the terms of Section 1 165 | above, provided that you also meet all of these conditions: 166 | 167 | a) The modified work must itself be a software library. 168 | 169 | b) You must cause the files modified to carry prominent notices 170 | stating that you changed the files and the date of any change. 171 | 172 | c) You must cause the whole of the work to be licensed at no 173 | charge to all third parties under the terms of this License. 174 | 175 | d) If a facility in the modified Library refers to a function or a 176 | table of data to be supplied by an application program that uses 177 | the facility, other than as an argument passed when the facility 178 | is invoked, then you must make a good faith effort to ensure that, 179 | in the event an application does not supply such function or 180 | table, the facility still operates, and performs whatever part of 181 | its purpose remains meaningful. 182 | 183 | (For example, a function in a library to compute square roots has 184 | a purpose that is entirely well-defined independent of the 185 | application. Therefore, Subsection 2d requires that any 186 | application-supplied function or table used by this function must 187 | be optional: if the application does not supply it, the square 188 | root function must still compute square roots.) 189 | 190 | These requirements apply to the modified work as a whole. If 191 | identifiable sections of that work are not derived from the Library, 192 | and can be reasonably considered independent and separate works in 193 | themselves, then this License, and its terms, do not apply to those 194 | sections when you distribute them as separate works. But when you 195 | distribute the same sections as part of a whole which is a work based 196 | on the Library, the distribution of the whole must be on the terms of 197 | this License, whose permissions for other licensees extend to the 198 | entire whole, and thus to each and every part regardless of who wrote 199 | it. 200 | 201 | Thus, it is not the intent of this section to claim rights or contest 202 | your rights to work written entirely by you; rather, the intent is to 203 | exercise the right to control the distribution of derivative or 204 | collective works based on the Library. 205 | 206 | In addition, mere aggregation of another work not based on the Library 207 | with the Library (or with a work based on the Library) on a volume of 208 | a storage or distribution medium does not bring the other work under 209 | the scope of this License. 210 | 211 | 3. You may opt to apply the terms of the ordinary GNU General Public 212 | License instead of this License to a given copy of the Library. To do 213 | this, you must alter all the notices that refer to this License, so 214 | that they refer to the ordinary GNU General Public License, version 2, 215 | instead of to this License. (If a newer version than version 2 of the 216 | ordinary GNU General Public License has appeared, then you can specify 217 | that version instead if you wish.) Do not make any other change in 218 | these notices. 219 | 220 | Once this change is made in a given copy, it is irreversible for 221 | that copy, so the ordinary GNU General Public License applies to all 222 | subsequent copies and derivative works made from that copy. 223 | 224 | This option is useful when you wish to copy part of the code of 225 | the Library into a program that is not a library. 226 | 227 | 4. You may copy and distribute the Library (or a portion or 228 | derivative of it, under Section 2) in object code or executable form 229 | under the terms of Sections 1 and 2 above provided that you accompany 230 | it with the complete corresponding machine-readable source code, which 231 | must be distributed under the terms of Sections 1 and 2 above on a 232 | medium customarily used for software interchange. 233 | 234 | If distribution of object code is made by offering access to copy 235 | from a designated place, then offering equivalent access to copy the 236 | source code from the same place satisfies the requirement to 237 | distribute the source code, even though third parties are not 238 | compelled to copy the source along with the object code. 239 | 240 | 5. A program that contains no derivative of any portion of the 241 | Library, but is designed to work with the Library by being compiled or 242 | linked with it, is called a "work that uses the Library". Such a 243 | work, in isolation, is not a derivative work of the Library, and 244 | therefore falls outside the scope of this License. 245 | 246 | However, linking a "work that uses the Library" with the Library 247 | creates an executable that is a derivative of the Library (because it 248 | contains portions of the Library), rather than a "work that uses the 249 | library". The executable is therefore covered by this License. 250 | Section 6 states terms for distribution of such executables. 251 | 252 | When a "work that uses the Library" uses material from a header file 253 | that is part of the Library, the object code for the work may be a 254 | derivative work of the Library even though the source code is not. 255 | Whether this is true is especially significant if the work can be 256 | linked without the Library, or if the work is itself a library. The 257 | threshold for this to be true is not precisely defined by law. 258 | 259 | If such an object file uses only numerical parameters, data 260 | structure layouts and accessors, and small macros and small inline 261 | functions (ten lines or less in length), then the use of the object 262 | file is unrestricted, regardless of whether it is legally a derivative 263 | work. (Executables containing this object code plus portions of the 264 | Library will still fall under Section 6.) 265 | 266 | Otherwise, if the work is a derivative of the Library, you may 267 | distribute the object code for the work under the terms of Section 6. 268 | Any executables containing that work also fall under Section 6, 269 | whether or not they are linked directly with the Library itself. 270 | 271 | 6. As an exception to the Sections above, you may also combine or 272 | link a "work that uses the Library" with the Library to produce a 273 | work containing portions of the Library, and distribute that work 274 | under terms of your choice, provided that the terms permit 275 | modification of the work for the customer's own use and reverse 276 | engineering for debugging such modifications. 277 | 278 | You must give prominent notice with each copy of the work that the 279 | Library is used in it and that the Library and its use are covered by 280 | this License. You must supply a copy of this License. If the work 281 | during execution displays copyright notices, you must include the 282 | copyright notice for the Library among them, as well as a reference 283 | directing the user to the copy of this License. Also, you must do one 284 | of these things: 285 | 286 | a) Accompany the work with the complete corresponding 287 | machine-readable source code for the Library including whatever 288 | changes were used in the work (which must be distributed under 289 | Sections 1 and 2 above); and, if the work is an executable linked 290 | with the Library, with the complete machine-readable "work that 291 | uses the Library", as object code and/or source code, so that the 292 | user can modify the Library and then relink to produce a modified 293 | executable containing the modified Library. (It is understood 294 | that the user who changes the contents of definitions files in the 295 | Library will not necessarily be able to recompile the application 296 | to use the modified definitions.) 297 | 298 | b) Use a suitable shared library mechanism for linking with the 299 | Library. A suitable mechanism is one that (1) uses at run time a 300 | copy of the library already present on the user's computer system, 301 | rather than copying library functions into the executable, and (2) 302 | will operate properly with a modified version of the library, if 303 | the user installs one, as long as the modified version is 304 | interface-compatible with the version that the work was made with. 305 | 306 | c) Accompany the work with a written offer, valid for at 307 | least three years, to give the same user the materials 308 | specified in Subsection 6a, above, for a charge no more 309 | than the cost of performing this distribution. 310 | 311 | d) If distribution of the work is made by offering access to copy 312 | from a designated place, offer equivalent access to copy the above 313 | specified materials from the same place. 314 | 315 | e) Verify that the user has already received a copy of these 316 | materials or that you have already sent this user a copy. 317 | 318 | For an executable, the required form of the "work that uses the 319 | Library" must include any data and utility programs needed for 320 | reproducing the executable from it. However, as a special exception, 321 | the materials to be distributed need not include anything that is 322 | normally distributed (in either source or binary form) with the major 323 | components (compiler, kernel, and so on) of the operating system on 324 | which the executable runs, unless that component itself accompanies 325 | the executable. 326 | 327 | It may happen that this requirement contradicts the license 328 | restrictions of other proprietary libraries that do not normally 329 | accompany the operating system. Such a contradiction means you cannot 330 | use both them and the Library together in an executable that you 331 | distribute. 332 | 333 | 7. You may place library facilities that are a work based on the 334 | Library side-by-side in a single library together with other library 335 | facilities not covered by this License, and distribute such a combined 336 | library, provided that the separate distribution of the work based on 337 | the Library and of the other library facilities is otherwise 338 | permitted, and provided that you do these two things: 339 | 340 | a) Accompany the combined library with a copy of the same work 341 | based on the Library, uncombined with any other library 342 | facilities. This must be distributed under the terms of the 343 | Sections above. 344 | 345 | b) Give prominent notice with the combined library of the fact 346 | that part of it is a work based on the Library, and explaining 347 | where to find the accompanying uncombined form of the same work. 348 | 349 | 8. You may not copy, modify, sublicense, link with, or distribute 350 | the Library except as expressly provided under this License. Any 351 | attempt otherwise to copy, modify, sublicense, link with, or 352 | distribute the Library is void, and will automatically terminate your 353 | rights under this License. However, parties who have received copies, 354 | or rights, from you under this License will not have their licenses 355 | terminated so long as such parties remain in full compliance. 356 | 357 | 9. You are not required to accept this License, since you have not 358 | signed it. However, nothing else grants you permission to modify or 359 | distribute the Library or its derivative works. These actions are 360 | prohibited by law if you do not accept this License. Therefore, by 361 | modifying or distributing the Library (or any work based on the 362 | Library), you indicate your acceptance of this License to do so, and 363 | all its terms and conditions for copying, distributing or modifying 364 | the Library or works based on it. 365 | 366 | 10. Each time you redistribute the Library (or any work based on the 367 | Library), the recipient automatically receives a license from the 368 | original licensor to copy, distribute, link with or modify the Library 369 | subject to these terms and conditions. You may not impose any further 370 | restrictions on the recipients' exercise of the rights granted herein. 371 | You are not responsible for enforcing compliance by third parties with 372 | this License. 373 | 374 | 11. If, as a consequence of a court judgment or allegation of patent 375 | infringement or for any other reason (not limited to patent issues), 376 | conditions are imposed on you (whether by court order, agreement or 377 | otherwise) that contradict the conditions of this License, they do not 378 | excuse you from the conditions of this License. If you cannot 379 | distribute so as to satisfy simultaneously your obligations under this 380 | License and any other pertinent obligations, then as a consequence you 381 | may not distribute the Library at all. For example, if a patent 382 | license would not permit royalty-free redistribution of the Library by 383 | all those who receive copies directly or indirectly through you, then 384 | the only way you could satisfy both it and this License would be to 385 | refrain entirely from distribution of the Library. 386 | 387 | If any portion of this section is held invalid or unenforceable under any 388 | particular circumstance, the balance of the section is intended to apply, 389 | and the section as a whole is intended to apply in other circumstances. 390 | 391 | It is not the purpose of this section to induce you to infringe any 392 | patents or other property right claims or to contest validity of any 393 | such claims; this section has the sole purpose of protecting the 394 | integrity of the free software distribution system which is 395 | implemented by public license practices. Many people have made 396 | generous contributions to the wide range of software distributed 397 | through that system in reliance on consistent application of that 398 | system; it is up to the author/donor to decide if he or she is willing 399 | to distribute software through any other system and a licensee cannot 400 | impose that choice. 401 | 402 | This section is intended to make thoroughly clear what is believed to 403 | be a consequence of the rest of this License. 404 | 405 | 12. If the distribution and/or use of the Library is restricted in 406 | certain countries either by patents or by copyrighted interfaces, the 407 | original copyright holder who places the Library under this License may add 408 | an explicit geographical distribution limitation excluding those countries, 409 | so that distribution is permitted only in or among countries not thus 410 | excluded. In such case, this License incorporates the limitation as if 411 | written in the body of this License. 412 | 413 | 13. The Free Software Foundation may publish revised and/or new 414 | versions of the Lesser General Public License from time to time. 415 | Such new versions will be similar in spirit to the present version, 416 | but may differ in detail to address new problems or concerns. 417 | 418 | Each version is given a distinguishing version number. If the Library 419 | specifies a version number of this License which applies to it and 420 | "any later version", you have the option of following the terms and 421 | conditions either of that version or of any later version published by 422 | the Free Software Foundation. If the Library does not specify a 423 | license version number, you may choose any version ever published by 424 | the Free Software Foundation. 425 | 426 | 14. If you wish to incorporate parts of the Library into other free 427 | programs whose distribution conditions are incompatible with these, 428 | write to the author to ask for permission. For software which is 429 | copyrighted by the Free Software Foundation, write to the Free 430 | Software Foundation; we sometimes make exceptions for this. Our 431 | decision will be guided by the two goals of preserving the free status 432 | of all derivatives of our free software and of promoting the sharing 433 | and reuse of software generally. 434 | 435 | NO WARRANTY 436 | 437 | 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 438 | WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 439 | EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 440 | OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 441 | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 442 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 443 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 444 | LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 445 | THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 446 | 447 | 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 448 | WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 449 | AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 450 | FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 451 | CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 452 | LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 453 | RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 454 | FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 455 | SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 456 | DAMAGES. 457 | 458 | END OF TERMS AND CONDITIONS 459 | 460 | How to Apply These Terms to Your New Libraries 461 | 462 | If you develop a new library, and you want it to be of the greatest 463 | possible use to the public, we recommend making it free software that 464 | everyone can redistribute and change. You can do so by permitting 465 | redistribution under these terms (or, alternatively, under the terms of the 466 | ordinary General Public License). 467 | 468 | To apply these terms, attach the following notices to the library. It is 469 | safest to attach them to the start of each source file to most effectively 470 | convey the exclusion of warranty; and each file should have at least the 471 | "copyright" line and a pointer to where the full notice is found. 472 | 473 | 474 | Copyright (C) 475 | 476 | This library is free software; you can redistribute it and/or 477 | modify it under the terms of the GNU Lesser General Public 478 | License as published by the Free Software Foundation; either 479 | version 2.1 of the License, or (at your option) any later version. 480 | 481 | This library is distributed in the hope that it will be useful, 482 | but WITHOUT ANY WARRANTY; without even the implied warranty of 483 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 484 | Lesser General Public License for more details. 485 | 486 | You should have received a copy of the GNU Lesser General Public 487 | License along with this library; if not, write to the Free Software 488 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 489 | 490 | Also add information on how to contact you by electronic and paper mail. 491 | 492 | You should also get your employer (if you work as a programmer) or your 493 | school, if any, to sign a "copyright disclaimer" for the library, if 494 | necessary. Here is a sample; alter the names: 495 | 496 | Yoyodyne, Inc., hereby disclaims all copyright interest in the 497 | library `Frob' (a library for tweaking knobs) written by James Random Hacker. 498 | 499 | , 1 April 1990 500 | Ty Coon, President of Vice 501 | 502 | That's all there is to it! 503 | 504 | 505 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/README: -------------------------------------------------------------------------------- 1 | ============================================================================= 2 | 3 | Krumo 4 | version 0.2.1a 5 | 6 | ============================================================================= 7 | 8 | You probably got this package from... 9 | http://www.sourceforge.net/projects/krumo/ 10 | 11 | If there is no licence agreement with this package please download 12 | a version from the location above. You must read and accept that 13 | licence to use this software. The file is titled simply LICENSE. 14 | 15 | OVERVIEW 16 | ------------------------------------------------------------------------------ 17 | To put it simply, Krumo is a replacement for print_r() and var_dump(). By 18 | definition Krumo is a debugging tool (for PHP5), which displays structured 19 | information about any PHP variable. 20 | 21 | A lot of developers use print_r() and var_dump() in the means of debugging 22 | tools. Although they were intended to present human readble information about a 23 | variable, we can all agree that in general they are not. Krumo is an 24 | alternative: it does the same job, but it presents the information beautified 25 | using CSS and DHTML. 26 | 27 | EXAMPLES 28 | ------------------------------------------------------------------------------ 29 | Here's a basic example, which will return a report on the array variable passed 30 | as argument to it: 31 | 32 | krumo(array('a1'=> 'A1', 3, 'red')); 33 | 34 | You can dump simultaneously more then one variable - here's another example: 35 | 36 | krumo($_SERVER, $_REQUEST); 37 | 38 | You probably saw from the examples above that some of the nodes are expandable, 39 | so if you want to inspect the nested information, click on them and they will 40 | expand; if you do not need that information shown simply click again on it to 41 | collapse it. Here's an example to test this: 42 | 43 | $x1->x2->x3->x4->x5->x6->x7->x8->x9 = 'X10'; 44 | krumo($x1); 45 | 46 | The krumo() is the only standalone function from the package, and this is 47 | because basic dumps about variables (like print_r() or var_dump()) are the most 48 | common tasks such functionality is used for. The rest of the functionality can 49 | be called using static calls to the Krumo class. Here are several more examples: 50 | 51 | // print a debug backgrace 52 | krumo::backtrace(); 53 | 54 | // print all the included(or required) files 55 | krumo::includes(); 56 | 57 | // print all the included functions 58 | krumo::functions(); 59 | 60 | // print all the declared classes 61 | krumo::classes(); 62 | 63 | // print all the defined constants 64 | krumo::defines(); 65 | 66 | ... and so on, etc. 67 | 68 | A full PHPDocumenter API documentation exists both in this package and at the 69 | project's website. 70 | 71 | INSTALL 72 | ------------------------------------------------------------------------------ 73 | Read the INSTALL file. 74 | 75 | DOCUMENTATION 76 | ------------------------------------------------------------------------------ 77 | As I said, a full PHPDocumenter API documentation can be found both in this 78 | package and at the project's website. 79 | 80 | SKINS 81 | ------------------------------------------------------------------------------ 82 | There are several skins pre-installed with this package, but if you wish you can 83 | create skins of your own. The skins are simply CSS files that are prepended to 84 | the result that Krumo prints. If you want to use images in your CSS (for 85 | background, list-style, etc), you have to put "%URL%" in front of the image URL 86 | in order hook it up to the skin folder and make the image web-accessible. 87 | 88 | Here's an example: 89 | 90 | ul.krumo-first {background: url(%url%bg.gif);} 91 | 92 | TODO 93 | ------------------------------------------------------------------------------ 94 | You can find the list of stuff that is going to be added to this project in the 95 | TODO file from this very package. 96 | 97 | CONTRIBUTION 98 | ----------------------------------------------------------------------------- 99 | If you download and use and possibly even extend this tool, please let us know. 100 | Any feedback, even bad, is always welcome and your suggestions are going to be 101 | considered for our next release. Please use our SourceForge page for that: 102 | 103 | http://www.sourceforge.net/projects/krumo/ 104 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/TODO: -------------------------------------------------------------------------------- 1 | ****************************************************************************** 2 | 3 | Krumo: TODO 4 | 5 | ****************************************************************************** 6 | 7 | BUGS 8 | ---------------- 9 | - watch the SourceForge.net Bug Tracker 10 | 11 | Features: PHP 12 | ---------------- 13 | - Try to detect anonymous (lambda) functions 14 | - Try to detect whether an array is indexed or associated 15 | - Add var_export support for arrays and objects 16 | - Add JSON support for arrays and objects 17 | 18 | Features: GUI 19 | ---------------- 20 | - Nicer and friendlier skin(s) 21 | - Add top-level links for collapsing and expanding the whole tree 22 | - Add object & array -level links for collapsing and expanding all the 23 | nested nodes 24 | - Print all parent classes for the rendered objects -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/VERSION: -------------------------------------------------------------------------------- 1 | 0.2.1a -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/Krumo/_class.krumo.php.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Docs for page class.krumo.php 7 | 8 | 9 | 85 | 86 | 87 |
88 |

File/class.krumo.php

89 | 90 | 91 |
92 |
Description
93 | 99 |
100 | 101 |

Krumo: Structured information display solution

102 |

Krumo is a debugging tool (PHP5 only), which displays structured information about any PHP variable. It is a nice replacement for print_r() or var_dump() which are used by a lot of PHP developers.

103 | 108 | 109 |
110 |
111 | 112 | 113 |
114 |
Classes
115 | 121 |
122 | 123 | 124 | 125 | 126 | 127 | 128 | 134 | 137 | 138 |
ClassDescription
129 |  class 132 | krumo 133 | 135 | Krumo API 136 |
139 |
140 |
141 | 142 | 143 | 144 |
145 |
Constants
146 | 152 |
153 | 154 |
155 | 156 |
157 | 158 | 159 | DIR_SEP = DIRECTORY_SEPARATOR 160 | (line 22) 161 | 162 |
163 | 164 | 165 |

backward compatibility: the DIR_SEP constant isn't used anymore

166 | 167 | 168 |
169 | 170 |
171 | 172 |
173 | 174 | 175 | KRUMO_DIR = dirname(__FILE__).DIRECTORY_SEPARATOR 176 | (line 39) 177 | 178 |
179 | 180 | 181 |

Set the KRUMO_DIR constant up with the absolute path to Krumo files. If it is not defined, include_path will be used. Set KRUMO_DIR only if any other module or application has not already set it up.

182 | 183 | 184 |
185 | 186 |
187 | 188 |
189 | 190 | 191 | KRUMO_TRUNCATE_LENGTH = 50 192 | (line 48) 193 | 194 |
195 | 196 | 197 |

This constant sets the maximum strings of strings that will be shown as they are. Longer strings will be truncated with this length, and their `full form` will be shown in a child node.

198 | 199 | 200 |
201 | 202 |
203 | 204 |
205 | 206 | 207 | PATH_SEPARATOR = OS_WINDOWS?';':':' 208 | (line 28) 209 | 210 |
211 | 212 | 213 |

backward compatibility: the PATH_SEPARATOR constant is availble since 4.3.0RC2

214 | 215 | 216 |
217 |
218 |
219 | 220 | 221 | 222 |
223 |
Functions
224 | 230 |
231 | 232 |
233 | 234 |
235 | 236 | krumo (line 1295) 237 |
238 | 239 | 240 |

Alias of krumo::dump()

241 | 244 |
245 | void 246 | 247 | krumo 248 | 249 | ([mixed $data,... = ]) 250 |
251 | 252 |
    253 |
  • 254 | mixed 255 | $data,...
  • 256 |
257 | 258 | 259 |
260 |
261 |
262 | 263 |

264 | Documentation generated on Sun, 02 Dec 2007 09:43:24 +0200 by phpDocumentor 1.4.0a2 265 |

266 |
267 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/blank.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Krumo 4 | 5 | 6 | 7 | 8 |

Krumo

9 | Welcome to Krumo!
10 |
11 | This documentation was generated by phpDocumentor v1.4.0a2
12 | 13 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/classtrees_Krumo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

13 | 14 |

15 |

Root class krumo

16 | 18 | 19 |

20 | Documentation generated on Sun, 02 Dec 2007 09:43:24 +0200 by phpDocumentor 1.4.0a2 21 |

22 | 23 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/elementindex.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |

Full index

12 |

Package indexes

13 | 16 |
17 |
18 | b 19 | c 20 | d 21 | e 22 | f 23 | g 24 | h 25 | i 26 | k 27 | p 28 | r 29 | s 30 | v 31 |
32 | 33 | 34 |
35 |
b
36 | 37 |
38 |
39 |
40 |
41 | Method 42 | backtrace 43 |
44 |
45 |
krumo::backtrace() in class.krumo.php
46 |
Prints a debug backtrace
47 |
48 |
49 | 50 |
51 |
c
52 | 53 |
54 |
55 |
56 |
57 | Page 58 | class.krumo.php 59 |
60 |
61 |
class.krumo.php in class.krumo.php
62 |
63 |
64 | Method 65 | classes 66 |
67 |
68 |
krumo::classes() in class.krumo.php
69 |
Prints a list of all currently declared classes.
70 |
71 |
72 | Method 73 | conf 74 |
75 |
76 |
krumo::conf() in class.krumo.php
77 |
Prints a list of all your configuration settings.
78 |
79 |
80 | Method 81 | cookie 82 |
83 |
84 |
krumo::cookie() in class.krumo.php
85 |
Prints a list of all the values from the $_COOKIE array.
86 |
87 |
88 | 89 |
90 |
d
91 | 92 |
93 |
94 |
95 |
96 | Method 97 | defines 98 |
99 |
100 |
krumo::defines() in class.krumo.php
101 |
Prints a list of all currently declared constants.
102 |
103 |
104 | Constant 105 | DIR_SEP 106 |
107 |
108 |
DIR_SEP in class.krumo.php
109 |
backward compatibility: the DIR_SEP constant isn't used anymore
110 |
111 |
112 | Method 113 | disable 114 |
115 |
116 |
krumo::disable() in class.krumo.php
117 |
Disable Krumo
118 |
119 |
120 | Method 121 | dump 122 |
123 |
124 |
krumo::dump() in class.krumo.php
125 |
Dump information about a variable
126 |
127 |
128 | 129 |
130 |
e
131 | 132 |
133 |
134 |
135 |
136 | Method 137 | enable 138 |
139 |
140 |
krumo::enable() in class.krumo.php
141 |
Enable Krumo
142 |
143 |
144 | Method 145 | env 146 |
147 |
148 |
krumo::env() in class.krumo.php
149 |
Prints a list of all the values from the $_ENV array.
150 |
151 |
152 | Method 153 | extensions 154 |
155 |
156 |
krumo::extensions() in class.krumo.php
157 |
Prints a list of all currently loaded PHP extensions.
158 |
159 |
160 | 161 |
162 |
f
163 | 164 |
165 |
166 |
167 |
168 | Method 169 | functions 170 |
171 |
172 |
krumo::functions() in class.krumo.php
173 |
Prints a list of all currently declared functions.
174 |
175 |
176 | 177 |
178 |
g
179 | 180 |
181 |
182 |
183 |
184 | Method 185 | get 186 |
187 |
188 |
krumo::get() in class.krumo.php
189 |
Prints a list of all the values from the $_GET array.
190 |
191 |
192 | 193 |
194 |
h
195 | 196 |
197 |
198 |
199 |
200 | Method 201 | headers 202 |
203 |
204 |
krumo::headers() in class.krumo.php
205 |
Prints a list of all HTTP request headers.
206 |
207 |
208 | 209 |
210 |
i
211 | 212 |
213 |
214 |
215 |
216 | Method 217 | includes 218 |
219 |
220 |
krumo::includes() in class.krumo.php
221 |
Prints a list of all currently included (or required) files.
222 |
223 |
224 | Method 225 | ini 226 |
227 |
228 |
krumo::ini() in class.krumo.php
229 |
Prints a list of all the values from an INI file.
230 |
231 |
232 | Method 233 | interfaces 234 |
235 |
236 |
krumo::interfaces() in class.krumo.php
237 |
Prints a list of all currently declared interfaces (PHP5 only).
238 |
239 |
240 | 241 |
242 |
k
243 | 244 |
245 |
246 |
247 |
248 | Function 249 | krumo 250 |
251 |
252 |
krumo() in class.krumo.php
253 |
Alias of krumo::dump()
254 |
255 |
256 | Class 257 | krumo 258 |
259 |
260 |
krumo in class.krumo.php
261 |
Krumo API
262 |
263 |
264 | Constant 265 | KRUMO_DIR 266 |
267 |
268 |
KRUMO_DIR in class.krumo.php
269 |
Set the KRUMO_DIR constant up with the absolute path to Krumo files. If it is not defined, include_path will be used. Set KRUMO_DIR only if any other module or application has not already set it up.
270 |
271 |
272 | Constant 273 | KRUMO_TRUNCATE_LENGTH 274 |
275 |
276 |
KRUMO_TRUNCATE_LENGTH in class.krumo.php
277 |
This constant sets the maximum strings of strings that will be shown as they are. Longer strings will be truncated with this length, and their `full form` will be shown in a child node.
278 |
279 |
280 | 281 |
282 |
p
283 | 284 |
285 |
286 |
287 |
288 | Method 289 | path 290 |
291 |
292 |
krumo::path() in class.krumo.php
293 |
Prints a list of the specified directories under your include_path option.
294 |
295 |
296 | Constant 297 | PATH_SEPARATOR 298 |
299 |
300 |
PATH_SEPARATOR in class.krumo.php
301 |
backward compatibility: the PATH_SEPARATOR constant is availble since 4.3.0RC2
302 |
303 |
304 | Method 305 | phpini 306 |
307 |
308 |
krumo::phpini() in class.krumo.php
309 |
Prints a list of the configuration settings read from php.ini
310 |
311 |
312 | Method 313 | post 314 |
315 |
316 |
krumo::post() in class.krumo.php
317 |
Prints a list of all the values from the $_POST array.
318 |
319 |
320 | 321 |
322 |
r
323 | 324 |
325 |
326 |
327 |
328 | Method 329 | request 330 |
331 |
332 |
krumo::request() in class.krumo.php
333 |
Prints a list of all the values from the $_REQUEST array.
334 |
335 |
336 | 337 |
338 |
s
339 | 340 |
341 |
342 |
343 |
344 | Method 345 | server 346 |
347 |
348 |
krumo::server() in class.krumo.php
349 |
Prints a list of all the values from the $_SERVER array.
350 |
351 |
352 | Method 353 | session 354 |
355 |
356 |
krumo::session() in class.krumo.php
357 |
Prints a list of all the values from the $_SESSION array.
358 |
359 |
360 | 361 |
362 |
v
363 | 364 |
365 |
366 |
367 |
368 | Method 369 | version 370 |
371 |
372 |
krumo::version() in class.krumo.php
373 |
Return Krumo version
374 |
375 |
376 | 377 |
378 | b 379 | c 380 | d 381 | e 382 | f 383 | g 384 | h 385 | i 386 | k 387 | p 388 | r 389 | s 390 | v 391 |
392 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/elementindex_Krumo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |

[Krumo] element index

12 | All elements 13 |
14 |
15 | b 16 | c 17 | d 18 | e 19 | f 20 | g 21 | h 22 | i 23 | k 24 | p 25 | r 26 | s 27 | v 28 |
29 | 30 | 31 |
32 |
b
33 | 34 |
35 |
36 |
37 |
38 | Method 39 | backtrace 40 |
41 |
42 |
krumo::backtrace() in class.krumo.php
43 |
Prints a debug backtrace
44 |
45 |
46 | 47 |
48 |
c
49 | 50 |
51 |
52 |
53 |
54 | Page 55 | class.krumo.php 56 |
57 |
58 |
class.krumo.php in class.krumo.php
59 |
60 |
61 | Method 62 | classes 63 |
64 |
65 |
krumo::classes() in class.krumo.php
66 |
Prints a list of all currently declared classes.
67 |
68 |
69 | Method 70 | conf 71 |
72 |
73 |
krumo::conf() in class.krumo.php
74 |
Prints a list of all your configuration settings.
75 |
76 |
77 | Method 78 | cookie 79 |
80 |
81 |
krumo::cookie() in class.krumo.php
82 |
Prints a list of all the values from the $_COOKIE array.
83 |
84 |
85 | 86 |
87 |
d
88 | 89 |
90 |
91 |
92 |
93 | Method 94 | defines 95 |
96 |
97 |
krumo::defines() in class.krumo.php
98 |
Prints a list of all currently declared constants.
99 |
100 |
101 | Constant 102 | DIR_SEP 103 |
104 |
105 |
DIR_SEP in class.krumo.php
106 |
backward compatibility: the DIR_SEP constant isn't used anymore
107 |
108 |
109 | Method 110 | disable 111 |
112 |
113 |
krumo::disable() in class.krumo.php
114 |
Disable Krumo
115 |
116 |
117 | Method 118 | dump 119 |
120 |
121 |
krumo::dump() in class.krumo.php
122 |
Dump information about a variable
123 |
124 |
125 | 126 |
127 |
e
128 | 129 |
130 |
131 |
132 |
133 | Method 134 | enable 135 |
136 |
137 |
krumo::enable() in class.krumo.php
138 |
Enable Krumo
139 |
140 |
141 | Method 142 | env 143 |
144 |
145 |
krumo::env() in class.krumo.php
146 |
Prints a list of all the values from the $_ENV array.
147 |
148 |
149 | Method 150 | extensions 151 |
152 |
153 |
krumo::extensions() in class.krumo.php
154 |
Prints a list of all currently loaded PHP extensions.
155 |
156 |
157 | 158 |
159 |
f
160 | 161 |
162 |
163 |
164 |
165 | Method 166 | functions 167 |
168 |
169 |
krumo::functions() in class.krumo.php
170 |
Prints a list of all currently declared functions.
171 |
172 |
173 | 174 |
175 |
g
176 | 177 |
178 |
179 |
180 |
181 | Method 182 | get 183 |
184 |
185 |
krumo::get() in class.krumo.php
186 |
Prints a list of all the values from the $_GET array.
187 |
188 |
189 | 190 |
191 |
h
192 | 193 |
194 |
195 |
196 |
197 | Method 198 | headers 199 |
200 |
201 |
krumo::headers() in class.krumo.php
202 |
Prints a list of all HTTP request headers.
203 |
204 |
205 | 206 |
207 |
i
208 | 209 |
210 |
211 |
212 |
213 | Method 214 | includes 215 |
216 |
217 |
krumo::includes() in class.krumo.php
218 |
Prints a list of all currently included (or required) files.
219 |
220 |
221 | Method 222 | ini 223 |
224 |
225 |
krumo::ini() in class.krumo.php
226 |
Prints a list of all the values from an INI file.
227 |
228 |
229 | Method 230 | interfaces 231 |
232 |
233 |
krumo::interfaces() in class.krumo.php
234 |
Prints a list of all currently declared interfaces (PHP5 only).
235 |
236 |
237 | 238 |
239 |
k
240 | 241 |
242 |
243 |
244 |
245 | Function 246 | krumo 247 |
248 |
249 |
krumo() in class.krumo.php
250 |
Alias of krumo::dump()
251 |
252 |
253 | Class 254 | krumo 255 |
256 |
257 |
krumo in class.krumo.php
258 |
Krumo API
259 |
260 |
261 | Constant 262 | KRUMO_DIR 263 |
264 |
265 |
KRUMO_DIR in class.krumo.php
266 |
Set the KRUMO_DIR constant up with the absolute path to Krumo files. If it is not defined, include_path will be used. Set KRUMO_DIR only if any other module or application has not already set it up.
267 |
268 |
269 | Constant 270 | KRUMO_TRUNCATE_LENGTH 271 |
272 |
273 |
KRUMO_TRUNCATE_LENGTH in class.krumo.php
274 |
This constant sets the maximum strings of strings that will be shown as they are. Longer strings will be truncated with this length, and their `full form` will be shown in a child node.
275 |
276 |
277 | 278 |
279 |
p
280 | 281 |
282 |
283 |
284 |
285 | Method 286 | path 287 |
288 |
289 |
krumo::path() in class.krumo.php
290 |
Prints a list of the specified directories under your include_path option.
291 |
292 |
293 | Constant 294 | PATH_SEPARATOR 295 |
296 |
297 |
PATH_SEPARATOR in class.krumo.php
298 |
backward compatibility: the PATH_SEPARATOR constant is availble since 4.3.0RC2
299 |
300 |
301 | Method 302 | phpini 303 |
304 |
305 |
krumo::phpini() in class.krumo.php
306 |
Prints a list of the configuration settings read from php.ini
307 |
308 |
309 | Method 310 | post 311 |
312 |
313 |
krumo::post() in class.krumo.php
314 |
Prints a list of all the values from the $_POST array.
315 |
316 |
317 | 318 |
319 |
r
320 | 321 |
322 |
323 |
324 |
325 | Method 326 | request 327 |
328 |
329 |
krumo::request() in class.krumo.php
330 |
Prints a list of all the values from the $_REQUEST array.
331 |
332 |
333 | 334 |
335 |
s
336 | 337 |
338 |
339 |
340 |
341 | Method 342 | server 343 |
344 |
345 |
krumo::server() in class.krumo.php
346 |
Prints a list of all the values from the $_SERVER array.
347 |
348 |
349 | Method 350 | session 351 |
352 |
353 |
krumo::session() in class.krumo.php
354 |
Prints a list of all the values from the $_SESSION array.
355 |
356 |
357 | 358 |
359 |
v
360 | 361 |
362 |
363 |
364 |
365 | Method 366 | version 367 |
368 |
369 |
krumo::version() in class.krumo.php
370 |
Return Krumo version
371 |
372 |
373 | 374 |
375 | b 376 | c 377 | d 378 | e 379 | f 380 | g 381 | h 382 | i 383 | k 384 | p 385 | r 386 | s 387 | v 388 |
389 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/errors.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | phpDocumentor Parser Errors and Warnings 7 | 8 | 9 | 10 | Post-parsing
11 |

12 | Documentation generated on Sun, 02 Dec 2007 09:43:25 +0200 by phpDocumentor 1.4.0a2 13 |

14 | 15 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | Krumo 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | <H2>Frame Alert</H2> 20 | <P>This document is designed to be viewed using the frames feature. 21 | If you see this message, you are using a non-frame-capable web client.</P> 22 | 23 | 24 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/li_Krumo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 86 | 87 | 88 |

Krumo

89 |
90 | 149 |
150 |

151 | Generated by 152 | phpDocumentor 1.4.0a2 153 |

154 | 155 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/banner.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | background-color: #EEEEEE; 4 | margin: 0px; 5 | padding: 0px; 6 | } 7 | 8 | /* Banner (top bar) classes */ 9 | 10 | .banner { } 11 | 12 | .banner-menu 13 | { 14 | clear: both; 15 | padding: .5em; 16 | border-top: 2px solid #AAAAAA; 17 | } 18 | 19 | .banner-title 20 | { 21 | text-align: right; 22 | font-size: 20pt; 23 | font-weight: bold; 24 | margin: .2em; 25 | } 26 | 27 | .package-selector 28 | { 29 | background-color: #DDDDDD; 30 | border: 1px solid #AAAAAA; 31 | color: #000090; 32 | } 33 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractClass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractClass.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractClass_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractClass_logo.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractMethod.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractPrivateClass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractPrivateClass.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractPrivateClass_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractPrivateClass_logo.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractPrivateMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/AbstractPrivateMethod.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Class.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Class.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Class_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Class_logo.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Constant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Constant.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Constructor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Constructor.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Destructor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Destructor.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Function.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Global.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Global.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/I.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/I.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Index.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Interface.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Interface.PNG -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Interface_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Interface_logo.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/L.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/L.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Lminus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Lminus.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Lplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Lplus.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Method.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Method.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Page.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Page_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Page_logo.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateClass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateClass.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateClass_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateClass_logo.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateMethod.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateVariable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/PrivateVariable.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/StaticMethod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/StaticMethod.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/StaticVariable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/StaticVariable.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/T.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/T.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Tminus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Tminus.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Tplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Tplus.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/Variable.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/blank.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/class_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/class_folder.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/empty.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/file.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/folder.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/function_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/function_folder.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/minus.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/next_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/next_button.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/next_button_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/next_button_disabled.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/package.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/package_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/package_folder.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/plus.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/previous_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/previous_button.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/previous_button_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/previous_button_disabled.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/private_class_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/private_class_logo.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/tutorial.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/tutorial.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/tutorial_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/tutorial_folder.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/up_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/up_button.png -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/lib/classTree.js: -------------------------------------------------------------------------------- 1 | /*----------------------------------------\ 2 | | Cross Browser Tree Widget 1.1 | 3 | |-----------------------------------------| 4 | | Created by Emil A. Eklund (eae@eae.net) | 5 | | For WebFX (http://webfx.eae.net/) | 6 | |-----------------------------------------| 7 | | This script is provided as is without | 8 | | any warranty whatsoever. It may be used | 9 | | free of charge for non commerical sites | 10 | | For commerical use contact the author | 11 | | of this script for further details. | 12 | |-----------------------------------------| 13 | | Created 2000-12-11 | Updated 2001-09-06 | 14 | \----------------------------------------*/ 15 | 16 | var webFXTreeConfig = { 17 | rootIcon : 'media/images/empty.png', 18 | openRootIcon : 'media/images/empty.png', 19 | folderIcon : 'media/images/empty.png', 20 | openFolderIcon : 'media/images/empty.png', 21 | fileIcon : 'media/images/empty.png', 22 | iIcon : 'media/images/I.png', 23 | lIcon : 'media/images/L.png', 24 | lMinusIcon : 'media/images/Lminus.png', 25 | lPlusIcon : 'media/images/Lplus.png', 26 | tIcon : 'media/images/T.png', 27 | tMinusIcon : 'media/images/Tminus.png', 28 | tPlusIcon : 'media/images/Tplus.png', 29 | blankIcon : 'media/images/blank.png', 30 | defaultText : 'Tree Item', 31 | defaultAction : 'javascript:void(0);', 32 | defaultTarget : 'right', 33 | defaultBehavior : 'classic' 34 | }; 35 | 36 | var webFXTreeHandler = { 37 | idCounter : 0, 38 | idPrefix : "webfx-tree-object-", 39 | all : {}, 40 | behavior : null, 41 | selected : null, 42 | getId : function() { return this.idPrefix + this.idCounter++; }, 43 | toggle : function (oItem) { this.all[oItem.id.replace('-plus','')].toggle(); }, 44 | select : function (oItem) { this.all[oItem.id.replace('-icon','')].select(); }, 45 | focus : function (oItem) { this.all[oItem.id.replace('-anchor','')].focus(); }, 46 | blur : function (oItem) { this.all[oItem.id.replace('-anchor','')].blur(); }, 47 | keydown : function (oItem) { return this.all[oItem.id].keydown(window.event.keyCode); }, 48 | cookies : new WebFXCookie() 49 | }; 50 | 51 | /* 52 | * WebFXCookie class 53 | */ 54 | 55 | function WebFXCookie() { 56 | if (document.cookie.length) { this.cookies = ' ' + document.cookie; } 57 | } 58 | 59 | WebFXCookie.prototype.setCookie = function (key, value) { 60 | document.cookie = key + "=" + escape(value); 61 | } 62 | 63 | WebFXCookie.prototype.getCookie = function (key) { 64 | if (this.cookies) { 65 | var start = this.cookies.indexOf(' ' + key + '='); 66 | if (start == -1) { return null; } 67 | var end = this.cookies.indexOf(";", start); 68 | if (end == -1) { end = this.cookies.length; } 69 | end -= start; 70 | var cookie = this.cookies.substr(start,end); 71 | return unescape(cookie.substr(cookie.indexOf('=') + 1, cookie.length - cookie.indexOf('=') + 1)); 72 | } 73 | else { return null; } 74 | } 75 | 76 | /* 77 | * WebFXTreeAbstractNode class 78 | */ 79 | 80 | function WebFXTreeAbstractNode(sText, sAction, sTarget) { 81 | this.childNodes = []; 82 | this.id = webFXTreeHandler.getId(); 83 | this.text = sText || webFXTreeConfig.defaultText; 84 | this.action = sAction || webFXTreeConfig.defaultAction; 85 | this.targetWindow = sTarget || webFXTreeConfig.defaultTarget; 86 | this._last = false; 87 | webFXTreeHandler.all[this.id] = this; 88 | } 89 | 90 | WebFXTreeAbstractNode.prototype.add = function (node) { 91 | node.parentNode = this; 92 | this.childNodes[this.childNodes.length] = node; 93 | var root = this; 94 | if (this.childNodes.length >=2) { 95 | this.childNodes[this.childNodes.length -2]._last = false; 96 | } 97 | while (root.parentNode) { root = root.parentNode; } 98 | if (root.rendered) { 99 | if (this.childNodes.length >= 2) { 100 | document.getElementById(this.childNodes[this.childNodes.length -2].id + '-plus').src = ((this.childNodes[this.childNodes.length -2].folder)?webFXTreeConfig.tMinusIcon:webFXTreeConfig.tIcon); 101 | if (this.childNodes[this.childNodes.length -2].folder) { 102 | this.childNodes[this.childNodes.length -2].plusIcon = webFXTreeConfig.tPlusIcon; 103 | this.childNodes[this.childNodes.length -2].minusIcon = webFXTreeConfig.tMinusIcon; 104 | } 105 | this.childNodes[this.childNodes.length -2]._last = false; 106 | } 107 | this._last = true; 108 | var foo = this; 109 | while (foo.parentNode) { 110 | for (var i = 0; i < foo.parentNode.childNodes.length; i++) { 111 | if (foo.id == foo.parentNode.childNodes[i].id) { break; } 112 | } 113 | if (++i == foo.parentNode.childNodes.length) { foo.parentNode._last = true; } 114 | else { foo.parentNode._last = false; } 115 | foo = foo.parentNode; 116 | } 117 | document.getElementById(this.id + '-cont').insertAdjacentHTML("beforeEnd", node.toString()); 118 | if ((!this.folder) && (!this.openIcon)) { 119 | this.icon = webFXTreeConfig.folderIcon; 120 | this.openIcon = webFXTreeConfig.openFolderIcon; 121 | } 122 | this.folder = true; 123 | this.indent(); 124 | this.expand(); 125 | } 126 | return node; 127 | } 128 | 129 | WebFXTreeAbstractNode.prototype.toggle = function() { 130 | if (this.folder) { 131 | if (this.open) { this.collapse(); } 132 | else { this.expand(); } 133 | } 134 | } 135 | 136 | WebFXTreeAbstractNode.prototype.select = function() { 137 | document.getElementById(this.id + '-anchor').focus(); 138 | } 139 | 140 | WebFXTreeAbstractNode.prototype.focus = function() { 141 | webFXTreeHandler.selected = this; 142 | if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.openIcon; } 143 | document.getElementById(this.id + '-anchor').style.backgroundColor = 'highlight'; 144 | document.getElementById(this.id + '-anchor').style.color = 'highlighttext'; 145 | document.getElementById(this.id + '-anchor').focus(); 146 | } 147 | 148 | WebFXTreeAbstractNode.prototype.blur = function() { 149 | if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.icon; } 150 | document.getElementById(this.id + '-anchor').style.backgroundColor = 'transparent'; 151 | document.getElementById(this.id + '-anchor').style.color = 'menutext'; 152 | } 153 | 154 | WebFXTreeAbstractNode.prototype.doExpand = function() { 155 | if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.openIcon; } 156 | if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'block'; } 157 | this.open = true; 158 | webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '1'); 159 | } 160 | 161 | WebFXTreeAbstractNode.prototype.doCollapse = function() { 162 | if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.icon; } 163 | if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'none'; } 164 | this.open = false; 165 | webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '0'); 166 | } 167 | 168 | WebFXTreeAbstractNode.prototype.expandAll = function() { 169 | this.expandChildren(); 170 | if ((this.folder) && (!this.open)) { this.expand(); } 171 | } 172 | 173 | WebFXTreeAbstractNode.prototype.expandChildren = function() { 174 | for (var i = 0; i < this.childNodes.length; i++) { 175 | this.childNodes[i].expandAll(); 176 | } } 177 | 178 | WebFXTreeAbstractNode.prototype.collapseAll = function() { 179 | if ((this.folder) && (this.open)) { this.collapse(); } 180 | this.collapseChildren(); 181 | } 182 | 183 | WebFXTreeAbstractNode.prototype.collapseChildren = function() { 184 | for (var i = 0; i < this.childNodes.length; i++) { 185 | this.childNodes[i].collapseAll(); 186 | } } 187 | 188 | WebFXTreeAbstractNode.prototype.indent = function(lvl, del, last, level) { 189 | /* 190 | * Since we only want to modify items one level below ourself, 191 | * and since the rightmost indentation position is occupied by 192 | * the plus icon we set this to -2 193 | */ 194 | if (lvl == null) { lvl = -2; } 195 | var state = 0; 196 | for (var i = this.childNodes.length - 1; i >= 0 ; i--) { 197 | state = this.childNodes[i].indent(lvl + 1, del, last, level); 198 | if (state) { return; } 199 | } 200 | if (del) { 201 | if (level >= this._level) { 202 | if (this.folder) { 203 | document.getElementById(this.id + '-plus').src = (this.open)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.lPlusIcon; 204 | this.plusIcon = webFXTreeConfig.lPlusIcon; 205 | this.minusIcon = webFXTreeConfig.lMinusIcon; 206 | } 207 | else { document.getElementById(this.id + '-plus').src = webFXTreeConfig.lIcon; } 208 | return 1; 209 | } 210 | } 211 | var foo = document.getElementById(this.id + '-indent-' + lvl); 212 | if (foo) { 213 | if ((del) && (last)) { foo._last = true; } 214 | if (foo._last) { foo.src = webFXTreeConfig.blankIcon; } 215 | else { foo.src = webFXTreeConfig.iIcon; } 216 | } 217 | return 0; 218 | } 219 | 220 | /* 221 | * WebFXTree class 222 | */ 223 | 224 | function WebFXTree(sText, sAction, sBehavior, sIcon, sOpenIcon) { 225 | this.base = WebFXTreeAbstractNode; 226 | this.base(sText, sAction); 227 | this.icon = sIcon || webFXTreeConfig.rootIcon; 228 | this.openIcon = sOpenIcon || webFXTreeConfig.openRootIcon; 229 | /* Defaults to open */ 230 | this.open = (webFXTreeHandler.cookies.getCookie(this.id.substr(18,this.id.length - 18)) == '0')?false:true; 231 | this.folder = true; 232 | this.rendered = false; 233 | if (!webFXTreeHandler.behavior) { webFXTreeHandler.behavior = sBehavior || webFXTreeConfig.defaultBehavior; } 234 | this.targetWindow = 'right'; 235 | } 236 | 237 | WebFXTree.prototype = new WebFXTreeAbstractNode; 238 | 239 | WebFXTree.prototype.setBehavior = function (sBehavior) { 240 | webFXTreeHandler.behavior = sBehavior; 241 | }; 242 | 243 | WebFXTree.prototype.getBehavior = function (sBehavior) { 244 | return webFXTreeHandler.behavior; 245 | }; 246 | 247 | WebFXTree.prototype.getSelected = function() { 248 | if (webFXTreeHandler.selected) { return webFXTreeHandler.selected; } 249 | else { return null; } 250 | } 251 | 252 | WebFXTree.prototype.remove = function() { } 253 | 254 | WebFXTree.prototype.expand = function() { 255 | this.doExpand(); 256 | } 257 | 258 | WebFXTree.prototype.collapse = function() { 259 | this.focus(); 260 | this.doCollapse(); 261 | } 262 | 263 | WebFXTree.prototype.getFirst = function() { 264 | return null; 265 | } 266 | 267 | WebFXTree.prototype.getLast = function() { 268 | return null; 269 | } 270 | 271 | WebFXTree.prototype.getNextSibling = function() { 272 | return null; 273 | } 274 | 275 | WebFXTree.prototype.getPreviousSibling = function() { 276 | return null; 277 | } 278 | 279 | WebFXTree.prototype.keydown = function(key) { 280 | if (key == 39) { this.expand(); return false; } 281 | if (key == 37) { this.collapse(); return false; } 282 | if ((key == 40) && (this.open)) { this.childNodes[0].select(); return false; } 283 | return true; 284 | } 285 | 286 | WebFXTree.prototype.toString = function() { 287 | var str = "
"; 288 | str += "" + this.text + "
"; 289 | str += "
"; 290 | for (var i = 0; i < this.childNodes.length; i++) { 291 | str += this.childNodes[i].toString(i, this.childNodes.length); 292 | } 293 | str += "
"; 294 | this.rendered = true; 295 | return str; 296 | }; 297 | 298 | /* 299 | * WebFXTreeItem class 300 | */ 301 | 302 | function WebFXTreeItem(sText, sAction, eParent, sIcon, sOpenIcon) { 303 | this.base = WebFXTreeAbstractNode; 304 | this.base(sText, sAction); 305 | /* Defaults to close */ 306 | this.open = (webFXTreeHandler.cookies.getCookie(this.id.substr(18,this.id.length - 18)) == '1')?true:false; 307 | if (eParent) { eParent.add(this); } 308 | if (sIcon) { this.icon = sIcon; } 309 | if (sOpenIcon) { this.openIcon = sOpenIcon; } 310 | } 311 | 312 | WebFXTreeItem.prototype = new WebFXTreeAbstractNode; 313 | 314 | WebFXTreeItem.prototype.remove = function() { 315 | var parentNode = this.parentNode; 316 | var prevSibling = this.getPreviousSibling(true); 317 | var nextSibling = this.getNextSibling(true); 318 | var folder = this.parentNode.folder; 319 | var last = ((nextSibling) && (nextSibling.parentNode) && (nextSibling.parentNode.id == parentNode.id))?false:true; 320 | this.getPreviousSibling().focus(); 321 | this._remove(); 322 | if (parentNode.childNodes.length == 0) { 323 | parentNode.folder = false; 324 | parentNode.open = false; 325 | } 326 | if (last) { 327 | if (parentNode.id == prevSibling.id) { 328 | document.getElementById(parentNode.id + '-icon').src = webFXTreeConfig.fileIcon; 329 | } 330 | else { } 331 | } 332 | if ((!prevSibling.parentNode) || (prevSibling.parentNode != parentNode)) { 333 | parentNode.indent(null, true, last, this._level); 334 | } 335 | if (document.getElementById(prevSibling.id + '-plus')) { 336 | if (nextSibling) { 337 | if ((parentNode == prevSibling) && (parentNode.getNextSibling)) { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.tIcon; } 338 | else if (nextSibling.parentNode != prevSibling) { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.lIcon; } 339 | } 340 | else { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.lIcon; } 341 | } 342 | } 343 | 344 | WebFXTreeItem.prototype._remove = function() { 345 | for (var i = this.childNodes.length - 1; i >= 0; i--) { 346 | this.childNodes[i]._remove(); 347 | } 348 | for (var i = 0; i < this.parentNode.childNodes.length; i++) { 349 | if (this.id == this.parentNode.childNodes[i].id) { 350 | for (var j = i; j < this.parentNode.childNodes.length; j++) { 351 | this.parentNode.childNodes[i] = this.parentNode.childNodes[i+1] 352 | } 353 | this.parentNode.childNodes.length = this.parentNode.childNodes.length - 1; 354 | if (i + 1 == this.parentNode.childNodes.length) { this.parentNode._last = true; } 355 | } 356 | } 357 | webFXTreeHandler.all[this.id] = null; 358 | if (document.getElementById(this.id)) { 359 | document.getElementById(this.id).innerHTML = ""; 360 | document.getElementById(this.id).removeNode(); 361 | } 362 | } 363 | 364 | WebFXTreeItem.prototype.expand = function() { 365 | this.doExpand(); 366 | document.getElementById(this.id + '-plus').src = this.minusIcon; 367 | } 368 | 369 | WebFXTreeItem.prototype.collapse = function() { 370 | this.focus(); 371 | this.doCollapse(); 372 | document.getElementById(this.id + '-plus').src = this.plusIcon; 373 | } 374 | 375 | WebFXTreeItem.prototype.getFirst = function() { 376 | return this.childNodes[0]; 377 | } 378 | 379 | WebFXTreeItem.prototype.getLast = function() { 380 | if (this.childNodes[this.childNodes.length - 1].open) { return this.childNodes[this.childNodes.length - 1].getLast(); } 381 | else { return this.childNodes[this.childNodes.length - 1]; } 382 | } 383 | 384 | WebFXTreeItem.prototype.getNextSibling = function() { 385 | for (var i = 0; i < this.parentNode.childNodes.length; i++) { 386 | if (this == this.parentNode.childNodes[i]) { break; } 387 | } 388 | if (++i == this.parentNode.childNodes.length) { return this.parentNode.getNextSibling(); } 389 | else { return this.parentNode.childNodes[i]; } 390 | } 391 | 392 | WebFXTreeItem.prototype.getPreviousSibling = function(b) { 393 | for (var i = 0; i < this.parentNode.childNodes.length; i++) { 394 | if (this == this.parentNode.childNodes[i]) { break; } 395 | } 396 | if (i == 0) { return this.parentNode; } 397 | else { 398 | if ((this.parentNode.childNodes[--i].open) || (b && this.parentNode.childNodes[i].folder)) { return this.parentNode.childNodes[i].getLast(); } 399 | else { return this.parentNode.childNodes[i]; } 400 | } } 401 | 402 | WebFXTreeItem.prototype.keydown = function(key) { 403 | if ((key == 39) && (this.folder)) { 404 | if (!this.open) { this.expand(); return false; } 405 | else { this.getFirst().select(); return false; } 406 | } 407 | else if (key == 37) { 408 | if (this.open) { this.collapse(); return false; } 409 | else { this.parentNode.select(); return false; } 410 | } 411 | else if (key == 40) { 412 | if (this.open) { this.getFirst().select(); return false; } 413 | else { 414 | var sib = this.getNextSibling(); 415 | if (sib) { sib.select(); return false; } 416 | } } 417 | else if (key == 38) { this.getPreviousSibling().select(); return false; } 418 | return true; 419 | } 420 | 421 | WebFXTreeItem.prototype.toString = function (nItem, nItemCount) { 422 | var foo = this.parentNode; 423 | var indent = ''; 424 | if (nItem + 1 == nItemCount) { this.parentNode._last = true; } 425 | var i = 0; 426 | while (foo.parentNode) { 427 | foo = foo.parentNode; 428 | indent = "" + indent; 429 | i++; 430 | } 431 | this._level = i; 432 | if (this.childNodes.length) { this.folder = 1; } 433 | else { this.open = false; } 434 | if ((this.folder) || (webFXTreeHandler.behavior != 'classic')) { 435 | if (!this.icon) { this.icon = webFXTreeConfig.folderIcon; } 436 | if (!this.openIcon) { this.openIcon = webFXTreeConfig.openFolderIcon; } 437 | } 438 | else if (!this.icon) { this.icon = webFXTreeConfig.fileIcon; } 439 | var label = this.text; 440 | label = label.replace('<', '<'); 441 | label = label.replace('>', '>'); 442 | var str = "
"; 443 | str += indent; 444 | str += "" 445 | str += "" + label + "
"; 446 | str += "
"; 447 | for (var i = 0; i < this.childNodes.length; i++) { 448 | str += this.childNodes[i].toString(i,this.childNodes.length); 449 | } 450 | str += "
"; 451 | this.plusIcon = ((this.parentNode._last)?webFXTreeConfig.lPlusIcon:webFXTreeConfig.tPlusIcon); 452 | this.minusIcon = ((this.parentNode._last)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.tMinusIcon); 453 | return str; 454 | } -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/media/stylesheet.css: -------------------------------------------------------------------------------- 1 | a { color: #000090; text-decoration: none; } 2 | a:hover, a:active, a:focus { color: highlighttext; background-color: highlight; text-decoration: none; } 3 | 4 | body { background : #FFFFFF; } 5 | body, table { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; } 6 | 7 | a img { border: 0px; } 8 | 9 | /* Page layout/boxes */ 10 | 11 | .info-box { } 12 | .info-box-title { margin: 1em 0em 0em 0em; font-weight: normal; font-size: 14pt; color: #999999; border-bottom: 2px solid #999999; } 13 | .info-box-body { border: 1px solid #999999; padding: .5em; } 14 | .nav-bar { font-size: 8pt; white-space: nowrap; text-align: right; padding: .2em; margin: 0em 0em 1em 0em; } 15 | 16 | .oddrow { background-color: #F8F8F8; border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} 17 | .evenrow { border: 1px solid #AAAAAA; padding: .5em; margin-bottom: 1em} 18 | 19 | .page-body { max-width: 800px; margin: auto; } 20 | .tree { } 21 | 22 | /* Index formatting classes */ 23 | 24 | .index-item-body { margin-top: .5em; margin-bottom: .5em} 25 | .index-item-description { margin-top: .25em } 26 | .index-item-details { font-weight: normal; font-style: italic; font-size: 8pt } 27 | .index-letter-section { background-color: #EEEEEE; border: 1px dotted #999999; padding: .5em; margin-bottom: 1em} 28 | .index-letter-title { font-size: 12pt; font-weight: bold } 29 | .index-letter-menu { text-align: center; margin: 1em } 30 | .index-letter { font-size: 12pt } 31 | 32 | /* Docbook classes */ 33 | 34 | .description {} 35 | .short-description { font-weight: bold; color: #666666; } 36 | .tags { padding-left: 0em; margin-left: 3em; color: #666666; list-style-type: square; } 37 | .parameters { padding-left: 0em; margin-left: 3em; color: #014fbe; list-style-type: square; } 38 | .redefinitions { font-size: 8pt; padding-left: 0em; margin-left: 2em; } 39 | .package { font-weight: bold; } 40 | .package-title { font-weight: bold; font-size: 14pt; border-bottom: 1px solid black } 41 | .sub-package { font-weight: bold; } 42 | .tutorial { border-width: thin; border-color: #0066ff; } 43 | .tutorial-nav-box { width: 100%; border: 1px solid #999999; background-color: #F8F8F8; } 44 | 45 | /* Generic formatting */ 46 | 47 | .field { font-weight: bold; } 48 | .detail { font-size: 8pt; } 49 | .notes { font-style: italic; font-size: 8pt; } 50 | .separator { background-color: #999999; height: 2px; } 51 | .warning { color: #FF6600; } 52 | .disabled { font-style: italic; color: #999999; } 53 | 54 | /* Code elements */ 55 | 56 | .line-number { } 57 | 58 | .class-table { width: 100%; } 59 | .class-table-header { border-bottom: 1px dotted #666666; text-align: left} 60 | .class-name { color: #0000AA; font-weight: bold; } 61 | 62 | .method-summary { color: #009000; padding-left: 1em; font-size: 8pt; } 63 | .method-header { } 64 | .method-definition { margin-bottom: .2em } 65 | .method-title { color: #009000; font-weight: bold; } 66 | .method-name { font-weight: bold; } 67 | .method-signature { font-size: 85%; color: #666666; margin: .5em 0em } 68 | .method-result { font-style: italic; } 69 | 70 | .var-summary { padding-left: 1em; font-size: 8pt; } 71 | .var-header { } 72 | .var-title { color: #014fbe; margin-bottom: .3em } 73 | .var-type { font-style: italic; } 74 | .var-name { font-weight: bold; } 75 | .var-default {} 76 | .var-description { font-weight: normal; color: #000000; } 77 | 78 | .include-title { color: #014fbe;} 79 | .include-type { font-style: italic; } 80 | .include-name { font-weight: bold; } 81 | 82 | .const-title { color: #FF6600; } 83 | .const-name { font-weight: bold; } 84 | 85 | /* Syntax highlighting */ 86 | 87 | .src-code { font-family: 'Courier New', Courier, monospace; font-weight: normal; } 88 | .src-line { font-family: 'Courier New', Courier, monospace; font-weight: normal; } 89 | 90 | .src-code a:link { padding: 1px; text-decoration: underline; color: #0000DD; } 91 | .src-code a:visited { text-decoration: underline; color: #0000DD; } 92 | .src-code a:active { background-color: #FFFF66; color: #008000; } 93 | .src-code a:hover { background-color: #FFFF66; text-decoration: overline underline; color: #008000; } 94 | 95 | .src-comm { color: #666666; } 96 | .src-id { color: #FF6600; font-style: italic; } 97 | .src-inc { color: #0000AA; font-weight: bold; } 98 | .src-key { color: #0000AA; font-weight: bold; } 99 | .src-num { color: #CC0000; } 100 | .src-str { color: #CC0000; } 101 | .src-sym { } 102 | .src-var { } 103 | 104 | .src-php { font-weight: bold; } 105 | 106 | .src-doc { color: #666666; } 107 | .src-doc-close-template { color: #666666 } 108 | .src-doc-coretag { color: #008000; } 109 | .src-doc-inlinetag {} 110 | .src-doc-internal {} 111 | .src-doc-tag { color: #0080CC; } 112 | .src-doc-template { color: #666666 } 113 | .src-doc-type { font-style: italic; color: #444444 } 114 | .src-doc-var { color: #444444 } 115 | 116 | .tute-tag { color: #009999 } 117 | .tute-attribute-name { color: #0000FF } 118 | .tute-attribute-value { color: #0099FF } 119 | .tute-entity { font-weight: bold; } 120 | .tute-comment { font-style: italic } 121 | .tute-inline-tag { color: #636311; font-weight: bold } 122 | 123 | /* tutorial */ 124 | 125 | .authors { } 126 | .author { font-style: italic; font-weight: bold } 127 | .author-blurb { margin: .5em 0em .5em 2em; font-size: 85%; font-weight: normal; font-style: normal } 128 | .example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; } 129 | .listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; } 130 | .release-info { font-size: 85%; font-style: italic; margin: 1em 0em } 131 | .ref-title-box { } 132 | .ref-title { } 133 | .ref-purpose { font-style: italic; color: #666666 } 134 | .ref-synopsis { } 135 | .title { font-weight: bold; border-bottom: 1px solid #999999; color: #999999; } 136 | .cmd-synopsis { margin: 1em 0em } 137 | .cmd-title { font-weight: bold } 138 | .toc { margin-left: 2em; padding-left: 0em } 139 | 140 | /*------------------------------------------------------------------------------ 141 | webfx-tree 142 | ------------------------------------------------------------------------------*/ 143 | 144 | .webfx-tree-container { 145 | margin: 0px; 146 | padding: 0px; 147 | white-space: nowrap; 148 | font: icon; 149 | } 150 | 151 | .webfx-tree-item { 152 | padding: 0px; 153 | margin: 0px; 154 | color: black; 155 | white-space: nowrap; 156 | font: icon; 157 | } 158 | 159 | .webfx-tree-item a { 160 | margin-left: 3px; 161 | padding: 1px 2px 1px 2px; 162 | color: black; 163 | text-decoration: none; 164 | } 165 | 166 | .webfx-tree-item a:hover, .webfx-tree-item a:active { 167 | color: highlighttext; 168 | background: highlight; 169 | text-decoration: none 170 | } 171 | 172 | .webfx-tree-item img { 173 | vertical-align: middle; 174 | border: 0px; 175 | } 176 | 177 | .webfx-tree-icon { 178 | width: 16px; 179 | height: 16px; 180 | } 181 | 182 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/packages.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 39 | 40 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/ric_INSTALL.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

INSTALL

11 |
12 | ------------------------------------------------------------------------------
13 | 
14 |                      SETUP: How to install Krumo ?
15 | 
16 | ------------------------------------------------------------------------------
17 | 
18 | In order to use Krumo you have to put it on your (development) server, and 
19 | include it in your script. You can put it somewhere in the INCLUDE_PATH, or 
20 | specify the full path to the "class.krumo.php" file.
21 | 
22 | You have to modify the "krumo.ini" file too. It is the configuration file for 
23 | Krumo. The first option is choosing a skin:
24 | 
25 |  [skin]
26 |  selected = "orange"
27 | 
28 | The value for this setting has to be the name of one of the sub-folders from the 
29 | "Krumo/skins/" folder. If the value provided for the skin results in not finding 
30 | the skin, the `default` skin will be used instead.
31 | 
32 | The second option is used to set the correct web path to the folder where Krumo 
33 | is installed. This is used in order to make the images from Krumo's CSS skins 
34 | web-accessible.
35 | 
36 |  [css]
37 |  url = "http://www.example.com/Krumo/"
38 | 
39 | So far those two are the only configuration options.
40 | 
41 | All the CSS files ("skin.css") from the "Krumo/skins/" sub-folders must have the 
42 | proper permissions in order to be readable from Krumo. Same applies for 
43 | "krumo.ini" and "krumo.js" files.
44 | 
45 |

46 | Documentation generated on Sun, 02 Dec 2007 09:43:22 +0200 by phpDocumentor 1.4.0a2 47 |

48 | 49 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/ric_README.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

README

11 |
 12 | =============================================================================
 13 | 
 14 |                                Krumo
 15 |                             version 0.2.1a
 16 | 
 17 | =============================================================================
 18 | 
 19 | You probably got this package from...
 20 | http://www.sourceforge.net/projects/krumo/
 21 | 
 22 | If there is no licence agreement with this package please download
 23 | a version from the location above. You must read and accept that
 24 | licence to use this software. The file is titled simply LICENSE.
 25 | 
 26 | OVERVIEW
 27 | ------------------------------------------------------------------------------
 28 | To put it simply, Krumo is a replacement for print_r() and var_dump(). By 
 29 | definition Krumo is a debugging tool (for PHP5), which displays structured 
 30 | information about any PHP variable.
 31 | 
 32 | A lot of developers use print_r() and var_dump() in the means of debugging 
 33 | tools. Although they were intended to present human readble information about a 
 34 | variable, we can all agree that in general they are not. Krumo is an 
 35 | alternative: it does the same job, but it presents the information beautified 
 36 | using CSS and DHTML. 
 37 | 
 38 | EXAMPLES
 39 | ------------------------------------------------------------------------------
 40 | Here's a basic example, which will return a report on the array variable passed 
 41 | as argument to it:
 42 | 
 43 |  krumo(array('a1'=> 'A1', 3, 'red'));
 44 | 
 45 | You can dump simultaneously more then one variable - here's another example:
 46 | 
 47 |  krumo($_SERVER, $_REQUEST);
 48 | 
 49 | You probably saw from the examples above that some of the nodes are expandable, 
 50 | so if you want to inspect the nested information, click on them and they will 
 51 | expand; if you do not need that information shown simply click again on it to 
 52 | collapse it. Here's an example to test this:
 53 | 
 54 |  $x1->x2->x3->x4->x5->x6->x7->x8->x9 = 'X10';
 55 |  krumo($x1);
 56 | 
 57 | The krumo() is the only standalone function from the package, and this is 
 58 | because basic dumps about variables (like print_r() or var_dump()) are the most 
 59 | common tasks such functionality is used for. The rest of the functionality can 
 60 | be called using static calls to the Krumo class. Here are several more examples:
 61 | 
 62 |  // print a debug backgrace
 63 |  krumo::backtrace();
 64 | 
 65 |  // print all the included(or required) files
 66 |  krumo::includes();
 67 |  
 68 |  // print all the included functions
 69 |  krumo::functions();
 70 |  
 71 |  // print all the declared classes
 72 |  krumo::classes();
 73 |  
 74 |  // print all the defined constants
 75 |  krumo::defines();
 76 | 
 77 |  ... and so on, etc.
 78 | 
 79 | A full PHPDocumenter API documentation exists both in this package and at the 
 80 | project's website.
 81 | 
 82 | INSTALL
 83 | ------------------------------------------------------------------------------
 84 | Read the INSTALL file.
 85 | 
 86 | DOCUMENTATION
 87 | ------------------------------------------------------------------------------
 88 | As I said, a full PHPDocumenter API documentation can be found both in this
 89 | package and at the project's website.
 90 | 
 91 | SKINS
 92 | ------------------------------------------------------------------------------
 93 | There are several skins pre-installed with this package, but if you wish you can 
 94 | create skins of your own. The skins are simply CSS files that are prepended to 
 95 | the result that Krumo prints. If you want to use images in your CSS (for 
 96 | background, list-style, etc), you have to put "%URL%" in front of the image URL 
 97 | in order hook it up to the skin folder and make the image web-accessible.
 98 | 
 99 | Here's an example:
100 | 
101 |  ul.krumo-first {background: url(%url%bg.gif);}
102 | 
103 | TODO
104 | ------------------------------------------------------------------------------
105 | You can find the list of stuff that is going to be added to this project in the 
106 | TODO file from this very package.
107 | 
108 | CONTRIBUTION
109 | -----------------------------------------------------------------------------
110 | If you download and use and possibly even extend this tool, please let us know. 
111 | Any feedback, even bad, is always welcome and your suggestions are going to be 
112 | considered for our next release. Please use our SourceForge page for that:
113 |  
114 |  http://www.sourceforge.net/projects/krumo/
115 | 
116 | 
117 |

118 | Documentation generated on Sun, 02 Dec 2007 09:43:23 +0200 by phpDocumentor 1.4.0a2 119 |

120 | 121 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/ric_TODO.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

TODO

11 |
12 | ******************************************************************************
13 | 
14 |                                  Krumo: TODO
15 | 
16 | ******************************************************************************
17 | 
18 | BUGS
19 | ----------------
20 |  - watch the SourceForge.net Bug Tracker
21 | 
22 | Features: PHP
23 | ----------------
24 |  - Try to detect anonymous (lambda) functions
25 |  - Try to detect whether an array is indexed or associated
26 |  - Add var_export support for arrays and objects
27 |  - Add JSON support for arrays and objects
28 |  
29 | Features: GUI
30 | ----------------
31 |  - Nicer and friendlier skin(s)
32 |  - Add top-level links for collapsing and expanding the whole tree
33 |  - Add object & array -level links for collapsing and expanding all the
34 |  	nested nodes
35 |  - Print all parent classes for the rendered objects
36 | 
37 |

38 | Documentation generated on Sun, 02 Dec 2007 09:43:23 +0200 by phpDocumentor 1.4.0a2 39 |

40 | 41 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/docs/ric_VERSION.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

VERSION

11 |
12 | 0.2.1a
13 | 
14 |

15 | Documentation generated on Sun, 02 Dec 2007 09:43:23 +0200 by phpDocumentor 1.4.0a2 16 |

17 | 18 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/krumo.ini: -------------------------------------------------------------------------------- 1 | ; 2 | ; KRUMO CONFIGURATION FILE 3 | ; 4 | 5 | [skin] 6 | selected = "orange" 7 | ; 8 | ; Change the above value to set the CSS skin used to render 9 | ; Krumo layout. If the skin is not found, then the "default" one 10 | ; is going to be used. 11 | ; 12 | 13 | [css] 14 | url = "file:///server/.conf/php/krumo/" 15 | ; 16 | ; This value is used to set the URL path to 17 | ; where the Krumo folder is. This is required in 18 | ; order to have web access to Krumo's CSS and 19 | ; image files. 20 | ; -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/krumo.js: -------------------------------------------------------------------------------- 1 | /** 2 | * JavaScript routines for Krumo 3 | * 4 | * @version $Id: krumo.js 22 2007-12-02 07:38:18Z Mrasnika $ 5 | * @link http://sourceforge.net/projects/krumo 6 | */ 7 | 8 | ///////////////////////////////////////////////////////////////////////////// 9 | 10 | /** 11 | * Krumo JS Class 12 | */ 13 | function krumo() { 14 | } 15 | 16 | // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 17 | 18 | /** 19 | * Add a CSS class to an HTML element 20 | * 21 | * @param HtmlElement el 22 | * @param string className 23 | * @return void 24 | */ 25 | krumo.reclass = function(el, className) { 26 | if (el.className.indexOf(className) < 0) { 27 | el.className += (' ' + className); 28 | } 29 | } 30 | 31 | // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 32 | 33 | /** 34 | * Remove a CSS class to an HTML element 35 | * 36 | * @param HtmlElement el 37 | * @param string className 38 | * @return void 39 | */ 40 | krumo.unclass = function(el, className) { 41 | if (el.className.indexOf(className) > -1) { 42 | el.className = el.className.replace(className, ''); 43 | } 44 | } 45 | 46 | // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 47 | 48 | /** 49 | * Toggle the nodes connected to an HTML element 50 | * 51 | * @param HtmlElement el 52 | * @return void 53 | */ 54 | krumo.toggle = function(el) { 55 | var ul = el.parentNode.getElementsByTagName('ul'); 56 | for (var i=0; i 6 | */ 7 | 8 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 9 | 10 | ul.krumo-node { 11 | margin: 0px; 12 | padding: 0px; 13 | } 14 | ul.krumo-node ul { 15 | margin-left: 20px; 16 | } 17 | * html ul.krumo-node ul { 18 | margin-left: 24px; 19 | } 20 | div.krumo-root { 21 | border: solid 1px black; 22 | margin: 1em 0em; 23 | } 24 | ul.krumo-first { 25 | font: normal 12px arial; 26 | border: solid 2px white; 27 | border-top-width:1px; 28 | background: url(%url%bg.gif); 29 | } 30 | 31 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 32 | 33 | li.krumo-child { 34 | display:block; 35 | list-style: none; 36 | padding: 0px; 37 | margin: 0px; 38 | overflow:hidden; 39 | } 40 | div.krumo-element { 41 | cursor:default; 42 | 43 | line-height: 24px; 44 | display:block; 45 | 46 | clear:both; 47 | white-space:nowrap; 48 | 49 | border-top: solid 1px white; 50 | background: #BFDFFF; 51 | padding-left: 10px; 52 | } 53 | * html div.krumo-element { 54 | padding-bottom: 3px; 55 | } 56 | a.krumo-name { 57 | color:navy; 58 | font: bold 13px Arial; 59 | } 60 | a.krumo-name big { 61 | font: bold 20pt Georgia; 62 | line-height: 14px; 63 | position:relative; 64 | top:2px; 65 | left:-2px; 66 | } 67 | * html a.krumo-name big { 68 | font: bold 19pt Georgia; 69 | top: 5px; 70 | left: 0px; 71 | line-height: 9px; 72 | height: 12px; 73 | padding: 0px; 74 | margin: 0px; 75 | } 76 | div.krumo-expand { 77 | background: #AAD5FF; 78 | cursor:pointer; 79 | } 80 | div.krumo-hover { 81 | background: #FFBE7D; 82 | } 83 | 84 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 85 | 86 | div.krumo-preview { 87 | font: normal 13px courier new; 88 | padding: 5px 5px 14px 5px; 89 | background: white; 90 | border-top: 0px; 91 | overflow:auto; 92 | } 93 | * html div.krumo-preview { 94 | padding-top: 2px; 95 | } 96 | 97 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 98 | 99 | li.krumo-footnote { 100 | background:white; 101 | padding: 2px 5px; 102 | list-style:none; 103 | border-top: solid 1px #bebebe; 104 | margin-top:2px; 105 | cursor:default; 106 | } 107 | * html li.krumo-footnote { 108 | line-height: 13px; 109 | } 110 | div.krumo-version { 111 | float:right; 112 | } 113 | li.krumo-footnote h6 { 114 | font: bold 11px verdana; 115 | margin: 0px; 116 | padding: 0px; 117 | color:navy; 118 | display:inline; 119 | } 120 | * html li.krumo-footnote h6 { 121 | margin-right: 3px; 122 | } 123 | li.krumo-footnote a { 124 | font: bold 10px arial; 125 | color: #434343; 126 | text-decoration:none; 127 | } 128 | li.krumo-footnote a:hover { 129 | color:black; 130 | } 131 | 132 | li.krumo-footnote span.krumo-call { 133 | font:normal 11px verdana; 134 | position: relative; 135 | top: 1px; 136 | } 137 | li.krumo-footnote span.krumo-call code { 138 | font-weight:bold; 139 | } 140 | 141 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 142 | 143 | div.krumo-title { 144 | font: normal 11px verdana ; 145 | position:relative; 146 | top:9px; 147 | cursor:default; 148 | line-height:2px; 149 | } 150 | 151 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 152 | 153 | strong.krumo-array-length, 154 | strong.krumo-string-length { 155 | font-weight: normal; 156 | } 157 | 158 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 159 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/default/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/skins/default/bg.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/default/skin.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Krumo Default Skin 3 | * 4 | * @version $Id: skin.css 6 2007-06-16 06:37:27Z mrasnika $ 5 | * @author Kaloyan K. Tsvetkov 6 | */ 7 | 8 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 9 | 10 | ul.krumo-node { 11 | margin: 0px; 12 | padding: 0px; 13 | } 14 | ul.krumo-node ul { 15 | margin-left: 20px; 16 | } 17 | * html ul.krumo-node ul { 18 | margin-left: 24px; 19 | } 20 | div.krumo-root { 21 | border: solid 1px black; 22 | margin: 1em 0em; 23 | } 24 | ul.krumo-first { 25 | font: normal 12px arial; 26 | border: solid 2px white; 27 | border-top-width:1px; 28 | background: url(%url%bg.gif); 29 | } 30 | 31 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 32 | 33 | li.krumo-child { 34 | display:block; 35 | list-style: none; 36 | padding: 0px; 37 | margin: 0px; 38 | overflow:hidden; 39 | } 40 | div.krumo-element { 41 | cursor:default; 42 | 43 | line-height: 24px; 44 | display:block; 45 | 46 | clear:both; 47 | white-space:nowrap; 48 | 49 | border-top: solid 1px white; 50 | background: #E8E8E8; 51 | padding-left: 10px; 52 | } 53 | * html div.krumo-element { 54 | padding-bottom: 3px; 55 | } 56 | a.krumo-name { 57 | color:#2C5858; 58 | font: bold 13px Arial; 59 | } 60 | a.krumo-name big { 61 | font: bold 20pt Georgia; 62 | line-height: 14px; 63 | position:relative; 64 | top:2px; 65 | left:-2px; 66 | } 67 | * html a.krumo-name big { 68 | font: bold 19pt Georgia; 69 | top: 5px; 70 | left: 0px; 71 | line-height: 9px; 72 | height: 12px; 73 | padding: 0px; 74 | margin: 0px; 75 | } 76 | div.krumo-expand { 77 | background: #CCCCCC; 78 | cursor:pointer; 79 | } 80 | div.krumo-hover { 81 | background: #B7DBDB; 82 | } 83 | 84 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 85 | 86 | div.krumo-preview { 87 | font: normal 13px courier new; 88 | padding: 5px 5px 14px 5px; 89 | background: white; 90 | border-top: 0px; 91 | overflow:auto; 92 | } 93 | * html div.krumo-preview { 94 | padding-top: 2px; 95 | } 96 | 97 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 98 | 99 | li.krumo-footnote { 100 | background:white; 101 | padding: 2px 5px; 102 | list-style:none; 103 | border-top: solid 1px #bebebe; 104 | margin-top:2px; 105 | cursor:default; 106 | } 107 | * html li.krumo-footnote { 108 | line-height: 13px; 109 | } 110 | div.krumo-version { 111 | float:right; 112 | } 113 | li.krumo-footnote h6 { 114 | font: bold 11px verdana; 115 | margin: 0px; 116 | padding: 0px; 117 | color:#366D6D; 118 | display:inline; 119 | } 120 | * html li.krumo-footnote h6 { 121 | margin-right: 3px; 122 | } 123 | li.krumo-footnote a { 124 | font: bold 10px arial; 125 | color: #434343; 126 | text-decoration:none; 127 | } 128 | li.krumo-footnote a:hover { 129 | color:black; 130 | } 131 | 132 | li.krumo-footnote span.krumo-call { 133 | font:normal 11px verdana; 134 | position: relative; 135 | top: 1px; 136 | } 137 | li.krumo-footnote span.krumo-call code { 138 | font-weight:bold; 139 | } 140 | 141 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 142 | 143 | div.krumo-title { 144 | font: normal 11px verdana ; 145 | position:relative; 146 | top:9px; 147 | cursor:default; 148 | line-height:2px; 149 | } 150 | 151 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 152 | 153 | strong.krumo-array-length, 154 | strong.krumo-string-length { 155 | font-weight: normal; 156 | } 157 | 158 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 159 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/green/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/skins/green/bg.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/green/skin.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Krumo "Green" Skin 3 | * 4 | * @version $Id: skin.css 6 2007-06-16 06:37:27Z mrasnika $ 5 | * @author Kaloyan K. Tsvetkov 6 | */ 7 | 8 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 9 | 10 | ul.krumo-node { 11 | margin: 0px; 12 | padding: 0px; 13 | } 14 | ul.krumo-node ul { 15 | margin-left: 20px; 16 | } 17 | * html ul.krumo-node ul { 18 | margin-left: 24px; 19 | } 20 | div.krumo-root { 21 | border: solid 1px black; 22 | margin: 1em 0em; 23 | } 24 | ul.krumo-first { 25 | font: normal 12px arial; 26 | border: solid 2px white; 27 | border-top-width:1px; 28 | background: url(%url%bg.gif); 29 | } 30 | 31 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 32 | 33 | li.krumo-child { 34 | display:block; 35 | list-style: none; 36 | padding: 0px; 37 | margin: 0px; 38 | overflow:hidden; 39 | } 40 | div.krumo-element { 41 | cursor:default; 42 | 43 | line-height: 24px; 44 | display:block; 45 | 46 | clear:both; 47 | white-space:nowrap; 48 | 49 | border-top: solid 1px white; 50 | background: #D7F4CA; 51 | padding-left: 10px; 52 | } 53 | * html div.krumo-element { 54 | padding-bottom: 3px; 55 | } 56 | a.krumo-name { 57 | color:#004000; 58 | font: bold 13px Arial; 59 | } 60 | a.krumo-name big { 61 | font: bold 20pt Georgia; 62 | line-height: 14px; 63 | position:relative; 64 | top:2px; 65 | left:-2px; 66 | } 67 | * html a.krumo-name big { 68 | font: bold 19pt Georgia; 69 | top: 5px; 70 | left: 0px; 71 | line-height: 9px; 72 | height: 12px; 73 | padding: 0px; 74 | margin: 0px; 75 | } 76 | div.krumo-expand { 77 | background: #C0EEAC; 78 | cursor:pointer; 79 | } 80 | div.krumo-hover { 81 | background: gold; 82 | } 83 | 84 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 85 | 86 | div.krumo-preview { 87 | font: normal 13px courier new; 88 | padding: 5px 5px 14px 5px; 89 | background: white; 90 | border-top: 0px; 91 | overflow:auto; 92 | } 93 | * html div.krumo-preview { 94 | padding-top: 2px; 95 | } 96 | 97 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 98 | 99 | li.krumo-footnote { 100 | background:white; 101 | padding: 2px 5px; 102 | list-style:none; 103 | border-top: solid 1px #bebebe; 104 | margin-top:2px; 105 | cursor:default; 106 | } 107 | * html li.krumo-footnote { 108 | line-height: 13px; 109 | } 110 | div.krumo-version { 111 | float:right; 112 | } 113 | li.krumo-footnote h6 { 114 | font: bold 11px verdana; 115 | margin: 0px; 116 | padding: 0px; 117 | color:#008040; 118 | display:inline; 119 | } 120 | * html li.krumo-footnote h6 { 121 | margin-right: 3px; 122 | } 123 | li.krumo-footnote a { 124 | font: bold 10px arial; 125 | color: #434343; 126 | text-decoration:none; 127 | } 128 | li.krumo-footnote a:hover { 129 | color:black; 130 | } 131 | 132 | li.krumo-footnote span.krumo-call { 133 | font:normal 11px verdana; 134 | position: relative; 135 | top: 1px; 136 | } 137 | li.krumo-footnote span.krumo-call code { 138 | font-weight:bold; 139 | } 140 | 141 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 142 | 143 | div.krumo-title { 144 | font: normal 11px verdana ; 145 | position:relative; 146 | top:9px; 147 | cursor:default; 148 | line-height:2px; 149 | } 150 | 151 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 152 | 153 | strong.krumo-array-length, 154 | strong.krumo-string-length { 155 | font-weight: normal; 156 | } 157 | 158 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 159 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/orange/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/skins/orange/bg.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/orange/skin.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Krumo "Orange" Skin 3 | * 4 | * @version $Id: skin.css 6 2007-06-16 06:37:27Z mrasnika $ 5 | * @author Kaloyan K. Tsvetkov 6 | */ 7 | 8 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 9 | 10 | ul.krumo-node { 11 | margin: 0px; 12 | padding: 0px; 13 | } 14 | ul.krumo-node ul { 15 | margin-left: 20px; 16 | } 17 | * html ul.krumo-node ul { 18 | margin-left: 24px; 19 | } 20 | div.krumo-root { 21 | border: solid 1px black; 22 | margin: 1em 0em; 23 | } 24 | ul.krumo-first { 25 | font: normal 12px arial; 26 | border: solid 2px white; 27 | border-top-width:1px; 28 | background: url(%url%bg.gif); 29 | } 30 | 31 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 32 | 33 | li.krumo-child { 34 | display:block; 35 | list-style: none; 36 | padding: 0px; 37 | margin: 0px; 38 | overflow:hidden; 39 | } 40 | div.krumo-element { 41 | cursor:default; 42 | 43 | line-height: 24px; 44 | display:block; 45 | 46 | clear:both; 47 | white-space:nowrap; 48 | 49 | border-top: solid 1px white; 50 | background: #FCEBA9; 51 | padding-left: 10px; 52 | } 53 | * html div.krumo-element { 54 | padding-bottom: 3px; 55 | } 56 | a.krumo-name { 57 | color:#404000; 58 | font: bold 13px Arial; 59 | } 60 | a.krumo-name big { 61 | font: bold 20pt Georgia; 62 | line-height: 14px; 63 | position:relative; 64 | top:2px; 65 | left:-2px; 66 | } 67 | * html a.krumo-name big { 68 | font: bold 19pt Georgia; 69 | top: 5px; 70 | left: 0px; 71 | line-height: 9px; 72 | height: 12px; 73 | padding: 0px; 74 | margin: 0px; 75 | } 76 | div.krumo-expand { 77 | background: #FADB61; 78 | cursor:pointer; 79 | } 80 | div.krumo-hover { 81 | background: #FF8A4B; 82 | } 83 | 84 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 85 | 86 | div.krumo-preview { 87 | font: normal 13px courier new; 88 | padding: 5px 5px 14px 5px; 89 | background: white; 90 | border-top: 0px; 91 | overflow:auto; 92 | } 93 | * html div.krumo-preview { 94 | padding-top: 2px; 95 | } 96 | 97 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 98 | 99 | li.krumo-footnote { 100 | background:white; 101 | padding: 2px 5px; 102 | list-style:none; 103 | border-top: solid 1px #bebebe; 104 | margin-top:2px; 105 | cursor:default; 106 | } 107 | * html li.krumo-footnote { 108 | line-height: 13px; 109 | } 110 | div.krumo-version { 111 | float:right; 112 | } 113 | li.krumo-footnote h6 { 114 | font: bold 11px verdana; 115 | margin: 0px; 116 | padding: 0px; 117 | color:#E87400; 118 | display:inline; 119 | } 120 | * html li.krumo-footnote h6 { 121 | margin-right: 3px; 122 | } 123 | li.krumo-footnote a { 124 | font: bold 10px arial; 125 | color: #434343; 126 | text-decoration:none; 127 | } 128 | li.krumo-footnote a:hover { 129 | color:black; 130 | } 131 | 132 | li.krumo-footnote span.krumo-call { 133 | font:normal 11px verdana; 134 | position: relative; 135 | top: 1px; 136 | } 137 | li.krumo-footnote span.krumo-call code { 138 | font-weight:bold; 139 | } 140 | 141 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 142 | 143 | div.krumo-title { 144 | font: normal 11px verdana ; 145 | position:relative; 146 | top:9px; 147 | cursor:default; 148 | line-height:2px; 149 | } 150 | 151 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 152 | 153 | strong.krumo-array-length, 154 | strong.krumo-string-length { 155 | font-weight: normal; 156 | } 157 | 158 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 159 | -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/collapsed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/collapsed.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/dotted.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/dotted.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/empty.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/expanded.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mattlangtree/Bundles/b586510409f4afc96aae9e8235d5631895168cba/contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/expanded.gif -------------------------------------------------------------------------------- /contributed/Deserialize php with krumo.spBundle/krumo/skins/schablon.com/skin.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Krumo `Schablon.com` Skin 3 | * 4 | * @version $Id: skin.css 6 2007-06-16 06:37:27Z mrasnika $ 5 | * @author Kaloyan K. Tsvetkov 6 | */ 7 | 8 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 9 | 10 | ul.krumo-node { 11 | margin: 0px; 12 | padding: 0px; 13 | background-color: white; 14 | } 15 | ul.krumo-node ul { 16 | margin-left: 20px; 17 | } 18 | * html ul.krumo-node ul { 19 | margin-left: 24px; 20 | } 21 | div.krumo-root { 22 | border: solid 1px black; 23 | margin: 1em 0em; 24 | } 25 | ul.krumo-first { 26 | font: normal 11px tahoma, verdana; 27 | border: solid 1px white; 28 | } 29 | 30 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 31 | 32 | li.krumo-child { 33 | display:block; 34 | list-style: none; 35 | padding: 0px; 36 | margin: 0px; 37 | overflow:hidden; 38 | } 39 | div.krumo-element { 40 | cursor:default; 41 | display:block; 42 | clear:both; 43 | white-space:nowrap; 44 | 45 | background-color: white; 46 | background-image: url(%url%empty.gif); 47 | background-repeat: no-repeat; 48 | background-position: 6px 5px; 49 | padding: 2px 0px 3px 20px; 50 | } 51 | * html div.krumo-element { 52 | padding-bottom: 3px; 53 | line-height: 13px; 54 | } 55 | div.krumo-expand { 56 | background-image: url(%url%collapsed.gif); 57 | cursor:pointer; 58 | } 59 | div.krumo-hover { 60 | background-color: #BFDFFF; 61 | } 62 | div.krumo-opened { 63 | background-image: url(%url%expanded.gif); 64 | } 65 | a.krumo-name { 66 | color:navy; 67 | font: bold 13px courier new; 68 | line-height:12px; 69 | } 70 | a.krumo-name big { 71 | font: bold 16pt Georgia; 72 | line-height: 10px; 73 | position:relative; 74 | top:2px; 75 | left:-2px; 76 | } 77 | * html a.krumo-name big { 78 | font: bold 15pt Georgia; 79 | float:left; 80 | top: -5px; 81 | left: 0px; 82 | padding: 0px; 83 | margin: 0px; 84 | } 85 | em.krumo-type { 86 | font-style:normal; 87 | margin: 0px 2px; 88 | } 89 | 90 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 91 | 92 | div.krumo-preview { 93 | font: normal 13px courier new; 94 | padding: 5px ; 95 | background: lightyellow; 96 | border: solid 1px #808000; 97 | overflow:auto; 98 | margin: 5px 1em 1em 0px; 99 | } 100 | * html div.krumo-preview { 101 | padding-top: 2px; 102 | } 103 | 104 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 105 | 106 | li.krumo-footnote { 107 | background: white url(%url%dotted.gif) repeat-x; 108 | padding: 4px 5px 3px 5px; 109 | list-style:none; 110 | cursor:default; 111 | } 112 | * html li.krumo-footnote { 113 | line-height: 13px; 114 | } 115 | div.krumo-version { 116 | float:right; 117 | } 118 | li.krumo-footnote h6 { 119 | font: bold 11px verdana; 120 | margin: 0px; 121 | padding: 0px; 122 | color:navy; 123 | display:inline; 124 | } 125 | * html li.krumo-footnote h6 { 126 | margin-right: 3px; 127 | } 128 | li.krumo-footnote a { 129 | font: bold 10px arial; 130 | color: #434343; 131 | text-decoration:none; 132 | } 133 | li.krumo-footnote a:hover { 134 | color:black; 135 | } 136 | 137 | 138 | li.krumo-footnote span.krumo-call { 139 | font:normal 11px tahoma, verdana; 140 | position: relative; 141 | top: 1px; 142 | } 143 | li.krumo-footnote span.krumo-call code { 144 | font-weight:bold; 145 | } 146 | 147 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 148 | 149 | div.krumo-title { 150 | font: normal 11px tahoma, verdana; 151 | position:relative; 152 | top:9px; 153 | cursor:default; 154 | line-height:2px; 155 | } 156 | 157 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 158 | 159 | strong.krumo-array-length, 160 | strong.krumo-string-length { 161 | font-weight: normal; 162 | color: #000099; 163 | } 164 | 165 | /* -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- */ 166 | -------------------------------------------------------------------------------- /contributed/Deserialize php.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Andrew Fulton 7 | category 8 | Format 9 | command 10 | #!/usr/bin/php 11 | 12 | <pre> 13 | <?php 14 | function goFormatVarExport($string) { 15 | return preg_replace(array( 16 | '/=>\s+array\(/im', 17 | '/array\(\s+\)/im', 18 | ), array( 19 | '=> array(', 20 | 'array()', 21 | ), str_replace('array (', 'array(', $string)); 22 | } 23 | 24 | print_r(goFormatVarExport(var_export(unserialize(fgets(STDIN)), TRUE))); 25 | ?> 26 | </pre> 27 | contact 28 | ns@zbaxvv.pbz 29 | description 30 | Deserializes those PHP objects that drupal loves so much. 31 | input 32 | selectedtext 33 | internalKeyEquivalent 34 | 35 | characters 36 | D 37 | keyCode 38 | 2 39 | modifierFlags 40 | 1179648 41 | 42 | keyEquivalent 43 | $@D 44 | name 45 | Deserialize PHP 46 | output 47 | showashtml 48 | scope 49 | inputfield 50 | uuid 51 | 8F858F4D-9DCC-488A-B01C-D9F7FA32FE32 52 | 53 | 54 | -------------------------------------------------------------------------------- /core/CopyAsJSON.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Copy 9 | command 10 | cat | perl -e ' 11 | 12 | # read first line to get the column names (header) 13 | $firstLine = <>; 14 | 15 | # bail if nothing could read 16 | if(!defined($firstLine)) { 17 | exit 0; 18 | } 19 | 20 | # store the column names 21 | chomp($firstLine); 22 | $firstLine =~ s/\"/\\\"/g; # escape " 23 | @header = split(/\t/, $firstLine); 24 | 25 | $h_cnt = $#header; # number of columns 26 | 27 | # get the column definitions 28 | open(META, $ENV{"SP_BUNDLE_INPUT_TABLE_METADATA"}) or die $!; 29 | @meta = (); 30 | while(<META>) { 31 | chomp(); 32 | my @arr = split(/\t/); 33 | push @meta, \@arr; 34 | } 35 | close(META); 36 | 37 | print "{\n\t\"data\":\n\t[\n"; 38 | 39 | # read row data of each selected row 40 | $rowData=<>; 41 | while($rowData) { 42 | 43 | print "\t\t{\n"; 44 | 45 | # remove line ending 46 | chomp($rowData); 47 | 48 | # escape " 49 | $rowData=~s/\"/\\\"/g; 50 | 51 | # split column data which are tab-delimited 52 | @data = split(/\t/, $rowData); 53 | for($i=0; $i<=$h_cnt; $i++) { 54 | 55 | # re-escape \t and \n 56 | $cellData = $data[$i]; 57 | $cellData =~ s/↵/\n/g; 58 | $cellData =~ s/⇥/\t/g; 59 | 60 | print "\t\t\t\"$header[$i]\": "; 61 | 62 | # check for data types 63 | if($cellData eq "NULL") { 64 | print "null"; 65 | } 66 | elsif($meta[$i]->[1] eq "integer" || $meta[$i]->[1] eq "float") { 67 | chomp($cellData); 68 | $d = $cellData+0; 69 | print "$d"; 70 | } else { 71 | chomp($cellData); 72 | print "\"$cellData\""; 73 | } 74 | 75 | # suppress last , 76 | if($i<$h_cnt) { 77 | print ","; 78 | } 79 | 80 | print "\n"; 81 | 82 | } 83 | 84 | print "\t\t}"; 85 | 86 | # get next row 87 | $rowData=<>; 88 | 89 | # suppress last , 90 | if($rowData) { 91 | print ","; 92 | } 93 | 94 | print "\n"; 95 | } 96 | 97 | print "\t]\n}"; 98 | 99 | ' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy 100 | contact 101 | znvy@ovovxb.qr 102 | description 103 | Copies the selected rows excluding any BLOB data in a data table JSON formatted into the pasteboard. 104 | 105 | Version 1.0 106 | input 107 | selectedtablerowsastab 108 | internalKeyEquivalent 109 | 110 | characters 111 | C 112 | keyCode 113 | 8 114 | modifierFlags 115 | 262144 116 | 117 | keyEquivalent 118 | ^c 119 | name 120 | Copy as JSON 121 | output 122 | none 123 | scope 124 | datatable 125 | tooltip 126 | Copies the selected rows excluding any BLOB data JSON formatted into the pasteboard 127 | uuid 128 | CBB8B7A7-5AB9-4F4C-A404-D99CA9521337 129 | isDefaultBundle 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /core/CopySingleLineQuoted.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Query Editor 9 | command 10 | cat | perl -ne 'chomp;s/\t/ /g;s/"/\\"/g;print "\"".$_."\" . \"\\n\" .\n"' | sed '$ s/.........$//' | sed '$ s/$/;/' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy 11 | contact 12 | znvy@ovovxb.qr 13 | description 14 | Takes the current query or the selection and copies it as a single line quoted multi-line string by appending a ; into the pasteboard for usage in other IDEs as e.g. PHP code snippet. 15 | 16 | Example: 17 | 18 | SELECT a 19 | FROM b 20 | ORDER BY c DESC 21 | 22 | will copy 23 | 24 | "SELECT a" . "\n" . 25 | " FROM b" . "\n" . 26 | " ORDER BY c DESC"; 27 | 28 | Version 1.0 29 | 30 | input 31 | selectedtext 32 | input_fallback 33 | currentquery 34 | keyEquivalent 35 | 36 | name 37 | Copy Single Line Quoted 38 | output 39 | none 40 | scope 41 | inputfield 42 | tooltip 43 | Takes the current query or the selection and copies it as a single line quoted multi-line string by appending a ; into the pasteboard 44 | uuid 45 | CDAC825A-AE80-4544-9DBB-8E68A5C540D0 46 | isDefaultBundle 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /core/DB Report.spBundle/Support/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Database Report 4 | 26 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /core/DB Report.spBundle/Support/processTableData.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl -w 2 | 3 | while(<>) { 4 | 5 | # split tab delimited data 6 | @data = split(/\t/); 7 | 8 | $pid = $ENV{"PID"}; 9 | $db = $ENV{"DB"}; 10 | $res = $ENV{"RES"}; 11 | $itemType = "table"; 12 | 13 | # $data[1] is NULL indicates item is a view 14 | if($data[1] eq "NULL") { 15 | $img = "file://$res/table-view-small-square.tiff"; 16 | $itemType = "view"; 17 | } else { 18 | $img = "file://$res/table-small-square.tiff"; 19 | } 20 | 21 | print < 23 | 24 | $data[0] 25 | $data[1] 26 | $data[4] 27 | $data[6] 28 | $data[11] 29 | $data[12] 30 | 31 | HTML4 32 | } -------------------------------------------------------------------------------- /core/DB Report.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Report 9 | command 10 | 11 | # Since this command will execute SQL statements at the front most 12 | # document window's connection check for a passed process ID to cancel 13 | # this command by displaying a tooltip. Otherwise the loop after 14 | # “open "sequelpro://$SP_PROCESS_ID@passToDoc/ExecuteQuery"” 15 | # won't break. 16 | if [ -z $SP_PROCESS_ID ]; then 17 | echo "<font color=red>No front most connection window found!</font>" 18 | exit $SP_BUNDLE_EXIT_SHOW_AS_HTML_TOOLTIP 19 | fi 20 | 21 | # send query to Sequel Pro 22 | cat <<SQL > "$SP_QUERY_FILE" 23 | SELECT TABLE_SCHEMA AS Name, FORMAT((SUM(DATA_LENGTH)+SUM(INDEX_LENGTH))/1000, 1) AS \`Size (kiB) incl. indices\` 24 | FROM information_schema.TABLES 25 | GROUP BY TABLE_SCHEMA 26 | SQL 27 | 28 | # execute the SQL statement; the result will be available in the file $SP_QUERY_RESULT_FILE 29 | open "sequelpro://$SP_PROCESS_ID@passToDoc/ExecuteQuery" 30 | 31 | # wait for Sequel Pro; status file will be written to disk if query was finished 32 | while [ 1 ] 33 | do 34 | [[ -e "$SP_QUERY_RESULT_STATUS_FILE" ]] && break 35 | sleep 0.01 36 | done 37 | 38 | # Prepair HTML code 39 | cat "$SP_BUNDLE_PATH/Support/header.html" 40 | cat <<HTML1 41 | <center> 42 | <h3><font color=blue>Connection: ‘$SP_CURRENT_HOST’ – $SP_RDBMS_TYPE ($SP_RDBMS_VERSION)</font></h3> 43 | <table width=80%> 44 | <tr> 45 | <td align=center><img width='96px' src='file://$SP_ICON_FILE'></td> 46 | <td> 47 | <table style='border-collapse:collapse'> 48 | <tr> 49 | <th align=left> 50 | HTML1 51 | 52 | # Check for possible MySQL error 53 | if [ `cat "$SP_QUERY_RESULT_STATUS_FILE"` == 1 ]; then 54 | 55 | # If error 56 | echo "<i>No global summary available</i>" 57 | 58 | else 59 | 60 | # $SP_QUERY_RESULT_FILE contains the file path to the query result 61 | 62 | # First line contains the column names - wrap them into <th> tags 63 | cat "$SP_QUERY_RESULT_FILE" | head -n 1 |perl -pe 's!\t!</th><th></th><th align=right>!g;s!$!</th></tr><tr><td>!' 64 | 65 | # Output all row except the first one and wrap them into <tr><td> tags 66 | cat "$SP_QUERY_RESULT_FILE" | sed '1d' | perl -pe 's!\t!</td><td>&nbsp;&nbsp;</td><td align='right'>!g;s!$!</tr><tr><td>!' 67 | 68 | fi 69 | cat <<HTML2 70 | </table> 71 | </td> 72 | </tr> 73 | </table> 74 | <hr> 75 | </center> 76 | HTML2 77 | 78 | # Clear hand-shake files for further usage 79 | rm -f "$SP_QUERY_FILE" 80 | rm -f "$SP_QUERY_RESULT_STATUS_FILE" 81 | rm -f "$SP_QUERY_RESULT_FILE" 82 | rm -f "$SP_QUERY_RESULT_META_FILE" 83 | 84 | # Read all databases into a BASH array; $SP_ALL_DATABASES provides them as a tab delimited string 85 | # Set the Internal Field Separator IFS to 'tab' and process the array by using the new IFS due to 86 | # the fact that a database name could contain 'spaces' 87 | OLDIFS="$IFS" 88 | IFS=" " 89 | dbs=("$SP_ALL_DATABASES") 90 | 91 | # Loop through all databases 92 | cnt=1 93 | for db in $dbs 94 | do 95 | 96 | cat <<HTML3 97 | <br> 98 | <table width=100% style='background-color:#ECECEC;'> 99 | <tr> 100 | <td width=20px><span id="$cnt" onclick=toggle_display(this) style="cursor:pointer;color:gray;font-size:smaller;" title="Toggle visibility">▼</span></td> 101 | <td align=center width='40px'><img src='file://$SP_APP_RESOURCES_DIRECTORY/database-small.png'></td> 102 | <td><big><a href='sequelpro://$SP_PROCESS_ID@passToDoc/SelectDatabase/$db' title='Click to select database “$db”'>$db</big></a></td> 103 | </tr> 104 | </table> 105 | <table id="$cnt:data" border=1 style='border-collapse:collapse' width=100%> 106 | <tr> 107 | <th></th><th>Name</th><th>Engine</th><th>Rows</th><th>Size</th><th>Created</th><th>Updated</th> 108 | </tr> 109 | HTML3 110 | 111 | # Query for table status 112 | echo "SHOW TABLE STATUS IN \`$db\`" > "$SP_QUERY_FILE" 113 | open "sequelpro://$SP_PROCESS_ID@passToDoc/ExecuteQuery" 114 | 115 | # wait for Sequel Pro; status file will be written to disk if query was finished 116 | while [ 1 ] 117 | do 118 | [[ -e "$SP_QUERY_RESULT_STATUS_FILE" ]] && break 119 | sleep 0.01 120 | done 121 | 122 | cnt=$((cnt+1)) 123 | 124 | export DB="$db" 125 | export PID="$SP_PROCESS_ID" 126 | export RES="$SP_APP_RESOURCES_DIRECTORY"; 127 | cat "$SP_QUERY_RESULT_FILE" | sed '1d' | perl "$SP_BUNDLE_PATH/Support/processTableData.pl" 128 | 129 | echo "</table>" 130 | 131 | # Clear hand-shake files 132 | rm -f "$SP_QUERY_FILE" 133 | rm -f "$SP_QUERY_RESULT_STATUS_FILE" 134 | rm -f "$SP_QUERY_RESULT_FILE" 135 | rm -f "$SP_QUERY_RESULT_META_FILE" 136 | 137 | done 138 | 139 | # Reset IFS 140 | IFS="$OLDIFS" 141 | 142 | echo "</body></html>" 143 | 144 | contact 145 | znvy@ovovxb.qr 146 | description 147 | Display a report about all databases of the current connection including the possibility to select a database or table via hyperlink. 148 | 149 | Version 1.0 150 | internalKeyEquivalent 151 | 152 | characters 153 | A 154 | keyCode 155 | 0 156 | modifierFlags 157 | 1835008 158 | 159 | keyEquivalent 160 | ^~@a 161 | name 162 | Database Report 163 | output 164 | showashtml 165 | scope 166 | general 167 | tooltip 168 | Display report about all databases of the current connection 169 | uuid 170 | AC45C093-9157-4E18-9683-C94415995935 171 | isDefaultBundle 172 | 173 | 174 | 175 | -------------------------------------------------------------------------------- /core/Format SQL.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Format 9 | command 10 | 11 | 12 | # check for empty STDIN 13 | SQL=$(cat) 14 | if [ -z "$SQL" ]; then 15 | echo "No SQL statements passed." 16 | exit $SP_BUNDLE_EXIT_SHOW_AS_TEXT_TOOLTIP 17 | fi 18 | 19 | # check if connected to the internet and if server is up 20 | connected=$(/sbin/ping -t 8 -c 1 -on www.dpriver.com 2> /dev/null | grep '69\.5\.11\.169' | wc -l) 21 | if [ $connected -eq "0" ]; then 22 | echo "<font color=red>You are probably not connected to the internet or http://www.dpriver.com/ server is down.</font>" 23 | exit $SP_BUNDLE_EXIT_SHOW_AS_HTML_TOOLTIP 24 | fi 25 | 26 | # show info alert about sending the SQL statements to an online service 27 | if [ ! -e infoShowed ]; then 28 | touch infoShowed 29 | osascript -e 'tell app "Sequel Pro" to display dialog "This command will send the SQL statement(s) - unencrypted - to an online service (http://www.dpriver.com). Please consider this before sending confidential data!\n\nThis message will only be displayed once." with icon caution' 2> 1 30 | if [ `cat 1 | wc -c` -ne 0 ]; then 31 | rm -f 1 32 | exit $SP_BUNDLE_EXIT_NONE 33 | fi 34 | rm -f 1 35 | fi 36 | 37 | # send SQL to www.dpriver.com and replace the formatted SQL string in first responder; if a parser error occurred 38 | # show error message and try to jump to the error 39 | cat <<HTML 40 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 41 | <html> 42 | <head> 43 | <base href="http://www.dpriver.com/pp/"> 44 | <title>Connecting www.dpriver.com</title> 45 | <script> 46 | function lookForResult() { 47 | if(document.all.outputsql.value.length > 8) { 48 | if(document.all.errorhint.style.display == "inline") { 49 | var errormes = document.all.outputsql.value; 50 | var re = /.*?\(\d+\s*,\s*(\d+)\).*/; 51 | re.exec(errormes); 52 | var pos = parseInt(RegExp.\$1) - 1; 53 | re = /.*?(\d+).*/; 54 | re.exec('$SP_SELECTED_TEXT_RANGE'); 55 | var offset = parseInt(RegExp.\$1); 56 | pos = pos + offset; 57 | alert(document.all.outputsql.value); 58 | window.system.setSelectedTextRange(pos+''); 59 | } else { 60 | var txt = document.all.outputsql.value; 61 | var len = txt.length; 62 | window.system.setSelectedTextRange('$SP_SELECTED_TEXT_RANGE'); 63 | window.system.insertText(txt.slice(0,len-2)); 64 | } 65 | window.system.closeHTMLOutputWindow(); 66 | } else { 67 | setTimeout("lookForResult()",50); 68 | } 69 | } 70 | 71 | function waitForResult() { 72 | window.system.suppressExceptionAlert(); 73 | setTimeout("lookForResult()",50); 74 | } 75 | </script> 76 | <script language="JavaScript" type="text/javascript" src="pp.js"></script> 77 | </head> 78 | <body onload='window.resizeTo(300,200);SQLFMT.format(document.all.sp_submit);waitForResult()'> 79 | <div id="retvalues"></div> 80 | <p><b>Copyright &copy; 2001-2010 Gudu Software<br>All Rights Reserved<br><a href="mailto:support@dpriver.com">Contact US</a></b></p> 81 | <br><br><br><br><br> 82 | <p align=right>Please wait…</p> 83 | <div class="page-container-1" style="display:none;"> 84 | <div id="container"> 85 | <div id="wrapper"> 86 | <div id="content"> 87 | <form id="SqlFmtForm" name="frm_sqlformat" method="post" action="/cgi-bin/ppserver" onsubmit="return false;"> 88 | <div id="secondpanel"> 89 | <div id="sp_database"> 90 | <label class="desc" style="display:inline;">Database</label> 91 | <select name="dbvendor"> 92 | <option value="mysql" selected>MySQL</option> 93 | </select> 94 | <label class="desc" style="display:inline;padding:0 0 0px 40px; border:0px solid;">Output:</label> 95 | <select name="outputfmt"> 96 | <option value="SQL" selected>SQL(Text)</option> 97 | </select> 98 | </div> 99 | </div> 100 | <div id="sqlpanel"> 101 | <div id="sp_inputsql"> 102 | <textarea id ="inputsql" name="inputsql" cols="1" rows="1" wrap="off"> 103 | $SQL 104 | </textarea> 105 | </div> 106 | <div id="sp_submit"> 107 | <input type="button" id="btnformat" name="print" value="Format SQL" onclick="SQLFMT.format(this)" value="Format SQL"> 108 | <label style="display:none;">(Time used: <span id="timestamp">0</span> seconds)</label> 109 | </div> 110 | <div id="sp_submit" style="text-align:left;"> 111 | </div> 112 | <label id="errorhint" class="desc" style="color:#DF0000 !important;display:none;"> 113 | Can't format input sql, make sure there is no syntax error and select correct database. 114 | <a href="" style="display:none;">OR Report a bug of this sql beautifier</a> 115 | </label> 116 | <iframe id="ioutputsql" ></iframe> 117 | <div id="sp_outputsql" style="display:none;"> 118 | <textarea id = "outputsql" name="outputsql" cols="80" rows="15" wrap="off" > 119 | </textarea> 120 | </div> 121 | <div id="sp_errormsg" style="display:none;"> 122 | Error message goes to here! 123 | </div> 124 | </div> 125 | <div id="formatoptions"> 126 | <select name="keywordcs"> 127 | <option value="Uppercase" selected >Uppercase</option> 128 | <option value="Lowercase" >Lowercase</option> 129 | <option value="InitCap" >InitCap</option> 130 | <option value="Unchanged" >Unchanged</option> 131 | </select> 132 | <select name="identifiercs"> 133 | <option value="Uppercase" >Uppercase</option> 134 | <option value="Lowercase" selected >Lowercase</option> 135 | <option value="InitCap" >InitCap</option> 136 | <option value="Unchanged" >Unchanged</option> 137 | <option value="initcapeachword" >Init cap each word</option> 138 | </select> 139 | <select name="functioncs"> 140 | <option value="Uppercase" >Uppercase</option> 141 | <option value="Lowercase" >Lowercase</option> 142 | <option value="InitCap" selected >InitCap</option> 143 | <option value="Unchanged" >Unchanged</option> 144 | </select> 145 | <input type="radio" name="lnbrwithcomma" value="after" checked > After 146 | <input type="radio" name="lnbrwithcomma" value="before" > Before 147 | <input type="radio" name="lnbrwithcomma" value= "beforewithspace" > Before with space 148 | <input type="radio" name="liststyle" value="stack" checked>Stacked 149 | <input type="radio" name="liststyle" value="nostack">Not Stacked 150 | <input type="radio" name="salign" value="sleft" checked> Align left 151 | <input type="radio" name="salign" value="sright" > Align right 152 | <input type="checkbox" name="andorunderwhere" value="yes" checked> And/Or under Where 153 | <input type="checkbox" name="removelnbr" value="no" checked> Remove Linebreak before beautify 154 | <input type="checkbox" name="trimquotechar" value="yes"> Trim Quoted Char of Each Line quoted char of eachline: <input type="text" name="quotechar" value= "&#34" size = 5 > 155 | <input type="checkbox" name="compactmode" value="yes"> Compact the output of sql output 156 | <input type="text" name="maxlenincm" value= "80" size = 5 > 157 | </div> 158 | <input type="hidden" name="clientid" value="4149-9094-8133-2031" /> 159 | </form> 160 | </div> 161 | </div> 162 | </div> 163 | </div> 164 | 165 | </body> 166 | </html> 167 | HTML 168 | 169 | contact 170 | znvy@ovovxb.qr 171 | description 172 | Send the current query or selection to www.dpriver.com and replace the current query or selection of the first responder by the server's formatted output. If a parser error occurred alert that error and tries to jump to the error location. 173 | 174 | Version 1.0 175 | input 176 | selectedtext 177 | input_fallback 178 | currentquery 179 | internalKeyEquivalent 180 | 181 | characters 182 | T 183 | keyCode 184 | 17 185 | modifierFlags 186 | 1835008 187 | 188 | keyEquivalent 189 | ^~@t 190 | name 191 | Format SQL 192 | output 193 | showashtml 194 | scope 195 | inputfield 196 | tooltip 197 | Send query or selection to www.dpriver.com to insert the SQL statement formatted 198 | uuid 199 | 36E1F94D-D6C4-460A-A663-C694AF85E099 200 | isDefaultBundle 201 | 202 | 203 | 204 | -------------------------------------------------------------------------------- /core/MD5 Hash.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | category 6 | Hash 7 | command 8 | #!/usr/bin/ruby 9 | 10 | require 'digest/md5' 11 | 12 | print Digest::MD5.hexdigest(gets) 13 | 14 | input 15 | selectedtext 16 | input_fallback 17 | entirecontent 18 | keyEquivalent 19 | 20 | name 21 | MD5 22 | output 23 | replaceselection 24 | scope 25 | inputfield 26 | uuid 27 | 8CAA33B3-D168-47FC-A9BE-EA5A8576E380 28 | 29 | 30 | -------------------------------------------------------------------------------- /core/Open Selected Table.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Open 9 | command 10 | 11 | # Remove hand-shake files 12 | rm -f "$SP_QUERY_RESULT_FILE" 13 | rm -f "$SP_QUERY_FILE" 14 | rm -f "$SP_QUERY_RESULT_STATUS_FILE" 15 | 16 | 17 | # Check if one table is selected 18 | if [ -z "$SP_SELECTED_TABLE" ]; then 19 | echo "<font color=red>Please select a table.</font>" 20 | exit $SP_BUNDLE_EXIT_SHOW_AS_HTML_TOOLTIP 21 | fi 22 | 23 | 24 | # Ask for desired application - modify the list if needed 25 | open "sequelpro://$SP_PROCESS_ID@chooseItemFromList/Numbers/Microsoft Excel" 26 | 27 | # wait for Sequel Pro; status file will be written to disk if query was finished 28 | while [ 1 ] 29 | do 30 | [[ -e "$SP_QUERY_RESULT_STATUS_FILE" ]] && break 31 | sleep 0.01 32 | done 33 | 34 | # Read the chosen list item 35 | APP=$(cat "$SP_QUERY_RESULT_FILE") 36 | 37 | # Check if user dismissed, if so bail (if $APP is empty := user pressed ESC) 38 | if [ -z "$APP" ]; then 39 | rm -f "$SP_QUERY_RESULT_FILE" 40 | rm -f "$SP_QUERY_FILE" 41 | rm -f "$SP_QUERY_RESULT_STATUS_FILE" 42 | exit 0 43 | fi 44 | 45 | # Remove hand-shake files 46 | rm -f "$SP_QUERY_RESULT_FILE" 47 | rm -f "$SP_QUERY_FILE" 48 | rm -f "$SP_QUERY_RESULT_STATUS_FILE" 49 | 50 | 51 | # Query for desired data 52 | echo "SELECT * FROM \`${SP_SELECTED_TABLE//\`/\`\`}\`" > "$SP_QUERY_FILE" 53 | open "sequelpro://$SP_PROCESS_ID@passToDoc/ExecuteQuery/csv" 54 | 55 | # wait for Sequel Pro; status file will be written to disk if query 56 | # was finished 57 | while [ 1 ] 58 | do 59 | [[ -e "$SP_QUERY_RESULT_STATUS_FILE" ]] && break 60 | sleep 0.1 61 | done 62 | 63 | # Check returned status 0 := no error; 1 := error 64 | RES=$(cat "$SP_QUERY_RESULT_STATUS_FILE") 65 | [[ ! -e "$SP_QUERY_RESULT_FILE" ]] && RES=1 66 | 67 | 68 | # No sql error 69 | if [ "$RES" == "0" ]; then 70 | DATAFILENAME=$(date "+sp_data%H%M%S.csv") 71 | mv "$SP_QUERY_RESULT_FILE" ~/Desktop/$DATAFILENAME 72 | open -a "$APP" ~/Desktop/$DATAFILENAME 73 | echo "$APP is opening data file ~/Desktop/$DATAFILENAME." 74 | else 75 | # if error message will be saved in result file 76 | echo "<font color=red>" 77 | cat "$SP_QUERY_RESULT_FILE" 78 | echo "</font>" 79 | rm -f "$SP_QUERY_RESULT_FILE" 80 | rm -f "$SP_QUERY_FILE" 81 | rm -f "$SP_QUERY_RESULT_STATUS_FILE" 82 | exit $SP_BUNDLE_EXIT_SHOW_AS_HTML_TOOLTIP 83 | fi 84 | 85 | rm -f "$SP_QUERY_RESULT_FILE" 86 | rm -f "$SP_QUERY_FILE" 87 | rm -f "$SP_QUERY_RESULT_STATUS_FILE" 88 | 89 | contact 90 | znvy@ovovxb.qr 91 | description 92 | If one table is selected in the Table List it will write the table data CSV formatted at "~/Desktop/sp_dataxxxxx.csv" to disk (xxxxx := timestamp) and asks for the application with which the data should be opened. 93 | 94 | Version 1.0 95 | internalKeyEquivalent 96 | 97 | characters 98 | O 99 | keyCode 100 | 31 101 | modifierFlags 102 | 1835008 103 | 104 | keyEquivalent 105 | ^~@o 106 | name 107 | Open selected table with… 108 | output 109 | showastexttooltip 110 | scope 111 | general 112 | tooltip 113 | Open selected table 114 | uuid 115 | 8F406B0A-23A4-4436-A348-E248A61BA59C 116 | isDefaultBundle 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /core/SHA1 Hash.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | category 6 | Hash 7 | command 8 | #!/usr/bin/ruby 9 | 10 | require 'digest/sha1' 11 | 12 | print Digest::SHA1.hexdigest(gets) 13 | 14 | input 15 | selectedtext 16 | input_fallback 17 | entirecontent 18 | name 19 | SHA1 20 | output 21 | replaceselection 22 | scope 23 | inputfield 24 | uuid 25 | 19F272BA-1369-48A7-B10A-4F25EF5B9DD3 26 | 27 | 28 | -------------------------------------------------------------------------------- /core/SHA1 Hash.spBundle/echo-n: -------------------------------------------------------------------------------- 1 | 6f1ed002ab5595859014ebf0951522d9 2 | -------------------------------------------------------------------------------- /core/Toggle JSON Format.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Format 9 | command 10 | DATA=$(cat) 11 | 12 | FORMAT=$(echo "$DATA" | head -n 1 | perl -e '$l=<>;if($l=~m/^\s*\{\s*$/) {print "1";} else {print "2";}') 13 | 14 | # if FORMAT == 1 then serialize JSON data otherwise pretty print them 15 | if [ "$FORMAT" -eq "1" ]; then 16 | 17 | DATA=$(echo "$DATA" | php -r ' 18 | $jsonData = ""; 19 | $inputStream = fopen("php://stdin", "r"); 20 | while($d = fgets($inputStream)) { $jsonData .= $d; } 21 | print json_encode(json_decode($jsonData)); 22 | ') 23 | if [ "$DATA" == "null" ]; then 24 | echo "<font>An error occured while serializing JSON data!</font>" 25 | exit $SP_BUNDLE_EXIT_SHOW_AS_HTML_TOOLTIP 26 | fi 27 | 28 | else 29 | 30 | DATA=$(echo "$DATA" | python -mjson.tool) 31 | 32 | fi 33 | 34 | # if there's a need to preserve Unicode characters remove the first to characters of the following line 35 | # DATA=$(echo "$DATA" | perl -Xpe 'binmode STDIN,":utf8";binmode STDOUT,":utf8";s/\\u([0-9A-F]{4})/chr(hex($1))/ieg') 36 | 37 | printf "%b" "$DATA" 38 | contact 39 | znvy@ovovxb.qr 40 | description 41 | If the first line of the selection or the entire content of the current text input field only contains a "{" then serialize the JSON data otherwise the JSON data will be pretty printed. If there's a need to preserve the Unicode characters you can uncomment the line 22. 42 | 43 | Version 1.0 44 | input 45 | selectedtext 46 | input_fallback 47 | entirecontent 48 | internalKeyEquivalent 49 | 50 | characters 51 | J 52 | keyCode 53 | 38 54 | modifierFlags 55 | 1572864 56 | 57 | keyEquivalent 58 | ~@j 59 | name 60 | Toggle JSON Format 61 | output 62 | replaceselection 63 | scope 64 | inputfield 65 | tooltip 66 | Serialize or pretty print JSON data 67 | uuid 68 | 87FD8A4F-90AA-4020-9E0B-8CDD05764D08 69 | isDefaultBundle 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /core/WrapInDelimiter.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Query Editor 9 | command 10 | echo "DELIMITER \${0:;;}" 11 | echo "\${1:`cat`}\${1:\$0}" 12 | echo "DELIMITER ;" 13 | contact 14 | znvy@ovovxb.qr 15 | description 16 | Wrap the current query or the selection in DELIMITER inserted as snippet to allow to modify the default delimiter ;; 17 | 18 | Version 1.0 19 | input 20 | selectedtext 21 | input_fallback 22 | currentquery 23 | internalKeyEquivalent 24 | 25 | characters 26 | W 27 | keyCode 28 | 13 29 | modifierFlags 30 | 1835008 31 | 32 | keyEquivalent 33 | ^~@w 34 | name 35 | Wrap query/selection in DELIMITER 36 | output 37 | insertassnippet 38 | scope 39 | inputfield 40 | tooltip 41 | Wrap the current query or selection in DELIMITER ;; 42 | uuid 43 | A67BDE10-0A76-45C2-98DB-B35AC731E8DA 44 | isDefaultBundle 45 | 46 | 47 | 48 | --------------------------------------------------------------------------------