Source for file Control.php
Documentation is available at Control.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see https://nette.org
- 12: *
- 19: */
- 29: /**
- 30: * Control is renderable component.
- 31: *
- 35: */
- 37: {
- 46: /********************* template factory ****************d*g**/
- 50: /**
- 52: */
- 54: {
- 59: throw new UnexpectedValueException("Object returned by $this->class::createTemplate() must be instance of Nette\\Templates\\ITemplate, '$class' given.");
- 60: }
- 62: }
- 64: }
- 68: /**
- 70: */
- 72: {
- 76: // default parameters
- 82: // flash message
- 86: }
- 89: }
- 91: // default helpers
- 100: }
- 104: /**
- 105: * Saves the message to template, that can be displayed after redirect.
- 109: */
- 111: {
- 121: }
- 125: /********************* rendering ****************d*g**/
- 129: /**
- 130: * Forces control or its snippet to repaint.
- 133: */
- 135: {
- 137: }
- 141: /**
- 142: * Allows control or its snippet to not repaint.
- 145: */
- 147: {
- 153: }
- 154: }
- 158: /**
- 159: * Is required to repaint the control or its snippet?
- 162: */
- 164: {
- 172: // $this->invalidSnippets['__child'] = TRUE; // as cache
- 174: }
- 175: }
- 177: }
- 181: }
- 182: }
- 186: /**
- 187: * Returns snippet HTML ID.
- 190: */
- 192: {
- 193: // HTML 4 ID & NAME: [A-Za-z][A-Za-z0-9:_.-]*
- 195: }
- 197: }
