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: * Control is renderable component.
- 30: *
- 34: *
- 36: */
- 38: {
- 47: /********************* component factory ****************d*g**/
- 51: /**
- 52: * Delegates the creation of components to a createComponent<Name> method.
- 55: */
- 57: {
- 60: if ($ucname !== $name && method_exists($this, $method) && $this->getReflection()->getMethod($method)->getName() === $method) {
- 64: }
- 65: }
- 66: }
- 70: /********************* template factory ****************d*g**/
- 74: /**
- 76: */
- 78: {
- 83: throw new UnexpectedValueException("Object returned by $this->class::createTemplate() must be instance of Nette\\Templates\\ITemplate, '$class' given.");
- 84: }
- 86: }
- 88: }
- 92: /**
- 94: */
- 96: {
- 101: // default parameters
- 107: // flash message
- 111: }
- 114: }
- 116: // default helpers
- 124: }
- 128: /**
- 129: * Descendant can override this method to customize template compile-time filters.
- 132: */
- 134: {
- 135: // default filters
- 137: }
- 141: /**
- 142: * Returns widget component specified by name.
- 145: */
- 147: {
- 149: }
- 153: /**
- 154: * Saves the message to template, that can be displayed after redirect.
- 158: */
- 160: {
- 170: }
- 174: /********************* rendering ****************d*g**/
- 178: /**
- 179: * Forces control or its snippet to repaint.
- 182: */
- 184: {
- 186: }
- 190: /**
- 191: * Allows control or its snippet to not repaint.
- 194: */
- 196: {
- 202: }
- 203: }
- 207: /**
- 208: * Is required to repaint the control or its snippet?
- 211: */
- 213: {
- 221: // $this->invalidSnippets['__child'] = TRUE; // as cache
- 223: }
- 224: }
- 226: }
- 230: }
- 231: }
- 235: /**
- 236: * Returns snippet HTML ID.
- 239: */
- 241: {
- 242: // HTML 4 ID & NAME: [A-Za-z][A-Za-z0-9:_.-]*
- 244: }
- 248: /********************* interface \ArrayAccess ****************d*g**/
- 252: /**
- 253: * Adds the component to the container.
- 257: */
- 259: {
- 261: }
- 265: /**
- 266: * Returns component specified by name. Throws exception if component doesn't exist.
- 270: */
- 272: {
- 274: }
- 278: /**
- 279: * Does component specified by name exists?
- 282: */
- 284: {
- 286: }
- 290: /**
- 291: * Removes component from the container. Throws exception if component doesn't exist.
- 294: */
- 296: {
- 300: }
- 301: }
- 303: }