├── .gitignore ├── README.md ├── contributed ├── Base64 Decode.spBundle │ └── command.plist ├── Base64 Encode.spBundle │ └── command.plist ├── Copy as CSV.spBundle │ └── command.plist ├── Copy as Markdown.spBundle │ └── command.plist ├── CopyAsFlatXMLDataSet.spbundle │ └── command.plist ├── CopyAsHTML.spBundle │ └── command.plist ├── CopyAsWiki.spBundle │ └── command.plist ├── CopyAsYAML.spBundle │ ├── command.php │ ├── command.plist │ ├── composer.json │ ├── composer.lock │ └── vendor │ │ ├── autoload.php │ │ ├── composer │ │ ├── ClassLoader.php │ │ ├── autoload_classmap.php │ │ ├── autoload_namespaces.php │ │ ├── autoload_real.php │ │ └── installed.json │ │ └── symfony │ │ └── yaml │ │ └── Symfony │ │ └── Component │ │ └── Yaml │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── Dumper.php │ │ ├── Escaper.php │ │ ├── Exception │ │ ├── DumpException.php │ │ ├── ExceptionInterface.php │ │ ├── ParseException.php │ │ └── RuntimeException.php │ │ ├── Inline.php │ │ ├── LICENSE │ │ ├── Parser.php │ │ ├── README.md │ │ ├── Tests │ │ ├── DumperTest.php │ │ ├── Fixtures │ │ │ ├── YtsAnchorAlias.yml │ │ │ ├── YtsBasicTests.yml │ │ │ ├── YtsBlockMapping.yml │ │ │ ├── YtsDocumentSeparator.yml │ │ │ ├── YtsErrorTests.yml │ │ │ ├── YtsFlowCollections.yml │ │ │ ├── YtsFoldedScalars.yml │ │ │ ├── YtsNullsAndEmpties.yml │ │ │ ├── YtsSpecificationExamples.yml │ │ │ ├── YtsTypeTransfers.yml │ │ │ ├── embededPhp.yml │ │ │ ├── escapedCharacters.yml │ │ │ ├── index.yml │ │ │ ├── sfComments.yml │ │ │ ├── sfCompact.yml │ │ │ ├── sfMergeKey.yml │ │ │ ├── sfObjects.yml │ │ │ ├── sfQuotes.yml │ │ │ ├── sfTests.yml │ │ │ └── unindentedCollections.yml │ │ ├── InlineTest.php │ │ ├── ParserTest.php │ │ └── YamlTest.php │ │ ├── Unescaper.php │ │ ├── Yaml.php │ │ ├── composer.json │ │ └── phpunit.xml.dist ├── CopyIDs.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 ├── Lorem Ipsum Paragraph.spBundle │ └── command.plist └── Lorem Ipsum Two Words.spBundle │ └── command.plist └── core ├── CopyAsJSON.spBundle └── command.plist ├── CopySingleLineQuoted.spBundle └── command.plist ├── DB Report.spBundle ├── Support │ ├── header.html │ └── processTableData.pl └── command.plist ├── Explain Query.spBundle └── 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], [liviutudor][7], [markcarver][10], [borisguery][11] and [chandraonline][12]. Thanks guys! 21 | 22 | ### October 2011 23 | * Integrated bundle from [andrewfulton][5], thanks! 24 | 25 | ### June 2011 26 | * Add core bundles. 27 | 28 | Contact [Sequel Pro][3] on Twitter with any questions. 29 | 30 | [1]: http://sequelpro.com/ "Sequel Pro" 31 | [2]: http://sequelpro.com/bundles "Sequel Pro Bundles" 32 | [3]: http://twitter.com/sequelpro "Sequel Pro on Twitter" 33 | [4]: http://www.sequelpro.com/bundles/reference "Bundles Documentation" 34 | [5]: https://github.com/andrewfulton "Andrew Fulton" 35 | [6]: https://github.com/voxpelli "Pelle Wessman" 36 | [7]: https://github.com/liviutudor "Liviu Tudor" 37 | [8]: http://sequelpro.com/bundles/share "Share your Bundle" 38 | [9]: https://github.com/sequelpro/Bundles "Sequel Pro Bundles on github" 39 | [10]: https://github.com/markcarver "Mark Carver" 40 | [11]: https://github.com/borisguery "borisguery" 41 | [12]: https://github.com/chandraonline "chandraonline" -------------------------------------------------------------------------------- /contributed/Base64 Decode.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Koen Verheyen 7 | category 8 | Encode/Decode 9 | command 10 | #!/usr/bin/ruby 11 | 12 | # fetch selected text from STDIN 13 | selectedText = gets 14 | 15 | require 'base64' 16 | decoded = Base64.decode64(selectedText) 17 | 18 | print decoded 19 | 20 | contact 21 | uggcf://tvguho.pbz/ireurlraxbra 22 | defaultBundleWasModified 23 | 24 | description 25 | Base64 decodes the selected text. 26 | input 27 | selectedtext 28 | input_fallback 29 | entirecontent 30 | isDefaultBundle 31 | 32 | keyEquivalent 33 | 34 | name 35 | Base64 Decode 36 | output 37 | replaceselection 38 | scope 39 | inputfield 40 | uuid 41 | 69FCA611-516E-40EE-A6F0-9ECEBD53AAC1 42 | 43 | 44 | -------------------------------------------------------------------------------- /contributed/Base64 Encode.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Koen Verheyen 7 | category 8 | Encode/Decode 9 | command 10 | #!/usr/bin/ruby 11 | 12 | # fetch selected text from STDIN 13 | selectedText = gets 14 | 15 | require 'base64' 16 | decoded = Base64.encode64(selectedText) 17 | 18 | print decoded 19 | 20 | contact 21 | uggcf://tvguho.pbz/ireurlraxbra 22 | defaultBundleWasModified 23 | 24 | description 25 | Base64 encodes the selected text. 26 | input 27 | selectedtext 28 | input_fallback 29 | entirecontent 30 | isDefaultBundle 31 | 32 | keyEquivalent 33 | 34 | name 35 | Base64 Encode 36 | output 37 | replaceselection 38 | scope 39 | inputfield 40 | uuid 41 | 69FCA611-516E-40EE-A6F0-9ECEBD53AAC1 42 | 43 | 44 | -------------------------------------------------------------------------------- /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/Copy as Markdown.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | David Buxton 7 | category 8 | Copy 9 | command 10 | #!/usr/bin/python2.7 11 | 12 | import os 13 | import subprocess 14 | import sys 15 | 16 | # Force pasteboard to treat this text as UTF-8 encoded. 17 | os.environ['LANG'] = 'en_US.UTF-8' 18 | 19 | rows = [line.strip().split('\t') for line in sys.stdin] 20 | longest = [max(len(v) for v in col) for col in zip(*rows)] 21 | out_rows = [' | '.join(v.ljust(l) for l, v in zip(longest, row)) + ' |' for row in rows] 22 | out_rows.insert(1, '|'.join('-' * (l + 2) for l in longest)[1:] + '|') 23 | out_value = '\n'.join(out_rows) 24 | 25 | proc = subprocess.Popen(['/usr/bin/pbcopy'], stdin=subprocess.PIPE) 26 | proc.communicate(input=out_value) 27 | 28 | contact 29 | qnivq@tnfznex6.pbz 30 | description 31 | Generates a text table in Markdown format. The text is sent to the pasteboard. 32 | input 33 | selectedtablerowsastab 34 | name 35 | Copy as Markdown 36 | scope 37 | datatable 38 | uuid 39 | 0314E554-3CDB-49D2-93FC-A28231AC9BB9 40 | 41 | 42 | -------------------------------------------------------------------------------- /contributed/CopyAsFlatXMLDataSet.spbundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Chandra Siva 7 | category 8 | Copy 9 | command 10 | cat | perl -e ' 11 | use MIME::Base64; 12 | 13 | # read first line to get the column names (header) 14 | $firstLine = <>; 15 | 16 | # bail if nothing could read 17 | if(!defined($firstLine)) { 18 | exit 0; 19 | } 20 | 21 | # store the column names 22 | chomp($firstLine); 23 | $firstLine =~ s/\"/\\\"/g; # escape " 24 | @header = split(/\t/, $firstLine); 25 | 26 | $h_cnt = $#header; # number of columns 27 | 28 | # get the column definitions 29 | open(META, $ENV{"SP_BUNDLE_INPUT_TABLE_METADATA"}) or die $!; 30 | @meta = (); 31 | while(<META>) { 32 | chomp(); 33 | my @arr = split(/\t/); 34 | push @meta, \@arr; 35 | } 36 | close(META); 37 | 38 | # read row data of each selected row 39 | $rowData=<>; 40 | while($rowData) { 41 | 42 | #print "<" . $ENV{"SP_SELECTED_TABLE"} . " "; 43 | 44 | # remove line ending 45 | chomp($rowData); 46 | 47 | # escape " 48 | $rowData=~s/\"/\\\"/g; 49 | 50 | # split column data which are tab-delimited 51 | @data = split(/\t/, $rowData); 52 | $rowOut=""; 53 | $rowOut .= "<" . $ENV{"SP_SELECTED_TABLE"} . " "; 54 | for($i=0; $i<=$h_cnt; $i++) { 55 | 56 | # re-escape \t and \n 57 | $cellData = $data[$i]; 58 | $cellData =~ s/&/&amp;/g; 59 | $cellData =~ s/↵/\n/g; 60 | $cellData =~ s/⇥/\t/g; 61 | 62 | # check for data types 63 | next if($meta[$i]->[1] eq "textdata") ; 64 | next if($cellData eq "NULL") ; 65 | 66 | #print "$header[$i]="; 67 | $rowOut .= "$header[$i]="; 68 | 69 | if($meta[$i]->[1] eq "integer" || $meta[$i]->[1] eq "float") { 70 | chomp($cellData); 71 | $d = $cellData+0; 72 | #print "\"$d\""; 73 | $rowOut .= "\"$d\""; 74 | } else { 75 | chomp($cellData); 76 | #print "\"$cellData\""; 77 | $rowOut .= "\"$cellData\""; 78 | } 79 | 80 | # suppress last , 81 | if($i<$h_cnt) { 82 | #print " "; 83 | $rowOut .= " "; 84 | } 85 | } 86 | 87 | # get next row 88 | $rowData=<>; 89 | 90 | #print " />"; 91 | $rowOut .= " />"; 92 | print $rowOut; 93 | 94 | if($rowData) { 95 | print "\n"; 96 | } 97 | } 98 | 99 | print ""; 100 | 101 | ' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy 102 | contact 103 | rznvy@punaqenbayvar.arg 104 | defaultBundleWasModified 105 | 106 | description 107 | Copies the selected rows excluding any BLOB data in a data table FlatXMLDataSet formatted into the pasteboard. 108 | 109 | Version 1.0 110 | input 111 | selectedtablerowsastab 112 | internalKeyEquivalent 113 | 114 | characters 115 | C 116 | keyCode 117 | 8 118 | modifierFlags 119 | 262144 120 | 121 | isDefaultBundle 122 | 123 | keyEquivalent 124 | ^c 125 | name 126 | Copy as FlatXMLDataSet 127 | output 128 | none 129 | scope 130 | datatable 131 | tooltip 132 | Copies the selected rows excluding any BLOB data FlatXMLDataSet formatted into the pasteboard 133 | uuid 134 | 4CC7DB8E-6110-11E1-B696-080027372F5E 135 | 136 | 137 | -------------------------------------------------------------------------------- /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/CopyAsYAML.spBundle/command.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Dmitry Chirkin 7 | category 8 | 9 | command 10 | cat | php command.php | pbcopy 11 | contact 12 | qzvgel.puvexva@tznvy.pbz 13 | defaultBundleWasModified 14 | 15 | description 16 | Copies the selected rows excluding any BLOB data in a data table YAML formatted into the pasteboard. 17 | 18 | Version 1.0 19 | input 20 | selectedtablerowsascsv 21 | isDefaultBundle 22 | 23 | keyEquivalent 24 | 25 | name 26 | Copy as YAML 27 | output 28 | none 29 | scope 30 | datatable 31 | tooltip 32 | Copies the selected rows excluding any BLOB data YAML formatted into the pasteboard 33 | uuid 34 | D2050275-0FEF-415F-9E5D-B4DE06B13748 35 | 36 | 37 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "josser/copy-as-yaml.sp-bundle", 3 | "description": "Sequle Pro bundle to copy data from tables as YAML structures", 4 | "require": { 5 | "symfony/yaml": "2.3.*" 6 | }, 7 | "license": "BSD", 8 | "authors": [ 9 | { 10 | "name": "Dmitry Chirkin", 11 | "email": "dmitry.chirkin@gmail.com" 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/composer.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_readme": [ 3 | "This file locks the dependencies of your project to a known state", 4 | "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" 5 | ], 6 | "hash": "b674767620c0ab53349c2bc5123ccc65", 7 | "packages": [ 8 | { 9 | "name": "symfony/yaml", 10 | "version": "v2.3.1", 11 | "target-dir": "Symfony/Component/Yaml", 12 | "source": { 13 | "type": "git", 14 | "url": "https://github.com/symfony/Yaml.git", 15 | "reference": "v2.3.1" 16 | }, 17 | "dist": { 18 | "type": "zip", 19 | "url": "https://api.github.com/repos/symfony/Yaml/zipball/v2.3.1", 20 | "reference": "v2.3.1", 21 | "shasum": "" 22 | }, 23 | "require": { 24 | "php": ">=5.3.3" 25 | }, 26 | "type": "library", 27 | "extra": { 28 | "branch-alias": { 29 | "dev-master": "2.3-dev" 30 | } 31 | }, 32 | "autoload": { 33 | "psr-0": { 34 | "Symfony\\Component\\Yaml\\": "" 35 | } 36 | }, 37 | "notification-url": "https://packagist.org/downloads/", 38 | "license": [ 39 | "MIT" 40 | ], 41 | "authors": [ 42 | { 43 | "name": "Fabien Potencier", 44 | "email": "fabien@symfony.com" 45 | }, 46 | { 47 | "name": "Symfony Community", 48 | "homepage": "http://symfony.com/contributors" 49 | } 50 | ], 51 | "description": "Symfony Yaml Component", 52 | "homepage": "http://symfony.com", 53 | "time": "2013-05-10 18:12:13" 54 | } 55 | ], 56 | "packages-dev": [ 57 | 58 | ], 59 | "aliases": [ 60 | 61 | ], 62 | "minimum-stability": "stable", 63 | "stability-flags": [ 64 | 65 | ], 66 | "platform": [ 67 | 68 | ], 69 | "platform-dev": [ 70 | 71 | ] 72 | } 73 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/autoload.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/symfony/yaml'), 10 | ); 11 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/composer/autoload_real.php: -------------------------------------------------------------------------------- 1 | $path) { 31 | $loader->set($namespace, $path); 32 | } 33 | 34 | $classMap = require __DIR__ . '/autoload_classmap.php'; 35 | if ($classMap) { 36 | $loader->addClassMap($classMap); 37 | } 38 | 39 | $loader->register(true); 40 | 41 | return $loader; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/composer/installed.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "symfony/yaml", 4 | "version": "v2.3.1", 5 | "version_normalized": "2.3.1.0", 6 | "target-dir": "Symfony/Component/Yaml", 7 | "source": { 8 | "type": "git", 9 | "url": "https://github.com/symfony/Yaml.git", 10 | "reference": "v2.3.1" 11 | }, 12 | "dist": { 13 | "type": "zip", 14 | "url": "https://api.github.com/repos/symfony/Yaml/zipball/v2.3.1", 15 | "reference": "v2.3.1", 16 | "shasum": "" 17 | }, 18 | "require": { 19 | "php": ">=5.3.3" 20 | }, 21 | "time": "2013-05-10 18:12:13", 22 | "type": "library", 23 | "extra": { 24 | "branch-alias": { 25 | "dev-master": "2.3-dev" 26 | } 27 | }, 28 | "installation-source": "dist", 29 | "autoload": { 30 | "psr-0": { 31 | "Symfony\\Component\\Yaml\\": "" 32 | } 33 | }, 34 | "notification-url": "https://packagist.org/downloads/", 35 | "license": [ 36 | "MIT" 37 | ], 38 | "authors": [ 39 | { 40 | "name": "Fabien Potencier", 41 | "email": "fabien@symfony.com" 42 | }, 43 | { 44 | "name": "Symfony Community", 45 | "homepage": "http://symfony.com/contributors" 46 | } 47 | ], 48 | "description": "Symfony Yaml Component", 49 | "homepage": "http://symfony.com" 50 | } 51 | ] 52 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | phpunit.xml 4 | 5 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | CHANGELOG 2 | ========= 3 | 4 | 2.1.0 5 | ----- 6 | 7 | * Yaml::parse() does not evaluate loaded files as PHP files by default 8 | anymore (call Yaml::enablePhpParsing() to get back the old behavior) 9 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Dumper.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml; 13 | 14 | /** 15 | * Dumper dumps PHP variables to YAML strings. 16 | * 17 | * @author Fabien Potencier 18 | */ 19 | class Dumper 20 | { 21 | /** 22 | * The amount of spaces to use for indentation of nested nodes. 23 | * 24 | * @var integer 25 | */ 26 | protected $indentation = 4; 27 | 28 | /** 29 | * Sets the indentation. 30 | * 31 | * @param integer $num The amount of spaces to use for indentation of nested nodes. 32 | */ 33 | public function setIndentation($num) 34 | { 35 | $this->indentation = (int) $num; 36 | } 37 | 38 | /** 39 | * Dumps a PHP value to YAML. 40 | * 41 | * @param mixed $input The PHP value 42 | * @param integer $inline The level where you switch to inline YAML 43 | * @param integer $indent The level of indentation (used internally) 44 | * @param Boolean $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise 45 | * @param Boolean $objectSupport true if object support is enabled, false otherwise 46 | * 47 | * @return string The YAML representation of the PHP value 48 | */ 49 | public function dump($input, $inline = 0, $indent = 0, $exceptionOnInvalidType = false, $objectSupport = false) 50 | { 51 | $output = ''; 52 | $prefix = $indent ? str_repeat(' ', $indent) : ''; 53 | 54 | if ($inline <= 0 || !is_array($input) || empty($input)) { 55 | $output .= $prefix.Inline::dump($input, $exceptionOnInvalidType, $objectSupport); 56 | } else { 57 | $isAHash = array_keys($input) !== range(0, count($input) - 1); 58 | 59 | foreach ($input as $key => $value) { 60 | $willBeInlined = $inline - 1 <= 0 || !is_array($value) || empty($value); 61 | 62 | $output .= sprintf('%s%s%s%s', 63 | $prefix, 64 | $isAHash ? Inline::dump($key, $exceptionOnInvalidType, $objectSupport).':' : '-', 65 | $willBeInlined ? ' ' : "\n", 66 | $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $exceptionOnInvalidType, $objectSupport) 67 | ).($willBeInlined ? "\n" : ''); 68 | } 69 | } 70 | 71 | return $output; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace Symfony\Component\Yaml; 12 | 13 | /** 14 | * Escaper encapsulates escaping rules for single and double-quoted 15 | * YAML strings. 16 | * 17 | * @author Matthew Lewinski 18 | */ 19 | class Escaper 20 | { 21 | // Characters that would cause a dumped string to require double quoting. 22 | const REGEX_CHARACTER_TO_ESCAPE = "[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9"; 23 | 24 | // Mapping arrays for escaping a double quoted string. The backslash is 25 | // first to ensure proper escaping because str_replace operates iteratively 26 | // on the input arrays. This ordering of the characters avoids the use of strtr, 27 | // which performs more slowly. 28 | private static $escapees = array('\\\\', '\\"', '"', 29 | "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", 30 | "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f", 31 | "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", 32 | "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", 33 | "\xc2\x85", "\xc2\xa0", "\xe2\x80\xa8", "\xe2\x80\xa9"); 34 | private static $escaped = array('\\"', '\\\\', '\\"', 35 | "\\0", "\\x01", "\\x02", "\\x03", "\\x04", "\\x05", "\\x06", "\\a", 36 | "\\b", "\\t", "\\n", "\\v", "\\f", "\\r", "\\x0e", "\\x0f", 37 | "\\x10", "\\x11", "\\x12", "\\x13", "\\x14", "\\x15", "\\x16", "\\x17", 38 | "\\x18", "\\x19", "\\x1a", "\\e", "\\x1c", "\\x1d", "\\x1e", "\\x1f", 39 | "\\N", "\\_", "\\L", "\\P"); 40 | 41 | /** 42 | * Determines if a PHP value would require double quoting in YAML. 43 | * 44 | * @param string $value A PHP value 45 | * 46 | * @return Boolean True if the value would require double quotes. 47 | */ 48 | public static function requiresDoubleQuoting($value) 49 | { 50 | return preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value); 51 | } 52 | 53 | /** 54 | * Escapes and surrounds a PHP value with double quotes. 55 | * 56 | * @param string $value A PHP value 57 | * 58 | * @return string The quoted, escaped string 59 | */ 60 | public static function escapeWithDoubleQuotes($value) 61 | { 62 | return sprintf('"%s"', str_replace(self::$escapees, self::$escaped, $value)); 63 | } 64 | 65 | /** 66 | * Determines if a PHP value would require single quoting in YAML. 67 | * 68 | * @param string $value A PHP value 69 | * 70 | * @return Boolean True if the value would require single quotes. 71 | */ 72 | public static function requiresSingleQuoting($value) 73 | { 74 | return preg_match('/[ \s \' " \: \{ \} \[ \] , & \* \# \?] | \A[ - ? | < > = ! % @ ` ]/x', $value); 75 | } 76 | 77 | /** 78 | * Escapes and surrounds a PHP value with single quotes. 79 | * 80 | * @param string $value A PHP value 81 | * 82 | * @return string The quoted, escaped string 83 | */ 84 | public static function escapeWithSingleQuotes($value) 85 | { 86 | return sprintf("'%s'", str_replace('\'', '\'\'', $value)); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/DumpException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Exception; 13 | 14 | /** 15 | * Exception class thrown when an error occurs during dumping. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @api 20 | */ 21 | class DumpException extends RuntimeException 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ExceptionInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Exception; 13 | 14 | /** 15 | * Exception interface for all exceptions thrown by the component. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @api 20 | */ 21 | interface ExceptionInterface 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Exception; 13 | 14 | /** 15 | * Exception class thrown when an error occurs during parsing. 16 | * 17 | * @author Fabien Potencier 18 | * 19 | * @api 20 | */ 21 | class ParseException extends RuntimeException 22 | { 23 | private $parsedFile; 24 | private $parsedLine; 25 | private $snippet; 26 | private $rawMessage; 27 | 28 | /** 29 | * Constructor. 30 | * 31 | * @param string $message The error message 32 | * @param integer $parsedLine The line where the error occurred 33 | * @param integer $snippet The snippet of code near the problem 34 | * @param string $parsedFile The file name where the error occurred 35 | * @param Exception $previous The previous exception 36 | */ 37 | public function __construct($message, $parsedLine = -1, $snippet = null, $parsedFile = null, Exception $previous = null) 38 | { 39 | $this->parsedFile = $parsedFile; 40 | $this->parsedLine = $parsedLine; 41 | $this->snippet = $snippet; 42 | $this->rawMessage = $message; 43 | 44 | $this->updateRepr(); 45 | 46 | parent::__construct($this->message, 0, $previous); 47 | } 48 | 49 | /** 50 | * Gets the snippet of code near the error. 51 | * 52 | * @return string The snippet of code 53 | */ 54 | public function getSnippet() 55 | { 56 | return $this->snippet; 57 | } 58 | 59 | /** 60 | * Sets the snippet of code near the error. 61 | * 62 | * @param string $snippet The code snippet 63 | */ 64 | public function setSnippet($snippet) 65 | { 66 | $this->snippet = $snippet; 67 | 68 | $this->updateRepr(); 69 | } 70 | 71 | /** 72 | * Gets the filename where the error occurred. 73 | * 74 | * This method returns null if a string is parsed. 75 | * 76 | * @return string The filename 77 | */ 78 | public function getParsedFile() 79 | { 80 | return $this->parsedFile; 81 | } 82 | 83 | /** 84 | * Sets the filename where the error occurred. 85 | * 86 | * @param string $parsedFile The filename 87 | */ 88 | public function setParsedFile($parsedFile) 89 | { 90 | $this->parsedFile = $parsedFile; 91 | 92 | $this->updateRepr(); 93 | } 94 | 95 | /** 96 | * Gets the line where the error occurred. 97 | * 98 | * @return integer The file line 99 | */ 100 | public function getParsedLine() 101 | { 102 | return $this->parsedLine; 103 | } 104 | 105 | /** 106 | * Sets the line where the error occurred. 107 | * 108 | * @param integer $parsedLine The file line 109 | */ 110 | public function setParsedLine($parsedLine) 111 | { 112 | $this->parsedLine = $parsedLine; 113 | 114 | $this->updateRepr(); 115 | } 116 | 117 | private function updateRepr() 118 | { 119 | $this->message = $this->rawMessage; 120 | 121 | $dot = false; 122 | if ('.' === substr($this->message, -1)) { 123 | $this->message = substr($this->message, 0, -1); 124 | $dot = true; 125 | } 126 | 127 | if (null !== $this->parsedFile) { 128 | $this->message .= sprintf(' in %s', json_encode($this->parsedFile)); 129 | } 130 | 131 | if ($this->parsedLine >= 0) { 132 | $this->message .= sprintf(' at line %d', $this->parsedLine); 133 | } 134 | 135 | if ($this->snippet) { 136 | $this->message .= sprintf(' (near "%s")', $this->snippet); 137 | } 138 | 139 | if ($dot) { 140 | $this->message .= '.'; 141 | } 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Exception/RuntimeException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Exception; 13 | 14 | /** 15 | * Exception class thrown when an error occurs during parsing. 16 | * 17 | * @author Romain Neutron 18 | * 19 | * @api 20 | */ 21 | class RuntimeException extends \RuntimeException implements ExceptionInterface 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2013 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/README.md: -------------------------------------------------------------------------------- 1 | Yaml Component 2 | ============== 3 | 4 | YAML implements most of the YAML 1.2 specification. 5 | 6 | use Symfony\Component\Yaml\Yaml; 7 | 8 | $array = Yaml::parse($file); 9 | 10 | print Yaml::dump($array); 11 | 12 | Resources 13 | --------- 14 | 15 | You can run the unit tests with the following command: 16 | 17 | $ cd path/to/Symfony/Component/Yaml/ 18 | $ composer.phar install --dev 19 | $ phpunit 20 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/DumperTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Tests; 13 | 14 | use Symfony\Component\Yaml\Yaml; 15 | use Symfony\Component\Yaml\Parser; 16 | use Symfony\Component\Yaml\Dumper; 17 | 18 | class DumperTest extends \PHPUnit_Framework_TestCase 19 | { 20 | protected $parser; 21 | protected $dumper; 22 | protected $path; 23 | 24 | protected $array = array( 25 | '' => 'bar', 26 | 'foo' => '#bar', 27 | 'foo\'bar' => array(), 28 | 'bar' => array(1, 'foo'), 29 | 'foobar' => array( 30 | 'foo' => 'bar', 31 | 'bar' => array(1, 'foo'), 32 | 'foobar' => array( 33 | 'foo' => 'bar', 34 | 'bar' => array(1, 'foo'), 35 | ), 36 | ), 37 | ); 38 | 39 | protected function setUp() 40 | { 41 | $this->parser = new Parser(); 42 | $this->dumper = new Dumper(); 43 | $this->path = __DIR__.'/Fixtures'; 44 | } 45 | 46 | protected function tearDown() 47 | { 48 | $this->parser = null; 49 | $this->dumper = null; 50 | $this->path = null; 51 | $this->array = null; 52 | } 53 | 54 | public function testSetIndentation() 55 | { 56 | $this->dumper->setIndentation(7); 57 | 58 | $expected = <<assertEquals($expected, $this->dumper->dump($this->array, 4, 0)); 78 | } 79 | 80 | public function testSpecifications() 81 | { 82 | $files = $this->parser->parse(file_get_contents($this->path.'/index.yml')); 83 | foreach ($files as $file) { 84 | $yamls = file_get_contents($this->path.'/'.$file.'.yml'); 85 | 86 | // split YAMLs documents 87 | foreach (preg_split('/^---( %YAML\:1\.0)?/m', $yamls) as $yaml) { 88 | if (!$yaml) { 89 | continue; 90 | } 91 | 92 | $test = $this->parser->parse($yaml); 93 | if (isset($test['dump_skip']) && $test['dump_skip']) { 94 | continue; 95 | } elseif (isset($test['todo']) && $test['todo']) { 96 | // TODO 97 | } else { 98 | $expected = eval('return '.trim($test['php']).';'); 99 | 100 | $this->assertEquals($expected, $this->parser->parse($this->dumper->dump($expected, 10)), $test['test']); 101 | } 102 | } 103 | } 104 | } 105 | 106 | public function testInlineLevel() 107 | { 108 | $expected = <<assertEquals($expected, $this->dumper->dump($this->array, -10), '->dump() takes an inline level argument'); 112 | $this->assertEquals($expected, $this->dumper->dump($this->array, 0), '->dump() takes an inline level argument'); 113 | 114 | $expected = <<assertEquals($expected, $this->dumper->dump($this->array, 1), '->dump() takes an inline level argument'); 123 | 124 | $expected = <<assertEquals($expected, $this->dumper->dump($this->array, 2), '->dump() takes an inline level argument'); 138 | 139 | $expected = <<assertEquals($expected, $this->dumper->dump($this->array, 3), '->dump() takes an inline level argument'); 157 | 158 | $expected = <<assertEquals($expected, $this->dumper->dump($this->array, 4), '->dump() takes an inline level argument'); 178 | $this->assertEquals($expected, $this->dumper->dump($this->array, 10), '->dump() takes an inline level argument'); 179 | } 180 | 181 | public function testObjectSupportEnabled() 182 | { 183 | $dump = $this->dumper->dump(array('foo' => new A(), 'bar' => 1), 0, 0, false, true); 184 | 185 | $this->assertEquals('{ foo: !!php/object:O:30:"Symfony\Component\Yaml\Tests\A":1:{s:1:"a";s:3:"foo";}, bar: 1 }', $dump, '->dump() is able to dump objects'); 186 | } 187 | 188 | public function testObjectSupportDisabledButNoExceptions() 189 | { 190 | $dump = $this->dumper->dump(array('foo' => new A(), 'bar' => 1)); 191 | 192 | $this->assertEquals('{ foo: null, bar: 1 }', $dump, '->dump() does not dump objects when disabled'); 193 | } 194 | 195 | /** 196 | * @expectedException \Symfony\Component\Yaml\Exception\DumpException 197 | */ 198 | public function testObjectSupportDisabledWithExceptions() 199 | { 200 | $this->dumper->dump(array('foo' => new A(), 'bar' => 1), 0, 0, true, false); 201 | } 202 | } 203 | 204 | class A 205 | { 206 | public $a = 'foo'; 207 | } 208 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsAnchorAlias.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Simple Alias Example 3 | brief: > 4 | If you need to refer to the same item of data twice, 5 | you can give that item an alias. The alias is a plain 6 | string, starting with an ampersand. The item may then 7 | be referred to by the alias throughout your document 8 | by using an asterisk before the name of the alias. 9 | This is called an anchor. 10 | yaml: | 11 | - &showell Steve 12 | - Clark 13 | - Brian 14 | - Oren 15 | - *showell 16 | php: | 17 | array('Steve', 'Clark', 'Brian', 'Oren', 'Steve') 18 | 19 | --- 20 | test: Alias of a Mapping 21 | brief: > 22 | An alias can be used on any item of data, including 23 | sequences, mappings, and other complex data types. 24 | yaml: | 25 | - &hello 26 | Meat: pork 27 | Starch: potato 28 | - banana 29 | - *hello 30 | php: | 31 | array(array('Meat'=>'pork', 'Starch'=>'potato'), 'banana', array('Meat'=>'pork', 'Starch'=>'potato')) 32 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBasicTests.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Simple Sequence 3 | brief: | 4 | You can specify a list in YAML by placing each 5 | member of the list on a new line with an opening 6 | dash. These lists are called sequences. 7 | yaml: | 8 | - apple 9 | - banana 10 | - carrot 11 | php: | 12 | array('apple', 'banana', 'carrot') 13 | --- 14 | test: Nested Sequences 15 | brief: | 16 | You can include a sequence within another 17 | sequence by giving the sequence an empty 18 | dash, followed by an indented list. 19 | yaml: | 20 | - 21 | - foo 22 | - bar 23 | - baz 24 | php: | 25 | array(array('foo', 'bar', 'baz')) 26 | --- 27 | test: Mixed Sequences 28 | brief: | 29 | Sequences can contain any YAML data, 30 | including strings and other sequences. 31 | yaml: | 32 | - apple 33 | - 34 | - foo 35 | - bar 36 | - x123 37 | - banana 38 | - carrot 39 | php: | 40 | array('apple', array('foo', 'bar', 'x123'), 'banana', 'carrot') 41 | --- 42 | test: Deeply Nested Sequences 43 | brief: | 44 | Sequences can be nested even deeper, with each 45 | level of indentation representing a level of 46 | depth. 47 | yaml: | 48 | - 49 | - 50 | - uno 51 | - dos 52 | php: | 53 | array(array(array('uno', 'dos'))) 54 | --- 55 | test: Simple Mapping 56 | brief: | 57 | You can add a keyed list (also known as a dictionary or 58 | hash) to your document by placing each member of the 59 | list on a new line, with a colon seperating the key 60 | from its value. In YAML, this type of list is called 61 | a mapping. 62 | yaml: | 63 | foo: whatever 64 | bar: stuff 65 | php: | 66 | array('foo' => 'whatever', 'bar' => 'stuff') 67 | --- 68 | test: Sequence in a Mapping 69 | brief: | 70 | A value in a mapping can be a sequence. 71 | yaml: | 72 | foo: whatever 73 | bar: 74 | - uno 75 | - dos 76 | php: | 77 | array('foo' => 'whatever', 'bar' => array('uno', 'dos')) 78 | --- 79 | test: Nested Mappings 80 | brief: | 81 | A value in a mapping can be another mapping. 82 | yaml: | 83 | foo: whatever 84 | bar: 85 | fruit: apple 86 | name: steve 87 | sport: baseball 88 | php: | 89 | array( 90 | 'foo' => 'whatever', 91 | 'bar' => array( 92 | 'fruit' => 'apple', 93 | 'name' => 'steve', 94 | 'sport' => 'baseball' 95 | ) 96 | ) 97 | --- 98 | test: Mixed Mapping 99 | brief: | 100 | A mapping can contain any assortment 101 | of mappings and sequences as values. 102 | yaml: | 103 | foo: whatever 104 | bar: 105 | - 106 | fruit: apple 107 | name: steve 108 | sport: baseball 109 | - more 110 | - 111 | python: rocks 112 | perl: papers 113 | ruby: scissorses 114 | php: | 115 | array( 116 | 'foo' => 'whatever', 117 | 'bar' => array( 118 | array( 119 | 'fruit' => 'apple', 120 | 'name' => 'steve', 121 | 'sport' => 'baseball' 122 | ), 123 | 'more', 124 | array( 125 | 'python' => 'rocks', 126 | 'perl' => 'papers', 127 | 'ruby' => 'scissorses' 128 | ) 129 | ) 130 | ) 131 | --- 132 | test: Mapping-in-Sequence Shortcut 133 | todo: true 134 | brief: | 135 | If you are adding a mapping to a sequence, you 136 | can place the mapping on the same line as the 137 | dash as a shortcut. 138 | yaml: | 139 | - work on YAML.py: 140 | - work on Store 141 | php: | 142 | array(array('work on YAML.py' => array('work on Store'))) 143 | --- 144 | test: Sequence-in-Mapping Shortcut 145 | todo: true 146 | brief: | 147 | The dash in a sequence counts as indentation, so 148 | you can add a sequence inside of a mapping without 149 | needing spaces as indentation. 150 | yaml: | 151 | allow: 152 | - 'localhost' 153 | - '%.sourceforge.net' 154 | - '%.freepan.org' 155 | php: | 156 | array('allow' => array('localhost', '%.sourceforge.net', '%.freepan.org')) 157 | --- 158 | todo: true 159 | test: Merge key 160 | brief: | 161 | A merge key ('<<') can be used in a mapping to insert other mappings. If 162 | the value associated with the merge key is a mapping, each of its key/value 163 | pairs is inserted into the current mapping. 164 | yaml: | 165 | mapping: 166 | name: Joe 167 | job: Accountant 168 | <<: 169 | age: 38 170 | php: | 171 | array( 172 | 'mapping' => 173 | array( 174 | 'name' => 'Joe', 175 | 'job' => 'Accountant', 176 | 'age' => 38 177 | ) 178 | ) 179 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsBlockMapping.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test: One Element Mapping 3 | brief: | 4 | A mapping with one key/value pair 5 | yaml: | 6 | foo: bar 7 | php: | 8 | array('foo' => 'bar') 9 | --- 10 | test: Multi Element Mapping 11 | brief: | 12 | More than one key/value pair 13 | yaml: | 14 | red: baron 15 | white: walls 16 | blue: berries 17 | php: | 18 | array( 19 | 'red' => 'baron', 20 | 'white' => 'walls', 21 | 'blue' => 'berries', 22 | ) 23 | --- 24 | test: Values aligned 25 | brief: | 26 | Often times human editors of documents will align the values even 27 | though YAML emitters generally don't. 28 | yaml: | 29 | red: baron 30 | white: walls 31 | blue: berries 32 | php: | 33 | array( 34 | 'red' => 'baron', 35 | 'white' => 'walls', 36 | 'blue' => 'berries', 37 | ) 38 | --- 39 | test: Colons aligned 40 | brief: | 41 | Spaces can come before the ': ' key/value separator. 42 | yaml: | 43 | red : baron 44 | white : walls 45 | blue : berries 46 | php: | 47 | array( 48 | 'red' => 'baron', 49 | 'white' => 'walls', 50 | 'blue' => 'berries', 51 | ) 52 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsDocumentSeparator.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Trailing Document Separator 3 | todo: true 4 | brief: > 5 | You can separate YAML documents 6 | with a string of three dashes. 7 | yaml: | 8 | - foo: 1 9 | bar: 2 10 | --- 11 | more: stuff 12 | python: | 13 | [ 14 | [ { 'foo': 1, 'bar': 2 } ], 15 | { 'more': 'stuff' } 16 | ] 17 | ruby: | 18 | [ { 'foo' => 1, 'bar' => 2 } ] 19 | 20 | --- 21 | test: Leading Document Separator 22 | todo: true 23 | brief: > 24 | You can explicity give an opening 25 | document separator to your YAML stream. 26 | yaml: | 27 | --- 28 | - foo: 1 29 | bar: 2 30 | --- 31 | more: stuff 32 | python: | 33 | [ 34 | [ {'foo': 1, 'bar': 2}], 35 | {'more': 'stuff'} 36 | ] 37 | ruby: | 38 | [ { 'foo' => 1, 'bar' => 2 } ] 39 | 40 | --- 41 | test: YAML Header 42 | todo: true 43 | brief: > 44 | The opening separator can contain directives 45 | to the YAML parser, such as the version 46 | number. 47 | yaml: | 48 | --- %YAML:1.0 49 | foo: 1 50 | bar: 2 51 | php: | 52 | array('foo' => 1, 'bar' => 2) 53 | documents: 1 54 | 55 | --- 56 | test: Red Herring Document Separator 57 | brief: > 58 | Separators included in blocks or strings 59 | are treated as blocks or strings, as the 60 | document separator should have no indentation 61 | preceding it. 62 | yaml: | 63 | foo: | 64 | --- 65 | php: | 66 | array('foo' => "---\n") 67 | 68 | --- 69 | test: Multiple Document Separators in Block 70 | brief: > 71 | This technique allows you to embed other YAML 72 | documents within literal blocks. 73 | yaml: | 74 | foo: | 75 | --- 76 | foo: bar 77 | --- 78 | yo: baz 79 | bar: | 80 | fooness 81 | php: | 82 | array( 83 | 'foo' => "---\nfoo: bar\n---\nyo: baz\n", 84 | 'bar' => "fooness\n" 85 | ) 86 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsErrorTests.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test: Missing value for hash item 3 | todo: true 4 | brief: | 5 | Third item in this hash doesn't have a value 6 | yaml: | 7 | okay: value 8 | also okay: ~ 9 | causes error because no value specified 10 | last key: value okay here too 11 | python-error: causes error because no value specified 12 | 13 | --- 14 | test: Not indenting enough 15 | brief: | 16 | There was a bug in PyYaml where it was off by one 17 | in the indentation check. It was allowing the YAML 18 | below. 19 | # This is actually valid YAML now. Someone should tell showell. 20 | yaml: | 21 | foo: 22 | firstline: 1 23 | secondline: 2 24 | php: | 25 | array('foo' => null, 'firstline' => 1, 'secondline' => 2) 26 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsFlowCollections.yml: -------------------------------------------------------------------------------- 1 | --- 2 | test: Simple Inline Array 3 | brief: > 4 | Sequences can be contained on a 5 | single line, using the inline syntax. 6 | Separate each entry with commas and 7 | enclose in square brackets. 8 | yaml: | 9 | seq: [ a, b, c ] 10 | php: | 11 | array('seq' => array('a', 'b', 'c')) 12 | --- 13 | test: Simple Inline Hash 14 | brief: > 15 | Mapping can also be contained on 16 | a single line, using the inline 17 | syntax. Each key-value pair is 18 | separated by a colon, with a comma 19 | between each entry in the mapping. 20 | Enclose with curly braces. 21 | yaml: | 22 | hash: { name: Steve, foo: bar } 23 | php: | 24 | array('hash' => array('name' => 'Steve', 'foo' => 'bar')) 25 | --- 26 | test: Multi-line Inline Collections 27 | todo: true 28 | brief: > 29 | Both inline sequences and inline mappings 30 | can span multiple lines, provided that you 31 | indent the additional lines. 32 | yaml: | 33 | languages: [ Ruby, 34 | Perl, 35 | Python ] 36 | websites: { YAML: yaml.org, 37 | Ruby: ruby-lang.org, 38 | Python: python.org, 39 | Perl: use.perl.org } 40 | php: | 41 | array( 42 | 'languages' => array('Ruby', 'Perl', 'Python'), 43 | 'websites' => array( 44 | 'YAML' => 'yaml.org', 45 | 'Ruby' => 'ruby-lang.org', 46 | 'Python' => 'python.org', 47 | 'Perl' => 'use.perl.org' 48 | ) 49 | ) 50 | --- 51 | test: Commas in Values (not in the spec!) 52 | todo: true 53 | brief: > 54 | List items in collections are delimited by commas, but 55 | there must be a space after each comma. This allows you 56 | to add numbers without quoting. 57 | yaml: | 58 | attendances: [ 45,123, 70,000, 17,222 ] 59 | php: | 60 | array('attendances' => array(45123, 70000, 17222)) 61 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsFoldedScalars.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Single ending newline 3 | brief: > 4 | A pipe character, followed by an indented 5 | block of text is treated as a literal 6 | block, in which newlines are preserved 7 | throughout the block, including the final 8 | newline. 9 | yaml: | 10 | --- 11 | this: | 12 | Foo 13 | Bar 14 | php: | 15 | array('this' => "Foo\nBar\n") 16 | --- 17 | test: The '+' indicator 18 | brief: > 19 | The '+' indicator says to keep newlines at the end of text 20 | blocks. 21 | yaml: | 22 | normal: | 23 | extra new lines not kept 24 | 25 | preserving: |+ 26 | extra new lines are kept 27 | 28 | 29 | dummy: value 30 | php: | 31 | array( 32 | 'normal' => "extra new lines not kept\n", 33 | 'preserving' => "extra new lines are kept\n\n\n", 34 | 'dummy' => 'value' 35 | ) 36 | --- 37 | test: Three trailing newlines in literals 38 | brief: > 39 | To give you more control over how space 40 | is preserved in text blocks, YAML has 41 | the keep '+' and chomp '-' indicators. 42 | The keep indicator will preserve all 43 | ending newlines, while the chomp indicator 44 | will strip all ending newlines. 45 | yaml: | 46 | clipped: | 47 | This has one newline. 48 | 49 | 50 | 51 | same as "clipped" above: "This has one newline.\n" 52 | 53 | stripped: |- 54 | This has no newline. 55 | 56 | 57 | 58 | same as "stripped" above: "This has no newline." 59 | 60 | kept: |+ 61 | This has four newlines. 62 | 63 | 64 | 65 | same as "kept" above: "This has four newlines.\n\n\n\n" 66 | php: | 67 | array( 68 | 'clipped' => "This has one newline.\n", 69 | 'same as "clipped" above' => "This has one newline.\n", 70 | 'stripped' => 'This has no newline.', 71 | 'same as "stripped" above' => 'This has no newline.', 72 | 'kept' => "This has four newlines.\n\n\n\n", 73 | 'same as "kept" above' => "This has four newlines.\n\n\n\n" 74 | ) 75 | --- 76 | test: Extra trailing newlines with spaces 77 | todo: true 78 | brief: > 79 | Normally, only a single newline is kept 80 | from the end of a literal block, unless the 81 | keep '+' character is used in combination 82 | with the pipe. The following example 83 | will preserve all ending whitespace 84 | since the last line of both literal blocks 85 | contains spaces which extend past the indentation 86 | level. 87 | yaml: | 88 | --- 89 | this: | 90 | Foo 91 | 92 | 93 | kept: |+ 94 | Foo 95 | 96 | 97 | php: | 98 | array('this' => "Foo\n\n \n", 99 | 'kept' => "Foo\n\n \n" ) 100 | 101 | --- 102 | test: Folded Block in a Sequence 103 | brief: > 104 | A greater-then character, followed by an indented 105 | block of text is treated as a folded block, in 106 | which lines of text separated by a single newline 107 | are concatenated as a single line. 108 | yaml: | 109 | --- 110 | - apple 111 | - banana 112 | - > 113 | can't you see 114 | the beauty of yaml? 115 | hmm 116 | - dog 117 | php: | 118 | array( 119 | 'apple', 120 | 'banana', 121 | "can't you see the beauty of yaml? hmm\n", 122 | 'dog' 123 | ) 124 | --- 125 | test: Folded Block as a Mapping Value 126 | brief: > 127 | Both literal and folded blocks can be 128 | used in collections, as values in a 129 | sequence or a mapping. 130 | yaml: | 131 | --- 132 | quote: > 133 | Mark McGwire's 134 | year was crippled 135 | by a knee injury. 136 | source: espn 137 | php: | 138 | array( 139 | 'quote' => "Mark McGwire's year was crippled by a knee injury.\n", 140 | 'source' => 'espn' 141 | ) 142 | --- 143 | test: Three trailing newlines in folded blocks 144 | brief: > 145 | The keep and chomp indicators can also 146 | be applied to folded blocks. 147 | yaml: | 148 | clipped: > 149 | This has one newline. 150 | 151 | 152 | 153 | same as "clipped" above: "This has one newline.\n" 154 | 155 | stripped: >- 156 | This has no newline. 157 | 158 | 159 | 160 | same as "stripped" above: "This has no newline." 161 | 162 | kept: >+ 163 | This has four newlines. 164 | 165 | 166 | 167 | same as "kept" above: "This has four newlines.\n\n\n\n" 168 | php: | 169 | array( 170 | 'clipped' => "This has one newline.\n", 171 | 'same as "clipped" above' => "This has one newline.\n", 172 | 'stripped' => 'This has no newline.', 173 | 'same as "stripped" above' => 'This has no newline.', 174 | 'kept' => "This has four newlines.\n\n\n\n", 175 | 'same as "kept" above' => "This has four newlines.\n\n\n\n" 176 | ) 177 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsNullsAndEmpties.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Empty Sequence 3 | brief: > 4 | You can represent the empty sequence 5 | with an empty inline sequence. 6 | yaml: | 7 | empty: [] 8 | php: | 9 | array('empty' => array()) 10 | --- 11 | test: Empty Mapping 12 | brief: > 13 | You can represent the empty mapping 14 | with an empty inline mapping. 15 | yaml: | 16 | empty: {} 17 | php: | 18 | array('empty' => array()) 19 | --- 20 | test: Empty Sequence as Entire Document 21 | yaml: | 22 | [] 23 | php: | 24 | array() 25 | --- 26 | test: Empty Mapping as Entire Document 27 | yaml: | 28 | {} 29 | php: | 30 | array() 31 | --- 32 | test: Null as Document 33 | yaml: | 34 | ~ 35 | php: | 36 | null 37 | --- 38 | test: Empty String 39 | brief: > 40 | You can represent an empty string 41 | with a pair of quotes. 42 | yaml: | 43 | '' 44 | php: | 45 | '' 46 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Strings 3 | brief: > 4 | Any group of characters beginning with an 5 | alphabetic or numeric character is a string, 6 | unless it belongs to one of the groups below 7 | (such as an Integer or Time). 8 | yaml: | 9 | String 10 | php: | 11 | 'String' 12 | --- 13 | test: String characters 14 | brief: > 15 | A string can contain any alphabetic or 16 | numeric character, along with many 17 | punctuation characters, including the 18 | period, dash, space, quotes, exclamation, and 19 | question mark. 20 | yaml: | 21 | - What's Yaml? 22 | - It's for writing data structures in plain text. 23 | - And? 24 | - And what? That's not good enough for you? 25 | - No, I mean, "And what about Yaml?" 26 | - Oh, oh yeah. Uh.. Yaml for Ruby. 27 | php: | 28 | array( 29 | "What's Yaml?", 30 | "It's for writing data structures in plain text.", 31 | "And?", 32 | "And what? That's not good enough for you?", 33 | "No, I mean, \"And what about Yaml?\"", 34 | "Oh, oh yeah. Uh.. Yaml for Ruby." 35 | ) 36 | --- 37 | test: Indicators in Strings 38 | brief: > 39 | Be careful using indicators in strings. In particular, 40 | the comma, colon, and pound sign must be used carefully. 41 | yaml: | 42 | the colon followed by space is an indicator: but is a string:right here 43 | same for the pound sign: here we have it#in a string 44 | the comma can, honestly, be used in most cases: [ but not in, inline collections ] 45 | php: | 46 | array( 47 | 'the colon followed by space is an indicator' => 'but is a string:right here', 48 | 'same for the pound sign' => 'here we have it#in a string', 49 | 'the comma can, honestly, be used in most cases' => array('but not in', 'inline collections') 50 | ) 51 | --- 52 | test: Forcing Strings 53 | brief: > 54 | Any YAML type can be forced into a string using the 55 | explicit !str method. 56 | yaml: | 57 | date string: !str 2001-08-01 58 | number string: !str 192 59 | php: | 60 | array( 61 | 'date string' => '2001-08-01', 62 | 'number string' => '192' 63 | ) 64 | --- 65 | test: Single-quoted Strings 66 | brief: > 67 | You can also enclose your strings within single quotes, 68 | which allows use of slashes, colons, and other indicators 69 | freely. Inside single quotes, you can represent a single 70 | quote in your string by using two single quotes next to 71 | each other. 72 | yaml: | 73 | all my favorite symbols: '#:!/%.)' 74 | a few i hate: '&(*' 75 | why do i hate them?: 'it''s very hard to explain' 76 | entities: '£ me' 77 | php: | 78 | array( 79 | 'all my favorite symbols' => '#:!/%.)', 80 | 'a few i hate' => '&(*', 81 | 'why do i hate them?' => 'it\'s very hard to explain', 82 | 'entities' => '£ me' 83 | ) 84 | --- 85 | test: Double-quoted Strings 86 | brief: > 87 | Enclosing strings in double quotes allows you 88 | to use escapings to represent ASCII and 89 | Unicode characters. 90 | yaml: | 91 | i know where i want my line breaks: "one here\nand another here\n" 92 | php: | 93 | array( 94 | 'i know where i want my line breaks' => "one here\nand another here\n" 95 | ) 96 | --- 97 | test: Multi-line Quoted Strings 98 | todo: true 99 | brief: > 100 | Both single- and double-quoted strings may be 101 | carried on to new lines in your YAML document. 102 | They must be indented a step and indentation 103 | is interpreted as a single space. 104 | yaml: | 105 | i want a long string: "so i'm going to 106 | let it go on and on to other lines 107 | until i end it with a quote." 108 | php: | 109 | array('i want a long string' => "so i'm going to ". 110 | "let it go on and on to other lines ". 111 | "until i end it with a quote." 112 | ) 113 | 114 | --- 115 | test: Plain scalars 116 | todo: true 117 | brief: > 118 | Unquoted strings may also span multiple lines, if they 119 | are free of YAML space indicators and indented. 120 | yaml: | 121 | - My little toe is broken in two places; 122 | - I'm crazy to have skied this way; 123 | - I'm not the craziest he's seen, since there was always the German guy 124 | who skied for 3 hours on a broken shin bone (just below the kneecap); 125 | - Nevertheless, second place is respectable, and he doesn't 126 | recommend going for the record; 127 | - He's going to put my foot in plaster for a month; 128 | - This would impair my skiing ability somewhat for the 129 | duration, as can be imagined. 130 | php: | 131 | array( 132 | "My little toe is broken in two places;", 133 | "I'm crazy to have skied this way;", 134 | "I'm not the craziest he's seen, since there was always ". 135 | "the German guy who skied for 3 hours on a broken shin ". 136 | "bone (just below the kneecap);", 137 | "Nevertheless, second place is respectable, and he doesn't ". 138 | "recommend going for the record;", 139 | "He's going to put my foot in plaster for a month;", 140 | "This would impair my skiing ability somewhat for the duration, ". 141 | "as can be imagined." 142 | ) 143 | --- 144 | test: 'Null' 145 | brief: > 146 | You can use the tilde '~' character for a null value. 147 | yaml: | 148 | name: Mr. Show 149 | hosted by: Bob and David 150 | date of next season: ~ 151 | php: | 152 | array( 153 | 'name' => 'Mr. Show', 154 | 'hosted by' => 'Bob and David', 155 | 'date of next season' => null 156 | ) 157 | --- 158 | test: Boolean 159 | brief: > 160 | You can use 'true' and 'false' for Boolean values. 161 | yaml: | 162 | Is Gus a Liar?: true 163 | Do I rely on Gus for Sustenance?: false 164 | php: | 165 | array( 166 | 'Is Gus a Liar?' => true, 167 | 'Do I rely on Gus for Sustenance?' => false 168 | ) 169 | --- 170 | test: Integers 171 | dump_skip: true 172 | brief: > 173 | An integer is a series of numbers, optionally 174 | starting with a positive or negative sign. Integers 175 | may also contain commas for readability. 176 | yaml: | 177 | zero: 0 178 | simple: 12 179 | one-thousand: 1,000 180 | negative one-thousand: -1,000 181 | php: | 182 | array( 183 | 'zero' => 0, 184 | 'simple' => 12, 185 | 'one-thousand' => 1000, 186 | 'negative one-thousand' => -1000 187 | ) 188 | --- 189 | test: Integers as Map Keys 190 | brief: > 191 | An integer can be used a dictionary key. 192 | yaml: | 193 | 1: one 194 | 2: two 195 | 3: three 196 | php: | 197 | array( 198 | 1 => 'one', 199 | 2 => 'two', 200 | 3 => 'three' 201 | ) 202 | --- 203 | test: Floats 204 | dump_skip: true 205 | brief: > 206 | Floats are represented by numbers with decimals, 207 | allowing for scientific notation, as well as 208 | positive and negative infinity and "not a number." 209 | yaml: | 210 | a simple float: 2.00 211 | larger float: 1,000.09 212 | scientific notation: 1.00009e+3 213 | php: | 214 | array( 215 | 'a simple float' => 2.0, 216 | 'larger float' => 1000.09, 217 | 'scientific notation' => 1000.09 218 | ) 219 | --- 220 | test: Time 221 | todo: true 222 | brief: > 223 | You can represent timestamps by using 224 | ISO8601 format, or a variation which 225 | allows spaces between the date, time and 226 | time zone. 227 | yaml: | 228 | iso8601: 2001-12-14t21:59:43.10-05:00 229 | space seperated: 2001-12-14 21:59:43.10 -05:00 230 | php: | 231 | array( 232 | 'iso8601' => mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" ), 233 | 'space seperated' => mktime( 2001, 12, 14, 21, 59, 43, 0.10, "-05:00" ) 234 | ) 235 | --- 236 | test: Date 237 | todo: true 238 | brief: > 239 | A date can be represented by its year, 240 | month and day in ISO8601 order. 241 | yaml: | 242 | 1976-07-31 243 | php: | 244 | date( 1976, 7, 31 ) 245 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/embededPhp.yml: -------------------------------------------------------------------------------- 1 | value: 2 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/escapedCharacters.yml: -------------------------------------------------------------------------------- 1 | test: outside double quotes 2 | yaml: | 3 | \0 \ \a \b \n 4 | php: | 5 | "\\0 \\ \\a \\b \\n" 6 | --- 7 | test: null 8 | yaml: | 9 | "\0" 10 | php: | 11 | "\x00" 12 | --- 13 | test: bell 14 | yaml: | 15 | "\a" 16 | php: | 17 | "\x07" 18 | --- 19 | test: backspace 20 | yaml: | 21 | "\b" 22 | php: | 23 | "\x08" 24 | --- 25 | test: horizontal tab (1) 26 | yaml: | 27 | "\t" 28 | php: | 29 | "\x09" 30 | --- 31 | test: horizontal tab (2) 32 | yaml: | 33 | "\ " 34 | php: | 35 | "\x09" 36 | --- 37 | test: line feed 38 | yaml: | 39 | "\n" 40 | php: | 41 | "\x0a" 42 | --- 43 | test: vertical tab 44 | yaml: | 45 | "\v" 46 | php: | 47 | "\x0b" 48 | --- 49 | test: form feed 50 | yaml: | 51 | "\f" 52 | php: | 53 | "\x0c" 54 | --- 55 | test: carriage return 56 | yaml: | 57 | "\r" 58 | php: | 59 | "\x0d" 60 | --- 61 | test: escape 62 | yaml: | 63 | "\e" 64 | php: | 65 | "\x1b" 66 | --- 67 | test: space 68 | yaml: | 69 | "\ " 70 | php: | 71 | "\x20" 72 | --- 73 | test: slash 74 | yaml: | 75 | "\/" 76 | php: | 77 | "\x2f" 78 | --- 79 | test: backslash 80 | yaml: | 81 | "\\" 82 | php: | 83 | "\\" 84 | --- 85 | test: Unicode next line 86 | yaml: | 87 | "\N" 88 | php: | 89 | "\xc2\x85" 90 | --- 91 | test: Unicode non-breaking space 92 | yaml: | 93 | "\_" 94 | php: | 95 | "\xc2\xa0" 96 | --- 97 | test: Unicode line separator 98 | yaml: | 99 | "\L" 100 | php: | 101 | "\xe2\x80\xa8" 102 | --- 103 | test: Unicode paragraph separator 104 | yaml: | 105 | "\P" 106 | php: | 107 | "\xe2\x80\xa9" 108 | --- 109 | test: Escaped 8-bit Unicode 110 | yaml: | 111 | "\x42" 112 | php: | 113 | "B" 114 | --- 115 | test: Escaped 16-bit Unicode 116 | yaml: | 117 | "\u20ac" 118 | php: | 119 | "\xe2\x82\xac" 120 | --- 121 | test: Escaped 32-bit Unicode 122 | yaml: | 123 | "\U00000043" 124 | php: | 125 | "C" 126 | --- 127 | test: Example 5.13 Escaped Characters 128 | note: | 129 | Currently throws an error parsing first line. Maybe Symfony Yaml doesn't support 130 | continuation of string across multiple lines? Keeping test here but disabled. 131 | todo: true 132 | yaml: | 133 | "Fun with \\ 134 | \" \a \b \e \f \ 135 | \n \r \t \v \0 \ 136 | \ \_ \N \L \P \ 137 | \x41 \u0041 \U00000041" 138 | php: | 139 | "Fun with \x5C\n\x22 \x07 \x08 \x1B \x0C\n\x0A \x0D \x09 \x0B \x00\n\x20 \xA0 \x85 \xe2\x80\xa8 \xe2\x80\xa9\nA A A" 140 | --- 141 | test: Double quotes with a line feed 142 | yaml: | 143 | { double: "some value\n \"some quoted string\" and 'some single quotes one'" } 144 | php: | 145 | array( 146 | 'double' => "some value\n \"some quoted string\" and 'some single quotes one'" 147 | ) 148 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/index.yml: -------------------------------------------------------------------------------- 1 | - escapedCharacters 2 | - sfComments 3 | - sfCompact 4 | - sfTests 5 | - sfObjects 6 | - sfMergeKey 7 | - sfQuotes 8 | - YtsAnchorAlias 9 | - YtsBasicTests 10 | - YtsBlockMapping 11 | - YtsDocumentSeparator 12 | - YtsErrorTests 13 | - YtsFlowCollections 14 | - YtsFoldedScalars 15 | - YtsNullsAndEmpties 16 | - YtsSpecificationExamples 17 | - YtsTypeTransfers 18 | - unindentedCollections 19 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfComments.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Comments at the end of a line 3 | brief: > 4 | Comments at the end of a line 5 | yaml: | 6 | ex1: "foo # bar" 7 | ex2: "foo # bar" # comment 8 | ex3: 'foo # bar' # comment 9 | ex4: foo # comment 10 | php: | 11 | array('ex1' => 'foo # bar', 'ex2' => 'foo # bar', 'ex3' => 'foo # bar', 'ex4' => 'foo') 12 | --- 13 | test: Comments in the middle 14 | brief: > 15 | Comments in the middle 16 | yaml: | 17 | foo: 18 | # some comment 19 | # some comment 20 | bar: foo 21 | # some comment 22 | # some comment 23 | php: | 24 | array('foo' => array('bar' => 'foo')) 25 | --- 26 | test: Comments on a hash line 27 | brief: > 28 | Comments on a hash line 29 | yaml: | 30 | foo: # a comment 31 | foo: bar # a comment 32 | php: | 33 | array('foo' => array('foo' => 'bar')) 34 | --- 35 | test: 'Value starting with a #' 36 | brief: > 37 | 'Value starting with a #' 38 | yaml: | 39 | foo: '#bar' 40 | php: | 41 | array('foo' => '#bar') 42 | --- 43 | test: Document starting with a comment and a separator 44 | brief: > 45 | Commenting before document start is allowed 46 | yaml: | 47 | # document comment 48 | --- 49 | foo: bar # a comment 50 | php: | 51 | array('foo' => 'bar') 52 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfCompact.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Compact notation 3 | brief: | 4 | Compact notation for sets of mappings with single element 5 | yaml: | 6 | --- 7 | # products purchased 8 | - item : Super Hoop 9 | - item : Basketball 10 | quantity: 1 11 | - item: 12 | name: Big Shoes 13 | nick: Biggies 14 | quantity: 1 15 | php: | 16 | array ( 17 | array ( 18 | 'item' => 'Super Hoop', 19 | ), 20 | array ( 21 | 'item' => 'Basketball', 22 | 'quantity' => 1, 23 | ), 24 | array ( 25 | 'item' => array( 26 | 'name' => 'Big Shoes', 27 | 'nick' => 'Biggies' 28 | ), 29 | 'quantity' => 1 30 | ) 31 | ) 32 | --- 33 | test: Compact notation combined with inline notation 34 | brief: | 35 | Combinations of compact and inline notation are allowed 36 | yaml: | 37 | --- 38 | items: 39 | - { item: Super Hoop, quantity: 1 } 40 | - [ Basketball, Big Shoes ] 41 | php: | 42 | array ( 43 | 'items' => array ( 44 | array ( 45 | 'item' => 'Super Hoop', 46 | 'quantity' => 1, 47 | ), 48 | array ( 49 | 'Basketball', 50 | 'Big Shoes' 51 | ) 52 | ) 53 | ) 54 | --- %YAML:1.0 55 | test: Compact notation 56 | brief: | 57 | Compact notation for sets of mappings with single element 58 | yaml: | 59 | --- 60 | # products purchased 61 | - item : Super Hoop 62 | - item : Basketball 63 | quantity: 1 64 | - item: 65 | name: Big Shoes 66 | nick: Biggies 67 | quantity: 1 68 | php: | 69 | array ( 70 | array ( 71 | 'item' => 'Super Hoop', 72 | ), 73 | array ( 74 | 'item' => 'Basketball', 75 | 'quantity' => 1, 76 | ), 77 | array ( 78 | 'item' => array( 79 | 'name' => 'Big Shoes', 80 | 'nick' => 'Biggies' 81 | ), 82 | 'quantity' => 1 83 | ) 84 | ) 85 | --- 86 | test: Compact notation combined with inline notation 87 | brief: | 88 | Combinations of compact and inline notation are allowed 89 | yaml: | 90 | --- 91 | items: 92 | - { item: Super Hoop, quantity: 1 } 93 | - [ Basketball, Big Shoes ] 94 | php: | 95 | array ( 96 | 'items' => array ( 97 | array ( 98 | 'item' => 'Super Hoop', 99 | 'quantity' => 1, 100 | ), 101 | array ( 102 | 'Basketball', 103 | 'Big Shoes' 104 | ) 105 | ) 106 | ) 107 | --- %YAML:1.0 108 | test: Compact notation 109 | brief: | 110 | Compact notation for sets of mappings with single element 111 | yaml: | 112 | --- 113 | # products purchased 114 | - item : Super Hoop 115 | - item : Basketball 116 | quantity: 1 117 | - item: 118 | name: Big Shoes 119 | nick: Biggies 120 | quantity: 1 121 | php: | 122 | array ( 123 | array ( 124 | 'item' => 'Super Hoop', 125 | ), 126 | array ( 127 | 'item' => 'Basketball', 128 | 'quantity' => 1, 129 | ), 130 | array ( 131 | 'item' => array( 132 | 'name' => 'Big Shoes', 133 | 'nick' => 'Biggies' 134 | ), 135 | 'quantity' => 1 136 | ) 137 | ) 138 | --- 139 | test: Compact notation combined with inline notation 140 | brief: | 141 | Combinations of compact and inline notation are allowed 142 | yaml: | 143 | --- 144 | items: 145 | - { item: Super Hoop, quantity: 1 } 146 | - [ Basketball, Big Shoes ] 147 | php: | 148 | array ( 149 | 'items' => array ( 150 | array ( 151 | 'item' => 'Super Hoop', 152 | 'quantity' => 1, 153 | ), 154 | array ( 155 | 'Basketball', 156 | 'Big Shoes' 157 | ) 158 | ) 159 | ) 160 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfMergeKey.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Simple In Place Substitution 3 | brief: > 4 | If you want to reuse an entire alias, only overwriting what is different 5 | you can use a << in place substitution. This is not part of the official 6 | YAML spec, but a widely implemented extension. See the following URL for 7 | details: http://yaml.org/type/merge.html 8 | yaml: | 9 | foo: &foo 10 | a: Steve 11 | b: Clark 12 | c: Brian 13 | bar: &bar 14 | <<: *foo 15 | x: Oren 16 | foo2: &foo2 17 | a: Ballmer 18 | ding: &dong [ fi, fei, fo, fam] 19 | check: 20 | <<: 21 | - *foo 22 | - *dong 23 | isit: tested 24 | head: 25 | <<: [ *foo , *dong , *foo2 ] 26 | php: | 27 | array('foo' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian'), 'bar' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'x' => 'Oren'), 'foo2' => array('a' => 'Ballmer'), 'ding' => array('fi', 'fei', 'fo', 'fam'), 'check' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'fi', 'fei', 'fo', 'fam', 'isit' => 'tested'), 'head' => array('a' => 'Ballmer', 'b' => 'Clark', 'c' => 'Brian', 'fi', 'fei', 'fo', 'fam')) 28 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfObjects.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Objects 3 | brief: > 4 | Comments at the end of a line 5 | yaml: | 6 | ex1: "foo # bar" 7 | ex2: "foo # bar" # comment 8 | ex3: 'foo # bar' # comment 9 | ex4: foo # comment 10 | php: | 11 | array('ex1' => 'foo # bar', 'ex2' => 'foo # bar', 'ex3' => 'foo # bar', 'ex4' => 'foo') 12 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfQuotes.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Some characters at the beginning of a string must be escaped 3 | brief: > 4 | Some characters at the beginning of a string must be escaped 5 | yaml: | 6 | foo: | bar 7 | php: | 8 | array('foo' => '| bar') 9 | --- 10 | test: A key can be a quoted string 11 | brief: > 12 | A key can be a quoted string 13 | yaml: | 14 | "foo1": bar 15 | 'foo2': bar 16 | "foo \" bar": bar 17 | 'foo '' bar': bar 18 | 'foo3: ': bar 19 | "foo4: ": bar 20 | foo5: { "foo \" bar: ": bar, 'foo '' bar: ': bar } 21 | php: | 22 | array( 23 | 'foo1' => 'bar', 24 | 'foo2' => 'bar', 25 | 'foo " bar' => 'bar', 26 | 'foo \' bar' => 'bar', 27 | 'foo3: ' => 'bar', 28 | 'foo4: ' => 'bar', 29 | 'foo5' => array( 30 | 'foo " bar: ' => 'bar', 31 | 'foo \' bar: ' => 'bar', 32 | ), 33 | ) 34 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/sfTests.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Multiple quoted string on one line 3 | brief: > 4 | Multiple quoted string on one line 5 | yaml: | 6 | stripped_title: { name: "foo bar", help: "bar foo" } 7 | php: | 8 | array('stripped_title' => array('name' => 'foo bar', 'help' => 'bar foo')) 9 | --- 10 | test: Empty sequence 11 | yaml: | 12 | foo: [ ] 13 | php: | 14 | array('foo' => array()) 15 | --- 16 | test: Empty value 17 | yaml: | 18 | foo: 19 | php: | 20 | array('foo' => null) 21 | --- 22 | test: Inline string parsing 23 | brief: > 24 | Inline string parsing 25 | yaml: | 26 | test: ['complex: string', 'another [string]'] 27 | php: | 28 | array('test' => array('complex: string', 'another [string]')) 29 | --- 30 | test: Boolean 31 | brief: > 32 | Boolean 33 | yaml: | 34 | - false 35 | - true 36 | - null 37 | - ~ 38 | - 'false' 39 | - 'true' 40 | - 'null' 41 | - '~' 42 | php: | 43 | array( 44 | false, 45 | true, 46 | null, 47 | null, 48 | 'false', 49 | 'true', 50 | 'null', 51 | '~', 52 | ) 53 | --- 54 | test: Empty lines in folded blocks 55 | brief: > 56 | Empty lines in folded blocks 57 | yaml: | 58 | foo: 59 | bar: | 60 | foo 61 | 62 | 63 | 64 | bar 65 | php: | 66 | array('foo' => array('bar' => "foo\n\n\n \nbar\n")) 67 | --- 68 | test: IP addresses 69 | brief: > 70 | IP addresses 71 | yaml: | 72 | foo: 10.0.0.2 73 | php: | 74 | array('foo' => '10.0.0.2') 75 | --- 76 | test: A sequence with an embedded mapping 77 | brief: > 78 | A sequence with an embedded mapping 79 | yaml: | 80 | - foo 81 | - bar: { bar: foo } 82 | php: | 83 | array('foo', array('bar' => array('bar' => 'foo'))) 84 | --- 85 | test: A sequence with an unordered array 86 | brief: > 87 | A sequence with an unordered array 88 | yaml: | 89 | 1: foo 90 | 0: bar 91 | php: | 92 | array(1 => 'foo', 0 => 'bar') 93 | --- 94 | test: Octal 95 | brief: as in spec example 2.19, octal value is converted 96 | yaml: | 97 | foo: 0123 98 | php: | 99 | array('foo' => 83) 100 | --- 101 | test: Octal strings 102 | brief: Octal notation in a string must remain a string 103 | yaml: | 104 | foo: "0123" 105 | php: | 106 | array('foo' => '0123') 107 | --- 108 | test: Octal strings 109 | brief: Octal notation in a string must remain a string 110 | yaml: | 111 | foo: '0123' 112 | php: | 113 | array('foo' => '0123') 114 | --- 115 | test: Octal strings 116 | brief: Octal notation in a string must remain a string 117 | yaml: | 118 | foo: | 119 | 0123 120 | php: | 121 | array('foo' => "0123\n") 122 | --- 123 | test: Document as a simple hash 124 | brief: Document as a simple hash 125 | yaml: | 126 | { foo: bar } 127 | php: | 128 | array('foo' => 'bar') 129 | --- 130 | test: Document as a simple array 131 | brief: Document as a simple array 132 | yaml: | 133 | [ foo, bar ] 134 | php: | 135 | array('foo', 'bar') 136 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/Fixtures/unindentedCollections.yml: -------------------------------------------------------------------------------- 1 | --- %YAML:1.0 2 | test: Unindented collection 3 | brief: > 4 | Unindented collection 5 | yaml: | 6 | collection: 7 | - item1 8 | - item2 9 | - item3 10 | php: | 11 | array('collection' => array('item1', 'item2', 'item3')) 12 | --- 13 | test: Nested unindented collection (two levels) 14 | brief: > 15 | Nested unindented collection 16 | yaml: | 17 | collection: 18 | key: 19 | - a 20 | - b 21 | - c 22 | php: | 23 | array('collection' => array('key' => array('a', 'b', 'c'))) 24 | --- 25 | test: Nested unindented collection (three levels) 26 | brief: > 27 | Nested unindented collection 28 | yaml: | 29 | collection: 30 | key: 31 | subkey: 32 | - one 33 | - two 34 | - three 35 | php: | 36 | array('collection' => array('key' => array('subkey' => array('one', 'two', 'three')))) 37 | --- 38 | test: Key/value after unindented collection (1) 39 | brief: > 40 | Key/value after unindented collection (1) 41 | yaml: | 42 | collection: 43 | key: 44 | - a 45 | - b 46 | - c 47 | foo: bar 48 | php: | 49 | array('collection' => array('key' => array('a', 'b', 'c')), 'foo' => 'bar') 50 | --- 51 | test: Key/value after unindented collection (at the same level) 52 | brief: > 53 | Key/value after unindented collection 54 | yaml: | 55 | collection: 56 | key: 57 | - a 58 | - b 59 | - c 60 | foo: bar 61 | php: | 62 | array('collection' => array('key' => array('a', 'b', 'c'), 'foo' => 'bar')) 63 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Tests/YamlTest.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml\Tests; 13 | 14 | use Symfony\Component\Yaml\Yaml; 15 | 16 | class YamlTest extends \PHPUnit_Framework_TestCase 17 | { 18 | public function testParseAndDump() 19 | { 20 | $data = array('lorem' => 'ipsum', 'dolor' => 'sit'); 21 | $yml = Yaml::dump($data); 22 | $parsed = Yaml::parse($yml); 23 | $this->assertEquals($data, $parsed); 24 | 25 | $filename = __DIR__.'/Fixtures/index.yml'; 26 | $contents = file_get_contents($filename); 27 | $parsedByFilename = Yaml::parse($filename); 28 | $parsedByContents = Yaml::parse($contents); 29 | $this->assertEquals($parsedByFilename, $parsedByContents); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Unescaper.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | namespace Symfony\Component\Yaml; 12 | 13 | /** 14 | * Unescaper encapsulates unescaping rules for single and double-quoted 15 | * YAML strings. 16 | * 17 | * @author Matthew Lewinski 18 | */ 19 | class Unescaper 20 | { 21 | // Parser and Inline assume UTF-8 encoding, so escaped Unicode characters 22 | // must be converted to that encoding. 23 | const ENCODING = 'UTF-8'; 24 | 25 | // Regex fragment that matches an escaped character in a double quoted 26 | // string. 27 | const REGEX_ESCAPED_CHARACTER = "\\\\([0abt\tnvfre \\\"\\/\\\\N_LP]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})"; 28 | 29 | /** 30 | * Unescapes a single quoted string. 31 | * 32 | * @param string $value A single quoted string. 33 | * 34 | * @return string The unescaped string. 35 | */ 36 | public function unescapeSingleQuotedString($value) 37 | { 38 | return str_replace('\'\'', '\'', $value); 39 | } 40 | 41 | /** 42 | * Unescapes a double quoted string. 43 | * 44 | * @param string $value A double quoted string. 45 | * 46 | * @return string The unescaped string. 47 | */ 48 | public function unescapeDoubleQuotedString($value) 49 | { 50 | $self = $this; 51 | $callback = function($match) use ($self) { 52 | return $self->unescapeCharacter($match[0]); 53 | }; 54 | 55 | // evaluate the string 56 | return preg_replace_callback('/'.self::REGEX_ESCAPED_CHARACTER.'/u', $callback, $value); 57 | } 58 | 59 | /** 60 | * Unescapes a character that was found in a double-quoted string 61 | * 62 | * @param string $value An escaped character 63 | * 64 | * @return string The unescaped character 65 | */ 66 | public function unescapeCharacter($value) 67 | { 68 | switch ($value{1}) { 69 | case '0': 70 | return "\x0"; 71 | case 'a': 72 | return "\x7"; 73 | case 'b': 74 | return "\x8"; 75 | case 't': 76 | return "\t"; 77 | case "\t": 78 | return "\t"; 79 | case 'n': 80 | return "\n"; 81 | case 'v': 82 | return "\xb"; 83 | case 'f': 84 | return "\xc"; 85 | case 'r': 86 | return "\xd"; 87 | case 'e': 88 | return "\x1b"; 89 | case ' ': 90 | return ' '; 91 | case '"': 92 | return '"'; 93 | case '/': 94 | return '/'; 95 | case '\\': 96 | return '\\'; 97 | case 'N': 98 | // U+0085 NEXT LINE 99 | return $this->convertEncoding("\x00\x85", self::ENCODING, 'UCS-2BE'); 100 | case '_': 101 | // U+00A0 NO-BREAK SPACE 102 | return $this->convertEncoding("\x00\xA0", self::ENCODING, 'UCS-2BE'); 103 | case 'L': 104 | // U+2028 LINE SEPARATOR 105 | return $this->convertEncoding("\x20\x28", self::ENCODING, 'UCS-2BE'); 106 | case 'P': 107 | // U+2029 PARAGRAPH SEPARATOR 108 | return $this->convertEncoding("\x20\x29", self::ENCODING, 'UCS-2BE'); 109 | case 'x': 110 | $char = pack('n', hexdec(substr($value, 2, 2))); 111 | 112 | return $this->convertEncoding($char, self::ENCODING, 'UCS-2BE'); 113 | case 'u': 114 | $char = pack('n', hexdec(substr($value, 2, 4))); 115 | 116 | return $this->convertEncoding($char, self::ENCODING, 'UCS-2BE'); 117 | case 'U': 118 | $char = pack('N', hexdec(substr($value, 2, 8))); 119 | 120 | return $this->convertEncoding($char, self::ENCODING, 'UCS-4BE'); 121 | } 122 | } 123 | 124 | /** 125 | * Convert a string from one encoding to another. 126 | * 127 | * @param string $value The string to convert 128 | * @param string $to The input encoding 129 | * @param string $from The output encoding 130 | * 131 | * @return string The string with the new encoding 132 | * 133 | * @throws RuntimeException if no suitable encoding function is found (iconv or mbstring) 134 | */ 135 | private function convertEncoding($value, $to, $from) 136 | { 137 | if (function_exists('mb_convert_encoding')) { 138 | return mb_convert_encoding($value, $to, $from); 139 | } elseif (function_exists('iconv')) { 140 | return iconv($from, $to, $value); 141 | } 142 | 143 | throw new RuntimeException('No suitable convert encoding function (install the iconv or mbstring extension).'); 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/Yaml.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Symfony\Component\Yaml; 13 | 14 | use Symfony\Component\Yaml\Exception\ParseException; 15 | 16 | /** 17 | * Yaml offers convenience methods to load and dump YAML. 18 | * 19 | * @author Fabien Potencier 20 | * 21 | * @api 22 | */ 23 | class Yaml 24 | { 25 | /** 26 | * Parses YAML into a PHP array. 27 | * 28 | * The parse method, when supplied with a YAML stream (string or file), 29 | * will do its best to convert YAML in a file into a PHP array. 30 | * 31 | * Usage: 32 | * 33 | * $array = Yaml::parse('config.yml'); 34 | * print_r($array); 35 | * 36 | * 37 | * As this method accepts both plain strings and file names as an input, 38 | * you must validate the input before calling this method. Passing a file 39 | * as an input is a deprecated feature and will be removed in 3.0. 40 | * 41 | * @param string $input Path to a YAML file or a string containing YAML 42 | * @param Boolean $exceptionOnInvalidType True if an exception must be thrown on invalid types false otherwise 43 | * @param Boolean $objectSupport True if object support is enabled, false otherwise 44 | * 45 | * @return array The YAML converted to a PHP array 46 | * 47 | * @throws ParseException If the YAML is not valid 48 | * 49 | * @api 50 | */ 51 | public static function parse($input, $exceptionOnInvalidType = false, $objectSupport = false) 52 | { 53 | // if input is a file, process it 54 | $file = ''; 55 | if (strpos($input, "\n") === false && is_file($input)) { 56 | if (false === is_readable($input)) { 57 | throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input)); 58 | } 59 | 60 | $file = $input; 61 | $input = file_get_contents($file); 62 | } 63 | 64 | $yaml = new Parser(); 65 | 66 | try { 67 | return $yaml->parse($input, $exceptionOnInvalidType, $objectSupport); 68 | } catch (ParseException $e) { 69 | if ($file) { 70 | $e->setParsedFile($file); 71 | } 72 | 73 | throw $e; 74 | } 75 | } 76 | 77 | /** 78 | * Dumps a PHP array to a YAML string. 79 | * 80 | * The dump method, when supplied with an array, will do its best 81 | * to convert the array into friendly YAML. 82 | * 83 | * @param array $array PHP array 84 | * @param integer $inline The level where you switch to inline YAML 85 | * @param integer $indent The amount of spaces to use for indentation of nested nodes. 86 | * @param Boolean $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise 87 | * @param Boolean $objectSupport true if object support is enabled, false otherwise 88 | * 89 | * @return string A YAML string representing the original PHP array 90 | * 91 | * @api 92 | */ 93 | public static function dump($array, $inline = 2, $indent = 4, $exceptionOnInvalidType = false, $objectSupport = false) 94 | { 95 | $yaml = new Dumper(); 96 | $yaml->setIndentation($indent); 97 | 98 | return $yaml->dump($array, $inline, 0, $exceptionOnInvalidType, $objectSupport); 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "symfony/yaml", 3 | "type": "library", 4 | "description": "Symfony Yaml Component", 5 | "keywords": [], 6 | "homepage": "http://symfony.com", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Fabien Potencier", 11 | "email": "fabien@symfony.com" 12 | }, 13 | { 14 | "name": "Symfony Community", 15 | "homepage": "http://symfony.com/contributors" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.3.3" 20 | }, 21 | "autoload": { 22 | "psr-0": { "Symfony\\Component\\Yaml\\": "" } 23 | }, 24 | "target-dir": "Symfony/Component/Yaml", 25 | "minimum-stability": "dev", 26 | "extra": { 27 | "branch-alias": { 28 | "dev-master": "2.3-dev" 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /contributed/CopyAsYAML.spBundle/vendor/symfony/yaml/Symfony/Component/Yaml/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | ./Tests/ 17 | 18 | 19 | 20 | 21 | 22 | ./ 23 | 24 | ./vendor 25 | ./Tests 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /contributed/CopyIDs.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Matt Dolan 7 | category 8 | Copy 9 | command 10 | cat | awk 'BEGIN { 11 | ORS = ""; 12 | } 13 | { 14 | id = $1; 15 | if (NR > 2) { 16 | print "," 17 | } 18 | if (NR > 1) { 19 | print id 20 | } 21 | }' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy 22 | if [ -x /usr/local/bin/growlnotify ]; then 23 | growlnotify -m "IDs copied to clipboard" 24 | fi 25 | contact 26 | zngg@uhyynonybb.pb.hx 27 | description 28 | Copies the ID (assumed to be the first field) from each record, as a comma separated string. 29 | 30 | Ideal for using in a subsequent query, e.g.: 31 | UPDATE ... WHERE id IN (1,2,3,4) 32 | input 33 | selectedtablerowsastab 34 | keyEquivalent 35 | 36 | name 37 | Copy IDs 38 | output 39 | showastexttooltip 40 | scope 41 | datatable 42 | uuid 43 | 3C9F6E07-DF65-44D3-B0F2-8220E9BE009C 44 | 45 | 46 | -------------------------------------------------------------------------------- /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/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/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/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/contributed/Deserialize php with krumo.spBundle/krumo/docs/media/images/up_button.png -------------------------------------------------------------------------------- /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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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/sequelpro/Bundles/e63bd612c4b3b361ff68ab64b63f07f1286032de/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 | -------------------------------------------------------------------------------- /contributed/Lorem Ipsum Paragraph.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Boris Guéry 7 | category 8 | Lorem Ipsum 9 | command 10 | #!/usr/bin/ruby 11 | 12 | print "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel mi lacus. Sed vitae lacus et mauris vulputate auctor. Nulla facilisi. Phasellus ac lacus mi, cursus dapibus odio. Suspendisse sem justo, elementum ut interdum ut, auctor in velit. Donec id purus id urna vestibulum mollis. Nunc pellentesque sapien et lorem fermentum lacinia. Vivamus erat nisl, auctor mollis pretium id, dapibus et ipsum. Nunc convallis sodales massa, vitae tincidunt elit accumsan in. Duis sit amet lorem nunc, vel viverra eros. Integer scelerisque gravida quam ut venenatis. Etiam sit amet purus metus, quis rhoncus libero." 13 | contact 14 | threl.o@tznvy.pbz 15 | description 16 | Generate a Lorem Ipsum paragraph of 92 words and 611 characters, best suited for TEXT type. 17 | internalKeyEquivalent 18 | 19 | characters 20 | P 21 | keyCode 22 | 35 23 | modifierFlags 24 | 393216 25 | 26 | keyEquivalent 27 | ^$P 28 | name 29 | Paragraph 30 | output 31 | insertastext 32 | scope 33 | inputfield 34 | uuid 35 | C73F7EA3-4CDC-4F3F-B9EE-FEED7E3F0B71 36 | 37 | 38 | -------------------------------------------------------------------------------- /contributed/Lorem Ipsum Two Words.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Boris Guéry 7 | category 8 | Lorem Ipsum 9 | command 10 | #!/usr/bin/ruby 11 | 12 | print "Lorem Ipsum" 13 | contact 14 | threl.o@tznvy.pbz 15 | description 16 | Insert Lorem Ipsum. Best suited for VARCHAR type. 17 | input 18 | none 19 | internalKeyEquivalent 20 | 21 | characters 22 | T 23 | keyCode 24 | 17 25 | modifierFlags 26 | 393216 27 | 28 | keyEquivalent 29 | ^$T 30 | name 31 | Two Words 32 | output 33 | insertastext 34 | scope 35 | inputfield 36 | uuid 37 | 8F858F4D-9DCC-488A-B01C-D9F7FA32FE32 38 | 39 | 40 | -------------------------------------------------------------------------------- /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/Explain Query.spBundle/command.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | author 6 | Hans-Jörg Bibiko 7 | category 8 | Query Editor 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 | EXPLAIN EXTENDED `cat` 24 | SQL 25 | 26 | # execute the SQL statement; the result will be available in the file $SP_QUERY_RESULT_FILE 27 | open "sequelpro://$SP_PROCESS_ID@passToDoc/ExecuteQuery" 28 | 29 | # wait for Sequel Pro; status file will be written to disk if query was finished 30 | while [ 1 ] 31 | do 32 | [[ -e "$SP_QUERY_RESULT_STATUS_FILE" ]] && break 33 | sleep 0.01 34 | done 35 | 36 | # check for errors 37 | if [ `cat $SP_QUERY_RESULT_STATUS_FILE` == 1 ]; then 38 | echo "Nothing found to EXPLAIN" 39 | exit $SP_BUNDLE_EXIT_SHOW_AS_HTML_TOOLTIP 40 | fi 41 | 42 | # remove file hand shake files 43 | rm -f $SP_QUERY_RESULT_STATUS_FILE 44 | rm -f $SP_QUERY_FILE 45 | 46 | # process the EXPLAIN result 47 | cat $SP_QUERY_RESULT_FILE | perl -e ' 48 | 49 | # get the table header 50 | $firstline = <>; 51 | @header = split(/\t/, $firstline); 52 | 53 | # read all result lines 54 | @allresults = (); 55 | while($line = <>) { 56 | my @a = split(/\t/, $line); 57 | push(@allresults, \@a); 58 | } 59 | 60 | print <<HEAD; 61 | <html> 62 | <head> 63 | </head> 64 | <body> 65 | <center> 66 | <h3>EXPLAIN</h3> 67 | <table width=200px> 68 | <tr><td align=center> 69 | HEAD 70 | 71 | # do a syntax highlighting for the passed query 72 | qx/cp $ENV{"SP_BUNDLE_INPUT"} $ENV{"SP_QUERY_FILE"}/; 73 | $task = "sequelpro://".$ENV{'SP_PROCESS_ID'}."@"."SyntaxHighlighting/html"; 74 | qx/open "$task"/; 75 | while(!(-e $ENV{'SP_QUERY_RESULT_STATUS_FILE'})) { sleep(0.01); } 76 | open(RF, "<:utf8", $ENV{'SP_QUERY_RESULT_FILE'}) or die $!; 77 | while(<RF>) { print; } 78 | close(RF); 79 | qx/rm -f $ENV{'SP_QUERY_RESULT_FILE'}/; 80 | qx/rm -f $ENV{'SP_QUERY_RESULT_STATUS_FILE'}/; 81 | qx/rm -f $ENV{'SP_QUERY_FILE'}/; 82 | 83 | print "</td></tr></table>\n"; 84 | 85 | # print the result as vertical table 86 | print "<table>\n"; 87 | for($i = 0; $i <= $#header; $i++) { 88 | print "<tr><td align=right><b>$header[$i]:</b></td><td>&nbsp;</td>"; 89 | foreach $line (@allresults) { 90 | $r = $line->[$i]; 91 | $r =~ s/;\s*/<br>/g; 92 | print "<td>$r</td>"; 93 | } 94 | print "</tr>\n"; 95 | } 96 | 97 | print <<FOOTER; 98 | </table> 99 | </center> 100 | </body> 101 | </html> 102 | FOOTER 103 | 104 | ' 105 | contact 106 | znvy@ovovxb.qr 107 | description 108 | Takes the current query or selection and execute the SQL statement: 109 | 110 | EXPLAIN EXTENDED "the_query" 111 | 112 | and displays the result as tooltip. 113 | 114 | Version 1.0 115 | input 116 | selectedtext 117 | input_fallback 118 | currentquery 119 | keyEquivalent 120 | 121 | name 122 | Explain Query 123 | output 124 | showashtmltooltip 125 | scope 126 | inputfield 127 | tooltip 128 | EXPLAIN EXTENDED the current query 129 | uuid 130 | D8E68049-C53E-44EA-ADBA-E636F69F5F0E 131 | 132 | 133 | -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------