Ubiquity command to search php documentation
example: phpd class
source:
CmdUtils.CreateCommand({
homepage: "http://taukon.de/ubiquity-php-function-doc.php",
author: {name: "Sebastian Barthenheier", email: "tauven@gmail.com"},
license: "MPL,GPL",
description: "Searching in the PHP Documentation (Quickreference)",
help: "Enter text to search for",
names: ['php'],
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'query'}],
preview: function(pblock, args) {
pblock.innerHTML = CmdUtils.renderTemplate("Searching for ${query} in the PHP documentation", args.object.text);
},
execute: function(args) {
Utils.openUrlInBrowser("http://php.net/search.php" +
Utils.paramsToString({pattern: args.object.text, show: "quickref"}
)
);
}
});
taukon.de - php und anderer nonsens