100+ results for 'class String'
Not the results you expected?
market.proto.php (https://github.com/nidhinj/android-market-api-php.git) PHP · 1377 lines
3 //require('protocolbuffers.inc.php');
4 // enum AppsRequest.OrderType
5 class AppsRequest_OrderType {
6 const NONE = 0;
7 const POPULAR = 1;
255 . Protobuf::toString('unknown', $this->_unknown)
256 . Protobuf::toString('appType_', AppType::toString($this->appType_))
257 . Protobuf::toString('query_', $this->query_)
260 . Protobuf::toString('withExtendedInfo_', $this->withExtendedInfo_)
261 . Protobuf::toString('orderType_', AppsRequest_OrderType::toString($this->orderType_))
262 . Protobuf::toString('startIndex_', $this->startIndex_)
263 . Protobuf::toString('entriesCount_', $this->entriesCount_)
264 . Protobuf::toString('viewType_', AppsRequest_ViewType::toString($this->viewType_));
265 }
sfValidatorSchemaTest.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 398 lines
13 $t = new lime_test(84);
15 class PreValidator extends sfValidatorBase
16 {
17 protected function doClean($values)
24 }
26 class PostValidator extends sfValidatorBase
27 {
28 protected function doClean($values)
37 }
39 class Post1Validator extends sfValidatorBase
40 {
41 protected function doClean($values)
SessionFileConverter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 133 lines
✨ Summary
This Java program converts old session files to XML format. It scans a directory for .session
files, reads each file line by line, and parses the information into an XML structure. The converted XML is then saved to a new file, replacing the original. This process maintains compatibility with older versions of jEdit sessions.
This Java program converts old session files to XML format. It scans a directory for .session
files, reads each file line by line, and parses the information into an XML structure. The converted XML is then saved to a new file, replacing the original. This process maintains compatibility with older versions of jEdit sessions.
48 public void run()
49 {
50 String[] files = getOldSessionFiles();
51 if(files.length == 0)
52 return;
71 private void convert(String filename)
72 {
73 Log.log(Log.DEBUG, this, "converting to new session file format: " + filename);
75 String absoluteFilename = MiscUtilities.constructPath(sessionsDir, filename);
76 String name = filename.substring(0, filename.length() - 8);
77 Session session = new Session(name);
78 String line;
109 boolean isCurrent = false;
110 StringTokenizer st = new StringTokenizer(line, "\t");
111 String path = st.nextToken();
query.php (https://github.com/tairosan/fluxflex_wordpress_3.2.1.git) PHP · 2141 lines
14 /**
15 * Retrieve variable in the WP_Query class.
16 *
17 * @see WP_Query::get()
19 * @uses $wp_query
20 *
21 * @param string $var The variable key to retrieve.
22 * @return mixed
23 */
66 * @uses $wp_query
67 *
68 * @param string $var Query variable key.
69 * @param mixed $value
70 * @return null
web_tester.php (https://github.com/paintitgold/myspace-php-sdk.git) PHP · 1412 lines
313 /**
314 * Sets the value to compare against.
315 * @param string $substring Text to search for.
316 * @param string $message Customised message on failure.
319 function TextExpectation($substring, $message = '%s') {
320 $this->SimpleExpectation($message);
321 $this->_substring = $substring;
322 }
363 * Describes a pattern match including the string
364 * found and it's position.
365 * @param string $substring Text to search for.
366 * @param string $subject Subject to search.
386 /**
387 * Sets the reject pattern
388 * @param string $substring Text to search for.
389 * @param string $message Customised message on failure.
tag.php (https://github.com/paintitgold/myspace-php-sdk.git) PHP · 1418 lines
19 * @subpackage WebTester
20 */
21 class SimpleTag {
22 var $_name;
23 var $_attributes;
26 /**
27 * Starts with a named tag with attributes only.
28 * @param string $name Tag name.
29 * @param hash $attributes Attribute names and
30 * string values. Note that
122 /**
123 * Accessor for the whole content so far.
124 * @return string Content as big raw string.
125 * @access public
126 */
213 * Accessor for URL as string.
214 * @return string Coerced as string.
215 * @access public
216 */
scorer.php (https://github.com/paintitgold/myspace-php-sdk.git) PHP · 863 lines
19 * @abstract
20 */
21 class SimpleScorer {
22 var $_passes;
23 var $_fails;
49 /**
50 * The reporter has a veto on what should be run.
51 * @param string $test_case_name name of test case.
52 * @param string $method Name of test method.
84 /**
85 * Paints the start of a group test.
86 * @param string $test_name Name of test or other label.
87 * @param integer $size Number of test cases starting.
88 * @access public
93 /**
94 * Paints the end of a group test.
95 * @param string $test_name Name of test or other label.
96 * @access public
97 */
expectation.php (https://github.com/paintitgold/myspace-php-sdk.git) PHP · 895 lines
608 /**
609 * Accessor for the pattern.
610 * @return string Perl regex as string.
611 * @access protected
612 */
756 /**
757 * Tests the expectation. True if the type or
758 * class matches the string value.
759 * @param string $compare Comparison value.
813 /**
814 * Sets the type to compare with.
815 * @param string $type Type or class name.
816 * @param string $message Customised message on failure.
823 /**
824 * Tests the expectation. False if the type or
825 * class matches the string value.
826 * @param string $compare Comparison value.
RedisVersion1_0.php (https://github.com/billfox3/ThinkUp.git) PHP · 477 lines
4 RedisServerProfile::registerProfile('\Predis\RedisServer_v1_0', '1.0');
6 abstract class InlineCommand extends Command {
7 public function serializeRequest($command, $arguments) {
8 if (isset($arguments[0]) && is_array($arguments[0])) {
16 }
18 abstract class BulkCommand extends Command {
19 public function serializeRequest($command, $arguments) {
20 $data = array_pop($arguments);
27 }
29 class RedisServer_v1_0 extends \Predis\RedisServerProfile {
30 public function getVersion() { return '1.0'; }
31 public function getSupportedCommands() {
web_tester.php (https://github.com/billfox3/ThinkUp.git) PHP · 1410 lines
313 /**
314 * Sets the value to compare against.
315 * @param string $substring Text to search for.
316 * @param string $message Customised message on failure.
319 function __construct($substring, $message = '%s') {
320 parent::__construct($message);
321 $this->substring = $substring;
322 }
363 * Describes a pattern match including the string
364 * found and it's position.
365 * @param string $substring Text to search for.
366 * @param string $subject Subject to search.
386 /**
387 * Sets the reject pattern
388 * @param string $substring Text to search for.
389 * @param string $message Customised message on failure.
unit_tester.php (https://github.com/billfox3/ThinkUp.git) PHP · 413 lines
96 /**
97 * Type and class test. Will pass if class
98 * matches the type name or is a subclass or
116 * specified.
117 * @param mixed $object Object to test.
118 * @param string $type Type name as string.
119 * @param string $message Message to display.
325 * @param string $pattern Perl regex to look for including
326 * the regex delimiters.
327 * @param string $subject String to search in.
328 * @param string $message Message to display.
342 * @param string $pattern Perl regex to look for including
343 * the regex delimiters.
344 * @param string $subject String to search in.
345 * @param string $message Message to display.
scorer.php (https://github.com/billfox3/ThinkUp.git) PHP · 875 lines
19 * @abstract
20 */
21 class SimpleScorer {
22 private $passes;
23 private $fails;
49 /**
50 * The reporter has a veto on what should be run.
51 * @param string $test_case_name name of test case.
52 * @param string $method Name of test method.
84 /**
85 * Paints the start of a group test.
86 * @param string $test_name Name of test or other label.
87 * @param integer $size Number of test cases starting.
88 * @access public
93 /**
94 * Paints the end of a group test.
95 * @param string $test_name Name of test or other label.
96 * @access public
97 */
encoding.php (https://github.com/billfox3/ThinkUp.git) PHP · 649 lines
9 /**#@+
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/socket.php');
142 /**
143 * Tests each character is in the range 0-127.
144 * @param string $ascii String to test.
145 * @access private
146 */
274 /**
275 * Accessor for single value.
276 * @return string/array False if missing, string
277 * if present and array if
278 * multiple entries.
ModelValidationTest.php (https://github.com/masihnewbie/cakephp.git) PHP · 764 lines
24 * @package Cake.Test.Case.Model
25 */
26 class ModelValidationTest extends BaseModelTest {
28 /**
507 );
508 $data = array('TestValidate' => array(
509 'title' => 'I am a short string'
510 ));
511 $TestModel->create($data);
528 );
529 $data = array('TestValidate' => array(
530 'title' => 'I am a short string'
531 ));
532 $TestModel->create($data);
I18nTest.php (https://github.com/masihnewbie/cakephp.git) PHP · 845 lines
Multibyte.php (https://github.com/masihnewbie/cakephp.git) PHP · 1106 lines
56 * Get string length.
57 *
58 * @param string $string The string being checked for length.
59 * @param string $encoding Character encoding name to use. If it is omitted, internal character encoding is used.
173 * Make a string lowercase
174 *
175 * @param string $string The string being lowercased.
176 * @param string $encoding Character encoding name to use. If it is omitted, internal character encoding is used.
186 * Make a string uppercase
187 *
188 * @param string $string The string being uppercased.
189 * @param string $encoding Character encoding name to use. If it is omitted, internal character encoding is used.
421 * Get string length.
422 *
423 * @param string $string The string being checked for length.
424 * @return integer The number of characters in string $string
strings.inc.php (https://github.com/pb30/thebuggenie.git) PHP · 531 lines
6 // Translator email:
8 // First occurrence is in: .\core\classes\TBGAction.class.php
9 // ----------------------------------------------------------------------------
10 $strings['You are not allowed to access to this page'] = 'You are not allowed to access to this page';
12 // First occurrence is in: .\core\classes\TBGContext.class.php
13 // ----------------------------------------------------------------------------
14 $strings['Can see issues reported by other users'] = 'Can see issues reported by other users';
15 $strings['Can see issues reported by users in the same group'] = 'Can see issues reported by users in the same group';
16 $strings['Can access the configuration page and edit all configuration'] = 'Can access the configuration page and edit all configuration';
17 $strings['Read-only access: "Settings" configuration page'] = 'Read-only access: "Settings" configuration page';
18 $strings['Read + write access: "Settings" configuration page'] = 'Read + write access: "Settings" configuration page';
SimpleMessage.php (https://github.com/pb30/thebuggenie.git) PHP · 611 lines
217 * @param string $address
218 * @param string $name optional
219 * @return Swift_Mime_SimpleMessage
220 */
267 * If $name is passed this name will be associated with the address.
268 *
269 * @param string $address
270 * @param string $name optional
535 if (count($children = $this->getChildren()) > 0 && $this->getBody() != '') {
536 $this->setChildren(array_merge(array($this->_becomeMimePart()), $children));
537 $string = parent::toString();
538 $this->setChildren($children);
539 } else {
540 $string = parent::toString();
541 }
TestRedis.php (https://github.com/esimionato/phpredis.git) PHP · 1456 lines
4 echo "Note: these tests might take up to a minute. Don't worry :-)\n";
6 class Redis_Test extends PHPUnit_TestCase
7 {
8 const HOST = '127.0.0.1';
9 const PORT = 6379;
10 const AUTH = NULL; //replace with a string to use Redis authentication
12 /**
197 public function testRename() {
199 // strings
200 $this->redis->delete('key0');
201 $this->redis->set('key0', 'val0');
QueryLexer.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 508 lines
355 for ($this->_queryStringPosition = 0;
356 $this->_queryStringPosition < count($this->_queryString);
357 $this->_queryStringPosition++) {
358 $this->process($this->_translateInput($this->_queryString[$this->_queryStringPosition]));
359 }
427 $this->_lexemes[] = new Zend_Search_Lucene_Search_QueryToken(
428 Zend_Search_Lucene_Search_QueryToken::TC_SYNTAX_ELEMENT,
429 $this->_queryString[$this->_queryStringPosition],
430 $this->_queryStringPosition);
475 public function addLexemeChar()
476 {
477 $this->_currentLexeme .= $this->_queryString[$this->_queryStringPosition];
478 }
weblib.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 1363 lines
336 else { $propert->id = ''; }
338 if (isset($propert->class)) { $propert->class = ' class="'.$propert->class.'"'; }
339 else { $propert->class = ''; }
385 else { $propert->id = ''; }
387 if (isset($propert->class)) { $propert->class = ' class="'.$propert->class.'"'; }
388 else { $propert->class = ''; }
710 else { $propert->id = ''; }
712 if (isset($propert->class)) { $propert->class = ' class="'.$propert->class.'"'; }
713 else { $propert->class = ''; }
771 else { $propert->id = ''; }
773 if (isset($propert->class)) { $propert->class = ' class="'.$propert->class.'"'; }
774 else { $propert->class = ''; }
XMLDBTable.class.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 1080 lines
1 <?php // $Id: XMLDBTable.class.php,v 1.22 2007/10/10 05:25:14 nicolasconnault Exp $
3 ///////////////////////////////////////////////////////////////////////////
25 ///////////////////////////////////////////////////////////////////////////
27 /// This class represent one XMLDB table
29 class XMLDBTable extends XMLDBObject {
700 * its attributes defined
701 *
702 * @param string name name of the field
703 * @param string type XMLDB_TYPE_INTEGER, XMLDB_TYPE_NUMBER, XMLDB_TYPE_CHAR, XMLDB_TYPE_TEXT, XMLDB_TYPE_BINARY
704 * @param string precision length for integers and chars, two-comma separated numbers for numbers and 'small', 'medium', 'big' for texts and binaries
705 * @param string unsigned XMLDB_UNSIGNED or null (or false)
xml.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 647 lines
9 /**#@+
10 * include other SimpleTest class files
11 */
12 require_once(dirname(__FILE__) . '/scorer.php');
19 * @subpackage UnitTester
20 */
21 class XmlReporter extends SimpleReporter {
22 var $_indent;
23 var $_namespace;
25 /**
26 * Sets up indentation and namespace.
27 * @param string $namespace Namespace to add to each tag.
28 * @param string $indent Indenting to add on each nesting.
39 * from the current level of nesting.
40 * @param integer $offset Extra indenting level.
41 * @return string Leading space.
42 * @access protected
43 */
web_tester.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 1270 lines
313 /**
314 * Sets the value to compare against.
315 * @param string $substring Text to search for.
316 * @param string $message Customised message on failure.
319 function TextExpectation($substring, $message = '%s') {
320 $this->SimpleExpectation($message);
321 $this->_substring = $substring;
322 }
363 * Describes a pattern match including the string
364 * found and it's position.
365 * @param string $substring Text to search for.
366 * @param string $subject Subject to search.
386 /**
387 * Sets the reject pattern
388 * @param string $substring Text to search for.
389 * @param string $message Customised message on failure.
unit_tester.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 419 lines
96 /**
97 * Type and class test. Will pass if class
98 * matches the type name or is a subclass or
116 * specified.
117 * @param mixed $object Object to test.
118 * @param string $type Type name as string.
119 * @param string $message Message to display.
291 * @param string $pattern Perl regex to look for including
292 * the regex delimiters.
293 * @param string $subject String to search in.
294 * @param string $message Message to display.
315 * @param string $pattern Perl regex to look for including
316 * the regex delimiters.
317 * @param string $subject String to search in.
318 * @param string $message Message to display.
tag.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 1392 lines
19 * @subpackage WebTester
20 */
21 class SimpleTag {
22 var $_name;
23 var $_attributes;
26 /**
27 * Starts with a named tag with attributes only.
28 * @param string $name Tag name.
29 * @param hash $attributes Attribute names and
30 * string values. Note that
122 /**
123 * Accessor for the whole content so far.
124 * @return string Content as big raw string.
125 * @access public
126 */
187 * Accessor for URL as string.
188 * @return string Coerced as string.
189 * @access public
190 */
scorer.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 863 lines
19 * @abstract
20 */
21 class SimpleScorer {
22 var $_passes;
23 var $_fails;
49 /**
50 * The reporter has a veto on what should be run.
51 * @param string $test_case_name name of test case.
52 * @param string $method Name of test method.
84 /**
85 * Paints the start of a group test.
86 * @param string $test_name Name of test or other label.
87 * @param integer $size Number of test cases starting.
88 * @access public
93 /**
94 * Paints the end of a group test.
95 * @param string $test_name Name of test or other label.
96 * @access public
97 */
http.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 624 lines
255 /**
256 * Adds a header line to the request.
257 * @param string $header_line Text of full header line.
258 * @access public
259 */
305 /**
306 * Parses the incoming header block.
307 * @param string $headers Header block.
308 * @access public
309 */
333 /**
334 * Accessor for raw header block.
335 * @return string All headers as raw string.
336 * @access public
337 */
frames.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 588 lines
180 /**
181 * Accessor for frames information.
182 * @return array/string Recursive hash of frame URL strings.
183 * The key is either a numerical
184 * index or the name attribute.
281 /**
282 * Accessor for current MIME type.
283 * @return string MIME type as string; e.g. 'text/html'
284 * @access public
285 */
571 * Accessor for a form element value within a page.
572 * @param SimpleSelector $selector Field finder.
573 * @return string/boolean A string if the field is
574 * present, false if unchecked
575 * and null if missing.
expectation.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 811 lines
524 /**
525 * Accessor for the pattern.
526 * @return string Perl regex as string.
527 * @access protected
528 */
672 /**
673 * Tests the expectation. True if the type or
674 * class matches the string value.
675 * @param string $compare Comparison value.
729 /**
730 * Sets the type to compare with.
731 * @param string $type Type or class name.
732 * @param string $message Customised message on failure.
739 /**
740 * Tests the expectation. False if the type or
741 * class matches the string value.
742 * @param string $compare Comparison value.
encoding.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 521 lines
142 /**
143 * Tests each character is in the range 0-127.
144 * @param string $ascii String to test.
145 * @access private
146 */
175 /**
176 * Is this the value we are looking for?
177 * @return string Content.
178 * @access public
179 */
274 /**
275 * Accessor for single value.
276 * @return string/array False if missing, string
277 * if present and array if
278 * multiple entries.
TreeWalkerChain.php (https://github.com/lboynton/zf-acl-navigation.git) PHP · 651 lines
54 * Adds a tree walker to the chain.
55 *
56 * @param string $walkerClass The class of the walker to instantiate.
57 */
58 public function addTreeWalker($walkerClass)
596 * @return string The SQL.
597 */
598 public function walkStringPrimary($stringPrimary)
599 {
600 foreach ($this->_walkers as $walker) {
601 $walker->walkStringPrimary($stringPrimary);
602 }
603 }
Container.php (https://github.com/lboynton/zf-acl-navigation.git) PHP · 665 lines
60 if (isset($config['classLoader'])) {
61 $this->registerClassLoaders($config['classLoader']);
62 }
103 private function registerClassLoaders(array $config = array())
104 {
105 $classLoaderClass = $config['loaderClass'];
106 $classLoaderFile = $config['loaderFile'];
110 foreach ($config['loaders'] as $loaderItem) {
111 $classLoader = new $classLoaderClass($loaderItem['namespace'], $loaderItem['includePath']);
112 $classLoader->register();
595 $driver = array_replace_recursive($defaultMetadataDriver, $driver);
597 $reflClass = new \ReflectionClass($driver['adapterClass']);
598 $nestedDriver = null;
perl_matcher_recursive.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file implements a regular expression engine, providing functions for matching and manipulating strings according to regular expression rules. It includes various match functions (match_recursion
, match_match
, etc.) that handle different aspects of pattern matching, such as recursion, lookahead, and capturing groups. The code is part of the Boost library, a popular C++ framework for functional programming and other utilities.
This C++ header file implements a regular expression engine, providing functions for matching and manipulating strings according to regular expression rules. It includes various match functions (match_recursion
, match_match
, etc.) that handle different aspects of pattern matching, such as recursion, lookahead, and capturing groups. The code is part of the Boost library, a popular C++ framework for functional programming and other utilities.
453 }
455 template <class BidiIterator, class Allocator, class traits>
456 bool perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_fast()
457 {
710 }
712 template <class BidiIterator, class Allocator, class traits>
713 bool perl_matcher<BidiIterator, Allocator, traits>::match_long_set_repeat()
714 {
925 }
927 template <class BidiIterator, class Allocator, class traits>
928 bool perl_matcher<BidiIterator, Allocator, traits>::match_match()
929 {
cache.php (https://gitlab.com/Gashler/dp) PHP · 653 lines
13 *
14 * @since 2.0.0
15 * @uses $wp_object_cache Object Cache Class
16 * @see WP_Object_Cache::add()
17 *
18 * @param int|string $key The cache key to use for retrieval later
19 * @param mixed $data The data to add to the cache store
20 * @param string $group The group to add the cache to
48 *
49 * @since 3.3.0
50 * @uses $wp_object_cache Object Cache Class
51 * @see WP_Object_Cache::decr()
52 *
MvcModelQueryBuilderTest.php (https://gitlab.com/szlongshu/manaphp) PHP · 500 lines
12 use Models\Payment;
14 class MvcModelQueryBuilderTest extends TestCase
15 {
48 {
49 //select all implicitly
50 $builder = $this->modelsManager->createBuilder()->columns('city_id')->addFrom(get_class(new Address()));
51 $this->assertCount(603, $builder->getQuery()->execute());
54 $builder = $this->modelsManager->createBuilder()
55 ->columns('city_id')
56 ->addFrom(get_class(new Address()))
57 ->distinct(false);
58 $this->assertCount(603, $builder->getQuery()->execute());
route.php (https://gitlab.com/julienv/joomleague) PHP · 802 lines
html-quote.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 72 lines
51 :group 'html-qoute
52 :type '(alist :key-type character
53 :value-type string))
56 (defun html-quote-html-char (char)
57 "Return CHAR as string if safe, otherwise its html entity."
58 (or (cdr (assoc char html-quote-html))
59 (char-to-string char)))
61 (defun html-quote-html-string (str)
62 "Return html escaped STR."
63 (mapconcat 'html-quote-html-char
QueryBuilderTest.php (https://github.com/mrtorrent/dbal.git) PHP · 572 lines
11 * @group DBAL-12
12 */
13 class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
14 {
15 protected $conn;
33 ->from('users', 'u');
35 $this->assertEquals('SELECT u.id FROM users u', (string) $qb);
36 }
45 ->where($expr->andX($expr->eq('u.nickname', '?')));
47 $this->assertEquals("SELECT u.id FROM users u WHERE u.nickname = ?", (string) $qb);
48 }
Jquery.php (https://github.com/ricardocasares/Cobros.git) PHP · 1071 lines
393 * @return string
394 */
395 function _addClass($element = 'this', $class='')
396 {
397 $element = $this->_prep_element($element);
398 $str = "$({$element}).addClass(\"$class\");";
399 return $str;
400 }
537 * @return string
538 */
539 function _removeClass($element = 'this', $class='')
540 {
541 $element = $this->_prep_element($element);
Javascript.php (https://github.com/ricardocasares/Cobros.git) PHP · 871 lines
392 * @param string - element
393 * @param string - Class to add
394 * @return string
395 */
396 function addClass($element = 'this', $class = '')
397 {
398 return $this->js->_addClass($element, $class);
481 * @param string - element
482 * @param string - Class to add
483 * @return string
484 */
485 function removeClass($element = 'this', $class = '')
486 {
487 return $this->js->_removeClass($element, $class);
DelegatingValidatorTest.php (https://github.com/Faianca/symfony.git) PHP · 699 lines
20 use Symfony\Component\Validator\ExecutionContext;
22 class DelegatingValidatorTest extends \PHPUnit_Framework_TestCase
23 {
24 private $dispatcher;
55 protected function getMockMetadataFactory()
56 {
57 return $this->getMock('Symfony\Component\Validator\Mapping\ClassMetadataFactoryInterface');
58 }
94 public function testUseValidateValueWhenValidationConstraintExist()
95 {
96 $constraint = $this->getMockForAbstractClass('Symfony\Component\Validator\Constraint');
97 $form = $this
98 ->getBuilder('name')
DateTypeTest.php (https://github.com/Faianca/symfony.git) PHP · 638 lines
17 use Symfony\Component\Form\FormView;
19 class DateTypeTest extends LocalizedTestCase
20 {
21 protected function setUp()
61 }
63 public function testSubmitFromSingleTextString()
64 {
65 $form = $this->factory->create('date', null, array(
67 'user_timezone' => 'UTC',
68 'widget' => 'single_text',
69 'input' => 'string',
70 ));
FormBuilder.php (https://github.com/Faianca/symfony.git) PHP · 699 lines
120 * @param FormFactoryInterface $factory
121 * @param EventDispatcherInterface $dispatcher
122 * @param string $dataClass
123 */
124 public function __construct($name, FormFactoryInterface $factory, EventDispatcherInterface $dispatcher, $dataClass = null)
127 $this->factory = $factory;
128 $this->dispatcher = $dispatcher;
129 $this->dataClass = $dataClass;
130 }
426 * Returns whether the form has an attribute with the given name.
427 *
428 * @param string $name The name of the attribute
429 */
430 public function hasAttribute($name)
HelperAbstract.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 855 lines
253 * number of spaces to indent with
254 *
255 * @param string|int $indent indentation string or
256 * number of spaces
257 * @return Zend_View_Helper_Navigation_HelperAbstract fluent interface,
673 'id' => $page->getId(),
674 'title' => $title,
675 'class' => $page->getClass(),
676 'href' => $page->getHref(),
677 'target' => $page->getTarget()
784 * @param array $attribs an array where each key-value pair is converted
785 * to an attribute name and value
786 * @return string an attribute string
787 */
788 protected function _htmlAttribs($attribs)
ConferenceCall.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 872 lines
324 * @license http://framework.zend.com/license/new-bsd New BSD License
325 */
326 class Zend_Service_DeveloperGarden_ConferenceCall
327 extends Zend_Service_DeveloperGarden_Client_ClientAbstract
328 {
330 * wsdl file
331 *
332 * @var string
333 */
334 protected $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-ccs/services/ccsPort?wsdl';
337 * the local WSDL file
338 *
339 * @var string
340 */
341 protected $_wsdlFileLocal = 'Wsdl/ccsPort.wsdl';
Compression.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 391 lines
31 * @license http://framework.zend.com/license/new-bsd New BSD License
32 */
33 abstract class Zend_Pdf_Filter_Compression implements Zend_Pdf_Filter_Interface
34 {
35 /**
150 * Convert stream data according to the filter params set before encoding.
151 *
152 * @param string $data
153 * @param array $params
154 * @return string
286 * Convert stream data according to the filter params set after decoding.
287 *
288 * @param string $data
289 * @param array $params
290 * @return string
File.php (https://github.com/eschabell/openshift-zendframework.git) PHP · 511 lines
36 * @license http://framework.zend.com/license/new-bsd New BSD License
37 */
38 class Zend_OpenId_Consumer_Storage_File extends Zend_OpenId_Consumer_Storage
39 {
42 * Directory name to store data files in
43 *
44 * @var string $_dir
45 */
46 private $_dir;
49 * Constructs storage object and creates storage directory
50 *
51 * @param string $dir directory name to store data files in
52 * @throws Zend_OpenId_Exception
53 */
testwalkthrough.php (https://github.com/viggof/moodle.git) PHP · 488 lines
37 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38 */
39 class qtype_match_walkthrough_test extends qbehaviour_walkthrough_test_base {
41 public function test_deferred_feedback_unanswered() {
48 $choiceorder = $m->get_choice_order();
49 $orderforchoice = array_combine(array_values($choiceorder), array_keys($choiceorder));
50 $choices = array(0 => get_string('choose') . '...');
51 foreach ($choiceorder as $key => $choice) {
52 $choices[$key] = $m->choices[$choice];
103 $choiceorder = $m->get_choice_order();
104 $orderforchoice = array_combine(array_values($choiceorder), array_keys($choiceorder));
105 $choices = array(0 => get_string('choose') . '...');
106 foreach ($choiceorder as $key => $choice) {
107 $choices[$key] = $m->choices[$choice];
testaccessrules.php (https://github.com/viggof/moodle.git) PHP · 614 lines
36 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37 */
38 class simple_rules_test extends UnitTestCase {
39 public static $includecoverage = array('mod/quiz/locallib.php');
40 public function test_num_attempts_access_rule() {
41 $quiz = new stdClass();
42 $quiz->attempts = 3;
43 $quiz->questions = '';
44 $cm = new stdClass();
45 $cm->id = 0;
46 $quizobj = new quiz($quiz, $cm, null);
config_3.3.0pr3.php (https://github.com/viggof/moodle.git) PHP · 2155 lines
124 1 => 'querystring-stringify',
125 ),
126 'path' => 'querystring/querystring-min.js',
127 'rollup' => 2,
128 'type' => 'js',
132 'querystring-parse' =>
133 array (
134 'path' => 'querystring/querystring-parse-min.js',
135 'requires' =>
136 array (
145 'querystring-stringify' =>
146 array (
147 'path' => 'querystring/querystring-stringify-min.js',
148 'requires' =>
149 array (
xmldb_table.php (https://github.com/viggof/moodle.git) PHP · 846 lines
25 ///////////////////////////////////////////////////////////////////////////
27 /// This class represent one XMLDB table
29 class xmldb_table extends xmldb_object {
723 * its attributes defined
724 *
725 * @param string name name of the field
726 * @param string type XMLDB_TYPE_INTEGER, XMLDB_TYPE_NUMBER, XMLDB_TYPE_CHAR, XMLDB_TYPE_TEXT, XMLDB_TYPE_BINARY
727 * @param string precision length for integers and chars, two-comma separated numbers for numbers and 'small', 'medium', 'big' for texts and binaries
728 * @param string unsigned XMLDB_UNSIGNED or null (or false)
729 * @param string notnull XMLDB_NOTNULL or null (or false)
730 * @param string sequence XMLDB_SEQUENCE or null (or false)
PHP.php (https://github.com/viggof/moodle.git) PHP · 398 lines
102 'with' => array(),
103 ),
104 T_CLASS => array(
105 'start' => T_OPEN_CURLY_BRACKET,
106 'end' => T_CLOSE_CURLY_BRACKET,
178 * to insert information about the context of the token.
179 *
180 * @param string $string The string to tokenize.
181 * @param string $eolChar The EOL character to use for splitting strings.
183 * @return array
184 */
185 public function tokenizeString($string, $eolChar='\n')
186 {
187 $tokens = @token_get_all($string);
217 /*
218 If this is a double quoted string, PHP will tokenise the whole
219 thing which causes problems with the scope map when braces are
220 within the string. So we need to merge the tokens together to
setting_dependency.class.php (https://github.com/viggof/moodle.git) PHP · 455 lines
24 /**
25 * Generic abstract dependency class
26 *
27 * @copyright 2010 Sam Hemelryk
28 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29 */
30 abstract class setting_dependency {
32 /**
167 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
168 */
169 class setting_dependency_disabledif_equals extends setting_dependency {
170 /**
171 * The value to compare to
testclient_forms.php (https://github.com/viggof/moodle.git) PHP · 729 lines
6 class webservice_test_client_form extends moodleform {
7 public function definition() {
8 global $CFG;
11 list($functions, $protocols) = $this->_customdata;
13 $mform->addElement('header', 'wstestclienthdr', get_string('testclient', 'webservice'));
15 $authmethod = array('simple' => 'simple', 'token' => 'token');
16 $mform->addElement('select', 'authmethod', get_string('authmethod', 'webservice'), $authmethod);
18 $mform->addElement('select', 'protocol', get_string('protocol', 'webservice'), $protocols);
ActionListHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 204 lines
✨ Summary
This Java class, ActionListHandler
, is an XML handler that parses action files and populates an ActionSet
with actions. It handles various XML elements, such as ACTION
, CODE
, and IS_SELECTED
, and updates instance variables accordingly. The class also keeps track of the current element using a stack to ensure correct parsing order.
This Java class, ActionListHandler
, is an XML handler that parses action files and populates an ActionSet
with actions. It handles various XML elements, such as ACTION
, CODE
, and IS_SELECTED
, and updates instance variables accordingly. The class also keeps track of the current element using a stack to ensure correct parsing order.
43 //{{{ resolveEntity() method
44 public Object resolveEntity(String publicId, String systemId)
45 {
46 if("actions.dtd".equals(systemId))
69 //{{{ attribute() method
70 public void attribute(String aname, String value, boolean isSpecified)
71 {
72 aname = (aname == null) ? null : aname.intern();
180 //{{{ pushElement() method
181 private String pushElement(String name)
182 {
183 name = (name == null) ? null : name.intern();
verilog.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 219 lines
SH.php (https://github.com/joshuaswarren/weatherhub.git) PHP · 1207 lines
1 <?php
2 /**
3 * Auto-generated class. SH syntax highlighting
4 *
5 * This highlighter is EXPERIMENTAL. It may work incorrectly.
28 /**
29 * Auto-generated class. SH syntax highlighting
30 *
31 * @author Noah Spurrier <noah@noah.org>
37 * @link http://pear.php.net/package/Text_Highlighter
38 */
39 class Text_Highlighter_SH extends Text_Highlighter
40 {
41 var $_language = 'sh';
PHP.php (https://github.com/joshuaswarren/weatherhub.git) PHP · 1089 lines
604 array (
605 'constants' => '/^(DIRECTORY_SEPARATOR|PATH_SEPARATOR)$/',
606 'reserved' => '/^((?i)echo|foreach|else|if|elseif|for|as|while|break|continue|class|const|declare|switch|case|endfor|endswitch|endforeach|endif|array|default|do|enddeclare|eval|exit|die|extends|function|global|include|include_once|require|require_once|isset|empty|list|new|static|unset|var|return|try|catch|final|throw|public|private|protected|abstract|interface|implements|define|__file__|__line__|__class__|__method__|__function__|null|true|false|and|or|xor)$/',
607 ),
608 10 =>
681 array (
682 'constants' => '/^(DIRECTORY_SEPARATOR|PATH_SEPARATOR)$/',
683 'reserved' => '/^((?i)echo|foreach|else|if|elseif|for|as|while|break|continue|class|const|declare|switch|case|endfor|endswitch|endforeach|endif|array|default|do|enddeclare|eval|exit|die|extends|function|global|include|include_once|require|require_once|isset|empty|list|new|static|unset|var|return|try|catch|final|throw|public|private|protected|abstract|interface|implements|define|__file__|__line__|__class__|__method__|__function__|null|true|false|and|or|xor)$/',
684 ),
685 10 =>
719 array (
720 'constants' => '/^(DIRECTORY_SEPARATOR|PATH_SEPARATOR)$/',
721 'reserved' => '/^((?i)echo|foreach|else|if|elseif|for|as|while|break|continue|class|const|declare|switch|case|endfor|endswitch|endforeach|endif|array|default|do|enddeclare|eval|exit|die|extends|function|global|include|include_once|require|require_once|isset|empty|list|new|static|unset|var|return|try|catch|final|throw|public|private|protected|abstract|interface|implements|define|__file__|__line__|__class__|__method__|__function__|null|true|false|and|or|xor)$/',
722 ),
723 10 =>
PERL.php (https://github.com/joshuaswarren/weatherhub.git) PHP · 1334 lines
1 <?php
2 /**
3 * Auto-generated class. PERL syntax highlighting
4 *
5 * This highlighter is EXPERIMENTAL, so that it may work incorrectly.
29 /**
30 * Auto-generated class. PERL syntax highlighting
31 *
32 * @author Mariusz 'kg' Jakubowski <kg@alternatywa.info>
39 * @link http://pear.php.net/package/Text_Highlighter
40 */
41 class Text_Highlighter_PERL extends Text_Highlighter
42 {
43 var $_language = 'perl';
StubLocale.php (https://github.com/Exercise/symfony.git) PHP · 493 lines
193 * Returns the best available locale based on HTTP "Accept-Language" header according to RFC 2616
194 *
195 * @param string $header The string containing the "Accept-Language" header value
196 *
197 * @return string The corresponding locale code
307 * Returns the localized display name for the locale region
308 *
309 * @param string $locale The locale code to return the display region from
310 * @param string $inLocale Optional format locale code to use to display the region name
311 *
312 * @return string The localized region display name
313 *
314 * @see http://www.php.net/manual/en/locale.getdisplayregion.php
324 * Returns the localized display name for the locale script
325 *
326 * @param string $locale The locale code to return the display script from
327 * @param string $inLocale Optional format locale code to use to display the script name
FormBuilder.php (https://github.com/Exercise/symfony.git) PHP · 737 lines
126 * @param FormFactoryInterface $factory
127 * @param EventDispatcherInterface $dispatcher
128 * @param string $dataClass
129 */
130 public function __construct($name, FormFactoryInterface $factory, EventDispatcherInterface $dispatcher, $dataClass = null)
137 $this->factory = $factory;
138 $this->dispatcher = $dispatcher;
139 $this->dataClass = $dataClass;
140 }
530 * object hierarchy.
531 *
532 * @param string|FormBuilder $child
533 * @param string|FormTypeInterface $type
584 }
586 return $this->getFormFactory()->createBuilderForProperty($this->dataClass, $name, null, $options, $this);
587 }
dbo_source.test.php (https://github.com/cgajardo/repositorium.git) PHP · 1804 lines
models.php (https://github.com/cgajardo/repositorium.git) PHP · 3143 lines
model_validation.test.php (https://github.com/cgajardo/repositorium.git) PHP · 673 lines
28 * @subpackage cake.tests.cases.libs.model.operations
29 */
30 class ModelValidationTest extends BaseModelTest {
32 /**
514 );
515 $data = array('TestValidate' => array(
516 'title' => 'I am a short string'
517 ));
518 $TestModel->create($data);
535 );
536 $data = array('TestValidate' => array(
537 'title' => 'I am a short string'
538 ));
539 $TestModel->create($data);
i18n.test.php (https://github.com/cgajardo/repositorium.git) PHP · 854 lines
calendar.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 620 lines
12 /**
13 * Google Calendar data class for the Joomla Platform.
14 *
15 * @package Joomla.Platform
17 * @since 12.3
18 */
19 class JGoogleDataCalendar extends JGoogleData
20 {
21 /**
40 * Method to remove a calendar from a user's calendar list
41 *
42 * @param string $calendarID ID of calendar to delete
43 *
44 * @return boolean Success or failure
pulls.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 585 lines
12 /**
13 * GitHub API Pull Requests class for the Joomla Platform.
14 *
15 * @package Joomla.Platform
17 * @since 11.3
18 */
19 class JGithubPulls extends JGithubObject
20 {
21 /**
22 * Method to create a pull request.
23 *
24 * @param string $user The name of the owner of the GitHub repository.
25 * @param string $repo The name of the GitHub repository.
26 * @param string $title The title of the new pull request.
27 * @param string $base The branch (or git ref) you want your changes pulled into. This
issues.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 636 lines
12 /**
13 * GitHub API Issues class for the Joomla Platform.
14 *
15 * @package Joomla.Platform
17 * @since 11.3
18 */
19 class JGithubIssues extends JGithubObject
20 {
21 /**
22 * Method to create an issue.
23 *
24 * @param string $user The name of the owner of the GitHub repository.
25 * @param string $repo The name of the GitHub repository.
26 * @param string $title The title of the new issue.
27 * @param string $body The body text for the new issue.
user.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 991 lines
14 /**
15 * Facebook API User class for the Joomla Platform.
16 *
17 * @package Joomla.Platform
352 * @param string $place Id of the Place Page.
353 * @param string $coordinates A JSON-encoded string containing latitute and longitude.
354 * @param string $tags Comma separated list of USER_IDs.
437 * @param string $location_id Facebook Place ID of the place the Event is taking place.
438 * @param string $privacy_type Event privacy setting, a string containing 'OPEN' (default), 'CLOSED', or 'SECRET'.
439 *
440 * @return mixed The decoded JSON response or false if the client is not authenticated.
469 * @param string $location_id Facebook Place ID of the place the Event is taking place.
470 * @param string $privacy_type Event privacy setting, a string containing 'OPEN' (default), 'CLOSED', or 'SECRET'.
471 *
472 * @return mixed The decoded JSON response or false if the client is not authenticated.
event.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 523 lines
13 /**
14 * Facebook API User class for the Joomla Platform.
15 *
16 * @package Joomla.Platform
20 * @since 13.1
21 */
22 class JFacebookEvent extends JFacebookObject
23 {
24 /**
25 * Method to get information about an event visible to the current user. Requires authentication.
26 *
27 * @param string $event The event id.
28 *
29 * @return mixed The decoded JSON response or false if the client is not authenticated.
renderable.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 803 lines
88 /** @var moodleform $form is the edit submission form */
89 public $form = null;
90 /** @var string $classname is the name of the class to assign to the container */
91 public $classname = '';
95 /**
96 * Constructor
97 * @param string $classname This is the class name for the container div
98 * @param moodleform $form This is the moodleform
99 * @param string $jsinitfunction This is an optional js function to add to the page requires
101 public function __construct($classname, moodleform $form, $jsinitfunction = '') {
102 $this->classname = $classname;
103 $this->form = $form;
104 $this->jsinitfunction = $jsinitfunction;
659 * @param string $sectionname - The name of the course section (only if $usesections is true)
660 * @param int $timedue - The due date for the assignment - may be 0 if no duedate
661 * @param string $submissioninfo - A string with either the number of submitted assignments, or the
662 * status of the current users submission depending on capabilities.
663 * @param string $gradeinfo - The current users grade if they have been graded and it is not hidden.
Google_StorageService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 1076 lines
23 * </code>
24 */
25 class Google_ObjectAccessControlsServiceResource extends Google_ServiceResource {
29 * Creates a new ACL entry on the specified object. (objectAccessControls.insert)
30 *
31 * @param string $bucket Name of a bucket.
32 * @param string $object Name of the object.
548 $client->addService($this->serviceName, $this->version);
549 $this->objectAccessControls = new Google_ObjectAccessControlsServiceResource($this, $this->serviceName, 'objectAccessControls', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "httpMethod": "POST", "path": "b/{bucket}/o/{object}/acl", "id": "storage.objectAccessControls.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "id": "storage.objectAccessControls.get", "httpMethod": "GET", "path": "b/{bucket}/o/{object}/acl/{entity}", "response": {"$ref": "ObjectAccessControl"}}, "list": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}}, "id": "storage.objectAccessControls.list", "httpMethod": "GET", "path": "b/{bucket}/o/{object}/acl", "response": {"$ref": "ObjectAccessControls"}}, "update": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "httpMethod": "PUT", "path": "b/{bucket}/o/{object}/acl/{entity}", "id": "storage.objectAccessControls.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "httpMethod": "PATCH", "path": "b/{bucket}/o/{object}/acl/{entity}", "id": "storage.objectAccessControls.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "path": "b/{bucket}/o/{object}/acl/{entity}", "id": "storage.objectAccessControls.delete", "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
550 $this->bucketAccessControls = new Google_BucketAccessControlsServiceResource($this, $this->serviceName, 'bucketAccessControls', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "httpMethod": "POST", "path": "b/{bucket}/acl", "id": "storage.bucketAccessControls.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "id": "storage.bucketAccessControls.get", "httpMethod": "GET", "path": "b/{bucket}/acl/{entity}", "response": {"$ref": "BucketAccessControl"}}, "list": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}}, "id": "storage.bucketAccessControls.list", "httpMethod": "GET", "path": "b/{bucket}/acl", "response": {"$ref": "BucketAccessControls"}}, "update": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "httpMethod": "PUT", "path": "b/{bucket}/acl/{entity}", "id": "storage.bucketAccessControls.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "httpMethod": "PATCH", "path": "b/{bucket}/acl/{entity}", "id": "storage.bucketAccessControls.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"], "path": "b/{bucket}/acl/{entity}", "id": "storage.bucketAccessControls.delete", "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "entity": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
551 $this->objects = new Google_ObjectsServiceResource($this, $this->serviceName, 'objects', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "name": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "supportsMediaUpload": true, "request": {"$ref": "Object"}, "mediaUpload": {"protocols": {"simple": {"path": "/upload/storage/v1beta1/b/{bucket}/o", "multipart": true}, "resumable": {"path": "/resumable/upload/storage/v1beta1/b/{bucket}/o", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "Object"}, "httpMethod": "POST", "path": "b/{bucket}/o", "id": "storage.objects.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "id": "storage.objects.get", "httpMethod": "GET", "supportsMediaDownload": true, "path": "b/{bucket}/o/{object}", "response": {"$ref": "Object"}}, "list": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"max-results": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}, "bucket": {"required": true, "type": "string", "location": "path"}, "prefix": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "delimiter": {"type": "string", "location": "query"}}, "response": {"$ref": "Objects"}, "httpMethod": "GET", "supportsSubscription": true, "path": "b/{bucket}/o", "id": "storage.objects.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "httpMethod": "PUT", "path": "b/{bucket}/o/{object}", "id": "storage.objects.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "httpMethod": "PATCH", "path": "b/{bucket}/o/{object}", "id": "storage.objects.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "path": "b/{bucket}/o/{object}", "id": "storage.objects.delete", "parameters": {"object": {"required": true, "type": "string", "location": "path"}, "bucket": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
552 $this->buckets = new Google_BucketsServiceResource($this, $this->serviceName, 'buckets', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "httpMethod": "POST", "path": "b", "id": "storage.buckets.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "id": "storage.buckets.get", "httpMethod": "GET", "path": "b/{bucket}", "response": {"$ref": "Bucket"}}, "list": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"max-results": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}, "projectId": {"required": true, "type": "string", "location": "query", "format": "uint64"}}, "id": "storage.buckets.list", "httpMethod": "GET", "path": "b", "response": {"$ref": "Buckets"}}, "update": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "httpMethod": "PUT", "path": "b/{bucket}", "id": "storage.buckets.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}, "projection": {"enum": ["full", "no_acl"], "type": "string", "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "httpMethod": "PATCH", "path": "b/{bucket}", "id": "storage.buckets.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "path": "b/{bucket}", "id": "storage.buckets.delete", "parameters": {"bucket": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
Google_OrkutService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 917 lines
902 $client->addService($this->serviceName, $this->version);
903 $this->communityMembers = new Google_CommunityMembersServiceResource($this, $this->serviceName, 'communityMembers', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityMembers.insert", "httpMethod": "POST", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.get", "httpMethod": "GET", "path": "communities/{communityId}/members/{userId}", "response": {"$ref": "CommunityMembers"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "friendsOnly": {"type": "boolean", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityMembers.list", "httpMethod": "GET", "path": "communities/{communityId}/members", "response": {"$ref": "CommunityMembersList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/members/{userId}", "id": "orkut.communityMembers.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
904 $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["all", "scraps", "stream"]}}, "id": "orkut.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}", "id": "orkut.activities.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
905 $this->communityPollComments = new Google_CommunityPollCommentsServiceResource($this, $this->serviceName, 'communityPollComments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollComment"}, "response": {"$ref": "CommunityPollComment"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/comments", "id": "orkut.communityPollComments.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pollId": {"required": true, "type": "string", "location": "path"}, "pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPollComments.list", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}/comments", "response": {"$ref": "CommunityPollCommentList"}}}}', true));
906 $this->communityPolls = new Google_CommunityPollsServiceResource($this, $this->serviceName, 'communityPolls', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPolls.list", "httpMethod": "GET", "path": "communities/{communityId}/polls", "response": {"$ref": "CommunityPollList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityPolls.get", "httpMethod": "GET", "path": "communities/{communityId}/polls/{pollId}", "response": {"$ref": "CommunityPoll"}}}}', true));
907 $this->communityMessages = new Google_CommunityMessagesServiceResource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityMessage"}, "response": {"$ref": "CommunityMessage"}, "httpMethod": "POST", "path": "communities/{communityId}/topics/{topicId}/messages", "id": "orkut.communityMessages.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}, "topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "id": "orkut.communityMessages.list", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}/messages", "response": {"$ref": "CommunityMessageList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "id": "orkut.communityMessages.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "messageId": {"required": true, "type": "string", "location": "path", "format": "int64"}}, "httpMethod": "DELETE"}}}', true));
908 $this->communityTopics = new Google_CommunityTopicsServiceResource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"isShout": {"type": "boolean", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "CommunityTopic"}, "response": {"$ref": "CommunityTopic"}, "httpMethod": "POST", "path": "communities/{communityId}/topics", "id": "orkut.communityTopics.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.get", "httpMethod": "GET", "path": "communities/{communityId}/topics/{topicId}", "response": {"$ref": "CommunityTopic"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "maxResults": {"location": "query", "minimum": "1", "type": "integer", "maximum": "100", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communityTopics.list", "httpMethod": "GET", "path": "communities/{communityId}/topics", "response": {"$ref": "CommunityTopicList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/topics/{topicId}", "id": "orkut.communityTopics.delete", "parameters": {"topicId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
909 $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "httpMethod": "POST", "path": "activities/{activityId}/comments", "id": "orkut.comments.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}, "list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"default": "DESCENDING_SORT", "enum": ["ascending", "descending"], "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "comments/{commentId}", "id": "orkut.comments.delete", "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
910 $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "activities/{activityId}/acl/{userId}", "id": "orkut.acl.delete", "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
913 $this->communityPollVotes = new Google_CommunityPollVotesServiceResource($this, $this->serviceName, 'communityPollVotes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "pollId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CommunityPollVote"}, "response": {"$ref": "CommunityPollVote"}, "httpMethod": "POST", "path": "communities/{communityId}/polls/{pollId}/votes", "id": "orkut.communityPollVotes.insert"}}}', true));
914 $this->communities = new Google_CommunitiesServiceResource($this, $this->serviceName, 'communities', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"orderBy": {"enum": ["id", "ranked"], "type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "uint32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.list", "httpMethod": "GET", "path": "people/{userId}/communities", "response": {"$ref": "CommunityList"}}, "get": {"scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "hl": {"type": "string", "location": "query"}}, "id": "orkut.communities.get", "httpMethod": "GET", "path": "communities/{communityId}", "response": {"$ref": "Community"}}}}', true));
915 $this->communityFollow = new Google_CommunityFollowServiceResource($this, $this->serviceName, 'communityFollow', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/orkut"], "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "orkut.communityFollow.insert", "httpMethod": "POST", "path": "communities/{communityId}/followers/{userId}", "response": {"$ref": "CommunityMembers"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/orkut"], "path": "communities/{communityId}/followers/{userId}", "id": "orkut.communityFollow.delete", "parameters": {"communityId": {"required": true, "type": "integer", "location": "path", "format": "int32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
Google_ModeratorService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 1039 lines
23 * </code>
24 */
25 class Google_VotesServiceResource extends Google_ServiceResource {
30 * series. (votes.insert)
31 *
32 * @param string $seriesId The decimal ID of the Series.
33 * @param string $submissionId The decimal ID of the Submission within the Series.
35 * @param array $optParams Optional parameters.
36 *
37 * @opt_param string unauthToken User identifier for unauthenticated usage mode
38 * @return Google_Vote
39 */
908 $client->addService($this->serviceName, $this->version);
909 $this->votes = new Google_VotesServiceResource($this, $this->serviceName, 'votes', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.insert"}, "patch": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "PATCH", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.patch"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}}, "id": "moderator.votes.list", "httpMethod": "GET", "path": "series/{seriesId}/votes/@me", "response": {"$ref": "VoteList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Vote"}, "response": {"$ref": "Vote"}, "httpMethod": "PUT", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "id": "moderator.votes.update"}, "get": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "userId": {"type": "string", "location": "query"}, "unauthToken": {"type": "string", "location": "query"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.votes.get", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/votes/@me", "response": {"$ref": "Vote"}}}}', true));
910 $this->responses = new Google_ResponsesServiceResource($this, $this->serviceName, 'responses', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "parentSubmissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "unauthToken": {"type": "string", "location": "query"}, "anonymous": {"type": "boolean", "location": "query"}, "topicId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Submission"}, "response": {"$ref": "Submission"}, "httpMethod": "POST", "path": "series/{seriesId}/topics/{topicId}/submissions/{parentSubmissionId}/responses", "id": "moderator.responses.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"max-results": {"type": "integer", "location": "query", "format": "uint32"}, "sort": {"type": "string", "location": "query"}, "seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "author": {"type": "string", "location": "query"}, "start-index": {"type": "integer", "location": "query", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "hasAttachedVideo": {"type": "boolean", "location": "query"}}, "id": "moderator.responses.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/responses", "response": {"$ref": "SubmissionList"}}}}', true));
911 $this->tags = new Google_TagsServiceResource($this, $this->serviceName, 'tags', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "request": {"$ref": "Tag"}, "response": {"$ref": "Tag"}, "httpMethod": "POST", "path": "series/{seriesId}/submissions/{submissionId}/tags", "id": "moderator.tags.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/moderator"], "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "moderator.tags.list", "httpMethod": "GET", "path": "series/{seriesId}/submissions/{submissionId}/tags", "response": {"$ref": "TagList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/moderator"], "path": "series/{seriesId}/submissions/{submissionId}/tags/{tagId}", "id": "moderator.tags.delete", "parameters": {"seriesId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}, "tagId": {"required": true, "type": "string", "location": "path"}, "submissionId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "httpMethod": "DELETE"}}}', true));
Google_FusiontablesService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 1256 lines
65 * Retrieves a list of columns. (column.list)
66 *
67 * @param string $tableId Table whose columns are being listed.
68 * @param array $optParams Optional parameters.
69 *
170 * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE statement. (query.sql)
171 *
172 * @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE statement.
173 * @param array $optParams Optional parameters.
174 *
581 $client->addService($this->serviceName, $this->version);
582 $this->column = new Google_ColumnServiceResource($this, $this->serviceName, 'column', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "POST", "path": "tables/{tableId}/columns", "id": "fusiontables.column.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.column.get", "httpMethod": "GET", "path": "tables/{tableId}/columns/{columnId}", "response": {"$ref": "Column"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.column.list", "httpMethod": "GET", "path": "tables/{tableId}/columns", "response": {"$ref": "ColumnList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PUT", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PATCH", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
583 $this->query = new Google_QueryServiceResource($this, $this->serviceName, 'query', json_decode('{"methods": {"sqlGet": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sqlGet", "httpMethod": "GET", "path": "query", "response": {"$ref": "Sqlresponse"}}, "sql": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sql", "httpMethod": "POST", "path": "query", "response": {"$ref": "Sqlresponse"}}}}', true));
584 $this->style = new Google_StyleServiceResource($this, $this->serviceName, 'style', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "POST", "path": "tables/{tableId}/styles", "id": "fusiontables.style.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.style.get", "httpMethod": "GET", "path": "tables/{tableId}/styles/{styleId}", "response": {"$ref": "StyleSetting"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.style.list", "httpMethod": "GET", "path": "tables/{tableId}/styles", "response": {"$ref": "StyleSettingList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PUT", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PATCH", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
585 $this->template = new Google_TemplateServiceResource($this, $this->serviceName, 'template', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "POST", "path": "tables/{tableId}/templates", "id": "fusiontables.template.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.template.get", "httpMethod": "GET", "path": "tables/{tableId}/templates/{templateId}", "response": {"$ref": "Template"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.template.list", "httpMethod": "GET", "path": "tables/{tableId}/templates", "response": {"$ref": "TemplateList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PUT", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PATCH", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
586 $this->table = new Google_TableServiceResource($this, $this->serviceName, 'table', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "tables", "id": "fusiontables.table.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.table.get", "httpMethod": "GET", "path": "tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "TableList"}, "httpMethod": "GET", "path": "tables", "id": "fusiontables.table.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "tables/{tableId}", "id": "fusiontables.table.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "tables/{tableId}", "id": "fusiontables.table.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}", "id": "fusiontables.table.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
Google_DriveService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 884 lines
111 * @param array $optParams Optional parameters.
112 *
113 * @opt_param string q Query string for searching files.
114 * @opt_param string pageToken Page token for files.
791 $client->addService($this->serviceName, $this->version);
792 $this->files = new Google_FilesServiceResource($this, $this->serviceName, 'files', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files", "id": "drive.files.insert"}, "untrash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.untrash", "httpMethod": "POST", "path": "files/{fileId}/untrash", "response": {"$ref": "File"}}, "trash": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.trash", "httpMethod": "POST", "path": "files/{fileId}/trash", "response": {"$ref": "File"}}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"updateViewedDate": {"default": "false", "type": "boolean", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.get", "httpMethod": "GET", "path": "files/{fileId}", "response": {"$ref": "File"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"enum": ["BASIC", "FULL"], "type": "string", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "response": {"$ref": "FileList"}, "httpMethod": "GET", "path": "files", "id": "drive.files.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "File"}, "mediaUpload": {"maxSize": "10GB", "protocols": {"simple": {"path": "/upload/drive/v2/files/{fileId}", "multipart": true}, "resumable": {"path": "/resumable/upload/drive/v2/files/{fileId}", "multipart": true}}, "accept": ["*/*"]}, "response": {"$ref": "File"}, "httpMethod": "PUT", "path": "files/{fileId}", "id": "drive.files.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "setModifiedDate": {"default": "false", "type": "boolean", "location": "query"}, "updateViewedDate": {"default": "true", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "newRevision": {"default": "true", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "PATCH", "path": "files/{fileId}", "id": "drive.files.patch"}, "touch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.files.touch", "httpMethod": "POST", "path": "files/{fileId}/touch", "response": {"$ref": "File"}}, "copy": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"convert": {"default": "false", "type": "boolean", "location": "query"}, "ocr": {"default": "false", "type": "boolean", "location": "query"}, "sourceLanguage": {"type": "string", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"default": "false", "type": "boolean", "location": "query"}, "targetLanguage": {"type": "string", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "httpMethod": "POST", "path": "files/{fileId}/copy", "id": "drive.files.copy"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}", "id": "drive.files.delete", "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
793 $this->about = new Google_AboutServiceResource($this, $this->serviceName, 'about', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "maxChangeIdCount": {"default": "1", "type": "string", "location": "query", "format": "int64"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}}, "response": {"$ref": "About"}, "httpMethod": "GET", "path": "about", "id": "drive.about.get"}}}', true));
795 $this->parents = new Google_ParentsServiceResource($this, $this->serviceName, 'parents', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ParentReference"}, "response": {"$ref": "ParentReference"}, "httpMethod": "POST", "path": "files/{fileId}/parents", "id": "drive.parents.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.get", "httpMethod": "GET", "path": "files/{fileId}/parents/{parentId}", "response": {"$ref": "ParentReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.parents.list", "httpMethod": "GET", "path": "files/{fileId}/parents", "response": {"$ref": "ParentList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/parents/{parentId}", "id": "drive.parents.delete", "parameters": {"parentId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
796 $this->revisions = new Google_RevisionsServiceResource($this, $this->serviceName, 'revisions', json_decode('{"methods": {"patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PATCH", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.patch"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.get", "httpMethod": "GET", "path": "files/{fileId}/revisions/{revisionId}", "response": {"$ref": "Revision"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.revisions.list", "httpMethod": "GET", "path": "files/{fileId}/revisions", "response": {"$ref": "RevisionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "httpMethod": "PUT", "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/revisions/{revisionId}", "id": "drive.revisions.delete", "parameters": {"revisionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
797 $this->changes = new Google_ChangesServiceResource($this, $this->serviceName, 'changes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"includeSubscribed": {"default": "true", "type": "boolean", "location": "query"}, "startChangeId": {"type": "string", "location": "query", "format": "int64"}, "includeDeleted": {"default": "true", "type": "boolean", "location": "query"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "ChangeList"}, "httpMethod": "GET", "path": "changes", "id": "drive.changes.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"changeId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.changes.get", "httpMethod": "GET", "path": "changes/{changeId}", "response": {"$ref": "Change"}}}}', true));
798 $this->children = new Google_ChildrenServiceResource($this, $this->serviceName, 'children', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "ChildReference"}, "response": {"$ref": "ChildReference"}, "httpMethod": "POST", "path": "files/{folderId}/children", "id": "drive.children.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.children.get", "httpMethod": "GET", "path": "files/{folderId}/children/{childId}", "response": {"$ref": "ChildReference"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "folderId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"default": "100", "minimum": "0", "type": "integer", "location": "query", "format": "int32"}}, "id": "drive.children.list", "httpMethod": "GET", "path": "files/{folderId}/children", "response": {"$ref": "ChildList"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{folderId}/children/{childId}", "id": "drive.children.delete", "parameters": {"folderId": {"required": true, "type": "string", "location": "path"}, "childId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
799 $this->permissions = new Google_PermissionsServiceResource($this, $this->serviceName, 'permissions', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"sendNotificationEmails": {"default": "true", "type": "boolean", "location": "query"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "POST", "path": "files/{fileId}/permissions", "id": "drive.permissions.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.get", "httpMethod": "GET", "path": "files/{fileId}/permissions/{permissionId}", "response": {"$ref": "Permission"}}, "list": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "parameters": {"fileId": {"required": true, "type": "string", "location": "path"}}, "id": "drive.permissions.list", "httpMethod": "GET", "path": "files/{fileId}/permissions", "response": {"$ref": "PermissionList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PUT", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "httpMethod": "PATCH", "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"], "path": "files/{fileId}/permissions/{permissionId}", "id": "drive.permissions.delete", "parameters": {"permissionId": {"required": true, "type": "string", "location": "path"}, "fileId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
801 }
Google_ComputeService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 945 lines
23 * </code>
24 */
25 class Google_OperationsServiceResource extends Google_ServiceResource {
29 * Retrieves the specified operation resource. (operations.get)
30 *
31 * @param string $project Name of the project scoping this request.
32 * @param string $operation Name of the operation resource to return.
48 * (operations.list)
49 *
50 * @param string $project Name of the project scoping this request.
51 * @param array $optParams Optional parameters.
52 *
53 * @opt_param string filter Optional. Filter expression for filtering listed resources.
54 * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
Google_CalendarService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 977 lines
23 * </code>
24 */
25 class Google_FreebusyServiceResource extends Google_ServiceResource {
53 * </code>
54 */
55 class Google_SettingsServiceResource extends Google_ServiceResource {
735 $this->settings = new Google_SettingsServiceResource($this, $this->serviceName, 'settings', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "users/me/settings", "response": {"$ref": "Settings"}, "id": "calendar.settings.list", "httpMethod": "GET"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"setting": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.settings.get", "httpMethod": "GET", "path": "users/me/settings/{setting}", "response": {"$ref": "Setting"}}}}', true));
736 $this->calendarList = new Google_CalendarListServiceResource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "POST", "path": "users/me/calendarList", "id": "calendar.calendarList.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendarList.get", "httpMethod": "GET", "path": "users/me/calendarList/{calendarId}", "response": {"$ref": "CalendarListEntry"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "minAccessRole": {"enum": ["freeBusyReader", "owner", "reader", "writer"], "type": "string", "location": "query"}}, "response": {"$ref": "CalendarList"}, "httpMethod": "GET", "path": "users/me/calendarList", "id": "calendar.calendarList.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PUT", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PATCH", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
737 $this->calendars = new Google_CalendarsServiceResource($this, $this->serviceName, 'calendars', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "POST", "path": "calendars", "id": "calendar.calendars.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendars.get", "httpMethod": "GET", "path": "calendars/{calendarId}", "response": {"$ref": "Calendar"}}, "clear": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/clear", "id": "calendar.calendars.clear", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PUT", "path": "calendars/{calendarId}", "id": "calendar.calendars.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}", "id": "calendar.calendars.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}", "id": "calendar.calendars.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
738 $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "POST", "path": "calendars/{calendarId}/acl", "id": "calendar.acl.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.get", "httpMethod": "GET", "path": "calendars/{calendarId}/acl/{ruleId}", "response": {"$ref": "AclRule"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.list", "httpMethod": "GET", "path": "calendars/{calendarId}/acl", "response": {"$ref": "Acl"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
739 $this->colors = new Google_ColorsServiceResource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "colors", "response": {"$ref": "Colors"}, "id": "calendar.colors.get", "httpMethod": "GET"}}}', true));
740 $this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events", "id": "calendar.events.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.get", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}", "response": {"$ref": "Event"}}, "move": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "destination": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.move", "httpMethod": "POST", "path": "calendars/{calendarId}/events/{eventId}/move", "response": {"$ref": "Event"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"orderBy": {"enum": ["startTime", "updated"], "type": "string", "location": "query"}, "showHiddenInvitations": {"type": "boolean", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "iCalUID": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query", "format": "date-time"}, "singleEvents": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeMin": {"type": "string", "location": "query", "format": "date-time"}, "timeZone": {"type": "string", "location": "query"}, "timeMax": {"type": "string", "location": "query", "format": "date-time"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.list", "httpMethod": "GET", "path": "calendars/{calendarId}/events", "response": {"$ref": "Events"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.patch"}, "instances": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "showDeleted": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "id": "calendar.events.instances", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}/instances", "response": {"$ref": "Events"}}, "import": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events/import", "id": "calendar.events.import"}, "quickAdd": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"text": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.quickAdd", "httpMethod": "POST", "path": "calendars/{calendarId}/events/quickAdd", "response": {"$ref": "Event"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.delete", "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
742 }
Google_BooksService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 848 lines
124 * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
125 * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
126 * @opt_param string source String to identify the originator of this request.
127 * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
128 * @return Google_Annotationdata
399 * @opt_param string filter Filter search results.
400 * @opt_param string source String to identify the originator of this request.
401 * @opt_param string startIndex Index of the first result to return (starts at 0)
420 * @param array $optParams Optional parameters.
421 *
422 * @opt_param string source String to identify the originator of this request.
423 * @opt_param string country ISO-3166-1 code to override the IP-based location.
459 * @opt_param string filter Filter search results.
460 * @opt_param string source String to identify the originator of this request.
461 * @opt_param string startIndex Index of the first result to return (starts at 0)
Google_BigqueryService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 1267 lines
332 * @opt_param string stateFilter Filter for job state
333 * @opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
334 * @opt_param string maxResults Maximum number of results to return
335 * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
351 * @param string $projectId Project ID of the query job
352 * @param string $jobId Job ID of the query job
353 * @param array $optParams Optional parameters.
354 *
488 $client->addService($this->serviceName, $this->version);
489 $this->tables = new Google_TablesServiceResource($this, $this->serviceName, 'tables', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets/{datasetId}/tables", "id": "bigquery.tables.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tables.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables", "response": {"$ref": "TableList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "id": "bigquery.tables.delete", "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
490 $this->datasets = new Google_DatasetsServiceResource($this, $this->serviceName, 'datasets', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "POST", "path": "projects/{projectId}/datasets", "id": "bigquery.datasets.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.get", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}", "response": {"$ref": "Dataset"}}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.datasets.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets", "response": {"$ref": "DatasetList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PUT", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "httpMethod": "PATCH", "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "path": "projects/{projectId}/datasets/{datasetId}", "id": "bigquery.datasets.delete", "parameters": {"deleteContents": {"type": "boolean", "location": "query"}, "datasetId": {"required": true, "type": "string", "location": "path"}, "projectId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
491 $this->jobs = new Google_JobsServiceResource($this, $this->serviceName, 'jobs', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "supportsMediaUpload": true, "request": {"$ref": "Job"}, "mediaUpload": {"protocols": {"simple": {"path": "/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}, "resumable": {"path": "/resumable/upload/bigquery/v2/projects/{projectId}/jobs", "multipart": true}}, "accept": ["application/octet-stream"]}, "response": {"$ref": "Job"}, "httpMethod": "POST", "path": "projects/{projectId}/jobs", "id": "bigquery.jobs.insert"}, "query": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "QueryRequest"}, "response": {"$ref": "QueryResponse"}, "httpMethod": "POST", "path": "projects/{projectId}/queries", "id": "bigquery.jobs.query"}, "list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projection": {"enum": ["full", "minimal"], "type": "string", "location": "query"}, "stateFilter": {"repeated": true, "enum": ["done", "pending", "running"], "type": "string", "location": "query"}, "projectId": {"required": true, "type": "string", "location": "path"}, "allUsers": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}}, "id": "bigquery.jobs.list", "httpMethod": "GET", "path": "projects/{projectId}/jobs", "response": {"$ref": "JobList"}}, "getQueryResults": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"timeoutMs": {"type": "integer", "location": "query", "format": "uint32"}, "projectId": {"required": true, "type": "string", "location": "path"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.getQueryResults", "httpMethod": "GET", "path": "projects/{projectId}/queries/{jobId}", "response": {"$ref": "GetQueryResultsResponse"}}, "get": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "jobId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.jobs.get", "httpMethod": "GET", "path": "projects/{projectId}/jobs/{jobId}", "response": {"$ref": "Job"}}}}', true));
492 $this->tabledata = new Google_TabledataServiceResource($this, $this->serviceName, 'tabledata', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/bigquery"], "parameters": {"projectId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "startIndex": {"type": "string", "location": "query", "format": "uint64"}, "tableId": {"required": true, "type": "string", "location": "path"}, "datasetId": {"required": true, "type": "string", "location": "path"}}, "id": "bigquery.tabledata.list", "httpMethod": "GET", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data", "response": {"$ref": "TableDataList"}}}}', true));
Google_AdsensehostService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 1092 lines
372 * @param string $accountId Account which contains the ad client.
373 * @param string $adClientId Ad client which contains the ad unit.
374 * @param Google_AdUnit $postBody
375 * @param array $optParams Optional parameters.
681 $client->addService($this->serviceName, $this->version);
682 $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "UrlChannel"}, "response": {"$ref": "UrlChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/urlchannels", "id": "adsensehost.urlchannels.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "urlChannelId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.urlchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/urlchannels/{urlChannelId}", "response": {"$ref": "UrlChannel"}}}}', true));
683 $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsensehost.adclients.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.adclients.get", "httpMethod": "GET", "path": "adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
684 $this->associationsessions = new Google_AssociationsessionsServiceResource($this, $this->serviceName, 'associationsessions', json_decode('{"methods": {"start": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"websiteLocale": {"type": "string", "location": "query"}, "productCode": {"repeated": true, "required": true, "type": "string", "location": "query", "enum": ["AFC", "AFF", "AFMC", "AFS"]}, "userLocale": {"type": "string", "location": "query"}, "websiteUrl": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.start", "httpMethod": "GET", "path": "associationsessions/start", "response": {"$ref": "AssociationSession"}}, "verify": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"token": {"required": true, "type": "string", "location": "query"}}, "id": "adsensehost.associationsessions.verify", "httpMethod": "GET", "path": "associationsessions/verify", "response": {"$ref": "AssociationSession"}}}}', true));
685 $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsensehost.reports.generate", "httpMethod": "GET", "path": "reports", "response": {"$ref": "Report"}}}}', true));
686 $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"filterAdClientId": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "adsensehost.accounts.list", "httpMethod": "GET", "path": "accounts", "response": {"$ref": "Accounts"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
687 $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "POST", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}, "getAdCode": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "hostCustomChannelId": {"repeated": true, "type": "string", "location": "query"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.getAdCode", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "response": {"$ref": "AdCode"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PUT", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "httpMethod": "PATCH", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "id": "adsensehost.accounts.adunits.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adunits.delete", "httpMethod": "DELETE", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
688 $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.adclients.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}", "response": {"$ref": "AdClient"}}}}', true));
689 $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "uint32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "uint32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.accounts.reports.generate", "httpMethod": "GET", "path": "accounts/{accountId}/reports", "response": {"$ref": "Report"}}}}', true));
690 $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "POST", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}, "list": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "uint32"}}, "id": "adsensehost.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "update": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PUT", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "httpMethod": "PATCH", "path": "adclients/{adClientId}/customchannels", "id": "adsensehost.customchannels.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/adsensehost"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsensehost.customchannels.delete", "httpMethod": "DELETE", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
692 }
Google_AdsenseService.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 1036 lines
676 $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.urlchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
677 $this->adunits = new Google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.get", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
678 $this->adunits_customchannels = new Google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.adunits.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
679 $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "AdClients"}, "httpMethod": "GET", "path": "adclients", "id": "adsense.adclients.list"}}}', true));
680 $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"repeated": true, "type": "string", "location": "query"}}, "id": "adsense.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
681 $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "response": {"$ref": "Accounts"}, "httpMethod": "GET", "path": "accounts", "id": "adsense.accounts.list"}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"tree": {"type": "boolean", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.get", "httpMethod": "GET", "path": "accounts/{accountId}", "response": {"$ref": "Account"}}}}', true));
682 $this->accounts_urlchannels = new Google_AccountsUrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.urlchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", "response": {"$ref": "UrlChannels"}}}}', true));
683 $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "response": {"$ref": "AdUnits"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"adClientId": {"required": true, "type": "string", "location": "path"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "response": {"$ref": "AdUnit"}}}}', true));
684 $this->accounts_adunits_customchannels = new Google_AccountsAdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "adUnitId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adunits.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", "response": {"$ref": "CustomChannels"}}}}', true));
685 $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.adclients.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients", "response": {"$ref": "AdClients"}}}}', true));
686 $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"sort": {"repeated": true, "type": "string", "location": "query"}, "startDate": {"required": true, "type": "string", "location": "query"}, "endDate": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "metric": {"repeated": true, "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "50000", "format": "int32"}, "filter": {"repeated": true, "type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"location": "query", "minimum": "0", "type": "integer", "maximum": "5000", "format": "int32"}, "dimension": {"repeated": true, "type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.reports.generate", "httpMethod": "GET", "supportsMediaDownload": true, "path": "accounts/{accountId}/reports", "response": {"$ref": "AdsenseReportsGenerateResponse"}}}}', true));
687 $this->accounts_customchannels = new Google_AccountsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.get", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
688 $this->accounts_customchannels_adunits = new Google_AccountsCustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "accountId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.accounts.customchannels.adunits.list", "httpMethod": "GET", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
689 $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels", "response": {"$ref": "CustomChannels"}}, "get": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}}, "id": "adsense.customchannels.get", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "response": {"$ref": "CustomChannel"}}}}', true));
690 $this->customchannels_adunits = new Google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "parameters": {"includeInactive": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "customChannelId": {"required": true, "type": "string", "location": "path"}, "adClientId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "10000", "format": "int32"}}, "id": "adsense.customchannels.adunits.list", "httpMethod": "GET", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "response": {"$ref": "AdUnits"}}}}', true));
basenestedelement_test.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 395 lines
30 /**
31 * Unit test case the base_nested_element class. Note: highly imbricated with base_final_element class
32 */
33 class backup_base_nested_element_testcase extends basic_testcase {
129 $this->assertNull($finals['VAL4']->get_value());
131 // Get to_string() results (with values)
132 $instance = new mock_base_nested_element('PARENT', array('ATTR1', 'ATTR2'), array('FINAL1', 'FINAL2', 'FINAL3'));
133 $child1 = new mock_base_nested_element('CHILD1', null, new mock_base_final_element('FINAL4'));
143 $attrs = $grandchild->get_attributes();
144 $attrs['ATTR5']->set_value('attr5value');
145 $tostring = $instance->to_string(true);
146 $this->assertTrue(strpos($tostring, 'PARENT (level: 1)') !== false);
147 $this->assertTrue(strpos($tostring, ' => ') !== false);
148 $this->assertTrue(strpos($tostring, '#FINAL4 (level: 3) => final4value') !== false);
Route.php (https://github.com/ivebeenlinuxed/Boiler.git) PHP · 646 lines
69 * Available options:
70 *
71 * * compiler_class: A class name able to compile this route instance (RouteCompiler by default)
72 *
73 * @param string $path The path pattern to match
284 * This method implements a fluent interface.
285 *
286 * @param string|array $methods The method or an array of methods
287 *
288 * @return Route The current Route instance
612 }
614 $class = $this->getOption('compiler_class');
616 return $this->compiled = $class::compile($this);
PropelTableDiff.php (https://github.com/1989gaurav/Propel.git) PHP · 725 lines
19 * @package propel.generator.model.diff
20 */
21 class PropelTableDiff
22 {
23 protected $fromTable;
94 * Add an added column
95 *
96 * @param string $columnName
97 * @param Column $addedColumn
98 */
105 * Remove an added column
106 *
107 * @param string $columnName
108 */
109 public function removeAddedColumn($columnName)
DataModelBuilder.php (https://github.com/1989gaurav/Propel.git) PHP · 622 lines
11 /**
12 * This is the base class for any builder class that is using the data model.
13 *
14 * This could be extended by classes that build SQL DDL, PHP classes, configuration
368 /**
369 * Gets a new data model builder class for specified table and classname.
370 *
371 * @param Table $table
372 * @param string $classname The class of builder
373 * @return DataModelBuilder
374 */
BrowserCacheAdmin.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 740 lines
13 /**
14 * Class W3_Plugin_BrowserCacheAdmin
15 */
16 class W3_Plugin_BrowserCacheAdmin extends W3_Plugin {
80 *
81 * @param bool $cdn
82 * @return string
83 */
84 function generate_rules_cache($cdn = false) {
99 *
100 * @param bool $cdn
101 * @return string
102 */
103 function generate_rules_cache_apache($cdn = false) {
wip-update-taxonomy.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 402 lines
157 <td>
158 <input type="text" name="labels[parent_item]" value="<?php if ( isset( $taxonomy['labels']['parent_item'] ) ) echo $taxonomy['labels']['parent_item']; ?>">
159 <span class="description"><?php _e('The parent item text. This string is not used on non-hierarchical taxonomies such as post tags. Default is null or "Parent Category".', $this->text_domain); ?></span>
160 </td>
161 </tr>
175 <td>
176 <input type="text" name="labels[add_or_remove_items]" value="<?php if ( isset( $taxonomy['labels']['add_or_remove_items'] ) ) echo $taxonomy['labels']['add_or_remove_items']; ?>">
177 <span class="description"><?php _e('The add or remove items text is used in the meta box when JavaScript is disabled. This string isn\'t used on hierarchical taxonomies. Default is "Add or remove tags" or null.', $this->text_domain); ?></span>
178 </td>
179 </tr>
184 <td>
185 <input type="text" name="labels[separate_items_with_commas]" value="<?php if ( isset( $taxonomy['labels']['separate_items_with_commas'] ) ) echo $taxonomy['labels']['separate_items_with_commas']; ?>">
186 <span class="description"><?php _e('The separate item with commas text used in the taxonomy meta box. This string isn\'t used on hierarchical taxonomies. Default is "Separate tags with commas", or null.', $this->text_domain); ?></span>
187 </td>
188 </tr>
edit-taxonomy.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 383 lines
15 <h3 class="ct-toggle"><?php _e('Taxonomy', $this->text_domain) ?></h3>
16 <table class="form-table <?php do_action('ct_invalid_field_taxonomy_class'); ?>">
17 <tr>
18 <th>
139 <td>
140 <input type="text" name="labels[parent_item]" value="<?php if ( isset( $taxonomy['labels']['parent_item'] ) ) echo ( $taxonomy['labels']['parent_item'] ); ?>">
141 <span class="description"><?php _e('The parent item text. This string is not used on non-hierarchical taxonomies such as post tags. Default is null or "Parent Category".', $this->text_domain); ?></span>
142 </td>
143 </tr>
157 <td>
158 <input type="text" name="labels[add_or_remove_items]" value="<?php if ( isset( $taxonomy['labels']['add_or_remove_items'] ) ) echo ( $taxonomy['labels']['add_or_remove_items'] ); ?>">
159 <span class="description"><?php _e('The add or remove items text is used in the meta box when JavaScript is disabled. This string isn\'t used on hierarchical taxonomies. Default is "Add or remove tags" or null.', $this->text_domain); ?></span>
160 </td>
161 </tr>
166 <td>
167 <input type="text" name="labels[separate_items_with_commas]" value="<?php if ( isset( $taxonomy['labels']['separate_items_with_commas'] ) ) echo ( $taxonomy['labels']['separate_items_with_commas'] ); ?>">
168 <span class="description"><?php _e('The separate item with commas text used in the taxonomy meta box. This string isn\'t used on hierarchical taxonomies. Default is "Separate tags with commas", or null.', $this->text_domain); ?></span>
169 </td>
170 </tr>
edit-post-type.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 528 lines
5 <h3><?php _e('Edit Post Type', $this->text_domain); ?></h3>
6 <form action="" method="post" class="ct-post-type">
7 <div class="ct-wrap-left">
8 <div class="ct-table-wrap">
9 <div class="ct-arrow"><br></div>
10 <h3 class="ct-toggle"><?php _e('Post Type', $this->text_domain) ?></h3>
11 <table class="form-table">
190 <td>
191 <input type="text" name="labels[parent_item_colon]" value="<?php if ( isset( $post_type['labels']['parent_item_colon'] ) ) echo ( $post_type['labels']['parent_item_colon'] ); ?>">
192 <span class="description"><?php _e('The parent text. This string isn\'t used on non-hierarchical types. In hierarchical ones the default is Parent Page', $this->text_domain); ?></span>
193 </td>
194 </tr>
add-taxonomy.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 379 lines
135 <td>
136 <input type="text" name="labels[parent_item]" value="<?php if ( isset( $_POST['labels']['parent_item'] ) ) echo $_POST['labels']['parent_item']; ?>">
137 <span class="description"><?php _e('The parent item text. This string is not used on non-hierarchical taxonomies such as post tags. Default is null or "Parent Category".', $this->text_domain); ?></span>
138 </td>
139 </tr>
153 <td>
154 <input type="text" name="labels[add_or_remove_items]" value="<?php if ( isset( $_POST['labels']['add_or_remove_items'] ) ) echo $_POST['labels']['add_or_remove_items']; ?>">
155 <span class="description"><?php _e('The add or remove items text is used in the meta box when JavaScript is disabled. This string isn\'t used on hierarchical taxonomies. Default is "Add or remove tags" or null.', $this->text_domain); ?></span>
156 </td>
157 </tr>
162 <td>
163 <input type="text" name="labels[separate_items_with_commas]" value="<?php if ( isset( $_POST['labels']['separate_items_with_commas'] ) ) echo $_POST['labels']['separate_items_with_commas']; ?>">
164 <span class="description"><?php _e('The separate item with commas text used in the taxonomy meta box. This string isn\'t used on hierarchical taxonomies. Default is "Separate tags with commas", or null.', $this->text_domain); ?></span>
165 </td>
166 </tr>
add-post-type.php (https://github.com/sharpmachine/wakeupmedia.com.git) PHP · 536 lines
3 <h3><?php _e('Add Post Type', $this->text_domain); ?></h3>
4 <form action="" method="post" class="ct-post-type">
5 <div class="ct-wrap-left">
6 <div class="ct-table-wrap">
7 <div class="ct-arrow"><br></div>
8 <h3 class="ct-toggle"><?php _e('Post Type', $this->text_domain) ?></h3>
9 <table class="form-table <?php do_action('ct_invalid_field_post_type'); ?>">
187 <td>
188 <input type="text" name="labels[parent_item_colon]" value="<?php if ( isset( $_POST['labels']['parent_item_colon'] ) ) echo $_POST['labels']['parent_item_colon']; ?>">
189 <span class="description"><?php _e('The parent text. This string isn\'t used on non-hierarchical types. In hierarchical ones the default is Parent Page', $this->text_domain); ?></span>
190 </td>
191 </tr>
UrlVFS.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 90 lines
✨ Summary
This Java class, UrlVFS
, implements a Virtual File System (VFS) that allows reading and writing files from URLs. It provides methods to construct file paths, create input streams for reading from URLs, and create output streams for writing to URLs. If the URL is malformed, it logs an error and displays an error message to the user.
This Java class, UrlVFS
, implements a Virtual File System (VFS) that allows reading and writing files from URLs. It provides methods to construct file paths, create input streams for reading from URLs, and create output streams for writing to URLs. If the URL is malformed, it logs an error and displays an error message to the user.
35 * @version $Id: UrlVFS.java 4428 2003-01-12 03:08:25Z spestov $
36 */
37 public class UrlVFS extends VFS
38 {
39 //{{{ UrlVFS constructor
45 //{{{ constructPath() method
46 public String constructPath(String parent, String path)
47 {
48 if(parent.endsWith("/"))
54 //{{{ _createInputStream() method
55 public InputStream _createInputStream(Object session,
56 String path, boolean ignoreErrors, Component comp)
57 throws IOException
58 {
jslint.js (https://bitbucket.org/shuangxinyu/emacspack.git) JavaScript · 524 lines
2 // www.JSLint.com
3 // Rhino Edition
4 "use strict";var JSLINT=(function(){var adsafe_id,adsafe_may,adsafe_went,anonname,approved,atrule={media:true,'font-face':true,page:true},bang={'<':true,'<=':true,'==':true,'===':true,'!==':true,'!=':true,'>':true,'>=':true,'+':true,'-':true,'*':true,'/':true,'%':true},banned={'arguments':true,callee:true,caller:true,constructor:true,'eval':true,prototype:true,unwatch:true,valueOf:true,watch:true},boolOptions={adsafe:true,bitwise:true,browser:true,cap:true,css:true,debug:true,eqeqeq:true,evil:true,forin:true,fragment:true,immed:true,laxbreak:true,newcap:true,nomen:true,on:true,onevar:true,passfail:true,plusplus:true,regexp:true,rhino:true,undef:true,safe:true,sidebar:true,strict:true,sub:true,white:true,widget:true},browser={addEventListener:false,alert:false,blur:false,clearInterval:false,clearTimeout:false,close:false,closed:false,confirm:false,console:false,Debug:false,defaultStatus:false,document:false,event:false,focus:false,frames:false,getComputedStyle:false,history:false,Image:false,length:false,location:false,moveBy:false,moveTo:false,name:false,navigator:false,onbeforeunload:true,onblur:true,onerror:true,onfocus:true,onload:true,onresize:true,onunload:true,open:false,opener:false,opera:false,Option:false,parent:false,print:false,prompt:false,removeEventListener:false,resizeBy:false,resizeTo:false,screen:false,scroll:false,scrollBy:false,scrollTo:false,setInterval:false,setTimeout:false,status:false,top:false,XMLHttpRequest:false},cssAttributeData,cssAny,cssColorData={"aliceblue":true,"antiquewhite":true,"aqua":true,"aquamarine":true,"azure":true,"beige":true,"bisque":true,"black":true,"blanchedalmond":true,"blue":true,"blueviolet":true,"brown":true,"burlywood":true,"cadetblue":true,"chartreuse":true,"chocolate":true,"coral":true,"cornflowerblue":true,"cornsilk":true,"crimson":true,"cyan":true,"darkblue":true,"darkcyan":true,"darkgoldenrod":true,"darkgray":true,"darkgreen":true,"darkkhaki":true,"darkmagenta":true,"darkolivegreen":true,"darkorange":true,"darkorchid":true,"darkred":true,"darksalmon":true,"darkseagreen":true,"darkslateblue":true,"darkslategray":true,"darkturquoise":true,"darkviolet":true,"deeppink":true,"deepskyblue":true,"dimgray":true,"dodgerblue":true,"firebrick":true,"floralwhite":true,"forestgreen":true,"fuchsia":true,"gainsboro":true,"ghostwhite":true,"gold":true,"goldenrod":true,"gray":true,"green":true,"greenyellow":true,"honeydew":true,"hotpink":true,"indianred":true,"indigo":true,"ivory":true,"khaki":true,"lavender":true,"lavenderblush":true,"lawngreen":true,"lemonchiffon":true,"lightblue":true,"lightcoral":true,"lightcyan":true,"lightgoldenrodyellow":true,"lightgreen":true,"lightpink":true,"lightsalmon":true,"lightseagreen":true,"lightskyblue":true,"lightslategray":true,"lightsteelblue":true,"lightyellow":true,"lime":true,"limegreen":true,"linen":true,"magenta":true,"maroon":true,"mediumaquamarine":true,"mediumblue":true,"mediumorchid":true,"mediumpurple":true,"mediumseagreen":true,"mediumslateblue":true,"mediumspringgreen":true,"mediumturquoise":true,"mediumvioletred":true,"midnightblue":true,"mintcream":true,"mistyrose":true,"moccasin":true,"navajowhite":true,"navy":true,"oldlace":true,"olive":true,"olivedrab":true,"orange":true,"orangered":true,"orchid":true,"palegoldenrod":true,"palegreen":true,"paleturquoise":true,"palevioletred":true,"papayawhip":true,"peachpuff":true,"peru":true,"pink":true,"plum":true,"powderblue":true,"purple":true,"red":true,"rosybrown":true,"royalblue":true,"saddlebrown":true,"salmon":true,"sandybrown":true,"seagreen":true,"seashell":true,"sienna":true,"silver":true,"skyblue":true,"slateblue":true,"slategray":true,"snow":true,"springgreen":true,"steelblue":true,"tan":true,"teal":true,"thistle":true,"tomato":true,"turquoise":true,"violet":true,"wheat":true,"white":true,"whitesmoke":true,"yellow":true,"yellowgreen":true},cssBorderStyle,cssBreak,cssLengthData={'%':true,'cm':true,'em':true,'ex':true,'in':true,'mm':true,'pc':true,'pt':true,'px':true},cssOverflow,escapes={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','/':'\\/','\\':'\\\\'},funct,functionicity=['closure','exception','global','label','outer','unused','var'],functions,global,htmltag={a:{},abbr:{},acronym:{},address:{},applet:{},area:{empty:true,parent:' map '},b:{},base:{empty:true,parent:' head '},bdo:{},big:{},blockquote:{},body:{parent:' html noframes '},br:{empty:true},button:{},canvas:{parent:' body p div th td '},caption:{parent:' table '},center:{},cite:{},code:{},col:{empty:true,parent:' table colgroup '},colgroup:{parent:' table '},dd:{parent:' dl '},del:{},dfn:{},dir:{},div:{},dl:{},dt:{parent:' dl '},em:{},embed:{},fieldset:{},font:{},form:{},frame:{empty:true,parent:' frameset '},frameset:{parent:' html frameset '},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{parent:' html '},html:{parent:'*'},hr:{empty:true},i:{},iframe:{},img:{empty:true},input:{empty:true},ins:{},kbd:{},label:{},legend:{parent:' fieldset '},li:{parent:' dir menu ol ul '},link:{empty:true,parent:' head '},map:{},menu:{},meta:{empty:true,parent:' head noframes noscript '},noframes:{parent:' html body '},noscript:{parent:' body head noframes '},object:{},ol:{},optgroup:{parent:' select '},option:{parent:' optgroup select '},p:{},param:{empty:true,parent:' applet object '},pre:{},q:{},samp:{},script:{empty:true,parent:' body div frame head iframe p pre span '},select:{},small:{},span:{},strong:{},style:{parent:' head ',empty:true},sub:{},sup:{},table:{},tbody:{parent:' table '},td:{parent:' tr '},textarea:{},tfoot:{parent:' table '},th:{parent:' tr '},thead:{parent:' table '},title:{parent:' head '},tr:{parent:' table tbody thead tfoot '},tt:{},u:{},ul:{},'var':{}},ids,implied,inblock,indent,jsonmode,lines,lookahead,member,membersOnly,nexttoken,noreach,option,predefined,prereg,prevtoken,rhino={defineClass:false,deserialize:false,gc:false,help:false,load:false,loadClass:false,print:false,quit:false,readFile:false,readUrl:false,runCommand:false,seal:false,serialize:false,spawn:false,sync:false,toint32:false,version:false},scope,sidebar={System:false},src,stack,standard={Array:false,Boolean:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,'eval':false,EvalError:false,Function:false,hasOwnProperty:false,isFinite:false,isNaN:false,JSON:false,Math:false,Number:false,Object:false,parseInt:false,parseFloat:false,RangeError:false,ReferenceError:false,RegExp:false,String:false,SyntaxError:false,TypeError:false,URIError:false},standard_member={E:true,LN2:true,LN10:true,LOG2E:true,LOG10E:true,PI:true,SQRT1_2:true,SQRT2:true,MAX_VALUE:true,MIN_VALUE:true,NEGATIVE_INFINITY:true,POSITIVE_INFINITY:true},strict_mode,syntax={},tab,token,urls,warnings,widget={alert:true,animator:true,appleScript:true,beep:true,bytesToUIString:true,Canvas:true,chooseColor:true,chooseFile:true,chooseFolder:true,closeWidget:true,COM:true,convertPathToHFS:true,convertPathToPlatform:true,CustomAnimation:true,escape:true,FadeAnimation:true,filesystem:true,Flash:true,focusWidget:true,form:true,FormField:true,Frame:true,HotKey:true,Image:true,include:true,isApplicationRunning:true,iTunes:true,konfabulatorVersion:true,log:true,md5:true,MenuItem:true,MoveAnimation:true,openURL:true,play:true,Point:true,popupMenu:true,preferenceGroups:true,preferences:true,print:true,prompt:true,random:true,Rectangle:true,reloadWidget:true,ResizeAnimation:true,resolvePath:true,resumeUpdates:true,RotateAnimation:true,runCommand:true,runCommandInBg:true,saveAs:true,savePreferences:true,screen:true,ScrollBar:true,showWidgetPreferences:true,sleep:true,speak:true,Style:true,suppressUpdates:true,system:true,tellWidget:true,Text:true,TextArea:true,Timer:true,unescape:true,updateNow:true,URL:true,Web:true,widget:true,Window:true,XMLDOM:true,XMLHttpRequest:true,yahooCheckLogin:true,yahooLogin:true,yahooLogout:true},xmode,xquote,ax=/@cc|<\/?|script|\]*s\]|<\s*!|</i,cx=/[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,tx=/^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jslint|members?|global)?|=|\/)?|\*[\/=]?|\+[+=]?|-[\-=]?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/,hx=/^\s*(['"=>\/&#]|<(?:\/|\!(?:--)?)?|[a-zA-Z][a-zA-Z0-9_\-]*|[0-9]+|--|.)/,nx=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,nxg=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,ox=/[>&]|<[\/!]?|--/,lx=/\*\/|\/\*/,ix=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,jx=/^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i,ux=/&|\+|\u00AD|\.\.|\/\*|%[^;]|base64|url|expression|data|mailto/i,sx=/^\s*([{:#%.=,>+\[\]@()"';]|\*=?|\$=|\|=|\^=|~=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,ssx=/^\s*([@#!"'};:\-%.=,+\[\]()*_]|[a-zA-Z][a-zA-Z0-9._\-]*|\/\*?|\d+(?:\.\d+)?|<\/)/,qx=/[^a-zA-Z0-9-_\/ ]/,dx=/[\[\]\/\\"'*<>.&:(){}+=#]/,rx={outer:hx,html:hx,style:sx,styleproperty:ssx};function F(){}
5 if(typeof Object.create!=='function'){Object.create=function(o){F.prototype=o;return new F();};}
6 function is_own(object,name){return Object.prototype.hasOwnProperty.call(object,name);}
7 function combine(t,o){var n;for(n in o){if(is_own(o,n)){t[n]=o[n];}}}
8 String.prototype.entityify=function(){return this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>');};String.prototype.isAlpha=function(){return(this>='a'&&this<='z\uffff')||(this>='A'&&this<='Z\uffff');};String.prototype.isDigit=function(){return(this>='0'&&this<='9');};String.prototype.supplant=function(o){return this.replace(/\{([^{}]*)\}/g,function(a,b){var r=o[b];return typeof r==='string'||typeof r==='number'?r:a;});};String.prototype.name=function(){if(ix.test(this)){return this;}
9 if(nx.test(this)){return'"'+this.replace(nxg,function(a){var c=escapes[a];if(c){return c;}
10 return'\\u'+('0000'+a.charCodeAt().toString(16)).slice(-4);})+'"';}
42 c=s.charAt(j);if(c===x){character+=1;s=s.substr(j+1);return it('(string)',r,x);}
43 if(c<' '){if(c==='\n'||c==='\r'){break;}
44 warningAt("Control character in string: {a}.",line,character+j,s.slice(0,j));}else if(c===xquote){warningAt("Bad HTML string",line,character+j);}else if(c==='<'){if(option.safe&&xmode==='html'){warningAt("ADsafe string violation.",line,character+j);}else if(s.charAt(j+1)==='/'&&(xmode||option.safe)){warningAt("Expected '<\\/' and instead saw '</'.",line,character);}else if(s.charAt(j+1)==='!'&&(xmode||option.safe)){warningAt("Unexpected '<!' in a string.",line,character);}}else if(c==='\\'){if(xmode==='html'){if(option.safe){warningAt("ADsafe string violation.",line,character+j);}}else if(xmode==='styleproperty'){j+=1;character+=1;c=s.charAt(j);if(c!==x){warningAt("Escapement in style string.",line,character+j);}}else{j+=1;character+=1;c=s.charAt(j);switch(c){case xquote:warningAt("Bad HTML string",line,character+j);break;case'\\':case'\'':case'"':case'/':break;case'b':c='\b';break;case'f':c='\f';break;case'n':c='\n';break;case'r':c='\r';break;case't':c='\t';break;case'u':esc(4);break;case'v':c='\v';break;case'x':if(jsonmode){warningAt("Avoid \\x-.",line,character);}
45 esc(2);break;default:warningAt("Bad escapement.",line,character);}}}
46 r+=c;character+=1;j+=1;}}
SessionSwitcher.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 262 lines
✨ Summary
This Java code defines a SessionSwitcher
class, which is a toolbar component for jEdit that allows users to switch between different sessions. It provides buttons for saving, reloading, and managing session properties, as well as updating the current session in a combo box dropdown menu. The toolbar also displays a title with customizable text.
This Java code defines a SessionSwitcher
class, which is a toolbar component for jEdit that allows users to switch between different sessions. It provides buttons for saving, reloading, and managing session properties, as well as updating the current session in a combo box dropdown menu. The toolbar also displays a title with customizable text.
44 * @author Dirk Moebius
45 */
46 public class SessionSwitcher
47 extends JToolBar
48 implements ActionListener, ItemListener, EBComponent
61 combo.addItemListener(this);
63 save = new JButton(new ImageIcon(getClass().getResource("Save24.gif")));
64 save.setMargin(nullInsets);
65 save.setToolTipText(jEdit.getProperty("sessions.switcher.save.tooltip"));
67 save.addActionListener(this);
69 saveAs = new JButton(new ImageIcon(getClass().getResource("SaveAs24.gif")));
70 saveAs.setMargin(nullInsets);
71 saveAs.setToolTipText(jEdit.getProperty("sessions.switcher.saveAs.tooltip"));
173 String currentSession = SessionManager.getInstance().getCurrentSession();
174 final String selectedSession = e.getItem().toString();
176 if (selectedSession.equals(currentSession)) return;
xinsert.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 559 lines
✨ Summary
This HTML code outputs a help page for a text editor, providing instructions on how to use its scripting language, XInsert. It explains various commands and functions, such as setting variables, running Java methods, and interacting with the editor’s interface. The page also includes information on how to report bugs and provide feedback.
This HTML code outputs a help page for a text editor, providing instructions on how to use its scripting language, XInsert. It explains various commands and functions, such as setting variables, running Java methods, and interacting with the editor’s interface. The page also includes information on how to report bugs and provide feedback.
220 <span class="syntax11">></span>[contents]<span class="syntax11"></</span>item<span class="syntax11">></span>
222 <span class="gutter">9:</span> <span class="syntax11"><</span>item name<span class="syntax11">=</span>
223 <span class="syntax3">"[macro name]"</span> type<span class="syntax11">=</span>
224 <span class="syntax3">"macro"</span>
225 <span class="syntax11">></span>[contents]<span class="syntax11"></</span>item<span class="syntax11">></span>
227 <span class="gutterH">10:</span> <span class="syntax11"><</span>item name<span class="syntax11">=</span>
229 <span class="syntax3">"named_macro"</span>
230 <span class="syntax11">></span>[file_name]<span class="syntax11"></</span>item<span class="syntax11">></span>
232 <span class="gutter">11:</span>
245 <span class="syntax3">"foo value"</span>
246 <span class="syntax11">></span>$foo<span class= "syntax11"></</span>item<span class="syntax11">></span>
248 <span class="gutter">14:</span> <span class="syntax11"></</span>menu<span class="syntax11">></span>
rngalt.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 829 lines
468 (and (rng-adjust-state-for-attribute lt-pos
469 name-start)
470 (if (string= (buffer-substring-no-properties name-start
471 (or colon name-end))
472 "xmlns")
488 (rng-strings-to-completion-alist
489 (rng-match-possible-value-strings))
490 "Value: "
491 nil
582 (let* ((matches (match-string 1 msg))
583 (lst (split-string (substring matches 1 (- (length matches) 1)) "\", \"")))
584 ;;(message "matches=%s" matches);(sit-for 2)
585 ;;(message "lst=%s" lst);(sit-for 1)
627 "*** Fictive XHTML/XML Validation Header: ... "
628 (save-match-data
629 (if (string-match "\\(<[^[:space:]>]+\\)[^>]*>[^<>]*\\'"
630 validation-header)
631 (concat (match-string 1 validation-header) ">")
SessionManagerDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 301 lines
✨ Summary
This Java code is for a graphical user interface (GUI) dialog that manages sessions, likely related to a text editor or IDE. The dialog allows users to rename and delete sessions, with options to change the current session. It also includes features like double-clicking to save changes and canceling/esc to exit.
This Java code is for a graphical user interface (GUI) dialog that manages sessions, likely related to a text editor or IDE. The dialog allows users to rename and delete sessions, with options to change the current session. It also includes features like double-clicking to save changes and canceling/esc to exit.
52 * @author Dirk Moebius
53 */
54 class SessionManagerDialog
55 extends EnhancedDialog
56 implements ActionListener, ListSelectionListener
139 * Return the selected session, or null if the dialog has been cancelled.
140 */
141 public String getSelectedSession()
142 {
143 return selectedSession;
198 private void rename()
199 {
200 String oldName = lSessions.getSelectedValue().toString();
201 String newName = SessionManager.inputSessionName(this, oldName);
221 private void delete()
222 {
223 String name = lSessions.getSelectedValue().toString();
224 File file = new File(SessionManager.createSessionFileName(name));
bigfile-stringerr-64000.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 1851 lines
53 imagine myself would still be there in nXhtml. For
54 example Hadron told me once that he got the error
55 <i>(wrong-type-argument stringp nil)</i>. Eh, I replied, are
56 you sure. Yes he was. I tried the same file as him. No
57 error.
142 <p>
143 Unfortunately that still breaks XHTML validation since
144 < is not allowed in strings. In the long run I
145 believe the XML validator has to be broken up so that it
146 avoids parsing the string here (in PHP files).
156 <p>
157 However on the screen you will still see the original
158 string and when writing to file the correct characters
159 will be used.
160 </p>
progress.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1060 lines
288 <KEYWORD1>LOG</KEYWORD1>
289 <KEYWORD1>LOGICAL</KEYWORD1>
290 <KEYWORD1>MACHINE-CLASS</KEYWORD1>
291 <KEYWORD1>MANDATORY</KEYWORD1>
292 <KEYWORD1>MAP</KEYWORD1>
365 <KEYWORD1>PUT-LONG</KEYWORD1>
366 <KEYWORD1>PUT-SHORT</KEYWORD1>
367 <KEYWORD1>PUT-STRING</KEYWORD1>
368 <KEYWORD1>QUERY</KEYWORD1>
369 <KEYWORD1>QUERY-TUNING</KEYWORD1>
416 <KEYWORD1>STREAM</KEYWORD1>
417 <KEYWORD1>STREAM-IO</KEYWORD1>
418 <KEYWORD1>STRING-XREF</KEYWORD1>
419 <KEYWORD1>SUB-MENU</KEYWORD1>
420 <KEYWORD1>SUBSCRIBE</KEYWORD1>
XmlHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 244 lines
✨ Summary
This is a Java interface that defines a callback for parsing XML documents. It provides methods to handle various events during parsing, such as element start and end, character data, processing instructions, and errors. The methods are called by an XML parser (not shown in this code) when it encounters specific elements or situations in the document.
This is a Java interface that defines a callback for parsing XML documents. It provides methods to handle various events during parsing, such as element start and end, character data, processing instructions, and errors. The methods are called by an XML parser (not shown in this code) when it encounters specific elements or situations in the document.
64 * @see #endExternalEntity
65 */
66 public Object resolveEntity (String publicId, String systemId)
67 throws java.lang.Exception;
113 * @exception java.lang.Exception The handler may throw any exception.
114 */
115 public void doctypeDecl (String name, String publicId, String systemId)
116 throws java.lang.Exception;
216 * @exception java.lang.Exception The handler may throw any exception.
217 */
218 public void processingInstruction (String target, String data)
219 throws java.lang.Exception;
concepts.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a class BoostRegexConcept
that provides a test framework for Boost Regex. It includes various functions and classes to test different aspects of Boost Regex, such as pattern matching, replacement, and iteration. The code is designed to be used in conjunction with the Boost Regex library to verify its functionality.
This C++ header file defines a class BoostRegexConcept
that provides a test framework for Boost Regex. It includes various functions and classes to test different aspects of Boost Regex, such as pattern matching, replacement, and iteration. The code is designed to be used in conjunction with the Boost Regex library to verify its functionality.
745 ignore_unused_variable_warning(m_string);
746 m_string = m_cresults.format(m_string, m_mft);
747 ignore_unused_variable_warning(m_string);
771 m_out = global_regex_namespace::regex_replace(m_out, m_in, m_in, e, m_string);
772 m_string = global_regex_namespace::regex_replace(m_string, e, m_string, m_mft);
773 ignore_unused_variable_warning(m_string);
774 m_string = global_regex_namespace::regex_replace(m_string, e, m_string);
775 ignore_unused_variable_warning(m_string);
779 flag_type m_flags;
780 string_type m_string;
781 const sub_match_type m_sub;
782 match_results_type m_results;
787 BidiIterator m_in;
788 global_regex_namespace::regex_constants::match_flag_type m_mft;
789 global_regex_namespace::match_results<typename string_type::const_iterator, allocator_architype<global_regex_namespace::sub_match<typename string_type::const_iterator> > > m_smatch;
791 RegexConcept();
javascript-mozlab.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 713 lines
46 ;;
47 ;; This mode assumes that block comments are not nested inside block
48 ;; comments and that strings do not contain line breaks.
49 ;;
50 ;; Exported names start with "javascript-" whereas private names start
105 (c-populate-syntax-table table)
107 ;; The syntax class of underscore should really be `symbol' ("_")
108 ;; but that makes matching of tokens much more complex as e.g.
109 ;; "\\<xyz\\>" matches part of e.g. "_xyz" and "xyz_abc". Defines
124 (cond ((nth 3 parse)
125 (re-search-forward
126 (concat "\\([^\\]\\|^\\)" (string (nth 3 parse)))
127 (save-excursion (end-of-line) (point)) t))
128 ((nth 7 parse)
conversion.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
getResource.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 15 lines
1 /**
2 Get a resource from the BeanShell classpath.
3 This method takes into account modification to the BeanShell class path via
4 addClassPath() and setClassPath();
5 */
7 bsh.help.getResource = "usage: getResource( String name )";
9 import org.gjt.sp.jedit.bsh.Interpreter;
11 URL getResource( String path )
12 {
13 return this.interpreter.getClassManager().getResource( path );
EditPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 449 lines
✨ Summary
This Java code defines a class EditPlugin
that represents a plugin for the JEdit text editor. It provides methods for creating menu items and browser menu items, as well as deprecated methods. The class also includes placeholder classes Broken
and Deferred
to handle plugins that didn’t load or haven’t been loaded yet, respectively.
This Java code defines a class EditPlugin
that represents a plugin for the JEdit text editor. It provides methods for creating menu items and browser menu items, as well as deprecated methods. The class also includes placeholder classes Broken
and Deferred
to handle plugins that didn’t load or haven’t been loaded yet, respectively.
32 * The abstract base class that every plugin must implement.
33 * Alternatively, instead of extending this class, a plugin core class can
34 * extend {@link EBPlugin} to automatically receive EditBus messages.
35 *
263 * @since jEdit 2.5pre3
264 */
265 public String getClassName()
266 {
267 return getClass().getName();
296 return GUIUtilities.loadMenuItem(menuItemName);
298 String menuProperty = "plugin." + getClassName() + ".menu";
299 String codeProperty = "plugin." + getClassName() + ".menu.code";
333 }
335 String menuProperty = "plugin." + getClassName() + ".browser-menu";
336 if(jEdit.getProperty(menuProperty) != null)
337 {
macro-tips.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 966 lines
195 we create a <classname>JPanel</classname> object and populate it with
196 the label and the checkbox in a left-to-right
197 <classname>GridLayout</classname>. The <classname>JPanel</classname>
198 containing the two components is then added to the beginning of
199 <varname>message</varname> array.
215 <function>showConfirmDialog()</function>. Each of them involves
216 a call to <function>Box.createVerticalStrut()</function>. The
217 <classname>Box</classname> class is a sophisticated layout class
218 that gives the user great flexibility in sizing and positioning
219 components. Here we use a <function>static</function> method of
377 <para>
378 The jEdit class <classname>InputHandler</classname> is an abstract class
379 that that manages associations between keyboard input and editing
380 actions, along with the recording of macros. Keyboard input
SessionPropertyRemoved.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 76 lines
✨ Summary
This Java class represents an EditBus message, specifically SessionPropertyRemoved
, which is used to notify that a session property has been removed. It encapsulates information about the source of the message, the affected session, and the key-value pair that was removed. The class provides getter methods for accessing this information.
This Java class represents an EditBus message, specifically SessionPropertyRemoved
, which is used to notify that a session property has been removed. It encapsulates information about the source of the message, the affected session, and the key-value pair that was removed. The class provides getter methods for accessing this information.
coldfusion.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 645 lines
201 <FUNCTION>Day</FUNCTION>
202 <FUNCTION>DayOfWeek</FUNCTION>
203 <FUNCTION>DayOfWeekAsString</FUNCTION>
204 <FUNCTION>DayOfYear</FUNCTION>
205 <FUNCTION>DaysInMonth</FUNCTION>
209 <FUNCTION>Minute</FUNCTION>
210 <FUNCTION>Month</FUNCTION>
211 <FUNCTION>MonthAsString</FUNCTION>
212 <FUNCTION>Now</FUNCTION>
213 <FUNCTION>ParseDateTime</FUNCTION>
341 <FUNCTION>REFindNoCase</FUNCTION>
342 <FUNCTION>RemoveChars</FUNCTION>
343 <FUNCTION>RepeatString</FUNCTION>
344 <FUNCTION>Replace</FUNCTION>
345 <FUNCTION>ReplaceList</FUNCTION>
VFSDirectoryEntryTable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 483 lines
✨ Summary
This Java code is part of a file manager application, specifically a directory browser. It handles user input, such as typing file names, and provides features like auto-completion and type selection for directories. The code updates the display accordingly, resizing columns to fit the selected text. It also includes functionality for navigating through directories and handling special keys like tilde (~) for home directory or backspace (-) for previous directory.
This Java code is part of a file manager application, specifically a directory browser. It handles user input, such as typing file names, and provides features like auto-completion and type selection for directories. The code updates the display accordingly, resizing columns to fit the selected text. It also includes functionality for navigating through directories and handling special keys like tilde (~) for home directory or backspace (-) for previous directory.
196 VFSDirectoryEntryTableModel.Entry e
197 = model.files[startIndex + i];
198 String path = e.dirEntry.path;
199 if(tmpExpanded.contains(path))
200 {
376 private BrowserView browserView;
377 private FileCellRenderer renderer;
378 private StringBuffer typeSelectBuffer = new StringBuffer();
379 private Timer timer = new Timer(0,new ClearTypeSelect());
393 }
395 String matchAgainst = (MiscUtilities.isAbsolutePath(str)
396 ? entry.dirEntry.path : entry.dirEntry.name);
397 if(matchAgainst.regionMatches(true,
SessionPropertiesShowing.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 104 lines
✨ Summary
This Java class, SessionPropertiesShowing
, is a message sent on an “EditBus” before displaying a dialog for session properties. It allows third parties to add custom property panes and groups to the dialog. The class provides methods to access the session and its associated property group, as well as methods to add property panes and groups to the dialog.
This Java class, SessionPropertiesShowing
, is a message sent on an “EditBus” before displaying a dialog for session properties. It allows third parties to add custom property panes and groups to the dialog. The class provides methods to access the session and its associated property group, as well as methods to add property panes and groups to the dialog.
regex_match.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file provides a set of functions for matching patterns against strings, including support for various character encodings and platforms. It defines a boost::regex_match
function that takes a pattern and a string as input and returns a boolean indicating whether the pattern matches the string. The implementation is platform-agnostic and supports multiple character encodings.
This C++ header file provides a set of functions for matching patterns against strings, including support for various character encodings and platforms. It defines a boost::regex_match
function that takes a pattern and a string as input and returns a boolean indicating whether the pattern matches the string. The implementation is platform-agnostic and supports multiple character encodings.
41 // the whole of the input. Fills in what matched in m.
42 //
43 template <class BidiIterator, class Allocator, class charT, class traits>
44 bool regex_match(BidiIterator first, BidiIterator last,
45 match_results<BidiIterator, Allocator>& m,
50 return matcher.match();
51 }
52 template <class iterator, class charT, class traits>
53 bool regex_match(iterator first, iterator last,
54 const basic_regex<charT, traits>& e,
74 }
76 template <class ST, class SA, class Allocator, class charT, class traits>
77 inline bool regex_match(const std::basic_string<charT, ST, SA>& s,
91 }
93 template <class ST, class SA, class charT, class traits>
94 inline bool regex_match(const std::basic_string<charT, ST, SA>& s,
BshClassManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 353 lines
✨ Summary
This Java code defines a class called BshClassManager
that manages the loading of classes for a BeanShell scripting environment. It provides methods to add and remove listeners, reload classes, and set an external class loader. The class also maintains caches of loaded classes and provides methods to clear these caches.
This Java code defines a class called BshClassManager
that manages the loading of classes for a BeanShell scripting environment. It provides methods to add and remove listeners, reload classes, and set an external class loader. The class also maintains caches of loaded classes and provides methods to clear these caches.
151 @return the class or null
152 */
153 public static Class classForName( String name ) {
154 BshClassManager manager = getClassManager(); // prime the singleton
176 @return the class
177 */
178 public static Class plainClassForName( String name )
179 throws ClassNotFoundException
212 speed later resolution
213 */
214 public static void cacheClassInfo( String name, Class value ) {
215 if ( value != null )
216 absoluteClassCache.put( name, value );
279 public abstract ClassLoader getBaseLoader();
281 public abstract ClassLoader getLoaderForClass( String name );
283 public abstract void addClassPath( URL path )
EBMessage.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 138 lines
✨ Summary
This is a Java class definition for EBMessage
, which represents an EditBus message. It provides basic functionality for creating and handling messages, including getting the source of the message and converting it to a string representation. The class also includes deprecated methods that are intended to be overridden by subclasses.
This is a Java class definition for EBMessage
, which represents an EditBus message. It provides basic functionality for creating and handling messages, including getting the source of the message and converting it to a string representation. The class also includes deprecated methods that are intended to be overridden by subclasses.
26 * The base class of all EditBus messages.<p>
27 *
28 * Message classes extending this class typically add
29 * other data members and methods to provide subscribers with whatever is
30 * needed to handle the message appropriately.<p>
78 public String toString()
79 {
80 String className = getClass().getName();
81 int index = className.lastIndexOf('.');
82 return className.substring(index + 1)
83 + "[" + paramString() + "]";
88 * Returns a string representation of this message's parameters.
89 */
90 public String paramString()
91 {
92 return "source=" + source;
LineElement.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 112 lines
✨ Summary
This Java class, LineElement
, represents a single line of text in a document. It provides methods to access information about the line, such as its start and end offsets, and is used for backwards compatibility with an older version of the jEdit 3.2.2-style document model. The class implements the Element
interface and has private members to store the buffer and line number associated with it.
This Java class, LineElement
, represents a single line of text in a document. It provides methods to access information about the line, such as its start and end offsets, and is used for backwards compatibility with an older version of the jEdit 3.2.2-style document model. The class implements the Element
interface and has private members to store the buffer and line number associated with it.
EditingOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 405 lines
✨ Summary
This Java code is part of a text editor’s configuration management system. It defines classes and methods for managing various settings, such as file name globs, folding, and indentation sizes, across different modes (e.g., programming languages). The code allows users to customize these settings and saves them to the editor’s configuration.
This Java code is part of a text editor’s configuration management system. It defines classes and methods for managing various settings, such as file name globs, folding, and indentation sizes, across different modes (e.g., programming languages). The code allows users to customize these settings and saves them to the editor’s configuration.
57 modeProps = new ModeProperties[modes.length];
59 String[] modeNames = new String[modes.length + 1];
60 modeNames[0] = jEdit.getProperty("options.editing.global");
275 String noWordSep;
276 String folding;
277 String collapseFolds;
278 String wrap;
279 String maxLineLen;
348 // need to call Mode.init() if the file name or first line
349 // globs change
350 String oldFilenameGlob = (String)mode.getProperty("filenameGlob");
351 String oldFirstlineGlob = (String)mode.getProperty("firstlineGlob");
VFSDirectoryEntryTable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 412 lines
✨ Summary
This Java code is a part of a file browser application, specifically handling keyboard input and displaying files in a table. It listens for key presses, including navigation keys (up, down, left, right) and typing keys, to navigate through directories and select files. The typeSelect
method is used to filter file names based on user input.
This Java code is a part of a file browser application, specifically handling keyboard input and displaying files in a table. It listens for key presses, including navigation keys (up, down, left, right) and typing keys, to navigate through directories and select files. The typeSelect
method is used to filter file names based on user input.
73 //{{{ doTypeSelect() method
74 public void doTypeSelect(String str, boolean ignoreCase)
75 {
76 if(str.length() == 0)
314 default:
315 typeSelectBuffer.append(evt.getKeyChar());
316 doTypeSelect(typeSelectBuffer.toString(),true);
318 timer.stop();
338 private BrowserView browserView;
339 private FileCellRenderer renderer;
340 private StringBuffer typeSelectBuffer = new StringBuffer();
341 private Timer timer = new Timer(0,new ClearTypeSelect());
jEdit.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 3743 lines
✨ Summary
This is a Java class that initializes and sets up various components of the JEdit text editor, including its properties, plugins, views, and input handling. It also defines some static variables to store settings and configuration data. The code appears to be part of the JEdit application’s startup process, setting up the environment for the editor to run in.
This is a Java class that initializes and sets up various components of the JEdit text editor, including its properties, plugins, views, and input handling. It also defines some static variables to store settings and configuration data. The code appears to be part of the JEdit application’s startup process, setting up the environment for the editor to run in.
374 try
375 {
376 ClassLoader loader = jEdit.class.getClassLoader();
377 Class clazz;
501 * @param def The default value
502 */
503 public static final String getProperty(String name, String def)
504 {
505 return props.getProperty(name,def);
762 * @since jEdit 2.3final
763 */
764 public static final void setTemporaryProperty(String name, String value)
765 {
766 props.remove(name);
927 }
929 String[] _returnValue = new String[returnValue.size()];
930 returnValue.copyInto(_returnValue);
931 return _returnValue;
SessionChanging.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 39 lines
✨ Summary
This Java class SessionChanging
extends another class SessionMessage
. It represents a message that changes a session, with parameters for the source component, old and new sessions. The constructor initializes this message with these parameters.
This Java class SessionChanging
extends another class SessionMessage
. It represents a message that changes a session, with parameters for the source component, old and new sessions. The constructor initializes this message with these parameters.
VFSBrowser.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1494 lines
✨ Summary
This Java code is part of a file browser application, specifically handling menu buttons for browsing directories and managing favorites. It creates instances of JPopupMenu
to display options such as adding files to favorites, editing favorites, and navigating to specific directories. The code also handles user input and updates the application’s state accordingly.
This Java code is part of a file browser application, specifically handling menu buttons for browsing directories and managing favorites. It creates instances of JPopupMenu
to display options such as adding files to favorites, editing favorites, and navigating to specific directories. The code also handles user input and updates the application’s state accordingly.
86 * @since jEdit 4.1pre2
87 */
88 public static void browseDirectoryInNewWindow(View view, String path)
89 {
90 DockableWindowManager wm = view.getDockableWindowManager();
291 if(path == null || path.length() == 0)
292 {
293 String userHome = System.getProperty("user.home");
294 String defaultPath = jEdit.getProperty("vfs.browser.defaultPath");
445 //{{{ setFilenameFilter() method
446 public void setFilenameFilter(String filter)
447 {
448 if(filter == null || filter.length() == 0 || filter.equals("*"))
533 }
535 StringBuffer buf = new StringBuffer();
536 for(int i = 0; i < files.length; i++)
537 {
XmlException.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 85 lines
✨ Summary
This Java class, XmlException
, is a custom exception class for reporting XML parsing errors. It provides additional information about the error, such as the error message, system ID, line number, and column number, allowing for more detailed error handling in an application.
This Java class, XmlException
, is a custom exception class for reporting XML parsing errors. It provides additional information about the error, such as the error message, system ID, line number, and column number, allowing for more detailed error handling in an application.
9 * Convenience exception class for reporting XML parsing errors.
10 * <p>This is an exception class that you can use to encapsulate all
11 * of the information from Ælfred's <code>error</code> callback.
12 * This is not necessary for routine use of Ælfred, but it
13 * is used by the optional <code>HandlerBase</code> class.
14 * <p>Note that the core Ælfred classes do <em>not</em>
22 public class XmlException extends Exception
23 {
24 private String message;
25 private String systemId;
35 * @param column The column number where the error appeared.
36 */
37 public XmlException (String message, String systemId, int line, int column)
38 {
39 this.message = message;
greg_serialize.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file provides serialization functionality for various date-related classes from the Boost library, specifically gregorian
. It allows serializing and deserializing these classes to and from a binary format using the Boost.Serialization library. This enables storing and retrieving dates in a compact and efficient manner.
This C++ header file provides serialization functionality for various date-related classes from the Boost library, specifically gregorian
. It allows serializing and deserializing these classes to and from a binary format using the Boost.Serialization library. This enables storing and retrieving dates in a compact and efficient manner.
56 unsigned int /* version */)
57 {
58 std::string ds = to_iso_string(d);
59 ar & make_nvp("date", ds);
60 }
155 * the begining date object and the end date object
156 */
157 template<class Archive>
158 void save(Archive & ar, const gregorian::date_period& dp,
159 unsigned int /*version*/)
217 //! Function to save gregorian::greg_day objects using serialization lib
218 template<class Archive>
219 void save(Archive & ar, const gregorian::greg_day& gd,
220 unsigned int /*version*/)
NavigatorPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 71 lines
34 # this is the text that will be shown on the jEdit plugin
35 # menu. It is read by jEdit via the createMenuItems method in
36 # HelloPlugin. This line must start with the string passed to
37 # the GUIUtilities.loadMenu method in createMenuItems.
38 navigator.menu.label=Navigator
40 # this setting describes the submenu. Each menu item is listed in the
41 # order it is shown. The dash is a special character and will cause a
42 # menu separator to be inserted. This line also must start with the string
43 # passed to the GUIUtilities.loadMenu method in createMenuItems. The items
44 # are the action names as set in the actions.xml file.
Service.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 331 lines
✨ Summary
This JavaScript code defines a set of functions and classes for handling HTTP requests, specifically for creating RESTful services. It provides a framework for building web applications that can send and receive data in various formats (e.g., JSON, XML, JavaScript). The code also includes built-in transports for common HTTP methods like GET, POST, and JSONP.
This JavaScript code defines a set of functions and classes for handling HTTP requests, specifically for creating RESTful services. It provides a framework for building web applications that can send and receive data in various formats (e.g., JSON, XML, JavaScript). The code also includes built-in transports for common HTTP methods like GET, POST, and JSONP.
15 constructor: function(smd, options){
16 // summary:
17 // Take a string as a url to retrieve an smd or an object that is an smd or partial smd to use
18 // as a definition for the service
19 //
20 // smd: object
21 // Takes a number of properties as kwArgs for defining the service. It also
22 // accepts a string. When passed a string, it is treated as a url from
23 // which it should synchronously retrieve an smd file. Otherwise it is a kwArgs
24 // object. It accepts serviceUrl, to manually define a url for the rpc service
25 // allowing the rpc system to be used without an smd definition. strictArgChecks
26 // forces the system to verify that the # of arguments provided in a call
27 // matches those defined in the smd. smdString allows a developer to pass
28 // a jsonString directly, which will be converted into an object or alternatively
51 }
52 if(smd){
53 //ifthe arg is a string, we assume it is a url to retrieve an smd definition from
54 if( (dojo.isString(smd)) || (smd instanceof dojo._Url)){
ArchiveDirectoryCache.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 211 lines
✨ Summary
This Java class, ArchiveDirectoryCache
, caches remote directories to improve performance by storing their listings in a temporary file and storing the file path in a hash table for efficient lookup. It provides methods to cache, retrieve, and clear cached directory listings, as well as manage its internal state and settings directory.
This Java class, ArchiveDirectoryCache
, caches remote directories to improve performance by storing their listings in a temporary file and storing the file path in a hash table for efficient lookup. It provides methods to cache, retrieve, and clear cached directory listings, as well as manage its internal state and settings directory.
40 synchronized(lock)
41 {
42 String path = (String)urlToCacheFileHash.get(url);
43 if(path != null)
44 {
140 synchronized(lock)
141 {
142 String path = (String)urlToCacheFileHash.remove(url);
143 if(path == null)
144 return;
162 while(files.hasMoreElements())
163 {
164 String path = (String)files.nextElement();
165 Log.log(Log.DEBUG,ArchiveDirectoryCache.class,"Deleting " + path);
181 * as the same URL. When the VFSPath class arrives, will get rid
182 * of this kludge */
183 private static String canon(String url)
184 {
185 if(url.length() != 0 && (url.endsWith("/")
Mode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 285 lines
✨ Summary
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
224 // not given to us by the XMode handler, but instead are filled in by
225 // the catalog loader.
226 String filenameGlob = (String)this.props.get("filenameGlob");
227 String firstlineGlob = (String)this.props.get("firstlineGlob");
228 String filename = (String)this.props.get("file");
229 this.props = props;
230 if(filenameGlob != null)
246 * @since jEdit 3.2pre3
247 */
248 public boolean accept(String fileName, String firstLine)
249 {
250 if(filenameRE != null && filenameRE.isMatch(fileName))
270 * Returns a string representation of this edit mode.
271 */
272 public String toString()
273 {
274 return name;
SideKickPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 435 lines
✨ Summary
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
84 markerSetsPlugin = jEdit.getPlugin(MARKER_SETS_PLUGIN, false);
85 sidekicks = new HashMap<View, SideKick>();
86 parsers = new HashMap<String, SideKickParser>();
87 workers = new HashMap<View, SwingWorker<SideKickParsedData, Object>>();
88 parsedBufferSet = new HashSet<Buffer>();
259 {
260 if (parserName.equals(NONE) ) {
261 buffer.setStringProperty(PARSER_PROPERTY, parserName);
262 return;
263 }
276 public static SideKickParser getParserForBuffer(Buffer buffer)
277 {
278 String parserName = buffer.getStringProperty(PARSER_PROPERTY);
279 Mode mode = buffer.getMode();
280 String modeName = (mode != null) ? mode.getName() : "";
Look_and_Feel_Properties.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 59 lines
NavHistoryList.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 267 lines
✨ Summary
This Java code is part of a text editor’s functionality, specifically for displaying source code in a syntax highlighted manner. It uses an external tool called code2html
to perform syntax highlighting and formatting on the code. The code then displays the formatted code with line numbers, file paths, and other metadata in a graphical user interface.
This Java code is part of a text editor’s functionality, specifically for displaying source code in a syntax highlighted manner. It uses an external tool called code2html
to perform syntax highlighting and formatting on the code. The code then displays the formatted code with line numbers, file paths, and other metadata in a graphical user interface.
119 private Collection<NavPosition> groupByFile(Collection<NavPosition> positions) {
120 List<NavPosition> items = new ArrayList<NavPosition>(positions.size());
121 HashSet<String> paths = new HashSet<String>();
122 for (NavPosition pos : positions) {
123 if (paths.add(pos.path)) {
218 // set the font to be the same as the jEdit text area font
219 labelText = new StringBuilder("<font face=\"").append(textAreaFont.getName()).append("\">").append(labelText).append("</font>").toString();
221 // reduce multiple spaces to single space
230 boolean showLineNumber = jEdit.getBooleanProperty("navigator.showLineNumber", true);
231 boolean showCaretOffset = jEdit.getBooleanProperty("navigator.showCaretOffset", true);
232 StringBuilder sb = new StringBuilder();
233 sb.append("<html><tt>");
234 sb.append(showPath ? pos.path : pos.name);
JEditMetalTheme.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 72 lines
✨ Summary
This Java code defines a custom theme for the jEdit text editor, specifically for its Metal Look and Feel (L&F). It extends the default MetalTheme to provide minor tweaks, such as custom font settings and color schemes, to enhance the user experience. The theme is designed to be customizable through configuration properties.
This Java code defines a custom theme for the jEdit text editor, specifically for its Metal Look and Feel (L&F). It extends the default MetalTheme to provide minor tweaks, such as custom font settings and color schemes, to enhance the user experience. The theme is designed to be customizable through configuration properties.
TMXTileSet.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 191 lines
✨ Summary
This Java class represents a tile set in a TMX (Tiled Map eXchange) file format, used for creating maps in games. It loads and parses the tile set data from an XML file, storing information such as tile dimensions, spacing, and properties. The class provides methods to access and manipulate this data, including getting tile coordinates and checking if a given GID (global ID) is within the tile set’s range.
This Java class represents a tile set in a TMX (Tiled Map eXchange) file format, used for creating maps in games. It loads and parses the tile set data from an XML file, storing information such as tile dimensions, spacing, and properties. The class provides methods to access and manipulate this data, including getting tile coordinates and checking if a given GID (global ID) is within the tile set’s range.
68 name = element.getAttribute("name");
69 firstGID = Integer.parseInt(element.getAttribute("firstgid"));
70 String source = element.getAttribute("source");
72 if ((source != null) && (!source.equals(""))) {
88 String tileWidthString = element.getAttribute("tilewidth");
89 String tileHeightString = element.getAttribute("tileheight");
90 if (tileWidthString.length() == 0 || tileHeightString.length() == 0) {
91 throw new RuntimeException(
92 "tileWidthString.length == 0 || tileHeightString.length == 0");
93 }
94 tileWidth = Integer.parseInt(tileWidthString);
128 Element propElement = (Element) properties.item(p);
130 String name = propElement.getAttribute("name");
131 String value = propElement.getAttribute("value");
SM-2Arg.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
159 template <class Event,class FSM>
160 void on_entry(Event const&,FSM& ) {std::cout << "starting: LightOff" << std::endl;}
161 template <class Event,class FSM>
162 void on_exit(Event const&,FSM& ) {std::cout << "finishing: LightOff" << std::endl;}
163 };
177 > {};
178 // Replaces the default no-transition response.
179 template <class FSM,class Event>
180 void no_transition(Event const& e, FSM&,int state)
181 {
354 // Replaces the default no-transition response.
355 template <class FSM,class Event>
356 void no_transition(Event const& e, FSM&,int state)
357 {