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 | Frame Alert
20 | 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.
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> </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> </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 |
--------------------------------------------------------------------------------