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 http://nettephp.com
- 12: *
- 18: */
- 28: /**
- 29: * NControl is renderable component.
- 30: *
- 34: *
- 36: */
- 38: {
- 47: /********************* template factory ****************d*g**/
- 51: /**
- 53: */
- 55: {
- 60: throw new UnexpectedValueException("NObject returned by $this->class::createTemplate() must be instance of \Templates\\ITemplate, '$class' given.");
- 61: }
- 63: }
- 65: }
- 69: /**
- 71: */
- 73: {
- 78: // default parameters
- 84: // flash message
- 88: }
- 91: }
- 93: // default helpers
- 101: }
- 105: /**
- 106: * Descendant can override this method to customize template compile-time filters.
- 109: */
- 111: {
- 112: // default filters
- 114: }
- 118: /**
- 119: * Returns widget component specified by name.
- 122: */
- 124: {
- 126: }
- 130: /**
- 131: * Saves the message to template, that can be displayed after redirect.
- 135: */
- 137: {
- 147: }
- 151: /********************* rendering ****************d*g**/
- 155: /**
- 156: * Forces control or its snippet to repaint.
- 159: */
- 161: {
- 163: }
- 167: /**
- 168: * Allows control or its snippet to not repaint.
- 171: */
- 173: {
- 179: }
- 180: }
- 184: /**
- 185: * Is required to repaint the control or its snippet?
- 188: */
- 190: {
- 198: // $this->invalidSnippets['__child'] = TRUE; // as cache
- 200: }
- 201: }
- 203: }
- 207: }
- 208: }
- 212: /**
- 213: * Returns snippet HTML ID.
- 216: */
- 218: {
- 219: // HTML 4 ID & NAME: [A-Za-z][A-Za-z0-9:_.-]*
- 221: }
- 223: }