Changeset 6176
- Timestamp:
- 11/27/07 08:13:54 (1 year ago)
- Files:
-
- trunk/lib/view/sfEscapedViewParameterHolder.class.php (modified) (1 diff)
- trunk/lib/view/sfView.class.php (modified) (1 diff)
- trunk/lib/view/sfViewParameterHolder.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/view/sfEscapedViewParameterHolder.class.php
r5018 r6176 47 47 $this->setEscaping(isset($options['escaping_strategy']) ? $options['escaping_strategy'] : 'bc'); 48 48 $this->setEscapingMethod(isset($options['escaping_method']) ? $options['escaping_method'] : 'ESC_ENTITIES'); 49 } 50 51 /** 52 * Returns true if the current object acts as an escaper. 53 * 54 * @return Boolean true if the current object acts as an escaper, false otherwise 55 */ 56 public function isEscaped() 57 { 58 return true; 49 59 } 50 60 trunk/lib/view/sfView.class.php
r5955 r6176 137 137 138 138 /** 139 * Returns true if the current attribute holder automatically escapes attributes.140 *141 * @return Boolean true if the attribute holder escapes attributes, false otherwise142 */143 public function isAttributeHolderEscaped()144 {145 return $this->attributeHolder instanceof sfEscapedViewParameterHolder;146 }147 148 /**149 139 * Executes any presentation logic and set template attributes. 150 140 */ trunk/lib/view/sfViewParameterHolder.class.php
r5018 r6176 44 44 45 45 /** 46 * Returns true if the current object acts as an escaper. 47 * 48 * @return Boolean true if the current object acts as an escaper, false otherwise 49 */ 50 public function isEscaped() 51 { 52 return false; 53 } 54 55 /** 46 56 * Returns an array representation of the view parameters. 47 57 *